2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
558
# Remove one level of quotation (which was required for Make).
559
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
if test "X$1" = X--no-reexec; then
565
# Discard the --no-reexec flag, and continue.
567
elif test "X$1" = X--fallback-echo; then
568
# Avoid inline document here, it may be left over
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
# Yippee, $echo works!
574
# Restart under the correct shell.
575
exec $SHELL "$0" --no-reexec ${1+"$@"}
578
if test "X$1" = X--fallback-echo; then
579
# used as fallback echo
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597
echo_test_string=`eval $cmd` &&
598
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# The Solaris, AIX, and Digital Unix default echo programs unquote
611
# backslashes. This makes it impossible to quote backslashes using
612
# echo "$something" | sed 's/\\/\\\\/g'
614
# So, first we look for a working echo in the user's PATH.
616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
for dir in $PATH /usr/ucb; do
619
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
test "X$echo_testing_string" = "X$echo_test_string"; then
629
if test "X$echo" = Xecho; then
630
# We didn't find a better echo, so look for alternatives.
631
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# This shell has a builtin print -r that does the trick.
636
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
test "X$CONFIG_SHELL" != X/bin/ksh; then
638
# If we have ksh, try running configure again with it.
639
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
export ORIGINAL_CONFIG_SHELL
641
CONFIG_SHELL=/bin/ksh
643
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
652
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
test "X$echo_testing_string" = 'X\t' &&
654
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
SHELL="$CONFIG_SHELL"
660
echo="$CONFIG_SHELL $0 --fallback-echo"
661
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
test "X$echo_testing_string" = 'X\t' &&
663
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
test "X$echo_testing_string" = "X$echo_test_string"; then
665
echo="$CONFIG_SHELL $0 --fallback-echo"
667
# maybe with a smaller string...
670
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
if test "$prev" != 'sed 50q "$0"'; then
679
echo_test_string=`eval $prev`
680
export echo_test_string
681
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
# Oops. We lost completely, so just stick with echo.
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702
tagnames=${tagnames+${tagnames},}CXX
704
tagnames=${tagnames+${tagnames},}F77
706
exec 7<&0 </dev/null 6>&1
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
ac_default_prefix=/usr/local
718
ac_config_libobj_dir=.
724
SHELL=${CONFIG_SHELL-/bin/sh}
726
# Identity of this package.
733
ac_unique_file="tests/rpath-1a"
734
# Factoring default headers for most tests.
735
ac_includes_default="\
737
#ifdef HAVE_SYS_TYPES_H
738
# include <sys/types.h>
740
#ifdef HAVE_SYS_STAT_H
741
# include <sys/stat.h>
747
# ifdef HAVE_STDLIB_H
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757
#ifdef HAVE_STRINGS_H
758
# include <strings.h>
760
#ifdef HAVE_INTTYPES_H
761
# include <inttypes.h>
779
program_transform_name
821
INSTALL_STRIP_PROGRAM
883
ac_precious_vars='build_alias
900
# Initialize some variables set by options.
902
ac_init_version=false
903
# The variables have the same names as the options, with
904
# dashes changed to underlines.
912
program_transform_name=s,x,x,
920
# Installation directory options.
921
# These are left unexpanded so users can "make install exec_prefix=/foo"
922
# and all the variables that are supposed to be based on exec_prefix
923
# by default will actually change.
924
# Use braces instead of parens because sh, perl, etc. also accept them.
925
# (The list follows the same order as the GNU Coding Standards.)
926
bindir='${exec_prefix}/bin'
927
sbindir='${exec_prefix}/sbin'
928
libexecdir='${exec_prefix}/libexec'
929
datarootdir='${prefix}/share'
930
datadir='${datarootdir}'
931
sysconfdir='${prefix}/etc'
932
sharedstatedir='${prefix}/com'
933
localstatedir='${prefix}/var'
934
includedir='${prefix}/include'
935
oldincludedir='/usr/include'
936
docdir='${datarootdir}/doc/${PACKAGE}'
937
infodir='${datarootdir}/info'
942
libdir='${exec_prefix}/lib'
943
localedir='${datarootdir}/locale'
944
mandir='${datarootdir}/man'
950
# If the previous option needs an argument, assign it.
951
if test -n "$ac_prev"; then
952
eval $ac_prev=\$ac_option
958
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962
# Accept the important Cygnus configure options, so we can diagnose typos.
964
case $ac_dashdash$ac_option in
968
-bindir | --bindir | --bindi | --bind | --bin | --bi)
970
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973
-build | --build | --buil | --bui | --bu)
974
ac_prev=build_alias ;;
975
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
976
build_alias=$ac_optarg ;;
978
-cache-file | --cache-file | --cache-fil | --cache-fi \
979
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980
ac_prev=cache_file ;;
981
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983
cache_file=$ac_optarg ;;
986
cache_file=config.cache ;;
988
-datadir | --datadir | --datadi | --datad)
990
-datadir=* | --datadir=* | --datadi=* | --datad=*)
991
datadir=$ac_optarg ;;
993
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994
| --dataroo | --dataro | --datar)
995
ac_prev=datarootdir ;;
996
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998
datarootdir=$ac_optarg ;;
1000
-disable-* | --disable-*)
1001
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002
# Reject names that are not valid shell variable names.
1003
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005
{ (exit 1); exit 1; }; }
1006
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007
eval enable_$ac_feature=no ;;
1009
-docdir | --docdir | --docdi | --doc | --do)
1011
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012
docdir=$ac_optarg ;;
1014
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017
dvidir=$ac_optarg ;;
1019
-enable-* | --enable-*)
1020
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021
# Reject names that are not valid shell variable names.
1022
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024
{ (exit 1); exit 1; }; }
1025
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026
eval enable_$ac_feature=\$ac_optarg ;;
1028
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030
| --exec | --exe | --ex)
1031
ac_prev=exec_prefix ;;
1032
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034
| --exec=* | --exe=* | --ex=*)
1035
exec_prefix=$ac_optarg ;;
1037
-gas | --gas | --ga | --g)
1038
# Obsolete; use --with-gas.
1041
-help | --help | --hel | --he | -h)
1042
ac_init_help=long ;;
1043
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044
ac_init_help=recursive ;;
1045
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046
ac_init_help=short ;;
1048
-host | --host | --hos | --ho)
1049
ac_prev=host_alias ;;
1050
-host=* | --host=* | --hos=* | --ho=*)
1051
host_alias=$ac_optarg ;;
1053
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057
htmldir=$ac_optarg ;;
1059
-includedir | --includedir | --includedi | --included | --include \
1060
| --includ | --inclu | --incl | --inc)
1061
ac_prev=includedir ;;
1062
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063
| --includ=* | --inclu=* | --incl=* | --inc=*)
1064
includedir=$ac_optarg ;;
1066
-infodir | --infodir | --infodi | --infod | --info | --inf)
1068
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069
infodir=$ac_optarg ;;
1071
-libdir | --libdir | --libdi | --libd)
1073
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1074
libdir=$ac_optarg ;;
1076
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077
| --libexe | --libex | --libe)
1078
ac_prev=libexecdir ;;
1079
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080
| --libexe=* | --libex=* | --libe=*)
1081
libexecdir=$ac_optarg ;;
1083
-localedir | --localedir | --localedi | --localed | --locale)
1084
ac_prev=localedir ;;
1085
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086
localedir=$ac_optarg ;;
1088
-localstatedir | --localstatedir | --localstatedi | --localstated \
1089
| --localstate | --localstat | --localsta | --localst | --locals)
1090
ac_prev=localstatedir ;;
1091
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093
localstatedir=$ac_optarg ;;
1095
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098
mandir=$ac_optarg ;;
1100
-nfp | --nfp | --nf)
1101
# Obsolete; use --without-fp.
1104
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105
| --no-cr | --no-c | -n)
1108
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114
| --oldin | --oldi | --old | --ol | --o)
1115
ac_prev=oldincludedir ;;
1116
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119
oldincludedir=$ac_optarg ;;
1121
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124
prefix=$ac_optarg ;;
1126
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1127
| --program-pre | --program-pr | --program-p)
1128
ac_prev=program_prefix ;;
1129
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1130
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131
program_prefix=$ac_optarg ;;
1133
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1134
| --program-suf | --program-su | --program-s)
1135
ac_prev=program_suffix ;;
1136
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1137
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138
program_suffix=$ac_optarg ;;
1140
-program-transform-name | --program-transform-name \
1141
| --program-transform-nam | --program-transform-na \
1142
| --program-transform-n | --program-transform- \
1143
| --program-transform | --program-transfor \
1144
| --program-transfo | --program-transf \
1145
| --program-trans | --program-tran \
1146
| --progr-tra | --program-tr | --program-t)
1147
ac_prev=program_transform_name ;;
1148
-program-transform-name=* | --program-transform-name=* \
1149
| --program-transform-nam=* | --program-transform-na=* \
1150
| --program-transform-n=* | --program-transform-=* \
1151
| --program-transform=* | --program-transfor=* \
1152
| --program-transfo=* | --program-transf=* \
1153
| --program-trans=* | --program-tran=* \
1154
| --progr-tra=* | --program-tr=* | --program-t=*)
1155
program_transform_name=$ac_optarg ;;
1157
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160
pdfdir=$ac_optarg ;;
1162
-psdir | --psdir | --psdi | --psd | --ps)
1164
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168
| -silent | --silent | --silen | --sile | --sil)
1171
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175
sbindir=$ac_optarg ;;
1177
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1178
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179
| --sharedst | --shareds | --shared | --share | --shar \
1181
ac_prev=sharedstatedir ;;
1182
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186
sharedstatedir=$ac_optarg ;;
1188
-site | --site | --sit)
1190
-site=* | --site=* | --sit=*)
1193
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196
srcdir=$ac_optarg ;;
1198
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199
| --syscon | --sysco | --sysc | --sys | --sy)
1200
ac_prev=sysconfdir ;;
1201
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203
sysconfdir=$ac_optarg ;;
1205
-target | --target | --targe | --targ | --tar | --ta | --t)
1206
ac_prev=target_alias ;;
1207
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208
target_alias=$ac_optarg ;;
1210
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1213
-version | --version | --versio | --versi | --vers | -V)
1214
ac_init_version=: ;;
1217
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218
# Reject names that are not valid shell variable names.
1219
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1221
{ (exit 1); exit 1; }; }
1222
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223
eval with_$ac_package=\$ac_optarg ;;
1225
-without-* | --without-*)
1226
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227
# Reject names that are not valid shell variable names.
1228
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1230
{ (exit 1); exit 1; }; }
1231
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232
eval with_$ac_package=no ;;
1235
# Obsolete; use --with-x.
1238
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239
| --x-incl | --x-inc | --x-in | --x-i)
1240
ac_prev=x_includes ;;
1241
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243
x_includes=$ac_optarg ;;
1245
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1246
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247
ac_prev=x_libraries ;;
1248
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250
x_libraries=$ac_optarg ;;
1252
-*) { echo "$as_me: error: unrecognized option: $ac_option
1253
Try \`$0 --help' for more information." >&2
1254
{ (exit 1); exit 1; }; }
1258
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259
# Reject names that are not valid shell variable names.
1260
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262
{ (exit 1); exit 1; }; }
1263
eval $ac_envvar=\$ac_optarg
1264
export $ac_envvar ;;
1267
# FIXME: should be removed in autoconf 3.0.
1268
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277
if test -n "$ac_prev"; then
1278
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279
{ echo "$as_me: error: missing argument to $ac_option" >&2
1280
{ (exit 1); exit 1; }; }
1283
# Be sure to have absolute directory names.
1284
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285
datadir sysconfdir sharedstatedir localstatedir includedir \
1286
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287
libdir localedir mandir
1289
eval ac_val=\$$ac_var
1291
[\\/$]* | ?:[\\/]* ) continue;;
1292
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295
{ (exit 1); exit 1; }; }
1298
# There might be people who depend on the old broken behavior: `$host'
1299
# used to hold the argument of --host etc.
1300
# FIXME: To remove some day.
1303
target=$target_alias
1305
# FIXME: To remove some day.
1306
if test "x$host_alias" != x; then
1307
if test "x$build_alias" = x; then
1308
cross_compiling=maybe
1309
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310
If a cross compiler is detected then cross compile mode will be used." >&2
1311
elif test "x$build_alias" != "x$host_alias"; then
1317
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
test "$silent" = yes && exec 6>/dev/null
1322
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323
ac_ls_di=`ls -di .` &&
1324
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325
{ echo "$as_me: error: Working directory cannot be determined" >&2
1326
{ (exit 1); exit 1; }; }
1327
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1329
{ (exit 1); exit 1; }; }
1332
# Find the source files, if location was not specified.
1333
if test -z "$srcdir"; then
1334
ac_srcdir_defaulted=yes
1335
# Try the directory containing this script, then the parent directory.
1336
ac_confdir=`$as_dirname -- "$0" ||
1337
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338
X"$0" : 'X\(//\)[^/]' \| \
1339
X"$0" : 'X\(//\)$' \| \
1340
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1342
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360
if test ! -r "$srcdir/$ac_unique_file"; then
1364
ac_srcdir_defaulted=no
1366
if test ! -r "$srcdir/$ac_unique_file"; then
1367
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1369
{ (exit 1); exit 1; }; }
1371
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1374
{ (exit 1); exit 1; }; }
1376
# When building in place, set srcdir=.
1377
if test "$ac_abs_confdir" = "$ac_pwd"; then
1380
# Remove unnecessary trailing slashes from srcdir.
1381
# Double slashes in file names in object file debugging info
1382
# mess up M-x gdb in Emacs.
1384
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386
for ac_var in $ac_precious_vars; do
1387
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388
eval ac_env_${ac_var}_value=\$${ac_var}
1389
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394
# Report the --help message.
1396
if test "$ac_init_help" = "long"; then
1397
# Omit some internal or obsolete options to make the list less imposing.
1398
# This message is too long to be a string in the A/UX 3.1 sh.
1400
\`configure' configures this package to adapt to many kinds of systems.
1402
Usage: $0 [OPTION]... [VAR=VALUE]...
1404
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405
VAR=VALUE. See below for descriptions of some of the useful variables.
1407
Defaults for the options are specified in brackets.
1410
-h, --help display this help and exit
1411
--help=short display options specific to this package
1412
--help=recursive display the short help of all the included packages
1413
-V, --version display version information and exit
1414
-q, --quiet, --silent do not print \`checking...' messages
1415
--cache-file=FILE cache test results in FILE [disabled]
1416
-C, --config-cache alias for \`--cache-file=config.cache'
1417
-n, --no-create do not create output files
1418
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
Installation directories:
1421
--prefix=PREFIX install architecture-independent files in PREFIX
1422
[$ac_default_prefix]
1423
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426
By default, \`make install' will install all the files in
1427
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429
for instance \`--prefix=\$HOME'.
1431
For better control, use the options below.
1433
Fine tuning of the installation directories:
1434
--bindir=DIR user executables [EPREFIX/bin]
1435
--sbindir=DIR system admin executables [EPREFIX/sbin]
1436
--libexecdir=DIR program executables [EPREFIX/libexec]
1437
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440
--libdir=DIR object code libraries [EPREFIX/lib]
1441
--includedir=DIR C header files [PREFIX/include]
1442
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1443
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445
--infodir=DIR info documentation [DATAROOTDIR/info]
1446
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447
--mandir=DIR man documentation [DATAROOTDIR/man]
1448
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1449
--htmldir=DIR html documentation [DOCDIR]
1450
--dvidir=DIR dvi documentation [DOCDIR]
1451
--pdfdir=DIR pdf documentation [DOCDIR]
1452
--psdir=DIR ps documentation [DOCDIR]
1458
--program-prefix=PREFIX prepend PREFIX to installed program names
1459
--program-suffix=SUFFIX append SUFFIX to installed program names
1460
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
--build=BUILD configure for building on BUILD [guessed]
1464
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1468
if test -n "$ac_init_help"; then
1473
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475
--disable-dependency-tracking speeds up one-time build
1476
--enable-dependency-tracking do not reject slow dependency extractors
1477
--enable-shared[=PKGS] build shared libraries [default=yes]
1478
--enable-static[=PKGS] build static libraries [default=yes]
1479
--enable-fast-install[=PKGS]
1480
optimize for fast installation [default=yes]
1481
--disable-libtool-lock avoid locking (might break parallel builds)
1484
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487
--with-pic try to use only PIC/non-PIC objects [default=use
1489
--with-tags[=TAGS] include additional configurations [automatic]
1491
Some influential environment variables:
1492
CC C compiler command
1493
CFLAGS C compiler flags
1494
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495
nonstandard directory <lib dir>
1496
LIBS libraries to pass to the linker, e.g. -l<library>
1497
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498
you have headers in a nonstandard directory <include dir>
1500
CXX C++ compiler command
1501
CXXFLAGS C++ compiler flags
1502
CXXCPP C++ preprocessor
1503
F77 Fortran 77 compiler command
1504
FFLAGS Fortran 77 compiler flags
1506
Use these variables to override the choices made by `configure' or to help
1507
it to find libraries and programs with nonstandard names/locations.
1513
if test "$ac_init_help" = "recursive"; then
1514
# If there are subdirs, report their specific --help.
1515
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516
test -d "$ac_dir" || continue
1520
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1523
# A ".." for each directory in $ac_dir_suffix.
1524
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1525
case $ac_top_builddir_sub in
1526
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530
ac_abs_top_builddir=$ac_pwd
1531
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532
# for backward compatibility:
1533
ac_top_builddir=$ac_top_build_prefix
1536
.) # We are building in place.
1538
ac_top_srcdir=$ac_top_builddir_sub
1539
ac_abs_top_srcdir=$ac_pwd ;;
1540
[\\/]* | ?:[\\/]* ) # Absolute name.
1541
ac_srcdir=$srcdir$ac_dir_suffix;
1542
ac_top_srcdir=$srcdir
1543
ac_abs_top_srcdir=$srcdir ;;
1545
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546
ac_top_srcdir=$ac_top_build_prefix$srcdir
1547
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
cd "$ac_dir" || { ac_status=$?; continue; }
1552
# Check for guested configure.
1553
if test -f "$ac_srcdir/configure.gnu"; then
1555
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556
elif test -f "$ac_srcdir/configure"; then
1558
$SHELL "$ac_srcdir/configure" --help=recursive
1560
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562
cd "$ac_pwd" || { ac_status=$?; break; }
1566
test -n "$ac_init_help" && exit $ac_status
1567
if $ac_init_version; then
1570
generated by GNU Autoconf 2.61
1572
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1573
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1574
This configure script is free software; the Free Software Foundation
1575
gives unlimited permission to copy, distribute and modify it.
1579
cat >config.log <<_ACEOF
1580
This file contains any messages produced by compilers while
1581
running configure, to aid debugging if configure makes a mistake.
1583
It was created by $as_me, which was
1584
generated by GNU Autoconf 2.61. Invocation command line was
1596
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619
test -z "$as_dir" && as_dir=.
1620
echo "PATH: $as_dir"
1636
# Keep a trace of the command line.
1637
# Strip out --no-create and --no-recursion so they do not pile up.
1638
# Strip out --silent because we don't want to record it for future runs.
1639
# Also quote any args containing shell meta-characters.
1640
# Make two passes to allow for proper duplicate-argument suppression.
1644
ac_must_keep_next=false
1650
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652
| -silent | --silent | --silen | --sile | --sil)
1655
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661
if test $ac_must_keep_next = true; then
1662
ac_must_keep_next=false # Got value, back to normal.
1665
*=* | --config-cache | -C | -disable-* | --disable-* \
1666
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668
| -with-* | --with-* | -without-* | --without-* | --x)
1669
case "$ac_configure_args0 " in
1670
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673
-* ) ac_must_keep_next=true ;;
1676
ac_configure_args="$ac_configure_args '$ac_arg'"
1681
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
# When interrupted or exit'd, cleanup temporary files, and complete
1685
# config.log. We remove comments because anyway the quotes in there
1686
# would cause problems or look ugly.
1687
# WARNING: Use '\'' to represent an apostrophe within the trap.
1688
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689
trap 'exit_status=$?
1690
# Save into config.log some information that might help in debugging.
1695
## ---------------- ##
1696
## Cache variables. ##
1697
## ---------------- ##
1700
# The following way of writing the cache mishandles newlines in values,
1702
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703
eval ac_val=\$$ac_var
1707
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711
_ | IFS | as_nl) ;; #(
1712
*) $as_unset $ac_var ;;
1717
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718
*${as_nl}ac_space=\ *)
1720
"s/'\''/'\''\\\\'\'''\''/g;
1721
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732
## ----------------- ##
1733
## Output variables. ##
1734
## ----------------- ##
1737
for ac_var in $ac_subst_vars
1739
eval ac_val=\$$ac_var
1741
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743
echo "$ac_var='\''$ac_val'\''"
1747
if test -n "$ac_subst_files"; then
1749
## ------------------- ##
1750
## File substitutions. ##
1751
## ------------------- ##
1754
for ac_var in $ac_subst_files
1756
eval ac_val=\$$ac_var
1758
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760
echo "$ac_var='\''$ac_val'\''"
1765
if test -s confdefs.h; then
1775
test "$ac_signal" != 0 &&
1776
echo "$as_me: caught signal $ac_signal"
1777
echo "$as_me: exit $exit_status"
1779
rm -f core *.core core.conftest.* &&
1780
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783
for ac_signal in 1 2 13 15; do
1784
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1789
rm -f -r conftest* confdefs.h
1791
# Predefined preprocessor variables.
1793
cat >>confdefs.h <<_ACEOF
1794
#define PACKAGE_NAME "$PACKAGE_NAME"
1798
cat >>confdefs.h <<_ACEOF
1799
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803
cat >>confdefs.h <<_ACEOF
1804
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1808
cat >>confdefs.h <<_ACEOF
1809
#define PACKAGE_STRING "$PACKAGE_STRING"
1813
cat >>confdefs.h <<_ACEOF
1814
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818
# Let the site file select an alternate cache file if it wants to.
1819
# Prefer explicitly selected file to automatically selected ones.
1820
if test -n "$CONFIG_SITE"; then
1821
set x "$CONFIG_SITE"
1822
elif test "x$prefix" != xNONE; then
1823
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825
set x "$ac_default_prefix/share/config.site" \
1826
"$ac_default_prefix/etc/config.site"
1831
if test -r "$ac_site_file"; then
1832
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833
echo "$as_me: loading site script $ac_site_file" >&6;}
1834
sed 's/^/| /' "$ac_site_file" >&5
1839
if test -r "$cache_file"; then
1840
# Some versions of bash will fail to source /dev/null (special
1841
# files actually), so we avoid doing that.
1842
if test -f "$cache_file"; then
1843
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844
echo "$as_me: loading cache $cache_file" >&6;}
1846
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1847
*) . "./$cache_file";;
1851
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852
echo "$as_me: creating cache $cache_file" >&6;}
1856
# Check that the precious variables saved in the cache have kept the same
1858
ac_cache_corrupted=false
1859
for ac_var in $ac_precious_vars; do
1860
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861
eval ac_new_set=\$ac_env_${ac_var}_set
1862
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863
eval ac_new_val=\$ac_env_${ac_var}_value
1864
case $ac_old_set,$ac_new_set in
1866
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868
ac_cache_corrupted=: ;;
1870
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872
ac_cache_corrupted=: ;;
1875
if test "x$ac_old_val" != "x$ac_new_val"; then
1876
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879
echo "$as_me: former value: $ac_old_val" >&2;}
1880
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881
echo "$as_me: current value: $ac_new_val" >&2;}
1882
ac_cache_corrupted=:
1885
# Pass precious variables to config.status.
1886
if test "$ac_new_set" = set; then
1888
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889
*) ac_arg=$ac_var=$ac_new_val ;;
1891
case " $ac_configure_args " in
1892
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897
if $ac_cache_corrupted; then
1898
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902
{ (exit 1); exit 1; }; }
1922
ac_cpp='$CPP $CPPFLAGS'
1923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930
for ac_dir in ../build-aux "$srcdir"/../build-aux; do
1931
if test -f "$ac_dir/install-sh"; then
1933
ac_install_sh="$ac_aux_dir/install-sh -c"
1935
elif test -f "$ac_dir/install.sh"; then
1937
ac_install_sh="$ac_aux_dir/install.sh -c"
1939
elif test -f "$ac_dir/shtool"; then
1941
ac_install_sh="$ac_aux_dir/shtool install -c"
1945
if test -z "$ac_aux_dir"; then
1946
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
1947
echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
1948
{ (exit 1); exit 1; }; }
1951
# These three variables are undocumented and unsupported,
1952
# and are intended to be withdrawn in a future Autoconf release.
1953
# They can cause serious problems if a builder's source tree is in a directory
1954
# whose full name contains unusual characters.
1955
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1960
. $srcdir/../version.sh
1961
am__api_version='1.10'
1963
# Find a good install program. We prefer a C program (faster),
1964
# so one script is as good as another. But avoid the broken or
1965
# incompatible versions:
1966
# SysV /etc/install, /usr/sbin/install
1967
# SunOS /usr/etc/install
1968
# IRIX /sbin/install
1970
# AmigaOS /C/install, which installs bootblocks on floppy discs
1971
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1972
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1973
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1974
# OS/2's system install, which has a completely different semantic
1975
# ./install, which can be erroneously created by make from ./install.sh.
1976
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1977
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1978
if test -z "$INSTALL"; then
1979
if test "${ac_cv_path_install+set}" = set; then
1980
echo $ECHO_N "(cached) $ECHO_C" >&6
1982
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986
test -z "$as_dir" && as_dir=.
1987
# Account for people who put trailing slashes in PATH elements.
1989
./ | .// | /cC/* | \
1990
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1991
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1994
# OSF1 and SCO ODT 3.0 have their own names for install.
1995
# Don't use installbsd from OSF since it installs stuff as root
1997
for ac_prog in ginstall scoinst install; do
1998
for ac_exec_ext in '' $ac_executable_extensions; do
1999
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2000
if test $ac_prog = install &&
2001
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2002
# AIX install. It has an incompatible calling convention.
2004
elif test $ac_prog = install &&
2005
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006
# program-specific install script used by HP pwplus--don't use.
2009
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2022
if test "${ac_cv_path_install+set}" = set; then
2023
INSTALL=$ac_cv_path_install
2025
# As a last resort, use the slow shell script. Don't cache a
2026
# value for INSTALL within a source directory, because that will
2027
# break other packages using the cache if that directory is
2028
# removed, or if the value is a relative name.
2029
INSTALL=$ac_install_sh
2032
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2033
echo "${ECHO_T}$INSTALL" >&6; }
2035
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2036
# It thinks the first close brace ends the variable substitution.
2037
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2039
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2041
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2043
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2044
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2047
echo timestamp > conftest.file
2048
# Do `set' in a subshell so we don't clobber the current shell's
2049
# arguments. Must try -L first in case configure is actually a
2050
# symlink; some systems play weird games with the mod time of symlinks
2051
# (eg FreeBSD returns the mod time of the symlink's containing
2054
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2055
if test "$*" = "X"; then
2057
set X `ls -t $srcdir/configure conftest.file`
2060
if test "$*" != "X $srcdir/configure conftest.file" \
2061
&& test "$*" != "X conftest.file $srcdir/configure"; then
2063
# If neither matched, then we have a broken ls. This can happen
2064
# if, for instance, CONFIG_SHELL is bash and it inherits a
2065
# broken ls alias from the environment. This has actually
2066
# happened. Such a system could not be considered "sane".
2067
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2068
alias in your environment" >&5
2069
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2070
alias in your environment" >&2;}
2071
{ (exit 1); exit 1; }; }
2074
test "$2" = conftest.file
2080
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2081
Check your system clock" >&5
2082
echo "$as_me: error: newly created file is older than distributed files!
2083
Check your system clock" >&2;}
2084
{ (exit 1); exit 1; }; }
2086
{ echo "$as_me:$LINENO: result: yes" >&5
2087
echo "${ECHO_T}yes" >&6; }
2088
test "$program_prefix" != NONE &&
2089
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2090
# Use a double $ so make ignores it.
2091
test "$program_suffix" != NONE &&
2092
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2093
# Double any \ or $. echo might interpret backslashes.
2094
# By default was `s,x,x', remove it if useless.
2095
cat <<\_ACEOF >conftest.sed
2096
s/[\\$]/&&/g;s/;s,x,x,$//
2098
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2101
# expand $ac_aux_dir to an absolute path
2102
am_aux_dir=`cd $ac_aux_dir && pwd`
2104
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2105
# Use eval to expand $SHELL
2106
if eval "$MISSING --run true"; then
2107
am_missing_run="$MISSING --run "
2110
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2111
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2114
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2115
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2116
if test -z "$MKDIR_P"; then
2117
if test "${ac_cv_path_mkdir+set}" = set; then
2118
echo $ECHO_N "(cached) $ECHO_C" >&6
2120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2124
test -z "$as_dir" && as_dir=.
2125
for ac_prog in mkdir gmkdir; do
2126
for ac_exec_ext in '' $ac_executable_extensions; do
2127
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2128
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2129
'mkdir (GNU coreutils) '* | \
2130
'mkdir (coreutils) '* | \
2131
'mkdir (fileutils) '4.1*)
2132
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2142
if test "${ac_cv_path_mkdir+set}" = set; then
2143
MKDIR_P="$ac_cv_path_mkdir -p"
2145
# As a last resort, use the slow shell script. Don't cache a
2146
# value for MKDIR_P within a source directory, because that will
2147
# break other packages using the cache if that directory is
2148
# removed, or if the value is a relative name.
2149
test -d ./--version && rmdir ./--version
2150
MKDIR_P="$ac_install_sh -d"
2153
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2154
echo "${ECHO_T}$MKDIR_P" >&6; }
2158
[\\/$]* | ?:[\\/]*) ;;
2159
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2162
for ac_prog in gawk mawk nawk awk
2164
# Extract the first word of "$ac_prog", so it can be a program name with args.
2165
set dummy $ac_prog; ac_word=$2
2166
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168
if test "${ac_cv_prog_AWK+set}" = set; then
2169
echo $ECHO_N "(cached) $ECHO_C" >&6
2171
if test -n "$AWK"; then
2172
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178
test -z "$as_dir" && as_dir=.
2179
for ac_exec_ext in '' $ac_executable_extensions; do
2180
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181
ac_cv_prog_AWK="$ac_prog"
2182
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192
if test -n "$AWK"; then
2193
{ echo "$as_me:$LINENO: result: $AWK" >&5
2194
echo "${ECHO_T}$AWK" >&6; }
2196
{ echo "$as_me:$LINENO: result: no" >&5
2197
echo "${ECHO_T}no" >&6; }
2201
test -n "$AWK" && break
2204
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2205
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2206
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2207
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2208
echo $ECHO_N "(cached) $ECHO_C" >&6
2210
cat >conftest.make <<\_ACEOF
2213
@echo '@@@%%%=$(MAKE)=@@@%%%'
2215
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2216
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2218
eval ac_cv_prog_make_${ac_make}_set=yes;;
2220
eval ac_cv_prog_make_${ac_make}_set=no;;
2224
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2225
{ echo "$as_me:$LINENO: result: yes" >&5
2226
echo "${ECHO_T}yes" >&6; }
2229
{ echo "$as_me:$LINENO: result: no" >&5
2230
echo "${ECHO_T}no" >&6; }
2231
SET_MAKE="MAKE=${MAKE-make}"
2234
rm -rf .tst 2>/dev/null
2235
mkdir .tst 2>/dev/null
2236
if test -d .tst; then
2241
rmdir .tst 2>/dev/null
2243
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2244
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2245
# is not polluted with repeated "-I."
2246
am__isrc=' -I$(srcdir)'
2247
# test to see if srcdir already configured
2248
if test -f $srcdir/config.status; then
2249
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2250
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2251
{ (exit 1); exit 1; }; }
2255
# test whether we have cygpath
2256
if test -z "$CYGPATH_W"; then
2257
if (cygpath --version) >/dev/null 2>/dev/null; then
2258
CYGPATH_W='cygpath -w'
2265
# Define the identity of the package.
2266
PACKAGE=autoconf-lib-link
2267
VERSION=$VERSION_NUMBER
2270
cat >>confdefs.h <<_ACEOF
2271
#define PACKAGE "$PACKAGE"
2275
cat >>confdefs.h <<_ACEOF
2276
#define VERSION "$VERSION"
2279
# Some tools Automake needs.
2281
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2297
# Installed binaries are usually stripped using `strip' when the user
2298
# run `make install-strip'. However `strip' might not be the right
2299
# tool to use in cross-compilation environments, therefore Automake
2300
# will honor the `STRIP' environment variable to overrule this program.
2301
if test "$cross_compiling" != no; then
2302
if test -n "$ac_tool_prefix"; then
2303
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304
set dummy ${ac_tool_prefix}strip; ac_word=$2
2305
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307
if test "${ac_cv_prog_STRIP+set}" = set; then
2308
echo $ECHO_N "(cached) $ECHO_C" >&6
2310
if test -n "$STRIP"; then
2311
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317
test -z "$as_dir" && as_dir=.
2318
for ac_exec_ext in '' $ac_executable_extensions; do
2319
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330
STRIP=$ac_cv_prog_STRIP
2331
if test -n "$STRIP"; then
2332
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2333
echo "${ECHO_T}$STRIP" >&6; }
2335
{ echo "$as_me:$LINENO: result: no" >&5
2336
echo "${ECHO_T}no" >&6; }
2341
if test -z "$ac_cv_prog_STRIP"; then
2343
# Extract the first word of "strip", so it can be a program name with args.
2344
set dummy strip; ac_word=$2
2345
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2346
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348
echo $ECHO_N "(cached) $ECHO_C" >&6
2350
if test -n "$ac_ct_STRIP"; then
2351
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357
test -z "$as_dir" && as_dir=.
2358
for ac_exec_ext in '' $ac_executable_extensions; do
2359
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360
ac_cv_prog_ac_ct_STRIP="strip"
2361
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371
if test -n "$ac_ct_STRIP"; then
2372
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2375
{ echo "$as_me:$LINENO: result: no" >&5
2376
echo "${ECHO_T}no" >&6; }
2379
if test "x$ac_ct_STRIP" = x; then
2382
case $cross_compiling:$ac_tool_warned in
2384
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385
whose name does not start with the host triplet. If you think this
2386
configuration is useful to you, please write to autoconf@gnu.org." >&5
2387
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388
whose name does not start with the host triplet. If you think this
2389
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390
ac_tool_warned=yes ;;
2395
STRIP="$ac_cv_prog_STRIP"
2399
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2401
# We need awk for the "check" target. The system "awk" is bad on
2403
# Always define AMTAR for backward compatibility.
2405
AMTAR=${AMTAR-"${am_missing_run}tar"}
2407
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2415
ac_cpp='$CPP $CPPFLAGS'
2416
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419
if test -n "$ac_tool_prefix"; then
2420
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2422
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424
if test "${ac_cv_prog_CC+set}" = set; then
2425
echo $ECHO_N "(cached) $ECHO_C" >&6
2427
if test -n "$CC"; then
2428
ac_cv_prog_CC="$CC" # Let the user override the test.
2430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434
test -z "$as_dir" && as_dir=.
2435
for ac_exec_ext in '' $ac_executable_extensions; do
2436
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2438
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448
if test -n "$CC"; then
2449
{ echo "$as_me:$LINENO: result: $CC" >&5
2450
echo "${ECHO_T}$CC" >&6; }
2452
{ echo "$as_me:$LINENO: result: no" >&5
2453
echo "${ECHO_T}no" >&6; }
2458
if test -z "$ac_cv_prog_CC"; then
2460
# Extract the first word of "gcc", so it can be a program name with args.
2461
set dummy gcc; ac_word=$2
2462
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465
echo $ECHO_N "(cached) $ECHO_C" >&6
2467
if test -n "$ac_ct_CC"; then
2468
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474
test -z "$as_dir" && as_dir=.
2475
for ac_exec_ext in '' $ac_executable_extensions; do
2476
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477
ac_cv_prog_ac_ct_CC="gcc"
2478
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488
if test -n "$ac_ct_CC"; then
2489
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2490
echo "${ECHO_T}$ac_ct_CC" >&6; }
2492
{ echo "$as_me:$LINENO: result: no" >&5
2493
echo "${ECHO_T}no" >&6; }
2496
if test "x$ac_ct_CC" = x; then
2499
case $cross_compiling:$ac_tool_warned in
2501
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2502
whose name does not start with the host triplet. If you think this
2503
configuration is useful to you, please write to autoconf@gnu.org." >&5
2504
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2505
whose name does not start with the host triplet. If you think this
2506
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2507
ac_tool_warned=yes ;;
2515
if test -z "$CC"; then
2516
if test -n "$ac_tool_prefix"; then
2517
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2518
set dummy ${ac_tool_prefix}cc; ac_word=$2
2519
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2520
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521
if test "${ac_cv_prog_CC+set}" = set; then
2522
echo $ECHO_N "(cached) $ECHO_C" >&6
2524
if test -n "$CC"; then
2525
ac_cv_prog_CC="$CC" # Let the user override the test.
2527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531
test -z "$as_dir" && as_dir=.
2532
for ac_exec_ext in '' $ac_executable_extensions; do
2533
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534
ac_cv_prog_CC="${ac_tool_prefix}cc"
2535
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545
if test -n "$CC"; then
2546
{ echo "$as_me:$LINENO: result: $CC" >&5
2547
echo "${ECHO_T}$CC" >&6; }
2549
{ echo "$as_me:$LINENO: result: no" >&5
2550
echo "${ECHO_T}no" >&6; }
2556
if test -z "$CC"; then
2557
# Extract the first word of "cc", so it can be a program name with args.
2558
set dummy cc; ac_word=$2
2559
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2560
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561
if test "${ac_cv_prog_CC+set}" = set; then
2562
echo $ECHO_N "(cached) $ECHO_C" >&6
2564
if test -n "$CC"; then
2565
ac_cv_prog_CC="$CC" # Let the user override the test.
2568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572
test -z "$as_dir" && as_dir=.
2573
for ac_exec_ext in '' $ac_executable_extensions; do
2574
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2576
ac_prog_rejected=yes
2580
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587
if test $ac_prog_rejected = yes; then
2588
# We found a bogon in the path, so make sure we never use it.
2589
set dummy $ac_cv_prog_CC
2591
if test $# != 0; then
2592
# We chose a different compiler from the bogus one.
2593
# However, it has the same basename, so the bogon will be chosen
2594
# first if we set CC to just the basename; use the full file name.
2596
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2602
if test -n "$CC"; then
2603
{ echo "$as_me:$LINENO: result: $CC" >&5
2604
echo "${ECHO_T}$CC" >&6; }
2606
{ echo "$as_me:$LINENO: result: no" >&5
2607
echo "${ECHO_T}no" >&6; }
2612
if test -z "$CC"; then
2613
if test -n "$ac_tool_prefix"; then
2614
for ac_prog in cl.exe
2616
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2619
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620
if test "${ac_cv_prog_CC+set}" = set; then
2621
echo $ECHO_N "(cached) $ECHO_C" >&6
2623
if test -n "$CC"; then
2624
ac_cv_prog_CC="$CC" # Let the user override the test.
2626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630
test -z "$as_dir" && as_dir=.
2631
for ac_exec_ext in '' $ac_executable_extensions; do
2632
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2634
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644
if test -n "$CC"; then
2645
{ echo "$as_me:$LINENO: result: $CC" >&5
2646
echo "${ECHO_T}$CC" >&6; }
2648
{ echo "$as_me:$LINENO: result: no" >&5
2649
echo "${ECHO_T}no" >&6; }
2653
test -n "$CC" && break
2656
if test -z "$CC"; then
2658
for ac_prog in cl.exe
2660
# Extract the first word of "$ac_prog", so it can be a program name with args.
2661
set dummy $ac_prog; ac_word=$2
2662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665
echo $ECHO_N "(cached) $ECHO_C" >&6
2667
if test -n "$ac_ct_CC"; then
2668
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674
test -z "$as_dir" && as_dir=.
2675
for ac_exec_ext in '' $ac_executable_extensions; do
2676
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677
ac_cv_prog_ac_ct_CC="$ac_prog"
2678
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688
if test -n "$ac_ct_CC"; then
2689
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690
echo "${ECHO_T}$ac_ct_CC" >&6; }
2692
{ echo "$as_me:$LINENO: result: no" >&5
2693
echo "${ECHO_T}no" >&6; }
2697
test -n "$ac_ct_CC" && break
2700
if test "x$ac_ct_CC" = x; then
2703
case $cross_compiling:$ac_tool_warned in
2705
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2706
whose name does not start with the host triplet. If you think this
2707
configuration is useful to you, please write to autoconf@gnu.org." >&5
2708
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2709
whose name does not start with the host triplet. If you think this
2710
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2711
ac_tool_warned=yes ;;
2720
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2721
See \`config.log' for more details." >&5
2722
echo "$as_me: error: no acceptable C compiler found in \$PATH
2723
See \`config.log' for more details." >&2;}
2724
{ (exit 1); exit 1; }; }
2726
# Provide some information about the compiler.
2727
echo "$as_me:$LINENO: checking for C compiler version" >&5
2728
ac_compiler=`set X $ac_compile; echo $2`
2729
{ (ac_try="$ac_compiler --version >&5"
2731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732
*) ac_try_echo=$ac_try;;
2734
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735
(eval "$ac_compiler --version >&5") 2>&5
2737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738
(exit $ac_status); }
2739
{ (ac_try="$ac_compiler -v >&5"
2741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742
*) ac_try_echo=$ac_try;;
2744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745
(eval "$ac_compiler -v >&5") 2>&5
2747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748
(exit $ac_status); }
2749
{ (ac_try="$ac_compiler -V >&5"
2751
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752
*) ac_try_echo=$ac_try;;
2754
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755
(eval "$ac_compiler -V >&5") 2>&5
2757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758
(exit $ac_status); }
2760
cat >conftest.$ac_ext <<_ACEOF
2763
cat confdefs.h >>conftest.$ac_ext
2764
cat >>conftest.$ac_ext <<_ACEOF
2765
/* end confdefs.h. */
2775
ac_clean_files_save=$ac_clean_files
2776
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2777
# Try to create an executable without -o first, disregard a.out.
2778
# It will help us diagnose broken compilers, and finding out an intuition
2780
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2781
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2782
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2784
# List of possible output files, starting from the most likely.
2785
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2786
# only as a last resort. b.out is created by i960 compilers.
2787
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2789
# The IRIX 6 linker writes into existing files which may not be
2790
# executable, retaining their permissions. Remove them first so a
2791
# subsequent execution test works.
2793
for ac_file in $ac_files
2796
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2797
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2802
if { (ac_try="$ac_link_default"
2804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805
*) ac_try_echo=$ac_try;;
2807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808
(eval "$ac_link_default") 2>&5
2810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811
(exit $ac_status); }; then
2812
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2813
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2814
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2815
# so that the user can short-circuit this test for compilers unknown to
2817
for ac_file in $ac_files ''
2819
test -f "$ac_file" || continue
2821
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2824
# We found the default executable, but exeext='' is most
2828
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2830
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2832
# We set ac_cv_exeext here because the later test for it is not
2833
# safe: cross compilers may not add the suffix if given an `-o'
2834
# argument, so we may need to know it at that point already.
2835
# Even if this section looks crufty: it has the advantage of
2842
test "$ac_cv_exeext" = no && ac_cv_exeext=
2848
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2849
echo "${ECHO_T}$ac_file" >&6; }
2850
if test -z "$ac_file"; then
2851
echo "$as_me: failed program was:" >&5
2852
sed 's/^/| /' conftest.$ac_ext >&5
2854
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2855
See \`config.log' for more details." >&5
2856
echo "$as_me: error: C compiler cannot create executables
2857
See \`config.log' for more details." >&2;}
2858
{ (exit 77); exit 77; }; }
2861
ac_exeext=$ac_cv_exeext
2863
# Check that the compiler produces executables we can run. If not, either
2864
# the compiler is broken, or we cross compile.
2865
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2866
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2867
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2868
# If not cross compiling, check that we can run a simple program.
2869
if test "$cross_compiling" != yes; then
2870
if { ac_try='./$ac_file'
2871
{ (case "(($ac_try" in
2872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873
*) ac_try_echo=$ac_try;;
2875
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876
(eval "$ac_try") 2>&5
2878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879
(exit $ac_status); }; }; then
2882
if test "$cross_compiling" = maybe; then
2885
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2886
If you meant to cross compile, use \`--host'.
2887
See \`config.log' for more details." >&5
2888
echo "$as_me: error: cannot run C compiled programs.
2889
If you meant to cross compile, use \`--host'.
2890
See \`config.log' for more details." >&2;}
2891
{ (exit 1); exit 1; }; }
2895
{ echo "$as_me:$LINENO: result: yes" >&5
2896
echo "${ECHO_T}yes" >&6; }
2898
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2899
ac_clean_files=$ac_clean_files_save
2900
# Check that the compiler produces executables we can run. If not, either
2901
# the compiler is broken, or we cross compile.
2902
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2903
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2904
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2905
echo "${ECHO_T}$cross_compiling" >&6; }
2907
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2908
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2909
if { (ac_try="$ac_link"
2911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912
*) ac_try_echo=$ac_try;;
2914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915
(eval "$ac_link") 2>&5
2917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918
(exit $ac_status); }; then
2919
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2920
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2921
# work properly (i.e., refer to `conftest.exe'), while it won't with
2923
for ac_file in conftest.exe conftest conftest.*; do
2924
test -f "$ac_file" || continue
2926
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2927
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2934
See \`config.log' for more details." >&5
2935
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2936
See \`config.log' for more details." >&2;}
2937
{ (exit 1); exit 1; }; }
2940
rm -f conftest$ac_cv_exeext
2941
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2942
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2944
rm -f conftest.$ac_ext
2945
EXEEXT=$ac_cv_exeext
2947
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2948
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2949
if test "${ac_cv_objext+set}" = set; then
2950
echo $ECHO_N "(cached) $ECHO_C" >&6
2952
cat >conftest.$ac_ext <<_ACEOF
2955
cat confdefs.h >>conftest.$ac_ext
2956
cat >>conftest.$ac_ext <<_ACEOF
2957
/* end confdefs.h. */
2967
rm -f conftest.o conftest.obj
2968
if { (ac_try="$ac_compile"
2970
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971
*) ac_try_echo=$ac_try;;
2973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974
(eval "$ac_compile") 2>&5
2976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977
(exit $ac_status); }; then
2978
for ac_file in conftest.o conftest.obj conftest.*; do
2979
test -f "$ac_file" || continue;
2981
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2982
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2987
echo "$as_me: failed program was:" >&5
2988
sed 's/^/| /' conftest.$ac_ext >&5
2990
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2991
See \`config.log' for more details." >&5
2992
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2993
See \`config.log' for more details." >&2;}
2994
{ (exit 1); exit 1; }; }
2997
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2999
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3000
echo "${ECHO_T}$ac_cv_objext" >&6; }
3001
OBJEXT=$ac_cv_objext
3003
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3004
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3005
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3006
echo $ECHO_N "(cached) $ECHO_C" >&6
3008
cat >conftest.$ac_ext <<_ACEOF
3011
cat confdefs.h >>conftest.$ac_ext
3012
cat >>conftest.$ac_ext <<_ACEOF
3013
/* end confdefs.h. */
3026
rm -f conftest.$ac_objext
3027
if { (ac_try="$ac_compile"
3029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030
*) ac_try_echo=$ac_try;;
3032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033
(eval "$ac_compile") 2>conftest.er1
3035
grep -v '^ *+' conftest.er1 >conftest.err
3037
cat conftest.err >&5
3038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039
(exit $ac_status); } && {
3040
test -z "$ac_c_werror_flag" ||
3041
test ! -s conftest.err
3042
} && test -s conftest.$ac_objext; then
3045
echo "$as_me: failed program was:" >&5
3046
sed 's/^/| /' conftest.$ac_ext >&5
3051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3055
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3057
GCC=`test $ac_compiler_gnu = yes && echo yes`
3058
ac_test_CFLAGS=${CFLAGS+set}
3059
ac_save_CFLAGS=$CFLAGS
3060
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3061
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3062
if test "${ac_cv_prog_cc_g+set}" = set; then
3063
echo $ECHO_N "(cached) $ECHO_C" >&6
3065
ac_save_c_werror_flag=$ac_c_werror_flag
3066
ac_c_werror_flag=yes
3069
cat >conftest.$ac_ext <<_ACEOF
3072
cat confdefs.h >>conftest.$ac_ext
3073
cat >>conftest.$ac_ext <<_ACEOF
3074
/* end confdefs.h. */
3084
rm -f conftest.$ac_objext
3085
if { (ac_try="$ac_compile"
3087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088
*) ac_try_echo=$ac_try;;
3090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091
(eval "$ac_compile") 2>conftest.er1
3093
grep -v '^ *+' conftest.er1 >conftest.err
3095
cat conftest.err >&5
3096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097
(exit $ac_status); } && {
3098
test -z "$ac_c_werror_flag" ||
3099
test ! -s conftest.err
3100
} && test -s conftest.$ac_objext; then
3103
echo "$as_me: failed program was:" >&5
3104
sed 's/^/| /' conftest.$ac_ext >&5
3107
cat >conftest.$ac_ext <<_ACEOF
3110
cat confdefs.h >>conftest.$ac_ext
3111
cat >>conftest.$ac_ext <<_ACEOF
3112
/* end confdefs.h. */
3122
rm -f conftest.$ac_objext
3123
if { (ac_try="$ac_compile"
3125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126
*) ac_try_echo=$ac_try;;
3128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129
(eval "$ac_compile") 2>conftest.er1
3131
grep -v '^ *+' conftest.er1 >conftest.err
3133
cat conftest.err >&5
3134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135
(exit $ac_status); } && {
3136
test -z "$ac_c_werror_flag" ||
3137
test ! -s conftest.err
3138
} && test -s conftest.$ac_objext; then
3141
echo "$as_me: failed program was:" >&5
3142
sed 's/^/| /' conftest.$ac_ext >&5
3144
ac_c_werror_flag=$ac_save_c_werror_flag
3146
cat >conftest.$ac_ext <<_ACEOF
3149
cat confdefs.h >>conftest.$ac_ext
3150
cat >>conftest.$ac_ext <<_ACEOF
3151
/* end confdefs.h. */
3161
rm -f conftest.$ac_objext
3162
if { (ac_try="$ac_compile"
3164
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165
*) ac_try_echo=$ac_try;;
3167
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168
(eval "$ac_compile") 2>conftest.er1
3170
grep -v '^ *+' conftest.er1 >conftest.err
3172
cat conftest.err >&5
3173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174
(exit $ac_status); } && {
3175
test -z "$ac_c_werror_flag" ||
3176
test ! -s conftest.err
3177
} && test -s conftest.$ac_objext; then
3180
echo "$as_me: failed program was:" >&5
3181
sed 's/^/| /' conftest.$ac_ext >&5
3186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193
ac_c_werror_flag=$ac_save_c_werror_flag
3195
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3196
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3197
if test "$ac_test_CFLAGS" = set; then
3198
CFLAGS=$ac_save_CFLAGS
3199
elif test $ac_cv_prog_cc_g = yes; then
3200
if test "$GCC" = yes; then
3206
if test "$GCC" = yes; then
3212
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3213
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3214
if test "${ac_cv_prog_cc_c89+set}" = set; then
3215
echo $ECHO_N "(cached) $ECHO_C" >&6
3217
ac_cv_prog_cc_c89=no
3219
cat >conftest.$ac_ext <<_ACEOF
3222
cat confdefs.h >>conftest.$ac_ext
3223
cat >>conftest.$ac_ext <<_ACEOF
3224
/* end confdefs.h. */
3227
#include <sys/types.h>
3228
#include <sys/stat.h>
3229
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3230
struct buf { int x; };
3231
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3232
static char *e (p, i)
3238
static char *f (char * (*g) (char **, int), char **p, ...)
3243
s = g (p, va_arg (v,int));
3248
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3249
function prototypes and stuff, but not '\xHH' hex character constants.
3250
These don't provoke an error unfortunately, instead are silently treated
3251
as 'x'. The following induces an error, until -std is added to get
3252
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3253
array size at least. It's necessary to write '\x00'==0 to get something
3254
that's true only with -std. */
3255
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3257
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3258
inside strings and character constants. */
3260
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3262
int test (int i, double x);
3263
struct s1 {int (*f) (int a);};
3264
struct s2 {int (*f) (double a);};
3265
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3277
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3279
CC="$ac_save_CC $ac_arg"
3280
rm -f conftest.$ac_objext
3281
if { (ac_try="$ac_compile"
3283
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284
*) ac_try_echo=$ac_try;;
3286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287
(eval "$ac_compile") 2>conftest.er1
3289
grep -v '^ *+' conftest.er1 >conftest.err
3291
cat conftest.err >&5
3292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293
(exit $ac_status); } && {
3294
test -z "$ac_c_werror_flag" ||
3295
test ! -s conftest.err
3296
} && test -s conftest.$ac_objext; then
3297
ac_cv_prog_cc_c89=$ac_arg
3299
echo "$as_me: failed program was:" >&5
3300
sed 's/^/| /' conftest.$ac_ext >&5
3305
rm -f core conftest.err conftest.$ac_objext
3306
test "x$ac_cv_prog_cc_c89" != "xno" && break
3308
rm -f conftest.$ac_ext
3313
case "x$ac_cv_prog_cc_c89" in
3315
{ echo "$as_me:$LINENO: result: none needed" >&5
3316
echo "${ECHO_T}none needed" >&6; } ;;
3318
{ echo "$as_me:$LINENO: result: unsupported" >&5
3319
echo "${ECHO_T}unsupported" >&6; } ;;
3321
CC="$CC $ac_cv_prog_cc_c89"
3322
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3323
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3328
ac_cpp='$CPP $CPPFLAGS'
3329
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
DEPDIR="${am__leading_dot}deps"
3334
ac_config_commands="$ac_config_commands depfiles"
3337
am_make=${MAKE-make}
3338
cat > confinc << 'END'
3343
# If we don't find an include directive, just comment out the code.
3344
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3345
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3349
# First try GNU make style include.
3350
echo "include confinc" > confmf
3351
# We grep out `Entering directory' and `Leaving directory'
3352
# messages which can occur if `w' ends up in MAKEFLAGS.
3353
# In particular we don't look at `^make:' because GNU make might
3354
# be invoked under some other name (usually "gmake"), in which
3355
# case it prints its new name instead of `make'.
3356
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3361
# Now try BSD make style include.
3362
if test "$am__include" = "#"; then
3363
echo '.include "confinc"' > confmf
3364
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3365
am__include=.include
3372
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3373
echo "${ECHO_T}$_am_result" >&6; }
3374
rm -f confinc confmf
3376
# Check whether --enable-dependency-tracking was given.
3377
if test "${enable_dependency_tracking+set}" = set; then
3378
enableval=$enable_dependency_tracking;
3381
if test "x$enable_dependency_tracking" != xno; then
3382
am_depcomp="$ac_aux_dir/depcomp"
3385
if test "x$enable_dependency_tracking" != xno; then
3395
depcc="$CC" am_compiler_list=
3397
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3398
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3399
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3400
echo $ECHO_N "(cached) $ECHO_C" >&6
3402
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3403
# We make a subdir and do the tests there. Otherwise we can end up
3404
# making bogus files that we don't know about and never remove. For
3405
# instance it was reported that on HP-UX the gcc test will end up
3406
# making a dummy file named `D' -- because `-MD' means `put the output
3409
# Copy depcomp to subdir because otherwise we won't find it if we're
3410
# using a relative directory.
3411
cp "$am_depcomp" conftest.dir
3413
# We will build objects and dependencies in a subdirectory because
3414
# it helps to detect inapplicable dependency modes. For instance
3415
# both Tru64's cc and ICC support -MD to output dependencies as a
3416
# side effect of compilation, but ICC will put the dependencies in
3417
# the current directory while Tru64 will put them in the object
3421
am_cv_CC_dependencies_compiler_type=none
3422
if test "$am_compiler_list" = ""; then
3423
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3425
for depmode in $am_compiler_list; do
3426
# Setup a source with many dependencies, because some compilers
3427
# like to wrap large dependency lists on column 80 (with \), and
3428
# we should not choose a depcomp mode which is confused by this.
3430
# We need to recreate these files for each test, as the compiler may
3431
# overwrite some of them when testing with obscure command lines.
3432
# This happens at least with the AIX C compiler.
3434
for i in 1 2 3 4 5 6; do
3435
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3436
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3437
# Solaris 8's {/usr,}/bin/sh.
3438
touch sub/conftst$i.h
3440
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444
# after this tag, mechanisms are not by side-effect, so they'll
3445
# only be used when explicitly requested
3446
if test "x$enable_dependency_tracking" = xyes; then
3454
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3455
# mode. It turns out that the SunPro C++ compiler does not properly
3456
# handle `-M -o', and we need to detect this.
3457
if depmode=$depmode \
3458
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3459
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3460
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3461
>/dev/null 2>conftest.err &&
3462
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3463
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3464
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3465
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3466
# icc doesn't choke on unknown options, it will just issue warnings
3467
# or remarks (even with -Werror). So we grep stderr for any message
3468
# that says an option was ignored or not supported.
3469
# When given -MP, icc 7.0 and 7.1 complain thusly:
3470
# icc: Command line warning: ignoring option '-M'; no argument required
3471
# The diagnosis changed in icc 8.0:
3472
# icc: Command line remark: option '-MP' not supported
3473
if (grep 'ignoring option' conftest.err ||
3474
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3475
am_cv_CC_dependencies_compiler_type=$depmode
3484
am_cv_CC_dependencies_compiler_type=none
3488
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3489
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3490
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3493
test "x$enable_dependency_tracking" != xno \
3494
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3496
am__fastdepCC_FALSE='#'
3498
am__fastdepCC_TRUE='#'
3499
am__fastdepCC_FALSE=
3503
# Find a good install program. We prefer a C program (faster),
3504
# so one script is as good as another. But avoid the broken or
3505
# incompatible versions:
3506
# SysV /etc/install, /usr/sbin/install
3507
# SunOS /usr/etc/install
3508
# IRIX /sbin/install
3510
# AmigaOS /C/install, which installs bootblocks on floppy discs
3511
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3512
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3513
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3514
# OS/2's system install, which has a completely different semantic
3515
# ./install, which can be erroneously created by make from ./install.sh.
3516
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3517
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3518
if test -z "$INSTALL"; then
3519
if test "${ac_cv_path_install+set}" = set; then
3520
echo $ECHO_N "(cached) $ECHO_C" >&6
3522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526
test -z "$as_dir" && as_dir=.
3527
# Account for people who put trailing slashes in PATH elements.
3529
./ | .// | /cC/* | \
3530
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3531
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3534
# OSF1 and SCO ODT 3.0 have their own names for install.
3535
# Don't use installbsd from OSF since it installs stuff as root
3537
for ac_prog in ginstall scoinst install; do
3538
for ac_exec_ext in '' $ac_executable_extensions; do
3539
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3540
if test $ac_prog = install &&
3541
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3542
# AIX install. It has an incompatible calling convention.
3544
elif test $ac_prog = install &&
3545
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3546
# program-specific install script used by HP pwplus--don't use.
3549
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3562
if test "${ac_cv_path_install+set}" = set; then
3563
INSTALL=$ac_cv_path_install
3565
# As a last resort, use the slow shell script. Don't cache a
3566
# value for INSTALL within a source directory, because that will
3567
# break other packages using the cache if that directory is
3568
# removed, or if the value is a relative name.
3569
INSTALL=$ac_install_sh
3572
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3573
echo "${ECHO_T}$INSTALL" >&6; }
3575
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3576
# It thinks the first close brace ends the variable substitution.
3577
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3579
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3581
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3584
# Make sure we can run config.sub.
3585
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3586
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3587
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3588
{ (exit 1); exit 1; }; }
3590
{ echo "$as_me:$LINENO: checking build system type" >&5
3591
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3592
if test "${ac_cv_build+set}" = set; then
3593
echo $ECHO_N "(cached) $ECHO_C" >&6
3595
ac_build_alias=$build_alias
3596
test "x$ac_build_alias" = x &&
3597
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3598
test "x$ac_build_alias" = x &&
3599
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3600
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3601
{ (exit 1); exit 1; }; }
3602
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3603
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3604
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3605
{ (exit 1); exit 1; }; }
3608
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3609
echo "${ECHO_T}$ac_cv_build" >&6; }
3610
case $ac_cv_build in
3612
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3613
echo "$as_me: error: invalid value of canonical build" >&2;}
3614
{ (exit 1); exit 1; }; };;
3617
ac_save_IFS=$IFS; IFS='-'
3623
# Remember, the first character of IFS is used to create $*,
3624
# except with old shells:
3627
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3630
{ echo "$as_me:$LINENO: checking host system type" >&5
3631
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3632
if test "${ac_cv_host+set}" = set; then
3633
echo $ECHO_N "(cached) $ECHO_C" >&6
3635
if test "x$host_alias" = x; then
3636
ac_cv_host=$ac_cv_build
3638
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3639
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3640
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3641
{ (exit 1); exit 1; }; }
3645
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3646
echo "${ECHO_T}$ac_cv_host" >&6; }
3649
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3650
echo "$as_me: error: invalid value of canonical host" >&2;}
3651
{ (exit 1); exit 1; }; };;
3654
ac_save_IFS=$IFS; IFS='-'
3660
# Remember, the first character of IFS is used to create $*,
3661
# except with old shells:
3664
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3677
{ echo "$as_me:$LINENO: checking for auto-import of symbols" >&5
3678
echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; }
3679
if test "${gl_cv_ld_autoimport+set}" = set; then
3680
echo $ECHO_N "(cached) $ECHO_C" >&6
3683
gl_save_LDFLAGS="$LDFLAGS"
3684
LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
3685
cat >conftest.$ac_ext <<_ACEOF
3688
cat confdefs.h >>conftest.$ac_ext
3689
cat >>conftest.$ac_ext <<_ACEOF
3690
/* end confdefs.h. */
3700
rm -f conftest.$ac_objext conftest$ac_exeext
3701
if { (ac_try="$ac_link"
3703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704
*) ac_try_echo=$ac_try;;
3706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707
(eval "$ac_link") 2>conftest.er1
3709
grep -v '^ *+' conftest.er1 >conftest.err
3711
cat conftest.err >&5
3712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713
(exit $ac_status); } && {
3714
test -z "$ac_c_werror_flag" ||
3715
test ! -s conftest.err
3716
} && test -s conftest$ac_exeext &&
3717
$as_test_x conftest$ac_exeext; then
3718
gl_cv_ld_autoimport=yes
3720
echo "$as_me: failed program was:" >&5
3721
sed 's/^/| /' conftest.$ac_ext >&5
3723
gl_cv_ld_autoimport=no
3726
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3727
conftest$ac_exeext conftest.$ac_ext
3728
LDFLAGS="$gl_save_LDFLAGS"
3731
{ echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5
3732
echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; }
3733
if test $gl_cv_ld_autoimport = yes; then
3734
LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
3741
# Check whether --enable-shared was given.
3742
if test "${enable_shared+set}" = set; then
3743
enableval=$enable_shared; p=${PACKAGE-default}
3745
yes) enable_shared=yes ;;
3746
no) enable_shared=no ;;
3749
# Look at the argument we got. We use all the common list separators.
3750
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3751
for pkg in $enableval; do
3753
if test "X$pkg" = "X$p"; then
3765
# Check whether --enable-static was given.
3766
if test "${enable_static+set}" = set; then
3767
enableval=$enable_static; p=${PACKAGE-default}
3769
yes) enable_static=yes ;;
3770
no) enable_static=no ;;
3773
# Look at the argument we got. We use all the common list separators.
3774
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3775
for pkg in $enableval; do
3777
if test "X$pkg" = "X$p"; then
3789
# Check whether --enable-fast-install was given.
3790
if test "${enable_fast_install+set}" = set; then
3791
enableval=$enable_fast_install; p=${PACKAGE-default}
3793
yes) enable_fast_install=yes ;;
3794
no) enable_fast_install=no ;;
3796
enable_fast_install=no
3797
# Look at the argument we got. We use all the common list separators.
3798
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3799
for pkg in $enableval; do
3801
if test "X$pkg" = "X$p"; then
3802
enable_fast_install=yes
3809
enable_fast_install=yes
3813
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3814
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3815
if test "${lt_cv_path_SED+set}" = set; then
3816
echo $ECHO_N "(cached) $ECHO_C" >&6
3818
# Loop through the user's path and test for sed and gsed.
3819
# Then use that list of sed's as ones to test for truncation.
3820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824
test -z "$as_dir" && as_dir=.
3825
for lt_ac_prog in sed gsed; do
3826
for ac_exec_ext in '' $ac_executable_extensions; do
3827
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3828
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3836
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3837
# along with /bin/sed that truncates output.
3838
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3839
test ! -f $lt_ac_sed && continue
3840
cat /dev/null > conftest.in
3842
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3843
# Check for GNU sed and select it if it is found.
3844
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3845
lt_cv_path_SED=$lt_ac_sed
3849
cat conftest.in conftest.in >conftest.tmp
3850
mv conftest.tmp conftest.in
3851
cp conftest.in conftest.nl
3853
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3854
cmp -s conftest.out conftest.nl || break
3855
# 10000 chars as input seems more than enough
3856
test $lt_ac_count -gt 10 && break
3857
lt_ac_count=`expr $lt_ac_count + 1`
3858
if test $lt_ac_count -gt $lt_ac_max; then
3859
lt_ac_max=$lt_ac_count
3860
lt_cv_path_SED=$lt_ac_sed
3869
{ echo "$as_me:$LINENO: result: $SED" >&5
3870
echo "${ECHO_T}$SED" >&6; }
3872
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3873
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3874
if test "${ac_cv_path_GREP+set}" = set; then
3875
echo $ECHO_N "(cached) $ECHO_C" >&6
3877
# Extract the first word of "grep ggrep" to use in msg output
3878
if test -z "$GREP"; then
3879
set dummy grep ggrep; ac_prog_name=$2
3880
if test "${ac_cv_path_GREP+set}" = set; then
3881
echo $ECHO_N "(cached) $ECHO_C" >&6
3883
ac_path_GREP_found=false
3884
# Loop through the user's path and test for each of PROGNAME-LIST
3885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889
test -z "$as_dir" && as_dir=.
3890
for ac_prog in grep ggrep; do
3891
for ac_exec_ext in '' $ac_executable_extensions; do
3892
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3893
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3894
# Check for GNU ac_path_GREP and select it if it is found.
3895
# Check for GNU $ac_path_GREP
3896
case `"$ac_path_GREP" --version 2>&1` in
3898
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904
cat "conftest.in" "conftest.in" >"conftest.tmp"
3905
mv "conftest.tmp" "conftest.in"
3906
cp "conftest.in" "conftest.nl"
3907
echo 'GREP' >> "conftest.nl"
3908
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910
ac_count=`expr $ac_count + 1`
3911
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3912
# Best one so far, save it but keep looking for a better one
3913
ac_cv_path_GREP="$ac_path_GREP"
3914
ac_path_GREP_max=$ac_count
3916
# 10*(2^10) chars as input seems more than enough
3917
test $ac_count -gt 10 && break
3919
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923
$ac_path_GREP_found && break 3
3933
GREP="$ac_cv_path_GREP"
3934
if test -z "$GREP"; then
3935
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937
{ (exit 1); exit 1; }; }
3941
ac_cv_path_GREP=$GREP
3946
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3947
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3948
GREP="$ac_cv_path_GREP"
3951
{ echo "$as_me:$LINENO: checking for egrep" >&5
3952
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3953
if test "${ac_cv_path_EGREP+set}" = set; then
3954
echo $ECHO_N "(cached) $ECHO_C" >&6
3956
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3957
then ac_cv_path_EGREP="$GREP -E"
3959
# Extract the first word of "egrep" to use in msg output
3960
if test -z "$EGREP"; then
3961
set dummy egrep; ac_prog_name=$2
3962
if test "${ac_cv_path_EGREP+set}" = set; then
3963
echo $ECHO_N "(cached) $ECHO_C" >&6
3965
ac_path_EGREP_found=false
3966
# Loop through the user's path and test for each of PROGNAME-LIST
3967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971
test -z "$as_dir" && as_dir=.
3972
for ac_prog in egrep; do
3973
for ac_exec_ext in '' $ac_executable_extensions; do
3974
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3975
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3976
# Check for GNU ac_path_EGREP and select it if it is found.
3977
# Check for GNU $ac_path_EGREP
3978
case `"$ac_path_EGREP" --version 2>&1` in
3980
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986
cat "conftest.in" "conftest.in" >"conftest.tmp"
3987
mv "conftest.tmp" "conftest.in"
3988
cp "conftest.in" "conftest.nl"
3989
echo 'EGREP' >> "conftest.nl"
3990
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992
ac_count=`expr $ac_count + 1`
3993
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3994
# Best one so far, save it but keep looking for a better one
3995
ac_cv_path_EGREP="$ac_path_EGREP"
3996
ac_path_EGREP_max=$ac_count
3998
# 10*(2^10) chars as input seems more than enough
3999
test $ac_count -gt 10 && break
4001
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005
$ac_path_EGREP_found && break 3
4015
EGREP="$ac_cv_path_EGREP"
4016
if test -z "$EGREP"; then
4017
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019
{ (exit 1); exit 1; }; }
4023
ac_cv_path_EGREP=$EGREP
4029
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4030
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4031
EGREP="$ac_cv_path_EGREP"
4035
# Check whether --with-gnu-ld was given.
4036
if test "${with_gnu_ld+set}" = set; then
4037
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4043
if test "$GCC" = yes; then
4044
# Check if gcc -print-prog-name=ld gives a path.
4045
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4046
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4049
# gcc leaves a trailing carriage return which upsets mingw
4050
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4052
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4055
# Accept absolute paths.
4057
re_direlt='/[^/][^/]*/\.\./'
4058
# Canonicalize the pathname of ld
4059
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4060
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4061
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4063
test -z "$LD" && LD="$ac_prog"
4066
# If it fails, then pretend we aren't using GCC.
4070
# If it is relative, then search for the first ld in PATH.
4074
elif test "$with_gnu_ld" = yes; then
4075
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4076
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4078
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4079
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4081
if test "${lt_cv_path_LD+set}" = set; then
4082
echo $ECHO_N "(cached) $ECHO_C" >&6
4084
if test -z "$LD"; then
4085
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4086
for ac_dir in $PATH; do
4088
test -z "$ac_dir" && ac_dir=.
4089
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4090
lt_cv_path_LD="$ac_dir/$ac_prog"
4091
# Check to see if the program is GNU ld. I'd rather use --version,
4092
# but apparently some variants of GNU ld only accept -v.
4093
# Break only if it was the GNU/non-GNU ld that we prefer.
4094
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4095
*GNU* | *'with BFD'*)
4096
test "$with_gnu_ld" != no && break
4099
test "$with_gnu_ld" != yes && break
4106
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4111
if test -n "$LD"; then
4112
{ echo "$as_me:$LINENO: result: $LD" >&5
4113
echo "${ECHO_T}$LD" >&6; }
4115
{ echo "$as_me:$LINENO: result: no" >&5
4116
echo "${ECHO_T}no" >&6; }
4118
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4119
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4120
{ (exit 1); exit 1; }; }
4121
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4122
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4123
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4124
echo $ECHO_N "(cached) $ECHO_C" >&6
4126
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4127
case `$LD -v 2>&1 </dev/null` in
4128
*GNU* | *'with BFD'*)
4129
lt_cv_prog_gnu_ld=yes
4132
lt_cv_prog_gnu_ld=no
4136
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4137
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4138
with_gnu_ld=$lt_cv_prog_gnu_ld
4141
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4142
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4143
if test "${lt_cv_ld_reload_flag+set}" = set; then
4144
echo $ECHO_N "(cached) $ECHO_C" >&6
4146
lt_cv_ld_reload_flag='-r'
4148
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4149
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4150
reload_flag=$lt_cv_ld_reload_flag
4151
case $reload_flag in
4153
*) reload_flag=" $reload_flag" ;;
4155
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4158
if test "$GCC" = yes; then
4159
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4161
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4166
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4167
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4168
if test "${lt_cv_path_NM+set}" = set; then
4169
echo $ECHO_N "(cached) $ECHO_C" >&6
4171
if test -n "$NM"; then
4172
# Let the user override the test.
4175
lt_nm_to_check="${ac_tool_prefix}nm"
4176
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4177
lt_nm_to_check="$lt_nm_to_check nm"
4179
for lt_tmp_nm in $lt_nm_to_check; do
4180
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4181
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4183
test -z "$ac_dir" && ac_dir=.
4184
tmp_nm="$ac_dir/$lt_tmp_nm"
4185
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4186
# Check to see if the nm accepts a BSD-compat flag.
4187
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4188
# nm: unknown option "B" ignored
4189
# Tru64's nm complains that /dev/null is an invalid object file
4190
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4191
*/dev/null* | *'Invalid file or object type'*)
4192
lt_cv_path_NM="$tmp_nm -B"
4196
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4198
lt_cv_path_NM="$tmp_nm -p"
4202
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4203
continue # so that we can try to find one that supports BSD flags
4212
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4215
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4216
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4219
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4220
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4222
if test "$LN_S" = "ln -s"; then
4223
{ echo "$as_me:$LINENO: result: yes" >&5
4224
echo "${ECHO_T}yes" >&6; }
4226
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4227
echo "${ECHO_T}no, using $LN_S" >&6; }
4230
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4231
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4232
if test "${lt_cv_deplibs_check_method+set}" = set; then
4233
echo $ECHO_N "(cached) $ECHO_C" >&6
4235
lt_cv_file_magic_cmd='$MAGIC_CMD'
4236
lt_cv_file_magic_test_file=
4237
lt_cv_deplibs_check_method='unknown'
4238
# Need to set the preceding variable on all platforms that support
4239
# interlibrary dependencies.
4240
# 'none' -- dependencies not supported.
4241
# `unknown' -- same as none, but documents that we really don't know.
4242
# 'pass_all' -- all dependencies passed with no checks.
4243
# 'test_compile' -- check by making test program.
4244
# 'file_magic [[regex]]' -- check by looking for files in library path
4245
# which responds to the $file_magic_cmd with a given extended regex.
4246
# If you have `file' or equivalent on your system and you're not sure
4247
# whether `pass_all' will *always* work, you probably want this one.
4251
lt_cv_deplibs_check_method=pass_all
4255
lt_cv_deplibs_check_method=pass_all
4259
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4260
lt_cv_file_magic_cmd='/usr/bin/file -L'
4261
lt_cv_file_magic_test_file=/shlib/libc.so
4265
# func_win32_libid is a shell function defined in ltmain.sh
4266
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4267
lt_cv_file_magic_cmd='func_win32_libid'
4271
# Base MSYS/MinGW do not provide the 'file' command needed by
4272
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4273
# unless we find 'file', for example because we are cross-compiling.
4274
if ( file / ) >/dev/null 2>&1; then
4275
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4276
lt_cv_file_magic_cmd='func_win32_libid'
4278
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4279
lt_cv_file_magic_cmd='$OBJDUMP -f'
4283
darwin* | rhapsody*)
4284
lt_cv_deplibs_check_method=pass_all
4287
freebsd* | dragonfly*)
4288
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4291
# Not sure whether the presence of OpenBSD here was a mistake.
4292
# Let's accept both of them until this is cleared up.
4293
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4294
lt_cv_file_magic_cmd=/usr/bin/file
4295
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4299
lt_cv_deplibs_check_method=pass_all
4304
lt_cv_deplibs_check_method=pass_all
4307
hpux10.20* | hpux11*)
4308
lt_cv_file_magic_cmd=/usr/bin/file
4311
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4312
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4315
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4316
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4319
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4320
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4326
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4327
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4330
irix5* | irix6* | nonstopux*)
4332
*-32|*"-32 ") libmagic=32-bit;;
4333
*-n32|*"-n32 ") libmagic=N32;;
4334
*-64|*"-64 ") libmagic=64-bit;;
4335
*) libmagic=never-match;;
4337
lt_cv_deplibs_check_method=pass_all
4340
# This must be Linux ELF.
4341
linux* | k*bsd*-gnu)
4342
lt_cv_deplibs_check_method=pass_all
4346
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4347
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4349
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4354
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4355
lt_cv_file_magic_cmd=/usr/bin/file
4356
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4360
lt_cv_deplibs_check_method=unknown
4364
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4365
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4367
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4371
osf3* | osf4* | osf5*)
4372
lt_cv_deplibs_check_method=pass_all
4376
lt_cv_deplibs_check_method=pass_all
4380
lt_cv_deplibs_check_method=pass_all
4384
case $host_vendor in
4386
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]'
4387
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4390
lt_cv_deplibs_check_method=pass_all
4393
lt_cv_file_magic_cmd='/bin/file'
4394
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4397
lt_cv_file_magic_cmd='/bin/file'
4398
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4399
lt_cv_file_magic_test_file=/lib/libc.so
4402
lt_cv_deplibs_check_method=pass_all
4405
lt_cv_deplibs_check_method=pass_all
4410
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4411
lt_cv_deplibs_check_method=pass_all
4416
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4417
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4418
file_magic_cmd=$lt_cv_file_magic_cmd
4419
deplibs_check_method=$lt_cv_deplibs_check_method
4420
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4423
# If no C compiler was specified, use CC.
4426
# If no C compiler flags were specified, use CFLAGS.
4427
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4429
# Allow CC to be a program name with arguments.
4432
# Check whether --enable-libtool-lock was given.
4433
if test "${enable_libtool_lock+set}" = set; then
4434
enableval=$enable_libtool_lock;
4437
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4439
# Some flags need to be propagated to the compiler or linker for good
4443
# Find out which ABI we are using.
4444
echo 'int i;' > conftest.$ac_ext
4445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446
(eval $ac_compile) 2>&5
4448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449
(exit $ac_status); }; then
4450
case `/usr/bin/file conftest.$ac_objext` in
4462
# Find out which ABI we are using.
4463
echo '#line 4463 "configure"' > conftest.$ac_ext
4464
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465
(eval $ac_compile) 2>&5
4467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468
(exit $ac_status); }; then
4469
if test "$lt_cv_prog_gnu_ld" = yes; then
4470
case `/usr/bin/file conftest.$ac_objext` in
4472
LD="${LD-ld} -melf32bsmip"
4475
LD="${LD-ld} -melf32bmipn32"
4478
LD="${LD-ld} -melf64bmip"
4482
case `/usr/bin/file conftest.$ac_objext` in
4498
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4499
s390*-*linux*|sparc*-*linux*)
4500
# Find out which ABI we are using.
4501
echo 'int i;' > conftest.$ac_ext
4502
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503
(eval $ac_compile) 2>&5
4505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
(exit $ac_status); }; then
4507
case `/usr/bin/file conftest.o` in
4510
x86_64-*kfreebsd*-gnu)
4511
LD="${LD-ld} -m elf_i386_fbsd"
4514
LD="${LD-ld} -m elf_i386"
4516
ppc64-*linux*|powerpc64-*linux*)
4517
LD="${LD-ld} -m elf32ppclinux"
4520
LD="${LD-ld} -m elf_s390"
4523
LD="${LD-ld} -m elf32_sparc"
4529
x86_64-*kfreebsd*-gnu)
4530
LD="${LD-ld} -m elf_x86_64_fbsd"
4533
LD="${LD-ld} -m elf_x86_64"
4535
ppc*-*linux*|powerpc*-*linux*)
4536
LD="${LD-ld} -m elf64ppc"
4539
LD="${LD-ld} -m elf64_s390"
4542
LD="${LD-ld} -m elf64_sparc"
4552
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4553
SAVE_CFLAGS="$CFLAGS"
4554
CFLAGS="$CFLAGS -belf"
4555
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4556
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4557
if test "${lt_cv_cc_needs_belf+set}" = set; then
4558
echo $ECHO_N "(cached) $ECHO_C" >&6
4561
ac_cpp='$CPP $CPPFLAGS'
4562
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4563
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4564
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
cat >conftest.$ac_ext <<_ACEOF
4569
cat confdefs.h >>conftest.$ac_ext
4570
cat >>conftest.$ac_ext <<_ACEOF
4571
/* end confdefs.h. */
4581
rm -f conftest.$ac_objext conftest$ac_exeext
4582
if { (ac_try="$ac_link"
4584
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585
*) ac_try_echo=$ac_try;;
4587
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588
(eval "$ac_link") 2>conftest.er1
4590
grep -v '^ *+' conftest.er1 >conftest.err
4592
cat conftest.err >&5
4593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
(exit $ac_status); } && {
4595
test -z "$ac_c_werror_flag" ||
4596
test ! -s conftest.err
4597
} && test -s conftest$ac_exeext &&
4598
$as_test_x conftest$ac_exeext; then
4599
lt_cv_cc_needs_belf=yes
4601
echo "$as_me: failed program was:" >&5
4602
sed 's/^/| /' conftest.$ac_ext >&5
4604
lt_cv_cc_needs_belf=no
4607
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4608
conftest$ac_exeext conftest.$ac_ext
4610
ac_cpp='$CPP $CPPFLAGS'
4611
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4617
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4618
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4619
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4620
CFLAGS="$SAVE_CFLAGS"
4624
# Find out which ABI we are using.
4625
echo 'int i;' > conftest.$ac_ext
4626
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627
(eval $ac_compile) 2>&5
4629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630
(exit $ac_status); }; then
4631
case `/usr/bin/file conftest.o` in
4633
case $lt_cv_prog_gnu_ld in
4634
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4635
*) LD="${LD-ld} -64" ;;
4643
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4644
if test -n "$ac_tool_prefix"; then
4645
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4646
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4647
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4650
echo $ECHO_N "(cached) $ECHO_C" >&6
4652
if test -n "$DLLTOOL"; then
4653
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659
test -z "$as_dir" && as_dir=.
4660
for ac_exec_ext in '' $ac_executable_extensions; do
4661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4663
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672
DLLTOOL=$ac_cv_prog_DLLTOOL
4673
if test -n "$DLLTOOL"; then
4674
{ echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4675
echo "${ECHO_T}$DLLTOOL" >&6; }
4677
{ echo "$as_me:$LINENO: result: no" >&5
4678
echo "${ECHO_T}no" >&6; }
4683
if test -z "$ac_cv_prog_DLLTOOL"; then
4684
ac_ct_DLLTOOL=$DLLTOOL
4685
# Extract the first word of "dlltool", so it can be a program name with args.
4686
set dummy dlltool; ac_word=$2
4687
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4688
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4690
echo $ECHO_N "(cached) $ECHO_C" >&6
4692
if test -n "$ac_ct_DLLTOOL"; then
4693
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699
test -z "$as_dir" && as_dir=.
4700
for ac_exec_ext in '' $ac_executable_extensions; do
4701
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4703
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4713
if test -n "$ac_ct_DLLTOOL"; then
4714
{ echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4715
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4717
{ echo "$as_me:$LINENO: result: no" >&5
4718
echo "${ECHO_T}no" >&6; }
4721
if test "x$ac_ct_DLLTOOL" = x; then
4724
case $cross_compiling:$ac_tool_warned in
4726
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4727
whose name does not start with the host triplet. If you think this
4728
configuration is useful to you, please write to autoconf@gnu.org." >&5
4729
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4730
whose name does not start with the host triplet. If you think this
4731
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4732
ac_tool_warned=yes ;;
4734
DLLTOOL=$ac_ct_DLLTOOL
4737
DLLTOOL="$ac_cv_prog_DLLTOOL"
4740
if test -n "$ac_tool_prefix"; then
4741
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4742
set dummy ${ac_tool_prefix}as; ac_word=$2
4743
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745
if test "${ac_cv_prog_AS+set}" = set; then
4746
echo $ECHO_N "(cached) $ECHO_C" >&6
4748
if test -n "$AS"; then
4749
ac_cv_prog_AS="$AS" # Let the user override the test.
4751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755
test -z "$as_dir" && as_dir=.
4756
for ac_exec_ext in '' $ac_executable_extensions; do
4757
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758
ac_cv_prog_AS="${ac_tool_prefix}as"
4759
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769
if test -n "$AS"; then
4770
{ echo "$as_me:$LINENO: result: $AS" >&5
4771
echo "${ECHO_T}$AS" >&6; }
4773
{ echo "$as_me:$LINENO: result: no" >&5
4774
echo "${ECHO_T}no" >&6; }
4779
if test -z "$ac_cv_prog_AS"; then
4781
# Extract the first word of "as", so it can be a program name with args.
4782
set dummy as; ac_word=$2
4783
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4786
echo $ECHO_N "(cached) $ECHO_C" >&6
4788
if test -n "$ac_ct_AS"; then
4789
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795
test -z "$as_dir" && as_dir=.
4796
for ac_exec_ext in '' $ac_executable_extensions; do
4797
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798
ac_cv_prog_ac_ct_AS="as"
4799
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4809
if test -n "$ac_ct_AS"; then
4810
{ echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4811
echo "${ECHO_T}$ac_ct_AS" >&6; }
4813
{ echo "$as_me:$LINENO: result: no" >&5
4814
echo "${ECHO_T}no" >&6; }
4817
if test "x$ac_ct_AS" = x; then
4820
case $cross_compiling:$ac_tool_warned in
4822
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4823
whose name does not start with the host triplet. If you think this
4824
configuration is useful to you, please write to autoconf@gnu.org." >&5
4825
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4826
whose name does not start with the host triplet. If you think this
4827
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4828
ac_tool_warned=yes ;;
4836
if test -n "$ac_tool_prefix"; then
4837
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4838
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4839
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4842
echo $ECHO_N "(cached) $ECHO_C" >&6
4844
if test -n "$OBJDUMP"; then
4845
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851
test -z "$as_dir" && as_dir=.
4852
for ac_exec_ext in '' $ac_executable_extensions; do
4853
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4855
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864
OBJDUMP=$ac_cv_prog_OBJDUMP
4865
if test -n "$OBJDUMP"; then
4866
{ echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4867
echo "${ECHO_T}$OBJDUMP" >&6; }
4869
{ echo "$as_me:$LINENO: result: no" >&5
4870
echo "${ECHO_T}no" >&6; }
4875
if test -z "$ac_cv_prog_OBJDUMP"; then
4876
ac_ct_OBJDUMP=$OBJDUMP
4877
# Extract the first word of "objdump", so it can be a program name with args.
4878
set dummy objdump; ac_word=$2
4879
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4880
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4882
echo $ECHO_N "(cached) $ECHO_C" >&6
4884
if test -n "$ac_ct_OBJDUMP"; then
4885
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891
test -z "$as_dir" && as_dir=.
4892
for ac_exec_ext in '' $ac_executable_extensions; do
4893
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4895
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4905
if test -n "$ac_ct_OBJDUMP"; then
4906
{ echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4907
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4909
{ echo "$as_me:$LINENO: result: no" >&5
4910
echo "${ECHO_T}no" >&6; }
4913
if test "x$ac_ct_OBJDUMP" = x; then
4916
case $cross_compiling:$ac_tool_warned in
4918
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4919
whose name does not start with the host triplet. If you think this
4920
configuration is useful to you, please write to autoconf@gnu.org." >&5
4921
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4922
whose name does not start with the host triplet. If you think this
4923
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4924
ac_tool_warned=yes ;;
4926
OBJDUMP=$ac_ct_OBJDUMP
4929
OBJDUMP="$ac_cv_prog_OBJDUMP"
4936
need_locks="$enable_libtool_lock"
4940
ac_cpp='$CPP $CPPFLAGS'
4941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4945
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4946
# On Suns, sometimes $CPP names a directory.
4947
if test -n "$CPP" && test -d "$CPP"; then
4950
if test -z "$CPP"; then
4951
if test "${ac_cv_prog_CPP+set}" = set; then
4952
echo $ECHO_N "(cached) $ECHO_C" >&6
4954
# Double quotes because CPP needs to be expanded
4955
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4958
for ac_c_preproc_warn_flag in '' yes
4960
# Use a header file that comes with gcc, so configuring glibc
4961
# with a fresh cross-compiler works.
4962
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4963
# <limits.h> exists even on freestanding compilers.
4964
# On the NeXT, cc -E runs the code through the compiler's parser,
4965
# not just through cpp. "Syntax error" is here to catch this case.
4966
cat >conftest.$ac_ext <<_ACEOF
4969
cat confdefs.h >>conftest.$ac_ext
4970
cat >>conftest.$ac_ext <<_ACEOF
4971
/* end confdefs.h. */
4973
# include <limits.h>
4975
# include <assert.h>
4979
if { (ac_try="$ac_cpp conftest.$ac_ext"
4981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982
*) ac_try_echo=$ac_try;;
4984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4987
grep -v '^ *+' conftest.er1 >conftest.err
4989
cat conftest.err >&5
4990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991
(exit $ac_status); } >/dev/null && {
4992
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4993
test ! -s conftest.err
4997
echo "$as_me: failed program was:" >&5
4998
sed 's/^/| /' conftest.$ac_ext >&5
5000
# Broken: fails on valid input.
5004
rm -f conftest.err conftest.$ac_ext
5006
# OK, works on sane cases. Now check whether nonexistent headers
5007
# can be detected and how.
5008
cat >conftest.$ac_ext <<_ACEOF
5011
cat confdefs.h >>conftest.$ac_ext
5012
cat >>conftest.$ac_ext <<_ACEOF
5013
/* end confdefs.h. */
5014
#include <ac_nonexistent.h>
5016
if { (ac_try="$ac_cpp conftest.$ac_ext"
5018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019
*) ac_try_echo=$ac_try;;
5021
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5024
grep -v '^ *+' conftest.er1 >conftest.err
5026
cat conftest.err >&5
5027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028
(exit $ac_status); } >/dev/null && {
5029
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5030
test ! -s conftest.err
5032
# Broken: success on invalid input.
5035
echo "$as_me: failed program was:" >&5
5036
sed 's/^/| /' conftest.$ac_ext >&5
5038
# Passes both tests.
5043
rm -f conftest.err conftest.$ac_ext
5046
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047
rm -f conftest.err conftest.$ac_ext
5048
if $ac_preproc_ok; then
5060
{ echo "$as_me:$LINENO: result: $CPP" >&5
5061
echo "${ECHO_T}$CPP" >&6; }
5063
for ac_c_preproc_warn_flag in '' yes
5065
# Use a header file that comes with gcc, so configuring glibc
5066
# with a fresh cross-compiler works.
5067
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5068
# <limits.h> exists even on freestanding compilers.
5069
# On the NeXT, cc -E runs the code through the compiler's parser,
5070
# not just through cpp. "Syntax error" is here to catch this case.
5071
cat >conftest.$ac_ext <<_ACEOF
5074
cat confdefs.h >>conftest.$ac_ext
5075
cat >>conftest.$ac_ext <<_ACEOF
5076
/* end confdefs.h. */
5078
# include <limits.h>
5080
# include <assert.h>
5084
if { (ac_try="$ac_cpp conftest.$ac_ext"
5086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087
*) ac_try_echo=$ac_try;;
5089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5090
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092
grep -v '^ *+' conftest.er1 >conftest.err
5094
cat conftest.err >&5
5095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096
(exit $ac_status); } >/dev/null && {
5097
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5098
test ! -s conftest.err
5102
echo "$as_me: failed program was:" >&5
5103
sed 's/^/| /' conftest.$ac_ext >&5
5105
# Broken: fails on valid input.
5109
rm -f conftest.err conftest.$ac_ext
5111
# OK, works on sane cases. Now check whether nonexistent headers
5112
# can be detected and how.
5113
cat >conftest.$ac_ext <<_ACEOF
5116
cat confdefs.h >>conftest.$ac_ext
5117
cat >>conftest.$ac_ext <<_ACEOF
5118
/* end confdefs.h. */
5119
#include <ac_nonexistent.h>
5121
if { (ac_try="$ac_cpp conftest.$ac_ext"
5123
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5124
*) ac_try_echo=$ac_try;;
5126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5129
grep -v '^ *+' conftest.er1 >conftest.err
5131
cat conftest.err >&5
5132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133
(exit $ac_status); } >/dev/null && {
5134
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5135
test ! -s conftest.err
5137
# Broken: success on invalid input.
5140
echo "$as_me: failed program was:" >&5
5141
sed 's/^/| /' conftest.$ac_ext >&5
5143
# Passes both tests.
5148
rm -f conftest.err conftest.$ac_ext
5151
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5152
rm -f conftest.err conftest.$ac_ext
5153
if $ac_preproc_ok; then
5156
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5157
See \`config.log' for more details." >&5
5158
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5159
See \`config.log' for more details." >&2;}
5160
{ (exit 1); exit 1; }; }
5164
ac_cpp='$CPP $CPPFLAGS'
5165
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5170
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5171
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5172
if test "${ac_cv_header_stdc+set}" = set; then
5173
echo $ECHO_N "(cached) $ECHO_C" >&6
5175
cat >conftest.$ac_ext <<_ACEOF
5178
cat confdefs.h >>conftest.$ac_ext
5179
cat >>conftest.$ac_ext <<_ACEOF
5180
/* end confdefs.h. */
5194
rm -f conftest.$ac_objext
5195
if { (ac_try="$ac_compile"
5197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198
*) ac_try_echo=$ac_try;;
5200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201
(eval "$ac_compile") 2>conftest.er1
5203
grep -v '^ *+' conftest.er1 >conftest.err
5205
cat conftest.err >&5
5206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207
(exit $ac_status); } && {
5208
test -z "$ac_c_werror_flag" ||
5209
test ! -s conftest.err
5210
} && test -s conftest.$ac_objext; then
5211
ac_cv_header_stdc=yes
5213
echo "$as_me: failed program was:" >&5
5214
sed 's/^/| /' conftest.$ac_ext >&5
5216
ac_cv_header_stdc=no
5219
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221
if test $ac_cv_header_stdc = yes; then
5222
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5223
cat >conftest.$ac_ext <<_ACEOF
5226
cat confdefs.h >>conftest.$ac_ext
5227
cat >>conftest.$ac_ext <<_ACEOF
5228
/* end confdefs.h. */
5232
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5233
$EGREP "memchr" >/dev/null 2>&1; then
5236
ac_cv_header_stdc=no
5242
if test $ac_cv_header_stdc = yes; then
5243
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5244
cat >conftest.$ac_ext <<_ACEOF
5247
cat confdefs.h >>conftest.$ac_ext
5248
cat >>conftest.$ac_ext <<_ACEOF
5249
/* end confdefs.h. */
5253
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254
$EGREP "free" >/dev/null 2>&1; then
5257
ac_cv_header_stdc=no
5263
if test $ac_cv_header_stdc = yes; then
5264
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5265
if test "$cross_compiling" = yes; then
5268
cat >conftest.$ac_ext <<_ACEOF
5271
cat confdefs.h >>conftest.$ac_ext
5272
cat >>conftest.$ac_ext <<_ACEOF
5273
/* end confdefs.h. */
5276
#if ((' ' & 0x0FF) == 0x020)
5277
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5278
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5280
# define ISLOWER(c) \
5281
(('a' <= (c) && (c) <= 'i') \
5282
|| ('j' <= (c) && (c) <= 'r') \
5283
|| ('s' <= (c) && (c) <= 'z'))
5284
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5287
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5292
for (i = 0; i < 256; i++)
5293
if (XOR (islower (i), ISLOWER (i))
5294
|| toupper (i) != TOUPPER (i))
5299
rm -f conftest$ac_exeext
5300
if { (ac_try="$ac_link"
5302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303
*) ac_try_echo=$ac_try;;
5305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306
(eval "$ac_link") 2>&5
5308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5310
{ (case "(($ac_try" in
5311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312
*) ac_try_echo=$ac_try;;
5314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315
(eval "$ac_try") 2>&5
5317
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318
(exit $ac_status); }; }; then
5321
echo "$as_me: program exited with status $ac_status" >&5
5322
echo "$as_me: failed program was:" >&5
5323
sed 's/^/| /' conftest.$ac_ext >&5
5326
ac_cv_header_stdc=no
5328
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5334
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5335
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5336
if test $ac_cv_header_stdc = yes; then
5338
cat >>confdefs.h <<\_ACEOF
5339
#define STDC_HEADERS 1
5344
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5354
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5355
inttypes.h stdint.h unistd.h
5357
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5359
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5360
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5361
echo $ECHO_N "(cached) $ECHO_C" >&6
5363
cat >conftest.$ac_ext <<_ACEOF
5366
cat confdefs.h >>conftest.$ac_ext
5367
cat >>conftest.$ac_ext <<_ACEOF
5368
/* end confdefs.h. */
5369
$ac_includes_default
5371
#include <$ac_header>
5373
rm -f conftest.$ac_objext
5374
if { (ac_try="$ac_compile"
5376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377
*) ac_try_echo=$ac_try;;
5379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380
(eval "$ac_compile") 2>conftest.er1
5382
grep -v '^ *+' conftest.er1 >conftest.err
5384
cat conftest.err >&5
5385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386
(exit $ac_status); } && {
5387
test -z "$ac_c_werror_flag" ||
5388
test ! -s conftest.err
5389
} && test -s conftest.$ac_objext; then
5390
eval "$as_ac_Header=yes"
5392
echo "$as_me: failed program was:" >&5
5393
sed 's/^/| /' conftest.$ac_ext >&5
5395
eval "$as_ac_Header=no"
5398
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400
ac_res=`eval echo '${'$as_ac_Header'}'`
5401
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5402
echo "${ECHO_T}$ac_res" >&6; }
5403
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5404
cat >>confdefs.h <<_ACEOF
5405
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5414
for ac_header in dlfcn.h
5416
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5418
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5419
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5420
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5421
echo $ECHO_N "(cached) $ECHO_C" >&6
5423
ac_res=`eval echo '${'$as_ac_Header'}'`
5424
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5425
echo "${ECHO_T}$ac_res" >&6; }
5427
# Is the header compilable?
5428
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5430
cat >conftest.$ac_ext <<_ACEOF
5433
cat confdefs.h >>conftest.$ac_ext
5434
cat >>conftest.$ac_ext <<_ACEOF
5435
/* end confdefs.h. */
5436
$ac_includes_default
5437
#include <$ac_header>
5439
rm -f conftest.$ac_objext
5440
if { (ac_try="$ac_compile"
5442
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443
*) ac_try_echo=$ac_try;;
5445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446
(eval "$ac_compile") 2>conftest.er1
5448
grep -v '^ *+' conftest.er1 >conftest.err
5450
cat conftest.err >&5
5451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452
(exit $ac_status); } && {
5453
test -z "$ac_c_werror_flag" ||
5454
test ! -s conftest.err
5455
} && test -s conftest.$ac_objext; then
5456
ac_header_compiler=yes
5458
echo "$as_me: failed program was:" >&5
5459
sed 's/^/| /' conftest.$ac_ext >&5
5461
ac_header_compiler=no
5464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466
echo "${ECHO_T}$ac_header_compiler" >&6; }
5468
# Is the header present?
5469
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5470
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5471
cat >conftest.$ac_ext <<_ACEOF
5474
cat confdefs.h >>conftest.$ac_ext
5475
cat >>conftest.$ac_ext <<_ACEOF
5476
/* end confdefs.h. */
5477
#include <$ac_header>
5479
if { (ac_try="$ac_cpp conftest.$ac_ext"
5481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482
*) ac_try_echo=$ac_try;;
5484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487
grep -v '^ *+' conftest.er1 >conftest.err
5489
cat conftest.err >&5
5490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491
(exit $ac_status); } >/dev/null && {
5492
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5493
test ! -s conftest.err
5495
ac_header_preproc=yes
5497
echo "$as_me: failed program was:" >&5
5498
sed 's/^/| /' conftest.$ac_ext >&5
5500
ac_header_preproc=no
5503
rm -f conftest.err conftest.$ac_ext
5504
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505
echo "${ECHO_T}$ac_header_preproc" >&6; }
5507
# So? What about this header?
5508
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5510
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5511
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5513
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5514
ac_header_preproc=yes
5517
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5518
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5519
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5520
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5521
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5522
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5523
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5524
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5525
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5526
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5527
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5528
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5532
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5533
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5534
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5535
echo $ECHO_N "(cached) $ECHO_C" >&6
5537
eval "$as_ac_Header=\$ac_header_preproc"
5539
ac_res=`eval echo '${'$as_ac_Header'}'`
5540
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5541
echo "${ECHO_T}$ac_res" >&6; }
5544
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5545
cat >>confdefs.h <<_ACEOF
5546
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5554
ac_cpp='$CXXCPP $CPPFLAGS'
5555
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5558
if test -z "$CXX"; then
5559
if test -n "$CCC"; then
5562
if test -n "$ac_tool_prefix"; then
5563
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5565
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5566
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5567
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5569
if test "${ac_cv_prog_CXX+set}" = set; then
5570
echo $ECHO_N "(cached) $ECHO_C" >&6
5572
if test -n "$CXX"; then
5573
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579
test -z "$as_dir" && as_dir=.
5580
for ac_exec_ext in '' $ac_executable_extensions; do
5581
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5583
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593
if test -n "$CXX"; then
5594
{ echo "$as_me:$LINENO: result: $CXX" >&5
5595
echo "${ECHO_T}$CXX" >&6; }
5597
{ echo "$as_me:$LINENO: result: no" >&5
5598
echo "${ECHO_T}no" >&6; }
5602
test -n "$CXX" && break
5605
if test -z "$CXX"; then
5607
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5609
# Extract the first word of "$ac_prog", so it can be a program name with args.
5610
set dummy $ac_prog; ac_word=$2
5611
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5612
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5613
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5614
echo $ECHO_N "(cached) $ECHO_C" >&6
5616
if test -n "$ac_ct_CXX"; then
5617
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623
test -z "$as_dir" && as_dir=.
5624
for ac_exec_ext in '' $ac_executable_extensions; do
5625
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626
ac_cv_prog_ac_ct_CXX="$ac_prog"
5627
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5637
if test -n "$ac_ct_CXX"; then
5638
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5639
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5641
{ echo "$as_me:$LINENO: result: no" >&5
5642
echo "${ECHO_T}no" >&6; }
5646
test -n "$ac_ct_CXX" && break
5649
if test "x$ac_ct_CXX" = x; then
5652
case $cross_compiling:$ac_tool_warned in
5654
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5655
whose name does not start with the host triplet. If you think this
5656
configuration is useful to you, please write to autoconf@gnu.org." >&5
5657
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5658
whose name does not start with the host triplet. If you think this
5659
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5660
ac_tool_warned=yes ;;
5668
# Provide some information about the compiler.
5669
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5670
ac_compiler=`set X $ac_compile; echo $2`
5671
{ (ac_try="$ac_compiler --version >&5"
5673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674
*) ac_try_echo=$ac_try;;
5676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677
(eval "$ac_compiler --version >&5") 2>&5
5679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680
(exit $ac_status); }
5681
{ (ac_try="$ac_compiler -v >&5"
5683
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684
*) ac_try_echo=$ac_try;;
5686
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687
(eval "$ac_compiler -v >&5") 2>&5
5689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690
(exit $ac_status); }
5691
{ (ac_try="$ac_compiler -V >&5"
5693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694
*) ac_try_echo=$ac_try;;
5696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697
(eval "$ac_compiler -V >&5") 2>&5
5699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700
(exit $ac_status); }
5702
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5703
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5704
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5705
echo $ECHO_N "(cached) $ECHO_C" >&6
5707
cat >conftest.$ac_ext <<_ACEOF
5710
cat confdefs.h >>conftest.$ac_ext
5711
cat >>conftest.$ac_ext <<_ACEOF
5712
/* end confdefs.h. */
5725
rm -f conftest.$ac_objext
5726
if { (ac_try="$ac_compile"
5728
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729
*) ac_try_echo=$ac_try;;
5731
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732
(eval "$ac_compile") 2>conftest.er1
5734
grep -v '^ *+' conftest.er1 >conftest.err
5736
cat conftest.err >&5
5737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738
(exit $ac_status); } && {
5739
test -z "$ac_cxx_werror_flag" ||
5740
test ! -s conftest.err
5741
} && test -s conftest.$ac_objext; then
5744
echo "$as_me: failed program was:" >&5
5745
sed 's/^/| /' conftest.$ac_ext >&5
5750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5754
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5755
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5756
GXX=`test $ac_compiler_gnu = yes && echo yes`
5757
ac_test_CXXFLAGS=${CXXFLAGS+set}
5758
ac_save_CXXFLAGS=$CXXFLAGS
5759
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5760
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5761
if test "${ac_cv_prog_cxx_g+set}" = set; then
5762
echo $ECHO_N "(cached) $ECHO_C" >&6
5764
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5765
ac_cxx_werror_flag=yes
5768
cat >conftest.$ac_ext <<_ACEOF
5771
cat confdefs.h >>conftest.$ac_ext
5772
cat >>conftest.$ac_ext <<_ACEOF
5773
/* end confdefs.h. */
5783
rm -f conftest.$ac_objext
5784
if { (ac_try="$ac_compile"
5786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787
*) ac_try_echo=$ac_try;;
5789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790
(eval "$ac_compile") 2>conftest.er1
5792
grep -v '^ *+' conftest.er1 >conftest.err
5794
cat conftest.err >&5
5795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796
(exit $ac_status); } && {
5797
test -z "$ac_cxx_werror_flag" ||
5798
test ! -s conftest.err
5799
} && test -s conftest.$ac_objext; then
5800
ac_cv_prog_cxx_g=yes
5802
echo "$as_me: failed program was:" >&5
5803
sed 's/^/| /' conftest.$ac_ext >&5
5806
cat >conftest.$ac_ext <<_ACEOF
5809
cat confdefs.h >>conftest.$ac_ext
5810
cat >>conftest.$ac_ext <<_ACEOF
5811
/* end confdefs.h. */
5821
rm -f conftest.$ac_objext
5822
if { (ac_try="$ac_compile"
5824
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825
*) ac_try_echo=$ac_try;;
5827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828
(eval "$ac_compile") 2>conftest.er1
5830
grep -v '^ *+' conftest.er1 >conftest.err
5832
cat conftest.err >&5
5833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834
(exit $ac_status); } && {
5835
test -z "$ac_cxx_werror_flag" ||
5836
test ! -s conftest.err
5837
} && test -s conftest.$ac_objext; then
5840
echo "$as_me: failed program was:" >&5
5841
sed 's/^/| /' conftest.$ac_ext >&5
5843
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5845
cat >conftest.$ac_ext <<_ACEOF
5848
cat confdefs.h >>conftest.$ac_ext
5849
cat >>conftest.$ac_ext <<_ACEOF
5850
/* end confdefs.h. */
5860
rm -f conftest.$ac_objext
5861
if { (ac_try="$ac_compile"
5863
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864
*) ac_try_echo=$ac_try;;
5866
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867
(eval "$ac_compile") 2>conftest.er1
5869
grep -v '^ *+' conftest.er1 >conftest.err
5871
cat conftest.err >&5
5872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873
(exit $ac_status); } && {
5874
test -z "$ac_cxx_werror_flag" ||
5875
test ! -s conftest.err
5876
} && test -s conftest.$ac_objext; then
5877
ac_cv_prog_cxx_g=yes
5879
echo "$as_me: failed program was:" >&5
5880
sed 's/^/| /' conftest.$ac_ext >&5
5885
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5894
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5895
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5896
if test "$ac_test_CXXFLAGS" = set; then
5897
CXXFLAGS=$ac_save_CXXFLAGS
5898
elif test $ac_cv_prog_cxx_g = yes; then
5899
if test "$GXX" = yes; then
5905
if test "$GXX" = yes; then
5912
ac_cpp='$CXXCPP $CPPFLAGS'
5913
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5917
depcc="$CXX" am_compiler_list=
5919
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5920
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5921
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5922
echo $ECHO_N "(cached) $ECHO_C" >&6
5924
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5925
# We make a subdir and do the tests there. Otherwise we can end up
5926
# making bogus files that we don't know about and never remove. For
5927
# instance it was reported that on HP-UX the gcc test will end up
5928
# making a dummy file named `D' -- because `-MD' means `put the output
5931
# Copy depcomp to subdir because otherwise we won't find it if we're
5932
# using a relative directory.
5933
cp "$am_depcomp" conftest.dir
5935
# We will build objects and dependencies in a subdirectory because
5936
# it helps to detect inapplicable dependency modes. For instance
5937
# both Tru64's cc and ICC support -MD to output dependencies as a
5938
# side effect of compilation, but ICC will put the dependencies in
5939
# the current directory while Tru64 will put them in the object
5943
am_cv_CXX_dependencies_compiler_type=none
5944
if test "$am_compiler_list" = ""; then
5945
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5947
for depmode in $am_compiler_list; do
5948
# Setup a source with many dependencies, because some compilers
5949
# like to wrap large dependency lists on column 80 (with \), and
5950
# we should not choose a depcomp mode which is confused by this.
5952
# We need to recreate these files for each test, as the compiler may
5953
# overwrite some of them when testing with obscure command lines.
5954
# This happens at least with the AIX C compiler.
5956
for i in 1 2 3 4 5 6; do
5957
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5958
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5959
# Solaris 8's {/usr,}/bin/sh.
5960
touch sub/conftst$i.h
5962
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5966
# after this tag, mechanisms are not by side-effect, so they'll
5967
# only be used when explicitly requested
5968
if test "x$enable_dependency_tracking" = xyes; then
5976
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5977
# mode. It turns out that the SunPro C++ compiler does not properly
5978
# handle `-M -o', and we need to detect this.
5979
if depmode=$depmode \
5980
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5981
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5982
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5983
>/dev/null 2>conftest.err &&
5984
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5985
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5986
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5987
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5988
# icc doesn't choke on unknown options, it will just issue warnings
5989
# or remarks (even with -Werror). So we grep stderr for any message
5990
# that says an option was ignored or not supported.
5991
# When given -MP, icc 7.0 and 7.1 complain thusly:
5992
# icc: Command line warning: ignoring option '-M'; no argument required
5993
# The diagnosis changed in icc 8.0:
5994
# icc: Command line remark: option '-MP' not supported
5995
if (grep 'ignoring option' conftest.err ||
5996
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5997
am_cv_CXX_dependencies_compiler_type=$depmode
6006
am_cv_CXX_dependencies_compiler_type=none
6010
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6011
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6012
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6015
test "x$enable_dependency_tracking" != xno \
6016
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6017
am__fastdepCXX_TRUE=
6018
am__fastdepCXX_FALSE='#'
6020
am__fastdepCXX_TRUE='#'
6021
am__fastdepCXX_FALSE=
6027
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6028
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6029
(test "X$CXX" != "Xg++"))) ; then
6031
ac_cpp='$CXXCPP $CPPFLAGS'
6032
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6035
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6036
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6037
if test -z "$CXXCPP"; then
6038
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6039
echo $ECHO_N "(cached) $ECHO_C" >&6
6041
# Double quotes because CXXCPP needs to be expanded
6042
for CXXCPP in "$CXX -E" "/lib/cpp"
6045
for ac_cxx_preproc_warn_flag in '' yes
6047
# Use a header file that comes with gcc, so configuring glibc
6048
# with a fresh cross-compiler works.
6049
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050
# <limits.h> exists even on freestanding compilers.
6051
# On the NeXT, cc -E runs the code through the compiler's parser,
6052
# not just through cpp. "Syntax error" is here to catch this case.
6053
cat >conftest.$ac_ext <<_ACEOF
6056
cat confdefs.h >>conftest.$ac_ext
6057
cat >>conftest.$ac_ext <<_ACEOF
6058
/* end confdefs.h. */
6060
# include <limits.h>
6062
# include <assert.h>
6066
if { (ac_try="$ac_cpp conftest.$ac_ext"
6068
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069
*) ac_try_echo=$ac_try;;
6071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6074
grep -v '^ *+' conftest.er1 >conftest.err
6076
cat conftest.err >&5
6077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078
(exit $ac_status); } >/dev/null && {
6079
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6080
test ! -s conftest.err
6084
echo "$as_me: failed program was:" >&5
6085
sed 's/^/| /' conftest.$ac_ext >&5
6087
# Broken: fails on valid input.
6091
rm -f conftest.err conftest.$ac_ext
6093
# OK, works on sane cases. Now check whether nonexistent headers
6094
# can be detected and how.
6095
cat >conftest.$ac_ext <<_ACEOF
6098
cat confdefs.h >>conftest.$ac_ext
6099
cat >>conftest.$ac_ext <<_ACEOF
6100
/* end confdefs.h. */
6101
#include <ac_nonexistent.h>
6103
if { (ac_try="$ac_cpp conftest.$ac_ext"
6105
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106
*) ac_try_echo=$ac_try;;
6108
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6111
grep -v '^ *+' conftest.er1 >conftest.err
6113
cat conftest.err >&5
6114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115
(exit $ac_status); } >/dev/null && {
6116
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6117
test ! -s conftest.err
6119
# Broken: success on invalid input.
6122
echo "$as_me: failed program was:" >&5
6123
sed 's/^/| /' conftest.$ac_ext >&5
6125
# Passes both tests.
6130
rm -f conftest.err conftest.$ac_ext
6133
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6134
rm -f conftest.err conftest.$ac_ext
6135
if $ac_preproc_ok; then
6140
ac_cv_prog_CXXCPP=$CXXCPP
6143
CXXCPP=$ac_cv_prog_CXXCPP
6145
ac_cv_prog_CXXCPP=$CXXCPP
6147
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6148
echo "${ECHO_T}$CXXCPP" >&6; }
6150
for ac_cxx_preproc_warn_flag in '' yes
6152
# Use a header file that comes with gcc, so configuring glibc
6153
# with a fresh cross-compiler works.
6154
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155
# <limits.h> exists even on freestanding compilers.
6156
# On the NeXT, cc -E runs the code through the compiler's parser,
6157
# not just through cpp. "Syntax error" is here to catch this case.
6158
cat >conftest.$ac_ext <<_ACEOF
6161
cat confdefs.h >>conftest.$ac_ext
6162
cat >>conftest.$ac_ext <<_ACEOF
6163
/* end confdefs.h. */
6165
# include <limits.h>
6167
# include <assert.h>
6171
if { (ac_try="$ac_cpp conftest.$ac_ext"
6173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174
*) ac_try_echo=$ac_try;;
6176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6179
grep -v '^ *+' conftest.er1 >conftest.err
6181
cat conftest.err >&5
6182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183
(exit $ac_status); } >/dev/null && {
6184
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6185
test ! -s conftest.err
6189
echo "$as_me: failed program was:" >&5
6190
sed 's/^/| /' conftest.$ac_ext >&5
6192
# Broken: fails on valid input.
6196
rm -f conftest.err conftest.$ac_ext
6198
# OK, works on sane cases. Now check whether nonexistent headers
6199
# can be detected and how.
6200
cat >conftest.$ac_ext <<_ACEOF
6203
cat confdefs.h >>conftest.$ac_ext
6204
cat >>conftest.$ac_ext <<_ACEOF
6205
/* end confdefs.h. */
6206
#include <ac_nonexistent.h>
6208
if { (ac_try="$ac_cpp conftest.$ac_ext"
6210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211
*) ac_try_echo=$ac_try;;
6213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6216
grep -v '^ *+' conftest.er1 >conftest.err
6218
cat conftest.err >&5
6219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220
(exit $ac_status); } >/dev/null && {
6221
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6222
test ! -s conftest.err
6224
# Broken: success on invalid input.
6227
echo "$as_me: failed program was:" >&5
6228
sed 's/^/| /' conftest.$ac_ext >&5
6230
# Passes both tests.
6235
rm -f conftest.err conftest.$ac_ext
6238
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6239
rm -f conftest.err conftest.$ac_ext
6240
if $ac_preproc_ok; then
6243
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6244
See \`config.log' for more details." >&5
6245
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6246
See \`config.log' for more details." >&2;}
6247
{ (exit 1); exit 1; }; }
6251
ac_cpp='$CXXCPP $CPPFLAGS'
6252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6260
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6261
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6262
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6263
if test -n "$ac_tool_prefix"; then
6264
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6266
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6267
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6268
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270
if test "${ac_cv_prog_F77+set}" = set; then
6271
echo $ECHO_N "(cached) $ECHO_C" >&6
6273
if test -n "$F77"; then
6274
ac_cv_prog_F77="$F77" # Let the user override the test.
6276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280
test -z "$as_dir" && as_dir=.
6281
for ac_exec_ext in '' $ac_executable_extensions; do
6282
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6284
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6294
if test -n "$F77"; then
6295
{ echo "$as_me:$LINENO: result: $F77" >&5
6296
echo "${ECHO_T}$F77" >&6; }
6298
{ echo "$as_me:$LINENO: result: no" >&5
6299
echo "${ECHO_T}no" >&6; }
6303
test -n "$F77" && break
6306
if test -z "$F77"; then
6308
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6310
# Extract the first word of "$ac_prog", so it can be a program name with args.
6311
set dummy $ac_prog; ac_word=$2
6312
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6315
echo $ECHO_N "(cached) $ECHO_C" >&6
6317
if test -n "$ac_ct_F77"; then
6318
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324
test -z "$as_dir" && as_dir=.
6325
for ac_exec_ext in '' $ac_executable_extensions; do
6326
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327
ac_cv_prog_ac_ct_F77="$ac_prog"
6328
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6338
if test -n "$ac_ct_F77"; then
6339
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6340
echo "${ECHO_T}$ac_ct_F77" >&6; }
6342
{ echo "$as_me:$LINENO: result: no" >&5
6343
echo "${ECHO_T}no" >&6; }
6347
test -n "$ac_ct_F77" && break
6350
if test "x$ac_ct_F77" = x; then
6353
case $cross_compiling:$ac_tool_warned in
6355
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6356
whose name does not start with the host triplet. If you think this
6357
configuration is useful to you, please write to autoconf@gnu.org." >&5
6358
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6359
whose name does not start with the host triplet. If you think this
6360
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6361
ac_tool_warned=yes ;;
6368
# Provide some information about the compiler.
6369
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6370
ac_compiler=`set X $ac_compile; echo $2`
6371
{ (ac_try="$ac_compiler --version >&5"
6373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374
*) ac_try_echo=$ac_try;;
6376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377
(eval "$ac_compiler --version >&5") 2>&5
6379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380
(exit $ac_status); }
6381
{ (ac_try="$ac_compiler -v >&5"
6383
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384
*) ac_try_echo=$ac_try;;
6386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387
(eval "$ac_compiler -v >&5") 2>&5
6389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390
(exit $ac_status); }
6391
{ (ac_try="$ac_compiler -V >&5"
6393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394
*) ac_try_echo=$ac_try;;
6396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397
(eval "$ac_compiler -V >&5") 2>&5
6399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400
(exit $ac_status); }
6403
# If we don't use `.F' as extension, the preprocessor is not run on the
6404
# input file. (Note that this only needs to work for GNU compilers.)
6407
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6408
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6409
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6410
echo $ECHO_N "(cached) $ECHO_C" >&6
6412
cat >conftest.$ac_ext <<_ACEOF
6420
rm -f conftest.$ac_objext
6421
if { (ac_try="$ac_compile"
6423
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424
*) ac_try_echo=$ac_try;;
6426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427
(eval "$ac_compile") 2>conftest.er1
6429
grep -v '^ *+' conftest.er1 >conftest.err
6431
cat conftest.err >&5
6432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433
(exit $ac_status); } && {
6434
test -z "$ac_f77_werror_flag" ||
6435
test ! -s conftest.err
6436
} && test -s conftest.$ac_objext; then
6439
echo "$as_me: failed program was:" >&5
6440
sed 's/^/| /' conftest.$ac_ext >&5
6445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6449
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6450
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6452
ac_test_FFLAGS=${FFLAGS+set}
6453
ac_save_FFLAGS=$FFLAGS
6455
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6456
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6457
if test "${ac_cv_prog_f77_g+set}" = set; then
6458
echo $ECHO_N "(cached) $ECHO_C" >&6
6461
cat >conftest.$ac_ext <<_ACEOF
6466
rm -f conftest.$ac_objext
6467
if { (ac_try="$ac_compile"
6469
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470
*) ac_try_echo=$ac_try;;
6472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473
(eval "$ac_compile") 2>conftest.er1
6475
grep -v '^ *+' conftest.er1 >conftest.err
6477
cat conftest.err >&5
6478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479
(exit $ac_status); } && {
6480
test -z "$ac_f77_werror_flag" ||
6481
test ! -s conftest.err
6482
} && test -s conftest.$ac_objext; then
6483
ac_cv_prog_f77_g=yes
6485
echo "$as_me: failed program was:" >&5
6486
sed 's/^/| /' conftest.$ac_ext >&5
6491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6495
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6496
if test "$ac_test_FFLAGS" = set; then
6497
FFLAGS=$ac_save_FFLAGS
6498
elif test $ac_cv_prog_f77_g = yes; then
6499
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6505
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6512
G77=`test $ac_compiler_gnu = yes && echo yes`
6514
ac_cpp='$CPP $CPPFLAGS'
6515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6523
# find the maximum length of command line arguments
6524
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6525
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6526
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6527
echo $ECHO_N "(cached) $ECHO_C" >&6
6534
# On DJGPP, this test can blow up pretty badly due to problems in libc
6535
# (any single argument exceeding 2000 bytes causes a buffer overrun
6536
# during glob expansion). Even if it were fixed, the result of this
6537
# check would be larger than it should be.
6538
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6542
# Under GNU Hurd, this test is not required because there is
6543
# no limit to the length of command line arguments.
6544
# Libtool will interpret -1 as no limit whatsoever
6545
lt_cv_sys_max_cmd_len=-1;
6549
# On Win9x/ME, this test blows up -- it succeeds, but takes
6550
# about 5 minutes as the teststring grows exponentially.
6551
# Worse, since 9x/ME are not pre-emptively multitasking,
6552
# you end up with a "frozen" computer, even though with patience
6553
# the test eventually succeeds (with a max line length of 256k).
6554
# Instead, let's just punt: use the minimum linelength reported by
6555
# all of the supported platforms: 8192 (on NT/2K/XP).
6556
lt_cv_sys_max_cmd_len=8192;
6560
# On AmigaOS with pdksh, this test takes hours, literally.
6561
# So we just punt and use a minimum line length of 8192.
6562
lt_cv_sys_max_cmd_len=8192;
6565
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6566
# This has been around since 386BSD, at least. Likely further.
6567
if test -x /sbin/sysctl; then
6568
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6569
elif test -x /usr/sbin/sysctl; then
6570
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6572
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6574
# And add a safety zone
6575
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6576
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6580
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6581
lt_cv_sys_max_cmd_len=196608
6585
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6586
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6587
# nice to cause kernel panics so lets avoid the loop below.
6588
# First set a reasonable default.
6589
lt_cv_sys_max_cmd_len=16384
6591
if test -x /sbin/sysconfig; then
6592
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6593
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6598
lt_cv_sys_max_cmd_len=102400
6600
sysv5* | sco5v6* | sysv4.2uw2*)
6601
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6602
if test -n "$kargmax"; then
6603
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6605
lt_cv_sys_max_cmd_len=32768
6609
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6610
if test -n "$lt_cv_sys_max_cmd_len"; then
6611
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6612
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6614
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6615
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6616
= "XX$teststring") >/dev/null 2>&1 &&
6617
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6618
lt_cv_sys_max_cmd_len=$new_result &&
6619
test $i != 17 # 1/2 MB should be enough
6622
teststring=$teststring$teststring
6625
# Add a significant safety factor because C++ compilers can tack on massive
6626
# amounts of additional arguments before passing them to the linker.
6627
# It appears as though 1/2 is a usable value.
6628
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6635
if test -n $lt_cv_sys_max_cmd_len ; then
6636
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6637
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6639
{ echo "$as_me:$LINENO: result: none" >&5
6640
echo "${ECHO_T}none" >&6; }
6647
# Check for command to grab the raw symbol name followed by C symbol from nm.
6648
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6649
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6650
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6651
echo $ECHO_N "(cached) $ECHO_C" >&6
6654
# These are sane defaults that work on at least a few old systems.
6655
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6657
# Character class describing NM global symbol codes.
6658
symcode='[BCDEGRST]'
6660
# Regexp to match symbols that can be accessed directly from C.
6661
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6663
# Transform an extracted symbol line into a proper C declaration
6664
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6666
# Transform an extracted symbol line into symbol name and symbol address
6667
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6669
# Define system-specific variables.
6674
cygwin* | mingw* | pw32*)
6675
symcode='[ABCDGISTW]'
6677
hpux*) # Its linker distinguishes data from code symbols
6678
if test "$host_cpu" = ia64; then
6679
symcode='[ABCDEGRST]'
6681
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6682
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6684
linux* | k*bsd*-gnu)
6685
if test "$host_cpu" = ia64; then
6686
symcode='[ABCDGIRSTW]'
6687
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6688
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6692
symcode='[BCDEGRST]'
6695
symcode='[BCDEGQRST]'
6706
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6714
# Handle CRLF in mingw tool chain
6718
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6722
# If we're using GNU nm, then use its standard symbol codes.
6723
case `$NM -V 2>&1` in
6724
*GNU* | *'with BFD'*)
6725
symcode='[ABCDGIRSTW]' ;;
6728
# Try without a prefix undercore, then with it.
6729
for ac_symprfx in "" "_"; do
6731
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6732
symxfrm="\\1 $ac_symprfx\\2 \\2"
6734
# Write the raw and C identifiers.
6735
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6737
# Check to see that the pipe works correctly.
6741
cat > conftest.$ac_ext <<EOF
6746
void nm_test_func(){}
6750
int main(){nm_test_var='a';nm_test_func();return(0);}
6753
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6754
(eval $ac_compile) 2>&5
6756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757
(exit $ac_status); }; then
6758
# Now try to grab the symbols.
6760
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6761
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764
(exit $ac_status); } && test -s "$nlist"; then
6765
# Try sorting and uniquifying the output.
6766
if sort "$nlist" | uniq > "$nlist"T; then
6767
mv -f "$nlist"T "$nlist"
6772
# Make sure that we snagged all the symbols we need.
6773
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6774
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6775
cat <<EOF > conftest.$ac_ext
6781
# Now generate the symbol file.
6782
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6784
cat <<EOF >> conftest.$ac_ext
6785
#if defined (__STDC__) && __STDC__
6786
# define lt_ptr_t void *
6788
# define lt_ptr_t char *
6792
/* The mapping between symbol names and symbols. */
6797
lt_preloaded_symbols[] =
6800
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6801
cat <<\EOF >> conftest.$ac_ext
6809
# Now try linking the two files.
6810
mv conftest.$ac_objext conftstm.$ac_objext
6811
lt_save_LIBS="$LIBS"
6812
lt_save_CFLAGS="$CFLAGS"
6813
LIBS="conftstm.$ac_objext"
6814
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6816
(eval $ac_link) 2>&5
6818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6822
LIBS="$lt_save_LIBS"
6823
CFLAGS="$lt_save_CFLAGS"
6825
echo "cannot find nm_test_func in $nlist" >&5
6828
echo "cannot find nm_test_var in $nlist" >&5
6831
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6834
echo "$progname: failed program was:" >&5
6835
cat conftest.$ac_ext >&5
6837
rm -f conftest* conftst*
6839
# Do not use the global_symbol_pipe unless it works.
6840
if test "$pipe_works" = yes; then
6843
lt_cv_sys_global_symbol_pipe=
6849
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6850
lt_cv_sys_global_symbol_to_cdecl=
6852
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6853
{ echo "$as_me:$LINENO: result: failed" >&5
6854
echo "${ECHO_T}failed" >&6; }
6856
{ echo "$as_me:$LINENO: result: ok" >&5
6857
echo "${ECHO_T}ok" >&6; }
6860
{ echo "$as_me:$LINENO: checking for objdir" >&5
6861
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6862
if test "${lt_cv_objdir+set}" = set; then
6863
echo $ECHO_N "(cached) $ECHO_C" >&6
6865
rm -f .libs 2>/dev/null
6866
mkdir .libs 2>/dev/null
6867
if test -d .libs; then
6870
# MS-DOS does not allow filenames that begin with a dot.
6873
rmdir .libs 2>/dev/null
6875
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6876
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6877
objdir=$lt_cv_objdir
6885
# AIX sometimes has problems with the GCC collect2 program. For some
6886
# reason, if we set the COLLECT_NAMES environment variable, the problems
6887
# vanish in a puff of smoke.
6888
if test "X${COLLECT_NAMES+set}" != Xset; then
6890
export COLLECT_NAMES
6895
# Sed substitution that helps us do robust quoting. It backslashifies
6896
# metacharacters that are still active within double-quoted strings.
6897
Xsed='sed -e 1s/^X//'
6898
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6900
# Same as above, but do not quote variable references.
6901
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6903
# Sed substitution to delay expansion of an escaped shell variable in a
6904
# double_quote_subst'ed string.
6905
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6907
# Sed substitution to avoid accidental globbing in evaled expressions
6908
no_glob_subst='s/\*/\\\*/g'
6914
default_ofile=libtool
6915
can_build_shared=yes
6917
# All known linkers require a `.a' archive for static linking (except MSVC,
6918
# which needs '.lib').
6920
ltmain="$ac_aux_dir/ltmain.sh"
6921
ofile="$default_ofile"
6922
with_gnu_ld="$lt_cv_prog_gnu_ld"
6924
if test -n "$ac_tool_prefix"; then
6925
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6926
set dummy ${ac_tool_prefix}ar; ac_word=$2
6927
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6929
if test "${ac_cv_prog_AR+set}" = set; then
6930
echo $ECHO_N "(cached) $ECHO_C" >&6
6932
if test -n "$AR"; then
6933
ac_cv_prog_AR="$AR" # Let the user override the test.
6935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939
test -z "$as_dir" && as_dir=.
6940
for ac_exec_ext in '' $ac_executable_extensions; do
6941
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942
ac_cv_prog_AR="${ac_tool_prefix}ar"
6943
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953
if test -n "$AR"; then
6954
{ echo "$as_me:$LINENO: result: $AR" >&5
6955
echo "${ECHO_T}$AR" >&6; }
6957
{ echo "$as_me:$LINENO: result: no" >&5
6958
echo "${ECHO_T}no" >&6; }
6963
if test -z "$ac_cv_prog_AR"; then
6965
# Extract the first word of "ar", so it can be a program name with args.
6966
set dummy ar; ac_word=$2
6967
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6968
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6970
echo $ECHO_N "(cached) $ECHO_C" >&6
6972
if test -n "$ac_ct_AR"; then
6973
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979
test -z "$as_dir" && as_dir=.
6980
for ac_exec_ext in '' $ac_executable_extensions; do
6981
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982
ac_cv_prog_ac_ct_AR="ar"
6983
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6993
if test -n "$ac_ct_AR"; then
6994
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6995
echo "${ECHO_T}$ac_ct_AR" >&6; }
6997
{ echo "$as_me:$LINENO: result: no" >&5
6998
echo "${ECHO_T}no" >&6; }
7001
if test "x$ac_ct_AR" = x; then
7004
case $cross_compiling:$ac_tool_warned in
7006
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7007
whose name does not start with the host triplet. If you think this
7008
configuration is useful to you, please write to autoconf@gnu.org." >&5
7009
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7010
whose name does not start with the host triplet. If you think this
7011
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7012
ac_tool_warned=yes ;;
7020
if test -n "$ac_tool_prefix"; then
7021
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7022
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7023
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7025
if test "${ac_cv_prog_RANLIB+set}" = set; then
7026
echo $ECHO_N "(cached) $ECHO_C" >&6
7028
if test -n "$RANLIB"; then
7029
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035
test -z "$as_dir" && as_dir=.
7036
for ac_exec_ext in '' $ac_executable_extensions; do
7037
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7038
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7039
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048
RANLIB=$ac_cv_prog_RANLIB
7049
if test -n "$RANLIB"; then
7050
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
7051
echo "${ECHO_T}$RANLIB" >&6; }
7053
{ echo "$as_me:$LINENO: result: no" >&5
7054
echo "${ECHO_T}no" >&6; }
7059
if test -z "$ac_cv_prog_RANLIB"; then
7060
ac_ct_RANLIB=$RANLIB
7061
# Extract the first word of "ranlib", so it can be a program name with args.
7062
set dummy ranlib; ac_word=$2
7063
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7064
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7066
echo $ECHO_N "(cached) $ECHO_C" >&6
7068
if test -n "$ac_ct_RANLIB"; then
7069
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075
test -z "$as_dir" && as_dir=.
7076
for ac_exec_ext in '' $ac_executable_extensions; do
7077
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7078
ac_cv_prog_ac_ct_RANLIB="ranlib"
7079
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7089
if test -n "$ac_ct_RANLIB"; then
7090
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7091
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7093
{ echo "$as_me:$LINENO: result: no" >&5
7094
echo "${ECHO_T}no" >&6; }
7097
if test "x$ac_ct_RANLIB" = x; then
7100
case $cross_compiling:$ac_tool_warned in
7102
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7103
whose name does not start with the host triplet. If you think this
7104
configuration is useful to you, please write to autoconf@gnu.org." >&5
7105
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7106
whose name does not start with the host triplet. If you think this
7107
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7108
ac_tool_warned=yes ;;
7110
RANLIB=$ac_ct_RANLIB
7113
RANLIB="$ac_cv_prog_RANLIB"
7116
if test -n "$ac_tool_prefix"; then
7117
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7118
set dummy ${ac_tool_prefix}strip; ac_word=$2
7119
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121
if test "${ac_cv_prog_STRIP+set}" = set; then
7122
echo $ECHO_N "(cached) $ECHO_C" >&6
7124
if test -n "$STRIP"; then
7125
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131
test -z "$as_dir" && as_dir=.
7132
for ac_exec_ext in '' $ac_executable_extensions; do
7133
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7135
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144
STRIP=$ac_cv_prog_STRIP
7145
if test -n "$STRIP"; then
7146
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7147
echo "${ECHO_T}$STRIP" >&6; }
7149
{ echo "$as_me:$LINENO: result: no" >&5
7150
echo "${ECHO_T}no" >&6; }
7155
if test -z "$ac_cv_prog_STRIP"; then
7157
# Extract the first word of "strip", so it can be a program name with args.
7158
set dummy strip; ac_word=$2
7159
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7160
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7162
echo $ECHO_N "(cached) $ECHO_C" >&6
7164
if test -n "$ac_ct_STRIP"; then
7165
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171
test -z "$as_dir" && as_dir=.
7172
for ac_exec_ext in '' $ac_executable_extensions; do
7173
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174
ac_cv_prog_ac_ct_STRIP="strip"
7175
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7185
if test -n "$ac_ct_STRIP"; then
7186
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7187
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7189
{ echo "$as_me:$LINENO: result: no" >&5
7190
echo "${ECHO_T}no" >&6; }
7193
if test "x$ac_ct_STRIP" = x; then
7196
case $cross_compiling:$ac_tool_warned in
7198
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7199
whose name does not start with the host triplet. If you think this
7200
configuration is useful to you, please write to autoconf@gnu.org." >&5
7201
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7202
whose name does not start with the host triplet. If you think this
7203
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7204
ac_tool_warned=yes ;;
7209
STRIP="$ac_cv_prog_STRIP"
7214
old_CFLAGS="$CFLAGS"
7216
# Set sane defaults for various variables
7217
test -z "$AR" && AR=ar
7218
test -z "$AR_FLAGS" && AR_FLAGS=cru
7219
test -z "$AS" && AS=as
7220
test -z "$CC" && CC=cc
7221
test -z "$LTCC" && LTCC=$CC
7222
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7223
test -z "$DLLTOOL" && DLLTOOL=dlltool
7224
test -z "$LD" && LD=ld
7225
test -z "$LN_S" && LN_S="ln -s"
7226
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7227
test -z "$NM" && NM=nm
7228
test -z "$SED" && SED=sed
7229
test -z "$OBJDUMP" && OBJDUMP=objdump
7230
test -z "$RANLIB" && RANLIB=:
7231
test -z "$STRIP" && STRIP=:
7232
test -z "$ac_objext" && ac_objext=o
7234
# Determine commands to create old-style static archives.
7235
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7236
old_postinstall_cmds='chmod 644 $oldlib'
7237
old_postuninstall_cmds=
7239
if test -n "$RANLIB"; then
7242
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7245
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7248
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7251
for cc_temp in $compiler""; do
7253
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7254
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7259
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7262
# Only perform the check for file, if the check method requires it
7263
case $deplibs_check_method in
7265
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7266
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7267
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7268
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7269
echo $ECHO_N "(cached) $ECHO_C" >&6
7273
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7276
lt_save_MAGIC_CMD="$MAGIC_CMD"
7277
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7278
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7279
for ac_dir in $ac_dummy; do
7281
test -z "$ac_dir" && ac_dir=.
7282
if test -f $ac_dir/${ac_tool_prefix}file; then
7283
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7284
if test -n "$file_magic_test_file"; then
7285
case $deplibs_check_method in
7287
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7288
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7289
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7290
$EGREP "$file_magic_regex" > /dev/null; then
7295
*** Warning: the command libtool uses to detect shared libraries,
7296
*** $file_magic_cmd, produces output that libtool cannot recognize.
7297
*** The result is that libtool may fail to recognize shared libraries
7298
*** as such. This will affect the creation of libtool libraries that
7299
*** depend on shared libraries, but programs linked with such libtool
7300
*** libraries will work regardless of this problem. Nevertheless, you
7301
*** may want to report the problem to your system manager and/or to
7302
*** bug-libtool@gnu.org
7312
MAGIC_CMD="$lt_save_MAGIC_CMD"
7317
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7318
if test -n "$MAGIC_CMD"; then
7319
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7320
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7322
{ echo "$as_me:$LINENO: result: no" >&5
7323
echo "${ECHO_T}no" >&6; }
7326
if test -z "$lt_cv_path_MAGIC_CMD"; then
7327
if test -n "$ac_tool_prefix"; then
7328
{ echo "$as_me:$LINENO: checking for file" >&5
7329
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7330
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7331
echo $ECHO_N "(cached) $ECHO_C" >&6
7335
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7338
lt_save_MAGIC_CMD="$MAGIC_CMD"
7339
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7340
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7341
for ac_dir in $ac_dummy; do
7343
test -z "$ac_dir" && ac_dir=.
7344
if test -f $ac_dir/file; then
7345
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7346
if test -n "$file_magic_test_file"; then
7347
case $deplibs_check_method in
7349
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7350
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7351
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7352
$EGREP "$file_magic_regex" > /dev/null; then
7357
*** Warning: the command libtool uses to detect shared libraries,
7358
*** $file_magic_cmd, produces output that libtool cannot recognize.
7359
*** The result is that libtool may fail to recognize shared libraries
7360
*** as such. This will affect the creation of libtool libraries that
7361
*** depend on shared libraries, but programs linked with such libtool
7362
*** libraries will work regardless of this problem. Nevertheless, you
7363
*** may want to report the problem to your system manager and/or to
7364
*** bug-libtool@gnu.org
7374
MAGIC_CMD="$lt_save_MAGIC_CMD"
7379
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7380
if test -n "$MAGIC_CMD"; then
7381
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7382
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7384
{ echo "$as_me:$LINENO: result: no" >&5
7385
echo "${ECHO_T}no" >&6; }
7398
enable_win32_dll=yes
7400
# Check whether --enable-libtool-lock was given.
7401
if test "${enable_libtool_lock+set}" = set; then
7402
enableval=$enable_libtool_lock;
7405
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7408
# Check whether --with-pic was given.
7409
if test "${with_pic+set}" = set; then
7410
withval=$with_pic; pic_mode="$withval"
7415
test -z "$pic_mode" && pic_mode=default
7417
# Use C for the default configuration in the libtool script
7421
ac_cpp='$CPP $CPPFLAGS'
7422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7427
# Source file extension for C test sources.
7430
# Object file extension for compiled C test sources.
7434
# Code to be used in simple compile tests
7435
lt_simple_compile_test_code="int some_variable = 0;"
7437
# Code to be used in simple link tests
7438
lt_simple_link_test_code='int main(){return(0);}'
7441
# If no C compiler was specified, use CC.
7444
# If no C compiler flags were specified, use CFLAGS.
7445
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7447
# Allow CC to be a program name with arguments.
7451
# save warnings/boilerplate of simple test code
7452
ac_outfile=conftest.$ac_objext
7453
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7454
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7455
_lt_compiler_boilerplate=`cat conftest.err`
7458
ac_outfile=conftest.$ac_objext
7459
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7460
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7461
_lt_linker_boilerplate=`cat conftest.err`
7466
## There is no encapsulation within the following macros, do not change
7467
## the running order or otherwise move them around unless you know exactly
7468
## what you are doing...
7470
lt_prog_compiler_no_builtin_flag=
7472
if test "$GCC" = yes; then
7473
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7476
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7477
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7478
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7479
echo $ECHO_N "(cached) $ECHO_C" >&6
7481
lt_cv_prog_compiler_rtti_exceptions=no
7482
ac_outfile=conftest.$ac_objext
7483
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7484
lt_compiler_flag="-fno-rtti -fno-exceptions"
7485
# Insert the option either (1) after the last *FLAGS variable, or
7486
# (2) before a word containing "conftest.", or (3) at the end.
7487
# Note that $ac_compile itself does not contain backslashes and begins
7488
# with a dollar sign (not a hyphen), so the echo should work correctly.
7489
# The option is referenced via a variable to avoid confusing sed.
7490
lt_compile=`echo "$ac_compile" | $SED \
7491
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7492
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7493
-e 's:$: $lt_compiler_flag:'`
7494
(eval echo "\"\$as_me:7494: $lt_compile\"" >&5)
7495
(eval "$lt_compile" 2>conftest.err)
7497
cat conftest.err >&5
7498
echo "$as_me:7498: \$? = $ac_status" >&5
7499
if (exit $ac_status) && test -s "$ac_outfile"; then
7500
# The compiler can only warn and ignore the option if not recognized
7501
# So say no if there are warnings other than the usual output.
7502
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7503
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7504
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7505
lt_cv_prog_compiler_rtti_exceptions=yes
7511
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7512
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7514
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7515
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7522
lt_prog_compiler_wl=
7523
lt_prog_compiler_pic=
7524
lt_prog_compiler_static=
7526
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7527
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7529
if test "$GCC" = yes; then
7530
lt_prog_compiler_wl='-Wl,'
7531
lt_prog_compiler_static='-static'
7535
# All AIX code is PIC.
7536
if test "$host_cpu" = ia64; then
7537
# AIX 5 now supports IA64 processor
7538
lt_prog_compiler_static='-Bstatic'
7543
# FIXME: we need at least 68020 code to build shared libraries, but
7544
# adding the `-m68020' flag to GCC prevents building anything better,
7546
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7549
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7550
# PIC is the default for these OSes.
7553
mingw* | cygwin* | pw32* | os2*)
7554
# This hack is so that the source file can tell whether it is being
7555
# built for inclusion in a dll (and should export symbols for example).
7556
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7557
# (--disable-auto-import) libraries
7558
lt_prog_compiler_pic='-DDLL_EXPORT'
7561
darwin* | rhapsody*)
7562
# PIC is the default on this platform
7563
# Common symbols not allowed in MH_DYLIB files
7564
lt_prog_compiler_pic='-fno-common'
7568
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7569
# Instead, we relocate shared libraries at runtime.
7573
# Just because we use GCC doesn't mean we suddenly get shared libraries
7574
# on systems that don't support them.
7575
lt_prog_compiler_can_build_shared=no
7580
if test -d /usr/nec; then
7581
lt_prog_compiler_pic=-Kconform_pic
7586
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7593
lt_prog_compiler_pic='-fPIC'
7599
lt_prog_compiler_pic='-fPIC'
7603
# PORTME Check for flag to pass linker flags through the system compiler.
7606
lt_prog_compiler_wl='-Wl,'
7607
if test "$host_cpu" = ia64; then
7608
# AIX 5 now supports IA64 processor
7609
lt_prog_compiler_static='-Bstatic'
7611
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7615
# PIC is the default on this platform
7616
# Common symbols not allowed in MH_DYLIB files
7617
case $cc_basename in
7619
lt_prog_compiler_pic='-qnocommon'
7620
lt_prog_compiler_wl='-Wl,'
7625
mingw* | cygwin* | pw32* | os2*)
7626
# This hack is so that the source file can tell whether it is being
7627
# built for inclusion in a dll (and should export symbols for example).
7628
lt_prog_compiler_pic='-DDLL_EXPORT'
7631
hpux9* | hpux10* | hpux11*)
7632
lt_prog_compiler_wl='-Wl,'
7633
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7640
lt_prog_compiler_pic='+Z'
7643
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7644
lt_prog_compiler_static='${wl}-a ${wl}archive'
7647
irix5* | irix6* | nonstopux*)
7648
lt_prog_compiler_wl='-Wl,'
7649
# PIC (with -KPIC) is the default.
7650
lt_prog_compiler_static='-non_shared'
7654
lt_prog_compiler_pic='-KPIC'
7655
lt_prog_compiler_static='-Bstatic'
7658
linux* | k*bsd*-gnu)
7659
case $cc_basename in
7661
lt_prog_compiler_wl='-Wl,'
7662
lt_prog_compiler_pic='-KPIC'
7663
lt_prog_compiler_static='-static'
7665
pgcc* | pgf77* | pgf90* | pgf95*)
7666
# Portland Group compilers (*not* the Pentium gcc compiler,
7667
# which looks to be a dead project)
7668
lt_prog_compiler_wl='-Wl,'
7669
lt_prog_compiler_pic='-fpic'
7670
lt_prog_compiler_static='-Bstatic'
7673
lt_prog_compiler_wl='-Wl,'
7674
# All Alpha code is PIC.
7675
lt_prog_compiler_static='-non_shared'
7678
lt_prog_compiler_wl='-lopt='
7681
case `$CC -V 2>&1 | sed 5q` in
7684
lt_prog_compiler_pic='-KPIC'
7685
lt_prog_compiler_static='-Bstatic'
7686
lt_prog_compiler_wl='-Wl,'
7689
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7690
lt_prog_compiler_pic='-KPIC'
7691
lt_prog_compiler_static='-Bstatic'
7692
lt_prog_compiler_wl=''
7699
osf3* | osf4* | osf5*)
7700
lt_prog_compiler_wl='-Wl,'
7701
# All OSF/1 code is PIC.
7702
lt_prog_compiler_static='-non_shared'
7706
lt_prog_compiler_static='-non_shared'
7710
lt_prog_compiler_pic='-KPIC'
7711
lt_prog_compiler_static='-Bstatic'
7712
case $cc_basename in
7714
lt_prog_compiler_wl='-Qoption ld ';;
7716
lt_prog_compiler_wl='-Wl,';;
7721
lt_prog_compiler_wl='-Qoption ld '
7722
lt_prog_compiler_pic='-PIC'
7723
lt_prog_compiler_static='-Bstatic'
7726
sysv4 | sysv4.2uw2* | sysv4.3*)
7727
lt_prog_compiler_wl='-Wl,'
7728
lt_prog_compiler_pic='-KPIC'
7729
lt_prog_compiler_static='-Bstatic'
7733
if test -d /usr/nec ;then
7734
lt_prog_compiler_pic='-Kconform_pic'
7735
lt_prog_compiler_static='-Bstatic'
7739
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7740
lt_prog_compiler_wl='-Wl,'
7741
lt_prog_compiler_pic='-KPIC'
7742
lt_prog_compiler_static='-Bstatic'
7746
lt_prog_compiler_wl='-Wl,'
7747
lt_prog_compiler_can_build_shared=no
7751
lt_prog_compiler_pic='-pic'
7752
lt_prog_compiler_static='-Bstatic'
7756
lt_prog_compiler_can_build_shared=no
7761
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7762
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7765
# Check to make sure the PIC flag actually works.
7767
if test -n "$lt_prog_compiler_pic"; then
7769
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7770
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7771
if test "${lt_prog_compiler_pic_works+set}" = set; then
7772
echo $ECHO_N "(cached) $ECHO_C" >&6
7774
lt_prog_compiler_pic_works=no
7775
ac_outfile=conftest.$ac_objext
7776
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7777
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7778
# Insert the option either (1) after the last *FLAGS variable, or
7779
# (2) before a word containing "conftest.", or (3) at the end.
7780
# Note that $ac_compile itself does not contain backslashes and begins
7781
# with a dollar sign (not a hyphen), so the echo should work correctly.
7782
# The option is referenced via a variable to avoid confusing sed.
7783
lt_compile=`echo "$ac_compile" | $SED \
7784
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7785
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7786
-e 's:$: $lt_compiler_flag:'`
7787
(eval echo "\"\$as_me:7787: $lt_compile\"" >&5)
7788
(eval "$lt_compile" 2>conftest.err)
7790
cat conftest.err >&5
7791
echo "$as_me:7791: \$? = $ac_status" >&5
7792
if (exit $ac_status) && test -s "$ac_outfile"; then
7793
# The compiler can only warn and ignore the option if not recognized
7794
# So say no if there are warnings other than the usual output.
7795
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7796
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7797
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7798
lt_prog_compiler_pic_works=yes
7804
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7805
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7807
if test x"$lt_prog_compiler_pic_works" = xyes; then
7808
case $lt_prog_compiler_pic in
7810
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7813
lt_prog_compiler_pic=
7814
lt_prog_compiler_can_build_shared=no
7819
# For platforms which do not support PIC, -DPIC is meaningless:
7821
lt_prog_compiler_pic=
7824
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7829
# Check to make sure the static flag actually works.
7831
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7832
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7833
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7834
if test "${lt_prog_compiler_static_works+set}" = set; then
7835
echo $ECHO_N "(cached) $ECHO_C" >&6
7837
lt_prog_compiler_static_works=no
7838
save_LDFLAGS="$LDFLAGS"
7839
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7840
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7841
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7842
# The linker can only warn and ignore the option if not recognized
7843
# So say no if there are warnings
7844
if test -s conftest.err; then
7845
# Append any errors to the config.log.
7846
cat conftest.err 1>&5
7847
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7848
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7849
if diff conftest.exp conftest.er2 >/dev/null; then
7850
lt_prog_compiler_static_works=yes
7853
lt_prog_compiler_static_works=yes
7857
LDFLAGS="$save_LDFLAGS"
7860
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7861
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7863
if test x"$lt_prog_compiler_static_works" = xyes; then
7866
lt_prog_compiler_static=
7870
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7871
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7872
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7873
echo $ECHO_N "(cached) $ECHO_C" >&6
7875
lt_cv_prog_compiler_c_o=no
7876
$rm -r conftest 2>/dev/null
7880
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7882
lt_compiler_flag="-o out/conftest2.$ac_objext"
7883
# Insert the option either (1) after the last *FLAGS variable, or
7884
# (2) before a word containing "conftest.", or (3) at the end.
7885
# Note that $ac_compile itself does not contain backslashes and begins
7886
# with a dollar sign (not a hyphen), so the echo should work correctly.
7887
lt_compile=`echo "$ac_compile" | $SED \
7888
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7889
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7890
-e 's:$: $lt_compiler_flag:'`
7891
(eval echo "\"\$as_me:7891: $lt_compile\"" >&5)
7892
(eval "$lt_compile" 2>out/conftest.err)
7894
cat out/conftest.err >&5
7895
echo "$as_me:7895: \$? = $ac_status" >&5
7896
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7898
# The compiler can only warn and ignore the option if not recognized
7899
# So say no if there are warnings
7900
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7901
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7902
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7903
lt_cv_prog_compiler_c_o=yes
7908
# SGI C++ compiler will create directory out/ii_files/ for
7909
# template instantiation
7910
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7911
$rm out/* && rmdir out
7917
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7918
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7921
hard_links="nottested"
7922
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7923
# do not overwrite the value of need_locks provided by the user
7924
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7925
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7928
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7930
ln conftest.a conftest.b 2>&5 || hard_links=no
7931
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7932
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7933
echo "${ECHO_T}$hard_links" >&6; }
7934
if test "$hard_links" = no; then
7935
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7936
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7943
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7944
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7947
allow_undefined_flag=
7948
enable_shared_with_static_runtimes=no
7950
archive_expsym_cmds=
7951
old_archive_From_new_cmds=
7952
old_archive_from_expsyms_cmds=
7953
export_dynamic_flag_spec=
7954
whole_archive_flag_spec=
7955
thread_safe_flag_spec=
7956
hardcode_libdir_flag_spec=
7957
hardcode_libdir_flag_spec_ld=
7958
hardcode_libdir_separator=
7961
hardcode_shlibpath_var=unsupported
7962
link_all_deplibs=unknown
7963
hardcode_automatic=no
7966
always_export_symbols=no
7967
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7968
# include_expsyms should be a list of space-separated symbols to be *always*
7969
# included in the symbol list
7971
# exclude_expsyms can be an extended regexp of symbols to exclude
7972
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7973
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7974
# as well as any symbol that contains `d'.
7975
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7976
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7977
# platforms (ab)use it in PIC code, but their linkers get confused if
7978
# the symbol is explicitly referenced. Since portable code cannot
7979
# rely on this symbol name, it's probably fine to never include it in
7980
# preloaded symbol tables.
7981
extract_expsyms_cmds=
7982
# Just being paranoid about ensuring that cc_basename is set.
7983
for cc_temp in $compiler""; do
7985
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7986
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7991
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7994
cygwin* | mingw* | pw32*)
7995
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7996
# When not using gcc, we currently assume that we are using
7997
# Microsoft Visual C++.
7998
if test "$GCC" != yes; then
8003
# we just hope/assume this is gcc and not c89 (= MSVC++)
8012
if test "$with_gnu_ld" = yes; then
8013
# If archive_cmds runs LD, not CC, wlarc should be empty
8016
# Set some defaults for GNU ld with shared library support. These
8017
# are reset later if shared libraries are not supported. Putting them
8018
# here allows them to be overridden if necessary.
8019
runpath_var=LD_RUN_PATH
8020
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8021
export_dynamic_flag_spec='${wl}--export-dynamic'
8022
# ancient GNU ld didn't support --whole-archive et. al.
8023
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8024
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8026
whole_archive_flag_spec=
8028
supports_anon_versioning=no
8029
case `$LD -v 2>/dev/null` in
8030
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8031
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8032
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8033
*\ 2.11.*) ;; # other 2.11 versions
8034
*) supports_anon_versioning=yes ;;
8037
# See if GNU ld supports shared libraries.
8039
aix3* | aix4* | aix5*)
8040
# On AIX/PPC, the GNU linker is very broken
8041
if test "$host_cpu" != ia64; then
8045
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8046
*** to be unable to reliably create shared libraries on AIX.
8047
*** Therefore, libtool is disabling shared libraries support. If you
8048
*** really care for shared libraries, you may want to modify your PATH
8049
*** so that a non-GNU linker is found, and then restart.
8056
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)'
8057
hardcode_libdir_flag_spec='-L$libdir'
8058
hardcode_minus_L=yes
8060
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8061
# that the semantics of dynamic libraries on AmigaOS, at least up
8062
# to version 4, is to share data among multiple programs linked
8063
# with the same dynamic library. Since this doesn't match the
8064
# behavior of shared libraries on other platforms, we can't use
8070
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8071
allow_undefined_flag=unsupported
8072
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8073
# support --undefined. This deserves some investigation. FIXME
8074
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8080
cygwin* | mingw* | pw32*)
8081
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8082
# as there is no search path for DLLs.
8083
hardcode_libdir_flag_spec='-L$libdir'
8084
allow_undefined_flag=unsupported
8085
always_export_symbols=no
8086
enable_shared_with_static_runtimes=yes
8087
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8089
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8090
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8091
# If the export-symbols file already is a .def file (1st line
8092
# is EXPORTS), use it as is; otherwise, prepend...
8093
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8094
cp $export_symbols $output_objdir/$soname.def;
8096
echo EXPORTS > $output_objdir/$soname.def;
8097
cat $export_symbols >> $output_objdir/$soname.def;
8099
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8107
hardcode_shlibpath_var=no
8108
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8109
export_dynamic_flag_spec='${wl}-E'
8110
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8111
# Instead, shared libraries are loaded at an image base (0x10000000 by
8112
# default) and relocated if they conflict, which is a slow very memory
8113
# consuming and fragmenting process. To avoid this, we pick a random,
8114
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8115
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8116
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8117
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'
8120
gnu* | linux* | k*bsd*-gnu)
8121
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8123
case $cc_basename,$host_cpu in
8124
pgcc*) # Portland Group C compiler
8125
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8126
tmp_addflag=' $pic_flag'
8128
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8129
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8130
tmp_addflag=' $pic_flag -Mnomain' ;;
8131
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8132
tmp_addflag=' -i_dynamic' ;;
8133
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8134
tmp_addflag=' -i_dynamic -nofor_main' ;;
8135
ifc* | ifort*) # Intel Fortran compiler
8136
tmp_addflag=' -nofor_main' ;;
8138
case `$CC -V 2>&1 | sed 5q` in
8139
*Sun\ C*) # Sun C 5.9
8140
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8141
tmp_sharedflag='-G' ;;
8142
*Sun\ F*) # Sun Fortran 8.3
8143
tmp_sharedflag='-G' ;;
8145
tmp_sharedflag='-shared' ;;
8147
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149
if test $supports_anon_versioning = yes; then
8150
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8151
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8152
$echo "local: *; };" >> $output_objdir/$libname.ver~
8153
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8161
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8162
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8165
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8171
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8175
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8176
*** create shared libraries on Solaris systems. Therefore, libtool
8177
*** is disabling shared libraries support. We urge you to upgrade GNU
8178
*** binutils to release 2.9.1 or newer. Another option is to modify
8179
*** your PATH or compiler configuration so that the native linker is
8180
*** used, and then restart.
8183
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8184
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8185
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8191
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8192
case `$LD -v 2>&1` in
8193
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8197
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8198
*** reliably create shared libraries on SCO systems. Therefore, libtool
8199
*** is disabling shared libraries support. We urge you to upgrade GNU
8200
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8201
*** your PATH or compiler configuration so that the native linker is
8202
*** used, and then restart.
8207
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8208
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8209
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8210
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8219
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8222
hardcode_shlibpath_var=no
8226
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8227
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8235
if test "$ld_shlibs" = no; then
8237
hardcode_libdir_flag_spec=
8238
export_dynamic_flag_spec=
8239
whole_archive_flag_spec=
8242
# PORTME fill in a description of your system's linker (not GNU ld)
8245
allow_undefined_flag=unsupported
8246
always_export_symbols=yes
8247
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'
8248
# Note: this linker hardcodes the directories in LIBPATH if there
8249
# are no directories specified by -L.
8250
hardcode_minus_L=yes
8251
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8252
# Neither direct hardcoding nor static linking is supported with a
8254
hardcode_direct=unsupported
8259
if test "$host_cpu" = ia64; then
8260
# On IA64, the linker does run time linking by default, so we don't
8261
# have to do anything special.
8262
aix_use_runtimelinking=no
8263
exp_sym_flag='-Bexport'
8266
# If we're using GNU nm, then we don't want the "-C" option.
8267
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8268
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8269
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8271
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'
8273
aix_use_runtimelinking=no
8275
# Test if we are trying to use run time linking or normal
8276
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8277
# need to do runtime linking.
8278
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8279
for ld_flag in $LDFLAGS; do
8280
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8281
aix_use_runtimelinking=yes
8288
exp_sym_flag='-bexport'
8289
no_entry_flag='-bnoentry'
8292
# When large executables or shared objects are built, AIX ld can
8293
# have problems creating the table of contents. If linking a library
8294
# or program results in "error TOC overflow" add -mminimal-toc to
8295
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8296
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8300
hardcode_libdir_separator=':'
8301
link_all_deplibs=yes
8303
if test "$GCC" = yes; then
8304
case $host_os in aix4.[012]|aix4.[012].*)
8305
# We only want to do this on AIX 4.2 and lower, the check
8306
# below for broken collect2 doesn't work under 4.3+
8307
collect2name=`${CC} -print-prog-name=collect2`
8308
if test -f "$collect2name" && \
8309
strings "$collect2name" | grep resolve_lib_name >/dev/null
8311
# We have reworked collect2
8314
# We have old collect2
8315
hardcode_direct=unsupported
8316
# It fails to find uninstalled libraries when the uninstalled
8317
# path is not listed in the libpath. Setting hardcode_minus_L
8318
# to unsupported forces relinking
8319
hardcode_minus_L=yes
8320
hardcode_libdir_flag_spec='-L$libdir'
8321
hardcode_libdir_separator=
8325
shared_flag='-shared'
8326
if test "$aix_use_runtimelinking" = yes; then
8327
shared_flag="$shared_flag "'${wl}-G'
8331
if test "$host_cpu" = ia64; then
8332
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8333
# chokes on -Wl,-G. The following line is correct:
8336
if test "$aix_use_runtimelinking" = yes; then
8337
shared_flag='${wl}-G'
8339
shared_flag='${wl}-bM:SRE'
8344
# It seems that -bexpall does not export symbols beginning with
8345
# underscore (_), so it is better to generate a list of symbols to export.
8346
always_export_symbols=yes
8347
if test "$aix_use_runtimelinking" = yes; then
8348
# Warning - without using the other runtime loading flags (-brtl),
8349
# -berok will link without error, but may produce a broken library.
8350
allow_undefined_flag='-berok'
8351
# Determine the default libpath from the value encoded in an empty executable.
8352
cat >conftest.$ac_ext <<_ACEOF
8355
cat confdefs.h >>conftest.$ac_ext
8356
cat >>conftest.$ac_ext <<_ACEOF
8357
/* end confdefs.h. */
8367
rm -f conftest.$ac_objext conftest$ac_exeext
8368
if { (ac_try="$ac_link"
8370
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371
*) ac_try_echo=$ac_try;;
8373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374
(eval "$ac_link") 2>conftest.er1
8376
grep -v '^ *+' conftest.er1 >conftest.err
8378
cat conftest.err >&5
8379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380
(exit $ac_status); } && {
8381
test -z "$ac_c_werror_flag" ||
8382
test ! -s conftest.err
8383
} && test -s conftest$ac_exeext &&
8384
$as_test_x conftest$ac_exeext; then
8386
lt_aix_libpath_sed='
8387
/Import File Strings/,/^$/ {
8393
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394
# Check for a 64-bit object if we didn't find anything.
8395
if test -z "$aix_libpath"; then
8396
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399
echo "$as_me: failed program was:" >&5
8400
sed 's/^/| /' conftest.$ac_ext >&5
8405
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8406
conftest$ac_exeext conftest.$ac_ext
8407
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8409
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8410
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8412
if test "$host_cpu" = ia64; then
8413
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8414
allow_undefined_flag="-z nodefs"
8415
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"
8417
# Determine the default libpath from the value encoded in an empty executable.
8418
cat >conftest.$ac_ext <<_ACEOF
8421
cat confdefs.h >>conftest.$ac_ext
8422
cat >>conftest.$ac_ext <<_ACEOF
8423
/* end confdefs.h. */
8433
rm -f conftest.$ac_objext conftest$ac_exeext
8434
if { (ac_try="$ac_link"
8436
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437
*) ac_try_echo=$ac_try;;
8439
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440
(eval "$ac_link") 2>conftest.er1
8442
grep -v '^ *+' conftest.er1 >conftest.err
8444
cat conftest.err >&5
8445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446
(exit $ac_status); } && {
8447
test -z "$ac_c_werror_flag" ||
8448
test ! -s conftest.err
8449
} && test -s conftest$ac_exeext &&
8450
$as_test_x conftest$ac_exeext; then
8452
lt_aix_libpath_sed='
8453
/Import File Strings/,/^$/ {
8459
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8460
# Check for a 64-bit object if we didn't find anything.
8461
if test -z "$aix_libpath"; then
8462
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8465
echo "$as_me: failed program was:" >&5
8466
sed 's/^/| /' conftest.$ac_ext >&5
8471
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8472
conftest$ac_exeext conftest.$ac_ext
8473
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8475
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8476
# Warning - without using the other run time loading flags,
8477
# -berok will link without error, but may produce a broken library.
8478
no_undefined_flag=' ${wl}-bernotok'
8479
allow_undefined_flag=' ${wl}-berok'
8480
# Exported symbols can be pulled into shared objects from archives
8481
whole_archive_flag_spec='$convenience'
8482
archive_cmds_need_lc=yes
8483
# This is similar to how AIX traditionally builds its shared libraries.
8484
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'
8490
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)'
8491
hardcode_libdir_flag_spec='-L$libdir'
8492
hardcode_minus_L=yes
8493
# see comment about different semantics on the GNU ld section
8498
export_dynamic_flag_spec=-rdynamic
8501
cygwin* | mingw* | pw32*)
8502
# When not using gcc, we currently assume that we are using
8503
# Microsoft Visual C++.
8504
# hardcode_libdir_flag_spec is actually meaningless, as there is
8505
# no search path for DLLs.
8506
hardcode_libdir_flag_spec=' '
8507
allow_undefined_flag=unsupported
8508
# Tell ltmain to make .lib files, not .a files.
8510
# Tell ltmain to make .dll files, not .so files.
8512
# FIXME: Setting linknames here is a bad hack.
8513
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8514
# The linker will automatically build a .lib file if we build a DLL.
8515
old_archive_From_new_cmds='true'
8516
# FIXME: Should let the user specify the lib program.
8517
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8518
fix_srcfile_path='`cygpath -w "$srcfile"`'
8519
enable_shared_with_static_runtimes=yes
8522
darwin* | rhapsody*)
8524
rhapsody* | darwin1.[012])
8525
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8528
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8529
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8531
case ${MACOSX_DEPLOYMENT_TARGET} in
8533
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8536
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8542
archive_cmds_need_lc=no
8544
hardcode_automatic=yes
8545
hardcode_shlibpath_var=unsupported
8546
whole_archive_flag_spec=''
8547
link_all_deplibs=yes
8548
if test "$GCC" = yes ; then
8549
output_verbose_link_cmd='echo'
8550
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8551
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8552
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8553
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8554
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8556
case $cc_basename in
8558
output_verbose_link_cmd='echo'
8559
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8560
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8561
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8562
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8563
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8573
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8574
hardcode_libdir_flag_spec='-L$libdir'
8575
hardcode_shlibpath_var=no
8582
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8583
# support. Future versions do this automatically, but an explicit c++rt0.o
8584
# does not break anything, and helps significantly (at the cost of a little
8587
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8588
hardcode_libdir_flag_spec='-R$libdir'
8590
hardcode_shlibpath_var=no
8593
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8595
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8597
hardcode_minus_L=yes
8598
hardcode_shlibpath_var=no
8601
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8602
freebsd* | dragonfly*)
8603
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8604
hardcode_libdir_flag_spec='-R$libdir'
8606
hardcode_shlibpath_var=no
8610
if test "$GCC" = yes; then
8611
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8613
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'
8615
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8616
hardcode_libdir_separator=:
8619
# hardcode_minus_L: Not really in the search PATH,
8620
# but as the default location of the library.
8621
hardcode_minus_L=yes
8622
export_dynamic_flag_spec='${wl}-E'
8626
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8627
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8629
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8631
if test "$with_gnu_ld" = no; then
8632
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8633
hardcode_libdir_separator=:
8636
export_dynamic_flag_spec='${wl}-E'
8638
# hardcode_minus_L: Not really in the search PATH,
8639
# but as the default location of the library.
8640
hardcode_minus_L=yes
8645
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8648
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8651
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8654
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8660
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8663
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8666
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8670
if test "$with_gnu_ld" = no; then
8671
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8672
hardcode_libdir_separator=:
8676
hardcode_libdir_flag_spec_ld='+b $libdir'
8678
hardcode_shlibpath_var=no
8682
export_dynamic_flag_spec='${wl}-E'
8684
# hardcode_minus_L: Not really in the search PATH,
8685
# but as the default location of the library.
8686
hardcode_minus_L=yes
8692
irix5* | irix6* | nonstopux*)
8693
if test "$GCC" = yes; then
8694
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8696
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8697
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8699
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700
hardcode_libdir_separator=:
8701
link_all_deplibs=yes
8705
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8706
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8708
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8710
hardcode_libdir_flag_spec='-R$libdir'
8712
hardcode_shlibpath_var=no
8716
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719
hardcode_libdir_separator=:
8720
hardcode_shlibpath_var=no
8724
if test -f /usr/libexec/ld.so; then
8726
hardcode_shlibpath_var=no
8727
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8728
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8729
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8730
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8731
export_dynamic_flag_spec='${wl}-E'
8734
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8735
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8736
hardcode_libdir_flag_spec='-R$libdir'
8739
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8740
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750
hardcode_libdir_flag_spec='-L$libdir'
8751
hardcode_minus_L=yes
8752
allow_undefined_flag=unsupported
8753
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'
8754
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8758
if test "$GCC" = yes; then
8759
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8760
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8762
allow_undefined_flag=' -expect_unresolved \*'
8763
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8765
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8766
hardcode_libdir_separator=:
8769
osf4* | osf5*) # as osf3* with the addition of -msym flag
8770
if test "$GCC" = yes; then
8771
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8772
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8773
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775
allow_undefined_flag=' -expect_unresolved \*'
8776
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8777
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8778
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8780
# Both c and cxx compiler support -rpath directly
8781
hardcode_libdir_flag_spec='-rpath $libdir'
8783
hardcode_libdir_separator=:
8787
no_undefined_flag=' -z text'
8788
if test "$GCC" = yes; then
8790
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8792
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8795
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8797
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8799
hardcode_libdir_flag_spec='-R$libdir'
8800
hardcode_shlibpath_var=no
8802
solaris2.[0-5] | solaris2.[0-5].*) ;;
8804
# The compiler driver will combine and reorder linker options,
8805
# but understands `-z linker_flag'. GCC discards it without `$wl',
8806
# but is careful enough not to reorder.
8807
# Supported since Solaris 2.6 (maybe 2.5.1?)
8808
if test "$GCC" = yes; then
8809
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8811
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8815
link_all_deplibs=yes
8819
if test "x$host_vendor" = xsequent; then
8820
# Use $CC to link under sequent, because it throws in some extra .o
8821
# files that make .init and .fini sections work.
8822
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8824
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8826
hardcode_libdir_flag_spec='-L$libdir'
8828
hardcode_minus_L=yes
8829
hardcode_shlibpath_var=no
8833
case $host_vendor in
8835
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8836
hardcode_direct=yes # is this really true???
8839
## LD is ld it makes a PLAMLIB
8840
## CC just makes a GrossModule.
8841
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8842
reload_cmds='$CC -r -o $output$reload_objs'
8846
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8850
runpath_var='LD_RUN_PATH'
8851
hardcode_shlibpath_var=no
8855
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856
hardcode_shlibpath_var=no
8857
export_dynamic_flag_spec='-Bexport'
8861
if test -d /usr/nec; then
8862
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863
hardcode_shlibpath_var=no
8864
runpath_var=LD_RUN_PATH
8865
hardcode_runpath_var=yes
8870
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8871
no_undefined_flag='${wl}-z,text'
8872
archive_cmds_need_lc=no
8873
hardcode_shlibpath_var=no
8874
runpath_var='LD_RUN_PATH'
8876
if test "$GCC" = yes; then
8877
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8878
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8885
sysv5* | sco3.2v5* | sco5v6*)
8886
# Note: We can NOT use -z defs as we might desire, because we do not
8887
# link with -lc, and that would cause any symbols used from libc to
8888
# always be unresolved, which means just about no library would
8889
# ever link correctly. If we're not using GNU ld we use -z text
8890
# though, which does catch some bad symbols but isn't as heavy-handed
8892
no_undefined_flag='${wl}-z,text'
8893
allow_undefined_flag='${wl}-z,nodefs'
8894
archive_cmds_need_lc=no
8895
hardcode_shlibpath_var=no
8896
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8897
hardcode_libdir_separator=':'
8898
link_all_deplibs=yes
8899
export_dynamic_flag_spec='${wl}-Bexport'
8900
runpath_var='LD_RUN_PATH'
8902
if test "$GCC" = yes; then
8903
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8904
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8907
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913
hardcode_libdir_flag_spec='-L$libdir'
8914
hardcode_shlibpath_var=no
8923
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8924
echo "${ECHO_T}$ld_shlibs" >&6; }
8925
test "$ld_shlibs" = no && can_build_shared=no
8928
# Do we need to explicitly link libc?
8930
case "x$archive_cmds_need_lc" in
8932
# Assume -lc should be added
8933
archive_cmds_need_lc=yes
8935
if test "$enable_shared" = yes && test "$GCC" = yes; then
8936
case $archive_cmds in
8938
# FIXME: we may have to deal with multi-command sequences.
8941
# Test whether the compiler implicitly links with -lc since on some
8942
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8943
# to ld, don't add -lc before -lgcc.
8944
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8945
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8947
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950
(eval $ac_compile) 2>&5
8952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953
(exit $ac_status); } 2>conftest.err; then
8956
libobjs=conftest.$ac_objext
8958
wl=$lt_prog_compiler_wl
8959
pic_flag=$lt_prog_compiler_pic
8965
lt_save_allow_undefined_flag=$allow_undefined_flag
8966
allow_undefined_flag=
8967
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8968
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971
(exit $ac_status); }
8973
archive_cmds_need_lc=no
8975
archive_cmds_need_lc=yes
8977
allow_undefined_flag=$lt_save_allow_undefined_flag
8979
cat conftest.err 1>&5
8982
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8983
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8990
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8991
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8993
libname_spec='lib$name'
9001
shlibpath_overrides_runpath=unknown
9003
dynamic_linker="$host_os ld.so"
9004
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9006
if test "$GCC" = yes; then
9008
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9009
*) lt_awk_arg="/^libraries:/" ;;
9011
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9012
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9013
# if the path contains ";" then we assume it to be the separator
9014
# otherwise default to the standard path separator (i.e. ":") - it is
9015
# assumed that no part of a normal pathname contains ";" but that should
9016
# okay in the real world where ";" in dirpaths is itself problematic.
9017
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9019
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9021
# Ok, now we have the path, separated by spaces, we can step through it
9022
# and add multilib dir if necessary.
9023
lt_tmp_lt_search_path_spec=
9024
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9025
for lt_sys_path in $lt_search_path_spec; do
9026
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9027
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9029
test -d "$lt_sys_path" && \
9030
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9033
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9034
BEGIN {RS=" "; FS="/|\n";} {
9037
for (lt_i = NF; lt_i > 0; lt_i--) {
9038
if ($lt_i != "" && $lt_i != ".") {
9039
if ($lt_i == "..") {
9042
if (lt_count == 0) {
9043
lt_foo="/" $lt_i lt_foo;
9050
if (lt_foo != "") { lt_freq[lt_foo]++; }
9051
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9053
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9055
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9057
need_lib_prefix=unknown
9058
hardcode_into_libs=no
9060
# when you set need_version to no, make sure it does not cause -set_version
9061
# flags to be left without arguments
9062
need_version=unknown
9067
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9068
shlibpath_var=LIBPATH
9070
# AIX 3 has no versioning support, so we append a major version to the name.
9071
soname_spec='${libname}${release}${shared_ext}$major'
9078
hardcode_into_libs=yes
9079
if test "$host_cpu" = ia64; then
9080
# AIX 5 supports IA64
9081
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9082
shlibpath_var=LD_LIBRARY_PATH
9084
# With GCC up to 2.95.x, collect2 would create an import file
9085
# for dependence libraries. The import file would start with
9086
# the line `#! .'. This would cause the generated library to
9087
# depend on `.', always an invalid library. This was fixed in
9088
# development snapshots of GCC prior to 3.0.
9090
aix4 | aix4.[01] | aix4.[01].*)
9091
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9093
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9100
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9101
# soname into executable. Probably we can add versioning support to
9102
# collect2, so additional links can be useful in future.
9103
if test "$aix_use_runtimelinking" = yes; then
9104
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9105
# instead of lib<name>.a to let people know that these are not
9106
# typical AIX shared libraries.
9107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109
# We preserve .a as extension for shared libraries through AIX4.2
9110
# and later when we are not doing run time linking.
9111
library_names_spec='${libname}${release}.a $libname.a'
9112
soname_spec='${libname}${release}${shared_ext}$major'
9114
shlibpath_var=LIBPATH
9119
library_names_spec='$libname.ixlibrary $libname.a'
9120
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9121
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9125
library_names_spec='${libname}${shared_ext}'
9126
dynamic_linker="$host_os ld.so"
9127
shlibpath_var=LIBRARY_PATH
9133
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134
soname_spec='${libname}${release}${shared_ext}$major'
9135
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9136
shlibpath_var=LD_LIBRARY_PATH
9137
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9138
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9139
# the default ld.so.conf also contains /usr/contrib/lib and
9140
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9141
# libtool to hard-code these into programs
9144
cygwin* | mingw* | pw32*)
9145
version_type=windows
9150
case $GCC,$host_os in
9151
yes,cygwin* | yes,mingw* | yes,pw32*)
9152
library_names_spec='$libname.dll.a'
9153
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9154
postinstall_cmds='base_file=`basename \${file}`~
9155
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9156
dldir=$destdir/`dirname \$dlpath`~
9157
test -d \$dldir || mkdir -p \$dldir~
9158
$install_prog $dir/$dlname \$dldir/$dlname~
9159
chmod a+x \$dldir/$dlname'
9160
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9161
dlpath=$dir/\$dldll~
9163
shlibpath_overrides_runpath=yes
9167
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9168
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9169
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9172
# MinGW DLLs use traditional 'lib' prefix
9173
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9174
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9175
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9176
# It is most probably a Windows format PATH printed by
9177
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9178
# path with ; separators, and with drive letters. We can handle the
9179
# drive letters (cygwin fileutils understands them), so leave them,
9180
# especially as we might pass files found there to a mingw objdump,
9181
# which wouldn't understand a cygwinified path. Ahh.
9182
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9184
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9188
# pw32 DLLs use 'pw' prefix rather than 'lib'
9189
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9195
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9198
dynamic_linker='Win32 ld.exe'
9199
# FIXME: first we should search . and the directory the executable is in
9203
darwin* | rhapsody*)
9204
dynamic_linker="$host_os dyld"
9208
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9209
soname_spec='${libname}${release}${major}$shared_ext'
9210
shlibpath_overrides_runpath=yes
9211
shlibpath_var=DYLD_LIBRARY_PATH
9212
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9214
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9215
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9223
soname_spec='${libname}${release}${shared_ext}$major'
9224
shlibpath_var=LD_LIBRARY_PATH
9231
freebsd* | dragonfly*)
9232
# DragonFly does not have aout. When/if they implement a new
9233
# versioning mechanism, adjust this.
9234
if test -x /usr/bin/objformat; then
9235
objformat=`/usr/bin/objformat`
9238
freebsd[123]*) objformat=aout ;;
9242
version_type=freebsd-$objformat
9243
case $version_type in
9245
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9250
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9254
shlibpath_var=LD_LIBRARY_PATH
9257
shlibpath_overrides_runpath=yes
9259
freebsd3.[01]* | freebsdelf3.[01]*)
9260
shlibpath_overrides_runpath=yes
9261
hardcode_into_libs=yes
9263
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9264
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9265
shlibpath_overrides_runpath=no
9266
hardcode_into_libs=yes
9268
*) # from 4.6 on, and DragonFly
9269
shlibpath_overrides_runpath=yes
9270
hardcode_into_libs=yes
9279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9280
soname_spec='${libname}${release}${shared_ext}$major'
9281
shlibpath_var=LD_LIBRARY_PATH
9282
hardcode_into_libs=yes
9285
hpux9* | hpux10* | hpux11*)
9286
# Give a soname corresponding to the major version so that dld.sl refuses to
9287
# link against other versions.
9294
hardcode_into_libs=yes
9295
dynamic_linker="$host_os dld.so"
9296
shlibpath_var=LD_LIBRARY_PATH
9297
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9298
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299
soname_spec='${libname}${release}${shared_ext}$major'
9300
if test "X$HPUX_IA64_MODE" = X32; then
9301
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9303
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9305
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9309
hardcode_into_libs=yes
9310
dynamic_linker="$host_os dld.sl"
9311
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9312
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314
soname_spec='${libname}${release}${shared_ext}$major'
9315
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9316
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9320
dynamic_linker="$host_os dld.sl"
9321
shlibpath_var=SHLIB_PATH
9322
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9324
soname_spec='${libname}${release}${shared_ext}$major'
9327
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9328
postinstall_cmds='chmod 555 $lib'
9335
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9336
soname_spec='${libname}${release}${shared_ext}$major'
9337
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9338
shlibpath_var=LD_LIBRARY_PATH
9339
shlibpath_overrides_runpath=no
9340
hardcode_into_libs=yes
9343
irix5* | irix6* | nonstopux*)
9345
nonstopux*) version_type=nonstopux ;;
9347
if test "$lt_cv_prog_gnu_ld" = yes; then
9355
soname_spec='${libname}${release}${shared_ext}$major'
9356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9358
irix5* | nonstopux*)
9362
case $LD in # libtool.m4 will add one of these switches to LD
9363
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9364
libsuff= shlibsuff= libmagic=32-bit;;
9365
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9366
libsuff=32 shlibsuff=N32 libmagic=N32;;
9367
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9368
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9369
*) libsuff= shlibsuff= libmagic=never-match;;
9373
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9374
shlibpath_overrides_runpath=no
9375
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9376
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9377
hardcode_into_libs=yes
9380
# No shared lib support for Linux oldld, aout, or coff.
9381
linux*oldld* | linux*aout* | linux*coff*)
9385
# This must be Linux ELF.
9386
linux* | k*bsd*-gnu)
9390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391
soname_spec='${libname}${release}${shared_ext}$major'
9392
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9393
shlibpath_var=LD_LIBRARY_PATH
9394
shlibpath_overrides_runpath=no
9395
# This implies no fast_install, which is unacceptable.
9396
# Some rework will be needed to allow for fast_install
9397
# before this can be enabled.
9398
hardcode_into_libs=yes
9400
# Append ld.so.conf contents to the search path
9401
if test -f /etc/ld.so.conf; then
9402
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;/^$/d' | tr '\n' ' '`
9403
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9406
# We used to test for /lib/ld.so.1 and disable shared libraries on
9407
# powerpc, because MkLinux only supported shared libraries with the
9408
# GNU dynamic linker. Since this was broken with cross compilers,
9409
# most powerpc-linux boxes support dynamic linking these days and
9410
# people can always --disable-shared, the test was removed, and we
9411
# assume the GNU/Linux dynamic linker is in use.
9412
dynamic_linker='GNU/Linux ld.so'
9419
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9420
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9421
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9422
dynamic_linker='NetBSD (a.out) ld.so'
9424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9425
soname_spec='${libname}${release}${shared_ext}$major'
9426
dynamic_linker='NetBSD ld.elf_so'
9428
shlibpath_var=LD_LIBRARY_PATH
9429
shlibpath_overrides_runpath=yes
9430
hardcode_into_libs=yes
9435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436
shlibpath_var=LD_LIBRARY_PATH
9437
shlibpath_overrides_runpath=yes
9444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445
soname_spec='${libname}${release}${shared_ext}$major'
9446
shlibpath_var=LD_LIBRARY_PATH
9447
shlibpath_overrides_runpath=yes
9452
sys_lib_dlsearch_path_spec="/usr/lib"
9454
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9456
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9457
*) need_version=no ;;
9459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9460
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9461
shlibpath_var=LD_LIBRARY_PATH
9462
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9464
openbsd2.[89] | openbsd2.[89].*)
9465
shlibpath_overrides_runpath=no
9468
shlibpath_overrides_runpath=yes
9472
shlibpath_overrides_runpath=yes
9477
libname_spec='$name'
9480
library_names_spec='$libname${shared_ext} $libname.a'
9481
dynamic_linker='OS/2 ld.exe'
9482
shlibpath_var=LIBPATH
9485
osf3* | osf4* | osf5*)
9489
soname_spec='${libname}${release}${shared_ext}$major'
9490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491
shlibpath_var=LD_LIBRARY_PATH
9492
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9493
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505
soname_spec='${libname}${release}${shared_ext}$major'
9506
shlibpath_var=LD_LIBRARY_PATH
9507
shlibpath_overrides_runpath=yes
9508
hardcode_into_libs=yes
9509
# ldd complains unless libraries are executable
9510
postinstall_cmds='chmod +x $lib'
9515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9516
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9517
shlibpath_var=LD_LIBRARY_PATH
9518
shlibpath_overrides_runpath=yes
9519
if test "$with_gnu_ld" = yes; then
9527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528
soname_spec='${libname}${release}${shared_ext}$major'
9529
shlibpath_var=LD_LIBRARY_PATH
9530
case $host_vendor in
9532
shlibpath_overrides_runpath=no
9534
export_dynamic_flag_spec='${wl}-Blargedynsym'
9535
runpath_var=LD_RUN_PATH
9543
shlibpath_overrides_runpath=no
9544
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9550
if test -d /usr/nec ;then
9552
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9553
soname_spec='$libname${shared_ext}.$major'
9554
shlibpath_var=LD_LIBRARY_PATH
9558
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9559
version_type=freebsd-elf
9562
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9563
soname_spec='${libname}${release}${shared_ext}$major'
9564
shlibpath_var=LD_LIBRARY_PATH
9565
hardcode_into_libs=yes
9566
if test "$with_gnu_ld" = yes; then
9567
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9568
shlibpath_overrides_runpath=no
9570
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9571
shlibpath_overrides_runpath=yes
9574
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9578
sys_lib_dlsearch_path_spec='/usr/lib'
9583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584
soname_spec='${libname}${release}${shared_ext}$major'
9585
shlibpath_var=LD_LIBRARY_PATH
9592
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9593
echo "${ECHO_T}$dynamic_linker" >&6; }
9594
test "$dynamic_linker" = no && can_build_shared=no
9596
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9597
if test "$GCC" = yes; then
9598
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9601
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9602
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9604
if test -n "$hardcode_libdir_flag_spec" || \
9605
test -n "$runpath_var" || \
9606
test "X$hardcode_automatic" = "Xyes" ; then
9608
# We can hardcode non-existant directories.
9609
if test "$hardcode_direct" != no &&
9610
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9611
# have to relink, otherwise we might link with an installed library
9612
# when we should be linking with a yet-to-be-installed one
9613
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9614
test "$hardcode_minus_L" != no; then
9615
# Linking always hardcodes the temporary library directory.
9616
hardcode_action=relink
9618
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9619
hardcode_action=immediate
9622
# We cannot hardcode anything, or else we can only hardcode existing
9624
hardcode_action=unsupported
9626
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9627
echo "${ECHO_T}$hardcode_action" >&6; }
9629
if test "$hardcode_action" = relink; then
9630
# Fast installation is not supported
9631
enable_fast_install=no
9632
elif test "$shlibpath_overrides_runpath" = yes ||
9633
test "$enable_shared" = no; then
9634
# Fast installation is not necessary
9635
enable_fast_install=needless
9640
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9641
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9642
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9643
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9644
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9645
{ echo "$as_me:$LINENO: result: yes" >&5
9646
echo "${ECHO_T}yes" >&6; }
9648
# FIXME - insert some real tests, host_os isn't really good enough
9651
if test -n "$STRIP" ; then
9652
striplib="$STRIP -x"
9653
old_striplib="$STRIP -S"
9654
{ echo "$as_me:$LINENO: result: yes" >&5
9655
echo "${ECHO_T}yes" >&6; }
9657
{ echo "$as_me:$LINENO: result: no" >&5
9658
echo "${ECHO_T}no" >&6; }
9662
{ echo "$as_me:$LINENO: result: no" >&5
9663
echo "${ECHO_T}no" >&6; }
9668
if test "x$enable_dlopen" != xyes; then
9669
enable_dlopen=unknown
9670
enable_dlopen_self=unknown
9671
enable_dlopen_self_static=unknown
9678
lt_cv_dlopen="load_add_on"
9680
lt_cv_dlopen_self=yes
9684
lt_cv_dlopen="LoadLibrary"
9689
lt_cv_dlopen="dlopen"
9694
# if libdl is installed we need to link against it
9695
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9696
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9697
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9698
echo $ECHO_N "(cached) $ECHO_C" >&6
9700
ac_check_lib_save_LIBS=$LIBS
9702
cat >conftest.$ac_ext <<_ACEOF
9705
cat confdefs.h >>conftest.$ac_ext
9706
cat >>conftest.$ac_ext <<_ACEOF
9707
/* end confdefs.h. */
9709
/* Override any GCC internal prototype to avoid an error.
9710
Use char because int might match the return type of a GCC
9711
builtin and then its argument prototype would still apply. */
9724
rm -f conftest.$ac_objext conftest$ac_exeext
9725
if { (ac_try="$ac_link"
9727
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728
*) ac_try_echo=$ac_try;;
9730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731
(eval "$ac_link") 2>conftest.er1
9733
grep -v '^ *+' conftest.er1 >conftest.err
9735
cat conftest.err >&5
9736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737
(exit $ac_status); } && {
9738
test -z "$ac_c_werror_flag" ||
9739
test ! -s conftest.err
9740
} && test -s conftest$ac_exeext &&
9741
$as_test_x conftest$ac_exeext; then
9742
ac_cv_lib_dl_dlopen=yes
9744
echo "$as_me: failed program was:" >&5
9745
sed 's/^/| /' conftest.$ac_ext >&5
9747
ac_cv_lib_dl_dlopen=no
9750
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9751
conftest$ac_exeext conftest.$ac_ext
9752
LIBS=$ac_check_lib_save_LIBS
9754
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9755
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9756
if test $ac_cv_lib_dl_dlopen = yes; then
9757
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9762
lt_cv_dlopen_self=yes
9769
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9770
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9771
if test "${ac_cv_func_shl_load+set}" = set; then
9772
echo $ECHO_N "(cached) $ECHO_C" >&6
9774
cat >conftest.$ac_ext <<_ACEOF
9777
cat confdefs.h >>conftest.$ac_ext
9778
cat >>conftest.$ac_ext <<_ACEOF
9779
/* end confdefs.h. */
9780
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9781
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9782
#define shl_load innocuous_shl_load
9784
/* System header to define __stub macros and hopefully few prototypes,
9785
which can conflict with char shl_load (); below.
9786
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9787
<limits.h> exists even on freestanding compilers. */
9790
# include <limits.h>
9792
# include <assert.h>
9797
/* Override any GCC internal prototype to avoid an error.
9798
Use char because int might match the return type of a GCC
9799
builtin and then its argument prototype would still apply. */
9804
/* The GNU C library defines this for functions which it implements
9805
to always fail with ENOSYS. Some functions are actually named
9806
something starting with __ and the normal name is an alias. */
9807
#if defined __stub_shl_load || defined __stub___shl_load
9819
rm -f conftest.$ac_objext conftest$ac_exeext
9820
if { (ac_try="$ac_link"
9822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823
*) ac_try_echo=$ac_try;;
9825
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826
(eval "$ac_link") 2>conftest.er1
9828
grep -v '^ *+' conftest.er1 >conftest.err
9830
cat conftest.err >&5
9831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832
(exit $ac_status); } && {
9833
test -z "$ac_c_werror_flag" ||
9834
test ! -s conftest.err
9835
} && test -s conftest$ac_exeext &&
9836
$as_test_x conftest$ac_exeext; then
9837
ac_cv_func_shl_load=yes
9839
echo "$as_me: failed program was:" >&5
9840
sed 's/^/| /' conftest.$ac_ext >&5
9842
ac_cv_func_shl_load=no
9845
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9846
conftest$ac_exeext conftest.$ac_ext
9848
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9849
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9850
if test $ac_cv_func_shl_load = yes; then
9851
lt_cv_dlopen="shl_load"
9853
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9854
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9855
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9856
echo $ECHO_N "(cached) $ECHO_C" >&6
9858
ac_check_lib_save_LIBS=$LIBS
9860
cat >conftest.$ac_ext <<_ACEOF
9863
cat confdefs.h >>conftest.$ac_ext
9864
cat >>conftest.$ac_ext <<_ACEOF
9865
/* end confdefs.h. */
9867
/* Override any GCC internal prototype to avoid an error.
9868
Use char because int might match the return type of a GCC
9869
builtin and then its argument prototype would still apply. */
9882
rm -f conftest.$ac_objext conftest$ac_exeext
9883
if { (ac_try="$ac_link"
9885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886
*) ac_try_echo=$ac_try;;
9888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889
(eval "$ac_link") 2>conftest.er1
9891
grep -v '^ *+' conftest.er1 >conftest.err
9893
cat conftest.err >&5
9894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895
(exit $ac_status); } && {
9896
test -z "$ac_c_werror_flag" ||
9897
test ! -s conftest.err
9898
} && test -s conftest$ac_exeext &&
9899
$as_test_x conftest$ac_exeext; then
9900
ac_cv_lib_dld_shl_load=yes
9902
echo "$as_me: failed program was:" >&5
9903
sed 's/^/| /' conftest.$ac_ext >&5
9905
ac_cv_lib_dld_shl_load=no
9908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909
conftest$ac_exeext conftest.$ac_ext
9910
LIBS=$ac_check_lib_save_LIBS
9912
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9913
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9914
if test $ac_cv_lib_dld_shl_load = yes; then
9915
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9917
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9918
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9919
if test "${ac_cv_func_dlopen+set}" = set; then
9920
echo $ECHO_N "(cached) $ECHO_C" >&6
9922
cat >conftest.$ac_ext <<_ACEOF
9925
cat confdefs.h >>conftest.$ac_ext
9926
cat >>conftest.$ac_ext <<_ACEOF
9927
/* end confdefs.h. */
9928
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9929
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9930
#define dlopen innocuous_dlopen
9932
/* System header to define __stub macros and hopefully few prototypes,
9933
which can conflict with char dlopen (); below.
9934
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9935
<limits.h> exists even on freestanding compilers. */
9938
# include <limits.h>
9940
# include <assert.h>
9945
/* Override any GCC internal prototype to avoid an error.
9946
Use char because int might match the return type of a GCC
9947
builtin and then its argument prototype would still apply. */
9952
/* The GNU C library defines this for functions which it implements
9953
to always fail with ENOSYS. Some functions are actually named
9954
something starting with __ and the normal name is an alias. */
9955
#if defined __stub_dlopen || defined __stub___dlopen
9967
rm -f conftest.$ac_objext conftest$ac_exeext
9968
if { (ac_try="$ac_link"
9970
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971
*) ac_try_echo=$ac_try;;
9973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974
(eval "$ac_link") 2>conftest.er1
9976
grep -v '^ *+' conftest.er1 >conftest.err
9978
cat conftest.err >&5
9979
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980
(exit $ac_status); } && {
9981
test -z "$ac_c_werror_flag" ||
9982
test ! -s conftest.err
9983
} && test -s conftest$ac_exeext &&
9984
$as_test_x conftest$ac_exeext; then
9985
ac_cv_func_dlopen=yes
9987
echo "$as_me: failed program was:" >&5
9988
sed 's/^/| /' conftest.$ac_ext >&5
9990
ac_cv_func_dlopen=no
9993
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9994
conftest$ac_exeext conftest.$ac_ext
9996
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9997
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9998
if test $ac_cv_func_dlopen = yes; then
9999
lt_cv_dlopen="dlopen"
10001
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10002
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10003
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10004
echo $ECHO_N "(cached) $ECHO_C" >&6
10006
ac_check_lib_save_LIBS=$LIBS
10008
cat >conftest.$ac_ext <<_ACEOF
10011
cat confdefs.h >>conftest.$ac_ext
10012
cat >>conftest.$ac_ext <<_ACEOF
10013
/* end confdefs.h. */
10015
/* Override any GCC internal prototype to avoid an error.
10016
Use char because int might match the return type of a GCC
10017
builtin and then its argument prototype would still apply. */
10030
rm -f conftest.$ac_objext conftest$ac_exeext
10031
if { (ac_try="$ac_link"
10032
case "(($ac_try" in
10033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034
*) ac_try_echo=$ac_try;;
10036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037
(eval "$ac_link") 2>conftest.er1
10039
grep -v '^ *+' conftest.er1 >conftest.err
10041
cat conftest.err >&5
10042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043
(exit $ac_status); } && {
10044
test -z "$ac_c_werror_flag" ||
10045
test ! -s conftest.err
10046
} && test -s conftest$ac_exeext &&
10047
$as_test_x conftest$ac_exeext; then
10048
ac_cv_lib_dl_dlopen=yes
10050
echo "$as_me: failed program was:" >&5
10051
sed 's/^/| /' conftest.$ac_ext >&5
10053
ac_cv_lib_dl_dlopen=no
10056
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10057
conftest$ac_exeext conftest.$ac_ext
10058
LIBS=$ac_check_lib_save_LIBS
10060
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10061
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10062
if test $ac_cv_lib_dl_dlopen = yes; then
10063
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10065
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10066
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10067
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10068
echo $ECHO_N "(cached) $ECHO_C" >&6
10070
ac_check_lib_save_LIBS=$LIBS
10071
LIBS="-lsvld $LIBS"
10072
cat >conftest.$ac_ext <<_ACEOF
10075
cat confdefs.h >>conftest.$ac_ext
10076
cat >>conftest.$ac_ext <<_ACEOF
10077
/* end confdefs.h. */
10079
/* Override any GCC internal prototype to avoid an error.
10080
Use char because int might match the return type of a GCC
10081
builtin and then its argument prototype would still apply. */
10094
rm -f conftest.$ac_objext conftest$ac_exeext
10095
if { (ac_try="$ac_link"
10096
case "(($ac_try" in
10097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098
*) ac_try_echo=$ac_try;;
10100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101
(eval "$ac_link") 2>conftest.er1
10103
grep -v '^ *+' conftest.er1 >conftest.err
10105
cat conftest.err >&5
10106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107
(exit $ac_status); } && {
10108
test -z "$ac_c_werror_flag" ||
10109
test ! -s conftest.err
10110
} && test -s conftest$ac_exeext &&
10111
$as_test_x conftest$ac_exeext; then
10112
ac_cv_lib_svld_dlopen=yes
10114
echo "$as_me: failed program was:" >&5
10115
sed 's/^/| /' conftest.$ac_ext >&5
10117
ac_cv_lib_svld_dlopen=no
10120
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121
conftest$ac_exeext conftest.$ac_ext
10122
LIBS=$ac_check_lib_save_LIBS
10124
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10125
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10126
if test $ac_cv_lib_svld_dlopen = yes; then
10127
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10129
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10130
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10131
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10132
echo $ECHO_N "(cached) $ECHO_C" >&6
10134
ac_check_lib_save_LIBS=$LIBS
10136
cat >conftest.$ac_ext <<_ACEOF
10139
cat confdefs.h >>conftest.$ac_ext
10140
cat >>conftest.$ac_ext <<_ACEOF
10141
/* end confdefs.h. */
10143
/* Override any GCC internal prototype to avoid an error.
10144
Use char because int might match the return type of a GCC
10145
builtin and then its argument prototype would still apply. */
10153
return dld_link ();
10158
rm -f conftest.$ac_objext conftest$ac_exeext
10159
if { (ac_try="$ac_link"
10160
case "(($ac_try" in
10161
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162
*) ac_try_echo=$ac_try;;
10164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165
(eval "$ac_link") 2>conftest.er1
10167
grep -v '^ *+' conftest.er1 >conftest.err
10169
cat conftest.err >&5
10170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171
(exit $ac_status); } && {
10172
test -z "$ac_c_werror_flag" ||
10173
test ! -s conftest.err
10174
} && test -s conftest$ac_exeext &&
10175
$as_test_x conftest$ac_exeext; then
10176
ac_cv_lib_dld_dld_link=yes
10178
echo "$as_me: failed program was:" >&5
10179
sed 's/^/| /' conftest.$ac_ext >&5
10181
ac_cv_lib_dld_dld_link=no
10184
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185
conftest$ac_exeext conftest.$ac_ext
10186
LIBS=$ac_check_lib_save_LIBS
10188
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10189
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10190
if test $ac_cv_lib_dld_dld_link = yes; then
10191
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10212
if test "x$lt_cv_dlopen" != xno; then
10218
case $lt_cv_dlopen in
10220
save_CPPFLAGS="$CPPFLAGS"
10221
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10223
save_LDFLAGS="$LDFLAGS"
10224
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10227
LIBS="$lt_cv_dlopen_libs $LIBS"
10229
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10230
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10231
if test "${lt_cv_dlopen_self+set}" = set; then
10232
echo $ECHO_N "(cached) $ECHO_C" >&6
10234
if test "$cross_compiling" = yes; then :
10235
lt_cv_dlopen_self=cross
10237
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10238
lt_status=$lt_dlunknown
10239
cat > conftest.$ac_ext <<EOF
10240
#line 10240 "configure"
10241
#include "confdefs.h"
10250
# define LT_DLGLOBAL RTLD_GLOBAL
10253
# define LT_DLGLOBAL DL_GLOBAL
10255
# define LT_DLGLOBAL 0
10259
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10260
find out it does not work in some platform. */
10261
#ifndef LT_DLLAZY_OR_NOW
10263
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10266
# define LT_DLLAZY_OR_NOW DL_LAZY
10269
# define LT_DLLAZY_OR_NOW RTLD_NOW
10272
# define LT_DLLAZY_OR_NOW DL_NOW
10274
# define LT_DLLAZY_OR_NOW 0
10282
extern "C" void exit (int);
10285
void fnord() { int i=42;}
10288
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10289
int status = $lt_dlunknown;
10293
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10294
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10295
/* dlclose (self); */
10303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304
(eval $ac_link) 2>&5
10306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10308
(./conftest; exit; ) >&5 2>/dev/null
10310
case x$lt_status in
10311
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10312
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10313
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10316
# compilation failed
10317
lt_cv_dlopen_self=no
10324
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10325
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10327
if test "x$lt_cv_dlopen_self" = xyes; then
10328
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10329
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10330
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10331
if test "${lt_cv_dlopen_self_static+set}" = set; then
10332
echo $ECHO_N "(cached) $ECHO_C" >&6
10334
if test "$cross_compiling" = yes; then :
10335
lt_cv_dlopen_self_static=cross
10337
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10338
lt_status=$lt_dlunknown
10339
cat > conftest.$ac_ext <<EOF
10340
#line 10340 "configure"
10341
#include "confdefs.h"
10350
# define LT_DLGLOBAL RTLD_GLOBAL
10353
# define LT_DLGLOBAL DL_GLOBAL
10355
# define LT_DLGLOBAL 0
10359
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10360
find out it does not work in some platform. */
10361
#ifndef LT_DLLAZY_OR_NOW
10363
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10366
# define LT_DLLAZY_OR_NOW DL_LAZY
10369
# define LT_DLLAZY_OR_NOW RTLD_NOW
10372
# define LT_DLLAZY_OR_NOW DL_NOW
10374
# define LT_DLLAZY_OR_NOW 0
10382
extern "C" void exit (int);
10385
void fnord() { int i=42;}
10388
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10389
int status = $lt_dlunknown;
10393
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10394
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10395
/* dlclose (self); */
10403
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404
(eval $ac_link) 2>&5
10406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10408
(./conftest; exit; ) >&5 2>/dev/null
10410
case x$lt_status in
10411
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10412
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10413
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10416
# compilation failed
10417
lt_cv_dlopen_self_static=no
10424
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10425
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10428
CPPFLAGS="$save_CPPFLAGS"
10429
LDFLAGS="$save_LDFLAGS"
10434
case $lt_cv_dlopen_self in
10435
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10436
*) enable_dlopen_self=unknown ;;
10439
case $lt_cv_dlopen_self_static in
10440
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10441
*) enable_dlopen_self_static=unknown ;;
10446
# Report which library types will actually be built
10447
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10448
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10449
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10450
echo "${ECHO_T}$can_build_shared" >&6; }
10452
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10453
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10454
test "$can_build_shared" = "no" && enable_shared=no
10456
# On AIX, shared libraries and static libraries use the same namespace, and
10457
# are all built from PIC.
10460
test "$enable_shared" = yes && enable_static=no
10461
if test -n "$RANLIB"; then
10462
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10463
postinstall_cmds='$RANLIB $lib'
10468
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10469
test "$enable_shared" = yes && enable_static=no
10473
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10474
echo "${ECHO_T}$enable_shared" >&6; }
10476
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10477
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10478
# Make sure either enable_shared or enable_static is yes.
10479
test "$enable_shared" = yes || enable_static=yes
10480
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10481
echo "${ECHO_T}$enable_static" >&6; }
10483
# The else clause should only fire when bootstrapping the
10484
# libtool distribution, otherwise you forgot to ship ltmain.sh
10485
# with your package, and you will get complaints that there are
10486
# no rules to generate ltmain.sh.
10487
if test -f "$ltmain"; then
10488
# See if we are running on zsh, and set the options which allow our commands through
10489
# without removal of \ escapes.
10490
if test -n "${ZSH_VERSION+set}" ; then
10491
setopt NO_GLOB_SUBST
10493
# Now quote all the things that may contain metacharacters while being
10494
# careful not to overquote the AC_SUBSTed values. We take copies of the
10495
# variables and quote the copies for generation of the libtool script.
10496
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10498
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10499
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10500
deplibs_check_method reload_flag reload_cmds need_locks \
10501
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10502
lt_cv_sys_global_symbol_to_c_name_address \
10503
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10504
old_postinstall_cmds old_postuninstall_cmds \
10508
lt_prog_compiler_wl \
10509
lt_prog_compiler_pic \
10510
lt_prog_compiler_static \
10511
lt_prog_compiler_no_builtin_flag \
10512
export_dynamic_flag_spec \
10513
thread_safe_flag_spec \
10514
whole_archive_flag_spec \
10515
enable_shared_with_static_runtimes \
10517
old_archive_from_new_cmds \
10522
compiler_lib_search_path \
10524
archive_expsym_cmds \
10526
postuninstall_cmds \
10527
old_archive_from_expsyms_cmds \
10528
allow_undefined_flag \
10529
no_undefined_flag \
10530
export_symbols_cmds \
10531
hardcode_libdir_flag_spec \
10532
hardcode_libdir_flag_spec_ld \
10533
hardcode_libdir_separator \
10534
hardcode_automatic \
10536
module_expsym_cmds \
10537
lt_cv_prog_compiler_c_o \
10540
include_expsyms; do
10543
old_archive_cmds | \
10544
old_archive_from_new_cmds | \
10546
archive_expsym_cmds | \
10548
module_expsym_cmds | \
10549
old_archive_from_expsyms_cmds | \
10550
export_symbols_cmds | \
10551
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10552
postinstall_cmds | postuninstall_cmds | \
10553
old_postinstall_cmds | old_postuninstall_cmds | \
10554
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10555
# Double-quote double-evaled strings.
10556
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10559
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10565
*'\$0 --fallback-echo"')
10566
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10570
cfgfile="${ofile}T"
10571
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10573
{ echo "$as_me:$LINENO: creating $ofile" >&5
10574
echo "$as_me: creating $ofile" >&6;}
10576
cat <<__EOF__ >> "$cfgfile"
10579
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10580
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10581
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10583
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10584
# Free Software Foundation, Inc.
10586
# This file is part of GNU Libtool:
10587
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10589
# This program is free software; you can redistribute it and/or modify
10590
# it under the terms of the GNU General Public License as published by
10591
# the Free Software Foundation; either version 2 of the License, or
10592
# (at your option) any later version.
10594
# This program is distributed in the hope that it will be useful, but
10595
# WITHOUT ANY WARRANTY; without even the implied warranty of
10596
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10597
# General Public License for more details.
10599
# You should have received a copy of the GNU General Public License
10600
# along with this program; if not, write to the Free Software
10601
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10603
# As a special exception to the GNU General Public License, if you
10604
# distribute this file as part of a program that contains a
10605
# configuration script generated by Autoconf, you may include it under
10606
# the same distribution terms that you use for the rest of that program.
10608
# A sed program that does not truncate output.
10611
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10612
Xsed="$SED -e 1s/^X//"
10614
# The HP-UX ksh and POSIX shell print the target directory to stdout
10615
# if CDPATH is set.
10616
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10618
# The names of the tagged configurations supported by this script.
10621
# ### BEGIN LIBTOOL CONFIG
10623
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10625
# Shell to use when invoking shell scripts.
10628
# Whether or not to build shared libraries.
10629
build_libtool_libs=$enable_shared
10631
# Whether or not to build static libraries.
10632
build_old_libs=$enable_static
10634
# Whether or not to add -lc for building shared libraries.
10635
build_libtool_need_lc=$archive_cmds_need_lc
10637
# Whether or not to disallow shared libs when runtime libs are static
10638
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10640
# Whether or not to optimize for fast installation.
10641
fast_install=$enable_fast_install
10644
host_alias=$host_alias
10648
# The build system.
10649
build_alias=$build_alias
10653
# An echo program that does not interpret backslashes.
10658
AR_FLAGS=$lt_AR_FLAGS
10663
# LTCC compiler flags.
10664
LTCFLAGS=$lt_LTCFLAGS
10666
# A language-specific compiler.
10669
# Is the compiler the GNU C compiler?
10675
# The linker used to build libraries.
10678
# Whether we need hard or soft links.
10681
# A BSD-compatible nm program.
10684
# A symbol stripping program
10687
# Used to examine libraries when file_magic_cmd begins "file"
10688
MAGIC_CMD=$MAGIC_CMD
10690
# Used on cygwin: DLL creation program.
10693
# Used on cygwin: object dumper.
10696
# Used on cygwin: assembler.
10699
# The name of the directory that contains temporary libtool files.
10702
# How to create reloadable object files.
10703
reload_flag=$lt_reload_flag
10704
reload_cmds=$lt_reload_cmds
10706
# How to pass a linker flag through the compiler.
10707
wl=$lt_lt_prog_compiler_wl
10709
# Object file suffix (normally "o").
10710
objext="$ac_objext"
10712
# Old archive suffix (normally "a").
10715
# Shared library suffix (normally ".so").
10716
shrext_cmds='$shrext_cmds'
10718
# Executable file suffix (normally "").
10721
# Additional compiler flags for building library objects.
10722
pic_flag=$lt_lt_prog_compiler_pic
10725
# What is the maximum length of a command?
10726
max_cmd_len=$lt_cv_sys_max_cmd_len
10728
# Does compiler simultaneously support -c and -o options?
10729
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10731
# Must we lock files when doing compilation?
10732
need_locks=$lt_need_locks
10734
# Do we need the lib prefix for modules?
10735
need_lib_prefix=$need_lib_prefix
10737
# Do we need a version for libraries?
10738
need_version=$need_version
10740
# Whether dlopen is supported.
10741
dlopen_support=$enable_dlopen
10743
# Whether dlopen of programs is supported.
10744
dlopen_self=$enable_dlopen_self
10746
# Whether dlopen of statically linked programs is supported.
10747
dlopen_self_static=$enable_dlopen_self_static
10749
# Compiler flag to prevent dynamic linking.
10750
link_static_flag=$lt_lt_prog_compiler_static
10752
# Compiler flag to turn off builtin functions.
10753
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10755
# Compiler flag to allow reflexive dlopens.
10756
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10758
# Compiler flag to generate shared objects directly from archives.
10759
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10761
# Compiler flag to generate thread-safe objects.
10762
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10764
# Library versioning type.
10765
version_type=$version_type
10767
# Format of library name prefix.
10768
libname_spec=$lt_libname_spec
10770
# List of archive names. First name is the real one, the rest are links.
10771
# The last name is the one that the linker finds with -lNAME.
10772
library_names_spec=$lt_library_names_spec
10774
# The coded name of the library, if different from the real name.
10775
soname_spec=$lt_soname_spec
10777
# Commands used to build and install an old-style archive.
10779
old_archive_cmds=$lt_old_archive_cmds
10780
old_postinstall_cmds=$lt_old_postinstall_cmds
10781
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10783
# Create an old-style archive from a shared archive.
10784
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10786
# Create a temporary old-style archive to link instead of a shared archive.
10787
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10789
# Commands used to build and install a shared archive.
10790
archive_cmds=$lt_archive_cmds
10791
archive_expsym_cmds=$lt_archive_expsym_cmds
10792
postinstall_cmds=$lt_postinstall_cmds
10793
postuninstall_cmds=$lt_postuninstall_cmds
10795
# Commands used to build a loadable module (assumed same as above if empty)
10796
module_cmds=$lt_module_cmds
10797
module_expsym_cmds=$lt_module_expsym_cmds
10799
# Commands to strip libraries.
10800
old_striplib=$lt_old_striplib
10801
striplib=$lt_striplib
10803
# Dependencies to place before the objects being linked to create a
10805
predep_objects=$lt_predep_objects
10807
# Dependencies to place after the objects being linked to create a
10809
postdep_objects=$lt_postdep_objects
10811
# Dependencies to place before the objects being linked to create a
10813
predeps=$lt_predeps
10815
# Dependencies to place after the objects being linked to create a
10817
postdeps=$lt_postdeps
10819
# The library search path used internally by the compiler when linking
10820
# a shared library.
10821
compiler_lib_search_path=$lt_compiler_lib_search_path
10823
# Method to check whether dependent libraries are shared objects.
10824
deplibs_check_method=$lt_deplibs_check_method
10826
# Command to use when deplibs_check_method == file_magic.
10827
file_magic_cmd=$lt_file_magic_cmd
10829
# Flag that allows shared libraries with undefined symbols to be built.
10830
allow_undefined_flag=$lt_allow_undefined_flag
10832
# Flag that forces no undefined symbols.
10833
no_undefined_flag=$lt_no_undefined_flag
10835
# Commands used to finish a libtool library installation in a directory.
10836
finish_cmds=$lt_finish_cmds
10838
# Same as above, but a single script fragment to be evaled but not shown.
10839
finish_eval=$lt_finish_eval
10841
# Take the output of nm and produce a listing of raw symbols and C names.
10842
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10844
# Transform the output of nm in a proper C declaration
10845
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10847
# Transform the output of nm in a C name address pair
10848
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10850
# This is the shared library runtime path variable.
10851
runpath_var=$runpath_var
10853
# This is the shared library path variable.
10854
shlibpath_var=$shlibpath_var
10856
# Is shlibpath searched before the hard-coded library search path?
10857
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10859
# How to hardcode a shared library path into an executable.
10860
hardcode_action=$hardcode_action
10862
# Whether we should hardcode library paths into libraries.
10863
hardcode_into_libs=$hardcode_into_libs
10865
# Flag to hardcode \$libdir into a binary during linking.
10866
# This must work even if \$libdir does not exist.
10867
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10869
# If ld is used when linking, flag to hardcode \$libdir into
10870
# a binary during linking. This must work even if \$libdir does
10872
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10874
# Whether we need a single -rpath flag with a separated argument.
10875
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10877
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10878
# resulting binary.
10879
hardcode_direct=$hardcode_direct
10881
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10882
# resulting binary.
10883
hardcode_minus_L=$hardcode_minus_L
10885
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10886
# the resulting binary.
10887
hardcode_shlibpath_var=$hardcode_shlibpath_var
10889
# Set to yes if building a shared library automatically hardcodes DIR into the library
10890
# and all subsequent libraries and executables linked against it.
10891
hardcode_automatic=$hardcode_automatic
10893
# Variables whose values should be saved in libtool wrapper scripts and
10894
# restored at relink time.
10895
variables_saved_for_relink="$variables_saved_for_relink"
10897
# Whether libtool must link a program against all its dependency libraries.
10898
link_all_deplibs=$link_all_deplibs
10900
# Compile-time system search path for libraries
10901
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10903
# Run-time system search path for libraries
10904
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10906
# Fix the shell variable \$srcfile for the compiler.
10907
fix_srcfile_path=$lt_fix_srcfile_path
10909
# Set to yes if exported symbols are required.
10910
always_export_symbols=$always_export_symbols
10912
# The commands to list exported symbols.
10913
export_symbols_cmds=$lt_export_symbols_cmds
10915
# The commands to extract the exported symbol list from a shared archive.
10916
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10918
# Symbols that should not be listed in the preloaded symbols.
10919
exclude_expsyms=$lt_exclude_expsyms
10921
# Symbols that must always be exported.
10922
include_expsyms=$lt_include_expsyms
10924
# ### END LIBTOOL CONFIG
10931
cat <<\EOF >> "$cfgfile"
10933
# AIX sometimes has problems with the GCC collect2 program. For some
10934
# reason, if we set the COLLECT_NAMES environment variable, the problems
10935
# vanish in a puff of smoke.
10936
if test "X${COLLECT_NAMES+set}" != Xset; then
10938
export COLLECT_NAMES
10944
# We use sed instead of cat because bash on DJGPP gets confused if
10945
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10946
# text mode, it properly converts lines to CR/LF. This bash problem
10947
# is reportedly fixed, but why not run on old versions too?
10948
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10950
mv -f "$cfgfile" "$ofile" || \
10951
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10955
# If there is no Makefile yet, we rely on a make rule to execute
10956
# `config.status --recheck' to rerun these tests and create the
10957
# libtool script then.
10958
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10959
if test -f "$ltmain_in"; then
10960
test -f Makefile && make "$ltmain"
10966
ac_cpp='$CPP $CPPFLAGS'
10967
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10968
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10969
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10974
# Check whether --with-tags was given.
10975
if test "${with_tags+set}" = set; then
10976
withval=$with_tags; tagnames="$withval"
10980
if test -f "$ltmain" && test -n "$tagnames"; then
10981
if test ! -f "${ofile}"; then
10982
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10983
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10986
if test -z "$LTCC"; then
10987
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10988
if test -z "$LTCC"; then
10989
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10990
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10992
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10993
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10996
if test -z "$LTCFLAGS"; then
10997
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11000
# Extract list of available tagged configurations in $ofile.
11001
# Note that this assumes the entire list is on one line.
11002
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11004
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11005
for tagname in $tagnames; do
11007
# Check whether tagname contains only valid characters
11008
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11010
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11011
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11012
{ (exit 1); exit 1; }; }
11016
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11018
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11019
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11020
{ (exit 1); exit 1; }; }
11023
# Update the list of available tags.
11024
if test -n "$tagname"; then
11025
echo appending configuration tag \"$tagname\" to $ofile
11029
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11030
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11031
(test "X$CXX" != "Xg++"))) ; then
11033
ac_cpp='$CXXCPP $CPPFLAGS'
11034
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11035
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11036
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11041
archive_cmds_need_lc_CXX=no
11042
allow_undefined_flag_CXX=
11043
always_export_symbols_CXX=no
11044
archive_expsym_cmds_CXX=
11045
export_dynamic_flag_spec_CXX=
11046
hardcode_direct_CXX=no
11047
hardcode_libdir_flag_spec_CXX=
11048
hardcode_libdir_flag_spec_ld_CXX=
11049
hardcode_libdir_separator_CXX=
11050
hardcode_minus_L_CXX=no
11051
hardcode_shlibpath_var_CXX=unsupported
11052
hardcode_automatic_CXX=no
11054
module_expsym_cmds_CXX=
11055
link_all_deplibs_CXX=unknown
11056
old_archive_cmds_CXX=$old_archive_cmds
11057
no_undefined_flag_CXX=
11058
whole_archive_flag_spec_CXX=
11059
enable_shared_with_static_runtimes_CXX=no
11061
# Dependencies to place before and after the object being linked:
11062
predep_objects_CXX=
11063
postdep_objects_CXX=
11066
compiler_lib_search_path_CXX=
11068
# Source file extension for C++ test sources.
11071
# Object file extension for compiled C++ test sources.
11075
# Code to be used in simple compile tests
11076
lt_simple_compile_test_code="int some_variable = 0;"
11078
# Code to be used in simple link tests
11079
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11081
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11083
# If no C compiler was specified, use CC.
11086
# If no C compiler flags were specified, use CFLAGS.
11087
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11089
# Allow CC to be a program name with arguments.
11093
# save warnings/boilerplate of simple test code
11094
ac_outfile=conftest.$ac_objext
11095
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11096
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11097
_lt_compiler_boilerplate=`cat conftest.err`
11100
ac_outfile=conftest.$ac_objext
11101
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11102
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11103
_lt_linker_boilerplate=`cat conftest.err`
11107
# Allow CC to be a program name with arguments.
11112
lt_save_with_gnu_ld=$with_gnu_ld
11113
lt_save_path_LD=$lt_cv_path_LD
11114
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11115
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11117
$as_unset lt_cv_prog_gnu_ld
11119
if test -n "${lt_cv_path_LDCXX+set}"; then
11120
lt_cv_path_LD=$lt_cv_path_LDCXX
11122
$as_unset lt_cv_path_LD
11124
test -z "${LDCXX+set}" || LD=$LDCXX
11128
for cc_temp in $compiler""; do
11130
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11131
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11136
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11139
# We don't want -fno-exception wen compiling C++ code, so set the
11140
# no_builtin_flag separately
11141
if test "$GXX" = yes; then
11142
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11144
lt_prog_compiler_no_builtin_flag_CXX=
11147
if test "$GXX" = yes; then
11148
# Set up default GNU C++ configuration
11151
# Check whether --with-gnu-ld was given.
11152
if test "${with_gnu_ld+set}" = set; then
11153
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11159
if test "$GCC" = yes; then
11160
# Check if gcc -print-prog-name=ld gives a path.
11161
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11162
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11165
# gcc leaves a trailing carriage return which upsets mingw
11166
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11168
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11171
# Accept absolute paths.
11173
re_direlt='/[^/][^/]*/\.\./'
11174
# Canonicalize the pathname of ld
11175
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11176
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11177
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11179
test -z "$LD" && LD="$ac_prog"
11182
# If it fails, then pretend we aren't using GCC.
11186
# If it is relative, then search for the first ld in PATH.
11187
with_gnu_ld=unknown
11190
elif test "$with_gnu_ld" = yes; then
11191
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11192
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11194
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11195
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11197
if test "${lt_cv_path_LD+set}" = set; then
11198
echo $ECHO_N "(cached) $ECHO_C" >&6
11200
if test -z "$LD"; then
11201
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11202
for ac_dir in $PATH; do
11204
test -z "$ac_dir" && ac_dir=.
11205
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11206
lt_cv_path_LD="$ac_dir/$ac_prog"
11207
# Check to see if the program is GNU ld. I'd rather use --version,
11208
# but apparently some variants of GNU ld only accept -v.
11209
# Break only if it was the GNU/non-GNU ld that we prefer.
11210
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11211
*GNU* | *'with BFD'*)
11212
test "$with_gnu_ld" != no && break
11215
test "$with_gnu_ld" != yes && break
11222
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11226
LD="$lt_cv_path_LD"
11227
if test -n "$LD"; then
11228
{ echo "$as_me:$LINENO: result: $LD" >&5
11229
echo "${ECHO_T}$LD" >&6; }
11231
{ echo "$as_me:$LINENO: result: no" >&5
11232
echo "${ECHO_T}no" >&6; }
11234
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11235
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11236
{ (exit 1); exit 1; }; }
11237
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11238
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11239
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11240
echo $ECHO_N "(cached) $ECHO_C" >&6
11242
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11243
case `$LD -v 2>&1 </dev/null` in
11244
*GNU* | *'with BFD'*)
11245
lt_cv_prog_gnu_ld=yes
11248
lt_cv_prog_gnu_ld=no
11252
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11253
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11254
with_gnu_ld=$lt_cv_prog_gnu_ld
11258
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11259
# archiving commands below assume that GNU ld is being used.
11260
if test "$with_gnu_ld" = yes; then
11261
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11262
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11264
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11265
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11267
# If archive_cmds runs LD, not CC, wlarc should be empty
11268
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11269
# investigate it a little bit more. (MM)
11272
# ancient GNU ld didn't support --whole-archive et. al.
11273
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11274
grep 'no-whole-archive' > /dev/null; then
11275
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11277
whole_archive_flag_spec_CXX=
11283
# A generic and very simple default shared library creation
11284
# command for GNU C++ for the case where it uses the native
11285
# linker, instead of GNU ld. If possible, this setting should
11286
# overridden to take advantage of the native linker features on
11287
# the platform it is being used on.
11288
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11291
# Commands to make compiler produce verbose output that lists
11292
# what "hidden" libraries, object files and flags are used when
11293
# linking a shared library.
11294
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11302
# PORTME: fill in a description of your system's C++ link characteristics
11303
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11304
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11308
# FIXME: insert proper C++ library support
11312
if test "$host_cpu" = ia64; then
11313
# On IA64, the linker does run time linking by default, so we don't
11314
# have to do anything special.
11315
aix_use_runtimelinking=no
11316
exp_sym_flag='-Bexport'
11319
aix_use_runtimelinking=no
11321
# Test if we are trying to use run time linking or normal
11322
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11323
# need to do runtime linking.
11324
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11325
for ld_flag in $LDFLAGS; do
11328
aix_use_runtimelinking=yes
11336
exp_sym_flag='-bexport'
11337
no_entry_flag='-bnoentry'
11340
# When large executables or shared objects are built, AIX ld can
11341
# have problems creating the table of contents. If linking a library
11342
# or program results in "error TOC overflow" add -mminimal-toc to
11343
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11344
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11346
archive_cmds_CXX=''
11347
hardcode_direct_CXX=yes
11348
hardcode_libdir_separator_CXX=':'
11349
link_all_deplibs_CXX=yes
11351
if test "$GXX" = yes; then
11352
case $host_os in aix4.[012]|aix4.[012].*)
11353
# We only want to do this on AIX 4.2 and lower, the check
11354
# below for broken collect2 doesn't work under 4.3+
11355
collect2name=`${CC} -print-prog-name=collect2`
11356
if test -f "$collect2name" && \
11357
strings "$collect2name" | grep resolve_lib_name >/dev/null
11359
# We have reworked collect2
11362
# We have old collect2
11363
hardcode_direct_CXX=unsupported
11364
# It fails to find uninstalled libraries when the uninstalled
11365
# path is not listed in the libpath. Setting hardcode_minus_L
11366
# to unsupported forces relinking
11367
hardcode_minus_L_CXX=yes
11368
hardcode_libdir_flag_spec_CXX='-L$libdir'
11369
hardcode_libdir_separator_CXX=
11373
shared_flag='-shared'
11374
if test "$aix_use_runtimelinking" = yes; then
11375
shared_flag="$shared_flag "'${wl}-G'
11379
if test "$host_cpu" = ia64; then
11380
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11381
# chokes on -Wl,-G. The following line is correct:
11384
if test "$aix_use_runtimelinking" = yes; then
11385
shared_flag='${wl}-G'
11387
shared_flag='${wl}-bM:SRE'
11392
# It seems that -bexpall does not export symbols beginning with
11393
# underscore (_), so it is better to generate a list of symbols to export.
11394
always_export_symbols_CXX=yes
11395
if test "$aix_use_runtimelinking" = yes; then
11396
# Warning - without using the other runtime loading flags (-brtl),
11397
# -berok will link without error, but may produce a broken library.
11398
allow_undefined_flag_CXX='-berok'
11399
# Determine the default libpath from the value encoded in an empty executable.
11400
cat >conftest.$ac_ext <<_ACEOF
11403
cat confdefs.h >>conftest.$ac_ext
11404
cat >>conftest.$ac_ext <<_ACEOF
11405
/* end confdefs.h. */
11415
rm -f conftest.$ac_objext conftest$ac_exeext
11416
if { (ac_try="$ac_link"
11417
case "(($ac_try" in
11418
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419
*) ac_try_echo=$ac_try;;
11421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422
(eval "$ac_link") 2>conftest.er1
11424
grep -v '^ *+' conftest.er1 >conftest.err
11426
cat conftest.err >&5
11427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428
(exit $ac_status); } && {
11429
test -z "$ac_cxx_werror_flag" ||
11430
test ! -s conftest.err
11431
} && test -s conftest$ac_exeext &&
11432
$as_test_x conftest$ac_exeext; then
11434
lt_aix_libpath_sed='
11435
/Import File Strings/,/^$/ {
11441
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11442
# Check for a 64-bit object if we didn't find anything.
11443
if test -z "$aix_libpath"; then
11444
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11447
echo "$as_me: failed program was:" >&5
11448
sed 's/^/| /' conftest.$ac_ext >&5
11453
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11454
conftest$ac_exeext conftest.$ac_ext
11455
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11457
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11459
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11461
if test "$host_cpu" = ia64; then
11462
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11463
allow_undefined_flag_CXX="-z nodefs"
11464
archive_expsym_cmds_CXX="\$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"
11466
# Determine the default libpath from the value encoded in an empty executable.
11467
cat >conftest.$ac_ext <<_ACEOF
11470
cat confdefs.h >>conftest.$ac_ext
11471
cat >>conftest.$ac_ext <<_ACEOF
11472
/* end confdefs.h. */
11482
rm -f conftest.$ac_objext conftest$ac_exeext
11483
if { (ac_try="$ac_link"
11484
case "(($ac_try" in
11485
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486
*) ac_try_echo=$ac_try;;
11488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489
(eval "$ac_link") 2>conftest.er1
11491
grep -v '^ *+' conftest.er1 >conftest.err
11493
cat conftest.err >&5
11494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495
(exit $ac_status); } && {
11496
test -z "$ac_cxx_werror_flag" ||
11497
test ! -s conftest.err
11498
} && test -s conftest$ac_exeext &&
11499
$as_test_x conftest$ac_exeext; then
11501
lt_aix_libpath_sed='
11502
/Import File Strings/,/^$/ {
11508
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11509
# Check for a 64-bit object if we didn't find anything.
11510
if test -z "$aix_libpath"; then
11511
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11514
echo "$as_me: failed program was:" >&5
11515
sed 's/^/| /' conftest.$ac_ext >&5
11520
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11521
conftest$ac_exeext conftest.$ac_ext
11522
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11524
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11525
# Warning - without using the other run time loading flags,
11526
# -berok will link without error, but may produce a broken library.
11527
no_undefined_flag_CXX=' ${wl}-bernotok'
11528
allow_undefined_flag_CXX=' ${wl}-berok'
11529
# Exported symbols can be pulled into shared objects from archives
11530
whole_archive_flag_spec_CXX='$convenience'
11531
archive_cmds_need_lc_CXX=yes
11532
# This is similar to how AIX traditionally builds its shared libraries.
11533
archive_expsym_cmds_CXX="\$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'
11539
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11540
allow_undefined_flag_CXX=unsupported
11541
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11542
# support --undefined. This deserves some investigation. FIXME
11543
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11550
case $cc_basename in
11552
# FIXME: insert proper C++ library support
11558
cygwin* | mingw* | pw32*)
11559
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11560
# as there is no search path for DLLs.
11561
hardcode_libdir_flag_spec_CXX='-L$libdir'
11562
allow_undefined_flag_CXX=unsupported
11563
always_export_symbols_CXX=no
11564
enable_shared_with_static_runtimes_CXX=yes
11566
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11567
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11568
# If the export-symbols file already is a .def file (1st line
11569
# is EXPORTS), use it as is; otherwise, prepend...
11570
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11571
cp $export_symbols $output_objdir/$soname.def;
11573
echo EXPORTS > $output_objdir/$soname.def;
11574
cat $export_symbols >> $output_objdir/$soname.def;
11576
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11581
darwin* | rhapsody*)
11583
rhapsody* | darwin1.[012])
11584
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11587
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11588
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11590
case ${MACOSX_DEPLOYMENT_TARGET} in
11592
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11595
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11601
archive_cmds_need_lc_CXX=no
11602
hardcode_direct_CXX=no
11603
hardcode_automatic_CXX=yes
11604
hardcode_shlibpath_var_CXX=unsupported
11605
whole_archive_flag_spec_CXX=''
11606
link_all_deplibs_CXX=yes
11608
if test "$GXX" = yes ; then
11609
lt_int_apple_cc_single_mod=no
11610
output_verbose_link_cmd='echo'
11611
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11612
lt_int_apple_cc_single_mod=yes
11614
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11615
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11617
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11619
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11620
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11621
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11622
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11624
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11626
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11628
case $cc_basename in
11630
output_verbose_link_cmd='echo'
11631
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11632
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11633
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11634
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11635
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11645
case $cc_basename in
11647
# FIXME: insert proper C++ library support
11651
# Green Hills C++ Compiler
11652
# FIXME: insert proper C++ library support
11656
# FIXME: insert proper C++ library support
11662
# C++ shared libraries reported to be fairly broken before switch to ELF
11666
archive_cmds_need_lc_CXX=no
11668
freebsd* | dragonfly*)
11669
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11676
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11677
hardcode_libdir_separator_CXX=:
11678
export_dynamic_flag_spec_CXX='${wl}-E'
11679
hardcode_direct_CXX=yes
11680
hardcode_minus_L_CXX=yes # Not in the search PATH,
11681
# but as the default
11682
# location of the library.
11684
case $cc_basename in
11686
# FIXME: insert proper C++ library support
11690
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11691
# Commands to make compiler produce verbose output that lists
11692
# what "hidden" libraries, object files and flags are used when
11693
# linking a shared library.
11695
# There doesn't appear to be a way to prevent this compiler from
11696
# explicitly linking system object files so we need to strip them
11697
# from the output so that they don't get included in the library
11699
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11702
if test "$GXX" = yes; then
11703
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11705
# FIXME: insert proper C++ library support
11712
if test $with_gnu_ld = no; then
11713
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11714
hardcode_libdir_separator_CXX=:
11719
export_dynamic_flag_spec_CXX='${wl}-E'
11725
hardcode_direct_CXX=no
11726
hardcode_shlibpath_var_CXX=no
11729
hardcode_direct_CXX=yes
11730
hardcode_minus_L_CXX=yes # Not in the search PATH,
11731
# but as the default
11732
# location of the library.
11736
case $cc_basename in
11738
# FIXME: insert proper C++ library support
11744
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11747
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11750
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11753
# Commands to make compiler produce verbose output that lists
11754
# what "hidden" libraries, object files and flags are used when
11755
# linking a shared library.
11757
# There doesn't appear to be a way to prevent this compiler from
11758
# explicitly linking system object files so we need to strip them
11759
# from the output so that they don't get included in the library
11761
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11764
if test "$GXX" = yes; then
11765
if test $with_gnu_ld = no; then
11768
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11771
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11774
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11779
# FIXME: insert proper C++ library support
11786
hardcode_direct_CXX=no
11787
hardcode_shlibpath_var_CXX=no
11788
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11789
export_dynamic_flag_spec_CXX='${wl}-E'
11790
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11791
# Instead, shared libraries are loaded at an image base (0x10000000 by
11792
# default) and relocated if they conflict, which is a slow very memory
11793
# consuming and fragmenting process. To avoid this, we pick a random,
11794
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11795
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11796
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11797
archive_expsym_cmds_CXX='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'
11800
case $cc_basename in
11803
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11805
# Archives containing C++ object files must be created using
11806
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11807
# necessary to make sure instantiated templates are included
11809
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11812
if test "$GXX" = yes; then
11813
if test "$with_gnu_ld" = no; then
11814
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11816
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11819
link_all_deplibs_CXX=yes
11822
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11823
hardcode_libdir_separator_CXX=:
11825
linux* | k*bsd*-gnu)
11826
case $cc_basename in
11828
# Kuck and Associates, Inc. (KAI) C++ Compiler
11830
# KCC will only create a shared library if the output file
11831
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11832
# to its proper name (with version) after linking.
11833
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11834
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11835
# Commands to make compiler produce verbose output that lists
11836
# what "hidden" libraries, object files and flags are used when
11837
# linking a shared library.
11839
# There doesn't appear to be a way to prevent this compiler from
11840
# explicitly linking system object files so we need to strip them
11841
# from the output so that they don't get included in the library
11843
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11845
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11846
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11848
# Archives containing C++ object files must be created using
11849
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11850
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11855
# version 8.0 and above of icpc choke on multiply defined symbols
11856
# if we add $predep_objects and $postdep_objects, however 7.1 and
11857
# earlier do not add the objects themselves.
11858
case `$CC -V 2>&1` in
11860
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11861
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11863
*) # Version 8.0 or newer
11866
ia64*) tmp_idyn=' -i_dynamic';;
11868
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11869
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11872
archive_cmds_need_lc_CXX=no
11873
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11874
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11875
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11878
# Portland Group C++ compiler
11879
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11880
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11882
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11883
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11884
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11888
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11889
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11891
runpath_var=LD_RUN_PATH
11892
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11893
hardcode_libdir_separator_CXX=:
11895
# Commands to make compiler produce verbose output that lists
11896
# what "hidden" libraries, object files and flags are used when
11897
# linking a shared library.
11899
# There doesn't appear to be a way to prevent this compiler from
11900
# explicitly linking system object files so we need to strip them
11901
# from the output so that they don't get included in the library
11903
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11906
case `$CC -V 2>&1 | sed 5q` in
11909
no_undefined_flag_CXX=' -zdefs'
11910
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11911
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11912
hardcode_libdir_flag_spec_CXX='-R$libdir'
11913
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11915
# Not sure whether something based on
11916
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11918
output_verbose_link_cmd='echo'
11920
# Archives containing C++ object files must be created using
11921
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11922
# necessary to make sure instantiated templates are included
11924
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11931
# FIXME: insert proper C++ library support
11935
# FIXME: insert proper C++ library support
11939
case $cc_basename in
11941
# FIXME: insert proper C++ library support
11945
# FIXME: insert proper C++ library support
11951
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11952
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11954
hardcode_libdir_flag_spec_CXX='-R$libdir'
11955
hardcode_direct_CXX=yes
11956
hardcode_shlibpath_var_CXX=no
11958
# Workaround some broken pre-1.5 toolchains
11959
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11962
# C++ shared libraries are fairly broken
11966
if test -f /usr/libexec/ld.so; then
11967
hardcode_direct_CXX=yes
11968
hardcode_shlibpath_var_CXX=no
11969
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11970
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11971
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11972
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11973
export_dynamic_flag_spec_CXX='${wl}-E'
11974
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11976
output_verbose_link_cmd='echo'
11982
case $cc_basename in
11984
# Kuck and Associates, Inc. (KAI) C++ Compiler
11986
# KCC will only create a shared library if the output file
11987
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11988
# to its proper name (with version) after linking.
11989
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11991
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11992
hardcode_libdir_separator_CXX=:
11994
# Archives containing C++ object files must be created using
11995
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11996
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12000
# Rational C++ 2.4.1
12001
# FIXME: insert proper C++ library support
12005
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12006
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12008
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009
hardcode_libdir_separator_CXX=:
12011
# Commands to make compiler produce verbose output that lists
12012
# what "hidden" libraries, object files and flags are used when
12013
# linking a shared library.
12015
# There doesn't appear to be a way to prevent this compiler from
12016
# explicitly linking system object files so we need to strip them
12017
# from the output so that they don't get included in the library
12019
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12022
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12023
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12024
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12026
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12027
hardcode_libdir_separator_CXX=:
12029
# Commands to make compiler produce verbose output that lists
12030
# what "hidden" libraries, object files and flags are used when
12031
# linking a shared library.
12032
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12035
# FIXME: insert proper C++ library support
12042
case $cc_basename in
12044
# Kuck and Associates, Inc. (KAI) C++ Compiler
12046
# KCC will only create a shared library if the output file
12047
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12048
# to its proper name (with version) after linking.
12049
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12051
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12052
hardcode_libdir_separator_CXX=:
12054
# Archives containing C++ object files must be created using
12055
# the KAI C++ compiler.
12056
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12059
# Rational C++ 2.4.1
12060
# FIXME: insert proper C++ library support
12064
allow_undefined_flag_CXX=' -expect_unresolved \*'
12065
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12066
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12067
echo "-hidden">> $lib.exp~
12068
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12071
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12072
hardcode_libdir_separator_CXX=:
12074
# Commands to make compiler produce verbose output that lists
12075
# what "hidden" libraries, object files and flags are used when
12076
# linking a shared library.
12078
# There doesn't appear to be a way to prevent this compiler from
12079
# explicitly linking system object files so we need to strip them
12080
# from the output so that they don't get included in the library
12082
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12085
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12086
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12087
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12089
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12090
hardcode_libdir_separator_CXX=:
12092
# Commands to make compiler produce verbose output that lists
12093
# what "hidden" libraries, object files and flags are used when
12094
# linking a shared library.
12095
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12098
# FIXME: insert proper C++ library support
12105
# FIXME: insert proper C++ library support
12109
case $cc_basename in
12112
# FIXME: insert proper C++ library support
12117
# FIXME: insert proper C++ library support
12121
# FIXME: insert proper C++ library support
12127
case $cc_basename in
12129
# Sun C++ 4.2, 5.x and Centerline C++
12130
archive_cmds_need_lc_CXX=yes
12131
no_undefined_flag_CXX=' -zdefs'
12132
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12133
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12134
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12136
hardcode_libdir_flag_spec_CXX='-R$libdir'
12137
hardcode_shlibpath_var_CXX=no
12139
solaris2.[0-5] | solaris2.[0-5].*) ;;
12141
# The compiler driver will combine and reorder linker options,
12142
# but understands `-z linker_flag'.
12143
# Supported since Solaris 2.6 (maybe 2.5.1?)
12144
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12147
link_all_deplibs_CXX=yes
12149
output_verbose_link_cmd='echo'
12151
# Archives containing C++ object files must be created using
12152
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12153
# necessary to make sure instantiated templates are included
12155
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12158
# Green Hills C++ Compiler
12159
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12161
# The C++ compiler must be used to create the archive.
12162
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12165
# GNU C++ compiler with Solaris linker
12166
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12167
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12168
if $CC --version | grep -v '^2\.7' > /dev/null; then
12169
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12170
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12171
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12173
# Commands to make compiler produce verbose output that lists
12174
# what "hidden" libraries, object files and flags are used when
12175
# linking a shared library.
12176
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12178
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12180
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12181
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12182
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12184
# Commands to make compiler produce verbose output that lists
12185
# what "hidden" libraries, object files and flags are used when
12186
# linking a shared library.
12187
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12190
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12192
solaris2.[0-5] | solaris2.[0-5].*) ;;
12194
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12201
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12202
no_undefined_flag_CXX='${wl}-z,text'
12203
archive_cmds_need_lc_CXX=no
12204
hardcode_shlibpath_var_CXX=no
12205
runpath_var='LD_RUN_PATH'
12207
case $cc_basename in
12209
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12210
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12213
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12214
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12218
sysv5* | sco3.2v5* | sco5v6*)
12219
# Note: We can NOT use -z defs as we might desire, because we do not
12220
# link with -lc, and that would cause any symbols used from libc to
12221
# always be unresolved, which means just about no library would
12222
# ever link correctly. If we're not using GNU ld we use -z text
12223
# though, which does catch some bad symbols but isn't as heavy-handed
12225
# For security reasons, it is highly recommended that you always
12226
# use absolute paths for naming shared libraries, and exclude the
12227
# DT_RUNPATH tag from executables and libraries. But doing so
12228
# requires that you compile everything twice, which is a pain.
12229
# So that behaviour is only enabled if SCOABSPATH is set to a
12230
# non-empty value in the environment. Most likely only useful for
12231
# creating official distributions of packages.
12232
# This is a hack until libtool officially supports absolute path
12233
# names for shared libraries.
12234
no_undefined_flag_CXX='${wl}-z,text'
12235
allow_undefined_flag_CXX='${wl}-z,nodefs'
12236
archive_cmds_need_lc_CXX=no
12237
hardcode_shlibpath_var_CXX=no
12238
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12239
hardcode_libdir_separator_CXX=':'
12240
link_all_deplibs_CXX=yes
12241
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12242
runpath_var='LD_RUN_PATH'
12244
case $cc_basename in
12246
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12247
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12250
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12251
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12256
case $cc_basename in
12258
# NonStop-UX NCC 3.20
12259
# FIXME: insert proper C++ library support
12263
# FIXME: insert proper C++ library support
12269
# FIXME: insert proper C++ library support
12273
# FIXME: insert proper C++ library support
12277
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12278
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12279
test "$ld_shlibs_CXX" = no && can_build_shared=no
12285
## There is no encapsulation within the following macros, do not change
12286
## the running order or otherwise move them around unless you know exactly
12287
## what you are doing...
12289
cat > conftest.$ac_ext <<EOF
12293
Foo (void) { a = 0; }
12299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300
(eval $ac_compile) 2>&5
12302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303
(exit $ac_status); }; then
12304
# Parse the compiler output and extract the necessary
12305
# objects, libraries and library flags.
12307
# Sentinel used to keep track of whether or not we are before
12308
# the conftest object file.
12309
pre_test_object_deps_done=no
12311
# The `*' in the case matches for architectures that use `case' in
12312
# $output_verbose_cmd can trigger glob expansion during the loop
12313
# eval without this substitution.
12314
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12316
for p in `eval $output_verbose_link_cmd`; do
12320
# Some compilers place space between "-{L,R}" and the path.
12321
# Remove the space.
12322
if test $p = "-L" \
12323
|| test $p = "-R"; then
12330
if test "$pre_test_object_deps_done" = no; then
12333
# Internal compiler library paths should come after those
12334
# provided the user. The postdeps already come after the
12335
# user supplied libs so there is no need to process them.
12336
if test -z "$compiler_lib_search_path_CXX"; then
12337
compiler_lib_search_path_CXX="${prev}${p}"
12339
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12342
# The "-l" case would never come before the object being
12343
# linked, so don't bother handling this case.
12346
if test -z "$postdeps_CXX"; then
12347
postdeps_CXX="${prev}${p}"
12349
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12355
# This assumes that the test object file only shows up
12356
# once in the compiler output.
12357
if test "$p" = "conftest.$objext"; then
12358
pre_test_object_deps_done=yes
12362
if test "$pre_test_object_deps_done" = no; then
12363
if test -z "$predep_objects_CXX"; then
12364
predep_objects_CXX="$p"
12366
predep_objects_CXX="$predep_objects_CXX $p"
12369
if test -z "$postdep_objects_CXX"; then
12370
postdep_objects_CXX="$p"
12372
postdep_objects_CXX="$postdep_objects_CXX $p"
12377
*) ;; # Ignore the rest.
12385
echo "libtool.m4: error: problem compiling CXX test program"
12388
$rm -f confest.$objext
12390
# PORTME: override above test on systems where it is broken
12393
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12394
# hack all around it, let's just trust "g++" to DTRT.
12395
predep_objects_CXX=
12396
postdep_objects_CXX=
12401
case `$CC -V 2>&1 | sed 5q` in
12405
# The more standards-conforming stlport4 library is
12406
# incompatible with the Cstd library. Avoid specifying
12407
# it if it's in CXXFLAGS. Ignore libCrun as
12408
# -library=stlport4 depends on it.
12409
case " $CXX $CXXFLAGS " in
12410
*" -library=stlport4 "*)
12411
solaris_use_stlport4=yes
12414
if test "$solaris_use_stlport4" != yes; then
12415
postdeps_CXX='-library=Cstd -library=Crun'
12422
case $cc_basename in
12424
# The more standards-conforming stlport4 library is
12425
# incompatible with the Cstd library. Avoid specifying
12426
# it if it's in CXXFLAGS. Ignore libCrun as
12427
# -library=stlport4 depends on it.
12428
case " $CXX $CXXFLAGS " in
12429
*" -library=stlport4 "*)
12430
solaris_use_stlport4=yes
12434
# Adding this requires a known-good setup of shared libraries for
12435
# Sun compiler versions before 5.6, else PIC objects from an old
12436
# archive will be linked into the output, leading to subtle bugs.
12437
if test "$solaris_use_stlport4" != yes; then
12438
postdeps_CXX='-library=Cstd -library=Crun'
12446
case " $postdeps_CXX " in
12447
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12450
lt_prog_compiler_wl_CXX=
12451
lt_prog_compiler_pic_CXX=
12452
lt_prog_compiler_static_CXX=
12454
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12455
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12457
# C++ specific cases for pic, static, wl, etc.
12458
if test "$GXX" = yes; then
12459
lt_prog_compiler_wl_CXX='-Wl,'
12460
lt_prog_compiler_static_CXX='-static'
12464
# All AIX code is PIC.
12465
if test "$host_cpu" = ia64; then
12466
# AIX 5 now supports IA64 processor
12467
lt_prog_compiler_static_CXX='-Bstatic'
12471
# FIXME: we need at least 68020 code to build shared libraries, but
12472
# adding the `-m68020' flag to GCC prevents building anything better,
12474
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12476
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12477
# PIC is the default for these OSes.
12479
mingw* | cygwin* | os2* | pw32*)
12480
# This hack is so that the source file can tell whether it is being
12481
# built for inclusion in a dll (and should export symbols for example).
12482
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12483
# (--disable-auto-import) libraries
12484
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12486
darwin* | rhapsody*)
12487
# PIC is the default on this platform
12488
# Common symbols not allowed in MH_DYLIB files
12489
lt_prog_compiler_pic_CXX='-fno-common'
12492
# DJGPP does not support shared libraries at all
12493
lt_prog_compiler_pic_CXX=
12496
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12497
# Instead, we relocate shared libraries at runtime.
12500
if test -d /usr/nec; then
12501
lt_prog_compiler_pic_CXX=-Kconform_pic
12505
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12506
# not for PA HP-UX.
12511
lt_prog_compiler_pic_CXX='-fPIC'
12516
lt_prog_compiler_pic_CXX='-fPIC'
12522
# All AIX code is PIC.
12523
if test "$host_cpu" = ia64; then
12524
# AIX 5 now supports IA64 processor
12525
lt_prog_compiler_static_CXX='-Bstatic'
12527
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12531
case $cc_basename in
12533
# Green Hills C++ Compiler
12534
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12539
# PIC is the default on this platform
12540
# Common symbols not allowed in MH_DYLIB files
12541
case $cc_basename in
12543
lt_prog_compiler_pic_CXX='-qnocommon'
12544
lt_prog_compiler_wl_CXX='-Wl,'
12549
case $cc_basename in
12551
lt_prog_compiler_pic_CXX='-KPIC'
12554
# Green Hills C++ Compiler
12555
lt_prog_compiler_pic_CXX='-pic'
12561
freebsd* | dragonfly*)
12562
# FreeBSD uses GNU C++
12564
hpux9* | hpux10* | hpux11*)
12565
case $cc_basename in
12567
lt_prog_compiler_wl_CXX='-Wl,'
12568
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12569
if test "$host_cpu" != ia64; then
12570
lt_prog_compiler_pic_CXX='+Z'
12574
lt_prog_compiler_wl_CXX='-Wl,'
12575
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12581
lt_prog_compiler_pic_CXX='+Z'
12590
# This is c89, which is MS Visual C++ (no shared libs)
12591
# Anyone wants to do a port?
12593
irix5* | irix6* | nonstopux*)
12594
case $cc_basename in
12596
lt_prog_compiler_wl_CXX='-Wl,'
12597
lt_prog_compiler_static_CXX='-non_shared'
12598
# CC pic flag -KPIC is the default.
12604
linux* | k*bsd*-gnu)
12605
case $cc_basename in
12608
lt_prog_compiler_wl_CXX='--backend -Wl,'
12609
lt_prog_compiler_pic_CXX='-fPIC'
12613
lt_prog_compiler_wl_CXX='-Wl,'
12614
lt_prog_compiler_pic_CXX='-KPIC'
12615
lt_prog_compiler_static_CXX='-static'
12618
# Portland Group C++ compiler.
12619
lt_prog_compiler_wl_CXX='-Wl,'
12620
lt_prog_compiler_pic_CXX='-fpic'
12621
lt_prog_compiler_static_CXX='-Bstatic'
12625
# Make sure the PIC flag is empty. It appears that all Alpha
12626
# Linux and Compaq Tru64 Unix objects are PIC.
12627
lt_prog_compiler_pic_CXX=
12628
lt_prog_compiler_static_CXX='-non_shared'
12631
case `$CC -V 2>&1 | sed 5q` in
12634
lt_prog_compiler_pic_CXX='-KPIC'
12635
lt_prog_compiler_static_CXX='-Bstatic'
12636
lt_prog_compiler_wl_CXX='-Qoption ld '
12647
case $cc_basename in
12649
lt_prog_compiler_pic_CXX='-W c,exportall'
12657
osf3* | osf4* | osf5*)
12658
case $cc_basename in
12660
lt_prog_compiler_wl_CXX='--backend -Wl,'
12663
# Rational C++ 2.4.1
12664
lt_prog_compiler_pic_CXX='-pic'
12667
# Digital/Compaq C++
12668
lt_prog_compiler_wl_CXX='-Wl,'
12669
# Make sure the PIC flag is empty. It appears that all Alpha
12670
# Linux and Compaq Tru64 Unix objects are PIC.
12671
lt_prog_compiler_pic_CXX=
12672
lt_prog_compiler_static_CXX='-non_shared'
12681
case $cc_basename in
12683
# Sun C++ 4.2, 5.x and Centerline C++
12684
lt_prog_compiler_pic_CXX='-KPIC'
12685
lt_prog_compiler_static_CXX='-Bstatic'
12686
lt_prog_compiler_wl_CXX='-Qoption ld '
12689
# Green Hills C++ Compiler
12690
lt_prog_compiler_pic_CXX='-PIC'
12697
case $cc_basename in
12700
lt_prog_compiler_pic_CXX='-pic'
12701
lt_prog_compiler_static_CXX='-Bstatic'
12705
lt_prog_compiler_pic_CXX='-pic'
12712
case $cc_basename in
12714
# NonStop-UX NCC 3.20
12715
lt_prog_compiler_pic_CXX='-KPIC'
12721
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12722
case $cc_basename in
12724
lt_prog_compiler_wl_CXX='-Wl,'
12725
lt_prog_compiler_pic_CXX='-KPIC'
12726
lt_prog_compiler_static_CXX='-Bstatic'
12733
lt_prog_compiler_can_build_shared_CXX=no
12738
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12739
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12742
# Check to make sure the PIC flag actually works.
12744
if test -n "$lt_prog_compiler_pic_CXX"; then
12746
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12747
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12748
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12749
echo $ECHO_N "(cached) $ECHO_C" >&6
12751
lt_prog_compiler_pic_works_CXX=no
12752
ac_outfile=conftest.$ac_objext
12753
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12754
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12755
# Insert the option either (1) after the last *FLAGS variable, or
12756
# (2) before a word containing "conftest.", or (3) at the end.
12757
# Note that $ac_compile itself does not contain backslashes and begins
12758
# with a dollar sign (not a hyphen), so the echo should work correctly.
12759
# The option is referenced via a variable to avoid confusing sed.
12760
lt_compile=`echo "$ac_compile" | $SED \
12761
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12762
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12763
-e 's:$: $lt_compiler_flag:'`
12764
(eval echo "\"\$as_me:12764: $lt_compile\"" >&5)
12765
(eval "$lt_compile" 2>conftest.err)
12767
cat conftest.err >&5
12768
echo "$as_me:12768: \$? = $ac_status" >&5
12769
if (exit $ac_status) && test -s "$ac_outfile"; then
12770
# The compiler can only warn and ignore the option if not recognized
12771
# So say no if there are warnings other than the usual output.
12772
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12773
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12774
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12775
lt_prog_compiler_pic_works_CXX=yes
12781
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12782
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12784
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12785
case $lt_prog_compiler_pic_CXX in
12787
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12790
lt_prog_compiler_pic_CXX=
12791
lt_prog_compiler_can_build_shared_CXX=no
12796
# For platforms which do not support PIC, -DPIC is meaningless:
12798
lt_prog_compiler_pic_CXX=
12801
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12806
# Check to make sure the static flag actually works.
12808
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12809
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12810
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12811
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12812
echo $ECHO_N "(cached) $ECHO_C" >&6
12814
lt_prog_compiler_static_works_CXX=no
12815
save_LDFLAGS="$LDFLAGS"
12816
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12817
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12818
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12819
# The linker can only warn and ignore the option if not recognized
12820
# So say no if there are warnings
12821
if test -s conftest.err; then
12822
# Append any errors to the config.log.
12823
cat conftest.err 1>&5
12824
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12825
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12826
if diff conftest.exp conftest.er2 >/dev/null; then
12827
lt_prog_compiler_static_works_CXX=yes
12830
lt_prog_compiler_static_works_CXX=yes
12834
LDFLAGS="$save_LDFLAGS"
12837
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12838
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12840
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12843
lt_prog_compiler_static_CXX=
12847
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12848
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12849
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12850
echo $ECHO_N "(cached) $ECHO_C" >&6
12852
lt_cv_prog_compiler_c_o_CXX=no
12853
$rm -r conftest 2>/dev/null
12857
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12859
lt_compiler_flag="-o out/conftest2.$ac_objext"
12860
# Insert the option either (1) after the last *FLAGS variable, or
12861
# (2) before a word containing "conftest.", or (3) at the end.
12862
# Note that $ac_compile itself does not contain backslashes and begins
12863
# with a dollar sign (not a hyphen), so the echo should work correctly.
12864
lt_compile=`echo "$ac_compile" | $SED \
12865
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12866
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12867
-e 's:$: $lt_compiler_flag:'`
12868
(eval echo "\"\$as_me:12868: $lt_compile\"" >&5)
12869
(eval "$lt_compile" 2>out/conftest.err)
12871
cat out/conftest.err >&5
12872
echo "$as_me:12872: \$? = $ac_status" >&5
12873
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12875
# The compiler can only warn and ignore the option if not recognized
12876
# So say no if there are warnings
12877
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12878
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12879
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12880
lt_cv_prog_compiler_c_o_CXX=yes
12885
# SGI C++ compiler will create directory out/ii_files/ for
12886
# template instantiation
12887
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12888
$rm out/* && rmdir out
12894
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12895
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12898
hard_links="nottested"
12899
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12900
# do not overwrite the value of need_locks provided by the user
12901
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12902
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12905
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12907
ln conftest.a conftest.b 2>&5 || hard_links=no
12908
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12909
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12910
echo "${ECHO_T}$hard_links" >&6; }
12911
if test "$hard_links" = no; then
12912
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12913
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12920
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12921
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12923
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12926
# If we're using GNU nm, then we don't want the "-C" option.
12927
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12928
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12929
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12931
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12935
export_symbols_cmds_CXX="$ltdll_cmds"
12938
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12941
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12945
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12946
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12947
test "$ld_shlibs_CXX" = no && can_build_shared=no
12950
# Do we need to explicitly link libc?
12952
case "x$archive_cmds_need_lc_CXX" in
12954
# Assume -lc should be added
12955
archive_cmds_need_lc_CXX=yes
12957
if test "$enable_shared" = yes && test "$GCC" = yes; then
12958
case $archive_cmds_CXX in
12960
# FIXME: we may have to deal with multi-command sequences.
12963
# Test whether the compiler implicitly links with -lc since on some
12964
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12965
# to ld, don't add -lc before -lgcc.
12966
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12967
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12969
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12972
(eval $ac_compile) 2>&5
12974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975
(exit $ac_status); } 2>conftest.err; then
12978
libobjs=conftest.$ac_objext
12980
wl=$lt_prog_compiler_wl_CXX
12981
pic_flag=$lt_prog_compiler_pic_CXX
12987
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12988
allow_undefined_flag_CXX=
12989
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12990
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993
(exit $ac_status); }
12995
archive_cmds_need_lc_CXX=no
12997
archive_cmds_need_lc_CXX=yes
12999
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13001
cat conftest.err 1>&5
13004
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13005
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13012
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13013
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13014
library_names_spec=
13015
libname_spec='lib$name'
13019
postuninstall_cmds=
13023
shlibpath_overrides_runpath=unknown
13025
dynamic_linker="$host_os ld.so"
13026
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13028
need_lib_prefix=unknown
13029
hardcode_into_libs=no
13031
# when you set need_version to no, make sure it does not cause -set_version
13032
# flags to be left without arguments
13033
need_version=unknown
13038
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13039
shlibpath_var=LIBPATH
13041
# AIX 3 has no versioning support, so we append a major version to the name.
13042
soname_spec='${libname}${release}${shared_ext}$major'
13049
hardcode_into_libs=yes
13050
if test "$host_cpu" = ia64; then
13051
# AIX 5 supports IA64
13052
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13053
shlibpath_var=LD_LIBRARY_PATH
13055
# With GCC up to 2.95.x, collect2 would create an import file
13056
# for dependence libraries. The import file would start with
13057
# the line `#! .'. This would cause the generated library to
13058
# depend on `.', always an invalid library. This was fixed in
13059
# development snapshots of GCC prior to 3.0.
13061
aix4 | aix4.[01] | aix4.[01].*)
13062
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13064
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13067
can_build_shared=no
13071
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13072
# soname into executable. Probably we can add versioning support to
13073
# collect2, so additional links can be useful in future.
13074
if test "$aix_use_runtimelinking" = yes; then
13075
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13076
# instead of lib<name>.a to let people know that these are not
13077
# typical AIX shared libraries.
13078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080
# We preserve .a as extension for shared libraries through AIX4.2
13081
# and later when we are not doing run time linking.
13082
library_names_spec='${libname}${release}.a $libname.a'
13083
soname_spec='${libname}${release}${shared_ext}$major'
13085
shlibpath_var=LIBPATH
13090
library_names_spec='$libname.ixlibrary $libname.a'
13091
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13092
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13096
library_names_spec='${libname}${shared_ext}'
13097
dynamic_linker="$host_os ld.so"
13098
shlibpath_var=LIBRARY_PATH
13104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13105
soname_spec='${libname}${release}${shared_ext}$major'
13106
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13107
shlibpath_var=LD_LIBRARY_PATH
13108
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13109
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13110
# the default ld.so.conf also contains /usr/contrib/lib and
13111
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13112
# libtool to hard-code these into programs
13115
cygwin* | mingw* | pw32*)
13116
version_type=windows
13121
case $GCC,$host_os in
13122
yes,cygwin* | yes,mingw* | yes,pw32*)
13123
library_names_spec='$libname.dll.a'
13124
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13125
postinstall_cmds='base_file=`basename \${file}`~
13126
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13127
dldir=$destdir/`dirname \$dlpath`~
13128
test -d \$dldir || mkdir -p \$dldir~
13129
$install_prog $dir/$dlname \$dldir/$dlname~
13130
chmod a+x \$dldir/$dlname'
13131
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13132
dlpath=$dir/\$dldll~
13134
shlibpath_overrides_runpath=yes
13138
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13139
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13140
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13143
# MinGW DLLs use traditional 'lib' prefix
13144
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13145
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13146
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13147
# It is most probably a Windows format PATH printed by
13148
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13149
# path with ; separators, and with drive letters. We can handle the
13150
# drive letters (cygwin fileutils understands them), so leave them,
13151
# especially as we might pass files found there to a mingw objdump,
13152
# which wouldn't understand a cygwinified path. Ahh.
13153
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13155
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13159
# pw32 DLLs use 'pw' prefix rather than 'lib'
13160
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13166
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13169
dynamic_linker='Win32 ld.exe'
13170
# FIXME: first we should search . and the directory the executable is in
13174
darwin* | rhapsody*)
13175
dynamic_linker="$host_os dyld"
13176
version_type=darwin
13179
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13180
soname_spec='${libname}${release}${major}$shared_ext'
13181
shlibpath_overrides_runpath=yes
13182
shlibpath_var=DYLD_LIBRARY_PATH
13183
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13185
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13193
soname_spec='${libname}${release}${shared_ext}$major'
13194
shlibpath_var=LD_LIBRARY_PATH
13201
freebsd* | dragonfly*)
13202
# DragonFly does not have aout. When/if they implement a new
13203
# versioning mechanism, adjust this.
13204
if test -x /usr/bin/objformat; then
13205
objformat=`/usr/bin/objformat`
13208
freebsd[123]*) objformat=aout ;;
13209
*) objformat=elf ;;
13212
version_type=freebsd-$objformat
13213
case $version_type in
13215
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13220
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13224
shlibpath_var=LD_LIBRARY_PATH
13227
shlibpath_overrides_runpath=yes
13229
freebsd3.[01]* | freebsdelf3.[01]*)
13230
shlibpath_overrides_runpath=yes
13231
hardcode_into_libs=yes
13233
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13234
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13235
shlibpath_overrides_runpath=no
13236
hardcode_into_libs=yes
13238
*) # from 4.6 on, and DragonFly
13239
shlibpath_overrides_runpath=yes
13240
hardcode_into_libs=yes
13249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13250
soname_spec='${libname}${release}${shared_ext}$major'
13251
shlibpath_var=LD_LIBRARY_PATH
13252
hardcode_into_libs=yes
13255
hpux9* | hpux10* | hpux11*)
13256
# Give a soname corresponding to the major version so that dld.sl refuses to
13257
# link against other versions.
13264
hardcode_into_libs=yes
13265
dynamic_linker="$host_os dld.so"
13266
shlibpath_var=LD_LIBRARY_PATH
13267
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269
soname_spec='${libname}${release}${shared_ext}$major'
13270
if test "X$HPUX_IA64_MODE" = X32; then
13271
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13273
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13275
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13279
hardcode_into_libs=yes
13280
dynamic_linker="$host_os dld.sl"
13281
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13282
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284
soname_spec='${libname}${release}${shared_ext}$major'
13285
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13286
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13290
dynamic_linker="$host_os dld.sl"
13291
shlibpath_var=SHLIB_PATH
13292
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294
soname_spec='${libname}${release}${shared_ext}$major'
13297
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13298
postinstall_cmds='chmod 555 $lib'
13305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13306
soname_spec='${libname}${release}${shared_ext}$major'
13307
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13308
shlibpath_var=LD_LIBRARY_PATH
13309
shlibpath_overrides_runpath=no
13310
hardcode_into_libs=yes
13313
irix5* | irix6* | nonstopux*)
13315
nonstopux*) version_type=nonstopux ;;
13317
if test "$lt_cv_prog_gnu_ld" = yes; then
13325
soname_spec='${libname}${release}${shared_ext}$major'
13326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13328
irix5* | nonstopux*)
13329
libsuff= shlibsuff=
13332
case $LD in # libtool.m4 will add one of these switches to LD
13333
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13334
libsuff= shlibsuff= libmagic=32-bit;;
13335
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13336
libsuff=32 shlibsuff=N32 libmagic=N32;;
13337
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13338
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13339
*) libsuff= shlibsuff= libmagic=never-match;;
13343
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13344
shlibpath_overrides_runpath=no
13345
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13346
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13347
hardcode_into_libs=yes
13350
# No shared lib support for Linux oldld, aout, or coff.
13351
linux*oldld* | linux*aout* | linux*coff*)
13355
# This must be Linux ELF.
13356
linux* | k*bsd*-gnu)
13360
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361
soname_spec='${libname}${release}${shared_ext}$major'
13362
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13363
shlibpath_var=LD_LIBRARY_PATH
13364
shlibpath_overrides_runpath=no
13365
# This implies no fast_install, which is unacceptable.
13366
# Some rework will be needed to allow for fast_install
13367
# before this can be enabled.
13368
hardcode_into_libs=yes
13370
# Append ld.so.conf contents to the search path
13371
if test -f /etc/ld.so.conf; then
13372
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;/^$/d' | tr '\n' ' '`
13373
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13376
# We used to test for /lib/ld.so.1 and disable shared libraries on
13377
# powerpc, because MkLinux only supported shared libraries with the
13378
# GNU dynamic linker. Since this was broken with cross compilers,
13379
# most powerpc-linux boxes support dynamic linking these days and
13380
# people can always --disable-shared, the test was removed, and we
13381
# assume the GNU/Linux dynamic linker is in use.
13382
dynamic_linker='GNU/Linux ld.so'
13389
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13391
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13392
dynamic_linker='NetBSD (a.out) ld.so'
13394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13395
soname_spec='${libname}${release}${shared_ext}$major'
13396
dynamic_linker='NetBSD ld.elf_so'
13398
shlibpath_var=LD_LIBRARY_PATH
13399
shlibpath_overrides_runpath=yes
13400
hardcode_into_libs=yes
13405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406
shlibpath_var=LD_LIBRARY_PATH
13407
shlibpath_overrides_runpath=yes
13414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13415
soname_spec='${libname}${release}${shared_ext}$major'
13416
shlibpath_var=LD_LIBRARY_PATH
13417
shlibpath_overrides_runpath=yes
13422
sys_lib_dlsearch_path_spec="/usr/lib"
13424
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13426
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13427
*) need_version=no ;;
13429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13430
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13431
shlibpath_var=LD_LIBRARY_PATH
13432
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13434
openbsd2.[89] | openbsd2.[89].*)
13435
shlibpath_overrides_runpath=no
13438
shlibpath_overrides_runpath=yes
13442
shlibpath_overrides_runpath=yes
13447
libname_spec='$name'
13450
library_names_spec='$libname${shared_ext} $libname.a'
13451
dynamic_linker='OS/2 ld.exe'
13452
shlibpath_var=LIBPATH
13455
osf3* | osf4* | osf5*)
13459
soname_spec='${libname}${release}${shared_ext}$major'
13460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461
shlibpath_var=LD_LIBRARY_PATH
13462
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13463
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475
soname_spec='${libname}${release}${shared_ext}$major'
13476
shlibpath_var=LD_LIBRARY_PATH
13477
shlibpath_overrides_runpath=yes
13478
hardcode_into_libs=yes
13479
# ldd complains unless libraries are executable
13480
postinstall_cmds='chmod +x $lib'
13485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13486
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13487
shlibpath_var=LD_LIBRARY_PATH
13488
shlibpath_overrides_runpath=yes
13489
if test "$with_gnu_ld" = yes; then
13497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498
soname_spec='${libname}${release}${shared_ext}$major'
13499
shlibpath_var=LD_LIBRARY_PATH
13500
case $host_vendor in
13502
shlibpath_overrides_runpath=no
13504
export_dynamic_flag_spec='${wl}-Blargedynsym'
13505
runpath_var=LD_RUN_PATH
13513
shlibpath_overrides_runpath=no
13514
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13520
if test -d /usr/nec ;then
13522
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13523
soname_spec='$libname${shared_ext}.$major'
13524
shlibpath_var=LD_LIBRARY_PATH
13528
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13529
version_type=freebsd-elf
13532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13533
soname_spec='${libname}${release}${shared_ext}$major'
13534
shlibpath_var=LD_LIBRARY_PATH
13535
hardcode_into_libs=yes
13536
if test "$with_gnu_ld" = yes; then
13537
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13538
shlibpath_overrides_runpath=no
13540
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13541
shlibpath_overrides_runpath=yes
13544
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13548
sys_lib_dlsearch_path_spec='/usr/lib'
13553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554
soname_spec='${libname}${release}${shared_ext}$major'
13555
shlibpath_var=LD_LIBRARY_PATH
13562
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13563
echo "${ECHO_T}$dynamic_linker" >&6; }
13564
test "$dynamic_linker" = no && can_build_shared=no
13566
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13567
if test "$GCC" = yes; then
13568
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13571
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13572
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13573
hardcode_action_CXX=
13574
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13575
test -n "$runpath_var_CXX" || \
13576
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13578
# We can hardcode non-existant directories.
13579
if test "$hardcode_direct_CXX" != no &&
13580
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13581
# have to relink, otherwise we might link with an installed library
13582
# when we should be linking with a yet-to-be-installed one
13583
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13584
test "$hardcode_minus_L_CXX" != no; then
13585
# Linking always hardcodes the temporary library directory.
13586
hardcode_action_CXX=relink
13588
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13589
hardcode_action_CXX=immediate
13592
# We cannot hardcode anything, or else we can only hardcode existing
13594
hardcode_action_CXX=unsupported
13596
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13597
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13599
if test "$hardcode_action_CXX" = relink; then
13600
# Fast installation is not supported
13601
enable_fast_install=no
13602
elif test "$shlibpath_overrides_runpath" = yes ||
13603
test "$enable_shared" = no; then
13604
# Fast installation is not necessary
13605
enable_fast_install=needless
13609
# The else clause should only fire when bootstrapping the
13610
# libtool distribution, otherwise you forgot to ship ltmain.sh
13611
# with your package, and you will get complaints that there are
13612
# no rules to generate ltmain.sh.
13613
if test -f "$ltmain"; then
13614
# See if we are running on zsh, and set the options which allow our commands through
13615
# without removal of \ escapes.
13616
if test -n "${ZSH_VERSION+set}" ; then
13617
setopt NO_GLOB_SUBST
13619
# Now quote all the things that may contain metacharacters while being
13620
# careful not to overquote the AC_SUBSTed values. We take copies of the
13621
# variables and quote the copies for generation of the libtool script.
13622
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13624
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13625
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13626
deplibs_check_method reload_flag reload_cmds need_locks \
13627
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13628
lt_cv_sys_global_symbol_to_c_name_address \
13629
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13630
old_postinstall_cmds old_postuninstall_cmds \
13634
lt_prog_compiler_wl_CXX \
13635
lt_prog_compiler_pic_CXX \
13636
lt_prog_compiler_static_CXX \
13637
lt_prog_compiler_no_builtin_flag_CXX \
13638
export_dynamic_flag_spec_CXX \
13639
thread_safe_flag_spec_CXX \
13640
whole_archive_flag_spec_CXX \
13641
enable_shared_with_static_runtimes_CXX \
13642
old_archive_cmds_CXX \
13643
old_archive_from_new_cmds_CXX \
13644
predep_objects_CXX \
13645
postdep_objects_CXX \
13648
compiler_lib_search_path_CXX \
13650
archive_expsym_cmds_CXX \
13651
postinstall_cmds_CXX \
13652
postuninstall_cmds_CXX \
13653
old_archive_from_expsyms_cmds_CXX \
13654
allow_undefined_flag_CXX \
13655
no_undefined_flag_CXX \
13656
export_symbols_cmds_CXX \
13657
hardcode_libdir_flag_spec_CXX \
13658
hardcode_libdir_flag_spec_ld_CXX \
13659
hardcode_libdir_separator_CXX \
13660
hardcode_automatic_CXX \
13662
module_expsym_cmds_CXX \
13663
lt_cv_prog_compiler_c_o_CXX \
13664
fix_srcfile_path_CXX \
13665
exclude_expsyms_CXX \
13666
include_expsyms_CXX; do
13669
old_archive_cmds_CXX | \
13670
old_archive_from_new_cmds_CXX | \
13671
archive_cmds_CXX | \
13672
archive_expsym_cmds_CXX | \
13673
module_cmds_CXX | \
13674
module_expsym_cmds_CXX | \
13675
old_archive_from_expsyms_cmds_CXX | \
13676
export_symbols_cmds_CXX | \
13677
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13678
postinstall_cmds | postuninstall_cmds | \
13679
old_postinstall_cmds | old_postuninstall_cmds | \
13680
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13681
# Double-quote double-evaled strings.
13682
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13685
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13691
*'\$0 --fallback-echo"')
13692
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13698
cat <<__EOF__ >> "$cfgfile"
13699
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13701
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13703
# Shell to use when invoking shell scripts.
13706
# Whether or not to build shared libraries.
13707
build_libtool_libs=$enable_shared
13709
# Whether or not to build static libraries.
13710
build_old_libs=$enable_static
13712
# Whether or not to add -lc for building shared libraries.
13713
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13715
# Whether or not to disallow shared libs when runtime libs are static
13716
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13718
# Whether or not to optimize for fast installation.
13719
fast_install=$enable_fast_install
13722
host_alias=$host_alias
13726
# The build system.
13727
build_alias=$build_alias
13731
# An echo program that does not interpret backslashes.
13736
AR_FLAGS=$lt_AR_FLAGS
13741
# LTCC compiler flags.
13742
LTCFLAGS=$lt_LTCFLAGS
13744
# A language-specific compiler.
13745
CC=$lt_compiler_CXX
13747
# Is the compiler the GNU C compiler?
13753
# The linker used to build libraries.
13756
# Whether we need hard or soft links.
13759
# A BSD-compatible nm program.
13762
# A symbol stripping program
13765
# Used to examine libraries when file_magic_cmd begins "file"
13766
MAGIC_CMD=$MAGIC_CMD
13768
# Used on cygwin: DLL creation program.
13771
# Used on cygwin: object dumper.
13774
# Used on cygwin: assembler.
13777
# The name of the directory that contains temporary libtool files.
13780
# How to create reloadable object files.
13781
reload_flag=$lt_reload_flag
13782
reload_cmds=$lt_reload_cmds
13784
# How to pass a linker flag through the compiler.
13785
wl=$lt_lt_prog_compiler_wl_CXX
13787
# Object file suffix (normally "o").
13788
objext="$ac_objext"
13790
# Old archive suffix (normally "a").
13793
# Shared library suffix (normally ".so").
13794
shrext_cmds='$shrext_cmds'
13796
# Executable file suffix (normally "").
13799
# Additional compiler flags for building library objects.
13800
pic_flag=$lt_lt_prog_compiler_pic_CXX
13803
# What is the maximum length of a command?
13804
max_cmd_len=$lt_cv_sys_max_cmd_len
13806
# Does compiler simultaneously support -c and -o options?
13807
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13809
# Must we lock files when doing compilation?
13810
need_locks=$lt_need_locks
13812
# Do we need the lib prefix for modules?
13813
need_lib_prefix=$need_lib_prefix
13815
# Do we need a version for libraries?
13816
need_version=$need_version
13818
# Whether dlopen is supported.
13819
dlopen_support=$enable_dlopen
13821
# Whether dlopen of programs is supported.
13822
dlopen_self=$enable_dlopen_self
13824
# Whether dlopen of statically linked programs is supported.
13825
dlopen_self_static=$enable_dlopen_self_static
13827
# Compiler flag to prevent dynamic linking.
13828
link_static_flag=$lt_lt_prog_compiler_static_CXX
13830
# Compiler flag to turn off builtin functions.
13831
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13833
# Compiler flag to allow reflexive dlopens.
13834
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13836
# Compiler flag to generate shared objects directly from archives.
13837
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13839
# Compiler flag to generate thread-safe objects.
13840
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13842
# Library versioning type.
13843
version_type=$version_type
13845
# Format of library name prefix.
13846
libname_spec=$lt_libname_spec
13848
# List of archive names. First name is the real one, the rest are links.
13849
# The last name is the one that the linker finds with -lNAME.
13850
library_names_spec=$lt_library_names_spec
13852
# The coded name of the library, if different from the real name.
13853
soname_spec=$lt_soname_spec
13855
# Commands used to build and install an old-style archive.
13857
old_archive_cmds=$lt_old_archive_cmds_CXX
13858
old_postinstall_cmds=$lt_old_postinstall_cmds
13859
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13861
# Create an old-style archive from a shared archive.
13862
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13864
# Create a temporary old-style archive to link instead of a shared archive.
13865
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13867
# Commands used to build and install a shared archive.
13868
archive_cmds=$lt_archive_cmds_CXX
13869
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13870
postinstall_cmds=$lt_postinstall_cmds
13871
postuninstall_cmds=$lt_postuninstall_cmds
13873
# Commands used to build a loadable module (assumed same as above if empty)
13874
module_cmds=$lt_module_cmds_CXX
13875
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13877
# Commands to strip libraries.
13878
old_striplib=$lt_old_striplib
13879
striplib=$lt_striplib
13881
# Dependencies to place before the objects being linked to create a
13883
predep_objects=$lt_predep_objects_CXX
13885
# Dependencies to place after the objects being linked to create a
13887
postdep_objects=$lt_postdep_objects_CXX
13889
# Dependencies to place before the objects being linked to create a
13891
predeps=$lt_predeps_CXX
13893
# Dependencies to place after the objects being linked to create a
13895
postdeps=$lt_postdeps_CXX
13897
# The library search path used internally by the compiler when linking
13898
# a shared library.
13899
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13901
# Method to check whether dependent libraries are shared objects.
13902
deplibs_check_method=$lt_deplibs_check_method
13904
# Command to use when deplibs_check_method == file_magic.
13905
file_magic_cmd=$lt_file_magic_cmd
13907
# Flag that allows shared libraries with undefined symbols to be built.
13908
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13910
# Flag that forces no undefined symbols.
13911
no_undefined_flag=$lt_no_undefined_flag_CXX
13913
# Commands used to finish a libtool library installation in a directory.
13914
finish_cmds=$lt_finish_cmds
13916
# Same as above, but a single script fragment to be evaled but not shown.
13917
finish_eval=$lt_finish_eval
13919
# Take the output of nm and produce a listing of raw symbols and C names.
13920
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13922
# Transform the output of nm in a proper C declaration
13923
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13925
# Transform the output of nm in a C name address pair
13926
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13928
# This is the shared library runtime path variable.
13929
runpath_var=$runpath_var
13931
# This is the shared library path variable.
13932
shlibpath_var=$shlibpath_var
13934
# Is shlibpath searched before the hard-coded library search path?
13935
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13937
# How to hardcode a shared library path into an executable.
13938
hardcode_action=$hardcode_action_CXX
13940
# Whether we should hardcode library paths into libraries.
13941
hardcode_into_libs=$hardcode_into_libs
13943
# Flag to hardcode \$libdir into a binary during linking.
13944
# This must work even if \$libdir does not exist.
13945
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13947
# If ld is used when linking, flag to hardcode \$libdir into
13948
# a binary during linking. This must work even if \$libdir does
13950
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13952
# Whether we need a single -rpath flag with a separated argument.
13953
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13955
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13956
# resulting binary.
13957
hardcode_direct=$hardcode_direct_CXX
13959
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13960
# resulting binary.
13961
hardcode_minus_L=$hardcode_minus_L_CXX
13963
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13964
# the resulting binary.
13965
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13967
# Set to yes if building a shared library automatically hardcodes DIR into the library
13968
# and all subsequent libraries and executables linked against it.
13969
hardcode_automatic=$hardcode_automatic_CXX
13971
# Variables whose values should be saved in libtool wrapper scripts and
13972
# restored at relink time.
13973
variables_saved_for_relink="$variables_saved_for_relink"
13975
# Whether libtool must link a program against all its dependency libraries.
13976
link_all_deplibs=$link_all_deplibs_CXX
13978
# Compile-time system search path for libraries
13979
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13981
# Run-time system search path for libraries
13982
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13984
# Fix the shell variable \$srcfile for the compiler.
13985
fix_srcfile_path=$lt_fix_srcfile_path
13987
# Set to yes if exported symbols are required.
13988
always_export_symbols=$always_export_symbols_CXX
13990
# The commands to list exported symbols.
13991
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13993
# The commands to extract the exported symbol list from a shared archive.
13994
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13996
# Symbols that should not be listed in the preloaded symbols.
13997
exclude_expsyms=$lt_exclude_expsyms_CXX
13999
# Symbols that must always be exported.
14000
include_expsyms=$lt_include_expsyms_CXX
14002
# ### END LIBTOOL TAG CONFIG: $tagname
14008
# If there is no Makefile yet, we rely on a make rule to execute
14009
# `config.status --recheck' to rerun these tests and create the
14010
# libtool script then.
14011
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14012
if test -f "$ltmain_in"; then
14013
test -f Makefile && make "$ltmain"
14019
ac_cpp='$CPP $CPPFLAGS'
14020
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14021
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14028
with_gnu_ldcxx=$with_gnu_ld
14029
with_gnu_ld=$lt_save_with_gnu_ld
14030
lt_cv_path_LDCXX=$lt_cv_path_LD
14031
lt_cv_path_LD=$lt_save_path_LD
14032
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14033
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14041
if test -n "$F77" && test "X$F77" != "Xno"; then
14044
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14045
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14046
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14049
archive_cmds_need_lc_F77=no
14050
allow_undefined_flag_F77=
14051
always_export_symbols_F77=no
14052
archive_expsym_cmds_F77=
14053
export_dynamic_flag_spec_F77=
14054
hardcode_direct_F77=no
14055
hardcode_libdir_flag_spec_F77=
14056
hardcode_libdir_flag_spec_ld_F77=
14057
hardcode_libdir_separator_F77=
14058
hardcode_minus_L_F77=no
14059
hardcode_automatic_F77=no
14061
module_expsym_cmds_F77=
14062
link_all_deplibs_F77=unknown
14063
old_archive_cmds_F77=$old_archive_cmds
14064
no_undefined_flag_F77=
14065
whole_archive_flag_spec_F77=
14066
enable_shared_with_static_runtimes_F77=no
14068
# Source file extension for f77 test sources.
14071
# Object file extension for compiled f77 test sources.
14075
# Code to be used in simple compile tests
14076
lt_simple_compile_test_code="\
14082
# Code to be used in simple link tests
14083
lt_simple_link_test_code="\
14088
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14090
# If no C compiler was specified, use CC.
14093
# If no C compiler flags were specified, use CFLAGS.
14094
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14096
# Allow CC to be a program name with arguments.
14100
# save warnings/boilerplate of simple test code
14101
ac_outfile=conftest.$ac_objext
14102
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14103
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14104
_lt_compiler_boilerplate=`cat conftest.err`
14107
ac_outfile=conftest.$ac_objext
14108
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14109
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14110
_lt_linker_boilerplate=`cat conftest.err`
14114
# Allow CC to be a program name with arguments.
14119
for cc_temp in $compiler""; do
14121
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14122
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14127
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14130
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14131
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14132
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14133
echo "${ECHO_T}$can_build_shared" >&6; }
14135
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14136
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14137
test "$can_build_shared" = "no" && enable_shared=no
14139
# On AIX, shared libraries and static libraries use the same namespace, and
14140
# are all built from PIC.
14143
test "$enable_shared" = yes && enable_static=no
14144
if test -n "$RANLIB"; then
14145
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14146
postinstall_cmds='$RANLIB $lib'
14150
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14151
test "$enable_shared" = yes && enable_static=no
14155
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14156
echo "${ECHO_T}$enable_shared" >&6; }
14158
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14159
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14160
# Make sure either enable_shared or enable_static is yes.
14161
test "$enable_shared" = yes || enable_static=yes
14162
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14163
echo "${ECHO_T}$enable_static" >&6; }
14168
lt_prog_compiler_wl_F77=
14169
lt_prog_compiler_pic_F77=
14170
lt_prog_compiler_static_F77=
14172
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14173
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14175
if test "$GCC" = yes; then
14176
lt_prog_compiler_wl_F77='-Wl,'
14177
lt_prog_compiler_static_F77='-static'
14181
# All AIX code is PIC.
14182
if test "$host_cpu" = ia64; then
14183
# AIX 5 now supports IA64 processor
14184
lt_prog_compiler_static_F77='-Bstatic'
14189
# FIXME: we need at least 68020 code to build shared libraries, but
14190
# adding the `-m68020' flag to GCC prevents building anything better,
14192
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14195
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14196
# PIC is the default for these OSes.
14199
mingw* | cygwin* | pw32* | os2*)
14200
# This hack is so that the source file can tell whether it is being
14201
# built for inclusion in a dll (and should export symbols for example).
14202
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14203
# (--disable-auto-import) libraries
14204
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14207
darwin* | rhapsody*)
14208
# PIC is the default on this platform
14209
# Common symbols not allowed in MH_DYLIB files
14210
lt_prog_compiler_pic_F77='-fno-common'
14214
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14215
# Instead, we relocate shared libraries at runtime.
14219
# Just because we use GCC doesn't mean we suddenly get shared libraries
14220
# on systems that don't support them.
14221
lt_prog_compiler_can_build_shared_F77=no
14226
if test -d /usr/nec; then
14227
lt_prog_compiler_pic_F77=-Kconform_pic
14232
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14233
# not for PA HP-UX.
14239
lt_prog_compiler_pic_F77='-fPIC'
14245
lt_prog_compiler_pic_F77='-fPIC'
14249
# PORTME Check for flag to pass linker flags through the system compiler.
14252
lt_prog_compiler_wl_F77='-Wl,'
14253
if test "$host_cpu" = ia64; then
14254
# AIX 5 now supports IA64 processor
14255
lt_prog_compiler_static_F77='-Bstatic'
14257
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14261
# PIC is the default on this platform
14262
# Common symbols not allowed in MH_DYLIB files
14263
case $cc_basename in
14265
lt_prog_compiler_pic_F77='-qnocommon'
14266
lt_prog_compiler_wl_F77='-Wl,'
14271
mingw* | cygwin* | pw32* | os2*)
14272
# This hack is so that the source file can tell whether it is being
14273
# built for inclusion in a dll (and should export symbols for example).
14274
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14277
hpux9* | hpux10* | hpux11*)
14278
lt_prog_compiler_wl_F77='-Wl,'
14279
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14280
# not for PA HP-UX.
14286
lt_prog_compiler_pic_F77='+Z'
14289
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14290
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14293
irix5* | irix6* | nonstopux*)
14294
lt_prog_compiler_wl_F77='-Wl,'
14295
# PIC (with -KPIC) is the default.
14296
lt_prog_compiler_static_F77='-non_shared'
14300
lt_prog_compiler_pic_F77='-KPIC'
14301
lt_prog_compiler_static_F77='-Bstatic'
14304
linux* | k*bsd*-gnu)
14305
case $cc_basename in
14307
lt_prog_compiler_wl_F77='-Wl,'
14308
lt_prog_compiler_pic_F77='-KPIC'
14309
lt_prog_compiler_static_F77='-static'
14311
pgcc* | pgf77* | pgf90* | pgf95*)
14312
# Portland Group compilers (*not* the Pentium gcc compiler,
14313
# which looks to be a dead project)
14314
lt_prog_compiler_wl_F77='-Wl,'
14315
lt_prog_compiler_pic_F77='-fpic'
14316
lt_prog_compiler_static_F77='-Bstatic'
14319
lt_prog_compiler_wl_F77='-Wl,'
14320
# All Alpha code is PIC.
14321
lt_prog_compiler_static_F77='-non_shared'
14324
lt_prog_compiler_wl_F77='-lopt='
14327
case `$CC -V 2>&1 | sed 5q` in
14330
lt_prog_compiler_pic_F77='-KPIC'
14331
lt_prog_compiler_static_F77='-Bstatic'
14332
lt_prog_compiler_wl_F77='-Wl,'
14335
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14336
lt_prog_compiler_pic_F77='-KPIC'
14337
lt_prog_compiler_static_F77='-Bstatic'
14338
lt_prog_compiler_wl_F77=''
14345
osf3* | osf4* | osf5*)
14346
lt_prog_compiler_wl_F77='-Wl,'
14347
# All OSF/1 code is PIC.
14348
lt_prog_compiler_static_F77='-non_shared'
14352
lt_prog_compiler_static_F77='-non_shared'
14356
lt_prog_compiler_pic_F77='-KPIC'
14357
lt_prog_compiler_static_F77='-Bstatic'
14358
case $cc_basename in
14359
f77* | f90* | f95*)
14360
lt_prog_compiler_wl_F77='-Qoption ld ';;
14362
lt_prog_compiler_wl_F77='-Wl,';;
14367
lt_prog_compiler_wl_F77='-Qoption ld '
14368
lt_prog_compiler_pic_F77='-PIC'
14369
lt_prog_compiler_static_F77='-Bstatic'
14372
sysv4 | sysv4.2uw2* | sysv4.3*)
14373
lt_prog_compiler_wl_F77='-Wl,'
14374
lt_prog_compiler_pic_F77='-KPIC'
14375
lt_prog_compiler_static_F77='-Bstatic'
14379
if test -d /usr/nec ;then
14380
lt_prog_compiler_pic_F77='-Kconform_pic'
14381
lt_prog_compiler_static_F77='-Bstatic'
14385
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14386
lt_prog_compiler_wl_F77='-Wl,'
14387
lt_prog_compiler_pic_F77='-KPIC'
14388
lt_prog_compiler_static_F77='-Bstatic'
14392
lt_prog_compiler_wl_F77='-Wl,'
14393
lt_prog_compiler_can_build_shared_F77=no
14397
lt_prog_compiler_pic_F77='-pic'
14398
lt_prog_compiler_static_F77='-Bstatic'
14402
lt_prog_compiler_can_build_shared_F77=no
14407
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14408
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14411
# Check to make sure the PIC flag actually works.
14413
if test -n "$lt_prog_compiler_pic_F77"; then
14415
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14416
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14417
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14418
echo $ECHO_N "(cached) $ECHO_C" >&6
14420
lt_prog_compiler_pic_works_F77=no
14421
ac_outfile=conftest.$ac_objext
14422
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14423
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14424
# Insert the option either (1) after the last *FLAGS variable, or
14425
# (2) before a word containing "conftest.", or (3) at the end.
14426
# Note that $ac_compile itself does not contain backslashes and begins
14427
# with a dollar sign (not a hyphen), so the echo should work correctly.
14428
# The option is referenced via a variable to avoid confusing sed.
14429
lt_compile=`echo "$ac_compile" | $SED \
14430
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14431
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14432
-e 's:$: $lt_compiler_flag:'`
14433
(eval echo "\"\$as_me:14433: $lt_compile\"" >&5)
14434
(eval "$lt_compile" 2>conftest.err)
14436
cat conftest.err >&5
14437
echo "$as_me:14437: \$? = $ac_status" >&5
14438
if (exit $ac_status) && test -s "$ac_outfile"; then
14439
# The compiler can only warn and ignore the option if not recognized
14440
# So say no if there are warnings other than the usual output.
14441
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14442
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14443
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14444
lt_prog_compiler_pic_works_F77=yes
14450
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14451
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14453
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14454
case $lt_prog_compiler_pic_F77 in
14456
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14459
lt_prog_compiler_pic_F77=
14460
lt_prog_compiler_can_build_shared_F77=no
14465
# For platforms which do not support PIC, -DPIC is meaningless:
14467
lt_prog_compiler_pic_F77=
14470
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14475
# Check to make sure the static flag actually works.
14477
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14478
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14479
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14480
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14481
echo $ECHO_N "(cached) $ECHO_C" >&6
14483
lt_prog_compiler_static_works_F77=no
14484
save_LDFLAGS="$LDFLAGS"
14485
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14486
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14487
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14488
# The linker can only warn and ignore the option if not recognized
14489
# So say no if there are warnings
14490
if test -s conftest.err; then
14491
# Append any errors to the config.log.
14492
cat conftest.err 1>&5
14493
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14494
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14495
if diff conftest.exp conftest.er2 >/dev/null; then
14496
lt_prog_compiler_static_works_F77=yes
14499
lt_prog_compiler_static_works_F77=yes
14503
LDFLAGS="$save_LDFLAGS"
14506
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14507
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14509
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14512
lt_prog_compiler_static_F77=
14516
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14517
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14518
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14519
echo $ECHO_N "(cached) $ECHO_C" >&6
14521
lt_cv_prog_compiler_c_o_F77=no
14522
$rm -r conftest 2>/dev/null
14526
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14528
lt_compiler_flag="-o out/conftest2.$ac_objext"
14529
# Insert the option either (1) after the last *FLAGS variable, or
14530
# (2) before a word containing "conftest.", or (3) at the end.
14531
# Note that $ac_compile itself does not contain backslashes and begins
14532
# with a dollar sign (not a hyphen), so the echo should work correctly.
14533
lt_compile=`echo "$ac_compile" | $SED \
14534
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14535
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14536
-e 's:$: $lt_compiler_flag:'`
14537
(eval echo "\"\$as_me:14537: $lt_compile\"" >&5)
14538
(eval "$lt_compile" 2>out/conftest.err)
14540
cat out/conftest.err >&5
14541
echo "$as_me:14541: \$? = $ac_status" >&5
14542
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14544
# The compiler can only warn and ignore the option if not recognized
14545
# So say no if there are warnings
14546
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14547
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14548
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14549
lt_cv_prog_compiler_c_o_F77=yes
14554
# SGI C++ compiler will create directory out/ii_files/ for
14555
# template instantiation
14556
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14557
$rm out/* && rmdir out
14563
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14564
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14567
hard_links="nottested"
14568
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14569
# do not overwrite the value of need_locks provided by the user
14570
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14571
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14574
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14576
ln conftest.a conftest.b 2>&5 || hard_links=no
14577
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14578
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14579
echo "${ECHO_T}$hard_links" >&6; }
14580
if test "$hard_links" = no; then
14581
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14582
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14589
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14590
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14593
allow_undefined_flag_F77=
14594
enable_shared_with_static_runtimes_F77=no
14596
archive_expsym_cmds_F77=
14597
old_archive_From_new_cmds_F77=
14598
old_archive_from_expsyms_cmds_F77=
14599
export_dynamic_flag_spec_F77=
14600
whole_archive_flag_spec_F77=
14601
thread_safe_flag_spec_F77=
14602
hardcode_libdir_flag_spec_F77=
14603
hardcode_libdir_flag_spec_ld_F77=
14604
hardcode_libdir_separator_F77=
14605
hardcode_direct_F77=no
14606
hardcode_minus_L_F77=no
14607
hardcode_shlibpath_var_F77=unsupported
14608
link_all_deplibs_F77=unknown
14609
hardcode_automatic_F77=no
14611
module_expsym_cmds_F77=
14612
always_export_symbols_F77=no
14613
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14614
# include_expsyms should be a list of space-separated symbols to be *always*
14615
# included in the symbol list
14616
include_expsyms_F77=
14617
# exclude_expsyms can be an extended regexp of symbols to exclude
14618
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14619
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14620
# as well as any symbol that contains `d'.
14621
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14622
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14623
# platforms (ab)use it in PIC code, but their linkers get confused if
14624
# the symbol is explicitly referenced. Since portable code cannot
14625
# rely on this symbol name, it's probably fine to never include it in
14626
# preloaded symbol tables.
14627
extract_expsyms_cmds=
14628
# Just being paranoid about ensuring that cc_basename is set.
14629
for cc_temp in $compiler""; do
14631
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14632
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14637
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14640
cygwin* | mingw* | pw32*)
14641
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14642
# When not using gcc, we currently assume that we are using
14643
# Microsoft Visual C++.
14644
if test "$GCC" != yes; then
14649
# we just hope/assume this is gcc and not c89 (= MSVC++)
14658
if test "$with_gnu_ld" = yes; then
14659
# If archive_cmds runs LD, not CC, wlarc should be empty
14662
# Set some defaults for GNU ld with shared library support. These
14663
# are reset later if shared libraries are not supported. Putting them
14664
# here allows them to be overridden if necessary.
14665
runpath_var=LD_RUN_PATH
14666
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14667
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14668
# ancient GNU ld didn't support --whole-archive et. al.
14669
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14670
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14672
whole_archive_flag_spec_F77=
14674
supports_anon_versioning=no
14675
case `$LD -v 2>/dev/null` in
14676
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14677
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14678
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14679
*\ 2.11.*) ;; # other 2.11 versions
14680
*) supports_anon_versioning=yes ;;
14683
# See if GNU ld supports shared libraries.
14685
aix3* | aix4* | aix5*)
14686
# On AIX/PPC, the GNU linker is very broken
14687
if test "$host_cpu" != ia64; then
14691
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14692
*** to be unable to reliably create shared libraries on AIX.
14693
*** Therefore, libtool is disabling shared libraries support. If you
14694
*** really care for shared libraries, you may want to modify your PATH
14695
*** so that a non-GNU linker is found, and then restart.
14702
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14703
hardcode_libdir_flag_spec_F77='-L$libdir'
14704
hardcode_minus_L_F77=yes
14706
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14707
# that the semantics of dynamic libraries on AmigaOS, at least up
14708
# to version 4, is to share data among multiple programs linked
14709
# with the same dynamic library. Since this doesn't match the
14710
# behavior of shared libraries on other platforms, we can't use
14716
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14717
allow_undefined_flag_F77=unsupported
14718
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14719
# support --undefined. This deserves some investigation. FIXME
14720
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14726
cygwin* | mingw* | pw32*)
14727
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14728
# as there is no search path for DLLs.
14729
hardcode_libdir_flag_spec_F77='-L$libdir'
14730
allow_undefined_flag_F77=unsupported
14731
always_export_symbols_F77=no
14732
enable_shared_with_static_runtimes_F77=yes
14733
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14735
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14736
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14737
# If the export-symbols file already is a .def file (1st line
14738
# is EXPORTS), use it as is; otherwise, prepend...
14739
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14740
cp $export_symbols $output_objdir/$soname.def;
14742
echo EXPORTS > $output_objdir/$soname.def;
14743
cat $export_symbols >> $output_objdir/$soname.def;
14745
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14752
hardcode_direct_F77=no
14753
hardcode_shlibpath_var_F77=no
14754
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14755
export_dynamic_flag_spec_F77='${wl}-E'
14756
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14757
# Instead, shared libraries are loaded at an image base (0x10000000 by
14758
# default) and relocated if they conflict, which is a slow very memory
14759
# consuming and fragmenting process. To avoid this, we pick a random,
14760
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14761
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14762
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14763
archive_expsym_cmds_F77='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'
14766
gnu* | linux* | k*bsd*-gnu)
14767
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14769
case $cc_basename,$host_cpu in
14770
pgcc*) # Portland Group C compiler
14771
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14772
tmp_addflag=' $pic_flag'
14774
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14775
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14776
tmp_addflag=' $pic_flag -Mnomain' ;;
14777
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14778
tmp_addflag=' -i_dynamic' ;;
14779
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14780
tmp_addflag=' -i_dynamic -nofor_main' ;;
14781
ifc* | ifort*) # Intel Fortran compiler
14782
tmp_addflag=' -nofor_main' ;;
14784
case `$CC -V 2>&1 | sed 5q` in
14785
*Sun\ C*) # Sun C 5.9
14786
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14787
tmp_sharedflag='-G' ;;
14788
*Sun\ F*) # Sun Fortran 8.3
14789
tmp_sharedflag='-G' ;;
14791
tmp_sharedflag='-shared' ;;
14793
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795
if test $supports_anon_versioning = yes; then
14796
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14797
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14798
$echo "local: *; };" >> $output_objdir/$libname.ver~
14799
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14807
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14808
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14811
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14817
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14821
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14822
*** create shared libraries on Solaris systems. Therefore, libtool
14823
*** is disabling shared libraries support. We urge you to upgrade GNU
14824
*** binutils to release 2.9.1 or newer. Another option is to modify
14825
*** your PATH or compiler configuration so that the native linker is
14826
*** used, and then restart.
14829
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14830
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14831
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14837
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14838
case `$LD -v 2>&1` in
14839
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14843
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14844
*** reliably create shared libraries on SCO systems. Therefore, libtool
14845
*** is disabling shared libraries support. We urge you to upgrade GNU
14846
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14847
*** your PATH or compiler configuration so that the native linker is
14848
*** used, and then restart.
14853
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14854
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14855
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14856
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14865
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14867
hardcode_direct_F77=yes
14868
hardcode_shlibpath_var_F77=no
14872
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14873
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14874
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14881
if test "$ld_shlibs_F77" = no; then
14883
hardcode_libdir_flag_spec_F77=
14884
export_dynamic_flag_spec_F77=
14885
whole_archive_flag_spec_F77=
14888
# PORTME fill in a description of your system's linker (not GNU ld)
14891
allow_undefined_flag_F77=unsupported
14892
always_export_symbols_F77=yes
14893
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14894
# Note: this linker hardcodes the directories in LIBPATH if there
14895
# are no directories specified by -L.
14896
hardcode_minus_L_F77=yes
14897
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14898
# Neither direct hardcoding nor static linking is supported with a
14900
hardcode_direct_F77=unsupported
14905
if test "$host_cpu" = ia64; then
14906
# On IA64, the linker does run time linking by default, so we don't
14907
# have to do anything special.
14908
aix_use_runtimelinking=no
14909
exp_sym_flag='-Bexport'
14912
# If we're using GNU nm, then we don't want the "-C" option.
14913
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14914
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14915
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14917
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14919
aix_use_runtimelinking=no
14921
# Test if we are trying to use run time linking or normal
14922
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14923
# need to do runtime linking.
14924
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14925
for ld_flag in $LDFLAGS; do
14926
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14927
aix_use_runtimelinking=yes
14934
exp_sym_flag='-bexport'
14935
no_entry_flag='-bnoentry'
14938
# When large executables or shared objects are built, AIX ld can
14939
# have problems creating the table of contents. If linking a library
14940
# or program results in "error TOC overflow" add -mminimal-toc to
14941
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14942
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14944
archive_cmds_F77=''
14945
hardcode_direct_F77=yes
14946
hardcode_libdir_separator_F77=':'
14947
link_all_deplibs_F77=yes
14949
if test "$GCC" = yes; then
14950
case $host_os in aix4.[012]|aix4.[012].*)
14951
# We only want to do this on AIX 4.2 and lower, the check
14952
# below for broken collect2 doesn't work under 4.3+
14953
collect2name=`${CC} -print-prog-name=collect2`
14954
if test -f "$collect2name" && \
14955
strings "$collect2name" | grep resolve_lib_name >/dev/null
14957
# We have reworked collect2
14960
# We have old collect2
14961
hardcode_direct_F77=unsupported
14962
# It fails to find uninstalled libraries when the uninstalled
14963
# path is not listed in the libpath. Setting hardcode_minus_L
14964
# to unsupported forces relinking
14965
hardcode_minus_L_F77=yes
14966
hardcode_libdir_flag_spec_F77='-L$libdir'
14967
hardcode_libdir_separator_F77=
14971
shared_flag='-shared'
14972
if test "$aix_use_runtimelinking" = yes; then
14973
shared_flag="$shared_flag "'${wl}-G'
14977
if test "$host_cpu" = ia64; then
14978
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14979
# chokes on -Wl,-G. The following line is correct:
14982
if test "$aix_use_runtimelinking" = yes; then
14983
shared_flag='${wl}-G'
14985
shared_flag='${wl}-bM:SRE'
14990
# It seems that -bexpall does not export symbols beginning with
14991
# underscore (_), so it is better to generate a list of symbols to export.
14992
always_export_symbols_F77=yes
14993
if test "$aix_use_runtimelinking" = yes; then
14994
# Warning - without using the other runtime loading flags (-brtl),
14995
# -berok will link without error, but may produce a broken library.
14996
allow_undefined_flag_F77='-berok'
14997
# Determine the default libpath from the value encoded in an empty executable.
14998
cat >conftest.$ac_ext <<_ACEOF
15003
rm -f conftest.$ac_objext conftest$ac_exeext
15004
if { (ac_try="$ac_link"
15005
case "(($ac_try" in
15006
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007
*) ac_try_echo=$ac_try;;
15009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010
(eval "$ac_link") 2>conftest.er1
15012
grep -v '^ *+' conftest.er1 >conftest.err
15014
cat conftest.err >&5
15015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016
(exit $ac_status); } && {
15017
test -z "$ac_f77_werror_flag" ||
15018
test ! -s conftest.err
15019
} && test -s conftest$ac_exeext &&
15020
$as_test_x conftest$ac_exeext; then
15022
lt_aix_libpath_sed='
15023
/Import File Strings/,/^$/ {
15029
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15030
# Check for a 64-bit object if we didn't find anything.
15031
if test -z "$aix_libpath"; then
15032
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15035
echo "$as_me: failed program was:" >&5
15036
sed 's/^/| /' conftest.$ac_ext >&5
15041
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15042
conftest$ac_exeext conftest.$ac_ext
15043
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15045
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15046
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15048
if test "$host_cpu" = ia64; then
15049
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15050
allow_undefined_flag_F77="-z nodefs"
15051
archive_expsym_cmds_F77="\$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"
15053
# Determine the default libpath from the value encoded in an empty executable.
15054
cat >conftest.$ac_ext <<_ACEOF
15059
rm -f conftest.$ac_objext conftest$ac_exeext
15060
if { (ac_try="$ac_link"
15061
case "(($ac_try" in
15062
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15063
*) ac_try_echo=$ac_try;;
15065
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066
(eval "$ac_link") 2>conftest.er1
15068
grep -v '^ *+' conftest.er1 >conftest.err
15070
cat conftest.err >&5
15071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072
(exit $ac_status); } && {
15073
test -z "$ac_f77_werror_flag" ||
15074
test ! -s conftest.err
15075
} && test -s conftest$ac_exeext &&
15076
$as_test_x conftest$ac_exeext; then
15078
lt_aix_libpath_sed='
15079
/Import File Strings/,/^$/ {
15085
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15086
# Check for a 64-bit object if we didn't find anything.
15087
if test -z "$aix_libpath"; then
15088
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15091
echo "$as_me: failed program was:" >&5
15092
sed 's/^/| /' conftest.$ac_ext >&5
15097
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15098
conftest$ac_exeext conftest.$ac_ext
15099
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15101
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15102
# Warning - without using the other run time loading flags,
15103
# -berok will link without error, but may produce a broken library.
15104
no_undefined_flag_F77=' ${wl}-bernotok'
15105
allow_undefined_flag_F77=' ${wl}-berok'
15106
# Exported symbols can be pulled into shared objects from archives
15107
whole_archive_flag_spec_F77='$convenience'
15108
archive_cmds_need_lc_F77=yes
15109
# This is similar to how AIX traditionally builds its shared libraries.
15110
archive_expsym_cmds_F77="\$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'
15116
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15117
hardcode_libdir_flag_spec_F77='-L$libdir'
15118
hardcode_minus_L_F77=yes
15119
# see comment about different semantics on the GNU ld section
15124
export_dynamic_flag_spec_F77=-rdynamic
15127
cygwin* | mingw* | pw32*)
15128
# When not using gcc, we currently assume that we are using
15129
# Microsoft Visual C++.
15130
# hardcode_libdir_flag_spec is actually meaningless, as there is
15131
# no search path for DLLs.
15132
hardcode_libdir_flag_spec_F77=' '
15133
allow_undefined_flag_F77=unsupported
15134
# Tell ltmain to make .lib files, not .a files.
15136
# Tell ltmain to make .dll files, not .so files.
15138
# FIXME: Setting linknames here is a bad hack.
15139
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15140
# The linker will automatically build a .lib file if we build a DLL.
15141
old_archive_From_new_cmds_F77='true'
15142
# FIXME: Should let the user specify the lib program.
15143
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15144
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15145
enable_shared_with_static_runtimes_F77=yes
15148
darwin* | rhapsody*)
15150
rhapsody* | darwin1.[012])
15151
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15154
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15155
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15157
case ${MACOSX_DEPLOYMENT_TARGET} in
15159
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15162
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15168
archive_cmds_need_lc_F77=no
15169
hardcode_direct_F77=no
15170
hardcode_automatic_F77=yes
15171
hardcode_shlibpath_var_F77=unsupported
15172
whole_archive_flag_spec_F77=''
15173
link_all_deplibs_F77=yes
15174
if test "$GCC" = yes ; then
15175
output_verbose_link_cmd='echo'
15176
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15177
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15178
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15179
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15180
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15182
case $cc_basename in
15184
output_verbose_link_cmd='echo'
15185
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15186
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15187
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15188
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15189
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15199
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15200
hardcode_libdir_flag_spec_F77='-L$libdir'
15201
hardcode_shlibpath_var_F77=no
15208
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15209
# support. Future versions do this automatically, but an explicit c++rt0.o
15210
# does not break anything, and helps significantly (at the cost of a little
15213
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15214
hardcode_libdir_flag_spec_F77='-R$libdir'
15215
hardcode_direct_F77=yes
15216
hardcode_shlibpath_var_F77=no
15219
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15221
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15222
hardcode_direct_F77=yes
15223
hardcode_minus_L_F77=yes
15224
hardcode_shlibpath_var_F77=no
15227
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15228
freebsd* | dragonfly*)
15229
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15230
hardcode_libdir_flag_spec_F77='-R$libdir'
15231
hardcode_direct_F77=yes
15232
hardcode_shlibpath_var_F77=no
15236
if test "$GCC" = yes; then
15237
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15239
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15241
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15242
hardcode_libdir_separator_F77=:
15243
hardcode_direct_F77=yes
15245
# hardcode_minus_L: Not really in the search PATH,
15246
# but as the default location of the library.
15247
hardcode_minus_L_F77=yes
15248
export_dynamic_flag_spec_F77='${wl}-E'
15252
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15253
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15255
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15257
if test "$with_gnu_ld" = no; then
15258
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15259
hardcode_libdir_separator_F77=:
15261
hardcode_direct_F77=yes
15262
export_dynamic_flag_spec_F77='${wl}-E'
15264
# hardcode_minus_L: Not really in the search PATH,
15265
# but as the default location of the library.
15266
hardcode_minus_L_F77=yes
15271
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15274
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15277
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15280
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15286
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15289
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15292
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15296
if test "$with_gnu_ld" = no; then
15297
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15298
hardcode_libdir_separator_F77=:
15302
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15303
hardcode_direct_F77=no
15304
hardcode_shlibpath_var_F77=no
15307
hardcode_direct_F77=yes
15308
export_dynamic_flag_spec_F77='${wl}-E'
15310
# hardcode_minus_L: Not really in the search PATH,
15311
# but as the default location of the library.
15312
hardcode_minus_L_F77=yes
15318
irix5* | irix6* | nonstopux*)
15319
if test "$GCC" = yes; then
15320
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15322
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15323
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15325
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15326
hardcode_libdir_separator_F77=:
15327
link_all_deplibs_F77=yes
15331
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15332
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15334
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15336
hardcode_libdir_flag_spec_F77='-R$libdir'
15337
hardcode_direct_F77=yes
15338
hardcode_shlibpath_var_F77=no
15342
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15343
hardcode_direct_F77=yes
15344
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15345
hardcode_libdir_separator_F77=:
15346
hardcode_shlibpath_var_F77=no
15350
if test -f /usr/libexec/ld.so; then
15351
hardcode_direct_F77=yes
15352
hardcode_shlibpath_var_F77=no
15353
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15354
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15355
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15356
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15357
export_dynamic_flag_spec_F77='${wl}-E'
15360
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15361
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15362
hardcode_libdir_flag_spec_F77='-R$libdir'
15365
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15366
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15376
hardcode_libdir_flag_spec_F77='-L$libdir'
15377
hardcode_minus_L_F77=yes
15378
allow_undefined_flag_F77=unsupported
15379
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15380
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15384
if test "$GCC" = yes; then
15385
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15386
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15388
allow_undefined_flag_F77=' -expect_unresolved \*'
15389
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15391
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15392
hardcode_libdir_separator_F77=:
15395
osf4* | osf5*) # as osf3* with the addition of -msym flag
15396
if test "$GCC" = yes; then
15397
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15398
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15399
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15401
allow_undefined_flag_F77=' -expect_unresolved \*'
15402
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15403
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15404
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15406
# Both c and cxx compiler support -rpath directly
15407
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15409
hardcode_libdir_separator_F77=:
15413
no_undefined_flag_F77=' -z text'
15414
if test "$GCC" = yes; then
15416
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15417
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15418
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15421
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15422
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15423
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15425
hardcode_libdir_flag_spec_F77='-R$libdir'
15426
hardcode_shlibpath_var_F77=no
15428
solaris2.[0-5] | solaris2.[0-5].*) ;;
15430
# The compiler driver will combine and reorder linker options,
15431
# but understands `-z linker_flag'. GCC discards it without `$wl',
15432
# but is careful enough not to reorder.
15433
# Supported since Solaris 2.6 (maybe 2.5.1?)
15434
if test "$GCC" = yes; then
15435
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15437
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15441
link_all_deplibs_F77=yes
15445
if test "x$host_vendor" = xsequent; then
15446
# Use $CC to link under sequent, because it throws in some extra .o
15447
# files that make .init and .fini sections work.
15448
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15450
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15452
hardcode_libdir_flag_spec_F77='-L$libdir'
15453
hardcode_direct_F77=yes
15454
hardcode_minus_L_F77=yes
15455
hardcode_shlibpath_var_F77=no
15459
case $host_vendor in
15461
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462
hardcode_direct_F77=yes # is this really true???
15465
## LD is ld it makes a PLAMLIB
15466
## CC just makes a GrossModule.
15467
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15468
reload_cmds_F77='$CC -r -o $output$reload_objs'
15469
hardcode_direct_F77=no
15472
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15476
runpath_var='LD_RUN_PATH'
15477
hardcode_shlibpath_var_F77=no
15481
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15482
hardcode_shlibpath_var_F77=no
15483
export_dynamic_flag_spec_F77='-Bexport'
15487
if test -d /usr/nec; then
15488
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489
hardcode_shlibpath_var_F77=no
15490
runpath_var=LD_RUN_PATH
15491
hardcode_runpath_var=yes
15496
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15497
no_undefined_flag_F77='${wl}-z,text'
15498
archive_cmds_need_lc_F77=no
15499
hardcode_shlibpath_var_F77=no
15500
runpath_var='LD_RUN_PATH'
15502
if test "$GCC" = yes; then
15503
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15504
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15506
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15507
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15511
sysv5* | sco3.2v5* | sco5v6*)
15512
# Note: We can NOT use -z defs as we might desire, because we do not
15513
# link with -lc, and that would cause any symbols used from libc to
15514
# always be unresolved, which means just about no library would
15515
# ever link correctly. If we're not using GNU ld we use -z text
15516
# though, which does catch some bad symbols but isn't as heavy-handed
15518
no_undefined_flag_F77='${wl}-z,text'
15519
allow_undefined_flag_F77='${wl}-z,nodefs'
15520
archive_cmds_need_lc_F77=no
15521
hardcode_shlibpath_var_F77=no
15522
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15523
hardcode_libdir_separator_F77=':'
15524
link_all_deplibs_F77=yes
15525
export_dynamic_flag_spec_F77='${wl}-Bexport'
15526
runpath_var='LD_RUN_PATH'
15528
if test "$GCC" = yes; then
15529
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15532
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15533
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15538
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539
hardcode_libdir_flag_spec_F77='-L$libdir'
15540
hardcode_shlibpath_var_F77=no
15549
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15550
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15551
test "$ld_shlibs_F77" = no && can_build_shared=no
15554
# Do we need to explicitly link libc?
15556
case "x$archive_cmds_need_lc_F77" in
15558
# Assume -lc should be added
15559
archive_cmds_need_lc_F77=yes
15561
if test "$enable_shared" = yes && test "$GCC" = yes; then
15562
case $archive_cmds_F77 in
15564
# FIXME: we may have to deal with multi-command sequences.
15567
# Test whether the compiler implicitly links with -lc since on some
15568
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15569
# to ld, don't add -lc before -lgcc.
15570
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15571
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15573
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15575
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15576
(eval $ac_compile) 2>&5
15578
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579
(exit $ac_status); } 2>conftest.err; then
15582
libobjs=conftest.$ac_objext
15584
wl=$lt_prog_compiler_wl_F77
15585
pic_flag=$lt_prog_compiler_pic_F77
15591
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15592
allow_undefined_flag_F77=
15593
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15594
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597
(exit $ac_status); }
15599
archive_cmds_need_lc_F77=no
15601
archive_cmds_need_lc_F77=yes
15603
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15605
cat conftest.err 1>&5
15608
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15609
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15616
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15617
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15618
library_names_spec=
15619
libname_spec='lib$name'
15623
postuninstall_cmds=
15627
shlibpath_overrides_runpath=unknown
15629
dynamic_linker="$host_os ld.so"
15630
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15632
need_lib_prefix=unknown
15633
hardcode_into_libs=no
15635
# when you set need_version to no, make sure it does not cause -set_version
15636
# flags to be left without arguments
15637
need_version=unknown
15642
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15643
shlibpath_var=LIBPATH
15645
# AIX 3 has no versioning support, so we append a major version to the name.
15646
soname_spec='${libname}${release}${shared_ext}$major'
15653
hardcode_into_libs=yes
15654
if test "$host_cpu" = ia64; then
15655
# AIX 5 supports IA64
15656
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15657
shlibpath_var=LD_LIBRARY_PATH
15659
# With GCC up to 2.95.x, collect2 would create an import file
15660
# for dependence libraries. The import file would start with
15661
# the line `#! .'. This would cause the generated library to
15662
# depend on `.', always an invalid library. This was fixed in
15663
# development snapshots of GCC prior to 3.0.
15665
aix4 | aix4.[01] | aix4.[01].*)
15666
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15668
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15671
can_build_shared=no
15675
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15676
# soname into executable. Probably we can add versioning support to
15677
# collect2, so additional links can be useful in future.
15678
if test "$aix_use_runtimelinking" = yes; then
15679
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15680
# instead of lib<name>.a to let people know that these are not
15681
# typical AIX shared libraries.
15682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684
# We preserve .a as extension for shared libraries through AIX4.2
15685
# and later when we are not doing run time linking.
15686
library_names_spec='${libname}${release}.a $libname.a'
15687
soname_spec='${libname}${release}${shared_ext}$major'
15689
shlibpath_var=LIBPATH
15694
library_names_spec='$libname.ixlibrary $libname.a'
15695
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15696
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15700
library_names_spec='${libname}${shared_ext}'
15701
dynamic_linker="$host_os ld.so"
15702
shlibpath_var=LIBRARY_PATH
15708
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15709
soname_spec='${libname}${release}${shared_ext}$major'
15710
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15711
shlibpath_var=LD_LIBRARY_PATH
15712
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15713
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15714
# the default ld.so.conf also contains /usr/contrib/lib and
15715
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15716
# libtool to hard-code these into programs
15719
cygwin* | mingw* | pw32*)
15720
version_type=windows
15725
case $GCC,$host_os in
15726
yes,cygwin* | yes,mingw* | yes,pw32*)
15727
library_names_spec='$libname.dll.a'
15728
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15729
postinstall_cmds='base_file=`basename \${file}`~
15730
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15731
dldir=$destdir/`dirname \$dlpath`~
15732
test -d \$dldir || mkdir -p \$dldir~
15733
$install_prog $dir/$dlname \$dldir/$dlname~
15734
chmod a+x \$dldir/$dlname'
15735
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15736
dlpath=$dir/\$dldll~
15738
shlibpath_overrides_runpath=yes
15742
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15743
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15744
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15747
# MinGW DLLs use traditional 'lib' prefix
15748
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15749
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15750
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15751
# It is most probably a Windows format PATH printed by
15752
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15753
# path with ; separators, and with drive letters. We can handle the
15754
# drive letters (cygwin fileutils understands them), so leave them,
15755
# especially as we might pass files found there to a mingw objdump,
15756
# which wouldn't understand a cygwinified path. Ahh.
15757
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15759
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15763
# pw32 DLLs use 'pw' prefix rather than 'lib'
15764
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15770
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15773
dynamic_linker='Win32 ld.exe'
15774
# FIXME: first we should search . and the directory the executable is in
15778
darwin* | rhapsody*)
15779
dynamic_linker="$host_os dyld"
15780
version_type=darwin
15783
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15784
soname_spec='${libname}${release}${major}$shared_ext'
15785
shlibpath_overrides_runpath=yes
15786
shlibpath_var=DYLD_LIBRARY_PATH
15787
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15789
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15797
soname_spec='${libname}${release}${shared_ext}$major'
15798
shlibpath_var=LD_LIBRARY_PATH
15805
freebsd* | dragonfly*)
15806
# DragonFly does not have aout. When/if they implement a new
15807
# versioning mechanism, adjust this.
15808
if test -x /usr/bin/objformat; then
15809
objformat=`/usr/bin/objformat`
15812
freebsd[123]*) objformat=aout ;;
15813
*) objformat=elf ;;
15816
version_type=freebsd-$objformat
15817
case $version_type in
15819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15824
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15828
shlibpath_var=LD_LIBRARY_PATH
15831
shlibpath_overrides_runpath=yes
15833
freebsd3.[01]* | freebsdelf3.[01]*)
15834
shlibpath_overrides_runpath=yes
15835
hardcode_into_libs=yes
15837
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15838
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15839
shlibpath_overrides_runpath=no
15840
hardcode_into_libs=yes
15842
*) # from 4.6 on, and DragonFly
15843
shlibpath_overrides_runpath=yes
15844
hardcode_into_libs=yes
15853
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15854
soname_spec='${libname}${release}${shared_ext}$major'
15855
shlibpath_var=LD_LIBRARY_PATH
15856
hardcode_into_libs=yes
15859
hpux9* | hpux10* | hpux11*)
15860
# Give a soname corresponding to the major version so that dld.sl refuses to
15861
# link against other versions.
15868
hardcode_into_libs=yes
15869
dynamic_linker="$host_os dld.so"
15870
shlibpath_var=LD_LIBRARY_PATH
15871
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15872
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873
soname_spec='${libname}${release}${shared_ext}$major'
15874
if test "X$HPUX_IA64_MODE" = X32; then
15875
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15877
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15879
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15883
hardcode_into_libs=yes
15884
dynamic_linker="$host_os dld.sl"
15885
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15886
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888
soname_spec='${libname}${release}${shared_ext}$major'
15889
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15890
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15894
dynamic_linker="$host_os dld.sl"
15895
shlibpath_var=SHLIB_PATH
15896
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15897
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898
soname_spec='${libname}${release}${shared_ext}$major'
15901
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15902
postinstall_cmds='chmod 555 $lib'
15909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15910
soname_spec='${libname}${release}${shared_ext}$major'
15911
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15912
shlibpath_var=LD_LIBRARY_PATH
15913
shlibpath_overrides_runpath=no
15914
hardcode_into_libs=yes
15917
irix5* | irix6* | nonstopux*)
15919
nonstopux*) version_type=nonstopux ;;
15921
if test "$lt_cv_prog_gnu_ld" = yes; then
15929
soname_spec='${libname}${release}${shared_ext}$major'
15930
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15932
irix5* | nonstopux*)
15933
libsuff= shlibsuff=
15936
case $LD in # libtool.m4 will add one of these switches to LD
15937
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15938
libsuff= shlibsuff= libmagic=32-bit;;
15939
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15940
libsuff=32 shlibsuff=N32 libmagic=N32;;
15941
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15942
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15943
*) libsuff= shlibsuff= libmagic=never-match;;
15947
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15948
shlibpath_overrides_runpath=no
15949
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15950
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15951
hardcode_into_libs=yes
15954
# No shared lib support for Linux oldld, aout, or coff.
15955
linux*oldld* | linux*aout* | linux*coff*)
15959
# This must be Linux ELF.
15960
linux* | k*bsd*-gnu)
15964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965
soname_spec='${libname}${release}${shared_ext}$major'
15966
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15967
shlibpath_var=LD_LIBRARY_PATH
15968
shlibpath_overrides_runpath=no
15969
# This implies no fast_install, which is unacceptable.
15970
# Some rework will be needed to allow for fast_install
15971
# before this can be enabled.
15972
hardcode_into_libs=yes
15974
# Append ld.so.conf contents to the search path
15975
if test -f /etc/ld.so.conf; then
15976
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;/^$/d' | tr '\n' ' '`
15977
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15980
# We used to test for /lib/ld.so.1 and disable shared libraries on
15981
# powerpc, because MkLinux only supported shared libraries with the
15982
# GNU dynamic linker. Since this was broken with cross compilers,
15983
# most powerpc-linux boxes support dynamic linking these days and
15984
# people can always --disable-shared, the test was removed, and we
15985
# assume the GNU/Linux dynamic linker is in use.
15986
dynamic_linker='GNU/Linux ld.so'
15993
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15995
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15996
dynamic_linker='NetBSD (a.out) ld.so'
15998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15999
soname_spec='${libname}${release}${shared_ext}$major'
16000
dynamic_linker='NetBSD ld.elf_so'
16002
shlibpath_var=LD_LIBRARY_PATH
16003
shlibpath_overrides_runpath=yes
16004
hardcode_into_libs=yes
16009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010
shlibpath_var=LD_LIBRARY_PATH
16011
shlibpath_overrides_runpath=yes
16018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019
soname_spec='${libname}${release}${shared_ext}$major'
16020
shlibpath_var=LD_LIBRARY_PATH
16021
shlibpath_overrides_runpath=yes
16026
sys_lib_dlsearch_path_spec="/usr/lib"
16028
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16030
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16031
*) need_version=no ;;
16033
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16034
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16035
shlibpath_var=LD_LIBRARY_PATH
16036
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16038
openbsd2.[89] | openbsd2.[89].*)
16039
shlibpath_overrides_runpath=no
16042
shlibpath_overrides_runpath=yes
16046
shlibpath_overrides_runpath=yes
16051
libname_spec='$name'
16054
library_names_spec='$libname${shared_ext} $libname.a'
16055
dynamic_linker='OS/2 ld.exe'
16056
shlibpath_var=LIBPATH
16059
osf3* | osf4* | osf5*)
16063
soname_spec='${libname}${release}${shared_ext}$major'
16064
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065
shlibpath_var=LD_LIBRARY_PATH
16066
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16067
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079
soname_spec='${libname}${release}${shared_ext}$major'
16080
shlibpath_var=LD_LIBRARY_PATH
16081
shlibpath_overrides_runpath=yes
16082
hardcode_into_libs=yes
16083
# ldd complains unless libraries are executable
16084
postinstall_cmds='chmod +x $lib'
16089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16090
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16091
shlibpath_var=LD_LIBRARY_PATH
16092
shlibpath_overrides_runpath=yes
16093
if test "$with_gnu_ld" = yes; then
16101
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102
soname_spec='${libname}${release}${shared_ext}$major'
16103
shlibpath_var=LD_LIBRARY_PATH
16104
case $host_vendor in
16106
shlibpath_overrides_runpath=no
16108
export_dynamic_flag_spec='${wl}-Blargedynsym'
16109
runpath_var=LD_RUN_PATH
16117
shlibpath_overrides_runpath=no
16118
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16124
if test -d /usr/nec ;then
16126
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16127
soname_spec='$libname${shared_ext}.$major'
16128
shlibpath_var=LD_LIBRARY_PATH
16132
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16133
version_type=freebsd-elf
16136
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16137
soname_spec='${libname}${release}${shared_ext}$major'
16138
shlibpath_var=LD_LIBRARY_PATH
16139
hardcode_into_libs=yes
16140
if test "$with_gnu_ld" = yes; then
16141
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16142
shlibpath_overrides_runpath=no
16144
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16145
shlibpath_overrides_runpath=yes
16148
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16152
sys_lib_dlsearch_path_spec='/usr/lib'
16157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158
soname_spec='${libname}${release}${shared_ext}$major'
16159
shlibpath_var=LD_LIBRARY_PATH
16166
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16167
echo "${ECHO_T}$dynamic_linker" >&6; }
16168
test "$dynamic_linker" = no && can_build_shared=no
16170
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16171
if test "$GCC" = yes; then
16172
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16175
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16176
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16177
hardcode_action_F77=
16178
if test -n "$hardcode_libdir_flag_spec_F77" || \
16179
test -n "$runpath_var_F77" || \
16180
test "X$hardcode_automatic_F77" = "Xyes" ; then
16182
# We can hardcode non-existant directories.
16183
if test "$hardcode_direct_F77" != no &&
16184
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16185
# have to relink, otherwise we might link with an installed library
16186
# when we should be linking with a yet-to-be-installed one
16187
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16188
test "$hardcode_minus_L_F77" != no; then
16189
# Linking always hardcodes the temporary library directory.
16190
hardcode_action_F77=relink
16192
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16193
hardcode_action_F77=immediate
16196
# We cannot hardcode anything, or else we can only hardcode existing
16198
hardcode_action_F77=unsupported
16200
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16201
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16203
if test "$hardcode_action_F77" = relink; then
16204
# Fast installation is not supported
16205
enable_fast_install=no
16206
elif test "$shlibpath_overrides_runpath" = yes ||
16207
test "$enable_shared" = no; then
16208
# Fast installation is not necessary
16209
enable_fast_install=needless
16213
# The else clause should only fire when bootstrapping the
16214
# libtool distribution, otherwise you forgot to ship ltmain.sh
16215
# with your package, and you will get complaints that there are
16216
# no rules to generate ltmain.sh.
16217
if test -f "$ltmain"; then
16218
# See if we are running on zsh, and set the options which allow our commands through
16219
# without removal of \ escapes.
16220
if test -n "${ZSH_VERSION+set}" ; then
16221
setopt NO_GLOB_SUBST
16223
# Now quote all the things that may contain metacharacters while being
16224
# careful not to overquote the AC_SUBSTed values. We take copies of the
16225
# variables and quote the copies for generation of the libtool script.
16226
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16228
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16229
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16230
deplibs_check_method reload_flag reload_cmds need_locks \
16231
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16232
lt_cv_sys_global_symbol_to_c_name_address \
16233
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16234
old_postinstall_cmds old_postuninstall_cmds \
16238
lt_prog_compiler_wl_F77 \
16239
lt_prog_compiler_pic_F77 \
16240
lt_prog_compiler_static_F77 \
16241
lt_prog_compiler_no_builtin_flag_F77 \
16242
export_dynamic_flag_spec_F77 \
16243
thread_safe_flag_spec_F77 \
16244
whole_archive_flag_spec_F77 \
16245
enable_shared_with_static_runtimes_F77 \
16246
old_archive_cmds_F77 \
16247
old_archive_from_new_cmds_F77 \
16248
predep_objects_F77 \
16249
postdep_objects_F77 \
16252
compiler_lib_search_path_F77 \
16254
archive_expsym_cmds_F77 \
16255
postinstall_cmds_F77 \
16256
postuninstall_cmds_F77 \
16257
old_archive_from_expsyms_cmds_F77 \
16258
allow_undefined_flag_F77 \
16259
no_undefined_flag_F77 \
16260
export_symbols_cmds_F77 \
16261
hardcode_libdir_flag_spec_F77 \
16262
hardcode_libdir_flag_spec_ld_F77 \
16263
hardcode_libdir_separator_F77 \
16264
hardcode_automatic_F77 \
16266
module_expsym_cmds_F77 \
16267
lt_cv_prog_compiler_c_o_F77 \
16268
fix_srcfile_path_F77 \
16269
exclude_expsyms_F77 \
16270
include_expsyms_F77; do
16273
old_archive_cmds_F77 | \
16274
old_archive_from_new_cmds_F77 | \
16275
archive_cmds_F77 | \
16276
archive_expsym_cmds_F77 | \
16277
module_cmds_F77 | \
16278
module_expsym_cmds_F77 | \
16279
old_archive_from_expsyms_cmds_F77 | \
16280
export_symbols_cmds_F77 | \
16281
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16282
postinstall_cmds | postuninstall_cmds | \
16283
old_postinstall_cmds | old_postuninstall_cmds | \
16284
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16285
# Double-quote double-evaled strings.
16286
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16289
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16295
*'\$0 --fallback-echo"')
16296
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16302
cat <<__EOF__ >> "$cfgfile"
16303
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16305
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16307
# Shell to use when invoking shell scripts.
16310
# Whether or not to build shared libraries.
16311
build_libtool_libs=$enable_shared
16313
# Whether or not to build static libraries.
16314
build_old_libs=$enable_static
16316
# Whether or not to add -lc for building shared libraries.
16317
build_libtool_need_lc=$archive_cmds_need_lc_F77
16319
# Whether or not to disallow shared libs when runtime libs are static
16320
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16322
# Whether or not to optimize for fast installation.
16323
fast_install=$enable_fast_install
16326
host_alias=$host_alias
16330
# The build system.
16331
build_alias=$build_alias
16335
# An echo program that does not interpret backslashes.
16340
AR_FLAGS=$lt_AR_FLAGS
16345
# LTCC compiler flags.
16346
LTCFLAGS=$lt_LTCFLAGS
16348
# A language-specific compiler.
16349
CC=$lt_compiler_F77
16351
# Is the compiler the GNU C compiler?
16357
# The linker used to build libraries.
16360
# Whether we need hard or soft links.
16363
# A BSD-compatible nm program.
16366
# A symbol stripping program
16369
# Used to examine libraries when file_magic_cmd begins "file"
16370
MAGIC_CMD=$MAGIC_CMD
16372
# Used on cygwin: DLL creation program.
16375
# Used on cygwin: object dumper.
16378
# Used on cygwin: assembler.
16381
# The name of the directory that contains temporary libtool files.
16384
# How to create reloadable object files.
16385
reload_flag=$lt_reload_flag
16386
reload_cmds=$lt_reload_cmds
16388
# How to pass a linker flag through the compiler.
16389
wl=$lt_lt_prog_compiler_wl_F77
16391
# Object file suffix (normally "o").
16392
objext="$ac_objext"
16394
# Old archive suffix (normally "a").
16397
# Shared library suffix (normally ".so").
16398
shrext_cmds='$shrext_cmds'
16400
# Executable file suffix (normally "").
16403
# Additional compiler flags for building library objects.
16404
pic_flag=$lt_lt_prog_compiler_pic_F77
16407
# What is the maximum length of a command?
16408
max_cmd_len=$lt_cv_sys_max_cmd_len
16410
# Does compiler simultaneously support -c and -o options?
16411
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16413
# Must we lock files when doing compilation?
16414
need_locks=$lt_need_locks
16416
# Do we need the lib prefix for modules?
16417
need_lib_prefix=$need_lib_prefix
16419
# Do we need a version for libraries?
16420
need_version=$need_version
16422
# Whether dlopen is supported.
16423
dlopen_support=$enable_dlopen
16425
# Whether dlopen of programs is supported.
16426
dlopen_self=$enable_dlopen_self
16428
# Whether dlopen of statically linked programs is supported.
16429
dlopen_self_static=$enable_dlopen_self_static
16431
# Compiler flag to prevent dynamic linking.
16432
link_static_flag=$lt_lt_prog_compiler_static_F77
16434
# Compiler flag to turn off builtin functions.
16435
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16437
# Compiler flag to allow reflexive dlopens.
16438
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16440
# Compiler flag to generate shared objects directly from archives.
16441
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16443
# Compiler flag to generate thread-safe objects.
16444
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16446
# Library versioning type.
16447
version_type=$version_type
16449
# Format of library name prefix.
16450
libname_spec=$lt_libname_spec
16452
# List of archive names. First name is the real one, the rest are links.
16453
# The last name is the one that the linker finds with -lNAME.
16454
library_names_spec=$lt_library_names_spec
16456
# The coded name of the library, if different from the real name.
16457
soname_spec=$lt_soname_spec
16459
# Commands used to build and install an old-style archive.
16461
old_archive_cmds=$lt_old_archive_cmds_F77
16462
old_postinstall_cmds=$lt_old_postinstall_cmds
16463
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16465
# Create an old-style archive from a shared archive.
16466
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16468
# Create a temporary old-style archive to link instead of a shared archive.
16469
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16471
# Commands used to build and install a shared archive.
16472
archive_cmds=$lt_archive_cmds_F77
16473
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16474
postinstall_cmds=$lt_postinstall_cmds
16475
postuninstall_cmds=$lt_postuninstall_cmds
16477
# Commands used to build a loadable module (assumed same as above if empty)
16478
module_cmds=$lt_module_cmds_F77
16479
module_expsym_cmds=$lt_module_expsym_cmds_F77
16481
# Commands to strip libraries.
16482
old_striplib=$lt_old_striplib
16483
striplib=$lt_striplib
16485
# Dependencies to place before the objects being linked to create a
16487
predep_objects=$lt_predep_objects_F77
16489
# Dependencies to place after the objects being linked to create a
16491
postdep_objects=$lt_postdep_objects_F77
16493
# Dependencies to place before the objects being linked to create a
16495
predeps=$lt_predeps_F77
16497
# Dependencies to place after the objects being linked to create a
16499
postdeps=$lt_postdeps_F77
16501
# The library search path used internally by the compiler when linking
16502
# a shared library.
16503
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16505
# Method to check whether dependent libraries are shared objects.
16506
deplibs_check_method=$lt_deplibs_check_method
16508
# Command to use when deplibs_check_method == file_magic.
16509
file_magic_cmd=$lt_file_magic_cmd
16511
# Flag that allows shared libraries with undefined symbols to be built.
16512
allow_undefined_flag=$lt_allow_undefined_flag_F77
16514
# Flag that forces no undefined symbols.
16515
no_undefined_flag=$lt_no_undefined_flag_F77
16517
# Commands used to finish a libtool library installation in a directory.
16518
finish_cmds=$lt_finish_cmds
16520
# Same as above, but a single script fragment to be evaled but not shown.
16521
finish_eval=$lt_finish_eval
16523
# Take the output of nm and produce a listing of raw symbols and C names.
16524
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16526
# Transform the output of nm in a proper C declaration
16527
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16529
# Transform the output of nm in a C name address pair
16530
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16532
# This is the shared library runtime path variable.
16533
runpath_var=$runpath_var
16535
# This is the shared library path variable.
16536
shlibpath_var=$shlibpath_var
16538
# Is shlibpath searched before the hard-coded library search path?
16539
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16541
# How to hardcode a shared library path into an executable.
16542
hardcode_action=$hardcode_action_F77
16544
# Whether we should hardcode library paths into libraries.
16545
hardcode_into_libs=$hardcode_into_libs
16547
# Flag to hardcode \$libdir into a binary during linking.
16548
# This must work even if \$libdir does not exist.
16549
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16551
# If ld is used when linking, flag to hardcode \$libdir into
16552
# a binary during linking. This must work even if \$libdir does
16554
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16556
# Whether we need a single -rpath flag with a separated argument.
16557
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16559
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16560
# resulting binary.
16561
hardcode_direct=$hardcode_direct_F77
16563
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16564
# resulting binary.
16565
hardcode_minus_L=$hardcode_minus_L_F77
16567
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16568
# the resulting binary.
16569
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16571
# Set to yes if building a shared library automatically hardcodes DIR into the library
16572
# and all subsequent libraries and executables linked against it.
16573
hardcode_automatic=$hardcode_automatic_F77
16575
# Variables whose values should be saved in libtool wrapper scripts and
16576
# restored at relink time.
16577
variables_saved_for_relink="$variables_saved_for_relink"
16579
# Whether libtool must link a program against all its dependency libraries.
16580
link_all_deplibs=$link_all_deplibs_F77
16582
# Compile-time system search path for libraries
16583
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16585
# Run-time system search path for libraries
16586
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16588
# Fix the shell variable \$srcfile for the compiler.
16589
fix_srcfile_path=$lt_fix_srcfile_path
16591
# Set to yes if exported symbols are required.
16592
always_export_symbols=$always_export_symbols_F77
16594
# The commands to list exported symbols.
16595
export_symbols_cmds=$lt_export_symbols_cmds_F77
16597
# The commands to extract the exported symbol list from a shared archive.
16598
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16600
# Symbols that should not be listed in the preloaded symbols.
16601
exclude_expsyms=$lt_exclude_expsyms_F77
16603
# Symbols that must always be exported.
16604
include_expsyms=$lt_include_expsyms_F77
16606
# ### END LIBTOOL TAG CONFIG: $tagname
16612
# If there is no Makefile yet, we rely on a make rule to execute
16613
# `config.status --recheck' to rerun these tests and create the
16614
# libtool script then.
16615
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16616
if test -f "$ltmain_in"; then
16617
test -f Makefile && make "$ltmain"
16623
ac_cpp='$CPP $CPPFLAGS'
16624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16636
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16639
# Source file extension for Java test sources.
16642
# Object file extension for compiled Java test sources.
16646
# Code to be used in simple compile tests
16647
lt_simple_compile_test_code="class foo {}"
16649
# Code to be used in simple link tests
16650
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16652
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16654
# If no C compiler was specified, use CC.
16657
# If no C compiler flags were specified, use CFLAGS.
16658
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16660
# Allow CC to be a program name with arguments.
16664
# save warnings/boilerplate of simple test code
16665
ac_outfile=conftest.$ac_objext
16666
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16667
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16668
_lt_compiler_boilerplate=`cat conftest.err`
16671
ac_outfile=conftest.$ac_objext
16672
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16673
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16674
_lt_linker_boilerplate=`cat conftest.err`
16678
# Allow CC to be a program name with arguments.
16683
for cc_temp in $compiler""; do
16685
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16686
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16691
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16694
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16695
archive_cmds_need_lc_GCJ=no
16697
old_archive_cmds_GCJ=$old_archive_cmds
16700
## There is no encapsulation within the following macros, do not change
16701
## the running order or otherwise move them around unless you know exactly
16702
## what you are doing...
16704
lt_prog_compiler_no_builtin_flag_GCJ=
16706
if test "$GCC" = yes; then
16707
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16710
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16711
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16712
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16713
echo $ECHO_N "(cached) $ECHO_C" >&6
16715
lt_cv_prog_compiler_rtti_exceptions=no
16716
ac_outfile=conftest.$ac_objext
16717
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16718
lt_compiler_flag="-fno-rtti -fno-exceptions"
16719
# Insert the option either (1) after the last *FLAGS variable, or
16720
# (2) before a word containing "conftest.", or (3) at the end.
16721
# Note that $ac_compile itself does not contain backslashes and begins
16722
# with a dollar sign (not a hyphen), so the echo should work correctly.
16723
# The option is referenced via a variable to avoid confusing sed.
16724
lt_compile=`echo "$ac_compile" | $SED \
16725
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16726
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16727
-e 's:$: $lt_compiler_flag:'`
16728
(eval echo "\"\$as_me:16728: $lt_compile\"" >&5)
16729
(eval "$lt_compile" 2>conftest.err)
16731
cat conftest.err >&5
16732
echo "$as_me:16732: \$? = $ac_status" >&5
16733
if (exit $ac_status) && test -s "$ac_outfile"; then
16734
# The compiler can only warn and ignore the option if not recognized
16735
# So say no if there are warnings other than the usual output.
16736
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16737
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16738
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16739
lt_cv_prog_compiler_rtti_exceptions=yes
16745
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16746
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16748
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16749
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16756
lt_prog_compiler_wl_GCJ=
16757
lt_prog_compiler_pic_GCJ=
16758
lt_prog_compiler_static_GCJ=
16760
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16761
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16763
if test "$GCC" = yes; then
16764
lt_prog_compiler_wl_GCJ='-Wl,'
16765
lt_prog_compiler_static_GCJ='-static'
16769
# All AIX code is PIC.
16770
if test "$host_cpu" = ia64; then
16771
# AIX 5 now supports IA64 processor
16772
lt_prog_compiler_static_GCJ='-Bstatic'
16777
# FIXME: we need at least 68020 code to build shared libraries, but
16778
# adding the `-m68020' flag to GCC prevents building anything better,
16780
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16783
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16784
# PIC is the default for these OSes.
16787
mingw* | cygwin* | pw32* | os2*)
16788
# This hack is so that the source file can tell whether it is being
16789
# built for inclusion in a dll (and should export symbols for example).
16790
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16791
# (--disable-auto-import) libraries
16792
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16795
darwin* | rhapsody*)
16796
# PIC is the default on this platform
16797
# Common symbols not allowed in MH_DYLIB files
16798
lt_prog_compiler_pic_GCJ='-fno-common'
16802
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16803
# Instead, we relocate shared libraries at runtime.
16807
# Just because we use GCC doesn't mean we suddenly get shared libraries
16808
# on systems that don't support them.
16809
lt_prog_compiler_can_build_shared_GCJ=no
16814
if test -d /usr/nec; then
16815
lt_prog_compiler_pic_GCJ=-Kconform_pic
16820
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16821
# not for PA HP-UX.
16827
lt_prog_compiler_pic_GCJ='-fPIC'
16833
lt_prog_compiler_pic_GCJ='-fPIC'
16837
# PORTME Check for flag to pass linker flags through the system compiler.
16840
lt_prog_compiler_wl_GCJ='-Wl,'
16841
if test "$host_cpu" = ia64; then
16842
# AIX 5 now supports IA64 processor
16843
lt_prog_compiler_static_GCJ='-Bstatic'
16845
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16849
# PIC is the default on this platform
16850
# Common symbols not allowed in MH_DYLIB files
16851
case $cc_basename in
16853
lt_prog_compiler_pic_GCJ='-qnocommon'
16854
lt_prog_compiler_wl_GCJ='-Wl,'
16859
mingw* | cygwin* | pw32* | os2*)
16860
# This hack is so that the source file can tell whether it is being
16861
# built for inclusion in a dll (and should export symbols for example).
16862
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16865
hpux9* | hpux10* | hpux11*)
16866
lt_prog_compiler_wl_GCJ='-Wl,'
16867
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16868
# not for PA HP-UX.
16874
lt_prog_compiler_pic_GCJ='+Z'
16877
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16878
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16881
irix5* | irix6* | nonstopux*)
16882
lt_prog_compiler_wl_GCJ='-Wl,'
16883
# PIC (with -KPIC) is the default.
16884
lt_prog_compiler_static_GCJ='-non_shared'
16888
lt_prog_compiler_pic_GCJ='-KPIC'
16889
lt_prog_compiler_static_GCJ='-Bstatic'
16892
linux* | k*bsd*-gnu)
16893
case $cc_basename in
16895
lt_prog_compiler_wl_GCJ='-Wl,'
16896
lt_prog_compiler_pic_GCJ='-KPIC'
16897
lt_prog_compiler_static_GCJ='-static'
16899
pgcc* | pgf77* | pgf90* | pgf95*)
16900
# Portland Group compilers (*not* the Pentium gcc compiler,
16901
# which looks to be a dead project)
16902
lt_prog_compiler_wl_GCJ='-Wl,'
16903
lt_prog_compiler_pic_GCJ='-fpic'
16904
lt_prog_compiler_static_GCJ='-Bstatic'
16907
lt_prog_compiler_wl_GCJ='-Wl,'
16908
# All Alpha code is PIC.
16909
lt_prog_compiler_static_GCJ='-non_shared'
16912
lt_prog_compiler_wl_GCJ='-lopt='
16915
case `$CC -V 2>&1 | sed 5q` in
16918
lt_prog_compiler_pic_GCJ='-KPIC'
16919
lt_prog_compiler_static_GCJ='-Bstatic'
16920
lt_prog_compiler_wl_GCJ='-Wl,'
16923
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16924
lt_prog_compiler_pic_GCJ='-KPIC'
16925
lt_prog_compiler_static_GCJ='-Bstatic'
16926
lt_prog_compiler_wl_GCJ=''
16933
osf3* | osf4* | osf5*)
16934
lt_prog_compiler_wl_GCJ='-Wl,'
16935
# All OSF/1 code is PIC.
16936
lt_prog_compiler_static_GCJ='-non_shared'
16940
lt_prog_compiler_static_GCJ='-non_shared'
16944
lt_prog_compiler_pic_GCJ='-KPIC'
16945
lt_prog_compiler_static_GCJ='-Bstatic'
16946
case $cc_basename in
16947
f77* | f90* | f95*)
16948
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16950
lt_prog_compiler_wl_GCJ='-Wl,';;
16955
lt_prog_compiler_wl_GCJ='-Qoption ld '
16956
lt_prog_compiler_pic_GCJ='-PIC'
16957
lt_prog_compiler_static_GCJ='-Bstatic'
16960
sysv4 | sysv4.2uw2* | sysv4.3*)
16961
lt_prog_compiler_wl_GCJ='-Wl,'
16962
lt_prog_compiler_pic_GCJ='-KPIC'
16963
lt_prog_compiler_static_GCJ='-Bstatic'
16967
if test -d /usr/nec ;then
16968
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16969
lt_prog_compiler_static_GCJ='-Bstatic'
16973
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16974
lt_prog_compiler_wl_GCJ='-Wl,'
16975
lt_prog_compiler_pic_GCJ='-KPIC'
16976
lt_prog_compiler_static_GCJ='-Bstatic'
16980
lt_prog_compiler_wl_GCJ='-Wl,'
16981
lt_prog_compiler_can_build_shared_GCJ=no
16985
lt_prog_compiler_pic_GCJ='-pic'
16986
lt_prog_compiler_static_GCJ='-Bstatic'
16990
lt_prog_compiler_can_build_shared_GCJ=no
16995
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16996
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16999
# Check to make sure the PIC flag actually works.
17001
if test -n "$lt_prog_compiler_pic_GCJ"; then
17003
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17004
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17005
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17006
echo $ECHO_N "(cached) $ECHO_C" >&6
17008
lt_prog_compiler_pic_works_GCJ=no
17009
ac_outfile=conftest.$ac_objext
17010
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17011
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17012
# Insert the option either (1) after the last *FLAGS variable, or
17013
# (2) before a word containing "conftest.", or (3) at the end.
17014
# Note that $ac_compile itself does not contain backslashes and begins
17015
# with a dollar sign (not a hyphen), so the echo should work correctly.
17016
# The option is referenced via a variable to avoid confusing sed.
17017
lt_compile=`echo "$ac_compile" | $SED \
17018
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17019
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17020
-e 's:$: $lt_compiler_flag:'`
17021
(eval echo "\"\$as_me:17021: $lt_compile\"" >&5)
17022
(eval "$lt_compile" 2>conftest.err)
17024
cat conftest.err >&5
17025
echo "$as_me:17025: \$? = $ac_status" >&5
17026
if (exit $ac_status) && test -s "$ac_outfile"; then
17027
# The compiler can only warn and ignore the option if not recognized
17028
# So say no if there are warnings other than the usual output.
17029
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17030
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17031
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17032
lt_prog_compiler_pic_works_GCJ=yes
17038
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17039
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17041
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17042
case $lt_prog_compiler_pic_GCJ in
17044
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17047
lt_prog_compiler_pic_GCJ=
17048
lt_prog_compiler_can_build_shared_GCJ=no
17053
# For platforms which do not support PIC, -DPIC is meaningless:
17055
lt_prog_compiler_pic_GCJ=
17058
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17063
# Check to make sure the static flag actually works.
17065
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17066
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17067
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17068
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17069
echo $ECHO_N "(cached) $ECHO_C" >&6
17071
lt_prog_compiler_static_works_GCJ=no
17072
save_LDFLAGS="$LDFLAGS"
17073
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17074
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17075
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17076
# The linker can only warn and ignore the option if not recognized
17077
# So say no if there are warnings
17078
if test -s conftest.err; then
17079
# Append any errors to the config.log.
17080
cat conftest.err 1>&5
17081
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17082
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17083
if diff conftest.exp conftest.er2 >/dev/null; then
17084
lt_prog_compiler_static_works_GCJ=yes
17087
lt_prog_compiler_static_works_GCJ=yes
17091
LDFLAGS="$save_LDFLAGS"
17094
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17095
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17097
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17100
lt_prog_compiler_static_GCJ=
17104
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17105
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17106
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17107
echo $ECHO_N "(cached) $ECHO_C" >&6
17109
lt_cv_prog_compiler_c_o_GCJ=no
17110
$rm -r conftest 2>/dev/null
17114
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17116
lt_compiler_flag="-o out/conftest2.$ac_objext"
17117
# Insert the option either (1) after the last *FLAGS variable, or
17118
# (2) before a word containing "conftest.", or (3) at the end.
17119
# Note that $ac_compile itself does not contain backslashes and begins
17120
# with a dollar sign (not a hyphen), so the echo should work correctly.
17121
lt_compile=`echo "$ac_compile" | $SED \
17122
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17123
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17124
-e 's:$: $lt_compiler_flag:'`
17125
(eval echo "\"\$as_me:17125: $lt_compile\"" >&5)
17126
(eval "$lt_compile" 2>out/conftest.err)
17128
cat out/conftest.err >&5
17129
echo "$as_me:17129: \$? = $ac_status" >&5
17130
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17132
# The compiler can only warn and ignore the option if not recognized
17133
# So say no if there are warnings
17134
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17135
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17136
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17137
lt_cv_prog_compiler_c_o_GCJ=yes
17142
# SGI C++ compiler will create directory out/ii_files/ for
17143
# template instantiation
17144
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17145
$rm out/* && rmdir out
17151
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17152
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17155
hard_links="nottested"
17156
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17157
# do not overwrite the value of need_locks provided by the user
17158
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17159
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17162
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17164
ln conftest.a conftest.b 2>&5 || hard_links=no
17165
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17166
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17167
echo "${ECHO_T}$hard_links" >&6; }
17168
if test "$hard_links" = no; then
17169
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17170
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17177
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17178
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17181
allow_undefined_flag_GCJ=
17182
enable_shared_with_static_runtimes_GCJ=no
17184
archive_expsym_cmds_GCJ=
17185
old_archive_From_new_cmds_GCJ=
17186
old_archive_from_expsyms_cmds_GCJ=
17187
export_dynamic_flag_spec_GCJ=
17188
whole_archive_flag_spec_GCJ=
17189
thread_safe_flag_spec_GCJ=
17190
hardcode_libdir_flag_spec_GCJ=
17191
hardcode_libdir_flag_spec_ld_GCJ=
17192
hardcode_libdir_separator_GCJ=
17193
hardcode_direct_GCJ=no
17194
hardcode_minus_L_GCJ=no
17195
hardcode_shlibpath_var_GCJ=unsupported
17196
link_all_deplibs_GCJ=unknown
17197
hardcode_automatic_GCJ=no
17199
module_expsym_cmds_GCJ=
17200
always_export_symbols_GCJ=no
17201
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17202
# include_expsyms should be a list of space-separated symbols to be *always*
17203
# included in the symbol list
17204
include_expsyms_GCJ=
17205
# exclude_expsyms can be an extended regexp of symbols to exclude
17206
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17207
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17208
# as well as any symbol that contains `d'.
17209
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17210
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17211
# platforms (ab)use it in PIC code, but their linkers get confused if
17212
# the symbol is explicitly referenced. Since portable code cannot
17213
# rely on this symbol name, it's probably fine to never include it in
17214
# preloaded symbol tables.
17215
extract_expsyms_cmds=
17216
# Just being paranoid about ensuring that cc_basename is set.
17217
for cc_temp in $compiler""; do
17219
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17220
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17225
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17228
cygwin* | mingw* | pw32*)
17229
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17230
# When not using gcc, we currently assume that we are using
17231
# Microsoft Visual C++.
17232
if test "$GCC" != yes; then
17237
# we just hope/assume this is gcc and not c89 (= MSVC++)
17246
if test "$with_gnu_ld" = yes; then
17247
# If archive_cmds runs LD, not CC, wlarc should be empty
17250
# Set some defaults for GNU ld with shared library support. These
17251
# are reset later if shared libraries are not supported. Putting them
17252
# here allows them to be overridden if necessary.
17253
runpath_var=LD_RUN_PATH
17254
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17255
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17256
# ancient GNU ld didn't support --whole-archive et. al.
17257
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17258
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17260
whole_archive_flag_spec_GCJ=
17262
supports_anon_versioning=no
17263
case `$LD -v 2>/dev/null` in
17264
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17265
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17266
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17267
*\ 2.11.*) ;; # other 2.11 versions
17268
*) supports_anon_versioning=yes ;;
17271
# See if GNU ld supports shared libraries.
17273
aix3* | aix4* | aix5*)
17274
# On AIX/PPC, the GNU linker is very broken
17275
if test "$host_cpu" != ia64; then
17279
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17280
*** to be unable to reliably create shared libraries on AIX.
17281
*** Therefore, libtool is disabling shared libraries support. If you
17282
*** really care for shared libraries, you may want to modify your PATH
17283
*** so that a non-GNU linker is found, and then restart.
17290
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17291
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17292
hardcode_minus_L_GCJ=yes
17294
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17295
# that the semantics of dynamic libraries on AmigaOS, at least up
17296
# to version 4, is to share data among multiple programs linked
17297
# with the same dynamic library. Since this doesn't match the
17298
# behavior of shared libraries on other platforms, we can't use
17304
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17305
allow_undefined_flag_GCJ=unsupported
17306
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17307
# support --undefined. This deserves some investigation. FIXME
17308
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17314
cygwin* | mingw* | pw32*)
17315
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17316
# as there is no search path for DLLs.
17317
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17318
allow_undefined_flag_GCJ=unsupported
17319
always_export_symbols_GCJ=no
17320
enable_shared_with_static_runtimes_GCJ=yes
17321
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17323
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17324
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17325
# If the export-symbols file already is a .def file (1st line
17326
# is EXPORTS), use it as is; otherwise, prepend...
17327
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17328
cp $export_symbols $output_objdir/$soname.def;
17330
echo EXPORTS > $output_objdir/$soname.def;
17331
cat $export_symbols >> $output_objdir/$soname.def;
17333
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17340
hardcode_direct_GCJ=no
17341
hardcode_shlibpath_var_GCJ=no
17342
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17343
export_dynamic_flag_spec_GCJ='${wl}-E'
17344
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17345
# Instead, shared libraries are loaded at an image base (0x10000000 by
17346
# default) and relocated if they conflict, which is a slow very memory
17347
# consuming and fragmenting process. To avoid this, we pick a random,
17348
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17349
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17350
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17351
archive_expsym_cmds_GCJ='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'
17354
gnu* | linux* | k*bsd*-gnu)
17355
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17357
case $cc_basename,$host_cpu in
17358
pgcc*) # Portland Group C compiler
17359
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17360
tmp_addflag=' $pic_flag'
17362
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17363
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17364
tmp_addflag=' $pic_flag -Mnomain' ;;
17365
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17366
tmp_addflag=' -i_dynamic' ;;
17367
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17368
tmp_addflag=' -i_dynamic -nofor_main' ;;
17369
ifc* | ifort*) # Intel Fortran compiler
17370
tmp_addflag=' -nofor_main' ;;
17372
case `$CC -V 2>&1 | sed 5q` in
17373
*Sun\ C*) # Sun C 5.9
17374
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17375
tmp_sharedflag='-G' ;;
17376
*Sun\ F*) # Sun Fortran 8.3
17377
tmp_sharedflag='-G' ;;
17379
tmp_sharedflag='-shared' ;;
17381
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17383
if test $supports_anon_versioning = yes; then
17384
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17385
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17386
$echo "local: *; };" >> $output_objdir/$libname.ver~
17387
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17395
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17396
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17399
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17400
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17405
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17409
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17410
*** create shared libraries on Solaris systems. Therefore, libtool
17411
*** is disabling shared libraries support. We urge you to upgrade GNU
17412
*** binutils to release 2.9.1 or newer. Another option is to modify
17413
*** your PATH or compiler configuration so that the native linker is
17414
*** used, and then restart.
17417
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17418
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17419
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17425
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17426
case `$LD -v 2>&1` in
17427
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17431
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17432
*** reliably create shared libraries on SCO systems. Therefore, libtool
17433
*** is disabling shared libraries support. We urge you to upgrade GNU
17434
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17435
*** your PATH or compiler configuration so that the native linker is
17436
*** used, and then restart.
17441
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17442
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17443
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17444
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17453
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17455
hardcode_direct_GCJ=yes
17456
hardcode_shlibpath_var_GCJ=no
17460
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17461
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17462
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17469
if test "$ld_shlibs_GCJ" = no; then
17471
hardcode_libdir_flag_spec_GCJ=
17472
export_dynamic_flag_spec_GCJ=
17473
whole_archive_flag_spec_GCJ=
17476
# PORTME fill in a description of your system's linker (not GNU ld)
17479
allow_undefined_flag_GCJ=unsupported
17480
always_export_symbols_GCJ=yes
17481
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17482
# Note: this linker hardcodes the directories in LIBPATH if there
17483
# are no directories specified by -L.
17484
hardcode_minus_L_GCJ=yes
17485
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17486
# Neither direct hardcoding nor static linking is supported with a
17488
hardcode_direct_GCJ=unsupported
17493
if test "$host_cpu" = ia64; then
17494
# On IA64, the linker does run time linking by default, so we don't
17495
# have to do anything special.
17496
aix_use_runtimelinking=no
17497
exp_sym_flag='-Bexport'
17500
# If we're using GNU nm, then we don't want the "-C" option.
17501
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17502
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17503
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17505
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17507
aix_use_runtimelinking=no
17509
# Test if we are trying to use run time linking or normal
17510
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17511
# need to do runtime linking.
17512
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17513
for ld_flag in $LDFLAGS; do
17514
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17515
aix_use_runtimelinking=yes
17522
exp_sym_flag='-bexport'
17523
no_entry_flag='-bnoentry'
17526
# When large executables or shared objects are built, AIX ld can
17527
# have problems creating the table of contents. If linking a library
17528
# or program results in "error TOC overflow" add -mminimal-toc to
17529
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17530
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17532
archive_cmds_GCJ=''
17533
hardcode_direct_GCJ=yes
17534
hardcode_libdir_separator_GCJ=':'
17535
link_all_deplibs_GCJ=yes
17537
if test "$GCC" = yes; then
17538
case $host_os in aix4.[012]|aix4.[012].*)
17539
# We only want to do this on AIX 4.2 and lower, the check
17540
# below for broken collect2 doesn't work under 4.3+
17541
collect2name=`${CC} -print-prog-name=collect2`
17542
if test -f "$collect2name" && \
17543
strings "$collect2name" | grep resolve_lib_name >/dev/null
17545
# We have reworked collect2
17548
# We have old collect2
17549
hardcode_direct_GCJ=unsupported
17550
# It fails to find uninstalled libraries when the uninstalled
17551
# path is not listed in the libpath. Setting hardcode_minus_L
17552
# to unsupported forces relinking
17553
hardcode_minus_L_GCJ=yes
17554
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17555
hardcode_libdir_separator_GCJ=
17559
shared_flag='-shared'
17560
if test "$aix_use_runtimelinking" = yes; then
17561
shared_flag="$shared_flag "'${wl}-G'
17565
if test "$host_cpu" = ia64; then
17566
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17567
# chokes on -Wl,-G. The following line is correct:
17570
if test "$aix_use_runtimelinking" = yes; then
17571
shared_flag='${wl}-G'
17573
shared_flag='${wl}-bM:SRE'
17578
# It seems that -bexpall does not export symbols beginning with
17579
# underscore (_), so it is better to generate a list of symbols to export.
17580
always_export_symbols_GCJ=yes
17581
if test "$aix_use_runtimelinking" = yes; then
17582
# Warning - without using the other runtime loading flags (-brtl),
17583
# -berok will link without error, but may produce a broken library.
17584
allow_undefined_flag_GCJ='-berok'
17585
# Determine the default libpath from the value encoded in an empty executable.
17586
cat >conftest.$ac_ext <<_ACEOF
17589
cat confdefs.h >>conftest.$ac_ext
17590
cat >>conftest.$ac_ext <<_ACEOF
17591
/* end confdefs.h. */
17601
rm -f conftest.$ac_objext conftest$ac_exeext
17602
if { (ac_try="$ac_link"
17603
case "(($ac_try" in
17604
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605
*) ac_try_echo=$ac_try;;
17607
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608
(eval "$ac_link") 2>conftest.er1
17610
grep -v '^ *+' conftest.er1 >conftest.err
17612
cat conftest.err >&5
17613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614
(exit $ac_status); } && {
17615
test -z "$ac_c_werror_flag" ||
17616
test ! -s conftest.err
17617
} && test -s conftest$ac_exeext &&
17618
$as_test_x conftest$ac_exeext; then
17620
lt_aix_libpath_sed='
17621
/Import File Strings/,/^$/ {
17627
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17628
# Check for a 64-bit object if we didn't find anything.
17629
if test -z "$aix_libpath"; then
17630
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17633
echo "$as_me: failed program was:" >&5
17634
sed 's/^/| /' conftest.$ac_ext >&5
17639
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17640
conftest$ac_exeext conftest.$ac_ext
17641
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17643
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17644
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17646
if test "$host_cpu" = ia64; then
17647
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17648
allow_undefined_flag_GCJ="-z nodefs"
17649
archive_expsym_cmds_GCJ="\$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"
17651
# Determine the default libpath from the value encoded in an empty executable.
17652
cat >conftest.$ac_ext <<_ACEOF
17655
cat confdefs.h >>conftest.$ac_ext
17656
cat >>conftest.$ac_ext <<_ACEOF
17657
/* end confdefs.h. */
17667
rm -f conftest.$ac_objext conftest$ac_exeext
17668
if { (ac_try="$ac_link"
17669
case "(($ac_try" in
17670
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671
*) ac_try_echo=$ac_try;;
17673
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674
(eval "$ac_link") 2>conftest.er1
17676
grep -v '^ *+' conftest.er1 >conftest.err
17678
cat conftest.err >&5
17679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680
(exit $ac_status); } && {
17681
test -z "$ac_c_werror_flag" ||
17682
test ! -s conftest.err
17683
} && test -s conftest$ac_exeext &&
17684
$as_test_x conftest$ac_exeext; then
17686
lt_aix_libpath_sed='
17687
/Import File Strings/,/^$/ {
17693
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17694
# Check for a 64-bit object if we didn't find anything.
17695
if test -z "$aix_libpath"; then
17696
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17699
echo "$as_me: failed program was:" >&5
17700
sed 's/^/| /' conftest.$ac_ext >&5
17705
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17706
conftest$ac_exeext conftest.$ac_ext
17707
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17709
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17710
# Warning - without using the other run time loading flags,
17711
# -berok will link without error, but may produce a broken library.
17712
no_undefined_flag_GCJ=' ${wl}-bernotok'
17713
allow_undefined_flag_GCJ=' ${wl}-berok'
17714
# Exported symbols can be pulled into shared objects from archives
17715
whole_archive_flag_spec_GCJ='$convenience'
17716
archive_cmds_need_lc_GCJ=yes
17717
# This is similar to how AIX traditionally builds its shared libraries.
17718
archive_expsym_cmds_GCJ="\$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'
17724
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17725
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17726
hardcode_minus_L_GCJ=yes
17727
# see comment about different semantics on the GNU ld section
17732
export_dynamic_flag_spec_GCJ=-rdynamic
17735
cygwin* | mingw* | pw32*)
17736
# When not using gcc, we currently assume that we are using
17737
# Microsoft Visual C++.
17738
# hardcode_libdir_flag_spec is actually meaningless, as there is
17739
# no search path for DLLs.
17740
hardcode_libdir_flag_spec_GCJ=' '
17741
allow_undefined_flag_GCJ=unsupported
17742
# Tell ltmain to make .lib files, not .a files.
17744
# Tell ltmain to make .dll files, not .so files.
17746
# FIXME: Setting linknames here is a bad hack.
17747
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17748
# The linker will automatically build a .lib file if we build a DLL.
17749
old_archive_From_new_cmds_GCJ='true'
17750
# FIXME: Should let the user specify the lib program.
17751
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17752
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17753
enable_shared_with_static_runtimes_GCJ=yes
17756
darwin* | rhapsody*)
17758
rhapsody* | darwin1.[012])
17759
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17762
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17763
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17765
case ${MACOSX_DEPLOYMENT_TARGET} in
17767
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17770
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17776
archive_cmds_need_lc_GCJ=no
17777
hardcode_direct_GCJ=no
17778
hardcode_automatic_GCJ=yes
17779
hardcode_shlibpath_var_GCJ=unsupported
17780
whole_archive_flag_spec_GCJ=''
17781
link_all_deplibs_GCJ=yes
17782
if test "$GCC" = yes ; then
17783
output_verbose_link_cmd='echo'
17784
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17785
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17786
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17787
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17788
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17790
case $cc_basename in
17792
output_verbose_link_cmd='echo'
17793
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17794
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17795
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17796
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17797
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17807
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17808
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17809
hardcode_shlibpath_var_GCJ=no
17816
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17817
# support. Future versions do this automatically, but an explicit c++rt0.o
17818
# does not break anything, and helps significantly (at the cost of a little
17821
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17822
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17823
hardcode_direct_GCJ=yes
17824
hardcode_shlibpath_var_GCJ=no
17827
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17829
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17830
hardcode_direct_GCJ=yes
17831
hardcode_minus_L_GCJ=yes
17832
hardcode_shlibpath_var_GCJ=no
17835
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17836
freebsd* | dragonfly*)
17837
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17838
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17839
hardcode_direct_GCJ=yes
17840
hardcode_shlibpath_var_GCJ=no
17844
if test "$GCC" = yes; then
17845
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17847
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17849
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17850
hardcode_libdir_separator_GCJ=:
17851
hardcode_direct_GCJ=yes
17853
# hardcode_minus_L: Not really in the search PATH,
17854
# but as the default location of the library.
17855
hardcode_minus_L_GCJ=yes
17856
export_dynamic_flag_spec_GCJ='${wl}-E'
17860
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17861
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17863
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17865
if test "$with_gnu_ld" = no; then
17866
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17867
hardcode_libdir_separator_GCJ=:
17869
hardcode_direct_GCJ=yes
17870
export_dynamic_flag_spec_GCJ='${wl}-E'
17872
# hardcode_minus_L: Not really in the search PATH,
17873
# but as the default location of the library.
17874
hardcode_minus_L_GCJ=yes
17879
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17882
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17885
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17888
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17894
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17897
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17900
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17904
if test "$with_gnu_ld" = no; then
17905
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17906
hardcode_libdir_separator_GCJ=:
17910
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17911
hardcode_direct_GCJ=no
17912
hardcode_shlibpath_var_GCJ=no
17915
hardcode_direct_GCJ=yes
17916
export_dynamic_flag_spec_GCJ='${wl}-E'
17918
# hardcode_minus_L: Not really in the search PATH,
17919
# but as the default location of the library.
17920
hardcode_minus_L_GCJ=yes
17926
irix5* | irix6* | nonstopux*)
17927
if test "$GCC" = yes; then
17928
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17930
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17931
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17933
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17934
hardcode_libdir_separator_GCJ=:
17935
link_all_deplibs_GCJ=yes
17939
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17940
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17942
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17944
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17945
hardcode_direct_GCJ=yes
17946
hardcode_shlibpath_var_GCJ=no
17950
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17951
hardcode_direct_GCJ=yes
17952
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17953
hardcode_libdir_separator_GCJ=:
17954
hardcode_shlibpath_var_GCJ=no
17958
if test -f /usr/libexec/ld.so; then
17959
hardcode_direct_GCJ=yes
17960
hardcode_shlibpath_var_GCJ=no
17961
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17962
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17963
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17964
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17965
export_dynamic_flag_spec_GCJ='${wl}-E'
17968
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17969
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17970
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17973
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17974
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17984
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17985
hardcode_minus_L_GCJ=yes
17986
allow_undefined_flag_GCJ=unsupported
17987
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17988
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17992
if test "$GCC" = yes; then
17993
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17994
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17996
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17997
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17999
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18000
hardcode_libdir_separator_GCJ=:
18003
osf4* | osf5*) # as osf3* with the addition of -msym flag
18004
if test "$GCC" = yes; then
18005
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18006
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18007
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18009
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18010
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18011
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18012
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18014
# Both c and cxx compiler support -rpath directly
18015
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18017
hardcode_libdir_separator_GCJ=:
18021
no_undefined_flag_GCJ=' -z text'
18022
if test "$GCC" = yes; then
18024
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18025
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18026
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18029
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18030
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18031
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18033
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18034
hardcode_shlibpath_var_GCJ=no
18036
solaris2.[0-5] | solaris2.[0-5].*) ;;
18038
# The compiler driver will combine and reorder linker options,
18039
# but understands `-z linker_flag'. GCC discards it without `$wl',
18040
# but is careful enough not to reorder.
18041
# Supported since Solaris 2.6 (maybe 2.5.1?)
18042
if test "$GCC" = yes; then
18043
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18045
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18049
link_all_deplibs_GCJ=yes
18053
if test "x$host_vendor" = xsequent; then
18054
# Use $CC to link under sequent, because it throws in some extra .o
18055
# files that make .init and .fini sections work.
18056
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18058
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18060
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18061
hardcode_direct_GCJ=yes
18062
hardcode_minus_L_GCJ=yes
18063
hardcode_shlibpath_var_GCJ=no
18067
case $host_vendor in
18069
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070
hardcode_direct_GCJ=yes # is this really true???
18073
## LD is ld it makes a PLAMLIB
18074
## CC just makes a GrossModule.
18075
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18076
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18077
hardcode_direct_GCJ=no
18080
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18081
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18084
runpath_var='LD_RUN_PATH'
18085
hardcode_shlibpath_var_GCJ=no
18089
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18090
hardcode_shlibpath_var_GCJ=no
18091
export_dynamic_flag_spec_GCJ='-Bexport'
18095
if test -d /usr/nec; then
18096
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097
hardcode_shlibpath_var_GCJ=no
18098
runpath_var=LD_RUN_PATH
18099
hardcode_runpath_var=yes
18104
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18105
no_undefined_flag_GCJ='${wl}-z,text'
18106
archive_cmds_need_lc_GCJ=no
18107
hardcode_shlibpath_var_GCJ=no
18108
runpath_var='LD_RUN_PATH'
18110
if test "$GCC" = yes; then
18111
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18114
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18115
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18119
sysv5* | sco3.2v5* | sco5v6*)
18120
# Note: We can NOT use -z defs as we might desire, because we do not
18121
# link with -lc, and that would cause any symbols used from libc to
18122
# always be unresolved, which means just about no library would
18123
# ever link correctly. If we're not using GNU ld we use -z text
18124
# though, which does catch some bad symbols but isn't as heavy-handed
18126
no_undefined_flag_GCJ='${wl}-z,text'
18127
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18128
archive_cmds_need_lc_GCJ=no
18129
hardcode_shlibpath_var_GCJ=no
18130
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18131
hardcode_libdir_separator_GCJ=':'
18132
link_all_deplibs_GCJ=yes
18133
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18134
runpath_var='LD_RUN_PATH'
18136
if test "$GCC" = yes; then
18137
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18140
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18141
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18148
hardcode_shlibpath_var_GCJ=no
18157
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18158
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18159
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18162
# Do we need to explicitly link libc?
18164
case "x$archive_cmds_need_lc_GCJ" in
18166
# Assume -lc should be added
18167
archive_cmds_need_lc_GCJ=yes
18169
if test "$enable_shared" = yes && test "$GCC" = yes; then
18170
case $archive_cmds_GCJ in
18172
# FIXME: we may have to deal with multi-command sequences.
18175
# Test whether the compiler implicitly links with -lc since on some
18176
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18177
# to ld, don't add -lc before -lgcc.
18178
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18179
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18181
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18183
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18184
(eval $ac_compile) 2>&5
18186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187
(exit $ac_status); } 2>conftest.err; then
18190
libobjs=conftest.$ac_objext
18192
wl=$lt_prog_compiler_wl_GCJ
18193
pic_flag=$lt_prog_compiler_pic_GCJ
18199
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18200
allow_undefined_flag_GCJ=
18201
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18202
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205
(exit $ac_status); }
18207
archive_cmds_need_lc_GCJ=no
18209
archive_cmds_need_lc_GCJ=yes
18211
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18213
cat conftest.err 1>&5
18216
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18217
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18224
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18225
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18226
library_names_spec=
18227
libname_spec='lib$name'
18231
postuninstall_cmds=
18235
shlibpath_overrides_runpath=unknown
18237
dynamic_linker="$host_os ld.so"
18238
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18240
need_lib_prefix=unknown
18241
hardcode_into_libs=no
18243
# when you set need_version to no, make sure it does not cause -set_version
18244
# flags to be left without arguments
18245
need_version=unknown
18250
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18251
shlibpath_var=LIBPATH
18253
# AIX 3 has no versioning support, so we append a major version to the name.
18254
soname_spec='${libname}${release}${shared_ext}$major'
18261
hardcode_into_libs=yes
18262
if test "$host_cpu" = ia64; then
18263
# AIX 5 supports IA64
18264
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18265
shlibpath_var=LD_LIBRARY_PATH
18267
# With GCC up to 2.95.x, collect2 would create an import file
18268
# for dependence libraries. The import file would start with
18269
# the line `#! .'. This would cause the generated library to
18270
# depend on `.', always an invalid library. This was fixed in
18271
# development snapshots of GCC prior to 3.0.
18273
aix4 | aix4.[01] | aix4.[01].*)
18274
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18276
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18279
can_build_shared=no
18283
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18284
# soname into executable. Probably we can add versioning support to
18285
# collect2, so additional links can be useful in future.
18286
if test "$aix_use_runtimelinking" = yes; then
18287
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18288
# instead of lib<name>.a to let people know that these are not
18289
# typical AIX shared libraries.
18290
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292
# We preserve .a as extension for shared libraries through AIX4.2
18293
# and later when we are not doing run time linking.
18294
library_names_spec='${libname}${release}.a $libname.a'
18295
soname_spec='${libname}${release}${shared_ext}$major'
18297
shlibpath_var=LIBPATH
18302
library_names_spec='$libname.ixlibrary $libname.a'
18303
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18304
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18308
library_names_spec='${libname}${shared_ext}'
18309
dynamic_linker="$host_os ld.so"
18310
shlibpath_var=LIBRARY_PATH
18316
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317
soname_spec='${libname}${release}${shared_ext}$major'
18318
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18319
shlibpath_var=LD_LIBRARY_PATH
18320
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18321
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18322
# the default ld.so.conf also contains /usr/contrib/lib and
18323
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18324
# libtool to hard-code these into programs
18327
cygwin* | mingw* | pw32*)
18328
version_type=windows
18333
case $GCC,$host_os in
18334
yes,cygwin* | yes,mingw* | yes,pw32*)
18335
library_names_spec='$libname.dll.a'
18336
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18337
postinstall_cmds='base_file=`basename \${file}`~
18338
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18339
dldir=$destdir/`dirname \$dlpath`~
18340
test -d \$dldir || mkdir -p \$dldir~
18341
$install_prog $dir/$dlname \$dldir/$dlname~
18342
chmod a+x \$dldir/$dlname'
18343
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18344
dlpath=$dir/\$dldll~
18346
shlibpath_overrides_runpath=yes
18350
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18351
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18352
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18355
# MinGW DLLs use traditional 'lib' prefix
18356
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18357
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18358
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18359
# It is most probably a Windows format PATH printed by
18360
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18361
# path with ; separators, and with drive letters. We can handle the
18362
# drive letters (cygwin fileutils understands them), so leave them,
18363
# especially as we might pass files found there to a mingw objdump,
18364
# which wouldn't understand a cygwinified path. Ahh.
18365
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18367
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18371
# pw32 DLLs use 'pw' prefix rather than 'lib'
18372
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18378
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18381
dynamic_linker='Win32 ld.exe'
18382
# FIXME: first we should search . and the directory the executable is in
18386
darwin* | rhapsody*)
18387
dynamic_linker="$host_os dyld"
18388
version_type=darwin
18391
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18392
soname_spec='${libname}${release}${major}$shared_ext'
18393
shlibpath_overrides_runpath=yes
18394
shlibpath_var=DYLD_LIBRARY_PATH
18395
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18397
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18405
soname_spec='${libname}${release}${shared_ext}$major'
18406
shlibpath_var=LD_LIBRARY_PATH
18413
freebsd* | dragonfly*)
18414
# DragonFly does not have aout. When/if they implement a new
18415
# versioning mechanism, adjust this.
18416
if test -x /usr/bin/objformat; then
18417
objformat=`/usr/bin/objformat`
18420
freebsd[123]*) objformat=aout ;;
18421
*) objformat=elf ;;
18424
version_type=freebsd-$objformat
18425
case $version_type in
18427
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18432
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18436
shlibpath_var=LD_LIBRARY_PATH
18439
shlibpath_overrides_runpath=yes
18441
freebsd3.[01]* | freebsdelf3.[01]*)
18442
shlibpath_overrides_runpath=yes
18443
hardcode_into_libs=yes
18445
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18446
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18447
shlibpath_overrides_runpath=no
18448
hardcode_into_libs=yes
18450
*) # from 4.6 on, and DragonFly
18451
shlibpath_overrides_runpath=yes
18452
hardcode_into_libs=yes
18461
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18462
soname_spec='${libname}${release}${shared_ext}$major'
18463
shlibpath_var=LD_LIBRARY_PATH
18464
hardcode_into_libs=yes
18467
hpux9* | hpux10* | hpux11*)
18468
# Give a soname corresponding to the major version so that dld.sl refuses to
18469
# link against other versions.
18476
hardcode_into_libs=yes
18477
dynamic_linker="$host_os dld.so"
18478
shlibpath_var=LD_LIBRARY_PATH
18479
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18480
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481
soname_spec='${libname}${release}${shared_ext}$major'
18482
if test "X$HPUX_IA64_MODE" = X32; then
18483
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18485
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18487
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18491
hardcode_into_libs=yes
18492
dynamic_linker="$host_os dld.sl"
18493
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18494
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496
soname_spec='${libname}${release}${shared_ext}$major'
18497
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18498
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18502
dynamic_linker="$host_os dld.sl"
18503
shlibpath_var=SHLIB_PATH
18504
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506
soname_spec='${libname}${release}${shared_ext}$major'
18509
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18510
postinstall_cmds='chmod 555 $lib'
18517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18518
soname_spec='${libname}${release}${shared_ext}$major'
18519
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18520
shlibpath_var=LD_LIBRARY_PATH
18521
shlibpath_overrides_runpath=no
18522
hardcode_into_libs=yes
18525
irix5* | irix6* | nonstopux*)
18527
nonstopux*) version_type=nonstopux ;;
18529
if test "$lt_cv_prog_gnu_ld" = yes; then
18537
soname_spec='${libname}${release}${shared_ext}$major'
18538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18540
irix5* | nonstopux*)
18541
libsuff= shlibsuff=
18544
case $LD in # libtool.m4 will add one of these switches to LD
18545
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18546
libsuff= shlibsuff= libmagic=32-bit;;
18547
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18548
libsuff=32 shlibsuff=N32 libmagic=N32;;
18549
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18550
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18551
*) libsuff= shlibsuff= libmagic=never-match;;
18555
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18556
shlibpath_overrides_runpath=no
18557
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18558
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18559
hardcode_into_libs=yes
18562
# No shared lib support for Linux oldld, aout, or coff.
18563
linux*oldld* | linux*aout* | linux*coff*)
18567
# This must be Linux ELF.
18568
linux* | k*bsd*-gnu)
18572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573
soname_spec='${libname}${release}${shared_ext}$major'
18574
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18575
shlibpath_var=LD_LIBRARY_PATH
18576
shlibpath_overrides_runpath=no
18577
# This implies no fast_install, which is unacceptable.
18578
# Some rework will be needed to allow for fast_install
18579
# before this can be enabled.
18580
hardcode_into_libs=yes
18582
# Append ld.so.conf contents to the search path
18583
if test -f /etc/ld.so.conf; then
18584
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;/^$/d' | tr '\n' ' '`
18585
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18588
# We used to test for /lib/ld.so.1 and disable shared libraries on
18589
# powerpc, because MkLinux only supported shared libraries with the
18590
# GNU dynamic linker. Since this was broken with cross compilers,
18591
# most powerpc-linux boxes support dynamic linking these days and
18592
# people can always --disable-shared, the test was removed, and we
18593
# assume the GNU/Linux dynamic linker is in use.
18594
dynamic_linker='GNU/Linux ld.so'
18601
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18603
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18604
dynamic_linker='NetBSD (a.out) ld.so'
18606
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18607
soname_spec='${libname}${release}${shared_ext}$major'
18608
dynamic_linker='NetBSD ld.elf_so'
18610
shlibpath_var=LD_LIBRARY_PATH
18611
shlibpath_overrides_runpath=yes
18612
hardcode_into_libs=yes
18617
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618
shlibpath_var=LD_LIBRARY_PATH
18619
shlibpath_overrides_runpath=yes
18626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627
soname_spec='${libname}${release}${shared_ext}$major'
18628
shlibpath_var=LD_LIBRARY_PATH
18629
shlibpath_overrides_runpath=yes
18634
sys_lib_dlsearch_path_spec="/usr/lib"
18636
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18638
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18639
*) need_version=no ;;
18641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18642
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18643
shlibpath_var=LD_LIBRARY_PATH
18644
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18646
openbsd2.[89] | openbsd2.[89].*)
18647
shlibpath_overrides_runpath=no
18650
shlibpath_overrides_runpath=yes
18654
shlibpath_overrides_runpath=yes
18659
libname_spec='$name'
18662
library_names_spec='$libname${shared_ext} $libname.a'
18663
dynamic_linker='OS/2 ld.exe'
18664
shlibpath_var=LIBPATH
18667
osf3* | osf4* | osf5*)
18671
soname_spec='${libname}${release}${shared_ext}$major'
18672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673
shlibpath_var=LD_LIBRARY_PATH
18674
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18675
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687
soname_spec='${libname}${release}${shared_ext}$major'
18688
shlibpath_var=LD_LIBRARY_PATH
18689
shlibpath_overrides_runpath=yes
18690
hardcode_into_libs=yes
18691
# ldd complains unless libraries are executable
18692
postinstall_cmds='chmod +x $lib'
18697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18698
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18699
shlibpath_var=LD_LIBRARY_PATH
18700
shlibpath_overrides_runpath=yes
18701
if test "$with_gnu_ld" = yes; then
18709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18710
soname_spec='${libname}${release}${shared_ext}$major'
18711
shlibpath_var=LD_LIBRARY_PATH
18712
case $host_vendor in
18714
shlibpath_overrides_runpath=no
18716
export_dynamic_flag_spec='${wl}-Blargedynsym'
18717
runpath_var=LD_RUN_PATH
18725
shlibpath_overrides_runpath=no
18726
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18732
if test -d /usr/nec ;then
18734
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18735
soname_spec='$libname${shared_ext}.$major'
18736
shlibpath_var=LD_LIBRARY_PATH
18740
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18741
version_type=freebsd-elf
18744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18745
soname_spec='${libname}${release}${shared_ext}$major'
18746
shlibpath_var=LD_LIBRARY_PATH
18747
hardcode_into_libs=yes
18748
if test "$with_gnu_ld" = yes; then
18749
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18750
shlibpath_overrides_runpath=no
18752
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18753
shlibpath_overrides_runpath=yes
18756
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18760
sys_lib_dlsearch_path_spec='/usr/lib'
18765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766
soname_spec='${libname}${release}${shared_ext}$major'
18767
shlibpath_var=LD_LIBRARY_PATH
18774
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18775
echo "${ECHO_T}$dynamic_linker" >&6; }
18776
test "$dynamic_linker" = no && can_build_shared=no
18778
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18779
if test "$GCC" = yes; then
18780
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18783
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18784
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18785
hardcode_action_GCJ=
18786
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18787
test -n "$runpath_var_GCJ" || \
18788
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18790
# We can hardcode non-existant directories.
18791
if test "$hardcode_direct_GCJ" != no &&
18792
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18793
# have to relink, otherwise we might link with an installed library
18794
# when we should be linking with a yet-to-be-installed one
18795
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18796
test "$hardcode_minus_L_GCJ" != no; then
18797
# Linking always hardcodes the temporary library directory.
18798
hardcode_action_GCJ=relink
18800
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18801
hardcode_action_GCJ=immediate
18804
# We cannot hardcode anything, or else we can only hardcode existing
18806
hardcode_action_GCJ=unsupported
18808
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18809
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18811
if test "$hardcode_action_GCJ" = relink; then
18812
# Fast installation is not supported
18813
enable_fast_install=no
18814
elif test "$shlibpath_overrides_runpath" = yes ||
18815
test "$enable_shared" = no; then
18816
# Fast installation is not necessary
18817
enable_fast_install=needless
18821
# The else clause should only fire when bootstrapping the
18822
# libtool distribution, otherwise you forgot to ship ltmain.sh
18823
# with your package, and you will get complaints that there are
18824
# no rules to generate ltmain.sh.
18825
if test -f "$ltmain"; then
18826
# See if we are running on zsh, and set the options which allow our commands through
18827
# without removal of \ escapes.
18828
if test -n "${ZSH_VERSION+set}" ; then
18829
setopt NO_GLOB_SUBST
18831
# Now quote all the things that may contain metacharacters while being
18832
# careful not to overquote the AC_SUBSTed values. We take copies of the
18833
# variables and quote the copies for generation of the libtool script.
18834
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18836
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18837
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18838
deplibs_check_method reload_flag reload_cmds need_locks \
18839
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18840
lt_cv_sys_global_symbol_to_c_name_address \
18841
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18842
old_postinstall_cmds old_postuninstall_cmds \
18846
lt_prog_compiler_wl_GCJ \
18847
lt_prog_compiler_pic_GCJ \
18848
lt_prog_compiler_static_GCJ \
18849
lt_prog_compiler_no_builtin_flag_GCJ \
18850
export_dynamic_flag_spec_GCJ \
18851
thread_safe_flag_spec_GCJ \
18852
whole_archive_flag_spec_GCJ \
18853
enable_shared_with_static_runtimes_GCJ \
18854
old_archive_cmds_GCJ \
18855
old_archive_from_new_cmds_GCJ \
18856
predep_objects_GCJ \
18857
postdep_objects_GCJ \
18860
compiler_lib_search_path_GCJ \
18862
archive_expsym_cmds_GCJ \
18863
postinstall_cmds_GCJ \
18864
postuninstall_cmds_GCJ \
18865
old_archive_from_expsyms_cmds_GCJ \
18866
allow_undefined_flag_GCJ \
18867
no_undefined_flag_GCJ \
18868
export_symbols_cmds_GCJ \
18869
hardcode_libdir_flag_spec_GCJ \
18870
hardcode_libdir_flag_spec_ld_GCJ \
18871
hardcode_libdir_separator_GCJ \
18872
hardcode_automatic_GCJ \
18874
module_expsym_cmds_GCJ \
18875
lt_cv_prog_compiler_c_o_GCJ \
18876
fix_srcfile_path_GCJ \
18877
exclude_expsyms_GCJ \
18878
include_expsyms_GCJ; do
18881
old_archive_cmds_GCJ | \
18882
old_archive_from_new_cmds_GCJ | \
18883
archive_cmds_GCJ | \
18884
archive_expsym_cmds_GCJ | \
18885
module_cmds_GCJ | \
18886
module_expsym_cmds_GCJ | \
18887
old_archive_from_expsyms_cmds_GCJ | \
18888
export_symbols_cmds_GCJ | \
18889
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18890
postinstall_cmds | postuninstall_cmds | \
18891
old_postinstall_cmds | old_postuninstall_cmds | \
18892
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18893
# Double-quote double-evaled strings.
18894
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18897
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18903
*'\$0 --fallback-echo"')
18904
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18910
cat <<__EOF__ >> "$cfgfile"
18911
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18913
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18915
# Shell to use when invoking shell scripts.
18918
# Whether or not to build shared libraries.
18919
build_libtool_libs=$enable_shared
18921
# Whether or not to build static libraries.
18922
build_old_libs=$enable_static
18924
# Whether or not to add -lc for building shared libraries.
18925
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18927
# Whether or not to disallow shared libs when runtime libs are static
18928
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18930
# Whether or not to optimize for fast installation.
18931
fast_install=$enable_fast_install
18934
host_alias=$host_alias
18938
# The build system.
18939
build_alias=$build_alias
18943
# An echo program that does not interpret backslashes.
18948
AR_FLAGS=$lt_AR_FLAGS
18953
# LTCC compiler flags.
18954
LTCFLAGS=$lt_LTCFLAGS
18956
# A language-specific compiler.
18957
CC=$lt_compiler_GCJ
18959
# Is the compiler the GNU C compiler?
18965
# The linker used to build libraries.
18968
# Whether we need hard or soft links.
18971
# A BSD-compatible nm program.
18974
# A symbol stripping program
18977
# Used to examine libraries when file_magic_cmd begins "file"
18978
MAGIC_CMD=$MAGIC_CMD
18980
# Used on cygwin: DLL creation program.
18983
# Used on cygwin: object dumper.
18986
# Used on cygwin: assembler.
18989
# The name of the directory that contains temporary libtool files.
18992
# How to create reloadable object files.
18993
reload_flag=$lt_reload_flag
18994
reload_cmds=$lt_reload_cmds
18996
# How to pass a linker flag through the compiler.
18997
wl=$lt_lt_prog_compiler_wl_GCJ
18999
# Object file suffix (normally "o").
19000
objext="$ac_objext"
19002
# Old archive suffix (normally "a").
19005
# Shared library suffix (normally ".so").
19006
shrext_cmds='$shrext_cmds'
19008
# Executable file suffix (normally "").
19011
# Additional compiler flags for building library objects.
19012
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19015
# What is the maximum length of a command?
19016
max_cmd_len=$lt_cv_sys_max_cmd_len
19018
# Does compiler simultaneously support -c and -o options?
19019
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19021
# Must we lock files when doing compilation?
19022
need_locks=$lt_need_locks
19024
# Do we need the lib prefix for modules?
19025
need_lib_prefix=$need_lib_prefix
19027
# Do we need a version for libraries?
19028
need_version=$need_version
19030
# Whether dlopen is supported.
19031
dlopen_support=$enable_dlopen
19033
# Whether dlopen of programs is supported.
19034
dlopen_self=$enable_dlopen_self
19036
# Whether dlopen of statically linked programs is supported.
19037
dlopen_self_static=$enable_dlopen_self_static
19039
# Compiler flag to prevent dynamic linking.
19040
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19042
# Compiler flag to turn off builtin functions.
19043
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19045
# Compiler flag to allow reflexive dlopens.
19046
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19048
# Compiler flag to generate shared objects directly from archives.
19049
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19051
# Compiler flag to generate thread-safe objects.
19052
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19054
# Library versioning type.
19055
version_type=$version_type
19057
# Format of library name prefix.
19058
libname_spec=$lt_libname_spec
19060
# List of archive names. First name is the real one, the rest are links.
19061
# The last name is the one that the linker finds with -lNAME.
19062
library_names_spec=$lt_library_names_spec
19064
# The coded name of the library, if different from the real name.
19065
soname_spec=$lt_soname_spec
19067
# Commands used to build and install an old-style archive.
19069
old_archive_cmds=$lt_old_archive_cmds_GCJ
19070
old_postinstall_cmds=$lt_old_postinstall_cmds
19071
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19073
# Create an old-style archive from a shared archive.
19074
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19076
# Create a temporary old-style archive to link instead of a shared archive.
19077
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19079
# Commands used to build and install a shared archive.
19080
archive_cmds=$lt_archive_cmds_GCJ
19081
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19082
postinstall_cmds=$lt_postinstall_cmds
19083
postuninstall_cmds=$lt_postuninstall_cmds
19085
# Commands used to build a loadable module (assumed same as above if empty)
19086
module_cmds=$lt_module_cmds_GCJ
19087
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19089
# Commands to strip libraries.
19090
old_striplib=$lt_old_striplib
19091
striplib=$lt_striplib
19093
# Dependencies to place before the objects being linked to create a
19095
predep_objects=$lt_predep_objects_GCJ
19097
# Dependencies to place after the objects being linked to create a
19099
postdep_objects=$lt_postdep_objects_GCJ
19101
# Dependencies to place before the objects being linked to create a
19103
predeps=$lt_predeps_GCJ
19105
# Dependencies to place after the objects being linked to create a
19107
postdeps=$lt_postdeps_GCJ
19109
# The library search path used internally by the compiler when linking
19110
# a shared library.
19111
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19113
# Method to check whether dependent libraries are shared objects.
19114
deplibs_check_method=$lt_deplibs_check_method
19116
# Command to use when deplibs_check_method == file_magic.
19117
file_magic_cmd=$lt_file_magic_cmd
19119
# Flag that allows shared libraries with undefined symbols to be built.
19120
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19122
# Flag that forces no undefined symbols.
19123
no_undefined_flag=$lt_no_undefined_flag_GCJ
19125
# Commands used to finish a libtool library installation in a directory.
19126
finish_cmds=$lt_finish_cmds
19128
# Same as above, but a single script fragment to be evaled but not shown.
19129
finish_eval=$lt_finish_eval
19131
# Take the output of nm and produce a listing of raw symbols and C names.
19132
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19134
# Transform the output of nm in a proper C declaration
19135
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19137
# Transform the output of nm in a C name address pair
19138
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19140
# This is the shared library runtime path variable.
19141
runpath_var=$runpath_var
19143
# This is the shared library path variable.
19144
shlibpath_var=$shlibpath_var
19146
# Is shlibpath searched before the hard-coded library search path?
19147
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19149
# How to hardcode a shared library path into an executable.
19150
hardcode_action=$hardcode_action_GCJ
19152
# Whether we should hardcode library paths into libraries.
19153
hardcode_into_libs=$hardcode_into_libs
19155
# Flag to hardcode \$libdir into a binary during linking.
19156
# This must work even if \$libdir does not exist.
19157
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19159
# If ld is used when linking, flag to hardcode \$libdir into
19160
# a binary during linking. This must work even if \$libdir does
19162
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19164
# Whether we need a single -rpath flag with a separated argument.
19165
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19167
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19168
# resulting binary.
19169
hardcode_direct=$hardcode_direct_GCJ
19171
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19172
# resulting binary.
19173
hardcode_minus_L=$hardcode_minus_L_GCJ
19175
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19176
# the resulting binary.
19177
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19179
# Set to yes if building a shared library automatically hardcodes DIR into the library
19180
# and all subsequent libraries and executables linked against it.
19181
hardcode_automatic=$hardcode_automatic_GCJ
19183
# Variables whose values should be saved in libtool wrapper scripts and
19184
# restored at relink time.
19185
variables_saved_for_relink="$variables_saved_for_relink"
19187
# Whether libtool must link a program against all its dependency libraries.
19188
link_all_deplibs=$link_all_deplibs_GCJ
19190
# Compile-time system search path for libraries
19191
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19193
# Run-time system search path for libraries
19194
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19196
# Fix the shell variable \$srcfile for the compiler.
19197
fix_srcfile_path=$lt_fix_srcfile_path
19199
# Set to yes if exported symbols are required.
19200
always_export_symbols=$always_export_symbols_GCJ
19202
# The commands to list exported symbols.
19203
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19205
# The commands to extract the exported symbol list from a shared archive.
19206
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19208
# Symbols that should not be listed in the preloaded symbols.
19209
exclude_expsyms=$lt_exclude_expsyms_GCJ
19211
# Symbols that must always be exported.
19212
include_expsyms=$lt_include_expsyms_GCJ
19214
# ### END LIBTOOL TAG CONFIG: $tagname
19220
# If there is no Makefile yet, we rely on a make rule to execute
19221
# `config.status --recheck' to rerun these tests and create the
19222
# libtool script then.
19223
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19224
if test -f "$ltmain_in"; then
19225
test -f Makefile && make "$ltmain"
19231
ac_cpp='$CPP $CPPFLAGS'
19232
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19246
# Source file extension for RC test sources.
19249
# Object file extension for compiled RC test sources.
19253
# Code to be used in simple compile tests
19254
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19256
# Code to be used in simple link tests
19257
lt_simple_link_test_code="$lt_simple_compile_test_code"
19259
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19261
# If no C compiler was specified, use CC.
19264
# If no C compiler flags were specified, use CFLAGS.
19265
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19267
# Allow CC to be a program name with arguments.
19271
# save warnings/boilerplate of simple test code
19272
ac_outfile=conftest.$ac_objext
19273
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19275
_lt_compiler_boilerplate=`cat conftest.err`
19278
ac_outfile=conftest.$ac_objext
19279
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19280
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19281
_lt_linker_boilerplate=`cat conftest.err`
19285
# Allow CC to be a program name with arguments.
19290
for cc_temp in $compiler""; do
19292
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19293
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19298
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19300
lt_cv_prog_compiler_c_o_RC=yes
19302
# The else clause should only fire when bootstrapping the
19303
# libtool distribution, otherwise you forgot to ship ltmain.sh
19304
# with your package, and you will get complaints that there are
19305
# no rules to generate ltmain.sh.
19306
if test -f "$ltmain"; then
19307
# See if we are running on zsh, and set the options which allow our commands through
19308
# without removal of \ escapes.
19309
if test -n "${ZSH_VERSION+set}" ; then
19310
setopt NO_GLOB_SUBST
19312
# Now quote all the things that may contain metacharacters while being
19313
# careful not to overquote the AC_SUBSTed values. We take copies of the
19314
# variables and quote the copies for generation of the libtool script.
19315
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19317
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19318
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19319
deplibs_check_method reload_flag reload_cmds need_locks \
19320
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19321
lt_cv_sys_global_symbol_to_c_name_address \
19322
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19323
old_postinstall_cmds old_postuninstall_cmds \
19327
lt_prog_compiler_wl_RC \
19328
lt_prog_compiler_pic_RC \
19329
lt_prog_compiler_static_RC \
19330
lt_prog_compiler_no_builtin_flag_RC \
19331
export_dynamic_flag_spec_RC \
19332
thread_safe_flag_spec_RC \
19333
whole_archive_flag_spec_RC \
19334
enable_shared_with_static_runtimes_RC \
19335
old_archive_cmds_RC \
19336
old_archive_from_new_cmds_RC \
19337
predep_objects_RC \
19338
postdep_objects_RC \
19341
compiler_lib_search_path_RC \
19343
archive_expsym_cmds_RC \
19344
postinstall_cmds_RC \
19345
postuninstall_cmds_RC \
19346
old_archive_from_expsyms_cmds_RC \
19347
allow_undefined_flag_RC \
19348
no_undefined_flag_RC \
19349
export_symbols_cmds_RC \
19350
hardcode_libdir_flag_spec_RC \
19351
hardcode_libdir_flag_spec_ld_RC \
19352
hardcode_libdir_separator_RC \
19353
hardcode_automatic_RC \
19355
module_expsym_cmds_RC \
19356
lt_cv_prog_compiler_c_o_RC \
19357
fix_srcfile_path_RC \
19358
exclude_expsyms_RC \
19359
include_expsyms_RC; do
19362
old_archive_cmds_RC | \
19363
old_archive_from_new_cmds_RC | \
19364
archive_cmds_RC | \
19365
archive_expsym_cmds_RC | \
19367
module_expsym_cmds_RC | \
19368
old_archive_from_expsyms_cmds_RC | \
19369
export_symbols_cmds_RC | \
19370
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19371
postinstall_cmds | postuninstall_cmds | \
19372
old_postinstall_cmds | old_postuninstall_cmds | \
19373
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19374
# Double-quote double-evaled strings.
19375
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19378
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19384
*'\$0 --fallback-echo"')
19385
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19391
cat <<__EOF__ >> "$cfgfile"
19392
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19394
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19396
# Shell to use when invoking shell scripts.
19399
# Whether or not to build shared libraries.
19400
build_libtool_libs=$enable_shared
19402
# Whether or not to build static libraries.
19403
build_old_libs=$enable_static
19405
# Whether or not to add -lc for building shared libraries.
19406
build_libtool_need_lc=$archive_cmds_need_lc_RC
19408
# Whether or not to disallow shared libs when runtime libs are static
19409
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19411
# Whether or not to optimize for fast installation.
19412
fast_install=$enable_fast_install
19415
host_alias=$host_alias
19419
# The build system.
19420
build_alias=$build_alias
19424
# An echo program that does not interpret backslashes.
19429
AR_FLAGS=$lt_AR_FLAGS
19434
# LTCC compiler flags.
19435
LTCFLAGS=$lt_LTCFLAGS
19437
# A language-specific compiler.
19440
# Is the compiler the GNU C compiler?
19446
# The linker used to build libraries.
19449
# Whether we need hard or soft links.
19452
# A BSD-compatible nm program.
19455
# A symbol stripping program
19458
# Used to examine libraries when file_magic_cmd begins "file"
19459
MAGIC_CMD=$MAGIC_CMD
19461
# Used on cygwin: DLL creation program.
19464
# Used on cygwin: object dumper.
19467
# Used on cygwin: assembler.
19470
# The name of the directory that contains temporary libtool files.
19473
# How to create reloadable object files.
19474
reload_flag=$lt_reload_flag
19475
reload_cmds=$lt_reload_cmds
19477
# How to pass a linker flag through the compiler.
19478
wl=$lt_lt_prog_compiler_wl_RC
19480
# Object file suffix (normally "o").
19481
objext="$ac_objext"
19483
# Old archive suffix (normally "a").
19486
# Shared library suffix (normally ".so").
19487
shrext_cmds='$shrext_cmds'
19489
# Executable file suffix (normally "").
19492
# Additional compiler flags for building library objects.
19493
pic_flag=$lt_lt_prog_compiler_pic_RC
19496
# What is the maximum length of a command?
19497
max_cmd_len=$lt_cv_sys_max_cmd_len
19499
# Does compiler simultaneously support -c and -o options?
19500
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19502
# Must we lock files when doing compilation?
19503
need_locks=$lt_need_locks
19505
# Do we need the lib prefix for modules?
19506
need_lib_prefix=$need_lib_prefix
19508
# Do we need a version for libraries?
19509
need_version=$need_version
19511
# Whether dlopen is supported.
19512
dlopen_support=$enable_dlopen
19514
# Whether dlopen of programs is supported.
19515
dlopen_self=$enable_dlopen_self
19517
# Whether dlopen of statically linked programs is supported.
19518
dlopen_self_static=$enable_dlopen_self_static
19520
# Compiler flag to prevent dynamic linking.
19521
link_static_flag=$lt_lt_prog_compiler_static_RC
19523
# Compiler flag to turn off builtin functions.
19524
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19526
# Compiler flag to allow reflexive dlopens.
19527
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19529
# Compiler flag to generate shared objects directly from archives.
19530
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19532
# Compiler flag to generate thread-safe objects.
19533
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19535
# Library versioning type.
19536
version_type=$version_type
19538
# Format of library name prefix.
19539
libname_spec=$lt_libname_spec
19541
# List of archive names. First name is the real one, the rest are links.
19542
# The last name is the one that the linker finds with -lNAME.
19543
library_names_spec=$lt_library_names_spec
19545
# The coded name of the library, if different from the real name.
19546
soname_spec=$lt_soname_spec
19548
# Commands used to build and install an old-style archive.
19550
old_archive_cmds=$lt_old_archive_cmds_RC
19551
old_postinstall_cmds=$lt_old_postinstall_cmds
19552
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19554
# Create an old-style archive from a shared archive.
19555
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19557
# Create a temporary old-style archive to link instead of a shared archive.
19558
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19560
# Commands used to build and install a shared archive.
19561
archive_cmds=$lt_archive_cmds_RC
19562
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19563
postinstall_cmds=$lt_postinstall_cmds
19564
postuninstall_cmds=$lt_postuninstall_cmds
19566
# Commands used to build a loadable module (assumed same as above if empty)
19567
module_cmds=$lt_module_cmds_RC
19568
module_expsym_cmds=$lt_module_expsym_cmds_RC
19570
# Commands to strip libraries.
19571
old_striplib=$lt_old_striplib
19572
striplib=$lt_striplib
19574
# Dependencies to place before the objects being linked to create a
19576
predep_objects=$lt_predep_objects_RC
19578
# Dependencies to place after the objects being linked to create a
19580
postdep_objects=$lt_postdep_objects_RC
19582
# Dependencies to place before the objects being linked to create a
19584
predeps=$lt_predeps_RC
19586
# Dependencies to place after the objects being linked to create a
19588
postdeps=$lt_postdeps_RC
19590
# The library search path used internally by the compiler when linking
19591
# a shared library.
19592
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19594
# Method to check whether dependent libraries are shared objects.
19595
deplibs_check_method=$lt_deplibs_check_method
19597
# Command to use when deplibs_check_method == file_magic.
19598
file_magic_cmd=$lt_file_magic_cmd
19600
# Flag that allows shared libraries with undefined symbols to be built.
19601
allow_undefined_flag=$lt_allow_undefined_flag_RC
19603
# Flag that forces no undefined symbols.
19604
no_undefined_flag=$lt_no_undefined_flag_RC
19606
# Commands used to finish a libtool library installation in a directory.
19607
finish_cmds=$lt_finish_cmds
19609
# Same as above, but a single script fragment to be evaled but not shown.
19610
finish_eval=$lt_finish_eval
19612
# Take the output of nm and produce a listing of raw symbols and C names.
19613
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19615
# Transform the output of nm in a proper C declaration
19616
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19618
# Transform the output of nm in a C name address pair
19619
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19621
# This is the shared library runtime path variable.
19622
runpath_var=$runpath_var
19624
# This is the shared library path variable.
19625
shlibpath_var=$shlibpath_var
19627
# Is shlibpath searched before the hard-coded library search path?
19628
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19630
# How to hardcode a shared library path into an executable.
19631
hardcode_action=$hardcode_action_RC
19633
# Whether we should hardcode library paths into libraries.
19634
hardcode_into_libs=$hardcode_into_libs
19636
# Flag to hardcode \$libdir into a binary during linking.
19637
# This must work even if \$libdir does not exist.
19638
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19640
# If ld is used when linking, flag to hardcode \$libdir into
19641
# a binary during linking. This must work even if \$libdir does
19643
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19645
# Whether we need a single -rpath flag with a separated argument.
19646
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19648
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19649
# resulting binary.
19650
hardcode_direct=$hardcode_direct_RC
19652
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19653
# resulting binary.
19654
hardcode_minus_L=$hardcode_minus_L_RC
19656
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19657
# the resulting binary.
19658
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19660
# Set to yes if building a shared library automatically hardcodes DIR into the library
19661
# and all subsequent libraries and executables linked against it.
19662
hardcode_automatic=$hardcode_automatic_RC
19664
# Variables whose values should be saved in libtool wrapper scripts and
19665
# restored at relink time.
19666
variables_saved_for_relink="$variables_saved_for_relink"
19668
# Whether libtool must link a program against all its dependency libraries.
19669
link_all_deplibs=$link_all_deplibs_RC
19671
# Compile-time system search path for libraries
19672
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19674
# Run-time system search path for libraries
19675
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19677
# Fix the shell variable \$srcfile for the compiler.
19678
fix_srcfile_path=$lt_fix_srcfile_path
19680
# Set to yes if exported symbols are required.
19681
always_export_symbols=$always_export_symbols_RC
19683
# The commands to list exported symbols.
19684
export_symbols_cmds=$lt_export_symbols_cmds_RC
19686
# The commands to extract the exported symbol list from a shared archive.
19687
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19689
# Symbols that should not be listed in the preloaded symbols.
19690
exclude_expsyms=$lt_exclude_expsyms_RC
19692
# Symbols that must always be exported.
19693
include_expsyms=$lt_include_expsyms_RC
19695
# ### END LIBTOOL TAG CONFIG: $tagname
19701
# If there is no Makefile yet, we rely on a make rule to execute
19702
# `config.status --recheck' to rerun these tests and create the
19703
# libtool script then.
19704
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19705
if test -f "$ltmain_in"; then
19706
test -f Makefile && make "$ltmain"
19712
ac_cpp='$CPP $CPPFLAGS'
19713
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19714
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19715
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19722
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19723
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19724
{ (exit 1); exit 1; }; }
19728
# Append the new tag name to the list of available tags.
19729
if test -n "$tagname" ; then
19730
available_tags="$available_tags $tagname"
19736
# Now substitute the updated list of available tags.
19737
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19738
mv "${ofile}T" "$ofile"
19742
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19743
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19744
{ (exit 1); exit 1; }; }
19750
# This can be used to rebuild libtool when needed
19751
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19753
# Always use our own libtool.
19754
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19756
# Prevent multiple expansion
19786
aclocaldir='${datadir}/aclocal'
19791
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19792
if test -n "$searchpath"; then
19793
acl_save_IFS="${IFS= }"; IFS=":"
19794
for searchdir in $searchpath; do
19795
if test -d "$searchdir"; then
19796
case "$searchdir" in
19797
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
19798
*) searchdir=`cd "$searchdir" && pwd`
19799
case "$searchdir" in
19800
*/lib64 ) acl_libdirstem=lib64 ;;
19805
IFS="$acl_save_IFS"
19808
LIBDIRSTEM=$acl_libdirstem
19811
ac_config_files="$ac_config_files Makefile"
19814
ac_config_files="$ac_config_files m4/Makefile"
19817
ac_config_files="$ac_config_files tests/Makefile"
19820
cat >confcache <<\_ACEOF
19821
# This file is a shell script that caches the results of configure
19822
# tests run on this system so they can be shared between configure
19823
# scripts and configure runs, see configure's option --config-cache.
19824
# It is not useful on other systems. If it contains results you don't
19825
# want to keep, you may remove or edit it.
19827
# config.status only pays attention to the cache file if you give it
19828
# the --recheck option to rerun configure.
19830
# `ac_cv_env_foo' variables (set or unset) will be overridden when
19831
# loading this file, other *unset* `ac_cv_foo' will be assigned the
19832
# following values.
19836
# The following way of writing the cache mishandles newlines in values,
19837
# but we know of no workaround that is simple, portable, and efficient.
19838
# So, we kill variables containing newlines.
19839
# Ultrix sh set writes to stderr and can't be redirected directly,
19840
# and sets the high bit in the cache file unless we assign to the vars.
19842
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19843
eval ac_val=\$$ac_var
19847
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19848
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19851
_ | IFS | as_nl) ;; #(
19852
*) $as_unset $ac_var ;;
19858
case $as_nl`(ac_space=' '; set) 2>&1` in #(
19859
*${as_nl}ac_space=\ *)
19860
# `set' does not quote correctly, so add quotes (double-quote
19861
# substitution turns \\\\ into \\, and sed turns \\ into \).
19864
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19867
# `set' quotes correctly as required by POSIX, so do not add quotes.
19868
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19877
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19879
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19881
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19882
if test -w "$cache_file"; then
19883
test "x$cache_file" != "x/dev/null" &&
19884
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
19885
echo "$as_me: updating cache $cache_file" >&6;}
19886
cat confcache >$cache_file
19888
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19889
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19894
test "x$prefix" = xNONE && prefix=$ac_default_prefix
19895
# Let make expand exec_prefix.
19896
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19898
# Transform confdefs.h into DEFS.
19899
# Protect against shell expansion while executing Makefile rules.
19900
# Protect against Makefile macro expansion.
19902
# If the first sed substitution is executed (which looks for macros that
19903
# take arguments), then branch to the quote section. Otherwise,
19904
# look for a macro that doesn't take arguments.
19908
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19910
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19914
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19927
DEFS=`sed -n "$ac_script" confdefs.h`
19932
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19933
# 1. Remove the extension, and $U if already installed.
19934
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19935
ac_i=`echo "$ac_i" | sed "$ac_script"`
19936
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19937
# will be set to the directory where LIBOBJS objects are built.
19938
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19939
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19941
LIBOBJS=$ac_libobjs
19943
LTLIBOBJS=$ac_ltlibobjs
19946
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19947
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19948
Usually this means the macro was only invoked conditionally." >&5
19949
echo "$as_me: error: conditional \"AMDEP\" was never defined.
19950
Usually this means the macro was only invoked conditionally." >&2;}
19951
{ (exit 1); exit 1; }; }
19953
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19954
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19955
Usually this means the macro was only invoked conditionally." >&5
19956
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19957
Usually this means the macro was only invoked conditionally." >&2;}
19958
{ (exit 1); exit 1; }; }
19960
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19961
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19962
Usually this means the macro was only invoked conditionally." >&5
19963
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19964
Usually this means the macro was only invoked conditionally." >&2;}
19965
{ (exit 1); exit 1; }; }
19968
: ${CONFIG_STATUS=./config.status}
19969
ac_clean_files_save=$ac_clean_files
19970
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19971
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19972
echo "$as_me: creating $CONFIG_STATUS" >&6;}
19973
cat >$CONFIG_STATUS <<_ACEOF
19975
# Generated by $as_me.
19976
# Run this file to recreate the current configuration.
19977
# Compiler output produced by configure, useful for debugging
19978
# configure, is in config.log if it exists.
19981
ac_cs_recheck=false
19983
SHELL=\${CONFIG_SHELL-$SHELL}
19986
cat >>$CONFIG_STATUS <<\_ACEOF
19987
## --------------------- ##
19988
## M4sh Initialization. ##
19989
## --------------------- ##
19991
# Be more Bourne compatible
19992
DUALCASE=1; export DUALCASE # for MKS sh
19993
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19996
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19997
# is contrary to our usage. Disable this feature.
19998
alias -g '${1+"$@"}'='"$@"'
19999
setopt NO_GLOB_SUBST
20001
case `(set -o) 2>/dev/null` in
20002
*posix*) set -o posix ;;
20011
# Avoid depending upon Character Ranges.
20012
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20013
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20014
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20015
as_cr_digits='0123456789'
20016
as_cr_alnum=$as_cr_Letters$as_cr_digits
20018
# The user is always right.
20019
if test "${PATH_SEPARATOR+set}" != set; then
20020
echo "#! /bin/sh" >conf$$.sh
20021
echo "exit 0" >>conf$$.sh
20023
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20031
# Support unset when possible.
20032
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20040
# We need space, tab and new line, in precisely that order. Quoting is
20041
# there to prevent editors from complaining about space-tab.
20042
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20043
# splitting by setting IFS to empty value.)
20048
# Find who we are. Look in the path if we contain no directory separator.
20050
*[\\/]* ) as_myself=$0 ;;
20051
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20052
for as_dir in $PATH
20055
test -z "$as_dir" && as_dir=.
20056
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20062
# We did not find ourselves, most probably we were run as `sh COMMAND'
20063
# in which case we are not to be found in the path.
20064
if test "x$as_myself" = x; then
20067
if test ! -f "$as_myself"; then
20068
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20069
{ (exit 1); exit 1; }
20072
# Work around bugs in pre-3.0 UWIN ksh.
20073
for as_var in ENV MAIL MAILPATH
20074
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20082
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20083
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20084
LC_TELEPHONE LC_TIME
20086
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20087
eval $as_var=C; export $as_var
20089
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20093
# Required to use basename.
20094
if expr a : '\(a\)' >/dev/null 2>&1 &&
20095
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20101
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20102
as_basename=basename
20108
# Name of the executable.
20109
as_me=`$as_basename -- "$0" ||
20110
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20111
X"$0" : 'X\(//\)$' \| \
20112
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20114
sed '/^.*\/\([^/][^/]*\)\/*$/{
20133
as_lineno_1=$LINENO
20134
as_lineno_2=$LINENO
20135
test "x$as_lineno_1" != "x$as_lineno_2" &&
20136
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20138
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20139
# uniformly replaced by the line number. The first 'sed' inserts a
20140
# line-number line after each line using $LINENO; the second 'sed'
20141
# does the real work. The second script uses 'N' to pair each
20142
# line-number line with the line containing $LINENO, and appends
20143
# trailing '-' during substitution so that $LINENO is not a special
20144
# case at line end.
20145
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20146
# scripts with optimization help from Paolo Bonzini. Blame Lee
20147
# E. McMahon (1931-1989) for sed's syntax. :-)
20159
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20162
' >$as_me.lineno &&
20163
chmod +x "$as_me.lineno" ||
20164
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20165
{ (exit 1); exit 1; }; }
20167
# Don't try to exec as it changes $[0], causing all sort of problems
20168
# (the dirname of $[0] is not the place where we might find the
20169
# original and so on. Autoconf is especially sensitive to this).
20170
. "./$as_me.lineno"
20171
# Exit status is that of the last command.
20176
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20182
ECHO_C= ECHO_N= ECHO_T=
20183
case `echo -n x` in
20185
case `echo 'x\c'` in
20186
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
20193
if expr a : '\(a\)' >/dev/null 2>&1 &&
20194
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20200
rm -f conf$$ conf$$.exe conf$$.file
20201
if test -d conf$$.dir; then
20202
rm -f conf$$.dir/conf$$.file
20208
if ln -s conf$$.file conf$$ 2>/dev/null; then
20210
# ... but there are two gotchas:
20211
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20212
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20213
# In both cases, we have to default to `cp -p'.
20214
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20216
elif ln conf$$.file conf$$ 2>/dev/null; then
20221
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20222
rmdir conf$$.dir 2>/dev/null
20224
if mkdir -p . 2>/dev/null; then
20227
test -d ./-p && rmdir ./-p
20231
if test -x / >/dev/null 2>&1; then
20232
as_test_x='test -x'
20234
if ls -dL / >/dev/null 2>&1; then
20241
if test -d "$1"; then
20247
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20248
???[sx]*):;;*)false;;esac;fi
20252
as_executable_p=$as_test_x
20254
# Sed expression to map a string onto a valid CPP name.
20255
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20257
# Sed expression to map a string onto a valid variable name.
20258
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20263
# Save the log message, to keep $[0] and so on meaningful, and to
20264
# report actual input values of CONFIG_FILES etc. instead of their
20265
# values after options handling.
20267
This file was extended by $as_me, which was
20268
generated by GNU Autoconf 2.61. Invocation command line was
20270
CONFIG_FILES = $CONFIG_FILES
20271
CONFIG_HEADERS = $CONFIG_HEADERS
20272
CONFIG_LINKS = $CONFIG_LINKS
20273
CONFIG_COMMANDS = $CONFIG_COMMANDS
20276
on `(hostname || uname -n) 2>/dev/null | sed 1q`
20281
cat >>$CONFIG_STATUS <<_ACEOF
20282
# Files that config.status was made for.
20283
config_files="$ac_config_files"
20284
config_commands="$ac_config_commands"
20288
cat >>$CONFIG_STATUS <<\_ACEOF
20290
\`$as_me' instantiates files from templates according to the
20291
current configuration.
20293
Usage: $0 [OPTIONS] [FILE]...
20295
-h, --help print this help, then exit
20296
-V, --version print version number and configuration settings, then exit
20297
-q, --quiet do not print progress messages
20298
-d, --debug don't remove temporary files
20299
--recheck update $as_me by reconfiguring in the same conditions
20300
--file=FILE[:TEMPLATE]
20301
instantiate the configuration file FILE
20303
Configuration files:
20306
Configuration commands:
20309
Report bugs to <bug-autoconf@gnu.org>."
20312
cat >>$CONFIG_STATUS <<_ACEOF
20315
configured by $0, generated by GNU Autoconf 2.61,
20316
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20318
Copyright (C) 2006 Free Software Foundation, Inc.
20319
This config.status script is free software; the Free Software Foundation
20320
gives unlimited permission to copy, distribute and modify it."
20328
cat >>$CONFIG_STATUS <<\_ACEOF
20329
# If no file are specified by the user, then we need to provide default
20330
# value. By we need to know if files were specified by the user.
20336
ac_option=`expr "X$1" : 'X\([^=]*\)='`
20337
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20348
# Handling of the options.
20349
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20351
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20352
echo "$ac_cs_version"; exit ;;
20353
--debug | --debu | --deb | --de | --d | -d )
20355
--file | --fil | --fi | --f )
20357
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20358
ac_need_defaults=false;;
20359
--he | --h | --help | --hel | -h )
20360
echo "$ac_cs_usage"; exit ;;
20361
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20362
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20365
# This is an error.
20366
-*) { echo "$as_me: error: unrecognized option: $1
20367
Try \`$0 --help' for more information." >&2
20368
{ (exit 1); exit 1; }; } ;;
20370
*) ac_config_targets="$ac_config_targets $1"
20371
ac_need_defaults=false ;;
20377
ac_configure_extra_args=
20379
if $ac_cs_silent; then
20381
ac_configure_extra_args="$ac_configure_extra_args --silent"
20385
cat >>$CONFIG_STATUS <<_ACEOF
20386
if \$ac_cs_recheck; then
20387
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20388
CONFIG_SHELL=$SHELL
20389
export CONFIG_SHELL
20390
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20394
cat >>$CONFIG_STATUS <<\_ACEOF
20398
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20399
## Running $as_me. ##
20405
cat >>$CONFIG_STATUS <<_ACEOF
20409
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20413
cat >>$CONFIG_STATUS <<\_ACEOF
20415
# Handling of arguments.
20416
for ac_config_target in $ac_config_targets
20418
case $ac_config_target in
20419
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20420
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20421
"m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20422
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20424
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20425
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20426
{ (exit 1); exit 1; }; };;
20431
# If the user did not use the arguments to specify the items to instantiate,
20432
# then the envvar interface is used. Set only those that are not.
20433
# We use the long form for the default assignment because of an extremely
20434
# bizarre bug on SunOS 4.1.3.
20435
if $ac_need_defaults; then
20436
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20437
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20440
# Have a temporary directory for convenience. Make it in the build tree
20441
# simply because there is no reason against having it here, and in addition,
20442
# creating and moving files from /tmp can sometimes cause problems.
20443
# Hook for its removal unless debugging.
20444
# Note that there is a small window in which the directory will not be cleaned:
20445
# after its creation but before its name has been assigned to `$tmp'.
20449
trap 'exit_status=$?
20450
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20452
trap '{ (exit 1); exit 1; }' 1 2 13 15
20454
# Create a (secure) tmp directory for tmp files.
20457
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20458
test -n "$tmp" && test -d "$tmp"
20461
tmp=./conf$$-$RANDOM
20462
(umask 077 && mkdir "$tmp")
20465
echo "$me: cannot create a temporary directory in ." >&2
20466
{ (exit 1); exit 1; }
20470
# Set up the sed scripts for CONFIG_FILES section.
20473
# No need to generate the scripts if there are no CONFIG_FILES.
20474
# This happens for instance when ./config.status config.h
20475
if test -n "$CONFIG_FILES"; then
20482
for ac_last_try in false false false false false :; do
20483
cat >conf$$subs.sed <<_ACEOF
20484
SHELL!$SHELL$ac_delim
20485
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20486
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20487
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20488
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20489
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20490
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20491
exec_prefix!$exec_prefix$ac_delim
20492
prefix!$prefix$ac_delim
20493
program_transform_name!$program_transform_name$ac_delim
20494
bindir!$bindir$ac_delim
20495
sbindir!$sbindir$ac_delim
20496
libexecdir!$libexecdir$ac_delim
20497
datarootdir!$datarootdir$ac_delim
20498
datadir!$datadir$ac_delim
20499
sysconfdir!$sysconfdir$ac_delim
20500
sharedstatedir!$sharedstatedir$ac_delim
20501
localstatedir!$localstatedir$ac_delim
20502
includedir!$includedir$ac_delim
20503
oldincludedir!$oldincludedir$ac_delim
20504
docdir!$docdir$ac_delim
20505
infodir!$infodir$ac_delim
20506
htmldir!$htmldir$ac_delim
20507
dvidir!$dvidir$ac_delim
20508
pdfdir!$pdfdir$ac_delim
20509
psdir!$psdir$ac_delim
20510
libdir!$libdir$ac_delim
20511
localedir!$localedir$ac_delim
20512
mandir!$mandir$ac_delim
20513
DEFS!$DEFS$ac_delim
20514
ECHO_C!$ECHO_C$ac_delim
20515
ECHO_N!$ECHO_N$ac_delim
20516
ECHO_T!$ECHO_T$ac_delim
20517
LIBS!$LIBS$ac_delim
20518
build_alias!$build_alias$ac_delim
20519
host_alias!$host_alias$ac_delim
20520
target_alias!$target_alias$ac_delim
20521
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20522
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20523
INSTALL_DATA!$INSTALL_DATA$ac_delim
20524
am__isrc!$am__isrc$ac_delim
20525
CYGPATH_W!$CYGPATH_W$ac_delim
20526
PACKAGE!$PACKAGE$ac_delim
20527
VERSION!$VERSION$ac_delim
20528
ACLOCAL!$ACLOCAL$ac_delim
20529
AUTOCONF!$AUTOCONF$ac_delim
20530
AUTOMAKE!$AUTOMAKE$ac_delim
20531
AUTOHEADER!$AUTOHEADER$ac_delim
20532
MAKEINFO!$MAKEINFO$ac_delim
20533
install_sh!$install_sh$ac_delim
20534
STRIP!$STRIP$ac_delim
20535
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20536
mkdir_p!$mkdir_p$ac_delim
20538
SET_MAKE!$SET_MAKE$ac_delim
20539
am__leading_dot!$am__leading_dot$ac_delim
20540
AMTAR!$AMTAR$ac_delim
20541
am__tar!$am__tar$ac_delim
20542
am__untar!$am__untar$ac_delim
20544
CFLAGS!$CFLAGS$ac_delim
20545
LDFLAGS!$LDFLAGS$ac_delim
20546
CPPFLAGS!$CPPFLAGS$ac_delim
20547
ac_ct_CC!$ac_ct_CC$ac_delim
20548
EXEEXT!$EXEEXT$ac_delim
20549
OBJEXT!$OBJEXT$ac_delim
20550
DEPDIR!$DEPDIR$ac_delim
20551
am__include!$am__include$ac_delim
20552
am__quote!$am__quote$ac_delim
20553
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20554
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20555
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20556
CCDEPMODE!$CCDEPMODE$ac_delim
20557
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20558
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20559
build!$build$ac_delim
20560
build_cpu!$build_cpu$ac_delim
20561
build_vendor!$build_vendor$ac_delim
20562
build_os!$build_os$ac_delim
20563
host!$host$ac_delim
20564
host_cpu!$host_cpu$ac_delim
20565
host_vendor!$host_vendor$ac_delim
20566
host_os!$host_os$ac_delim
20568
GREP!$GREP$ac_delim
20569
EGREP!$EGREP$ac_delim
20570
LN_S!$LN_S$ac_delim
20571
ECHO!$ECHO$ac_delim
20573
RANLIB!$RANLIB$ac_delim
20574
DLLTOOL!$DLLTOOL$ac_delim
20576
OBJDUMP!$OBJDUMP$ac_delim
20579
CXXFLAGS!$CXXFLAGS$ac_delim
20580
ac_ct_CXX!$ac_ct_CXX$ac_delim
20583
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20585
elif $ac_last_try; then
20586
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20587
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20588
{ (exit 1); exit 1; }; }
20590
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20594
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20595
if test -n "$ac_eof"; then
20596
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20597
ac_eof=`expr $ac_eof + 1`
20600
cat >>$CONFIG_STATUS <<_ACEOF
20601
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20602
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20605
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20606
s/^/s,@/; s/!/@,|#_!!_#|/
20609
s/'"$ac_delim"'$/,g/; t
20611
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20612
' >>$CONFIG_STATUS <conf$$subs.sed
20613
rm -f conf$$subs.sed
20614
cat >>$CONFIG_STATUS <<_ACEOF
20620
for ac_last_try in false false false false false :; do
20621
cat >conf$$subs.sed <<_ACEOF
20622
CXXDEPMODE!$CXXDEPMODE$ac_delim
20623
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20624
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20625
CXXCPP!$CXXCPP$ac_delim
20627
FFLAGS!$FFLAGS$ac_delim
20628
ac_ct_F77!$ac_ct_F77$ac_delim
20629
LIBTOOL!$LIBTOOL$ac_delim
20632
with_gnu_ld!$with_gnu_ld$ac_delim
20633
aclocaldir!$aclocaldir$ac_delim
20634
LIBDIRSTEM!$LIBDIRSTEM$ac_delim
20635
LIBOBJS!$LIBOBJS$ac_delim
20636
LTLIBOBJS!$LTLIBOBJS$ac_delim
20639
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
20641
elif $ac_last_try; then
20642
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20643
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20644
{ (exit 1); exit 1; }; }
20646
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20650
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20651
if test -n "$ac_eof"; then
20652
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20653
ac_eof=`expr $ac_eof + 1`
20656
cat >>$CONFIG_STATUS <<_ACEOF
20657
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20658
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20661
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20662
s/^/s,@/; s/!/@,|#_!!_#|/
20665
s/'"$ac_delim"'$/,g/; t
20667
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20668
' >>$CONFIG_STATUS <conf$$subs.sed
20669
rm -f conf$$subs.sed
20670
cat >>$CONFIG_STATUS <<_ACEOF
20677
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20678
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20679
# trailing colons and then remove the whole line if VPATH becomes empty
20680
# (actually we leave an empty line to preserve line numbers).
20681
if test "x$srcdir" = x.; then
20682
ac_vpsub='/^[ ]*VPATH[ ]*=/{
20683
s/:*\$(srcdir):*/:/
20684
s/:*\${srcdir}:*/:/
20686
s/^\([^=]*=[ ]*\):*/\1/
20692
cat >>$CONFIG_STATUS <<\_ACEOF
20693
fi # test -n "$CONFIG_FILES"
20696
for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
20699
:[FHLC]) ac_mode=$ac_tag; continue;;
20701
case $ac_mode$ac_tag in
20703
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20704
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20705
{ (exit 1); exit 1; }; };;
20706
:[FH]-) ac_tag=-:-;;
20707
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20724
-) ac_f="$tmp/stdin";;
20725
*) # Look for the file first in the build tree, then in the source tree
20726
# (if the path is not absolute). The absolute path cannot be DOS-style,
20727
# because $ac_f cannot contain `:'.
20731
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20733
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20734
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20735
{ (exit 1); exit 1; }; };;
20737
ac_file_inputs="$ac_file_inputs $ac_f"
20740
# Let's still pretend it is `configure' which instantiates (i.e., don't
20741
# use $as_me), people would be surprised to read:
20742
# /* config.h. Generated by config.status. */
20743
configure_input="Generated from "`IFS=:
20744
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20745
if test x"$ac_file" != x-; then
20746
configure_input="$ac_file. $configure_input"
20747
{ echo "$as_me:$LINENO: creating $ac_file" >&5
20748
echo "$as_me: creating $ac_file" >&6;}
20752
*:-:* | *:-) cat >"$tmp/stdin";;
20757
ac_dir=`$as_dirname -- "$ac_file" ||
20758
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20759
X"$ac_file" : 'X\(//\)[^/]' \| \
20760
X"$ac_file" : 'X\(//\)$' \| \
20761
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20763
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20767
/^X\(\/\/\)[^/].*/{
20782
-*) as_dir=./$as_dir;;
20784
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20788
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20789
*) as_qdir=$as_dir;;
20791
as_dirs="'$as_qdir' $as_dirs"
20792
as_dir=`$as_dirname -- "$as_dir" ||
20793
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20794
X"$as_dir" : 'X\(//\)[^/]' \| \
20795
X"$as_dir" : 'X\(//\)$' \| \
20796
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20798
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20802
/^X\(\/\/\)[^/].*/{
20815
test -d "$as_dir" && break
20817
test -z "$as_dirs" || eval "mkdir $as_dirs"
20818
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20819
echo "$as_me: error: cannot create directory $as_dir" >&2;}
20820
{ (exit 1); exit 1; }; }; }
20824
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20826
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20827
# A ".." for each directory in $ac_dir_suffix.
20828
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20829
case $ac_top_builddir_sub in
20830
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20831
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20834
ac_abs_top_builddir=$ac_pwd
20835
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20836
# for backward compatibility:
20837
ac_top_builddir=$ac_top_build_prefix
20840
.) # We are building in place.
20842
ac_top_srcdir=$ac_top_builddir_sub
20843
ac_abs_top_srcdir=$ac_pwd ;;
20844
[\\/]* | ?:[\\/]* ) # Absolute name.
20845
ac_srcdir=$srcdir$ac_dir_suffix;
20846
ac_top_srcdir=$srcdir
20847
ac_abs_top_srcdir=$srcdir ;;
20848
*) # Relative name.
20849
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20850
ac_top_srcdir=$ac_top_build_prefix$srcdir
20851
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20853
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20863
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20864
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20866
ac_MKDIR_P=$MKDIR_P
20868
[\\/$]* | ?:[\\/]* ) ;;
20869
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20873
cat >>$CONFIG_STATUS <<\_ACEOF
20874
# If the template does not know about datarootdir, expand it.
20875
# FIXME: This hack should be removed a few years after 2.60.
20876
ac_datarootdir_hack=; ac_datarootdir_seen=
20878
case `sed -n '/datarootdir/ {
20887
' $ac_file_inputs` in
20888
*datarootdir*) ac_datarootdir_seen=yes;;
20889
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20890
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20891
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20893
cat >>$CONFIG_STATUS <<_ACEOF
20894
ac_datarootdir_hack='
20895
s&@datadir@&$datadir&g
20896
s&@docdir@&$docdir&g
20897
s&@infodir@&$infodir&g
20898
s&@localedir@&$localedir&g
20899
s&@mandir@&$mandir&g
20900
s&\\\${datarootdir}&$datarootdir&g' ;;
20904
# Neutralize VPATH when `$srcdir' = `.'.
20905
# Shell code in configure.ac might set extrasub.
20906
# FIXME: do we really want to maintain this feature?
20907
cat >>$CONFIG_STATUS <<_ACEOF
20911
cat >>$CONFIG_STATUS <<\_ACEOF
20913
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20914
s&@configure_input@&$configure_input&;t t
20915
s&@top_builddir@&$ac_top_builddir_sub&;t t
20916
s&@srcdir@&$ac_srcdir&;t t
20917
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20918
s&@top_srcdir@&$ac_top_srcdir&;t t
20919
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20920
s&@builddir@&$ac_builddir&;t t
20921
s&@abs_builddir@&$ac_abs_builddir&;t t
20922
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20923
s&@INSTALL@&$ac_INSTALL&;t t
20924
s&@MKDIR_P@&$ac_MKDIR_P&;t t
20925
$ac_datarootdir_hack
20926
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20928
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20929
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20930
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20931
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20932
which seems to be undefined. Please make sure it is defined." >&5
20933
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20934
which seems to be undefined. Please make sure it is defined." >&2;}
20938
-) cat "$tmp/out"; rm -f "$tmp/out";;
20939
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20944
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20945
echo "$as_me: executing $ac_file commands" >&6;}
20950
case $ac_file$ac_mode in
20951
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20952
# Strip MF so we end up with the name of the file.
20953
mf=`echo "$mf" | sed -e 's/:.*$//'`
20954
# Check whether this is an Automake generated Makefile or not.
20955
# We used to match only the files named `Makefile.in', but
20956
# some people rename them; so instead we look at the file content.
20957
# Grep'ing the first line is not enough: some people post-process
20958
# each Makefile.in and add a new line on top of each file to say so.
20959
# Grep'ing the whole file is not good either: AIX grep has a line
20960
# limit of 2048, but all sed's we know have understand at least 4000.
20961
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
20962
dirpart=`$as_dirname -- "$mf" ||
20963
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20964
X"$mf" : 'X\(//\)[^/]' \| \
20965
X"$mf" : 'X\(//\)$' \| \
20966
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20968
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20972
/^X\(\/\/\)[^/].*/{
20988
# Extract the definition of DEPDIR, am__include, and am__quote
20989
# from the Makefile without running `make'.
20990
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20991
test -z "$DEPDIR" && continue
20992
am__include=`sed -n 's/^am__include = //p' < "$mf"`
20993
test -z "am__include" && continue
20994
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20995
# When using ansi2knr, U may be empty or an underscore; expand it
20996
U=`sed -n 's/^U = //p' < "$mf"`
20997
# Find all dependency output files, they are included files with
20998
# $(DEPDIR) in their names. We invoke sed twice because it is the
20999
# simplest approach to changing $(DEPDIR) to its actual value in the
21001
for file in `sed -n "
21002
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21003
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21004
# Make sure the directory exists.
21005
test -f "$dirpart/$file" && continue
21006
fdir=`$as_dirname -- "$file" ||
21007
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008
X"$file" : 'X\(//\)[^/]' \| \
21009
X"$file" : 'X\(//\)$' \| \
21010
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21012
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21016
/^X\(\/\/\)[^/].*/{
21029
{ as_dir=$dirpart/$fdir
21031
-*) as_dir=./$as_dir;;
21033
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21037
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21038
*) as_qdir=$as_dir;;
21040
as_dirs="'$as_qdir' $as_dirs"
21041
as_dir=`$as_dirname -- "$as_dir" ||
21042
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21043
X"$as_dir" : 'X\(//\)[^/]' \| \
21044
X"$as_dir" : 'X\(//\)$' \| \
21045
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21047
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21051
/^X\(\/\/\)[^/].*/{
21064
test -d "$as_dir" && break
21066
test -z "$as_dirs" || eval "mkdir $as_dirs"
21067
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21068
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21069
{ (exit 1); exit 1; }; }; }
21070
# echo "creating $dirpart/$file"
21071
echo '# dummy' > "$dirpart/$file"
21076
sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
21077
mv $ac_file.tmp $ac_file
21084
{ (exit 0); exit 0; }
21086
chmod +x $CONFIG_STATUS
21087
ac_clean_files=$ac_clean_files_save
21090
# configure is writing to config.log, and then calls config.status.
21091
# config.status does its own redirection, appending to config.log.
21092
# Unfortunately, on DOS this fails, as config.log is still kept open
21093
# by configure, so config.status won't be able to write to it; its
21094
# output is simply discarded. So we exec the FD to /dev/null,
21095
# effectively closing config.log, so it can be properly (re)opened and
21096
# appended to by config.status. When coming back to configure, we
21097
# need to make the FD available again.
21098
if test "$no_create" != yes; then
21100
ac_config_status_args=
21101
test "$silent" = yes &&
21102
ac_config_status_args="$ac_config_status_args --quiet"
21104
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21106
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21107
# would make configure fail if this is the last instruction.
21108
$ac_cs_success || { (exit 1); exit 1; }