2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for lxc 0.6.2.
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.
728
PACKAGE_TARNAME='lxc'
729
PACKAGE_VERSION='0.6.2'
730
PACKAGE_STRING='lxc 0.6.2'
733
ac_unique_file="configure.ac"
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
889
ac_precious_vars='build_alias
906
# Initialize some variables set by options.
908
ac_init_version=false
909
# The variables have the same names as the options, with
910
# dashes changed to underlines.
918
program_transform_name=s,x,x,
926
# Installation directory options.
927
# These are left unexpanded so users can "make install exec_prefix=/foo"
928
# and all the variables that are supposed to be based on exec_prefix
929
# by default will actually change.
930
# Use braces instead of parens because sh, perl, etc. also accept them.
931
# (The list follows the same order as the GNU Coding Standards.)
932
bindir='${exec_prefix}/bin'
933
sbindir='${exec_prefix}/sbin'
934
libexecdir='${exec_prefix}/libexec'
935
datarootdir='${prefix}/share'
936
datadir='${datarootdir}'
937
sysconfdir='${prefix}/etc'
938
sharedstatedir='${prefix}/com'
939
localstatedir='${prefix}/var'
940
includedir='${prefix}/include'
941
oldincludedir='/usr/include'
942
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943
infodir='${datarootdir}/info'
948
libdir='${exec_prefix}/lib'
949
localedir='${datarootdir}/locale'
950
mandir='${datarootdir}/man'
956
# If the previous option needs an argument, assign it.
957
if test -n "$ac_prev"; then
958
eval $ac_prev=\$ac_option
964
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968
# Accept the important Cygnus configure options, so we can diagnose typos.
970
case $ac_dashdash$ac_option in
974
-bindir | --bindir | --bindi | --bind | --bin | --bi)
976
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979
-build | --build | --buil | --bui | --bu)
980
ac_prev=build_alias ;;
981
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
982
build_alias=$ac_optarg ;;
984
-cache-file | --cache-file | --cache-fil | --cache-fi \
985
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986
ac_prev=cache_file ;;
987
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989
cache_file=$ac_optarg ;;
992
cache_file=config.cache ;;
994
-datadir | --datadir | --datadi | --datad)
996
-datadir=* | --datadir=* | --datadi=* | --datad=*)
997
datadir=$ac_optarg ;;
999
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000
| --dataroo | --dataro | --datar)
1001
ac_prev=datarootdir ;;
1002
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004
datarootdir=$ac_optarg ;;
1006
-disable-* | --disable-*)
1007
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008
# Reject names that are not valid shell variable names.
1009
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011
{ (exit 1); exit 1; }; }
1012
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013
eval enable_$ac_feature=no ;;
1015
-docdir | --docdir | --docdi | --doc | --do)
1017
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018
docdir=$ac_optarg ;;
1020
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023
dvidir=$ac_optarg ;;
1025
-enable-* | --enable-*)
1026
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027
# Reject names that are not valid shell variable names.
1028
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030
{ (exit 1); exit 1; }; }
1031
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032
eval enable_$ac_feature=\$ac_optarg ;;
1034
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036
| --exec | --exe | --ex)
1037
ac_prev=exec_prefix ;;
1038
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040
| --exec=* | --exe=* | --ex=*)
1041
exec_prefix=$ac_optarg ;;
1043
-gas | --gas | --ga | --g)
1044
# Obsolete; use --with-gas.
1047
-help | --help | --hel | --he | -h)
1048
ac_init_help=long ;;
1049
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050
ac_init_help=recursive ;;
1051
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052
ac_init_help=short ;;
1054
-host | --host | --hos | --ho)
1055
ac_prev=host_alias ;;
1056
-host=* | --host=* | --hos=* | --ho=*)
1057
host_alias=$ac_optarg ;;
1059
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063
htmldir=$ac_optarg ;;
1065
-includedir | --includedir | --includedi | --included | --include \
1066
| --includ | --inclu | --incl | --inc)
1067
ac_prev=includedir ;;
1068
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069
| --includ=* | --inclu=* | --incl=* | --inc=*)
1070
includedir=$ac_optarg ;;
1072
-infodir | --infodir | --infodi | --infod | --info | --inf)
1074
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075
infodir=$ac_optarg ;;
1077
-libdir | --libdir | --libdi | --libd)
1079
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1080
libdir=$ac_optarg ;;
1082
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083
| --libexe | --libex | --libe)
1084
ac_prev=libexecdir ;;
1085
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086
| --libexe=* | --libex=* | --libe=*)
1087
libexecdir=$ac_optarg ;;
1089
-localedir | --localedir | --localedi | --localed | --locale)
1090
ac_prev=localedir ;;
1091
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092
localedir=$ac_optarg ;;
1094
-localstatedir | --localstatedir | --localstatedi | --localstated \
1095
| --localstate | --localstat | --localsta | --localst | --locals)
1096
ac_prev=localstatedir ;;
1097
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099
localstatedir=$ac_optarg ;;
1101
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104
mandir=$ac_optarg ;;
1106
-nfp | --nfp | --nf)
1107
# Obsolete; use --without-fp.
1110
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111
| --no-cr | --no-c | -n)
1114
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120
| --oldin | --oldi | --old | --ol | --o)
1121
ac_prev=oldincludedir ;;
1122
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125
oldincludedir=$ac_optarg ;;
1127
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130
prefix=$ac_optarg ;;
1132
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1133
| --program-pre | --program-pr | --program-p)
1134
ac_prev=program_prefix ;;
1135
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1136
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137
program_prefix=$ac_optarg ;;
1139
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1140
| --program-suf | --program-su | --program-s)
1141
ac_prev=program_suffix ;;
1142
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1143
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144
program_suffix=$ac_optarg ;;
1146
-program-transform-name | --program-transform-name \
1147
| --program-transform-nam | --program-transform-na \
1148
| --program-transform-n | --program-transform- \
1149
| --program-transform | --program-transfor \
1150
| --program-transfo | --program-transf \
1151
| --program-trans | --program-tran \
1152
| --progr-tra | --program-tr | --program-t)
1153
ac_prev=program_transform_name ;;
1154
-program-transform-name=* | --program-transform-name=* \
1155
| --program-transform-nam=* | --program-transform-na=* \
1156
| --program-transform-n=* | --program-transform-=* \
1157
| --program-transform=* | --program-transfor=* \
1158
| --program-transfo=* | --program-transf=* \
1159
| --program-trans=* | --program-tran=* \
1160
| --progr-tra=* | --program-tr=* | --program-t=*)
1161
program_transform_name=$ac_optarg ;;
1163
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166
pdfdir=$ac_optarg ;;
1168
-psdir | --psdir | --psdi | --psd | --ps)
1170
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174
| -silent | --silent | --silen | --sile | --sil)
1177
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181
sbindir=$ac_optarg ;;
1183
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1184
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185
| --sharedst | --shareds | --shared | --share | --shar \
1187
ac_prev=sharedstatedir ;;
1188
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192
sharedstatedir=$ac_optarg ;;
1194
-site | --site | --sit)
1196
-site=* | --site=* | --sit=*)
1199
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202
srcdir=$ac_optarg ;;
1204
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205
| --syscon | --sysco | --sysc | --sys | --sy)
1206
ac_prev=sysconfdir ;;
1207
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209
sysconfdir=$ac_optarg ;;
1211
-target | --target | --targe | --targ | --tar | --ta | --t)
1212
ac_prev=target_alias ;;
1213
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214
target_alias=$ac_optarg ;;
1216
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1219
-version | --version | --versio | --versi | --vers | -V)
1220
ac_init_version=: ;;
1223
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224
# Reject names that are not valid shell variable names.
1225
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1227
{ (exit 1); exit 1; }; }
1228
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229
eval with_$ac_package=\$ac_optarg ;;
1231
-without-* | --without-*)
1232
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233
# Reject names that are not valid shell variable names.
1234
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1236
{ (exit 1); exit 1; }; }
1237
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238
eval with_$ac_package=no ;;
1241
# Obsolete; use --with-x.
1244
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245
| --x-incl | --x-inc | --x-in | --x-i)
1246
ac_prev=x_includes ;;
1247
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249
x_includes=$ac_optarg ;;
1251
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1252
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253
ac_prev=x_libraries ;;
1254
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256
x_libraries=$ac_optarg ;;
1258
-*) { echo "$as_me: error: unrecognized option: $ac_option
1259
Try \`$0 --help' for more information." >&2
1260
{ (exit 1); exit 1; }; }
1264
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265
# Reject names that are not valid shell variable names.
1266
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1267
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1268
{ (exit 1); exit 1; }; }
1269
eval $ac_envvar=\$ac_optarg
1270
export $ac_envvar ;;
1273
# FIXME: should be removed in autoconf 3.0.
1274
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283
if test -n "$ac_prev"; then
1284
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285
{ echo "$as_me: error: missing argument to $ac_option" >&2
1286
{ (exit 1); exit 1; }; }
1289
# Be sure to have absolute directory names.
1290
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291
datadir sysconfdir sharedstatedir localstatedir includedir \
1292
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293
libdir localedir mandir
1295
eval ac_val=\$$ac_var
1297
[\\/$]* | ?:[\\/]* ) continue;;
1298
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301
{ (exit 1); exit 1; }; }
1304
# There might be people who depend on the old broken behavior: `$host'
1305
# used to hold the argument of --host etc.
1306
# FIXME: To remove some day.
1309
target=$target_alias
1311
# FIXME: To remove some day.
1312
if test "x$host_alias" != x; then
1313
if test "x$build_alias" = x; then
1314
cross_compiling=maybe
1315
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316
If a cross compiler is detected then cross compile mode will be used." >&2
1317
elif test "x$build_alias" != "x$host_alias"; then
1323
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
test "$silent" = yes && exec 6>/dev/null
1328
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329
ac_ls_di=`ls -di .` &&
1330
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331
{ echo "$as_me: error: Working directory cannot be determined" >&2
1332
{ (exit 1); exit 1; }; }
1333
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1335
{ (exit 1); exit 1; }; }
1338
# Find the source files, if location was not specified.
1339
if test -z "$srcdir"; then
1340
ac_srcdir_defaulted=yes
1341
# Try the directory containing this script, then the parent directory.
1342
ac_confdir=`$as_dirname -- "$0" ||
1343
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344
X"$0" : 'X\(//\)[^/]' \| \
1345
X"$0" : 'X\(//\)$' \| \
1346
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1348
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366
if test ! -r "$srcdir/$ac_unique_file"; then
1370
ac_srcdir_defaulted=no
1372
if test ! -r "$srcdir/$ac_unique_file"; then
1373
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375
{ (exit 1); exit 1; }; }
1377
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1380
{ (exit 1); exit 1; }; }
1382
# When building in place, set srcdir=.
1383
if test "$ac_abs_confdir" = "$ac_pwd"; then
1386
# Remove unnecessary trailing slashes from srcdir.
1387
# Double slashes in file names in object file debugging info
1388
# mess up M-x gdb in Emacs.
1390
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392
for ac_var in $ac_precious_vars; do
1393
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394
eval ac_env_${ac_var}_value=\$${ac_var}
1395
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400
# Report the --help message.
1402
if test "$ac_init_help" = "long"; then
1403
# Omit some internal or obsolete options to make the list less imposing.
1404
# This message is too long to be a string in the A/UX 3.1 sh.
1406
\`configure' configures lxc 0.6.2 to adapt to many kinds of systems.
1408
Usage: $0 [OPTION]... [VAR=VALUE]...
1410
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411
VAR=VALUE. See below for descriptions of some of the useful variables.
1413
Defaults for the options are specified in brackets.
1416
-h, --help display this help and exit
1417
--help=short display options specific to this package
1418
--help=recursive display the short help of all the included packages
1419
-V, --version display version information and exit
1420
-q, --quiet, --silent do not print \`checking...' messages
1421
--cache-file=FILE cache test results in FILE [disabled]
1422
-C, --config-cache alias for \`--cache-file=config.cache'
1423
-n, --no-create do not create output files
1424
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1426
Installation directories:
1427
--prefix=PREFIX install architecture-independent files in PREFIX
1428
[$ac_default_prefix]
1429
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432
By default, \`make install' will install all the files in
1433
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435
for instance \`--prefix=\$HOME'.
1437
For better control, use the options below.
1439
Fine tuning of the installation directories:
1440
--bindir=DIR user executables [EPREFIX/bin]
1441
--sbindir=DIR system admin executables [EPREFIX/sbin]
1442
--libexecdir=DIR program executables [EPREFIX/libexec]
1443
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446
--libdir=DIR object code libraries [EPREFIX/lib]
1447
--includedir=DIR C header files [PREFIX/include]
1448
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1449
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451
--infodir=DIR info documentation [DATAROOTDIR/info]
1452
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453
--mandir=DIR man documentation [DATAROOTDIR/man]
1454
--docdir=DIR documentation root [DATAROOTDIR/doc/lxc]
1455
--htmldir=DIR html documentation [DOCDIR]
1456
--dvidir=DIR dvi documentation [DOCDIR]
1457
--pdfdir=DIR pdf documentation [DOCDIR]
1458
--psdir=DIR ps documentation [DOCDIR]
1464
--program-prefix=PREFIX prepend PREFIX to installed program names
1465
--program-suffix=SUFFIX append SUFFIX to installed program names
1466
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1469
--build=BUILD configure for building on BUILD [guessed]
1470
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1474
if test -n "$ac_init_help"; then
1475
case $ac_init_help in
1476
short | recursive ) echo "Configuration of lxc 0.6.2:";;
1481
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483
--disable-dependency-tracking speeds up one-time build
1484
--enable-dependency-tracking do not reject slow dependency extractors
1485
--enable-shared[=PKGS] build shared libraries [default=yes]
1486
--enable-static[=PKGS] build static libraries [default=yes]
1487
--enable-fast-install[=PKGS]
1488
optimize for fast installation [default=yes]
1489
--disable-libtool-lock avoid locking (might break parallel builds)
1490
--enable-test compile test program default=no
1493
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1496
--with-pic try to use only PIC/non-PIC objects [default=use
1498
--with-tags[=TAGS] include additional configurations [automatic]
1499
--with-kernel-release=RELEASE
1500
specify the "uname -r"-value to build for
1502
Some influential environment variables:
1503
CC C compiler command
1504
CFLAGS C compiler flags
1505
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506
nonstandard directory <lib dir>
1507
LIBS libraries to pass to the linker, e.g. -l<library>
1508
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509
you have headers in a nonstandard directory <include dir>
1511
CXX C++ compiler command
1512
CXXFLAGS C++ compiler flags
1513
CXXCPP C++ preprocessor
1514
F77 Fortran 77 compiler command
1515
FFLAGS Fortran 77 compiler flags
1517
Use these variables to override the choices made by `configure' or to help
1518
it to find libraries and programs with nonstandard names/locations.
1524
if test "$ac_init_help" = "recursive"; then
1525
# If there are subdirs, report their specific --help.
1526
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527
test -d "$ac_dir" || continue
1531
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534
# A ".." for each directory in $ac_dir_suffix.
1535
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536
case $ac_top_builddir_sub in
1537
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541
ac_abs_top_builddir=$ac_pwd
1542
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543
# for backward compatibility:
1544
ac_top_builddir=$ac_top_build_prefix
1547
.) # We are building in place.
1549
ac_top_srcdir=$ac_top_builddir_sub
1550
ac_abs_top_srcdir=$ac_pwd ;;
1551
[\\/]* | ?:[\\/]* ) # Absolute name.
1552
ac_srcdir=$srcdir$ac_dir_suffix;
1553
ac_top_srcdir=$srcdir
1554
ac_abs_top_srcdir=$srcdir ;;
1556
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557
ac_top_srcdir=$ac_top_build_prefix$srcdir
1558
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
cd "$ac_dir" || { ac_status=$?; continue; }
1563
# Check for guested configure.
1564
if test -f "$ac_srcdir/configure.gnu"; then
1566
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567
elif test -f "$ac_srcdir/configure"; then
1569
$SHELL "$ac_srcdir/configure" --help=recursive
1571
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573
cd "$ac_pwd" || { ac_status=$?; break; }
1577
test -n "$ac_init_help" && exit $ac_status
1578
if $ac_init_version; then
1581
generated by GNU Autoconf 2.61
1583
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585
This configure script is free software; the Free Software Foundation
1586
gives unlimited permission to copy, distribute and modify it.
1590
cat >config.log <<_ACEOF
1591
This file contains any messages produced by compilers while
1592
running configure, to aid debugging if configure makes a mistake.
1594
It was created by lxc $as_me 0.6.2, which was
1595
generated by GNU Autoconf 2.61. Invocation command line was
1607
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1617
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1618
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1620
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1621
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1622
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630
test -z "$as_dir" && as_dir=.
1631
echo "PATH: $as_dir"
1647
# Keep a trace of the command line.
1648
# Strip out --no-create and --no-recursion so they do not pile up.
1649
# Strip out --silent because we don't want to record it for future runs.
1650
# Also quote any args containing shell meta-characters.
1651
# Make two passes to allow for proper duplicate-argument suppression.
1655
ac_must_keep_next=false
1661
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663
| -silent | --silent | --silen | --sile | --sil)
1666
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1669
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672
if test $ac_must_keep_next = true; then
1673
ac_must_keep_next=false # Got value, back to normal.
1676
*=* | --config-cache | -C | -disable-* | --disable-* \
1677
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679
| -with-* | --with-* | -without-* | --without-* | --x)
1680
case "$ac_configure_args0 " in
1681
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1684
-* ) ac_must_keep_next=true ;;
1687
ac_configure_args="$ac_configure_args '$ac_arg'"
1692
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
# When interrupted or exit'd, cleanup temporary files, and complete
1696
# config.log. We remove comments because anyway the quotes in there
1697
# would cause problems or look ugly.
1698
# WARNING: Use '\'' to represent an apostrophe within the trap.
1699
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700
trap 'exit_status=$?
1701
# Save into config.log some information that might help in debugging.
1706
## ---------------- ##
1707
## Cache variables. ##
1708
## ---------------- ##
1711
# The following way of writing the cache mishandles newlines in values,
1713
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714
eval ac_val=\$$ac_var
1718
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1722
_ | IFS | as_nl) ;; #(
1723
*) $as_unset $ac_var ;;
1728
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729
*${as_nl}ac_space=\ *)
1731
"s/'\''/'\''\\\\'\'''\''/g;
1732
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1735
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743
## ----------------- ##
1744
## Output variables. ##
1745
## ----------------- ##
1748
for ac_var in $ac_subst_vars
1750
eval ac_val=\$$ac_var
1752
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754
echo "$ac_var='\''$ac_val'\''"
1758
if test -n "$ac_subst_files"; then
1760
## ------------------- ##
1761
## File substitutions. ##
1762
## ------------------- ##
1765
for ac_var in $ac_subst_files
1767
eval ac_val=\$$ac_var
1769
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771
echo "$ac_var='\''$ac_val'\''"
1776
if test -s confdefs.h; then
1786
test "$ac_signal" != 0 &&
1787
echo "$as_me: caught signal $ac_signal"
1788
echo "$as_me: exit $exit_status"
1790
rm -f core *.core core.conftest.* &&
1791
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1794
for ac_signal in 1 2 13 15; do
1795
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1800
rm -f -r conftest* confdefs.h
1802
# Predefined preprocessor variables.
1804
cat >>confdefs.h <<_ACEOF
1805
#define PACKAGE_NAME "$PACKAGE_NAME"
1809
cat >>confdefs.h <<_ACEOF
1810
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814
cat >>confdefs.h <<_ACEOF
1815
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1819
cat >>confdefs.h <<_ACEOF
1820
#define PACKAGE_STRING "$PACKAGE_STRING"
1824
cat >>confdefs.h <<_ACEOF
1825
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829
# Let the site file select an alternate cache file if it wants to.
1830
# Prefer explicitly selected file to automatically selected ones.
1831
if test -n "$CONFIG_SITE"; then
1832
set x "$CONFIG_SITE"
1833
elif test "x$prefix" != xNONE; then
1834
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836
set x "$ac_default_prefix/share/config.site" \
1837
"$ac_default_prefix/etc/config.site"
1842
if test -r "$ac_site_file"; then
1843
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844
echo "$as_me: loading site script $ac_site_file" >&6;}
1845
sed 's/^/| /' "$ac_site_file" >&5
1850
if test -r "$cache_file"; then
1851
# Some versions of bash will fail to source /dev/null (special
1852
# files actually), so we avoid doing that.
1853
if test -f "$cache_file"; then
1854
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855
echo "$as_me: loading cache $cache_file" >&6;}
1857
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1858
*) . "./$cache_file";;
1862
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863
echo "$as_me: creating cache $cache_file" >&6;}
1867
# Check that the precious variables saved in the cache have kept the same
1869
ac_cache_corrupted=false
1870
for ac_var in $ac_precious_vars; do
1871
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872
eval ac_new_set=\$ac_env_${ac_var}_set
1873
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874
eval ac_new_val=\$ac_env_${ac_var}_value
1875
case $ac_old_set,$ac_new_set in
1877
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879
ac_cache_corrupted=: ;;
1881
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883
ac_cache_corrupted=: ;;
1886
if test "x$ac_old_val" != "x$ac_new_val"; then
1887
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1890
echo "$as_me: former value: $ac_old_val" >&2;}
1891
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1892
echo "$as_me: current value: $ac_new_val" >&2;}
1893
ac_cache_corrupted=:
1896
# Pass precious variables to config.status.
1897
if test "$ac_new_set" = set; then
1899
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900
*) ac_arg=$ac_var=$ac_new_val ;;
1902
case " $ac_configure_args " in
1903
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1908
if $ac_cache_corrupted; then
1909
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913
{ (exit 1); exit 1; }; }
1941
ac_cpp='$CPP $CPPFLAGS'
1942
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950
for ac_dir in config "$srcdir"/config; do
1951
if test -f "$ac_dir/install-sh"; then
1953
ac_install_sh="$ac_aux_dir/install-sh -c"
1955
elif test -f "$ac_dir/install.sh"; then
1957
ac_install_sh="$ac_aux_dir/install.sh -c"
1959
elif test -f "$ac_dir/shtool"; then
1961
ac_install_sh="$ac_aux_dir/shtool install -c"
1965
if test -z "$ac_aux_dir"; then
1966
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1967
echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1968
{ (exit 1); exit 1; }; }
1971
# These three variables are undocumented and unsupported,
1972
# and are intended to be withdrawn in a future Autoconf release.
1973
# They can cause serious problems if a builder's source tree is in a directory
1974
# whose full name contains unusual characters.
1975
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1976
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1977
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1980
ac_config_headers="$ac_config_headers src/config.h"
1982
am__api_version='1.10'
1984
# Find a good install program. We prefer a C program (faster),
1985
# so one script is as good as another. But avoid the broken or
1986
# incompatible versions:
1987
# SysV /etc/install, /usr/sbin/install
1988
# SunOS /usr/etc/install
1989
# IRIX /sbin/install
1991
# AmigaOS /C/install, which installs bootblocks on floppy discs
1992
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1993
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1994
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1995
# OS/2's system install, which has a completely different semantic
1996
# ./install, which can be erroneously created by make from ./install.sh.
1997
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1998
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1999
if test -z "$INSTALL"; then
2000
if test "${ac_cv_path_install+set}" = set; then
2001
echo $ECHO_N "(cached) $ECHO_C" >&6
2003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007
test -z "$as_dir" && as_dir=.
2008
# Account for people who put trailing slashes in PATH elements.
2010
./ | .// | /cC/* | \
2011
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2012
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2015
# OSF1 and SCO ODT 3.0 have their own names for install.
2016
# Don't use installbsd from OSF since it installs stuff as root
2018
for ac_prog in ginstall scoinst install; do
2019
for ac_exec_ext in '' $ac_executable_extensions; do
2020
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2021
if test $ac_prog = install &&
2022
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023
# AIX install. It has an incompatible calling convention.
2025
elif test $ac_prog = install &&
2026
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2027
# program-specific install script used by HP pwplus--don't use.
2030
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2043
if test "${ac_cv_path_install+set}" = set; then
2044
INSTALL=$ac_cv_path_install
2046
# As a last resort, use the slow shell script. Don't cache a
2047
# value for INSTALL within a source directory, because that will
2048
# break other packages using the cache if that directory is
2049
# removed, or if the value is a relative name.
2050
INSTALL=$ac_install_sh
2053
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2054
echo "${ECHO_T}$INSTALL" >&6; }
2056
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2057
# It thinks the first close brace ends the variable substitution.
2058
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2060
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2062
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2064
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2065
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2068
echo timestamp > conftest.file
2069
# Do `set' in a subshell so we don't clobber the current shell's
2070
# arguments. Must try -L first in case configure is actually a
2071
# symlink; some systems play weird games with the mod time of symlinks
2072
# (eg FreeBSD returns the mod time of the symlink's containing
2075
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2076
if test "$*" = "X"; then
2078
set X `ls -t $srcdir/configure conftest.file`
2081
if test "$*" != "X $srcdir/configure conftest.file" \
2082
&& test "$*" != "X conftest.file $srcdir/configure"; then
2084
# If neither matched, then we have a broken ls. This can happen
2085
# if, for instance, CONFIG_SHELL is bash and it inherits a
2086
# broken ls alias from the environment. This has actually
2087
# happened. Such a system could not be considered "sane".
2088
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2089
alias in your environment" >&5
2090
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2091
alias in your environment" >&2;}
2092
{ (exit 1); exit 1; }; }
2095
test "$2" = conftest.file
2101
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2102
Check your system clock" >&5
2103
echo "$as_me: error: newly created file is older than distributed files!
2104
Check your system clock" >&2;}
2105
{ (exit 1); exit 1; }; }
2107
{ echo "$as_me:$LINENO: result: yes" >&5
2108
echo "${ECHO_T}yes" >&6; }
2109
test "$program_prefix" != NONE &&
2110
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111
# Use a double $ so make ignores it.
2112
test "$program_suffix" != NONE &&
2113
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114
# Double any \ or $. echo might interpret backslashes.
2115
# By default was `s,x,x', remove it if useless.
2116
cat <<\_ACEOF >conftest.sed
2117
s/[\\$]/&&/g;s/;s,x,x,$//
2119
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2122
# expand $ac_aux_dir to an absolute path
2123
am_aux_dir=`cd $ac_aux_dir && pwd`
2125
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2126
# Use eval to expand $SHELL
2127
if eval "$MISSING --run true"; then
2128
am_missing_run="$MISSING --run "
2131
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2132
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2135
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2136
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2137
if test -z "$MKDIR_P"; then
2138
if test "${ac_cv_path_mkdir+set}" = set; then
2139
echo $ECHO_N "(cached) $ECHO_C" >&6
2141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2145
test -z "$as_dir" && as_dir=.
2146
for ac_prog in mkdir gmkdir; do
2147
for ac_exec_ext in '' $ac_executable_extensions; do
2148
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2149
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2150
'mkdir (GNU coreutils) '* | \
2151
'mkdir (coreutils) '* | \
2152
'mkdir (fileutils) '4.1*)
2153
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2163
if test "${ac_cv_path_mkdir+set}" = set; then
2164
MKDIR_P="$ac_cv_path_mkdir -p"
2166
# As a last resort, use the slow shell script. Don't cache a
2167
# value for MKDIR_P within a source directory, because that will
2168
# break other packages using the cache if that directory is
2169
# removed, or if the value is a relative name.
2170
test -d ./--version && rmdir ./--version
2171
MKDIR_P="$ac_install_sh -d"
2174
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2175
echo "${ECHO_T}$MKDIR_P" >&6; }
2179
[\\/$]* | ?:[\\/]*) ;;
2180
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2183
for ac_prog in gawk mawk nawk awk
2185
# Extract the first word of "$ac_prog", so it can be a program name with args.
2186
set dummy $ac_prog; ac_word=$2
2187
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2188
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2189
if test "${ac_cv_prog_AWK+set}" = set; then
2190
echo $ECHO_N "(cached) $ECHO_C" >&6
2192
if test -n "$AWK"; then
2193
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199
test -z "$as_dir" && as_dir=.
2200
for ac_exec_ext in '' $ac_executable_extensions; do
2201
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2202
ac_cv_prog_AWK="$ac_prog"
2203
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213
if test -n "$AWK"; then
2214
{ echo "$as_me:$LINENO: result: $AWK" >&5
2215
echo "${ECHO_T}$AWK" >&6; }
2217
{ echo "$as_me:$LINENO: result: no" >&5
2218
echo "${ECHO_T}no" >&6; }
2222
test -n "$AWK" && break
2225
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2226
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2227
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2228
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2229
echo $ECHO_N "(cached) $ECHO_C" >&6
2231
cat >conftest.make <<\_ACEOF
2234
@echo '@@@%%%=$(MAKE)=@@@%%%'
2236
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2237
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2239
eval ac_cv_prog_make_${ac_make}_set=yes;;
2241
eval ac_cv_prog_make_${ac_make}_set=no;;
2245
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2246
{ echo "$as_me:$LINENO: result: yes" >&5
2247
echo "${ECHO_T}yes" >&6; }
2250
{ echo "$as_me:$LINENO: result: no" >&5
2251
echo "${ECHO_T}no" >&6; }
2252
SET_MAKE="MAKE=${MAKE-make}"
2255
rm -rf .tst 2>/dev/null
2256
mkdir .tst 2>/dev/null
2257
if test -d .tst; then
2262
rmdir .tst 2>/dev/null
2264
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2265
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2266
# is not polluted with repeated "-I."
2267
am__isrc=' -I$(srcdir)'
2268
# test to see if srcdir already configured
2269
if test -f $srcdir/config.status; then
2270
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2271
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2272
{ (exit 1); exit 1; }; }
2276
# test whether we have cygpath
2277
if test -z "$CYGPATH_W"; then
2278
if (cygpath --version) >/dev/null 2>/dev/null; then
2279
CYGPATH_W='cygpath -w'
2286
# Define the identity of the package.
2291
cat >>confdefs.h <<_ACEOF
2292
#define PACKAGE "$PACKAGE"
2296
cat >>confdefs.h <<_ACEOF
2297
#define VERSION "$VERSION"
2300
# Some tools Automake needs.
2302
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2305
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2308
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2311
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2314
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2316
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2318
# Installed binaries are usually stripped using `strip' when the user
2319
# run `make install-strip'. However `strip' might not be the right
2320
# tool to use in cross-compilation environments, therefore Automake
2321
# will honor the `STRIP' environment variable to overrule this program.
2322
if test "$cross_compiling" != no; then
2323
if test -n "$ac_tool_prefix"; then
2324
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325
set dummy ${ac_tool_prefix}strip; ac_word=$2
2326
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2327
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328
if test "${ac_cv_prog_STRIP+set}" = set; then
2329
echo $ECHO_N "(cached) $ECHO_C" >&6
2331
if test -n "$STRIP"; then
2332
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338
test -z "$as_dir" && as_dir=.
2339
for ac_exec_ext in '' $ac_executable_extensions; do
2340
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2342
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351
STRIP=$ac_cv_prog_STRIP
2352
if test -n "$STRIP"; then
2353
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2354
echo "${ECHO_T}$STRIP" >&6; }
2356
{ echo "$as_me:$LINENO: result: no" >&5
2357
echo "${ECHO_T}no" >&6; }
2362
if test -z "$ac_cv_prog_STRIP"; then
2364
# Extract the first word of "strip", so it can be a program name with args.
2365
set dummy strip; ac_word=$2
2366
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2367
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2369
echo $ECHO_N "(cached) $ECHO_C" >&6
2371
if test -n "$ac_ct_STRIP"; then
2372
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378
test -z "$as_dir" && as_dir=.
2379
for ac_exec_ext in '' $ac_executable_extensions; do
2380
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381
ac_cv_prog_ac_ct_STRIP="strip"
2382
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2392
if test -n "$ac_ct_STRIP"; then
2393
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2394
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2396
{ echo "$as_me:$LINENO: result: no" >&5
2397
echo "${ECHO_T}no" >&6; }
2400
if test "x$ac_ct_STRIP" = x; then
2403
case $cross_compiling:$ac_tool_warned in
2405
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406
whose name does not start with the host triplet. If you think this
2407
configuration is useful to you, please write to autoconf@gnu.org." >&5
2408
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409
whose name does not start with the host triplet. If you think this
2410
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411
ac_tool_warned=yes ;;
2416
STRIP="$ac_cv_prog_STRIP"
2420
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2422
# We need awk for the "check" target. The system "awk" is bad on
2424
# Always define AMTAR for backward compatibility.
2426
AMTAR=${AMTAR-"${am_missing_run}tar"}
2428
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2434
# Make sure we can run config.sub.
2435
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2436
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2437
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2438
{ (exit 1); exit 1; }; }
2440
{ echo "$as_me:$LINENO: checking build system type" >&5
2441
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2442
if test "${ac_cv_build+set}" = set; then
2443
echo $ECHO_N "(cached) $ECHO_C" >&6
2445
ac_build_alias=$build_alias
2446
test "x$ac_build_alias" = x &&
2447
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2448
test "x$ac_build_alias" = x &&
2449
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2450
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2451
{ (exit 1); exit 1; }; }
2452
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2453
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2454
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2455
{ (exit 1); exit 1; }; }
2458
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2459
echo "${ECHO_T}$ac_cv_build" >&6; }
2460
case $ac_cv_build in
2462
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2463
echo "$as_me: error: invalid value of canonical build" >&2;}
2464
{ (exit 1); exit 1; }; };;
2467
ac_save_IFS=$IFS; IFS='-'
2473
# Remember, the first character of IFS is used to create $*,
2474
# except with old shells:
2477
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2480
{ echo "$as_me:$LINENO: checking host system type" >&5
2481
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2482
if test "${ac_cv_host+set}" = set; then
2483
echo $ECHO_N "(cached) $ECHO_C" >&6
2485
if test "x$host_alias" = x; then
2486
ac_cv_host=$ac_cv_build
2488
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2489
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2490
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2491
{ (exit 1); exit 1; }; }
2495
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2496
echo "${ECHO_T}$ac_cv_host" >&6; }
2499
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2500
echo "$as_me: error: invalid value of canonical host" >&2;}
2501
{ (exit 1); exit 1; }; };;
2504
ac_save_IFS=$IFS; IFS='-'
2510
# Remember, the first character of IFS is used to create $*,
2511
# except with old shells:
2514
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2517
DEPDIR="${am__leading_dot}deps"
2519
ac_config_commands="$ac_config_commands depfiles"
2522
am_make=${MAKE-make}
2523
cat > confinc << 'END'
2528
# If we don't find an include directive, just comment out the code.
2529
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2530
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2534
# First try GNU make style include.
2535
echo "include confinc" > confmf
2536
# We grep out `Entering directory' and `Leaving directory'
2537
# messages which can occur if `w' ends up in MAKEFLAGS.
2538
# In particular we don't look at `^make:' because GNU make might
2539
# be invoked under some other name (usually "gmake"), in which
2540
# case it prints its new name instead of `make'.
2541
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2546
# Now try BSD make style include.
2547
if test "$am__include" = "#"; then
2548
echo '.include "confinc"' > confmf
2549
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2550
am__include=.include
2557
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2558
echo "${ECHO_T}$_am_result" >&6; }
2559
rm -f confinc confmf
2561
# Check whether --enable-dependency-tracking was given.
2562
if test "${enable_dependency_tracking+set}" = set; then
2563
enableval=$enable_dependency_tracking;
2566
if test "x$enable_dependency_tracking" != xno; then
2567
am_depcomp="$ac_aux_dir/depcomp"
2570
if test "x$enable_dependency_tracking" != xno; then
2580
ac_cpp='$CPP $CPPFLAGS'
2581
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2584
if test -n "$ac_tool_prefix"; then
2585
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2586
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2587
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589
if test "${ac_cv_prog_CC+set}" = set; then
2590
echo $ECHO_N "(cached) $ECHO_C" >&6
2592
if test -n "$CC"; then
2593
ac_cv_prog_CC="$CC" # Let the user override the test.
2595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599
test -z "$as_dir" && as_dir=.
2600
for ac_exec_ext in '' $ac_executable_extensions; do
2601
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2603
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613
if test -n "$CC"; then
2614
{ echo "$as_me:$LINENO: result: $CC" >&5
2615
echo "${ECHO_T}$CC" >&6; }
2617
{ echo "$as_me:$LINENO: result: no" >&5
2618
echo "${ECHO_T}no" >&6; }
2623
if test -z "$ac_cv_prog_CC"; then
2625
# Extract the first word of "gcc", so it can be a program name with args.
2626
set dummy gcc; ac_word=$2
2627
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2628
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2630
echo $ECHO_N "(cached) $ECHO_C" >&6
2632
if test -n "$ac_ct_CC"; then
2633
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639
test -z "$as_dir" && as_dir=.
2640
for ac_exec_ext in '' $ac_executable_extensions; do
2641
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642
ac_cv_prog_ac_ct_CC="gcc"
2643
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2653
if test -n "$ac_ct_CC"; then
2654
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2655
echo "${ECHO_T}$ac_ct_CC" >&6; }
2657
{ echo "$as_me:$LINENO: result: no" >&5
2658
echo "${ECHO_T}no" >&6; }
2661
if test "x$ac_ct_CC" = x; then
2664
case $cross_compiling:$ac_tool_warned in
2666
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2667
whose name does not start with the host triplet. If you think this
2668
configuration is useful to you, please write to autoconf@gnu.org." >&5
2669
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2670
whose name does not start with the host triplet. If you think this
2671
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2672
ac_tool_warned=yes ;;
2680
if test -z "$CC"; then
2681
if test -n "$ac_tool_prefix"; then
2682
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2683
set dummy ${ac_tool_prefix}cc; ac_word=$2
2684
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2685
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686
if test "${ac_cv_prog_CC+set}" = set; then
2687
echo $ECHO_N "(cached) $ECHO_C" >&6
2689
if test -n "$CC"; then
2690
ac_cv_prog_CC="$CC" # Let the user override the test.
2692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696
test -z "$as_dir" && as_dir=.
2697
for ac_exec_ext in '' $ac_executable_extensions; do
2698
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699
ac_cv_prog_CC="${ac_tool_prefix}cc"
2700
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710
if test -n "$CC"; then
2711
{ echo "$as_me:$LINENO: result: $CC" >&5
2712
echo "${ECHO_T}$CC" >&6; }
2714
{ echo "$as_me:$LINENO: result: no" >&5
2715
echo "${ECHO_T}no" >&6; }
2721
if test -z "$CC"; then
2722
# Extract the first word of "cc", so it can be a program name with args.
2723
set dummy cc; ac_word=$2
2724
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2725
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726
if test "${ac_cv_prog_CC+set}" = set; then
2727
echo $ECHO_N "(cached) $ECHO_C" >&6
2729
if test -n "$CC"; then
2730
ac_cv_prog_CC="$CC" # Let the user override the test.
2733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737
test -z "$as_dir" && as_dir=.
2738
for ac_exec_ext in '' $ac_executable_extensions; do
2739
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2741
ac_prog_rejected=yes
2745
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752
if test $ac_prog_rejected = yes; then
2753
# We found a bogon in the path, so make sure we never use it.
2754
set dummy $ac_cv_prog_CC
2756
if test $# != 0; then
2757
# We chose a different compiler from the bogus one.
2758
# However, it has the same basename, so the bogon will be chosen
2759
# first if we set CC to just the basename; use the full file name.
2761
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2767
if test -n "$CC"; then
2768
{ echo "$as_me:$LINENO: result: $CC" >&5
2769
echo "${ECHO_T}$CC" >&6; }
2771
{ echo "$as_me:$LINENO: result: no" >&5
2772
echo "${ECHO_T}no" >&6; }
2777
if test -z "$CC"; then
2778
if test -n "$ac_tool_prefix"; then
2779
for ac_prog in cl.exe
2781
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2782
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2783
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785
if test "${ac_cv_prog_CC+set}" = set; then
2786
echo $ECHO_N "(cached) $ECHO_C" >&6
2788
if test -n "$CC"; then
2789
ac_cv_prog_CC="$CC" # Let the user override the test.
2791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795
test -z "$as_dir" && as_dir=.
2796
for ac_exec_ext in '' $ac_executable_extensions; do
2797
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2799
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809
if test -n "$CC"; then
2810
{ echo "$as_me:$LINENO: result: $CC" >&5
2811
echo "${ECHO_T}$CC" >&6; }
2813
{ echo "$as_me:$LINENO: result: no" >&5
2814
echo "${ECHO_T}no" >&6; }
2818
test -n "$CC" && break
2821
if test -z "$CC"; then
2823
for ac_prog in cl.exe
2825
# Extract the first word of "$ac_prog", so it can be a program name with args.
2826
set dummy $ac_prog; ac_word=$2
2827
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2830
echo $ECHO_N "(cached) $ECHO_C" >&6
2832
if test -n "$ac_ct_CC"; then
2833
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839
test -z "$as_dir" && as_dir=.
2840
for ac_exec_ext in '' $ac_executable_extensions; do
2841
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842
ac_cv_prog_ac_ct_CC="$ac_prog"
2843
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2853
if test -n "$ac_ct_CC"; then
2854
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2855
echo "${ECHO_T}$ac_ct_CC" >&6; }
2857
{ echo "$as_me:$LINENO: result: no" >&5
2858
echo "${ECHO_T}no" >&6; }
2862
test -n "$ac_ct_CC" && break
2865
if test "x$ac_ct_CC" = x; then
2868
case $cross_compiling:$ac_tool_warned in
2870
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2871
whose name does not start with the host triplet. If you think this
2872
configuration is useful to you, please write to autoconf@gnu.org." >&5
2873
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2874
whose name does not start with the host triplet. If you think this
2875
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2876
ac_tool_warned=yes ;;
2885
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2886
See \`config.log' for more details." >&5
2887
echo "$as_me: error: no acceptable C compiler found in \$PATH
2888
See \`config.log' for more details." >&2;}
2889
{ (exit 1); exit 1; }; }
2891
# Provide some information about the compiler.
2892
echo "$as_me:$LINENO: checking for C compiler version" >&5
2893
ac_compiler=`set X $ac_compile; echo $2`
2894
{ (ac_try="$ac_compiler --version >&5"
2896
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897
*) ac_try_echo=$ac_try;;
2899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900
(eval "$ac_compiler --version >&5") 2>&5
2902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903
(exit $ac_status); }
2904
{ (ac_try="$ac_compiler -v >&5"
2906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907
*) ac_try_echo=$ac_try;;
2909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910
(eval "$ac_compiler -v >&5") 2>&5
2912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
(exit $ac_status); }
2914
{ (ac_try="$ac_compiler -V >&5"
2916
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917
*) ac_try_echo=$ac_try;;
2919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920
(eval "$ac_compiler -V >&5") 2>&5
2922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923
(exit $ac_status); }
2925
cat >conftest.$ac_ext <<_ACEOF
2928
cat confdefs.h >>conftest.$ac_ext
2929
cat >>conftest.$ac_ext <<_ACEOF
2930
/* end confdefs.h. */
2940
ac_clean_files_save=$ac_clean_files
2941
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2942
# Try to create an executable without -o first, disregard a.out.
2943
# It will help us diagnose broken compilers, and finding out an intuition
2945
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2946
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2947
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2949
# List of possible output files, starting from the most likely.
2950
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2951
# only as a last resort. b.out is created by i960 compilers.
2952
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2954
# The IRIX 6 linker writes into existing files which may not be
2955
# executable, retaining their permissions. Remove them first so a
2956
# subsequent execution test works.
2958
for ac_file in $ac_files
2961
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2962
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2967
if { (ac_try="$ac_link_default"
2969
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970
*) ac_try_echo=$ac_try;;
2972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973
(eval "$ac_link_default") 2>&5
2975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976
(exit $ac_status); }; then
2977
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2978
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2979
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2980
# so that the user can short-circuit this test for compilers unknown to
2982
for ac_file in $ac_files ''
2984
test -f "$ac_file" || continue
2986
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2989
# We found the default executable, but exeext='' is most
2993
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2995
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2997
# We set ac_cv_exeext here because the later test for it is not
2998
# safe: cross compilers may not add the suffix if given an `-o'
2999
# argument, so we may need to know it at that point already.
3000
# Even if this section looks crufty: it has the advantage of
3007
test "$ac_cv_exeext" = no && ac_cv_exeext=
3013
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3014
echo "${ECHO_T}$ac_file" >&6; }
3015
if test -z "$ac_file"; then
3016
echo "$as_me: failed program was:" >&5
3017
sed 's/^/| /' conftest.$ac_ext >&5
3019
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3020
See \`config.log' for more details." >&5
3021
echo "$as_me: error: C compiler cannot create executables
3022
See \`config.log' for more details." >&2;}
3023
{ (exit 77); exit 77; }; }
3026
ac_exeext=$ac_cv_exeext
3028
# Check that the compiler produces executables we can run. If not, either
3029
# the compiler is broken, or we cross compile.
3030
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3031
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3032
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3033
# If not cross compiling, check that we can run a simple program.
3034
if test "$cross_compiling" != yes; then
3035
if { ac_try='./$ac_file'
3036
{ (case "(($ac_try" in
3037
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038
*) ac_try_echo=$ac_try;;
3040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041
(eval "$ac_try") 2>&5
3043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044
(exit $ac_status); }; }; then
3047
if test "$cross_compiling" = maybe; then
3050
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3051
If you meant to cross compile, use \`--host'.
3052
See \`config.log' for more details." >&5
3053
echo "$as_me: error: cannot run C compiled programs.
3054
If you meant to cross compile, use \`--host'.
3055
See \`config.log' for more details." >&2;}
3056
{ (exit 1); exit 1; }; }
3060
{ echo "$as_me:$LINENO: result: yes" >&5
3061
echo "${ECHO_T}yes" >&6; }
3063
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3064
ac_clean_files=$ac_clean_files_save
3065
# Check that the compiler produces executables we can run. If not, either
3066
# the compiler is broken, or we cross compile.
3067
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3068
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3069
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3070
echo "${ECHO_T}$cross_compiling" >&6; }
3072
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3073
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3074
if { (ac_try="$ac_link"
3076
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077
*) ac_try_echo=$ac_try;;
3079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080
(eval "$ac_link") 2>&5
3082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083
(exit $ac_status); }; then
3084
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3085
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3086
# work properly (i.e., refer to `conftest.exe'), while it won't with
3088
for ac_file in conftest.exe conftest conftest.*; do
3089
test -f "$ac_file" || continue
3091
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3092
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3098
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3099
See \`config.log' for more details." >&5
3100
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3101
See \`config.log' for more details." >&2;}
3102
{ (exit 1); exit 1; }; }
3105
rm -f conftest$ac_cv_exeext
3106
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3107
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3109
rm -f conftest.$ac_ext
3110
EXEEXT=$ac_cv_exeext
3112
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3113
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3114
if test "${ac_cv_objext+set}" = set; then
3115
echo $ECHO_N "(cached) $ECHO_C" >&6
3117
cat >conftest.$ac_ext <<_ACEOF
3120
cat confdefs.h >>conftest.$ac_ext
3121
cat >>conftest.$ac_ext <<_ACEOF
3122
/* end confdefs.h. */
3132
rm -f conftest.o conftest.obj
3133
if { (ac_try="$ac_compile"
3135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136
*) ac_try_echo=$ac_try;;
3138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139
(eval "$ac_compile") 2>&5
3141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142
(exit $ac_status); }; then
3143
for ac_file in conftest.o conftest.obj conftest.*; do
3144
test -f "$ac_file" || continue;
3146
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3147
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3152
echo "$as_me: failed program was:" >&5
3153
sed 's/^/| /' conftest.$ac_ext >&5
3155
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3156
See \`config.log' for more details." >&5
3157
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3158
See \`config.log' for more details." >&2;}
3159
{ (exit 1); exit 1; }; }
3162
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3164
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3165
echo "${ECHO_T}$ac_cv_objext" >&6; }
3166
OBJEXT=$ac_cv_objext
3168
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3169
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3170
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3171
echo $ECHO_N "(cached) $ECHO_C" >&6
3173
cat >conftest.$ac_ext <<_ACEOF
3176
cat confdefs.h >>conftest.$ac_ext
3177
cat >>conftest.$ac_ext <<_ACEOF
3178
/* end confdefs.h. */
3191
rm -f conftest.$ac_objext
3192
if { (ac_try="$ac_compile"
3194
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195
*) ac_try_echo=$ac_try;;
3197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198
(eval "$ac_compile") 2>conftest.er1
3200
grep -v '^ *+' conftest.er1 >conftest.err
3202
cat conftest.err >&5
3203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204
(exit $ac_status); } && {
3205
test -z "$ac_c_werror_flag" ||
3206
test ! -s conftest.err
3207
} && test -s conftest.$ac_objext; then
3210
echo "$as_me: failed program was:" >&5
3211
sed 's/^/| /' conftest.$ac_ext >&5
3216
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3220
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3221
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3222
GCC=`test $ac_compiler_gnu = yes && echo yes`
3223
ac_test_CFLAGS=${CFLAGS+set}
3224
ac_save_CFLAGS=$CFLAGS
3225
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3226
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3227
if test "${ac_cv_prog_cc_g+set}" = set; then
3228
echo $ECHO_N "(cached) $ECHO_C" >&6
3230
ac_save_c_werror_flag=$ac_c_werror_flag
3231
ac_c_werror_flag=yes
3234
cat >conftest.$ac_ext <<_ACEOF
3237
cat confdefs.h >>conftest.$ac_ext
3238
cat >>conftest.$ac_ext <<_ACEOF
3239
/* end confdefs.h. */
3249
rm -f conftest.$ac_objext
3250
if { (ac_try="$ac_compile"
3252
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253
*) ac_try_echo=$ac_try;;
3255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256
(eval "$ac_compile") 2>conftest.er1
3258
grep -v '^ *+' conftest.er1 >conftest.err
3260
cat conftest.err >&5
3261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262
(exit $ac_status); } && {
3263
test -z "$ac_c_werror_flag" ||
3264
test ! -s conftest.err
3265
} && test -s conftest.$ac_objext; then
3268
echo "$as_me: failed program was:" >&5
3269
sed 's/^/| /' conftest.$ac_ext >&5
3272
cat >conftest.$ac_ext <<_ACEOF
3275
cat confdefs.h >>conftest.$ac_ext
3276
cat >>conftest.$ac_ext <<_ACEOF
3277
/* end confdefs.h. */
3287
rm -f conftest.$ac_objext
3288
if { (ac_try="$ac_compile"
3290
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291
*) ac_try_echo=$ac_try;;
3293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294
(eval "$ac_compile") 2>conftest.er1
3296
grep -v '^ *+' conftest.er1 >conftest.err
3298
cat conftest.err >&5
3299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300
(exit $ac_status); } && {
3301
test -z "$ac_c_werror_flag" ||
3302
test ! -s conftest.err
3303
} && test -s conftest.$ac_objext; then
3306
echo "$as_me: failed program was:" >&5
3307
sed 's/^/| /' conftest.$ac_ext >&5
3309
ac_c_werror_flag=$ac_save_c_werror_flag
3311
cat >conftest.$ac_ext <<_ACEOF
3314
cat confdefs.h >>conftest.$ac_ext
3315
cat >>conftest.$ac_ext <<_ACEOF
3316
/* end confdefs.h. */
3326
rm -f conftest.$ac_objext
3327
if { (ac_try="$ac_compile"
3329
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330
*) ac_try_echo=$ac_try;;
3332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333
(eval "$ac_compile") 2>conftest.er1
3335
grep -v '^ *+' conftest.er1 >conftest.err
3337
cat conftest.err >&5
3338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339
(exit $ac_status); } && {
3340
test -z "$ac_c_werror_flag" ||
3341
test ! -s conftest.err
3342
} && test -s conftest.$ac_objext; then
3345
echo "$as_me: failed program was:" >&5
3346
sed 's/^/| /' conftest.$ac_ext >&5
3351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358
ac_c_werror_flag=$ac_save_c_werror_flag
3360
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3361
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3362
if test "$ac_test_CFLAGS" = set; then
3363
CFLAGS=$ac_save_CFLAGS
3364
elif test $ac_cv_prog_cc_g = yes; then
3365
if test "$GCC" = yes; then
3371
if test "$GCC" = yes; then
3377
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3378
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3379
if test "${ac_cv_prog_cc_c89+set}" = set; then
3380
echo $ECHO_N "(cached) $ECHO_C" >&6
3382
ac_cv_prog_cc_c89=no
3384
cat >conftest.$ac_ext <<_ACEOF
3387
cat confdefs.h >>conftest.$ac_ext
3388
cat >>conftest.$ac_ext <<_ACEOF
3389
/* end confdefs.h. */
3392
#include <sys/types.h>
3393
#include <sys/stat.h>
3394
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3395
struct buf { int x; };
3396
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3397
static char *e (p, i)
3403
static char *f (char * (*g) (char **, int), char **p, ...)
3408
s = g (p, va_arg (v,int));
3413
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3414
function prototypes and stuff, but not '\xHH' hex character constants.
3415
These don't provoke an error unfortunately, instead are silently treated
3416
as 'x'. The following induces an error, until -std is added to get
3417
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3418
array size at least. It's necessary to write '\x00'==0 to get something
3419
that's true only with -std. */
3420
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3422
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3423
inside strings and character constants. */
3425
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3427
int test (int i, double x);
3428
struct s1 {int (*f) (int a);};
3429
struct s2 {int (*f) (double a);};
3430
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3442
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3444
CC="$ac_save_CC $ac_arg"
3445
rm -f conftest.$ac_objext
3446
if { (ac_try="$ac_compile"
3448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449
*) ac_try_echo=$ac_try;;
3451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452
(eval "$ac_compile") 2>conftest.er1
3454
grep -v '^ *+' conftest.er1 >conftest.err
3456
cat conftest.err >&5
3457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
(exit $ac_status); } && {
3459
test -z "$ac_c_werror_flag" ||
3460
test ! -s conftest.err
3461
} && test -s conftest.$ac_objext; then
3462
ac_cv_prog_cc_c89=$ac_arg
3464
echo "$as_me: failed program was:" >&5
3465
sed 's/^/| /' conftest.$ac_ext >&5
3470
rm -f core conftest.err conftest.$ac_objext
3471
test "x$ac_cv_prog_cc_c89" != "xno" && break
3473
rm -f conftest.$ac_ext
3478
case "x$ac_cv_prog_cc_c89" in
3480
{ echo "$as_me:$LINENO: result: none needed" >&5
3481
echo "${ECHO_T}none needed" >&6; } ;;
3483
{ echo "$as_me:$LINENO: result: unsupported" >&5
3484
echo "${ECHO_T}unsupported" >&6; } ;;
3486
CC="$CC $ac_cv_prog_cc_c89"
3487
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3488
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3493
ac_cpp='$CPP $CPPFLAGS'
3494
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
depcc="$CC" am_compiler_list=
3500
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3501
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3502
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3503
echo $ECHO_N "(cached) $ECHO_C" >&6
3505
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3506
# We make a subdir and do the tests there. Otherwise we can end up
3507
# making bogus files that we don't know about and never remove. For
3508
# instance it was reported that on HP-UX the gcc test will end up
3509
# making a dummy file named `D' -- because `-MD' means `put the output
3512
# Copy depcomp to subdir because otherwise we won't find it if we're
3513
# using a relative directory.
3514
cp "$am_depcomp" conftest.dir
3516
# We will build objects and dependencies in a subdirectory because
3517
# it helps to detect inapplicable dependency modes. For instance
3518
# both Tru64's cc and ICC support -MD to output dependencies as a
3519
# side effect of compilation, but ICC will put the dependencies in
3520
# the current directory while Tru64 will put them in the object
3524
am_cv_CC_dependencies_compiler_type=none
3525
if test "$am_compiler_list" = ""; then
3526
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3528
for depmode in $am_compiler_list; do
3529
# Setup a source with many dependencies, because some compilers
3530
# like to wrap large dependency lists on column 80 (with \), and
3531
# we should not choose a depcomp mode which is confused by this.
3533
# We need to recreate these files for each test, as the compiler may
3534
# overwrite some of them when testing with obscure command lines.
3535
# This happens at least with the AIX C compiler.
3537
for i in 1 2 3 4 5 6; do
3538
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3539
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3540
# Solaris 8's {/usr,}/bin/sh.
3541
touch sub/conftst$i.h
3543
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3547
# after this tag, mechanisms are not by side-effect, so they'll
3548
# only be used when explicitly requested
3549
if test "x$enable_dependency_tracking" = xyes; then
3557
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3558
# mode. It turns out that the SunPro C++ compiler does not properly
3559
# handle `-M -o', and we need to detect this.
3560
if depmode=$depmode \
3561
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3562
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3563
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3564
>/dev/null 2>conftest.err &&
3565
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3566
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3567
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3568
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3569
# icc doesn't choke on unknown options, it will just issue warnings
3570
# or remarks (even with -Werror). So we grep stderr for any message
3571
# that says an option was ignored or not supported.
3572
# When given -MP, icc 7.0 and 7.1 complain thusly:
3573
# icc: Command line warning: ignoring option '-M'; no argument required
3574
# The diagnosis changed in icc 8.0:
3575
# icc: Command line remark: option '-MP' not supported
3576
if (grep 'ignoring option' conftest.err ||
3577
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3578
am_cv_CC_dependencies_compiler_type=$depmode
3587
am_cv_CC_dependencies_compiler_type=none
3591
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3592
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3593
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3596
test "x$enable_dependency_tracking" != xno \
3597
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3599
am__fastdepCC_FALSE='#'
3601
am__fastdepCC_TRUE='#'
3602
am__fastdepCC_FALSE=
3606
if test "x$CC" != xcc; then
3607
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3608
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3610
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3611
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3613
set dummy $CC; ac_cc=`echo $2 |
3614
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3615
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3616
echo $ECHO_N "(cached) $ECHO_C" >&6
3618
cat >conftest.$ac_ext <<_ACEOF
3621
cat confdefs.h >>conftest.$ac_ext
3622
cat >>conftest.$ac_ext <<_ACEOF
3623
/* end confdefs.h. */
3633
# Make sure it works both with $CC and with simple cc.
3634
# We do the test twice because some compilers refuse to overwrite an
3635
# existing .o file with -o, though they will create one.
3636
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3638
if { (case "(($ac_try" in
3639
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640
*) ac_try_echo=$ac_try;;
3642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643
(eval "$ac_try") 2>&5
3645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646
(exit $ac_status); } &&
3647
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649
*) ac_try_echo=$ac_try;;
3651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652
(eval "$ac_try") 2>&5
3654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655
(exit $ac_status); };
3657
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3658
if test "x$CC" != xcc; then
3659
# Test first that cc exists at all.
3660
if { ac_try='cc -c conftest.$ac_ext >&5'
3661
{ (case "(($ac_try" in
3662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663
*) ac_try_echo=$ac_try;;
3665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666
(eval "$ac_try") 2>&5
3668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669
(exit $ac_status); }; }; then
3670
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3672
if { (case "(($ac_try" in
3673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674
*) ac_try_echo=$ac_try;;
3676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677
(eval "$ac_try") 2>&5
3679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680
(exit $ac_status); } &&
3681
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683
*) ac_try_echo=$ac_try;;
3685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686
(eval "$ac_try") 2>&5
3688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689
(exit $ac_status); };
3694
# cc exists but doesn't like -o.
3695
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3700
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3702
rm -f core conftest*
3705
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3706
{ echo "$as_me:$LINENO: result: yes" >&5
3707
echo "${ECHO_T}yes" >&6; }
3709
{ echo "$as_me:$LINENO: result: no" >&5
3710
echo "${ECHO_T}no" >&6; }
3712
cat >>confdefs.h <<\_ACEOF
3713
#define NO_MINUS_C_MINUS_O 1
3718
# FIXME: we rely on the cache variable name because
3719
# there is no other way.
3721
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3722
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3723
# Losing compiler, so override with the script.
3724
# FIXME: It is wrong to rewrite CC.
3725
# But if we don't then we get into trouble of one sort or another.
3726
# A longer-term fix would be to have automake use am__CC in this case,
3727
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3728
CC="$am_aux_dir/compile $CC"
3733
cat >>confdefs.h <<\_ACEOF
3734
#define _GNU_SOURCE 1
3738
# Check whether --enable-shared was given.
3739
if test "${enable_shared+set}" = set; then
3740
enableval=$enable_shared; p=${PACKAGE-default}
3742
yes) enable_shared=yes ;;
3743
no) enable_shared=no ;;
3746
# Look at the argument we got. We use all the common list separators.
3747
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3748
for pkg in $enableval; do
3750
if test "X$pkg" = "X$p"; then
3762
# Check whether --enable-static was given.
3763
if test "${enable_static+set}" = set; then
3764
enableval=$enable_static; p=${PACKAGE-default}
3766
yes) enable_static=yes ;;
3767
no) enable_static=no ;;
3770
# Look at the argument we got. We use all the common list separators.
3771
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3772
for pkg in $enableval; do
3774
if test "X$pkg" = "X$p"; then
3786
# Check whether --enable-fast-install was given.
3787
if test "${enable_fast_install+set}" = set; then
3788
enableval=$enable_fast_install; p=${PACKAGE-default}
3790
yes) enable_fast_install=yes ;;
3791
no) enable_fast_install=no ;;
3793
enable_fast_install=no
3794
# Look at the argument we got. We use all the common list separators.
3795
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3796
for pkg in $enableval; do
3798
if test "X$pkg" = "X$p"; then
3799
enable_fast_install=yes
3806
enable_fast_install=yes
3810
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3811
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3812
if test "${lt_cv_path_SED+set}" = set; then
3813
echo $ECHO_N "(cached) $ECHO_C" >&6
3815
# Loop through the user's path and test for sed and gsed.
3816
# Then use that list of sed's as ones to test for truncation.
3817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821
test -z "$as_dir" && as_dir=.
3822
for lt_ac_prog in sed gsed; do
3823
for ac_exec_ext in '' $ac_executable_extensions; do
3824
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3825
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3833
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3834
# along with /bin/sed that truncates output.
3835
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3836
test ! -f $lt_ac_sed && continue
3837
cat /dev/null > conftest.in
3839
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3840
# Check for GNU sed and select it if it is found.
3841
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3842
lt_cv_path_SED=$lt_ac_sed
3846
cat conftest.in conftest.in >conftest.tmp
3847
mv conftest.tmp conftest.in
3848
cp conftest.in conftest.nl
3850
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3851
cmp -s conftest.out conftest.nl || break
3852
# 10000 chars as input seems more than enough
3853
test $lt_ac_count -gt 10 && break
3854
lt_ac_count=`expr $lt_ac_count + 1`
3855
if test $lt_ac_count -gt $lt_ac_max; then
3856
lt_ac_max=$lt_ac_count
3857
lt_cv_path_SED=$lt_ac_sed
3866
{ echo "$as_me:$LINENO: result: $SED" >&5
3867
echo "${ECHO_T}$SED" >&6; }
3869
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3870
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3871
if test "${ac_cv_path_GREP+set}" = set; then
3872
echo $ECHO_N "(cached) $ECHO_C" >&6
3874
# Extract the first word of "grep ggrep" to use in msg output
3875
if test -z "$GREP"; then
3876
set dummy grep ggrep; ac_prog_name=$2
3877
if test "${ac_cv_path_GREP+set}" = set; then
3878
echo $ECHO_N "(cached) $ECHO_C" >&6
3880
ac_path_GREP_found=false
3881
# Loop through the user's path and test for each of PROGNAME-LIST
3882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3886
test -z "$as_dir" && as_dir=.
3887
for ac_prog in grep ggrep; do
3888
for ac_exec_ext in '' $ac_executable_extensions; do
3889
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3890
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3891
# Check for GNU ac_path_GREP and select it if it is found.
3892
# Check for GNU $ac_path_GREP
3893
case `"$ac_path_GREP" --version 2>&1` in
3895
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3898
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3901
cat "conftest.in" "conftest.in" >"conftest.tmp"
3902
mv "conftest.tmp" "conftest.in"
3903
cp "conftest.in" "conftest.nl"
3904
echo 'GREP' >> "conftest.nl"
3905
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3906
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3907
ac_count=`expr $ac_count + 1`
3908
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3909
# Best one so far, save it but keep looking for a better one
3910
ac_cv_path_GREP="$ac_path_GREP"
3911
ac_path_GREP_max=$ac_count
3913
# 10*(2^10) chars as input seems more than enough
3914
test $ac_count -gt 10 && break
3916
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920
$ac_path_GREP_found && break 3
3930
GREP="$ac_cv_path_GREP"
3931
if test -z "$GREP"; then
3932
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3933
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3934
{ (exit 1); exit 1; }; }
3938
ac_cv_path_GREP=$GREP
3943
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3944
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3945
GREP="$ac_cv_path_GREP"
3948
{ echo "$as_me:$LINENO: checking for egrep" >&5
3949
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3950
if test "${ac_cv_path_EGREP+set}" = set; then
3951
echo $ECHO_N "(cached) $ECHO_C" >&6
3953
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3954
then ac_cv_path_EGREP="$GREP -E"
3956
# Extract the first word of "egrep" to use in msg output
3957
if test -z "$EGREP"; then
3958
set dummy egrep; ac_prog_name=$2
3959
if test "${ac_cv_path_EGREP+set}" = set; then
3960
echo $ECHO_N "(cached) $ECHO_C" >&6
3962
ac_path_EGREP_found=false
3963
# Loop through the user's path and test for each of PROGNAME-LIST
3964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3968
test -z "$as_dir" && as_dir=.
3969
for ac_prog in egrep; do
3970
for ac_exec_ext in '' $ac_executable_extensions; do
3971
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3972
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3973
# Check for GNU ac_path_EGREP and select it if it is found.
3974
# Check for GNU $ac_path_EGREP
3975
case `"$ac_path_EGREP" --version 2>&1` in
3977
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3980
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3983
cat "conftest.in" "conftest.in" >"conftest.tmp"
3984
mv "conftest.tmp" "conftest.in"
3985
cp "conftest.in" "conftest.nl"
3986
echo 'EGREP' >> "conftest.nl"
3987
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3988
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3989
ac_count=`expr $ac_count + 1`
3990
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3991
# Best one so far, save it but keep looking for a better one
3992
ac_cv_path_EGREP="$ac_path_EGREP"
3993
ac_path_EGREP_max=$ac_count
3995
# 10*(2^10) chars as input seems more than enough
3996
test $ac_count -gt 10 && break
3998
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002
$ac_path_EGREP_found && break 3
4012
EGREP="$ac_cv_path_EGREP"
4013
if test -z "$EGREP"; then
4014
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4015
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4016
{ (exit 1); exit 1; }; }
4020
ac_cv_path_EGREP=$EGREP
4026
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4027
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4028
EGREP="$ac_cv_path_EGREP"
4032
# Check whether --with-gnu-ld was given.
4033
if test "${with_gnu_ld+set}" = set; then
4034
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4040
if test "$GCC" = yes; then
4041
# Check if gcc -print-prog-name=ld gives a path.
4042
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4043
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4046
# gcc leaves a trailing carriage return which upsets mingw
4047
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4049
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4052
# Accept absolute paths.
4054
re_direlt='/[^/][^/]*/\.\./'
4055
# Canonicalize the pathname of ld
4056
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4057
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4058
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4060
test -z "$LD" && LD="$ac_prog"
4063
# If it fails, then pretend we aren't using GCC.
4067
# If it is relative, then search for the first ld in PATH.
4071
elif test "$with_gnu_ld" = yes; then
4072
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4073
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4075
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4076
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4078
if test "${lt_cv_path_LD+set}" = set; then
4079
echo $ECHO_N "(cached) $ECHO_C" >&6
4081
if test -z "$LD"; then
4082
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4083
for ac_dir in $PATH; do
4085
test -z "$ac_dir" && ac_dir=.
4086
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4087
lt_cv_path_LD="$ac_dir/$ac_prog"
4088
# Check to see if the program is GNU ld. I'd rather use --version,
4089
# but apparently some variants of GNU ld only accept -v.
4090
# Break only if it was the GNU/non-GNU ld that we prefer.
4091
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4092
*GNU* | *'with BFD'*)
4093
test "$with_gnu_ld" != no && break
4096
test "$with_gnu_ld" != yes && break
4103
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4108
if test -n "$LD"; then
4109
{ echo "$as_me:$LINENO: result: $LD" >&5
4110
echo "${ECHO_T}$LD" >&6; }
4112
{ echo "$as_me:$LINENO: result: no" >&5
4113
echo "${ECHO_T}no" >&6; }
4115
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4116
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4117
{ (exit 1); exit 1; }; }
4118
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4119
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4120
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4121
echo $ECHO_N "(cached) $ECHO_C" >&6
4123
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4124
case `$LD -v 2>&1 </dev/null` in
4125
*GNU* | *'with BFD'*)
4126
lt_cv_prog_gnu_ld=yes
4129
lt_cv_prog_gnu_ld=no
4133
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4134
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4135
with_gnu_ld=$lt_cv_prog_gnu_ld
4138
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4139
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4140
if test "${lt_cv_ld_reload_flag+set}" = set; then
4141
echo $ECHO_N "(cached) $ECHO_C" >&6
4143
lt_cv_ld_reload_flag='-r'
4145
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4146
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4147
reload_flag=$lt_cv_ld_reload_flag
4148
case $reload_flag in
4150
*) reload_flag=" $reload_flag" ;;
4152
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4155
if test "$GCC" = yes; then
4156
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4158
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4163
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4164
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4165
if test "${lt_cv_path_NM+set}" = set; then
4166
echo $ECHO_N "(cached) $ECHO_C" >&6
4168
if test -n "$NM"; then
4169
# Let the user override the test.
4172
lt_nm_to_check="${ac_tool_prefix}nm"
4173
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4174
lt_nm_to_check="$lt_nm_to_check nm"
4176
for lt_tmp_nm in $lt_nm_to_check; do
4177
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4178
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4180
test -z "$ac_dir" && ac_dir=.
4181
tmp_nm="$ac_dir/$lt_tmp_nm"
4182
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4183
# Check to see if the nm accepts a BSD-compat flag.
4184
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4185
# nm: unknown option "B" ignored
4186
# Tru64's nm complains that /dev/null is an invalid object file
4187
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4188
*/dev/null* | *'Invalid file or object type'*)
4189
lt_cv_path_NM="$tmp_nm -B"
4193
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4195
lt_cv_path_NM="$tmp_nm -p"
4199
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4200
continue # so that we can try to find one that supports BSD flags
4209
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4212
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4213
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4216
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4217
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4219
if test "$LN_S" = "ln -s"; then
4220
{ echo "$as_me:$LINENO: result: yes" >&5
4221
echo "${ECHO_T}yes" >&6; }
4223
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4224
echo "${ECHO_T}no, using $LN_S" >&6; }
4227
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4228
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4229
if test "${lt_cv_deplibs_check_method+set}" = set; then
4230
echo $ECHO_N "(cached) $ECHO_C" >&6
4232
lt_cv_file_magic_cmd='$MAGIC_CMD'
4233
lt_cv_file_magic_test_file=
4234
lt_cv_deplibs_check_method='unknown'
4235
# Need to set the preceding variable on all platforms that support
4236
# interlibrary dependencies.
4237
# 'none' -- dependencies not supported.
4238
# `unknown' -- same as none, but documents that we really don't know.
4239
# 'pass_all' -- all dependencies passed with no checks.
4240
# 'test_compile' -- check by making test program.
4241
# 'file_magic [[regex]]' -- check by looking for files in library path
4242
# which responds to the $file_magic_cmd with a given extended regex.
4243
# If you have `file' or equivalent on your system and you're not sure
4244
# whether `pass_all' will *always* work, you probably want this one.
4248
lt_cv_deplibs_check_method=pass_all
4252
lt_cv_deplibs_check_method=pass_all
4256
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4257
lt_cv_file_magic_cmd='/usr/bin/file -L'
4258
lt_cv_file_magic_test_file=/shlib/libc.so
4262
# func_win32_libid is a shell function defined in ltmain.sh
4263
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4264
lt_cv_file_magic_cmd='func_win32_libid'
4268
# Base MSYS/MinGW do not provide the 'file' command needed by
4269
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4270
# unless we find 'file', for example because we are cross-compiling.
4271
if ( file / ) >/dev/null 2>&1; then
4272
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4273
lt_cv_file_magic_cmd='func_win32_libid'
4275
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4276
lt_cv_file_magic_cmd='$OBJDUMP -f'
4280
darwin* | rhapsody*)
4281
lt_cv_deplibs_check_method=pass_all
4284
freebsd* | dragonfly*)
4285
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4288
# Not sure whether the presence of OpenBSD here was a mistake.
4289
# Let's accept both of them until this is cleared up.
4290
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4291
lt_cv_file_magic_cmd=/usr/bin/file
4292
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4296
lt_cv_deplibs_check_method=pass_all
4301
lt_cv_deplibs_check_method=pass_all
4304
hpux10.20* | hpux11*)
4305
lt_cv_file_magic_cmd=/usr/bin/file
4308
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4309
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4312
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]'
4313
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4316
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4317
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4323
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4324
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4327
irix5* | irix6* | nonstopux*)
4329
*-32|*"-32 ") libmagic=32-bit;;
4330
*-n32|*"-n32 ") libmagic=N32;;
4331
*-64|*"-64 ") libmagic=64-bit;;
4332
*) libmagic=never-match;;
4334
lt_cv_deplibs_check_method=pass_all
4337
# This must be Linux ELF.
4338
linux* | k*bsd*-gnu)
4339
lt_cv_deplibs_check_method=pass_all
4343
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4344
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4346
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4351
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4352
lt_cv_file_magic_cmd=/usr/bin/file
4353
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4357
lt_cv_deplibs_check_method=unknown
4361
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4362
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4364
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4368
osf3* | osf4* | osf5*)
4369
lt_cv_deplibs_check_method=pass_all
4373
lt_cv_deplibs_check_method=pass_all
4377
lt_cv_deplibs_check_method=pass_all
4381
case $host_vendor in
4383
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]'
4384
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4387
lt_cv_deplibs_check_method=pass_all
4390
lt_cv_file_magic_cmd='/bin/file'
4391
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4394
lt_cv_file_magic_cmd='/bin/file'
4395
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4396
lt_cv_file_magic_test_file=/lib/libc.so
4399
lt_cv_deplibs_check_method=pass_all
4402
lt_cv_deplibs_check_method=pass_all
4407
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4408
lt_cv_deplibs_check_method=pass_all
4413
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4414
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4415
file_magic_cmd=$lt_cv_file_magic_cmd
4416
deplibs_check_method=$lt_cv_deplibs_check_method
4417
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4422
# If no C compiler was specified, use CC.
4425
# If no C compiler flags were specified, use CFLAGS.
4426
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4428
# 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"
4530
x86_64-*kfreebsd*-gnu)
4531
LD="${LD-ld} -m elf_x86_64_fbsd"
4534
LD="${LD-ld} -m elf_x86_64"
4536
ppc*-*linux*|powerpc*-*linux*)
4537
LD="${LD-ld} -m elf64ppc"
4540
LD="${LD-ld} -m elf64_s390"
4543
LD="${LD-ld} -m elf64_sparc"
4553
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4554
SAVE_CFLAGS="$CFLAGS"
4555
CFLAGS="$CFLAGS -belf"
4556
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4557
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4558
if test "${lt_cv_cc_needs_belf+set}" = set; then
4559
echo $ECHO_N "(cached) $ECHO_C" >&6
4562
ac_cpp='$CPP $CPPFLAGS'
4563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567
cat >conftest.$ac_ext <<_ACEOF
4570
cat confdefs.h >>conftest.$ac_ext
4571
cat >>conftest.$ac_ext <<_ACEOF
4572
/* end confdefs.h. */
4582
rm -f conftest.$ac_objext conftest$ac_exeext
4583
if { (ac_try="$ac_link"
4585
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586
*) ac_try_echo=$ac_try;;
4588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589
(eval "$ac_link") 2>conftest.er1
4591
grep -v '^ *+' conftest.er1 >conftest.err
4593
cat conftest.err >&5
4594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595
(exit $ac_status); } && {
4596
test -z "$ac_c_werror_flag" ||
4597
test ! -s conftest.err
4598
} && test -s conftest$ac_exeext &&
4599
$as_test_x conftest$ac_exeext; then
4600
lt_cv_cc_needs_belf=yes
4602
echo "$as_me: failed program was:" >&5
4603
sed 's/^/| /' conftest.$ac_ext >&5
4605
lt_cv_cc_needs_belf=no
4608
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4609
conftest$ac_exeext conftest.$ac_ext
4611
ac_cpp='$CPP $CPPFLAGS'
4612
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4618
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4619
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4620
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4621
CFLAGS="$SAVE_CFLAGS"
4625
# Find out which ABI we are using.
4626
echo 'int i;' > conftest.$ac_ext
4627
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628
(eval $ac_compile) 2>&5
4630
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631
(exit $ac_status); }; then
4632
case `/usr/bin/file conftest.o` in
4634
case $lt_cv_prog_gnu_ld in
4635
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4636
*) LD="${LD-ld} -64" ;;
4647
need_locks="$enable_libtool_lock"
4651
ac_cpp='$CPP $CPPFLAGS'
4652
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4656
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4657
# On Suns, sometimes $CPP names a directory.
4658
if test -n "$CPP" && test -d "$CPP"; then
4661
if test -z "$CPP"; then
4662
if test "${ac_cv_prog_CPP+set}" = set; then
4663
echo $ECHO_N "(cached) $ECHO_C" >&6
4665
# Double quotes because CPP needs to be expanded
4666
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4669
for ac_c_preproc_warn_flag in '' yes
4671
# Use a header file that comes with gcc, so configuring glibc
4672
# with a fresh cross-compiler works.
4673
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674
# <limits.h> exists even on freestanding compilers.
4675
# On the NeXT, cc -E runs the code through the compiler's parser,
4676
# not just through cpp. "Syntax error" is here to catch this case.
4677
cat >conftest.$ac_ext <<_ACEOF
4680
cat confdefs.h >>conftest.$ac_ext
4681
cat >>conftest.$ac_ext <<_ACEOF
4682
/* end confdefs.h. */
4684
# include <limits.h>
4686
# include <assert.h>
4690
if { (ac_try="$ac_cpp conftest.$ac_ext"
4692
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693
*) ac_try_echo=$ac_try;;
4695
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4698
grep -v '^ *+' conftest.er1 >conftest.err
4700
cat conftest.err >&5
4701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
(exit $ac_status); } >/dev/null && {
4703
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4704
test ! -s conftest.err
4708
echo "$as_me: failed program was:" >&5
4709
sed 's/^/| /' conftest.$ac_ext >&5
4711
# Broken: fails on valid input.
4715
rm -f conftest.err conftest.$ac_ext
4717
# OK, works on sane cases. Now check whether nonexistent headers
4718
# can be detected and how.
4719
cat >conftest.$ac_ext <<_ACEOF
4722
cat confdefs.h >>conftest.$ac_ext
4723
cat >>conftest.$ac_ext <<_ACEOF
4724
/* end confdefs.h. */
4725
#include <ac_nonexistent.h>
4727
if { (ac_try="$ac_cpp conftest.$ac_ext"
4729
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730
*) ac_try_echo=$ac_try;;
4732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4735
grep -v '^ *+' conftest.er1 >conftest.err
4737
cat conftest.err >&5
4738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739
(exit $ac_status); } >/dev/null && {
4740
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4741
test ! -s conftest.err
4743
# Broken: success on invalid input.
4746
echo "$as_me: failed program was:" >&5
4747
sed 's/^/| /' conftest.$ac_ext >&5
4749
# Passes both tests.
4754
rm -f conftest.err conftest.$ac_ext
4757
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4758
rm -f conftest.err conftest.$ac_ext
4759
if $ac_preproc_ok; then
4771
{ echo "$as_me:$LINENO: result: $CPP" >&5
4772
echo "${ECHO_T}$CPP" >&6; }
4774
for ac_c_preproc_warn_flag in '' yes
4776
# Use a header file that comes with gcc, so configuring glibc
4777
# with a fresh cross-compiler works.
4778
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4779
# <limits.h> exists even on freestanding compilers.
4780
# On the NeXT, cc -E runs the code through the compiler's parser,
4781
# not just through cpp. "Syntax error" is here to catch this case.
4782
cat >conftest.$ac_ext <<_ACEOF
4785
cat confdefs.h >>conftest.$ac_ext
4786
cat >>conftest.$ac_ext <<_ACEOF
4787
/* end confdefs.h. */
4789
# include <limits.h>
4791
# include <assert.h>
4795
if { (ac_try="$ac_cpp conftest.$ac_ext"
4797
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798
*) ac_try_echo=$ac_try;;
4800
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4803
grep -v '^ *+' conftest.er1 >conftest.err
4805
cat conftest.err >&5
4806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807
(exit $ac_status); } >/dev/null && {
4808
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4809
test ! -s conftest.err
4813
echo "$as_me: failed program was:" >&5
4814
sed 's/^/| /' conftest.$ac_ext >&5
4816
# Broken: fails on valid input.
4820
rm -f conftest.err conftest.$ac_ext
4822
# OK, works on sane cases. Now check whether nonexistent headers
4823
# can be detected and how.
4824
cat >conftest.$ac_ext <<_ACEOF
4827
cat confdefs.h >>conftest.$ac_ext
4828
cat >>conftest.$ac_ext <<_ACEOF
4829
/* end confdefs.h. */
4830
#include <ac_nonexistent.h>
4832
if { (ac_try="$ac_cpp conftest.$ac_ext"
4834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835
*) ac_try_echo=$ac_try;;
4837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840
grep -v '^ *+' conftest.er1 >conftest.err
4842
cat conftest.err >&5
4843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844
(exit $ac_status); } >/dev/null && {
4845
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4846
test ! -s conftest.err
4848
# Broken: success on invalid input.
4851
echo "$as_me: failed program was:" >&5
4852
sed 's/^/| /' conftest.$ac_ext >&5
4854
# Passes both tests.
4859
rm -f conftest.err conftest.$ac_ext
4862
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4863
rm -f conftest.err conftest.$ac_ext
4864
if $ac_preproc_ok; then
4867
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4868
See \`config.log' for more details." >&5
4869
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4870
See \`config.log' for more details." >&2;}
4871
{ (exit 1); exit 1; }; }
4875
ac_cpp='$CPP $CPPFLAGS'
4876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4882
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4883
if test "${ac_cv_header_stdc+set}" = set; then
4884
echo $ECHO_N "(cached) $ECHO_C" >&6
4886
cat >conftest.$ac_ext <<_ACEOF
4889
cat confdefs.h >>conftest.$ac_ext
4890
cat >>conftest.$ac_ext <<_ACEOF
4891
/* end confdefs.h. */
4905
rm -f conftest.$ac_objext
4906
if { (ac_try="$ac_compile"
4908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909
*) ac_try_echo=$ac_try;;
4911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912
(eval "$ac_compile") 2>conftest.er1
4914
grep -v '^ *+' conftest.er1 >conftest.err
4916
cat conftest.err >&5
4917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918
(exit $ac_status); } && {
4919
test -z "$ac_c_werror_flag" ||
4920
test ! -s conftest.err
4921
} && test -s conftest.$ac_objext; then
4922
ac_cv_header_stdc=yes
4924
echo "$as_me: failed program was:" >&5
4925
sed 's/^/| /' conftest.$ac_ext >&5
4927
ac_cv_header_stdc=no
4930
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932
if test $ac_cv_header_stdc = yes; then
4933
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4934
cat >conftest.$ac_ext <<_ACEOF
4937
cat confdefs.h >>conftest.$ac_ext
4938
cat >>conftest.$ac_ext <<_ACEOF
4939
/* end confdefs.h. */
4943
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944
$EGREP "memchr" >/dev/null 2>&1; then
4947
ac_cv_header_stdc=no
4953
if test $ac_cv_header_stdc = yes; then
4954
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4955
cat >conftest.$ac_ext <<_ACEOF
4958
cat confdefs.h >>conftest.$ac_ext
4959
cat >>conftest.$ac_ext <<_ACEOF
4960
/* end confdefs.h. */
4964
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4965
$EGREP "free" >/dev/null 2>&1; then
4968
ac_cv_header_stdc=no
4974
if test $ac_cv_header_stdc = yes; then
4975
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4976
if test "$cross_compiling" = yes; then
4979
cat >conftest.$ac_ext <<_ACEOF
4982
cat confdefs.h >>conftest.$ac_ext
4983
cat >>conftest.$ac_ext <<_ACEOF
4984
/* end confdefs.h. */
4987
#if ((' ' & 0x0FF) == 0x020)
4988
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4989
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4991
# define ISLOWER(c) \
4992
(('a' <= (c) && (c) <= 'i') \
4993
|| ('j' <= (c) && (c) <= 'r') \
4994
|| ('s' <= (c) && (c) <= 'z'))
4995
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4998
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5003
for (i = 0; i < 256; i++)
5004
if (XOR (islower (i), ISLOWER (i))
5005
|| toupper (i) != TOUPPER (i))
5010
rm -f conftest$ac_exeext
5011
if { (ac_try="$ac_link"
5013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014
*) ac_try_echo=$ac_try;;
5016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017
(eval "$ac_link") 2>&5
5019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5021
{ (case "(($ac_try" in
5022
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023
*) ac_try_echo=$ac_try;;
5025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026
(eval "$ac_try") 2>&5
5028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029
(exit $ac_status); }; }; then
5032
echo "$as_me: program exited with status $ac_status" >&5
5033
echo "$as_me: failed program was:" >&5
5034
sed 's/^/| /' conftest.$ac_ext >&5
5037
ac_cv_header_stdc=no
5039
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5045
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5046
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5047
if test $ac_cv_header_stdc = yes; then
5049
cat >>confdefs.h <<\_ACEOF
5050
#define STDC_HEADERS 1
5055
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5065
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5066
inttypes.h stdint.h unistd.h
5068
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5069
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5070
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5071
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5072
echo $ECHO_N "(cached) $ECHO_C" >&6
5074
cat >conftest.$ac_ext <<_ACEOF
5077
cat confdefs.h >>conftest.$ac_ext
5078
cat >>conftest.$ac_ext <<_ACEOF
5079
/* end confdefs.h. */
5080
$ac_includes_default
5082
#include <$ac_header>
5084
rm -f conftest.$ac_objext
5085
if { (ac_try="$ac_compile"
5087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088
*) ac_try_echo=$ac_try;;
5090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091
(eval "$ac_compile") 2>conftest.er1
5093
grep -v '^ *+' conftest.er1 >conftest.err
5095
cat conftest.err >&5
5096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097
(exit $ac_status); } && {
5098
test -z "$ac_c_werror_flag" ||
5099
test ! -s conftest.err
5100
} && test -s conftest.$ac_objext; then
5101
eval "$as_ac_Header=yes"
5103
echo "$as_me: failed program was:" >&5
5104
sed 's/^/| /' conftest.$ac_ext >&5
5106
eval "$as_ac_Header=no"
5109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111
ac_res=`eval echo '${'$as_ac_Header'}'`
5112
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5113
echo "${ECHO_T}$ac_res" >&6; }
5114
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5115
cat >>confdefs.h <<_ACEOF
5116
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5125
for ac_header in dlfcn.h
5127
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5128
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5129
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5130
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5131
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5132
echo $ECHO_N "(cached) $ECHO_C" >&6
5134
ac_res=`eval echo '${'$as_ac_Header'}'`
5135
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5136
echo "${ECHO_T}$ac_res" >&6; }
5138
# Is the header compilable?
5139
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5140
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5141
cat >conftest.$ac_ext <<_ACEOF
5144
cat confdefs.h >>conftest.$ac_ext
5145
cat >>conftest.$ac_ext <<_ACEOF
5146
/* end confdefs.h. */
5147
$ac_includes_default
5148
#include <$ac_header>
5150
rm -f conftest.$ac_objext
5151
if { (ac_try="$ac_compile"
5153
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154
*) ac_try_echo=$ac_try;;
5156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157
(eval "$ac_compile") 2>conftest.er1
5159
grep -v '^ *+' conftest.er1 >conftest.err
5161
cat conftest.err >&5
5162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163
(exit $ac_status); } && {
5164
test -z "$ac_c_werror_flag" ||
5165
test ! -s conftest.err
5166
} && test -s conftest.$ac_objext; then
5167
ac_header_compiler=yes
5169
echo "$as_me: failed program was:" >&5
5170
sed 's/^/| /' conftest.$ac_ext >&5
5172
ac_header_compiler=no
5175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5177
echo "${ECHO_T}$ac_header_compiler" >&6; }
5179
# Is the header present?
5180
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5181
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5182
cat >conftest.$ac_ext <<_ACEOF
5185
cat confdefs.h >>conftest.$ac_ext
5186
cat >>conftest.$ac_ext <<_ACEOF
5187
/* end confdefs.h. */
5188
#include <$ac_header>
5190
if { (ac_try="$ac_cpp conftest.$ac_ext"
5192
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193
*) ac_try_echo=$ac_try;;
5195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5198
grep -v '^ *+' conftest.er1 >conftest.err
5200
cat conftest.err >&5
5201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202
(exit $ac_status); } >/dev/null && {
5203
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5204
test ! -s conftest.err
5206
ac_header_preproc=yes
5208
echo "$as_me: failed program was:" >&5
5209
sed 's/^/| /' conftest.$ac_ext >&5
5211
ac_header_preproc=no
5214
rm -f conftest.err conftest.$ac_ext
5215
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5216
echo "${ECHO_T}$ac_header_preproc" >&6; }
5218
# So? What about this header?
5219
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5221
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5222
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5223
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5224
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5225
ac_header_preproc=yes
5228
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5229
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5230
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5231
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5232
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5233
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5234
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5235
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5236
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5237
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5238
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5239
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5243
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5244
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5245
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5246
echo $ECHO_N "(cached) $ECHO_C" >&6
5248
eval "$as_ac_Header=\$ac_header_preproc"
5250
ac_res=`eval echo '${'$as_ac_Header'}'`
5251
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5252
echo "${ECHO_T}$ac_res" >&6; }
5255
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5256
cat >>confdefs.h <<_ACEOF
5257
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5265
ac_cpp='$CXXCPP $CPPFLAGS'
5266
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5269
if test -z "$CXX"; then
5270
if test -n "$CCC"; then
5273
if test -n "$ac_tool_prefix"; then
5274
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5276
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5277
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5278
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5280
if test "${ac_cv_prog_CXX+set}" = set; then
5281
echo $ECHO_N "(cached) $ECHO_C" >&6
5283
if test -n "$CXX"; then
5284
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290
test -z "$as_dir" && as_dir=.
5291
for ac_exec_ext in '' $ac_executable_extensions; do
5292
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5294
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304
if test -n "$CXX"; then
5305
{ echo "$as_me:$LINENO: result: $CXX" >&5
5306
echo "${ECHO_T}$CXX" >&6; }
5308
{ echo "$as_me:$LINENO: result: no" >&5
5309
echo "${ECHO_T}no" >&6; }
5313
test -n "$CXX" && break
5316
if test -z "$CXX"; then
5318
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5320
# Extract the first word of "$ac_prog", so it can be a program name with args.
5321
set dummy $ac_prog; ac_word=$2
5322
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5323
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5324
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5325
echo $ECHO_N "(cached) $ECHO_C" >&6
5327
if test -n "$ac_ct_CXX"; then
5328
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334
test -z "$as_dir" && as_dir=.
5335
for ac_exec_ext in '' $ac_executable_extensions; do
5336
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337
ac_cv_prog_ac_ct_CXX="$ac_prog"
5338
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5348
if test -n "$ac_ct_CXX"; then
5349
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5350
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5352
{ echo "$as_me:$LINENO: result: no" >&5
5353
echo "${ECHO_T}no" >&6; }
5357
test -n "$ac_ct_CXX" && break
5360
if test "x$ac_ct_CXX" = x; then
5363
case $cross_compiling:$ac_tool_warned in
5365
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5366
whose name does not start with the host triplet. If you think this
5367
configuration is useful to you, please write to autoconf@gnu.org." >&5
5368
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5369
whose name does not start with the host triplet. If you think this
5370
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5371
ac_tool_warned=yes ;;
5379
# Provide some information about the compiler.
5380
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5381
ac_compiler=`set X $ac_compile; echo $2`
5382
{ (ac_try="$ac_compiler --version >&5"
5384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385
*) ac_try_echo=$ac_try;;
5387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388
(eval "$ac_compiler --version >&5") 2>&5
5390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391
(exit $ac_status); }
5392
{ (ac_try="$ac_compiler -v >&5"
5394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395
*) ac_try_echo=$ac_try;;
5397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398
(eval "$ac_compiler -v >&5") 2>&5
5400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401
(exit $ac_status); }
5402
{ (ac_try="$ac_compiler -V >&5"
5404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405
*) ac_try_echo=$ac_try;;
5407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408
(eval "$ac_compiler -V >&5") 2>&5
5410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
(exit $ac_status); }
5413
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5414
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5415
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5416
echo $ECHO_N "(cached) $ECHO_C" >&6
5418
cat >conftest.$ac_ext <<_ACEOF
5421
cat confdefs.h >>conftest.$ac_ext
5422
cat >>conftest.$ac_ext <<_ACEOF
5423
/* end confdefs.h. */
5436
rm -f conftest.$ac_objext
5437
if { (ac_try="$ac_compile"
5439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440
*) ac_try_echo=$ac_try;;
5442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443
(eval "$ac_compile") 2>conftest.er1
5445
grep -v '^ *+' conftest.er1 >conftest.err
5447
cat conftest.err >&5
5448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449
(exit $ac_status); } && {
5450
test -z "$ac_cxx_werror_flag" ||
5451
test ! -s conftest.err
5452
} && test -s conftest.$ac_objext; then
5455
echo "$as_me: failed program was:" >&5
5456
sed 's/^/| /' conftest.$ac_ext >&5
5461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5465
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5466
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5467
GXX=`test $ac_compiler_gnu = yes && echo yes`
5468
ac_test_CXXFLAGS=${CXXFLAGS+set}
5469
ac_save_CXXFLAGS=$CXXFLAGS
5470
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5471
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5472
if test "${ac_cv_prog_cxx_g+set}" = set; then
5473
echo $ECHO_N "(cached) $ECHO_C" >&6
5475
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5476
ac_cxx_werror_flag=yes
5479
cat >conftest.$ac_ext <<_ACEOF
5482
cat confdefs.h >>conftest.$ac_ext
5483
cat >>conftest.$ac_ext <<_ACEOF
5484
/* end confdefs.h. */
5494
rm -f conftest.$ac_objext
5495
if { (ac_try="$ac_compile"
5497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498
*) ac_try_echo=$ac_try;;
5500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501
(eval "$ac_compile") 2>conftest.er1
5503
grep -v '^ *+' conftest.er1 >conftest.err
5505
cat conftest.err >&5
5506
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507
(exit $ac_status); } && {
5508
test -z "$ac_cxx_werror_flag" ||
5509
test ! -s conftest.err
5510
} && test -s conftest.$ac_objext; then
5511
ac_cv_prog_cxx_g=yes
5513
echo "$as_me: failed program was:" >&5
5514
sed 's/^/| /' conftest.$ac_ext >&5
5517
cat >conftest.$ac_ext <<_ACEOF
5520
cat confdefs.h >>conftest.$ac_ext
5521
cat >>conftest.$ac_ext <<_ACEOF
5522
/* end confdefs.h. */
5532
rm -f conftest.$ac_objext
5533
if { (ac_try="$ac_compile"
5535
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536
*) ac_try_echo=$ac_try;;
5538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539
(eval "$ac_compile") 2>conftest.er1
5541
grep -v '^ *+' conftest.er1 >conftest.err
5543
cat conftest.err >&5
5544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545
(exit $ac_status); } && {
5546
test -z "$ac_cxx_werror_flag" ||
5547
test ! -s conftest.err
5548
} && test -s conftest.$ac_objext; then
5551
echo "$as_me: failed program was:" >&5
5552
sed 's/^/| /' conftest.$ac_ext >&5
5554
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5556
cat >conftest.$ac_ext <<_ACEOF
5559
cat confdefs.h >>conftest.$ac_ext
5560
cat >>conftest.$ac_ext <<_ACEOF
5561
/* end confdefs.h. */
5571
rm -f conftest.$ac_objext
5572
if { (ac_try="$ac_compile"
5574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575
*) ac_try_echo=$ac_try;;
5577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578
(eval "$ac_compile") 2>conftest.er1
5580
grep -v '^ *+' conftest.er1 >conftest.err
5582
cat conftest.err >&5
5583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584
(exit $ac_status); } && {
5585
test -z "$ac_cxx_werror_flag" ||
5586
test ! -s conftest.err
5587
} && test -s conftest.$ac_objext; then
5588
ac_cv_prog_cxx_g=yes
5590
echo "$as_me: failed program was:" >&5
5591
sed 's/^/| /' conftest.$ac_ext >&5
5596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5605
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5606
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5607
if test "$ac_test_CXXFLAGS" = set; then
5608
CXXFLAGS=$ac_save_CXXFLAGS
5609
elif test $ac_cv_prog_cxx_g = yes; then
5610
if test "$GXX" = yes; then
5616
if test "$GXX" = yes; then
5623
ac_cpp='$CXXCPP $CPPFLAGS'
5624
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5625
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5626
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5628
depcc="$CXX" am_compiler_list=
5630
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5631
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5632
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5633
echo $ECHO_N "(cached) $ECHO_C" >&6
5635
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5636
# We make a subdir and do the tests there. Otherwise we can end up
5637
# making bogus files that we don't know about and never remove. For
5638
# instance it was reported that on HP-UX the gcc test will end up
5639
# making a dummy file named `D' -- because `-MD' means `put the output
5642
# Copy depcomp to subdir because otherwise we won't find it if we're
5643
# using a relative directory.
5644
cp "$am_depcomp" conftest.dir
5646
# We will build objects and dependencies in a subdirectory because
5647
# it helps to detect inapplicable dependency modes. For instance
5648
# both Tru64's cc and ICC support -MD to output dependencies as a
5649
# side effect of compilation, but ICC will put the dependencies in
5650
# the current directory while Tru64 will put them in the object
5654
am_cv_CXX_dependencies_compiler_type=none
5655
if test "$am_compiler_list" = ""; then
5656
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5658
for depmode in $am_compiler_list; do
5659
# Setup a source with many dependencies, because some compilers
5660
# like to wrap large dependency lists on column 80 (with \), and
5661
# we should not choose a depcomp mode which is confused by this.
5663
# We need to recreate these files for each test, as the compiler may
5664
# overwrite some of them when testing with obscure command lines.
5665
# This happens at least with the AIX C compiler.
5667
for i in 1 2 3 4 5 6; do
5668
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5669
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5670
# Solaris 8's {/usr,}/bin/sh.
5671
touch sub/conftst$i.h
5673
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5677
# after this tag, mechanisms are not by side-effect, so they'll
5678
# only be used when explicitly requested
5679
if test "x$enable_dependency_tracking" = xyes; then
5687
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5688
# mode. It turns out that the SunPro C++ compiler does not properly
5689
# handle `-M -o', and we need to detect this.
5690
if depmode=$depmode \
5691
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5692
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5693
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5694
>/dev/null 2>conftest.err &&
5695
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5696
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5697
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5698
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5699
# icc doesn't choke on unknown options, it will just issue warnings
5700
# or remarks (even with -Werror). So we grep stderr for any message
5701
# that says an option was ignored or not supported.
5702
# When given -MP, icc 7.0 and 7.1 complain thusly:
5703
# icc: Command line warning: ignoring option '-M'; no argument required
5704
# The diagnosis changed in icc 8.0:
5705
# icc: Command line remark: option '-MP' not supported
5706
if (grep 'ignoring option' conftest.err ||
5707
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5708
am_cv_CXX_dependencies_compiler_type=$depmode
5717
am_cv_CXX_dependencies_compiler_type=none
5721
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5722
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5723
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5726
test "x$enable_dependency_tracking" != xno \
5727
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5728
am__fastdepCXX_TRUE=
5729
am__fastdepCXX_FALSE='#'
5731
am__fastdepCXX_TRUE='#'
5732
am__fastdepCXX_FALSE=
5738
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5739
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5740
(test "X$CXX" != "Xg++"))) ; then
5742
ac_cpp='$CXXCPP $CPPFLAGS'
5743
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5746
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5747
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5748
if test -z "$CXXCPP"; then
5749
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5750
echo $ECHO_N "(cached) $ECHO_C" >&6
5752
# Double quotes because CXXCPP needs to be expanded
5753
for CXXCPP in "$CXX -E" "/lib/cpp"
5756
for ac_cxx_preproc_warn_flag in '' yes
5758
# Use a header file that comes with gcc, so configuring glibc
5759
# with a fresh cross-compiler works.
5760
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761
# <limits.h> exists even on freestanding compilers.
5762
# On the NeXT, cc -E runs the code through the compiler's parser,
5763
# not just through cpp. "Syntax error" is here to catch this case.
5764
cat >conftest.$ac_ext <<_ACEOF
5767
cat confdefs.h >>conftest.$ac_ext
5768
cat >>conftest.$ac_ext <<_ACEOF
5769
/* end confdefs.h. */
5771
# include <limits.h>
5773
# include <assert.h>
5777
if { (ac_try="$ac_cpp conftest.$ac_ext"
5779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780
*) ac_try_echo=$ac_try;;
5782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5785
grep -v '^ *+' conftest.er1 >conftest.err
5787
cat conftest.err >&5
5788
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789
(exit $ac_status); } >/dev/null && {
5790
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5791
test ! -s conftest.err
5795
echo "$as_me: failed program was:" >&5
5796
sed 's/^/| /' conftest.$ac_ext >&5
5798
# Broken: fails on valid input.
5802
rm -f conftest.err conftest.$ac_ext
5804
# OK, works on sane cases. Now check whether nonexistent headers
5805
# can be detected and how.
5806
cat >conftest.$ac_ext <<_ACEOF
5809
cat confdefs.h >>conftest.$ac_ext
5810
cat >>conftest.$ac_ext <<_ACEOF
5811
/* end confdefs.h. */
5812
#include <ac_nonexistent.h>
5814
if { (ac_try="$ac_cpp conftest.$ac_ext"
5816
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817
*) ac_try_echo=$ac_try;;
5819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5822
grep -v '^ *+' conftest.er1 >conftest.err
5824
cat conftest.err >&5
5825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826
(exit $ac_status); } >/dev/null && {
5827
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5828
test ! -s conftest.err
5830
# Broken: success on invalid input.
5833
echo "$as_me: failed program was:" >&5
5834
sed 's/^/| /' conftest.$ac_ext >&5
5836
# Passes both tests.
5841
rm -f conftest.err conftest.$ac_ext
5844
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5845
rm -f conftest.err conftest.$ac_ext
5846
if $ac_preproc_ok; then
5851
ac_cv_prog_CXXCPP=$CXXCPP
5854
CXXCPP=$ac_cv_prog_CXXCPP
5856
ac_cv_prog_CXXCPP=$CXXCPP
5858
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5859
echo "${ECHO_T}$CXXCPP" >&6; }
5861
for ac_cxx_preproc_warn_flag in '' yes
5863
# Use a header file that comes with gcc, so configuring glibc
5864
# with a fresh cross-compiler works.
5865
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5866
# <limits.h> exists even on freestanding compilers.
5867
# On the NeXT, cc -E runs the code through the compiler's parser,
5868
# not just through cpp. "Syntax error" is here to catch this case.
5869
cat >conftest.$ac_ext <<_ACEOF
5872
cat confdefs.h >>conftest.$ac_ext
5873
cat >>conftest.$ac_ext <<_ACEOF
5874
/* end confdefs.h. */
5876
# include <limits.h>
5878
# include <assert.h>
5882
if { (ac_try="$ac_cpp conftest.$ac_ext"
5884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885
*) ac_try_echo=$ac_try;;
5887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5890
grep -v '^ *+' conftest.er1 >conftest.err
5892
cat conftest.err >&5
5893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894
(exit $ac_status); } >/dev/null && {
5895
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5896
test ! -s conftest.err
5900
echo "$as_me: failed program was:" >&5
5901
sed 's/^/| /' conftest.$ac_ext >&5
5903
# Broken: fails on valid input.
5907
rm -f conftest.err conftest.$ac_ext
5909
# OK, works on sane cases. Now check whether nonexistent headers
5910
# can be detected and how.
5911
cat >conftest.$ac_ext <<_ACEOF
5914
cat confdefs.h >>conftest.$ac_ext
5915
cat >>conftest.$ac_ext <<_ACEOF
5916
/* end confdefs.h. */
5917
#include <ac_nonexistent.h>
5919
if { (ac_try="$ac_cpp conftest.$ac_ext"
5921
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922
*) ac_try_echo=$ac_try;;
5924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5927
grep -v '^ *+' conftest.er1 >conftest.err
5929
cat conftest.err >&5
5930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931
(exit $ac_status); } >/dev/null && {
5932
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5933
test ! -s conftest.err
5935
# Broken: success on invalid input.
5938
echo "$as_me: failed program was:" >&5
5939
sed 's/^/| /' conftest.$ac_ext >&5
5941
# Passes both tests.
5946
rm -f conftest.err conftest.$ac_ext
5949
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5950
rm -f conftest.err conftest.$ac_ext
5951
if $ac_preproc_ok; then
5954
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5955
See \`config.log' for more details." >&5
5956
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5957
See \`config.log' for more details." >&2;}
5958
{ (exit 1); exit 1; }; }
5962
ac_cpp='$CXXCPP $CPPFLAGS'
5963
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5971
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5972
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5974
if test -n "$ac_tool_prefix"; then
5975
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
5977
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5978
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5979
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5980
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981
if test "${ac_cv_prog_F77+set}" = set; then
5982
echo $ECHO_N "(cached) $ECHO_C" >&6
5984
if test -n "$F77"; then
5985
ac_cv_prog_F77="$F77" # Let the user override the test.
5987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991
test -z "$as_dir" && as_dir=.
5992
for ac_exec_ext in '' $ac_executable_extensions; do
5993
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5995
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005
if test -n "$F77"; then
6006
{ echo "$as_me:$LINENO: result: $F77" >&5
6007
echo "${ECHO_T}$F77" >&6; }
6009
{ echo "$as_me:$LINENO: result: no" >&5
6010
echo "${ECHO_T}no" >&6; }
6014
test -n "$F77" && break
6017
if test -z "$F77"; then
6019
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
6021
# Extract the first word of "$ac_prog", so it can be a program name with args.
6022
set dummy $ac_prog; ac_word=$2
6023
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6025
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6026
echo $ECHO_N "(cached) $ECHO_C" >&6
6028
if test -n "$ac_ct_F77"; then
6029
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035
test -z "$as_dir" && as_dir=.
6036
for ac_exec_ext in '' $ac_executable_extensions; do
6037
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038
ac_cv_prog_ac_ct_F77="$ac_prog"
6039
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6049
if test -n "$ac_ct_F77"; then
6050
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6051
echo "${ECHO_T}$ac_ct_F77" >&6; }
6053
{ echo "$as_me:$LINENO: result: no" >&5
6054
echo "${ECHO_T}no" >&6; }
6058
test -n "$ac_ct_F77" && break
6061
if test "x$ac_ct_F77" = x; then
6064
case $cross_compiling:$ac_tool_warned in
6066
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6067
whose name does not start with the host triplet. If you think this
6068
configuration is useful to you, please write to autoconf@gnu.org." >&5
6069
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6070
whose name does not start with the host triplet. If you think this
6071
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6072
ac_tool_warned=yes ;;
6079
# Provide some information about the compiler.
6080
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6081
ac_compiler=`set X $ac_compile; echo $2`
6082
{ (ac_try="$ac_compiler --version >&5"
6084
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085
*) ac_try_echo=$ac_try;;
6087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088
(eval "$ac_compiler --version >&5") 2>&5
6090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091
(exit $ac_status); }
6092
{ (ac_try="$ac_compiler -v >&5"
6094
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095
*) ac_try_echo=$ac_try;;
6097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098
(eval "$ac_compiler -v >&5") 2>&5
6100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101
(exit $ac_status); }
6102
{ (ac_try="$ac_compiler -V >&5"
6104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105
*) ac_try_echo=$ac_try;;
6107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108
(eval "$ac_compiler -V >&5") 2>&5
6110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111
(exit $ac_status); }
6114
# If we don't use `.F' as extension, the preprocessor is not run on the
6115
# input file. (Note that this only needs to work for GNU compilers.)
6118
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6119
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6120
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6121
echo $ECHO_N "(cached) $ECHO_C" >&6
6123
cat >conftest.$ac_ext <<_ACEOF
6131
rm -f conftest.$ac_objext
6132
if { (ac_try="$ac_compile"
6134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135
*) ac_try_echo=$ac_try;;
6137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138
(eval "$ac_compile") 2>conftest.er1
6140
grep -v '^ *+' conftest.er1 >conftest.err
6142
cat conftest.err >&5
6143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144
(exit $ac_status); } && {
6145
test -z "$ac_f77_werror_flag" ||
6146
test ! -s conftest.err
6147
} && test -s conftest.$ac_objext; then
6150
echo "$as_me: failed program was:" >&5
6151
sed 's/^/| /' conftest.$ac_ext >&5
6156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6160
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6161
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6163
ac_test_FFLAGS=${FFLAGS+set}
6164
ac_save_FFLAGS=$FFLAGS
6166
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6167
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6168
if test "${ac_cv_prog_f77_g+set}" = set; then
6169
echo $ECHO_N "(cached) $ECHO_C" >&6
6172
cat >conftest.$ac_ext <<_ACEOF
6177
rm -f conftest.$ac_objext
6178
if { (ac_try="$ac_compile"
6180
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181
*) ac_try_echo=$ac_try;;
6183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184
(eval "$ac_compile") 2>conftest.er1
6186
grep -v '^ *+' conftest.er1 >conftest.err
6188
cat conftest.err >&5
6189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190
(exit $ac_status); } && {
6191
test -z "$ac_f77_werror_flag" ||
6192
test ! -s conftest.err
6193
} && test -s conftest.$ac_objext; then
6194
ac_cv_prog_f77_g=yes
6196
echo "$as_me: failed program was:" >&5
6197
sed 's/^/| /' conftest.$ac_ext >&5
6202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6205
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6206
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6207
if test "$ac_test_FFLAGS" = set; then
6208
FFLAGS=$ac_save_FFLAGS
6209
elif test $ac_cv_prog_f77_g = yes; then
6210
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6216
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6223
G77=`test $ac_compiler_gnu = yes && echo yes`
6225
ac_cpp='$CPP $CPPFLAGS'
6226
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6227
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6232
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6234
# find the maximum length of command line arguments
6235
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6236
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6237
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6238
echo $ECHO_N "(cached) $ECHO_C" >&6
6245
# On DJGPP, this test can blow up pretty badly due to problems in libc
6246
# (any single argument exceeding 2000 bytes causes a buffer overrun
6247
# during glob expansion). Even if it were fixed, the result of this
6248
# check would be larger than it should be.
6249
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6253
# Under GNU Hurd, this test is not required because there is
6254
# no limit to the length of command line arguments.
6255
# Libtool will interpret -1 as no limit whatsoever
6256
lt_cv_sys_max_cmd_len=-1;
6260
# On Win9x/ME, this test blows up -- it succeeds, but takes
6261
# about 5 minutes as the teststring grows exponentially.
6262
# Worse, since 9x/ME are not pre-emptively multitasking,
6263
# you end up with a "frozen" computer, even though with patience
6264
# the test eventually succeeds (with a max line length of 256k).
6265
# Instead, let's just punt: use the minimum linelength reported by
6266
# all of the supported platforms: 8192 (on NT/2K/XP).
6267
lt_cv_sys_max_cmd_len=8192;
6271
# On AmigaOS with pdksh, this test takes hours, literally.
6272
# So we just punt and use a minimum line length of 8192.
6273
lt_cv_sys_max_cmd_len=8192;
6276
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6277
# This has been around since 386BSD, at least. Likely further.
6278
if test -x /sbin/sysctl; then
6279
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6280
elif test -x /usr/sbin/sysctl; then
6281
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6283
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6285
# And add a safety zone
6286
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6287
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6291
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6292
lt_cv_sys_max_cmd_len=196608
6296
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6297
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6298
# nice to cause kernel panics so lets avoid the loop below.
6299
# First set a reasonable default.
6300
lt_cv_sys_max_cmd_len=16384
6302
if test -x /sbin/sysconfig; then
6303
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6304
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6309
lt_cv_sys_max_cmd_len=102400
6311
sysv5* | sco5v6* | sysv4.2uw2*)
6312
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6313
if test -n "$kargmax"; then
6314
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6316
lt_cv_sys_max_cmd_len=32768
6320
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6321
if test -n "$lt_cv_sys_max_cmd_len"; then
6322
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6323
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6325
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6326
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6327
= "XX$teststring") >/dev/null 2>&1 &&
6328
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6329
lt_cv_sys_max_cmd_len=$new_result &&
6330
test $i != 17 # 1/2 MB should be enough
6333
teststring=$teststring$teststring
6336
# Add a significant safety factor because C++ compilers can tack on massive
6337
# amounts of additional arguments before passing them to the linker.
6338
# It appears as though 1/2 is a usable value.
6339
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6346
if test -n $lt_cv_sys_max_cmd_len ; then
6347
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6348
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6350
{ echo "$as_me:$LINENO: result: none" >&5
6351
echo "${ECHO_T}none" >&6; }
6358
# Check for command to grab the raw symbol name followed by C symbol from nm.
6359
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6360
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6361
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6362
echo $ECHO_N "(cached) $ECHO_C" >&6
6365
# These are sane defaults that work on at least a few old systems.
6366
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6368
# Character class describing NM global symbol codes.
6369
symcode='[BCDEGRST]'
6371
# Regexp to match symbols that can be accessed directly from C.
6372
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6374
# Transform an extracted symbol line into a proper C declaration
6375
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6377
# Transform an extracted symbol line into symbol name and symbol address
6378
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'"
6380
# Define system-specific variables.
6385
cygwin* | mingw* | pw32*)
6386
symcode='[ABCDGISTW]'
6388
hpux*) # Its linker distinguishes data from code symbols
6389
if test "$host_cpu" = ia64; then
6390
symcode='[ABCDEGRST]'
6392
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6393
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'"
6395
linux* | k*bsd*-gnu)
6396
if test "$host_cpu" = ia64; then
6397
symcode='[ABCDGIRSTW]'
6398
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6399
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'"
6403
symcode='[BCDEGRST]'
6406
symcode='[BCDEGQRST]'
6417
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6425
# Handle CRLF in mingw tool chain
6429
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6433
# If we're using GNU nm, then use its standard symbol codes.
6434
case `$NM -V 2>&1` in
6435
*GNU* | *'with BFD'*)
6436
symcode='[ABCDGIRSTW]' ;;
6439
# Try without a prefix undercore, then with it.
6440
for ac_symprfx in "" "_"; do
6442
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6443
symxfrm="\\1 $ac_symprfx\\2 \\2"
6445
# Write the raw and C identifiers.
6446
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6448
# Check to see that the pipe works correctly.
6452
cat > conftest.$ac_ext <<EOF
6457
void nm_test_func(){}
6461
int main(){nm_test_var='a';nm_test_func();return(0);}
6464
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465
(eval $ac_compile) 2>&5
6467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468
(exit $ac_status); }; then
6469
# Now try to grab the symbols.
6471
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6472
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475
(exit $ac_status); } && test -s "$nlist"; then
6476
# Try sorting and uniquifying the output.
6477
if sort "$nlist" | uniq > "$nlist"T; then
6478
mv -f "$nlist"T "$nlist"
6483
# Make sure that we snagged all the symbols we need.
6484
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6485
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6486
cat <<EOF > conftest.$ac_ext
6492
# Now generate the symbol file.
6493
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6495
cat <<EOF >> conftest.$ac_ext
6496
#if defined (__STDC__) && __STDC__
6497
# define lt_ptr_t void *
6499
# define lt_ptr_t char *
6503
/* The mapping between symbol names and symbols. */
6508
lt_preloaded_symbols[] =
6511
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6512
cat <<\EOF >> conftest.$ac_ext
6520
# Now try linking the two files.
6521
mv conftest.$ac_objext conftstm.$ac_objext
6522
lt_save_LIBS="$LIBS"
6523
lt_save_CFLAGS="$CFLAGS"
6524
LIBS="conftstm.$ac_objext"
6525
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6526
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527
(eval $ac_link) 2>&5
6529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6533
LIBS="$lt_save_LIBS"
6534
CFLAGS="$lt_save_CFLAGS"
6536
echo "cannot find nm_test_func in $nlist" >&5
6539
echo "cannot find nm_test_var in $nlist" >&5
6542
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6545
echo "$progname: failed program was:" >&5
6546
cat conftest.$ac_ext >&5
6548
rm -f conftest* conftst*
6550
# Do not use the global_symbol_pipe unless it works.
6551
if test "$pipe_works" = yes; then
6554
lt_cv_sys_global_symbol_pipe=
6560
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6561
lt_cv_sys_global_symbol_to_cdecl=
6563
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6564
{ echo "$as_me:$LINENO: result: failed" >&5
6565
echo "${ECHO_T}failed" >&6; }
6567
{ echo "$as_me:$LINENO: result: ok" >&5
6568
echo "${ECHO_T}ok" >&6; }
6571
{ echo "$as_me:$LINENO: checking for objdir" >&5
6572
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6573
if test "${lt_cv_objdir+set}" = set; then
6574
echo $ECHO_N "(cached) $ECHO_C" >&6
6576
rm -f .libs 2>/dev/null
6577
mkdir .libs 2>/dev/null
6578
if test -d .libs; then
6581
# MS-DOS does not allow filenames that begin with a dot.
6584
rmdir .libs 2>/dev/null
6586
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6587
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6588
objdir=$lt_cv_objdir
6596
# AIX sometimes has problems with the GCC collect2 program. For some
6597
# reason, if we set the COLLECT_NAMES environment variable, the problems
6598
# vanish in a puff of smoke.
6599
if test "X${COLLECT_NAMES+set}" != Xset; then
6601
export COLLECT_NAMES
6606
# Sed substitution that helps us do robust quoting. It backslashifies
6607
# metacharacters that are still active within double-quoted strings.
6608
Xsed='sed -e 1s/^X//'
6609
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6611
# Same as above, but do not quote variable references.
6612
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6614
# Sed substitution to delay expansion of an escaped shell variable in a
6615
# double_quote_subst'ed string.
6616
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6618
# Sed substitution to avoid accidental globbing in evaled expressions
6619
no_glob_subst='s/\*/\\\*/g'
6625
default_ofile=libtool
6626
can_build_shared=yes
6628
# All known linkers require a `.a' archive for static linking (except MSVC,
6629
# which needs '.lib').
6631
ltmain="$ac_aux_dir/ltmain.sh"
6632
ofile="$default_ofile"
6633
with_gnu_ld="$lt_cv_prog_gnu_ld"
6635
if test -n "$ac_tool_prefix"; then
6636
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6637
set dummy ${ac_tool_prefix}ar; ac_word=$2
6638
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640
if test "${ac_cv_prog_AR+set}" = set; then
6641
echo $ECHO_N "(cached) $ECHO_C" >&6
6643
if test -n "$AR"; then
6644
ac_cv_prog_AR="$AR" # Let the user override the test.
6646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650
test -z "$as_dir" && as_dir=.
6651
for ac_exec_ext in '' $ac_executable_extensions; do
6652
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653
ac_cv_prog_AR="${ac_tool_prefix}ar"
6654
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664
if test -n "$AR"; then
6665
{ echo "$as_me:$LINENO: result: $AR" >&5
6666
echo "${ECHO_T}$AR" >&6; }
6668
{ echo "$as_me:$LINENO: result: no" >&5
6669
echo "${ECHO_T}no" >&6; }
6674
if test -z "$ac_cv_prog_AR"; then
6676
# Extract the first word of "ar", so it can be a program name with args.
6677
set dummy ar; ac_word=$2
6678
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6681
echo $ECHO_N "(cached) $ECHO_C" >&6
6683
if test -n "$ac_ct_AR"; then
6684
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690
test -z "$as_dir" && as_dir=.
6691
for ac_exec_ext in '' $ac_executable_extensions; do
6692
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693
ac_cv_prog_ac_ct_AR="ar"
6694
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6704
if test -n "$ac_ct_AR"; then
6705
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6706
echo "${ECHO_T}$ac_ct_AR" >&6; }
6708
{ echo "$as_me:$LINENO: result: no" >&5
6709
echo "${ECHO_T}no" >&6; }
6712
if test "x$ac_ct_AR" = x; then
6715
case $cross_compiling:$ac_tool_warned in
6717
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6718
whose name does not start with the host triplet. If you think this
6719
configuration is useful to you, please write to autoconf@gnu.org." >&5
6720
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6721
whose name does not start with the host triplet. If you think this
6722
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6723
ac_tool_warned=yes ;;
6731
if test -n "$ac_tool_prefix"; then
6732
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6733
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6734
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736
if test "${ac_cv_prog_RANLIB+set}" = set; then
6737
echo $ECHO_N "(cached) $ECHO_C" >&6
6739
if test -n "$RANLIB"; then
6740
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746
test -z "$as_dir" && as_dir=.
6747
for ac_exec_ext in '' $ac_executable_extensions; do
6748
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6750
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759
RANLIB=$ac_cv_prog_RANLIB
6760
if test -n "$RANLIB"; then
6761
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
6762
echo "${ECHO_T}$RANLIB" >&6; }
6764
{ echo "$as_me:$LINENO: result: no" >&5
6765
echo "${ECHO_T}no" >&6; }
6770
if test -z "$ac_cv_prog_RANLIB"; then
6771
ac_ct_RANLIB=$RANLIB
6772
# Extract the first word of "ranlib", so it can be a program name with args.
6773
set dummy ranlib; ac_word=$2
6774
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6777
echo $ECHO_N "(cached) $ECHO_C" >&6
6779
if test -n "$ac_ct_RANLIB"; then
6780
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786
test -z "$as_dir" && as_dir=.
6787
for ac_exec_ext in '' $ac_executable_extensions; do
6788
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789
ac_cv_prog_ac_ct_RANLIB="ranlib"
6790
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6800
if test -n "$ac_ct_RANLIB"; then
6801
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6802
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6804
{ echo "$as_me:$LINENO: result: no" >&5
6805
echo "${ECHO_T}no" >&6; }
6808
if test "x$ac_ct_RANLIB" = x; then
6811
case $cross_compiling:$ac_tool_warned in
6813
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6814
whose name does not start with the host triplet. If you think this
6815
configuration is useful to you, please write to autoconf@gnu.org." >&5
6816
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6817
whose name does not start with the host triplet. If you think this
6818
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6819
ac_tool_warned=yes ;;
6821
RANLIB=$ac_ct_RANLIB
6824
RANLIB="$ac_cv_prog_RANLIB"
6827
if test -n "$ac_tool_prefix"; then
6828
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6829
set dummy ${ac_tool_prefix}strip; ac_word=$2
6830
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6831
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832
if test "${ac_cv_prog_STRIP+set}" = set; then
6833
echo $ECHO_N "(cached) $ECHO_C" >&6
6835
if test -n "$STRIP"; then
6836
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842
test -z "$as_dir" && as_dir=.
6843
for ac_exec_ext in '' $ac_executable_extensions; do
6844
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6846
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855
STRIP=$ac_cv_prog_STRIP
6856
if test -n "$STRIP"; then
6857
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6858
echo "${ECHO_T}$STRIP" >&6; }
6860
{ echo "$as_me:$LINENO: result: no" >&5
6861
echo "${ECHO_T}no" >&6; }
6866
if test -z "$ac_cv_prog_STRIP"; then
6868
# Extract the first word of "strip", so it can be a program name with args.
6869
set dummy strip; ac_word=$2
6870
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6873
echo $ECHO_N "(cached) $ECHO_C" >&6
6875
if test -n "$ac_ct_STRIP"; then
6876
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882
test -z "$as_dir" && as_dir=.
6883
for ac_exec_ext in '' $ac_executable_extensions; do
6884
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885
ac_cv_prog_ac_ct_STRIP="strip"
6886
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6895
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6896
if test -n "$ac_ct_STRIP"; then
6897
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6898
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6900
{ echo "$as_me:$LINENO: result: no" >&5
6901
echo "${ECHO_T}no" >&6; }
6904
if test "x$ac_ct_STRIP" = x; then
6907
case $cross_compiling:$ac_tool_warned in
6909
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6910
whose name does not start with the host triplet. If you think this
6911
configuration is useful to you, please write to autoconf@gnu.org." >&5
6912
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6913
whose name does not start with the host triplet. If you think this
6914
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6915
ac_tool_warned=yes ;;
6920
STRIP="$ac_cv_prog_STRIP"
6925
old_CFLAGS="$CFLAGS"
6927
# Set sane defaults for various variables
6928
test -z "$AR" && AR=ar
6929
test -z "$AR_FLAGS" && AR_FLAGS=cru
6930
test -z "$AS" && AS=as
6931
test -z "$CC" && CC=cc
6932
test -z "$LTCC" && LTCC=$CC
6933
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6934
test -z "$DLLTOOL" && DLLTOOL=dlltool
6935
test -z "$LD" && LD=ld
6936
test -z "$LN_S" && LN_S="ln -s"
6937
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6938
test -z "$NM" && NM=nm
6939
test -z "$SED" && SED=sed
6940
test -z "$OBJDUMP" && OBJDUMP=objdump
6941
test -z "$RANLIB" && RANLIB=:
6942
test -z "$STRIP" && STRIP=:
6943
test -z "$ac_objext" && ac_objext=o
6945
# Determine commands to create old-style static archives.
6946
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6947
old_postinstall_cmds='chmod 644 $oldlib'
6948
old_postuninstall_cmds=
6950
if test -n "$RANLIB"; then
6953
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6956
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6959
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6962
for cc_temp in $compiler""; do
6964
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6965
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6970
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6973
# Only perform the check for file, if the check method requires it
6974
case $deplibs_check_method in
6976
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6977
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6978
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6979
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6980
echo $ECHO_N "(cached) $ECHO_C" >&6
6984
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6987
lt_save_MAGIC_CMD="$MAGIC_CMD"
6988
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6989
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6990
for ac_dir in $ac_dummy; do
6992
test -z "$ac_dir" && ac_dir=.
6993
if test -f $ac_dir/${ac_tool_prefix}file; then
6994
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6995
if test -n "$file_magic_test_file"; then
6996
case $deplibs_check_method in
6998
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6999
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7000
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7001
$EGREP "$file_magic_regex" > /dev/null; then
7006
*** Warning: the command libtool uses to detect shared libraries,
7007
*** $file_magic_cmd, produces output that libtool cannot recognize.
7008
*** The result is that libtool may fail to recognize shared libraries
7009
*** as such. This will affect the creation of libtool libraries that
7010
*** depend on shared libraries, but programs linked with such libtool
7011
*** libraries will work regardless of this problem. Nevertheless, you
7012
*** may want to report the problem to your system manager and/or to
7013
*** bug-libtool@gnu.org
7023
MAGIC_CMD="$lt_save_MAGIC_CMD"
7028
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7029
if test -n "$MAGIC_CMD"; then
7030
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7031
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7033
{ echo "$as_me:$LINENO: result: no" >&5
7034
echo "${ECHO_T}no" >&6; }
7037
if test -z "$lt_cv_path_MAGIC_CMD"; then
7038
if test -n "$ac_tool_prefix"; then
7039
{ echo "$as_me:$LINENO: checking for file" >&5
7040
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7041
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7042
echo $ECHO_N "(cached) $ECHO_C" >&6
7046
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7049
lt_save_MAGIC_CMD="$MAGIC_CMD"
7050
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7051
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7052
for ac_dir in $ac_dummy; do
7054
test -z "$ac_dir" && ac_dir=.
7055
if test -f $ac_dir/file; then
7056
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7057
if test -n "$file_magic_test_file"; then
7058
case $deplibs_check_method in
7060
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7061
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7062
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7063
$EGREP "$file_magic_regex" > /dev/null; then
7068
*** Warning: the command libtool uses to detect shared libraries,
7069
*** $file_magic_cmd, produces output that libtool cannot recognize.
7070
*** The result is that libtool may fail to recognize shared libraries
7071
*** as such. This will affect the creation of libtool libraries that
7072
*** depend on shared libraries, but programs linked with such libtool
7073
*** libraries will work regardless of this problem. Nevertheless, you
7074
*** may want to report the problem to your system manager and/or to
7075
*** bug-libtool@gnu.org
7085
MAGIC_CMD="$lt_save_MAGIC_CMD"
7090
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7091
if test -n "$MAGIC_CMD"; then
7092
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7093
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7095
{ echo "$as_me:$LINENO: result: no" >&5
7096
echo "${ECHO_T}no" >&6; }
7111
# Check whether --enable-libtool-lock was given.
7112
if test "${enable_libtool_lock+set}" = set; then
7113
enableval=$enable_libtool_lock;
7116
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7119
# Check whether --with-pic was given.
7120
if test "${with_pic+set}" = set; then
7121
withval=$with_pic; pic_mode="$withval"
7126
test -z "$pic_mode" && pic_mode=default
7128
# Use C for the default configuration in the libtool script
7132
ac_cpp='$CPP $CPPFLAGS'
7133
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138
# Source file extension for C test sources.
7141
# Object file extension for compiled C test sources.
7145
# Code to be used in simple compile tests
7146
lt_simple_compile_test_code="int some_variable = 0;"
7148
# Code to be used in simple link tests
7149
lt_simple_link_test_code='int main(){return(0);}'
7152
# If no C compiler was specified, use CC.
7155
# If no C compiler flags were specified, use CFLAGS.
7156
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7158
# Allow CC to be a program name with arguments.
7162
# save warnings/boilerplate of simple test code
7163
ac_outfile=conftest.$ac_objext
7164
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7165
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7166
_lt_compiler_boilerplate=`cat conftest.err`
7169
ac_outfile=conftest.$ac_objext
7170
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7171
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7172
_lt_linker_boilerplate=`cat conftest.err`
7177
lt_prog_compiler_no_builtin_flag=
7179
if test "$GCC" = yes; then
7180
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7183
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7184
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7185
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7186
echo $ECHO_N "(cached) $ECHO_C" >&6
7188
lt_cv_prog_compiler_rtti_exceptions=no
7189
ac_outfile=conftest.$ac_objext
7190
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7191
lt_compiler_flag="-fno-rtti -fno-exceptions"
7192
# Insert the option either (1) after the last *FLAGS variable, or
7193
# (2) before a word containing "conftest.", or (3) at the end.
7194
# Note that $ac_compile itself does not contain backslashes and begins
7195
# with a dollar sign (not a hyphen), so the echo should work correctly.
7196
# The option is referenced via a variable to avoid confusing sed.
7197
lt_compile=`echo "$ac_compile" | $SED \
7198
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7199
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7200
-e 's:$: $lt_compiler_flag:'`
7201
(eval echo "\"\$as_me:7201: $lt_compile\"" >&5)
7202
(eval "$lt_compile" 2>conftest.err)
7204
cat conftest.err >&5
7205
echo "$as_me:7205: \$? = $ac_status" >&5
7206
if (exit $ac_status) && test -s "$ac_outfile"; then
7207
# The compiler can only warn and ignore the option if not recognized
7208
# So say no if there are warnings other than the usual output.
7209
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7210
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7211
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7212
lt_cv_prog_compiler_rtti_exceptions=yes
7218
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7219
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7221
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7222
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7229
lt_prog_compiler_wl=
7230
lt_prog_compiler_pic=
7231
lt_prog_compiler_static=
7233
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7234
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7236
if test "$GCC" = yes; then
7237
lt_prog_compiler_wl='-Wl,'
7238
lt_prog_compiler_static='-static'
7242
# All AIX code is PIC.
7243
if test "$host_cpu" = ia64; then
7244
# AIX 5 now supports IA64 processor
7245
lt_prog_compiler_static='-Bstatic'
7250
# FIXME: we need at least 68020 code to build shared libraries, but
7251
# adding the `-m68020' flag to GCC prevents building anything better,
7253
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7256
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7257
# PIC is the default for these OSes.
7260
mingw* | cygwin* | pw32* | os2*)
7261
# This hack is so that the source file can tell whether it is being
7262
# built for inclusion in a dll (and should export symbols for example).
7263
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7264
# (--disable-auto-import) libraries
7265
lt_prog_compiler_pic='-DDLL_EXPORT'
7268
darwin* | rhapsody*)
7269
# PIC is the default on this platform
7270
# Common symbols not allowed in MH_DYLIB files
7271
lt_prog_compiler_pic='-fno-common'
7275
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7276
# Instead, we relocate shared libraries at runtime.
7280
# Just because we use GCC doesn't mean we suddenly get shared libraries
7281
# on systems that don't support them.
7282
lt_prog_compiler_can_build_shared=no
7287
if test -d /usr/nec; then
7288
lt_prog_compiler_pic=-Kconform_pic
7293
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7300
lt_prog_compiler_pic='-fPIC'
7306
lt_prog_compiler_pic='-fPIC'
7310
# PORTME Check for flag to pass linker flags through the system compiler.
7313
lt_prog_compiler_wl='-Wl,'
7314
if test "$host_cpu" = ia64; then
7315
# AIX 5 now supports IA64 processor
7316
lt_prog_compiler_static='-Bstatic'
7318
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7322
# PIC is the default on this platform
7323
# Common symbols not allowed in MH_DYLIB files
7324
case $cc_basename in
7326
lt_prog_compiler_pic='-qnocommon'
7327
lt_prog_compiler_wl='-Wl,'
7332
mingw* | cygwin* | pw32* | os2*)
7333
# This hack is so that the source file can tell whether it is being
7334
# built for inclusion in a dll (and should export symbols for example).
7335
lt_prog_compiler_pic='-DDLL_EXPORT'
7338
hpux9* | hpux10* | hpux11*)
7339
lt_prog_compiler_wl='-Wl,'
7340
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7347
lt_prog_compiler_pic='+Z'
7350
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7351
lt_prog_compiler_static='${wl}-a ${wl}archive'
7354
irix5* | irix6* | nonstopux*)
7355
lt_prog_compiler_wl='-Wl,'
7356
# PIC (with -KPIC) is the default.
7357
lt_prog_compiler_static='-non_shared'
7361
lt_prog_compiler_pic='-KPIC'
7362
lt_prog_compiler_static='-Bstatic'
7365
linux* | k*bsd*-gnu)
7366
case $cc_basename in
7368
lt_prog_compiler_wl='-Wl,'
7369
lt_prog_compiler_pic='-KPIC'
7370
lt_prog_compiler_static='-static'
7372
pgcc* | pgf77* | pgf90* | pgf95*)
7373
# Portland Group compilers (*not* the Pentium gcc compiler,
7374
# which looks to be a dead project)
7375
lt_prog_compiler_wl='-Wl,'
7376
lt_prog_compiler_pic='-fpic'
7377
lt_prog_compiler_static='-Bstatic'
7380
lt_prog_compiler_wl='-Wl,'
7381
# All Alpha code is PIC.
7382
lt_prog_compiler_static='-non_shared'
7385
case `$CC -V 2>&1 | sed 5q` in
7388
lt_prog_compiler_pic='-KPIC'
7389
lt_prog_compiler_static='-Bstatic'
7390
lt_prog_compiler_wl='-Wl,'
7393
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7394
lt_prog_compiler_pic='-KPIC'
7395
lt_prog_compiler_static='-Bstatic'
7396
lt_prog_compiler_wl=''
7403
osf3* | osf4* | osf5*)
7404
lt_prog_compiler_wl='-Wl,'
7405
# All OSF/1 code is PIC.
7406
lt_prog_compiler_static='-non_shared'
7410
lt_prog_compiler_static='-non_shared'
7414
lt_prog_compiler_pic='-KPIC'
7415
lt_prog_compiler_static='-Bstatic'
7416
case $cc_basename in
7418
lt_prog_compiler_wl='-Qoption ld ';;
7420
lt_prog_compiler_wl='-Wl,';;
7425
lt_prog_compiler_wl='-Qoption ld '
7426
lt_prog_compiler_pic='-PIC'
7427
lt_prog_compiler_static='-Bstatic'
7430
sysv4 | sysv4.2uw2* | sysv4.3*)
7431
lt_prog_compiler_wl='-Wl,'
7432
lt_prog_compiler_pic='-KPIC'
7433
lt_prog_compiler_static='-Bstatic'
7437
if test -d /usr/nec ;then
7438
lt_prog_compiler_pic='-Kconform_pic'
7439
lt_prog_compiler_static='-Bstatic'
7443
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7444
lt_prog_compiler_wl='-Wl,'
7445
lt_prog_compiler_pic='-KPIC'
7446
lt_prog_compiler_static='-Bstatic'
7450
lt_prog_compiler_wl='-Wl,'
7451
lt_prog_compiler_can_build_shared=no
7455
lt_prog_compiler_pic='-pic'
7456
lt_prog_compiler_static='-Bstatic'
7460
lt_prog_compiler_can_build_shared=no
7465
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7466
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7469
# Check to make sure the PIC flag actually works.
7471
if test -n "$lt_prog_compiler_pic"; then
7473
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7474
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7475
if test "${lt_prog_compiler_pic_works+set}" = set; then
7476
echo $ECHO_N "(cached) $ECHO_C" >&6
7478
lt_prog_compiler_pic_works=no
7479
ac_outfile=conftest.$ac_objext
7480
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7481
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7482
# Insert the option either (1) after the last *FLAGS variable, or
7483
# (2) before a word containing "conftest.", or (3) at the end.
7484
# Note that $ac_compile itself does not contain backslashes and begins
7485
# with a dollar sign (not a hyphen), so the echo should work correctly.
7486
# The option is referenced via a variable to avoid confusing sed.
7487
lt_compile=`echo "$ac_compile" | $SED \
7488
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7489
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7490
-e 's:$: $lt_compiler_flag:'`
7491
(eval echo "\"\$as_me:7491: $lt_compile\"" >&5)
7492
(eval "$lt_compile" 2>conftest.err)
7494
cat conftest.err >&5
7495
echo "$as_me:7495: \$? = $ac_status" >&5
7496
if (exit $ac_status) && test -s "$ac_outfile"; then
7497
# The compiler can only warn and ignore the option if not recognized
7498
# So say no if there are warnings other than the usual output.
7499
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7500
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7501
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7502
lt_prog_compiler_pic_works=yes
7508
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7509
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7511
if test x"$lt_prog_compiler_pic_works" = xyes; then
7512
case $lt_prog_compiler_pic in
7514
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7517
lt_prog_compiler_pic=
7518
lt_prog_compiler_can_build_shared=no
7523
# For platforms which do not support PIC, -DPIC is meaningless:
7525
lt_prog_compiler_pic=
7528
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7533
# Check to make sure the static flag actually works.
7535
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7536
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7537
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7538
if test "${lt_prog_compiler_static_works+set}" = set; then
7539
echo $ECHO_N "(cached) $ECHO_C" >&6
7541
lt_prog_compiler_static_works=no
7542
save_LDFLAGS="$LDFLAGS"
7543
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7544
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7545
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7546
# The linker can only warn and ignore the option if not recognized
7547
# So say no if there are warnings
7548
if test -s conftest.err; then
7549
# Append any errors to the config.log.
7550
cat conftest.err 1>&5
7551
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7552
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7553
if diff conftest.exp conftest.er2 >/dev/null; then
7554
lt_prog_compiler_static_works=yes
7557
lt_prog_compiler_static_works=yes
7561
LDFLAGS="$save_LDFLAGS"
7564
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7565
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7567
if test x"$lt_prog_compiler_static_works" = xyes; then
7570
lt_prog_compiler_static=
7574
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7575
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7576
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7577
echo $ECHO_N "(cached) $ECHO_C" >&6
7579
lt_cv_prog_compiler_c_o=no
7580
$rm -r conftest 2>/dev/null
7584
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7586
lt_compiler_flag="-o out/conftest2.$ac_objext"
7587
# Insert the option either (1) after the last *FLAGS variable, or
7588
# (2) before a word containing "conftest.", or (3) at the end.
7589
# Note that $ac_compile itself does not contain backslashes and begins
7590
# with a dollar sign (not a hyphen), so the echo should work correctly.
7591
lt_compile=`echo "$ac_compile" | $SED \
7592
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594
-e 's:$: $lt_compiler_flag:'`
7595
(eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596
(eval "$lt_compile" 2>out/conftest.err)
7598
cat out/conftest.err >&5
7599
echo "$as_me:7599: \$? = $ac_status" >&5
7600
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7602
# The compiler can only warn and ignore the option if not recognized
7603
# So say no if there are warnings
7604
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7605
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7606
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7607
lt_cv_prog_compiler_c_o=yes
7612
# SGI C++ compiler will create directory out/ii_files/ for
7613
# template instantiation
7614
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7615
$rm out/* && rmdir out
7621
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7622
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7625
hard_links="nottested"
7626
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7627
# do not overwrite the value of need_locks provided by the user
7628
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7629
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7632
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7634
ln conftest.a conftest.b 2>&5 || hard_links=no
7635
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7636
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7637
echo "${ECHO_T}$hard_links" >&6; }
7638
if test "$hard_links" = no; then
7639
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7640
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7647
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7648
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7651
allow_undefined_flag=
7652
enable_shared_with_static_runtimes=no
7654
archive_expsym_cmds=
7655
old_archive_From_new_cmds=
7656
old_archive_from_expsyms_cmds=
7657
export_dynamic_flag_spec=
7658
whole_archive_flag_spec=
7659
thread_safe_flag_spec=
7660
hardcode_libdir_flag_spec=
7661
hardcode_libdir_flag_spec_ld=
7662
hardcode_libdir_separator=
7665
hardcode_shlibpath_var=unsupported
7666
link_all_deplibs=unknown
7667
hardcode_automatic=no
7670
always_export_symbols=no
7671
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7672
# include_expsyms should be a list of space-separated symbols to be *always*
7673
# included in the symbol list
7675
# exclude_expsyms can be an extended regexp of symbols to exclude
7676
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7677
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7678
# as well as any symbol that contains `d'.
7679
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7680
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7681
# platforms (ab)use it in PIC code, but their linkers get confused if
7682
# the symbol is explicitly referenced. Since portable code cannot
7683
# rely on this symbol name, it's probably fine to never include it in
7684
# preloaded symbol tables.
7685
extract_expsyms_cmds=
7686
# Just being paranoid about ensuring that cc_basename is set.
7687
for cc_temp in $compiler""; do
7689
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7690
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7695
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7698
cygwin* | mingw* | pw32*)
7699
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7700
# When not using gcc, we currently assume that we are using
7701
# Microsoft Visual C++.
7702
if test "$GCC" != yes; then
7707
# we just hope/assume this is gcc and not c89 (= MSVC++)
7716
if test "$with_gnu_ld" = yes; then
7717
# If archive_cmds runs LD, not CC, wlarc should be empty
7720
# Set some defaults for GNU ld with shared library support. These
7721
# are reset later if shared libraries are not supported. Putting them
7722
# here allows them to be overridden if necessary.
7723
runpath_var=LD_RUN_PATH
7724
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7725
export_dynamic_flag_spec='${wl}--export-dynamic'
7726
# ancient GNU ld didn't support --whole-archive et. al.
7727
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7728
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7730
whole_archive_flag_spec=
7732
supports_anon_versioning=no
7733
case `$LD -v 2>/dev/null` in
7734
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7735
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7736
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7737
*\ 2.11.*) ;; # other 2.11 versions
7738
*) supports_anon_versioning=yes ;;
7741
# See if GNU ld supports shared libraries.
7743
aix3* | aix4* | aix5*)
7744
# On AIX/PPC, the GNU linker is very broken
7745
if test "$host_cpu" != ia64; then
7749
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7750
*** to be unable to reliably create shared libraries on AIX.
7751
*** Therefore, libtool is disabling shared libraries support. If you
7752
*** really care for shared libraries, you may want to modify your PATH
7753
*** so that a non-GNU linker is found, and then restart.
7760
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)'
7761
hardcode_libdir_flag_spec='-L$libdir'
7762
hardcode_minus_L=yes
7764
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7765
# that the semantics of dynamic libraries on AmigaOS, at least up
7766
# to version 4, is to share data among multiple programs linked
7767
# with the same dynamic library. Since this doesn't match the
7768
# behavior of shared libraries on other platforms, we can't use
7774
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7775
allow_undefined_flag=unsupported
7776
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7777
# support --undefined. This deserves some investigation. FIXME
7778
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7784
cygwin* | mingw* | pw32*)
7785
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7786
# as there is no search path for DLLs.
7787
hardcode_libdir_flag_spec='-L$libdir'
7788
allow_undefined_flag=unsupported
7789
always_export_symbols=no
7790
enable_shared_with_static_runtimes=yes
7791
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7793
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7794
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7795
# If the export-symbols file already is a .def file (1st line
7796
# is EXPORTS), use it as is; otherwise, prepend...
7797
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7798
cp $export_symbols $output_objdir/$soname.def;
7800
echo EXPORTS > $output_objdir/$soname.def;
7801
cat $export_symbols >> $output_objdir/$soname.def;
7803
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7811
hardcode_shlibpath_var=no
7812
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7813
export_dynamic_flag_spec='${wl}-E'
7814
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7815
# Instead, shared libraries are loaded at an image base (0x10000000 by
7816
# default) and relocated if they conflict, which is a slow very memory
7817
# consuming and fragmenting process. To avoid this, we pick a random,
7818
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7819
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7820
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7821
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'
7824
gnu* | linux* | k*bsd*-gnu)
7825
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7827
case $cc_basename,$host_cpu in
7828
pgcc*) # Portland Group C compiler
7829
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'
7830
tmp_addflag=' $pic_flag'
7832
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7833
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'
7834
tmp_addflag=' $pic_flag -Mnomain' ;;
7835
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7836
tmp_addflag=' -i_dynamic' ;;
7837
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7838
tmp_addflag=' -i_dynamic -nofor_main' ;;
7839
ifc* | ifort*) # Intel Fortran compiler
7840
tmp_addflag=' -nofor_main' ;;
7842
case `$CC -V 2>&1 | sed 5q` in
7843
*Sun\ C*) # Sun C 5.9
7844
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'
7845
tmp_sharedflag='-G' ;;
7846
*Sun\ F*) # Sun Fortran 8.3
7847
tmp_sharedflag='-G' ;;
7849
tmp_sharedflag='-shared' ;;
7851
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7853
if test $supports_anon_versioning = yes; then
7854
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7855
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7856
$echo "local: *; };" >> $output_objdir/$libname.ver~
7857
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7865
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7866
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7869
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7870
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7875
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7879
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7880
*** create shared libraries on Solaris systems. Therefore, libtool
7881
*** is disabling shared libraries support. We urge you to upgrade GNU
7882
*** binutils to release 2.9.1 or newer. Another option is to modify
7883
*** your PATH or compiler configuration so that the native linker is
7884
*** used, and then restart.
7887
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7888
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7895
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7896
case `$LD -v 2>&1` in
7897
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7901
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7902
*** reliably create shared libraries on SCO systems. Therefore, libtool
7903
*** is disabling shared libraries support. We urge you to upgrade GNU
7904
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7905
*** your PATH or compiler configuration so that the native linker is
7906
*** used, and then restart.
7911
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7912
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7913
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7914
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7923
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7926
hardcode_shlibpath_var=no
7930
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7931
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7932
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7939
if test "$ld_shlibs" = no; then
7941
hardcode_libdir_flag_spec=
7942
export_dynamic_flag_spec=
7943
whole_archive_flag_spec=
7946
# PORTME fill in a description of your system's linker (not GNU ld)
7949
allow_undefined_flag=unsupported
7950
always_export_symbols=yes
7951
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'
7952
# Note: this linker hardcodes the directories in LIBPATH if there
7953
# are no directories specified by -L.
7954
hardcode_minus_L=yes
7955
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7956
# Neither direct hardcoding nor static linking is supported with a
7958
hardcode_direct=unsupported
7963
if test "$host_cpu" = ia64; then
7964
# On IA64, the linker does run time linking by default, so we don't
7965
# have to do anything special.
7966
aix_use_runtimelinking=no
7967
exp_sym_flag='-Bexport'
7970
# If we're using GNU nm, then we don't want the "-C" option.
7971
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7972
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7973
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'
7975
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'
7977
aix_use_runtimelinking=no
7979
# Test if we are trying to use run time linking or normal
7980
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7981
# need to do runtime linking.
7982
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7983
for ld_flag in $LDFLAGS; do
7984
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7985
aix_use_runtimelinking=yes
7992
exp_sym_flag='-bexport'
7993
no_entry_flag='-bnoentry'
7996
# When large executables or shared objects are built, AIX ld can
7997
# have problems creating the table of contents. If linking a library
7998
# or program results in "error TOC overflow" add -mminimal-toc to
7999
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8000
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8004
hardcode_libdir_separator=':'
8005
link_all_deplibs=yes
8007
if test "$GCC" = yes; then
8008
case $host_os in aix4.[012]|aix4.[012].*)
8009
# We only want to do this on AIX 4.2 and lower, the check
8010
# below for broken collect2 doesn't work under 4.3+
8011
collect2name=`${CC} -print-prog-name=collect2`
8012
if test -f "$collect2name" && \
8013
strings "$collect2name" | grep resolve_lib_name >/dev/null
8015
# We have reworked collect2
8018
# We have old collect2
8019
hardcode_direct=unsupported
8020
# It fails to find uninstalled libraries when the uninstalled
8021
# path is not listed in the libpath. Setting hardcode_minus_L
8022
# to unsupported forces relinking
8023
hardcode_minus_L=yes
8024
hardcode_libdir_flag_spec='-L$libdir'
8025
hardcode_libdir_separator=
8029
shared_flag='-shared'
8030
if test "$aix_use_runtimelinking" = yes; then
8031
shared_flag="$shared_flag "'${wl}-G'
8035
if test "$host_cpu" = ia64; then
8036
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8037
# chokes on -Wl,-G. The following line is correct:
8040
if test "$aix_use_runtimelinking" = yes; then
8041
shared_flag='${wl}-G'
8043
shared_flag='${wl}-bM:SRE'
8048
# It seems that -bexpall does not export symbols beginning with
8049
# underscore (_), so it is better to generate a list of symbols to export.
8050
always_export_symbols=yes
8051
if test "$aix_use_runtimelinking" = yes; then
8052
# Warning - without using the other runtime loading flags (-brtl),
8053
# -berok will link without error, but may produce a broken library.
8054
allow_undefined_flag='-berok'
8055
# Determine the default libpath from the value encoded in an empty executable.
8056
cat >conftest.$ac_ext <<_ACEOF
8059
cat confdefs.h >>conftest.$ac_ext
8060
cat >>conftest.$ac_ext <<_ACEOF
8061
/* end confdefs.h. */
8071
rm -f conftest.$ac_objext conftest$ac_exeext
8072
if { (ac_try="$ac_link"
8074
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075
*) ac_try_echo=$ac_try;;
8077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078
(eval "$ac_link") 2>conftest.er1
8080
grep -v '^ *+' conftest.er1 >conftest.err
8082
cat conftest.err >&5
8083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084
(exit $ac_status); } && {
8085
test -z "$ac_c_werror_flag" ||
8086
test ! -s conftest.err
8087
} && test -s conftest$ac_exeext &&
8088
$as_test_x conftest$ac_exeext; then
8090
lt_aix_libpath_sed='
8091
/Import File Strings/,/^$/ {
8097
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8098
# Check for a 64-bit object if we didn't find anything.
8099
if test -z "$aix_libpath"; then
8100
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8103
echo "$as_me: failed program was:" >&5
8104
sed 's/^/| /' conftest.$ac_ext >&5
8109
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8110
conftest$ac_exeext conftest.$ac_ext
8111
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8113
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8114
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"
8116
if test "$host_cpu" = ia64; then
8117
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8118
allow_undefined_flag="-z nodefs"
8119
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"
8121
# Determine the default libpath from the value encoded in an empty executable.
8122
cat >conftest.$ac_ext <<_ACEOF
8125
cat confdefs.h >>conftest.$ac_ext
8126
cat >>conftest.$ac_ext <<_ACEOF
8127
/* end confdefs.h. */
8137
rm -f conftest.$ac_objext conftest$ac_exeext
8138
if { (ac_try="$ac_link"
8140
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141
*) ac_try_echo=$ac_try;;
8143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144
(eval "$ac_link") 2>conftest.er1
8146
grep -v '^ *+' conftest.er1 >conftest.err
8148
cat conftest.err >&5
8149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150
(exit $ac_status); } && {
8151
test -z "$ac_c_werror_flag" ||
8152
test ! -s conftest.err
8153
} && test -s conftest$ac_exeext &&
8154
$as_test_x conftest$ac_exeext; then
8156
lt_aix_libpath_sed='
8157
/Import File Strings/,/^$/ {
8163
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8164
# Check for a 64-bit object if we didn't find anything.
8165
if test -z "$aix_libpath"; then
8166
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8169
echo "$as_me: failed program was:" >&5
8170
sed 's/^/| /' conftest.$ac_ext >&5
8175
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8176
conftest$ac_exeext conftest.$ac_ext
8177
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8179
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8180
# Warning - without using the other run time loading flags,
8181
# -berok will link without error, but may produce a broken library.
8182
no_undefined_flag=' ${wl}-bernotok'
8183
allow_undefined_flag=' ${wl}-berok'
8184
# Exported symbols can be pulled into shared objects from archives
8185
whole_archive_flag_spec='$convenience'
8186
archive_cmds_need_lc=yes
8187
# This is similar to how AIX traditionally builds its shared libraries.
8188
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'
8194
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)'
8195
hardcode_libdir_flag_spec='-L$libdir'
8196
hardcode_minus_L=yes
8197
# see comment about different semantics on the GNU ld section
8202
export_dynamic_flag_spec=-rdynamic
8205
cygwin* | mingw* | pw32*)
8206
# When not using gcc, we currently assume that we are using
8207
# Microsoft Visual C++.
8208
# hardcode_libdir_flag_spec is actually meaningless, as there is
8209
# no search path for DLLs.
8210
hardcode_libdir_flag_spec=' '
8211
allow_undefined_flag=unsupported
8212
# Tell ltmain to make .lib files, not .a files.
8214
# Tell ltmain to make .dll files, not .so files.
8216
# FIXME: Setting linknames here is a bad hack.
8217
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8218
# The linker will automatically build a .lib file if we build a DLL.
8219
old_archive_From_new_cmds='true'
8220
# FIXME: Should let the user specify the lib program.
8221
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8222
fix_srcfile_path='`cygpath -w "$srcfile"`'
8223
enable_shared_with_static_runtimes=yes
8226
darwin* | rhapsody*)
8228
rhapsody* | darwin1.[012])
8229
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8232
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8233
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8235
case ${MACOSX_DEPLOYMENT_TARGET} in
8237
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8240
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8246
archive_cmds_need_lc=no
8248
hardcode_automatic=yes
8249
hardcode_shlibpath_var=unsupported
8250
whole_archive_flag_spec=''
8251
link_all_deplibs=yes
8252
if test "$GCC" = yes ; then
8253
output_verbose_link_cmd='echo'
8254
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8255
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8256
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8257
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}'
8258
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}'
8260
case $cc_basename in
8262
output_verbose_link_cmd='echo'
8263
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8264
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8265
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8266
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}'
8267
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}'
8277
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8278
hardcode_libdir_flag_spec='-L$libdir'
8279
hardcode_shlibpath_var=no
8286
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8287
# support. Future versions do this automatically, but an explicit c++rt0.o
8288
# does not break anything, and helps significantly (at the cost of a little
8291
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8292
hardcode_libdir_flag_spec='-R$libdir'
8294
hardcode_shlibpath_var=no
8297
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8299
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8301
hardcode_minus_L=yes
8302
hardcode_shlibpath_var=no
8305
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8306
freebsd* | dragonfly*)
8307
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8308
hardcode_libdir_flag_spec='-R$libdir'
8310
hardcode_shlibpath_var=no
8314
if test "$GCC" = yes; then
8315
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'
8317
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'
8319
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8320
hardcode_libdir_separator=:
8323
# hardcode_minus_L: Not really in the search PATH,
8324
# but as the default location of the library.
8325
hardcode_minus_L=yes
8326
export_dynamic_flag_spec='${wl}-E'
8330
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8331
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8333
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8335
if test "$with_gnu_ld" = no; then
8336
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8337
hardcode_libdir_separator=:
8340
export_dynamic_flag_spec='${wl}-E'
8342
# hardcode_minus_L: Not really in the search PATH,
8343
# but as the default location of the library.
8344
hardcode_minus_L=yes
8349
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8352
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8358
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8364
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8367
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8370
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8374
if test "$with_gnu_ld" = no; then
8375
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8376
hardcode_libdir_separator=:
8380
hardcode_libdir_flag_spec_ld='+b $libdir'
8382
hardcode_shlibpath_var=no
8386
export_dynamic_flag_spec='${wl}-E'
8388
# hardcode_minus_L: Not really in the search PATH,
8389
# but as the default location of the library.
8390
hardcode_minus_L=yes
8396
irix5* | irix6* | nonstopux*)
8397
if test "$GCC" = yes; then
8398
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'
8400
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'
8401
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8403
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8404
hardcode_libdir_separator=:
8405
link_all_deplibs=yes
8409
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8410
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8412
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8414
hardcode_libdir_flag_spec='-R$libdir'
8416
hardcode_shlibpath_var=no
8420
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8423
hardcode_libdir_separator=:
8424
hardcode_shlibpath_var=no
8428
if test -f /usr/libexec/ld.so; then
8430
hardcode_shlibpath_var=no
8431
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8432
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8433
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8434
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8435
export_dynamic_flag_spec='${wl}-E'
8438
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8439
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8440
hardcode_libdir_flag_spec='-R$libdir'
8443
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8444
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8454
hardcode_libdir_flag_spec='-L$libdir'
8455
hardcode_minus_L=yes
8456
allow_undefined_flag=unsupported
8457
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'
8458
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8462
if test "$GCC" = yes; then
8463
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8464
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'
8466
allow_undefined_flag=' -expect_unresolved \*'
8467
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'
8469
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8470
hardcode_libdir_separator=:
8473
osf4* | osf5*) # as osf3* with the addition of -msym flag
8474
if test "$GCC" = yes; then
8475
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8476
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'
8477
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8479
allow_undefined_flag=' -expect_unresolved \*'
8480
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'
8481
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8482
$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'
8484
# Both c and cxx compiler support -rpath directly
8485
hardcode_libdir_flag_spec='-rpath $libdir'
8487
hardcode_libdir_separator=:
8491
no_undefined_flag=' -z text'
8492
if test "$GCC" = yes; then
8494
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8495
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8496
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8499
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8501
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8503
hardcode_libdir_flag_spec='-R$libdir'
8504
hardcode_shlibpath_var=no
8506
solaris2.[0-5] | solaris2.[0-5].*) ;;
8508
# The compiler driver will combine and reorder linker options,
8509
# but understands `-z linker_flag'. GCC discards it without `$wl',
8510
# but is careful enough not to reorder.
8511
# Supported since Solaris 2.6 (maybe 2.5.1?)
8512
if test "$GCC" = yes; then
8513
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8515
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8519
link_all_deplibs=yes
8523
if test "x$host_vendor" = xsequent; then
8524
# Use $CC to link under sequent, because it throws in some extra .o
8525
# files that make .init and .fini sections work.
8526
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8528
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8530
hardcode_libdir_flag_spec='-L$libdir'
8532
hardcode_minus_L=yes
8533
hardcode_shlibpath_var=no
8537
case $host_vendor in
8539
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8540
hardcode_direct=yes # is this really true???
8543
## LD is ld it makes a PLAMLIB
8544
## CC just makes a GrossModule.
8545
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8546
reload_cmds='$CC -r -o $output$reload_objs'
8550
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8551
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8554
runpath_var='LD_RUN_PATH'
8555
hardcode_shlibpath_var=no
8559
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8560
hardcode_shlibpath_var=no
8561
export_dynamic_flag_spec='-Bexport'
8565
if test -d /usr/nec; then
8566
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8567
hardcode_shlibpath_var=no
8568
runpath_var=LD_RUN_PATH
8569
hardcode_runpath_var=yes
8574
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8575
no_undefined_flag='${wl}-z,text'
8576
archive_cmds_need_lc=no
8577
hardcode_shlibpath_var=no
8578
runpath_var='LD_RUN_PATH'
8580
if test "$GCC" = yes; then
8581
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8582
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8585
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8589
sysv5* | sco3.2v5* | sco5v6*)
8590
# Note: We can NOT use -z defs as we might desire, because we do not
8591
# link with -lc, and that would cause any symbols used from libc to
8592
# always be unresolved, which means just about no library would
8593
# ever link correctly. If we're not using GNU ld we use -z text
8594
# though, which does catch some bad symbols but isn't as heavy-handed
8596
no_undefined_flag='${wl}-z,text'
8597
allow_undefined_flag='${wl}-z,nodefs'
8598
archive_cmds_need_lc=no
8599
hardcode_shlibpath_var=no
8600
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8601
hardcode_libdir_separator=':'
8602
link_all_deplibs=yes
8603
export_dynamic_flag_spec='${wl}-Bexport'
8604
runpath_var='LD_RUN_PATH'
8606
if test "$GCC" = yes; then
8607
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8608
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8611
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8616
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617
hardcode_libdir_flag_spec='-L$libdir'
8618
hardcode_shlibpath_var=no
8627
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8628
echo "${ECHO_T}$ld_shlibs" >&6; }
8629
test "$ld_shlibs" = no && can_build_shared=no
8632
# Do we need to explicitly link libc?
8634
case "x$archive_cmds_need_lc" in
8636
# Assume -lc should be added
8637
archive_cmds_need_lc=yes
8639
if test "$enable_shared" = yes && test "$GCC" = yes; then
8640
case $archive_cmds in
8642
# FIXME: we may have to deal with multi-command sequences.
8645
# Test whether the compiler implicitly links with -lc since on some
8646
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8647
# to ld, don't add -lc before -lgcc.
8648
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8649
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8651
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654
(eval $ac_compile) 2>&5
8656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657
(exit $ac_status); } 2>conftest.err; then
8660
libobjs=conftest.$ac_objext
8662
wl=$lt_prog_compiler_wl
8663
pic_flag=$lt_prog_compiler_pic
8669
lt_save_allow_undefined_flag=$allow_undefined_flag
8670
allow_undefined_flag=
8671
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8672
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675
(exit $ac_status); }
8677
archive_cmds_need_lc=no
8679
archive_cmds_need_lc=yes
8681
allow_undefined_flag=$lt_save_allow_undefined_flag
8683
cat conftest.err 1>&5
8686
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8687
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8694
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8695
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8697
libname_spec='lib$name'
8705
shlibpath_overrides_runpath=unknown
8707
dynamic_linker="$host_os ld.so"
8708
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8710
if test "$GCC" = yes; then
8712
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8713
*) lt_awk_arg="/^libraries:/" ;;
8715
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8716
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8717
# if the path contains ";" then we assume it to be the separator
8718
# otherwise default to the standard path separator (i.e. ":") - it is
8719
# assumed that no part of a normal pathname contains ";" but that should
8720
# okay in the real world where ";" in dirpaths is itself problematic.
8721
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8723
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8725
# Ok, now we have the path, separated by spaces, we can step through it
8726
# and add multilib dir if necessary.
8727
lt_tmp_lt_search_path_spec=
8728
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8729
for lt_sys_path in $lt_search_path_spec; do
8730
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8731
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8733
test -d "$lt_sys_path" && \
8734
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8737
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8738
BEGIN {RS=" "; FS="/|\n";} {
8741
for (lt_i = NF; lt_i > 0; lt_i--) {
8742
if ($lt_i != "" && $lt_i != ".") {
8743
if ($lt_i == "..") {
8746
if (lt_count == 0) {
8747
lt_foo="/" $lt_i lt_foo;
8754
if (lt_foo != "") { lt_freq[lt_foo]++; }
8755
if (lt_freq[lt_foo] == 1) { print lt_foo; }
8757
sys_lib_search_path_spec=`echo $lt_search_path_spec`
8759
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8761
need_lib_prefix=unknown
8762
hardcode_into_libs=no
8764
# when you set need_version to no, make sure it does not cause -set_version
8765
# flags to be left without arguments
8766
need_version=unknown
8771
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8772
shlibpath_var=LIBPATH
8774
# AIX 3 has no versioning support, so we append a major version to the name.
8775
soname_spec='${libname}${release}${shared_ext}$major'
8782
hardcode_into_libs=yes
8783
if test "$host_cpu" = ia64; then
8784
# AIX 5 supports IA64
8785
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8786
shlibpath_var=LD_LIBRARY_PATH
8788
# With GCC up to 2.95.x, collect2 would create an import file
8789
# for dependence libraries. The import file would start with
8790
# the line `#! .'. This would cause the generated library to
8791
# depend on `.', always an invalid library. This was fixed in
8792
# development snapshots of GCC prior to 3.0.
8794
aix4 | aix4.[01] | aix4.[01].*)
8795
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8797
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8804
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8805
# soname into executable. Probably we can add versioning support to
8806
# collect2, so additional links can be useful in future.
8807
if test "$aix_use_runtimelinking" = yes; then
8808
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8809
# instead of lib<name>.a to let people know that these are not
8810
# typical AIX shared libraries.
8811
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813
# We preserve .a as extension for shared libraries through AIX4.2
8814
# and later when we are not doing run time linking.
8815
library_names_spec='${libname}${release}.a $libname.a'
8816
soname_spec='${libname}${release}${shared_ext}$major'
8818
shlibpath_var=LIBPATH
8823
library_names_spec='$libname.ixlibrary $libname.a'
8824
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8825
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'
8829
library_names_spec='${libname}${shared_ext}'
8830
dynamic_linker="$host_os ld.so"
8831
shlibpath_var=LIBRARY_PATH
8837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838
soname_spec='${libname}${release}${shared_ext}$major'
8839
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8840
shlibpath_var=LD_LIBRARY_PATH
8841
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8842
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8843
# the default ld.so.conf also contains /usr/contrib/lib and
8844
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8845
# libtool to hard-code these into programs
8848
cygwin* | mingw* | pw32*)
8849
version_type=windows
8854
case $GCC,$host_os in
8855
yes,cygwin* | yes,mingw* | yes,pw32*)
8856
library_names_spec='$libname.dll.a'
8857
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8858
postinstall_cmds='base_file=`basename \${file}`~
8859
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8860
dldir=$destdir/`dirname \$dlpath`~
8861
test -d \$dldir || mkdir -p \$dldir~
8862
$install_prog $dir/$dlname \$dldir/$dlname~
8863
chmod a+x \$dldir/$dlname'
8864
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8865
dlpath=$dir/\$dldll~
8867
shlibpath_overrides_runpath=yes
8871
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8872
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8873
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8876
# MinGW DLLs use traditional 'lib' prefix
8877
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8878
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8879
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8880
# It is most probably a Windows format PATH printed by
8881
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8882
# path with ; separators, and with drive letters. We can handle the
8883
# drive letters (cygwin fileutils understands them), so leave them,
8884
# especially as we might pass files found there to a mingw objdump,
8885
# which wouldn't understand a cygwinified path. Ahh.
8886
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8888
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8892
# pw32 DLLs use 'pw' prefix rather than 'lib'
8893
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8899
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8902
dynamic_linker='Win32 ld.exe'
8903
# FIXME: first we should search . and the directory the executable is in
8907
darwin* | rhapsody*)
8908
dynamic_linker="$host_os dyld"
8912
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8913
soname_spec='${libname}${release}${major}$shared_ext'
8914
shlibpath_overrides_runpath=yes
8915
shlibpath_var=DYLD_LIBRARY_PATH
8916
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8918
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8919
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8926
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8927
soname_spec='${libname}${release}${shared_ext}$major'
8928
shlibpath_var=LD_LIBRARY_PATH
8935
freebsd* | dragonfly*)
8936
# DragonFly does not have aout. When/if they implement a new
8937
# versioning mechanism, adjust this.
8938
if test -x /usr/bin/objformat; then
8939
objformat=`/usr/bin/objformat`
8942
freebsd[123]*) objformat=aout ;;
8946
version_type=freebsd-$objformat
8947
case $version_type in
8949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8954
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8958
shlibpath_var=LD_LIBRARY_PATH
8961
shlibpath_overrides_runpath=yes
8963
freebsd3.[01]* | freebsdelf3.[01]*)
8964
shlibpath_overrides_runpath=yes
8965
hardcode_into_libs=yes
8967
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8968
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8969
shlibpath_overrides_runpath=no
8970
hardcode_into_libs=yes
8972
*) # from 4.6 on, and DragonFly
8973
shlibpath_overrides_runpath=yes
8974
hardcode_into_libs=yes
8983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8984
soname_spec='${libname}${release}${shared_ext}$major'
8985
shlibpath_var=LD_LIBRARY_PATH
8986
hardcode_into_libs=yes
8989
hpux9* | hpux10* | hpux11*)
8990
# Give a soname corresponding to the major version so that dld.sl refuses to
8991
# link against other versions.
8998
hardcode_into_libs=yes
8999
dynamic_linker="$host_os dld.so"
9000
shlibpath_var=LD_LIBRARY_PATH
9001
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003
soname_spec='${libname}${release}${shared_ext}$major'
9004
if test "X$HPUX_IA64_MODE" = X32; then
9005
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9007
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9009
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9013
hardcode_into_libs=yes
9014
dynamic_linker="$host_os dld.sl"
9015
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9016
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018
soname_spec='${libname}${release}${shared_ext}$major'
9019
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9020
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9024
dynamic_linker="$host_os dld.sl"
9025
shlibpath_var=SHLIB_PATH
9026
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028
soname_spec='${libname}${release}${shared_ext}$major'
9031
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9032
postinstall_cmds='chmod 555 $lib'
9039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040
soname_spec='${libname}${release}${shared_ext}$major'
9041
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9042
shlibpath_var=LD_LIBRARY_PATH
9043
shlibpath_overrides_runpath=no
9044
hardcode_into_libs=yes
9047
irix5* | irix6* | nonstopux*)
9049
nonstopux*) version_type=nonstopux ;;
9051
if test "$lt_cv_prog_gnu_ld" = yes; then
9059
soname_spec='${libname}${release}${shared_ext}$major'
9060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9062
irix5* | nonstopux*)
9066
case $LD in # libtool.m4 will add one of these switches to LD
9067
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9068
libsuff= shlibsuff= libmagic=32-bit;;
9069
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9070
libsuff=32 shlibsuff=N32 libmagic=N32;;
9071
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9072
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9073
*) libsuff= shlibsuff= libmagic=never-match;;
9077
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9078
shlibpath_overrides_runpath=no
9079
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9080
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9081
hardcode_into_libs=yes
9084
# No shared lib support for Linux oldld, aout, or coff.
9085
linux*oldld* | linux*aout* | linux*coff*)
9089
# This must be Linux ELF.
9090
linux* | k*bsd*-gnu)
9094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095
soname_spec='${libname}${release}${shared_ext}$major'
9096
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9097
shlibpath_var=LD_LIBRARY_PATH
9098
shlibpath_overrides_runpath=no
9099
# This implies no fast_install, which is unacceptable.
9100
# Some rework will be needed to allow for fast_install
9101
# before this can be enabled.
9102
hardcode_into_libs=yes
9103
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9104
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9106
# Append ld.so.conf contents to the search path
9107
if test -f /etc/ld.so.conf; then
9108
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' ' '`
9109
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9112
# We used to test for /lib/ld.so.1 and disable shared libraries on
9113
# powerpc, because MkLinux only supported shared libraries with the
9114
# GNU dynamic linker. Since this was broken with cross compilers,
9115
# most powerpc-linux boxes support dynamic linking these days and
9116
# people can always --disable-shared, the test was removed, and we
9117
# assume the GNU/Linux dynamic linker is in use.
9118
dynamic_linker='GNU/Linux ld.so'
9125
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9127
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9128
dynamic_linker='NetBSD (a.out) ld.so'
9130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9131
soname_spec='${libname}${release}${shared_ext}$major'
9132
dynamic_linker='NetBSD ld.elf_so'
9134
shlibpath_var=LD_LIBRARY_PATH
9135
shlibpath_overrides_runpath=yes
9136
hardcode_into_libs=yes
9141
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9142
shlibpath_var=LD_LIBRARY_PATH
9143
shlibpath_overrides_runpath=yes
9150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151
soname_spec='${libname}${release}${shared_ext}$major'
9152
shlibpath_var=LD_LIBRARY_PATH
9153
shlibpath_overrides_runpath=yes
9158
sys_lib_dlsearch_path_spec="/usr/lib"
9160
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9162
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9163
*) need_version=no ;;
9165
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9167
shlibpath_var=LD_LIBRARY_PATH
9168
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9170
openbsd2.[89] | openbsd2.[89].*)
9171
shlibpath_overrides_runpath=no
9174
shlibpath_overrides_runpath=yes
9178
shlibpath_overrides_runpath=yes
9183
libname_spec='$name'
9186
library_names_spec='$libname${shared_ext} $libname.a'
9187
dynamic_linker='OS/2 ld.exe'
9188
shlibpath_var=LIBPATH
9191
osf3* | osf4* | osf5*)
9195
soname_spec='${libname}${release}${shared_ext}$major'
9196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9197
shlibpath_var=LD_LIBRARY_PATH
9198
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9199
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9211
soname_spec='${libname}${release}${shared_ext}$major'
9212
shlibpath_var=LD_LIBRARY_PATH
9213
shlibpath_overrides_runpath=yes
9214
hardcode_into_libs=yes
9215
# ldd complains unless libraries are executable
9216
postinstall_cmds='chmod +x $lib'
9221
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9222
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9223
shlibpath_var=LD_LIBRARY_PATH
9224
shlibpath_overrides_runpath=yes
9225
if test "$with_gnu_ld" = yes; then
9233
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234
soname_spec='${libname}${release}${shared_ext}$major'
9235
shlibpath_var=LD_LIBRARY_PATH
9236
case $host_vendor in
9238
shlibpath_overrides_runpath=no
9240
export_dynamic_flag_spec='${wl}-Blargedynsym'
9241
runpath_var=LD_RUN_PATH
9249
shlibpath_overrides_runpath=no
9250
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9256
if test -d /usr/nec ;then
9258
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9259
soname_spec='$libname${shared_ext}.$major'
9260
shlibpath_var=LD_LIBRARY_PATH
9264
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9265
version_type=freebsd-elf
9268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9269
soname_spec='${libname}${release}${shared_ext}$major'
9270
shlibpath_var=LD_LIBRARY_PATH
9271
hardcode_into_libs=yes
9272
if test "$with_gnu_ld" = yes; then
9273
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9274
shlibpath_overrides_runpath=no
9276
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9277
shlibpath_overrides_runpath=yes
9280
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9284
sys_lib_dlsearch_path_spec='/usr/lib'
9289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290
soname_spec='${libname}${release}${shared_ext}$major'
9291
shlibpath_var=LD_LIBRARY_PATH
9298
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9299
echo "${ECHO_T}$dynamic_linker" >&6; }
9300
test "$dynamic_linker" = no && can_build_shared=no
9302
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9303
if test "$GCC" = yes; then
9304
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9307
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9308
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9310
if test -n "$hardcode_libdir_flag_spec" || \
9311
test -n "$runpath_var" || \
9312
test "X$hardcode_automatic" = "Xyes" ; then
9314
# We can hardcode non-existant directories.
9315
if test "$hardcode_direct" != no &&
9316
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9317
# have to relink, otherwise we might link with an installed library
9318
# when we should be linking with a yet-to-be-installed one
9319
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9320
test "$hardcode_minus_L" != no; then
9321
# Linking always hardcodes the temporary library directory.
9322
hardcode_action=relink
9324
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9325
hardcode_action=immediate
9328
# We cannot hardcode anything, or else we can only hardcode existing
9330
hardcode_action=unsupported
9332
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9333
echo "${ECHO_T}$hardcode_action" >&6; }
9335
if test "$hardcode_action" = relink; then
9336
# Fast installation is not supported
9337
enable_fast_install=no
9338
elif test "$shlibpath_overrides_runpath" = yes ||
9339
test "$enable_shared" = no; then
9340
# Fast installation is not necessary
9341
enable_fast_install=needless
9346
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9347
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9348
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9349
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9350
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9351
{ echo "$as_me:$LINENO: result: yes" >&5
9352
echo "${ECHO_T}yes" >&6; }
9354
# FIXME - insert some real tests, host_os isn't really good enough
9357
if test -n "$STRIP" ; then
9358
striplib="$STRIP -x"
9359
old_striplib="$STRIP -S"
9360
{ echo "$as_me:$LINENO: result: yes" >&5
9361
echo "${ECHO_T}yes" >&6; }
9363
{ echo "$as_me:$LINENO: result: no" >&5
9364
echo "${ECHO_T}no" >&6; }
9368
{ echo "$as_me:$LINENO: result: no" >&5
9369
echo "${ECHO_T}no" >&6; }
9374
if test "x$enable_dlopen" != xyes; then
9375
enable_dlopen=unknown
9376
enable_dlopen_self=unknown
9377
enable_dlopen_self_static=unknown
9384
lt_cv_dlopen="load_add_on"
9386
lt_cv_dlopen_self=yes
9390
lt_cv_dlopen="LoadLibrary"
9395
lt_cv_dlopen="dlopen"
9400
# if libdl is installed we need to link against it
9401
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9402
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9403
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9404
echo $ECHO_N "(cached) $ECHO_C" >&6
9406
ac_check_lib_save_LIBS=$LIBS
9408
cat >conftest.$ac_ext <<_ACEOF
9411
cat confdefs.h >>conftest.$ac_ext
9412
cat >>conftest.$ac_ext <<_ACEOF
9413
/* end confdefs.h. */
9415
/* Override any GCC internal prototype to avoid an error.
9416
Use char because int might match the return type of a GCC
9417
builtin and then its argument prototype would still apply. */
9430
rm -f conftest.$ac_objext conftest$ac_exeext
9431
if { (ac_try="$ac_link"
9433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434
*) ac_try_echo=$ac_try;;
9436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437
(eval "$ac_link") 2>conftest.er1
9439
grep -v '^ *+' conftest.er1 >conftest.err
9441
cat conftest.err >&5
9442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443
(exit $ac_status); } && {
9444
test -z "$ac_c_werror_flag" ||
9445
test ! -s conftest.err
9446
} && test -s conftest$ac_exeext &&
9447
$as_test_x conftest$ac_exeext; then
9448
ac_cv_lib_dl_dlopen=yes
9450
echo "$as_me: failed program was:" >&5
9451
sed 's/^/| /' conftest.$ac_ext >&5
9453
ac_cv_lib_dl_dlopen=no
9456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9457
conftest$ac_exeext conftest.$ac_ext
9458
LIBS=$ac_check_lib_save_LIBS
9460
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9461
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9462
if test $ac_cv_lib_dl_dlopen = yes; then
9463
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9468
lt_cv_dlopen_self=yes
9475
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9476
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9477
if test "${ac_cv_func_shl_load+set}" = set; then
9478
echo $ECHO_N "(cached) $ECHO_C" >&6
9480
cat >conftest.$ac_ext <<_ACEOF
9483
cat confdefs.h >>conftest.$ac_ext
9484
cat >>conftest.$ac_ext <<_ACEOF
9485
/* end confdefs.h. */
9486
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9487
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9488
#define shl_load innocuous_shl_load
9490
/* System header to define __stub macros and hopefully few prototypes,
9491
which can conflict with char shl_load (); below.
9492
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9493
<limits.h> exists even on freestanding compilers. */
9496
# include <limits.h>
9498
# include <assert.h>
9503
/* Override any GCC internal prototype to avoid an error.
9504
Use char because int might match the return type of a GCC
9505
builtin and then its argument prototype would still apply. */
9510
/* The GNU C library defines this for functions which it implements
9511
to always fail with ENOSYS. Some functions are actually named
9512
something starting with __ and the normal name is an alias. */
9513
#if defined __stub_shl_load || defined __stub___shl_load
9525
rm -f conftest.$ac_objext conftest$ac_exeext
9526
if { (ac_try="$ac_link"
9528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529
*) ac_try_echo=$ac_try;;
9531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532
(eval "$ac_link") 2>conftest.er1
9534
grep -v '^ *+' conftest.er1 >conftest.err
9536
cat conftest.err >&5
9537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538
(exit $ac_status); } && {
9539
test -z "$ac_c_werror_flag" ||
9540
test ! -s conftest.err
9541
} && test -s conftest$ac_exeext &&
9542
$as_test_x conftest$ac_exeext; then
9543
ac_cv_func_shl_load=yes
9545
echo "$as_me: failed program was:" >&5
9546
sed 's/^/| /' conftest.$ac_ext >&5
9548
ac_cv_func_shl_load=no
9551
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552
conftest$ac_exeext conftest.$ac_ext
9554
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9555
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9556
if test $ac_cv_func_shl_load = yes; then
9557
lt_cv_dlopen="shl_load"
9559
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9560
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9561
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9562
echo $ECHO_N "(cached) $ECHO_C" >&6
9564
ac_check_lib_save_LIBS=$LIBS
9566
cat >conftest.$ac_ext <<_ACEOF
9569
cat confdefs.h >>conftest.$ac_ext
9570
cat >>conftest.$ac_ext <<_ACEOF
9571
/* end confdefs.h. */
9573
/* Override any GCC internal prototype to avoid an error.
9574
Use char because int might match the return type of a GCC
9575
builtin and then its argument prototype would still apply. */
9588
rm -f conftest.$ac_objext conftest$ac_exeext
9589
if { (ac_try="$ac_link"
9591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592
*) ac_try_echo=$ac_try;;
9594
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595
(eval "$ac_link") 2>conftest.er1
9597
grep -v '^ *+' conftest.er1 >conftest.err
9599
cat conftest.err >&5
9600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601
(exit $ac_status); } && {
9602
test -z "$ac_c_werror_flag" ||
9603
test ! -s conftest.err
9604
} && test -s conftest$ac_exeext &&
9605
$as_test_x conftest$ac_exeext; then
9606
ac_cv_lib_dld_shl_load=yes
9608
echo "$as_me: failed program was:" >&5
9609
sed 's/^/| /' conftest.$ac_ext >&5
9611
ac_cv_lib_dld_shl_load=no
9614
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9615
conftest$ac_exeext conftest.$ac_ext
9616
LIBS=$ac_check_lib_save_LIBS
9618
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9619
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9620
if test $ac_cv_lib_dld_shl_load = yes; then
9621
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9623
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9624
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9625
if test "${ac_cv_func_dlopen+set}" = set; then
9626
echo $ECHO_N "(cached) $ECHO_C" >&6
9628
cat >conftest.$ac_ext <<_ACEOF
9631
cat confdefs.h >>conftest.$ac_ext
9632
cat >>conftest.$ac_ext <<_ACEOF
9633
/* end confdefs.h. */
9634
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9635
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636
#define dlopen innocuous_dlopen
9638
/* System header to define __stub macros and hopefully few prototypes,
9639
which can conflict with char dlopen (); below.
9640
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641
<limits.h> exists even on freestanding compilers. */
9644
# include <limits.h>
9646
# include <assert.h>
9651
/* Override any GCC internal prototype to avoid an error.
9652
Use char because int might match the return type of a GCC
9653
builtin and then its argument prototype would still apply. */
9658
/* The GNU C library defines this for functions which it implements
9659
to always fail with ENOSYS. Some functions are actually named
9660
something starting with __ and the normal name is an alias. */
9661
#if defined __stub_dlopen || defined __stub___dlopen
9673
rm -f conftest.$ac_objext conftest$ac_exeext
9674
if { (ac_try="$ac_link"
9676
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677
*) ac_try_echo=$ac_try;;
9679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680
(eval "$ac_link") 2>conftest.er1
9682
grep -v '^ *+' conftest.er1 >conftest.err
9684
cat conftest.err >&5
9685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686
(exit $ac_status); } && {
9687
test -z "$ac_c_werror_flag" ||
9688
test ! -s conftest.err
9689
} && test -s conftest$ac_exeext &&
9690
$as_test_x conftest$ac_exeext; then
9691
ac_cv_func_dlopen=yes
9693
echo "$as_me: failed program was:" >&5
9694
sed 's/^/| /' conftest.$ac_ext >&5
9696
ac_cv_func_dlopen=no
9699
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700
conftest$ac_exeext conftest.$ac_ext
9702
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9703
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9704
if test $ac_cv_func_dlopen = yes; then
9705
lt_cv_dlopen="dlopen"
9707
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9708
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9709
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9710
echo $ECHO_N "(cached) $ECHO_C" >&6
9712
ac_check_lib_save_LIBS=$LIBS
9714
cat >conftest.$ac_ext <<_ACEOF
9717
cat confdefs.h >>conftest.$ac_ext
9718
cat >>conftest.$ac_ext <<_ACEOF
9719
/* end confdefs.h. */
9721
/* Override any GCC internal prototype to avoid an error.
9722
Use char because int might match the return type of a GCC
9723
builtin and then its argument prototype would still apply. */
9736
rm -f conftest.$ac_objext conftest$ac_exeext
9737
if { (ac_try="$ac_link"
9739
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740
*) ac_try_echo=$ac_try;;
9742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743
(eval "$ac_link") 2>conftest.er1
9745
grep -v '^ *+' conftest.er1 >conftest.err
9747
cat conftest.err >&5
9748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749
(exit $ac_status); } && {
9750
test -z "$ac_c_werror_flag" ||
9751
test ! -s conftest.err
9752
} && test -s conftest$ac_exeext &&
9753
$as_test_x conftest$ac_exeext; then
9754
ac_cv_lib_dl_dlopen=yes
9756
echo "$as_me: failed program was:" >&5
9757
sed 's/^/| /' conftest.$ac_ext >&5
9759
ac_cv_lib_dl_dlopen=no
9762
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9763
conftest$ac_exeext conftest.$ac_ext
9764
LIBS=$ac_check_lib_save_LIBS
9766
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9767
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9768
if test $ac_cv_lib_dl_dlopen = yes; then
9769
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9771
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9772
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9773
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9774
echo $ECHO_N "(cached) $ECHO_C" >&6
9776
ac_check_lib_save_LIBS=$LIBS
9778
cat >conftest.$ac_ext <<_ACEOF
9781
cat confdefs.h >>conftest.$ac_ext
9782
cat >>conftest.$ac_ext <<_ACEOF
9783
/* end confdefs.h. */
9785
/* Override any GCC internal prototype to avoid an error.
9786
Use char because int might match the return type of a GCC
9787
builtin and then its argument prototype would still apply. */
9800
rm -f conftest.$ac_objext conftest$ac_exeext
9801
if { (ac_try="$ac_link"
9803
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804
*) ac_try_echo=$ac_try;;
9806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9807
(eval "$ac_link") 2>conftest.er1
9809
grep -v '^ *+' conftest.er1 >conftest.err
9811
cat conftest.err >&5
9812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813
(exit $ac_status); } && {
9814
test -z "$ac_c_werror_flag" ||
9815
test ! -s conftest.err
9816
} && test -s conftest$ac_exeext &&
9817
$as_test_x conftest$ac_exeext; then
9818
ac_cv_lib_svld_dlopen=yes
9820
echo "$as_me: failed program was:" >&5
9821
sed 's/^/| /' conftest.$ac_ext >&5
9823
ac_cv_lib_svld_dlopen=no
9826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9827
conftest$ac_exeext conftest.$ac_ext
9828
LIBS=$ac_check_lib_save_LIBS
9830
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9831
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9832
if test $ac_cv_lib_svld_dlopen = yes; then
9833
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9835
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9836
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9837
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9838
echo $ECHO_N "(cached) $ECHO_C" >&6
9840
ac_check_lib_save_LIBS=$LIBS
9842
cat >conftest.$ac_ext <<_ACEOF
9845
cat confdefs.h >>conftest.$ac_ext
9846
cat >>conftest.$ac_ext <<_ACEOF
9847
/* end confdefs.h. */
9849
/* Override any GCC internal prototype to avoid an error.
9850
Use char because int might match the return type of a GCC
9851
builtin and then its argument prototype would still apply. */
9864
rm -f conftest.$ac_objext conftest$ac_exeext
9865
if { (ac_try="$ac_link"
9867
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868
*) ac_try_echo=$ac_try;;
9870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871
(eval "$ac_link") 2>conftest.er1
9873
grep -v '^ *+' conftest.er1 >conftest.err
9875
cat conftest.err >&5
9876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877
(exit $ac_status); } && {
9878
test -z "$ac_c_werror_flag" ||
9879
test ! -s conftest.err
9880
} && test -s conftest$ac_exeext &&
9881
$as_test_x conftest$ac_exeext; then
9882
ac_cv_lib_dld_dld_link=yes
9884
echo "$as_me: failed program was:" >&5
9885
sed 's/^/| /' conftest.$ac_ext >&5
9887
ac_cv_lib_dld_dld_link=no
9890
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9891
conftest$ac_exeext conftest.$ac_ext
9892
LIBS=$ac_check_lib_save_LIBS
9894
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9895
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9896
if test $ac_cv_lib_dld_dld_link = yes; then
9897
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9918
if test "x$lt_cv_dlopen" != xno; then
9924
case $lt_cv_dlopen in
9926
save_CPPFLAGS="$CPPFLAGS"
9927
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9929
save_LDFLAGS="$LDFLAGS"
9930
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9933
LIBS="$lt_cv_dlopen_libs $LIBS"
9935
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9936
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9937
if test "${lt_cv_dlopen_self+set}" = set; then
9938
echo $ECHO_N "(cached) $ECHO_C" >&6
9940
if test "$cross_compiling" = yes; then :
9941
lt_cv_dlopen_self=cross
9943
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9944
lt_status=$lt_dlunknown
9945
cat > conftest.$ac_ext <<EOF
9946
#line 9946 "configure"
9947
#include "confdefs.h"
9956
# define LT_DLGLOBAL RTLD_GLOBAL
9959
# define LT_DLGLOBAL DL_GLOBAL
9961
# define LT_DLGLOBAL 0
9965
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9966
find out it does not work in some platform. */
9967
#ifndef LT_DLLAZY_OR_NOW
9969
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9972
# define LT_DLLAZY_OR_NOW DL_LAZY
9975
# define LT_DLLAZY_OR_NOW RTLD_NOW
9978
# define LT_DLLAZY_OR_NOW DL_NOW
9980
# define LT_DLLAZY_OR_NOW 0
9988
extern "C" void exit (int);
9991
void fnord() { int i=42;}
9994
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9995
int status = $lt_dlunknown;
9999
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10000
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10001
/* dlclose (self); */
10009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10010
(eval $ac_link) 2>&5
10012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10014
(./conftest; exit; ) >&5 2>/dev/null
10016
case x$lt_status in
10017
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10018
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10019
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10022
# compilation failed
10023
lt_cv_dlopen_self=no
10030
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10031
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10033
if test "x$lt_cv_dlopen_self" = xyes; then
10034
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10035
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10036
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10037
if test "${lt_cv_dlopen_self_static+set}" = set; then
10038
echo $ECHO_N "(cached) $ECHO_C" >&6
10040
if test "$cross_compiling" = yes; then :
10041
lt_cv_dlopen_self_static=cross
10043
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10044
lt_status=$lt_dlunknown
10045
cat > conftest.$ac_ext <<EOF
10046
#line 10046 "configure"
10047
#include "confdefs.h"
10056
# define LT_DLGLOBAL RTLD_GLOBAL
10059
# define LT_DLGLOBAL DL_GLOBAL
10061
# define LT_DLGLOBAL 0
10065
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10066
find out it does not work in some platform. */
10067
#ifndef LT_DLLAZY_OR_NOW
10069
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10072
# define LT_DLLAZY_OR_NOW DL_LAZY
10075
# define LT_DLLAZY_OR_NOW RTLD_NOW
10078
# define LT_DLLAZY_OR_NOW DL_NOW
10080
# define LT_DLLAZY_OR_NOW 0
10088
extern "C" void exit (int);
10091
void fnord() { int i=42;}
10094
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10095
int status = $lt_dlunknown;
10099
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10100
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10101
/* dlclose (self); */
10109
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110
(eval $ac_link) 2>&5
10112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10114
(./conftest; exit; ) >&5 2>/dev/null
10116
case x$lt_status in
10117
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10118
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10119
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10122
# compilation failed
10123
lt_cv_dlopen_self_static=no
10130
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10131
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10134
CPPFLAGS="$save_CPPFLAGS"
10135
LDFLAGS="$save_LDFLAGS"
10140
case $lt_cv_dlopen_self in
10141
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10142
*) enable_dlopen_self=unknown ;;
10145
case $lt_cv_dlopen_self_static in
10146
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10147
*) enable_dlopen_self_static=unknown ;;
10152
# Report which library types will actually be built
10153
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10154
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10155
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10156
echo "${ECHO_T}$can_build_shared" >&6; }
10158
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10159
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10160
test "$can_build_shared" = "no" && enable_shared=no
10162
# On AIX, shared libraries and static libraries use the same namespace, and
10163
# are all built from PIC.
10166
test "$enable_shared" = yes && enable_static=no
10167
if test -n "$RANLIB"; then
10168
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10169
postinstall_cmds='$RANLIB $lib'
10174
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10175
test "$enable_shared" = yes && enable_static=no
10179
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10180
echo "${ECHO_T}$enable_shared" >&6; }
10182
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10183
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10184
# Make sure either enable_shared or enable_static is yes.
10185
test "$enable_shared" = yes || enable_static=yes
10186
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10187
echo "${ECHO_T}$enable_static" >&6; }
10189
# The else clause should only fire when bootstrapping the
10190
# libtool distribution, otherwise you forgot to ship ltmain.sh
10191
# with your package, and you will get complaints that there are
10192
# no rules to generate ltmain.sh.
10193
if test -f "$ltmain"; then
10194
# See if we are running on zsh, and set the options which allow our commands through
10195
# without removal of \ escapes.
10196
if test -n "${ZSH_VERSION+set}" ; then
10197
setopt NO_GLOB_SUBST
10199
# Now quote all the things that may contain metacharacters while being
10200
# careful not to overquote the AC_SUBSTed values. We take copies of the
10201
# variables and quote the copies for generation of the libtool script.
10202
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10204
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10205
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10206
deplibs_check_method reload_flag reload_cmds need_locks \
10207
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10208
lt_cv_sys_global_symbol_to_c_name_address \
10209
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10210
old_postinstall_cmds old_postuninstall_cmds \
10214
lt_prog_compiler_wl \
10215
lt_prog_compiler_pic \
10216
lt_prog_compiler_static \
10217
lt_prog_compiler_no_builtin_flag \
10218
export_dynamic_flag_spec \
10219
thread_safe_flag_spec \
10220
whole_archive_flag_spec \
10221
enable_shared_with_static_runtimes \
10223
old_archive_from_new_cmds \
10228
compiler_lib_search_path \
10230
archive_expsym_cmds \
10232
postuninstall_cmds \
10233
old_archive_from_expsyms_cmds \
10234
allow_undefined_flag \
10235
no_undefined_flag \
10236
export_symbols_cmds \
10237
hardcode_libdir_flag_spec \
10238
hardcode_libdir_flag_spec_ld \
10239
hardcode_libdir_separator \
10240
hardcode_automatic \
10242
module_expsym_cmds \
10243
lt_cv_prog_compiler_c_o \
10246
include_expsyms; do
10249
old_archive_cmds | \
10250
old_archive_from_new_cmds | \
10252
archive_expsym_cmds | \
10254
module_expsym_cmds | \
10255
old_archive_from_expsyms_cmds | \
10256
export_symbols_cmds | \
10257
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10258
postinstall_cmds | postuninstall_cmds | \
10259
old_postinstall_cmds | old_postuninstall_cmds | \
10260
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10261
# Double-quote double-evaled strings.
10262
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10265
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10271
*'\$0 --fallback-echo"')
10272
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10276
cfgfile="${ofile}T"
10277
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10279
{ echo "$as_me:$LINENO: creating $ofile" >&5
10280
echo "$as_me: creating $ofile" >&6;}
10282
cat <<__EOF__ >> "$cfgfile"
10285
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10286
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10287
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10289
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10290
# Free Software Foundation, Inc.
10292
# This file is part of GNU Libtool:
10293
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10295
# This program is free software; you can redistribute it and/or modify
10296
# it under the terms of the GNU General Public License as published by
10297
# the Free Software Foundation; either version 2 of the License, or
10298
# (at your option) any later version.
10300
# This program is distributed in the hope that it will be useful, but
10301
# WITHOUT ANY WARRANTY; without even the implied warranty of
10302
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10303
# General Public License for more details.
10305
# You should have received a copy of the GNU General Public License
10306
# along with this program; if not, write to the Free Software
10307
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10309
# As a special exception to the GNU General Public License, if you
10310
# distribute this file as part of a program that contains a
10311
# configuration script generated by Autoconf, you may include it under
10312
# the same distribution terms that you use for the rest of that program.
10314
# A sed program that does not truncate output.
10317
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10318
Xsed="$SED -e 1s/^X//"
10320
# The HP-UX ksh and POSIX shell print the target directory to stdout
10321
# if CDPATH is set.
10322
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10324
# The names of the tagged configurations supported by this script.
10327
# ### BEGIN LIBTOOL CONFIG
10329
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10331
# Shell to use when invoking shell scripts.
10334
# Whether or not to build shared libraries.
10335
build_libtool_libs=$enable_shared
10337
# Whether or not to build static libraries.
10338
build_old_libs=$enable_static
10340
# Whether or not to add -lc for building shared libraries.
10341
build_libtool_need_lc=$archive_cmds_need_lc
10343
# Whether or not to disallow shared libs when runtime libs are static
10344
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10346
# Whether or not to optimize for fast installation.
10347
fast_install=$enable_fast_install
10350
host_alias=$host_alias
10354
# The build system.
10355
build_alias=$build_alias
10359
# An echo program that does not interpret backslashes.
10364
AR_FLAGS=$lt_AR_FLAGS
10369
# LTCC compiler flags.
10370
LTCFLAGS=$lt_LTCFLAGS
10372
# A language-specific compiler.
10375
# Is the compiler the GNU C compiler?
10381
# The linker used to build libraries.
10384
# Whether we need hard or soft links.
10387
# A BSD-compatible nm program.
10390
# A symbol stripping program
10393
# Used to examine libraries when file_magic_cmd begins "file"
10394
MAGIC_CMD=$MAGIC_CMD
10396
# Used on cygwin: DLL creation program.
10399
# Used on cygwin: object dumper.
10402
# Used on cygwin: assembler.
10405
# The name of the directory that contains temporary libtool files.
10408
# How to create reloadable object files.
10409
reload_flag=$lt_reload_flag
10410
reload_cmds=$lt_reload_cmds
10412
# How to pass a linker flag through the compiler.
10413
wl=$lt_lt_prog_compiler_wl
10415
# Object file suffix (normally "o").
10416
objext="$ac_objext"
10418
# Old archive suffix (normally "a").
10421
# Shared library suffix (normally ".so").
10422
shrext_cmds='$shrext_cmds'
10424
# Executable file suffix (normally "").
10427
# Additional compiler flags for building library objects.
10428
pic_flag=$lt_lt_prog_compiler_pic
10431
# What is the maximum length of a command?
10432
max_cmd_len=$lt_cv_sys_max_cmd_len
10434
# Does compiler simultaneously support -c and -o options?
10435
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10437
# Must we lock files when doing compilation?
10438
need_locks=$lt_need_locks
10440
# Do we need the lib prefix for modules?
10441
need_lib_prefix=$need_lib_prefix
10443
# Do we need a version for libraries?
10444
need_version=$need_version
10446
# Whether dlopen is supported.
10447
dlopen_support=$enable_dlopen
10449
# Whether dlopen of programs is supported.
10450
dlopen_self=$enable_dlopen_self
10452
# Whether dlopen of statically linked programs is supported.
10453
dlopen_self_static=$enable_dlopen_self_static
10455
# Compiler flag to prevent dynamic linking.
10456
link_static_flag=$lt_lt_prog_compiler_static
10458
# Compiler flag to turn off builtin functions.
10459
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10461
# Compiler flag to allow reflexive dlopens.
10462
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10464
# Compiler flag to generate shared objects directly from archives.
10465
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10467
# Compiler flag to generate thread-safe objects.
10468
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10470
# Library versioning type.
10471
version_type=$version_type
10473
# Format of library name prefix.
10474
libname_spec=$lt_libname_spec
10476
# List of archive names. First name is the real one, the rest are links.
10477
# The last name is the one that the linker finds with -lNAME.
10478
library_names_spec=$lt_library_names_spec
10480
# The coded name of the library, if different from the real name.
10481
soname_spec=$lt_soname_spec
10483
# Commands used to build and install an old-style archive.
10485
old_archive_cmds=$lt_old_archive_cmds
10486
old_postinstall_cmds=$lt_old_postinstall_cmds
10487
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10489
# Create an old-style archive from a shared archive.
10490
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10492
# Create a temporary old-style archive to link instead of a shared archive.
10493
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10495
# Commands used to build and install a shared archive.
10496
archive_cmds=$lt_archive_cmds
10497
archive_expsym_cmds=$lt_archive_expsym_cmds
10498
postinstall_cmds=$lt_postinstall_cmds
10499
postuninstall_cmds=$lt_postuninstall_cmds
10501
# Commands used to build a loadable module (assumed same as above if empty)
10502
module_cmds=$lt_module_cmds
10503
module_expsym_cmds=$lt_module_expsym_cmds
10505
# Commands to strip libraries.
10506
old_striplib=$lt_old_striplib
10507
striplib=$lt_striplib
10509
# Dependencies to place before the objects being linked to create a
10511
predep_objects=$lt_predep_objects
10513
# Dependencies to place after the objects being linked to create a
10515
postdep_objects=$lt_postdep_objects
10517
# Dependencies to place before the objects being linked to create a
10519
predeps=$lt_predeps
10521
# Dependencies to place after the objects being linked to create a
10523
postdeps=$lt_postdeps
10525
# The library search path used internally by the compiler when linking
10526
# a shared library.
10527
compiler_lib_search_path=$lt_compiler_lib_search_path
10529
# Method to check whether dependent libraries are shared objects.
10530
deplibs_check_method=$lt_deplibs_check_method
10532
# Command to use when deplibs_check_method == file_magic.
10533
file_magic_cmd=$lt_file_magic_cmd
10535
# Flag that allows shared libraries with undefined symbols to be built.
10536
allow_undefined_flag=$lt_allow_undefined_flag
10538
# Flag that forces no undefined symbols.
10539
no_undefined_flag=$lt_no_undefined_flag
10541
# Commands used to finish a libtool library installation in a directory.
10542
finish_cmds=$lt_finish_cmds
10544
# Same as above, but a single script fragment to be evaled but not shown.
10545
finish_eval=$lt_finish_eval
10547
# Take the output of nm and produce a listing of raw symbols and C names.
10548
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10550
# Transform the output of nm in a proper C declaration
10551
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10553
# Transform the output of nm in a C name address pair
10554
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10556
# This is the shared library runtime path variable.
10557
runpath_var=$runpath_var
10559
# This is the shared library path variable.
10560
shlibpath_var=$shlibpath_var
10562
# Is shlibpath searched before the hard-coded library search path?
10563
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10565
# How to hardcode a shared library path into an executable.
10566
hardcode_action=$hardcode_action
10568
# Whether we should hardcode library paths into libraries.
10569
hardcode_into_libs=$hardcode_into_libs
10571
# Flag to hardcode \$libdir into a binary during linking.
10572
# This must work even if \$libdir does not exist.
10573
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10575
# If ld is used when linking, flag to hardcode \$libdir into
10576
# a binary during linking. This must work even if \$libdir does
10578
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10580
# Whether we need a single -rpath flag with a separated argument.
10581
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10583
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10584
# resulting binary.
10585
hardcode_direct=$hardcode_direct
10587
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10588
# resulting binary.
10589
hardcode_minus_L=$hardcode_minus_L
10591
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10592
# the resulting binary.
10593
hardcode_shlibpath_var=$hardcode_shlibpath_var
10595
# Set to yes if building a shared library automatically hardcodes DIR into the library
10596
# and all subsequent libraries and executables linked against it.
10597
hardcode_automatic=$hardcode_automatic
10599
# Variables whose values should be saved in libtool wrapper scripts and
10600
# restored at relink time.
10601
variables_saved_for_relink="$variables_saved_for_relink"
10603
# Whether libtool must link a program against all its dependency libraries.
10604
link_all_deplibs=$link_all_deplibs
10606
# Compile-time system search path for libraries
10607
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10609
# Run-time system search path for libraries
10610
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10612
# Fix the shell variable \$srcfile for the compiler.
10613
fix_srcfile_path=$lt_fix_srcfile_path
10615
# Set to yes if exported symbols are required.
10616
always_export_symbols=$always_export_symbols
10618
# The commands to list exported symbols.
10619
export_symbols_cmds=$lt_export_symbols_cmds
10621
# The commands to extract the exported symbol list from a shared archive.
10622
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10624
# Symbols that should not be listed in the preloaded symbols.
10625
exclude_expsyms=$lt_exclude_expsyms
10627
# Symbols that must always be exported.
10628
include_expsyms=$lt_include_expsyms
10630
# ### END LIBTOOL CONFIG
10637
cat <<\EOF >> "$cfgfile"
10639
# AIX sometimes has problems with the GCC collect2 program. For some
10640
# reason, if we set the COLLECT_NAMES environment variable, the problems
10641
# vanish in a puff of smoke.
10642
if test "X${COLLECT_NAMES+set}" != Xset; then
10644
export COLLECT_NAMES
10650
# We use sed instead of cat because bash on DJGPP gets confused if
10651
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10652
# text mode, it properly converts lines to CR/LF. This bash problem
10653
# is reportedly fixed, but why not run on old versions too?
10654
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10656
mv -f "$cfgfile" "$ofile" || \
10657
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10661
# If there is no Makefile yet, we rely on a make rule to execute
10662
# `config.status --recheck' to rerun these tests and create the
10663
# libtool script then.
10664
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10665
if test -f "$ltmain_in"; then
10666
test -f Makefile && make "$ltmain"
10672
ac_cpp='$CPP $CPPFLAGS'
10673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10680
# Check whether --with-tags was given.
10681
if test "${with_tags+set}" = set; then
10682
withval=$with_tags; tagnames="$withval"
10686
if test -f "$ltmain" && test -n "$tagnames"; then
10687
if test ! -f "${ofile}"; then
10688
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10689
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10692
if test -z "$LTCC"; then
10693
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10694
if test -z "$LTCC"; then
10695
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10696
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10698
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10699
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10702
if test -z "$LTCFLAGS"; then
10703
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10706
# Extract list of available tagged configurations in $ofile.
10707
# Note that this assumes the entire list is on one line.
10708
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10710
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10711
for tagname in $tagnames; do
10713
# Check whether tagname contains only valid characters
10714
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10716
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10717
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10718
{ (exit 1); exit 1; }; }
10722
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10724
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10725
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10726
{ (exit 1); exit 1; }; }
10729
# Update the list of available tags.
10730
if test -n "$tagname"; then
10731
echo appending configuration tag \"$tagname\" to $ofile
10735
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10736
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10737
(test "X$CXX" != "Xg++"))) ; then
10739
ac_cpp='$CXXCPP $CPPFLAGS'
10740
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10741
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10742
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10747
archive_cmds_need_lc_CXX=no
10748
allow_undefined_flag_CXX=
10749
always_export_symbols_CXX=no
10750
archive_expsym_cmds_CXX=
10751
export_dynamic_flag_spec_CXX=
10752
hardcode_direct_CXX=no
10753
hardcode_libdir_flag_spec_CXX=
10754
hardcode_libdir_flag_spec_ld_CXX=
10755
hardcode_libdir_separator_CXX=
10756
hardcode_minus_L_CXX=no
10757
hardcode_shlibpath_var_CXX=unsupported
10758
hardcode_automatic_CXX=no
10760
module_expsym_cmds_CXX=
10761
link_all_deplibs_CXX=unknown
10762
old_archive_cmds_CXX=$old_archive_cmds
10763
no_undefined_flag_CXX=
10764
whole_archive_flag_spec_CXX=
10765
enable_shared_with_static_runtimes_CXX=no
10767
# Dependencies to place before and after the object being linked:
10768
predep_objects_CXX=
10769
postdep_objects_CXX=
10772
compiler_lib_search_path_CXX=
10774
# Source file extension for C++ test sources.
10777
# Object file extension for compiled C++ test sources.
10781
# Code to be used in simple compile tests
10782
lt_simple_compile_test_code="int some_variable = 0;"
10784
# Code to be used in simple link tests
10785
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10787
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10789
# If no C compiler was specified, use CC.
10792
# If no C compiler flags were specified, use CFLAGS.
10793
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10795
# Allow CC to be a program name with arguments.
10799
# save warnings/boilerplate of simple test code
10800
ac_outfile=conftest.$ac_objext
10801
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10802
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10803
_lt_compiler_boilerplate=`cat conftest.err`
10806
ac_outfile=conftest.$ac_objext
10807
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10808
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10809
_lt_linker_boilerplate=`cat conftest.err`
10813
# Allow CC to be a program name with arguments.
10818
lt_save_with_gnu_ld=$with_gnu_ld
10819
lt_save_path_LD=$lt_cv_path_LD
10820
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10821
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10823
$as_unset lt_cv_prog_gnu_ld
10825
if test -n "${lt_cv_path_LDCXX+set}"; then
10826
lt_cv_path_LD=$lt_cv_path_LDCXX
10828
$as_unset lt_cv_path_LD
10830
test -z "${LDCXX+set}" || LD=$LDCXX
10834
for cc_temp in $compiler""; do
10836
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10837
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10842
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10845
# We don't want -fno-exception wen compiling C++ code, so set the
10846
# no_builtin_flag separately
10847
if test "$GXX" = yes; then
10848
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10850
lt_prog_compiler_no_builtin_flag_CXX=
10853
if test "$GXX" = yes; then
10854
# Set up default GNU C++ configuration
10857
# Check whether --with-gnu-ld was given.
10858
if test "${with_gnu_ld+set}" = set; then
10859
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10865
if test "$GCC" = yes; then
10866
# Check if gcc -print-prog-name=ld gives a path.
10867
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10868
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10871
# gcc leaves a trailing carriage return which upsets mingw
10872
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10874
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10877
# Accept absolute paths.
10879
re_direlt='/[^/][^/]*/\.\./'
10880
# Canonicalize the pathname of ld
10881
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10882
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10883
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10885
test -z "$LD" && LD="$ac_prog"
10888
# If it fails, then pretend we aren't using GCC.
10892
# If it is relative, then search for the first ld in PATH.
10893
with_gnu_ld=unknown
10896
elif test "$with_gnu_ld" = yes; then
10897
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
10898
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10900
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10901
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10903
if test "${lt_cv_path_LD+set}" = set; then
10904
echo $ECHO_N "(cached) $ECHO_C" >&6
10906
if test -z "$LD"; then
10907
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10908
for ac_dir in $PATH; do
10910
test -z "$ac_dir" && ac_dir=.
10911
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10912
lt_cv_path_LD="$ac_dir/$ac_prog"
10913
# Check to see if the program is GNU ld. I'd rather use --version,
10914
# but apparently some variants of GNU ld only accept -v.
10915
# Break only if it was the GNU/non-GNU ld that we prefer.
10916
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10917
*GNU* | *'with BFD'*)
10918
test "$with_gnu_ld" != no && break
10921
test "$with_gnu_ld" != yes && break
10928
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10932
LD="$lt_cv_path_LD"
10933
if test -n "$LD"; then
10934
{ echo "$as_me:$LINENO: result: $LD" >&5
10935
echo "${ECHO_T}$LD" >&6; }
10937
{ echo "$as_me:$LINENO: result: no" >&5
10938
echo "${ECHO_T}no" >&6; }
10940
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10941
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10942
{ (exit 1); exit 1; }; }
10943
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10944
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10945
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10946
echo $ECHO_N "(cached) $ECHO_C" >&6
10948
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10949
case `$LD -v 2>&1 </dev/null` in
10950
*GNU* | *'with BFD'*)
10951
lt_cv_prog_gnu_ld=yes
10954
lt_cv_prog_gnu_ld=no
10958
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10959
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10960
with_gnu_ld=$lt_cv_prog_gnu_ld
10964
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10965
# archiving commands below assume that GNU ld is being used.
10966
if test "$with_gnu_ld" = yes; then
10967
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10968
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'
10970
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10971
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10973
# If archive_cmds runs LD, not CC, wlarc should be empty
10974
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10975
# investigate it a little bit more. (MM)
10978
# ancient GNU ld didn't support --whole-archive et. al.
10979
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10980
grep 'no-whole-archive' > /dev/null; then
10981
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10983
whole_archive_flag_spec_CXX=
10989
# A generic and very simple default shared library creation
10990
# command for GNU C++ for the case where it uses the native
10991
# linker, instead of GNU ld. If possible, this setting should
10992
# overridden to take advantage of the native linker features on
10993
# the platform it is being used on.
10994
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10997
# Commands to make compiler produce verbose output that lists
10998
# what "hidden" libraries, object files and flags are used when
10999
# linking a shared library.
11000
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11008
# PORTME: fill in a description of your system's C++ link characteristics
11009
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11010
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11014
# FIXME: insert proper C++ library support
11018
if test "$host_cpu" = ia64; then
11019
# On IA64, the linker does run time linking by default, so we don't
11020
# have to do anything special.
11021
aix_use_runtimelinking=no
11022
exp_sym_flag='-Bexport'
11025
aix_use_runtimelinking=no
11027
# Test if we are trying to use run time linking or normal
11028
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11029
# need to do runtime linking.
11030
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11031
for ld_flag in $LDFLAGS; do
11034
aix_use_runtimelinking=yes
11042
exp_sym_flag='-bexport'
11043
no_entry_flag='-bnoentry'
11046
# When large executables or shared objects are built, AIX ld can
11047
# have problems creating the table of contents. If linking a library
11048
# or program results in "error TOC overflow" add -mminimal-toc to
11049
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11050
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11052
archive_cmds_CXX=''
11053
hardcode_direct_CXX=yes
11054
hardcode_libdir_separator_CXX=':'
11055
link_all_deplibs_CXX=yes
11057
if test "$GXX" = yes; then
11058
case $host_os in aix4.[012]|aix4.[012].*)
11059
# We only want to do this on AIX 4.2 and lower, the check
11060
# below for broken collect2 doesn't work under 4.3+
11061
collect2name=`${CC} -print-prog-name=collect2`
11062
if test -f "$collect2name" && \
11063
strings "$collect2name" | grep resolve_lib_name >/dev/null
11065
# We have reworked collect2
11068
# We have old collect2
11069
hardcode_direct_CXX=unsupported
11070
# It fails to find uninstalled libraries when the uninstalled
11071
# path is not listed in the libpath. Setting hardcode_minus_L
11072
# to unsupported forces relinking
11073
hardcode_minus_L_CXX=yes
11074
hardcode_libdir_flag_spec_CXX='-L$libdir'
11075
hardcode_libdir_separator_CXX=
11079
shared_flag='-shared'
11080
if test "$aix_use_runtimelinking" = yes; then
11081
shared_flag="$shared_flag "'${wl}-G'
11085
if test "$host_cpu" = ia64; then
11086
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11087
# chokes on -Wl,-G. The following line is correct:
11090
if test "$aix_use_runtimelinking" = yes; then
11091
shared_flag='${wl}-G'
11093
shared_flag='${wl}-bM:SRE'
11098
# It seems that -bexpall does not export symbols beginning with
11099
# underscore (_), so it is better to generate a list of symbols to export.
11100
always_export_symbols_CXX=yes
11101
if test "$aix_use_runtimelinking" = yes; then
11102
# Warning - without using the other runtime loading flags (-brtl),
11103
# -berok will link without error, but may produce a broken library.
11104
allow_undefined_flag_CXX='-berok'
11105
# Determine the default libpath from the value encoded in an empty executable.
11106
cat >conftest.$ac_ext <<_ACEOF
11109
cat confdefs.h >>conftest.$ac_ext
11110
cat >>conftest.$ac_ext <<_ACEOF
11111
/* end confdefs.h. */
11121
rm -f conftest.$ac_objext conftest$ac_exeext
11122
if { (ac_try="$ac_link"
11123
case "(($ac_try" in
11124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125
*) ac_try_echo=$ac_try;;
11127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128
(eval "$ac_link") 2>conftest.er1
11130
grep -v '^ *+' conftest.er1 >conftest.err
11132
cat conftest.err >&5
11133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134
(exit $ac_status); } && {
11135
test -z "$ac_cxx_werror_flag" ||
11136
test ! -s conftest.err
11137
} && test -s conftest$ac_exeext &&
11138
$as_test_x conftest$ac_exeext; then
11140
lt_aix_libpath_sed='
11141
/Import File Strings/,/^$/ {
11147
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11148
# Check for a 64-bit object if we didn't find anything.
11149
if test -z "$aix_libpath"; then
11150
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11153
echo "$as_me: failed program was:" >&5
11154
sed 's/^/| /' conftest.$ac_ext >&5
11159
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11160
conftest$ac_exeext conftest.$ac_ext
11161
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11163
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11165
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"
11167
if test "$host_cpu" = ia64; then
11168
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11169
allow_undefined_flag_CXX="-z nodefs"
11170
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"
11172
# Determine the default libpath from the value encoded in an empty executable.
11173
cat >conftest.$ac_ext <<_ACEOF
11176
cat confdefs.h >>conftest.$ac_ext
11177
cat >>conftest.$ac_ext <<_ACEOF
11178
/* end confdefs.h. */
11188
rm -f conftest.$ac_objext conftest$ac_exeext
11189
if { (ac_try="$ac_link"
11190
case "(($ac_try" in
11191
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192
*) ac_try_echo=$ac_try;;
11194
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195
(eval "$ac_link") 2>conftest.er1
11197
grep -v '^ *+' conftest.er1 >conftest.err
11199
cat conftest.err >&5
11200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201
(exit $ac_status); } && {
11202
test -z "$ac_cxx_werror_flag" ||
11203
test ! -s conftest.err
11204
} && test -s conftest$ac_exeext &&
11205
$as_test_x conftest$ac_exeext; then
11207
lt_aix_libpath_sed='
11208
/Import File Strings/,/^$/ {
11214
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11215
# Check for a 64-bit object if we didn't find anything.
11216
if test -z "$aix_libpath"; then
11217
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11220
echo "$as_me: failed program was:" >&5
11221
sed 's/^/| /' conftest.$ac_ext >&5
11226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11227
conftest$ac_exeext conftest.$ac_ext
11228
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11230
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11231
# Warning - without using the other run time loading flags,
11232
# -berok will link without error, but may produce a broken library.
11233
no_undefined_flag_CXX=' ${wl}-bernotok'
11234
allow_undefined_flag_CXX=' ${wl}-berok'
11235
# Exported symbols can be pulled into shared objects from archives
11236
whole_archive_flag_spec_CXX='$convenience'
11237
archive_cmds_need_lc_CXX=yes
11238
# This is similar to how AIX traditionally builds its shared libraries.
11239
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'
11245
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11246
allow_undefined_flag_CXX=unsupported
11247
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11248
# support --undefined. This deserves some investigation. FIXME
11249
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11256
case $cc_basename in
11258
# FIXME: insert proper C++ library support
11264
cygwin* | mingw* | pw32*)
11265
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11266
# as there is no search path for DLLs.
11267
hardcode_libdir_flag_spec_CXX='-L$libdir'
11268
allow_undefined_flag_CXX=unsupported
11269
always_export_symbols_CXX=no
11270
enable_shared_with_static_runtimes_CXX=yes
11272
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11273
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'
11274
# If the export-symbols file already is a .def file (1st line
11275
# is EXPORTS), use it as is; otherwise, prepend...
11276
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11277
cp $export_symbols $output_objdir/$soname.def;
11279
echo EXPORTS > $output_objdir/$soname.def;
11280
cat $export_symbols >> $output_objdir/$soname.def;
11282
$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'
11287
darwin* | rhapsody*)
11289
rhapsody* | darwin1.[012])
11290
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11293
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11294
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11296
case ${MACOSX_DEPLOYMENT_TARGET} in
11298
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11301
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11307
archive_cmds_need_lc_CXX=no
11308
hardcode_direct_CXX=no
11309
hardcode_automatic_CXX=yes
11310
hardcode_shlibpath_var_CXX=unsupported
11311
whole_archive_flag_spec_CXX=''
11312
link_all_deplibs_CXX=yes
11314
if test "$GXX" = yes ; then
11315
lt_int_apple_cc_single_mod=no
11316
output_verbose_link_cmd='echo'
11317
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11318
lt_int_apple_cc_single_mod=yes
11320
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11321
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11323
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'
11325
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11326
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11327
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11328
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}'
11330
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}'
11332
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}'
11334
case $cc_basename in
11336
output_verbose_link_cmd='echo'
11337
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'
11338
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11339
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11340
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}'
11341
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}'
11351
case $cc_basename in
11353
# FIXME: insert proper C++ library support
11357
# Green Hills C++ Compiler
11358
# FIXME: insert proper C++ library support
11362
# FIXME: insert proper C++ library support
11368
# C++ shared libraries reported to be fairly broken before switch to ELF
11372
archive_cmds_need_lc_CXX=no
11374
freebsd* | dragonfly*)
11375
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11382
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11383
hardcode_libdir_separator_CXX=:
11384
export_dynamic_flag_spec_CXX='${wl}-E'
11385
hardcode_direct_CXX=yes
11386
hardcode_minus_L_CXX=yes # Not in the search PATH,
11387
# but as the default
11388
# location of the library.
11390
case $cc_basename in
11392
# FIXME: insert proper C++ library support
11396
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'
11397
# Commands to make compiler produce verbose output that lists
11398
# what "hidden" libraries, object files and flags are used when
11399
# linking a shared library.
11401
# There doesn't appear to be a way to prevent this compiler from
11402
# explicitly linking system object files so we need to strip them
11403
# from the output so that they don't get included in the library
11405
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'
11408
if test "$GXX" = yes; then
11409
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'
11411
# FIXME: insert proper C++ library support
11418
if test $with_gnu_ld = no; then
11419
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11420
hardcode_libdir_separator_CXX=:
11425
export_dynamic_flag_spec_CXX='${wl}-E'
11431
hardcode_direct_CXX=no
11432
hardcode_shlibpath_var_CXX=no
11435
hardcode_direct_CXX=yes
11436
hardcode_minus_L_CXX=yes # Not in the search PATH,
11437
# but as the default
11438
# location of the library.
11442
case $cc_basename in
11444
# FIXME: insert proper C++ library support
11450
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11453
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11456
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11459
# Commands to make compiler produce verbose output that lists
11460
# what "hidden" libraries, object files and flags are used when
11461
# linking a shared library.
11463
# There doesn't appear to be a way to prevent this compiler from
11464
# explicitly linking system object files so we need to strip them
11465
# from the output so that they don't get included in the library
11467
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'
11470
if test "$GXX" = yes; then
11471
if test $with_gnu_ld = no; then
11474
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11477
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11480
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'
11485
# FIXME: insert proper C++ library support
11492
hardcode_direct_CXX=no
11493
hardcode_shlibpath_var_CXX=no
11494
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11495
export_dynamic_flag_spec_CXX='${wl}-E'
11496
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11497
# Instead, shared libraries are loaded at an image base (0x10000000 by
11498
# default) and relocated if they conflict, which is a slow very memory
11499
# consuming and fragmenting process. To avoid this, we pick a random,
11500
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11501
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11502
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'
11503
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'
11506
case $cc_basename in
11509
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'
11511
# Archives containing C++ object files must be created using
11512
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11513
# necessary to make sure instantiated templates are included
11515
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11518
if test "$GXX" = yes; then
11519
if test "$with_gnu_ld" = no; then
11520
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'
11522
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'
11525
link_all_deplibs_CXX=yes
11528
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11529
hardcode_libdir_separator_CXX=:
11531
linux* | k*bsd*-gnu)
11532
case $cc_basename in
11534
# Kuck and Associates, Inc. (KAI) C++ Compiler
11536
# KCC will only create a shared library if the output file
11537
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11538
# to its proper name (with version) after linking.
11539
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'
11540
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'
11541
# Commands to make compiler produce verbose output that lists
11542
# what "hidden" libraries, object files and flags are used when
11543
# linking a shared library.
11545
# There doesn't appear to be a way to prevent this compiler from
11546
# explicitly linking system object files so we need to strip them
11547
# from the output so that they don't get included in the library
11549
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'
11551
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11552
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11554
# Archives containing C++ object files must be created using
11555
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11556
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11561
# version 8.0 and above of icpc choke on multiply defined symbols
11562
# if we add $predep_objects and $postdep_objects, however 7.1 and
11563
# earlier do not add the objects themselves.
11564
case `$CC -V 2>&1` in
11566
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11567
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'
11569
*) # Version 8.0 or newer
11572
ia64*) tmp_idyn=' -i_dynamic';;
11574
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11575
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'
11578
archive_cmds_need_lc_CXX=no
11579
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11580
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11581
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11584
# Portland Group C++ compiler
11585
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11586
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'
11588
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11589
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11590
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'
11594
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11595
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'
11597
runpath_var=LD_RUN_PATH
11598
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11599
hardcode_libdir_separator_CXX=:
11601
# Commands to make compiler produce verbose output that lists
11602
# what "hidden" libraries, object files and flags are used when
11603
# linking a shared library.
11605
# There doesn't appear to be a way to prevent this compiler from
11606
# explicitly linking system object files so we need to strip them
11607
# from the output so that they don't get included in the library
11609
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'
11612
case `$CC -V 2>&1 | sed 5q` in
11615
no_undefined_flag_CXX=' -zdefs'
11616
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11617
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'
11618
hardcode_libdir_flag_spec_CXX='-R$libdir'
11619
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'
11621
# Not sure whether something based on
11622
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11624
output_verbose_link_cmd='echo'
11626
# Archives containing C++ object files must be created using
11627
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11628
# necessary to make sure instantiated templates are included
11630
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11637
# FIXME: insert proper C++ library support
11641
# FIXME: insert proper C++ library support
11645
case $cc_basename in
11647
# FIXME: insert proper C++ library support
11651
# FIXME: insert proper C++ library support
11657
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11658
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11660
hardcode_libdir_flag_spec_CXX='-R$libdir'
11661
hardcode_direct_CXX=yes
11662
hardcode_shlibpath_var_CXX=no
11664
# Workaround some broken pre-1.5 toolchains
11665
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11668
# C++ shared libraries are fairly broken
11672
if test -f /usr/libexec/ld.so; then
11673
hardcode_direct_CXX=yes
11674
hardcode_shlibpath_var_CXX=no
11675
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11676
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11677
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11678
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11679
export_dynamic_flag_spec_CXX='${wl}-E'
11680
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11682
output_verbose_link_cmd='echo'
11688
case $cc_basename in
11690
# Kuck and Associates, Inc. (KAI) C++ Compiler
11692
# KCC will only create a shared library if the output file
11693
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11694
# to its proper name (with version) after linking.
11695
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'
11697
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11698
hardcode_libdir_separator_CXX=:
11700
# Archives containing C++ object files must be created using
11701
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11702
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11706
# Rational C++ 2.4.1
11707
# FIXME: insert proper C++ library support
11711
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11712
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'
11714
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11715
hardcode_libdir_separator_CXX=:
11717
# Commands to make compiler produce verbose output that lists
11718
# what "hidden" libraries, object files and flags are used when
11719
# linking a shared library.
11721
# There doesn't appear to be a way to prevent this compiler from
11722
# explicitly linking system object files so we need to strip them
11723
# from the output so that they don't get included in the library
11725
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'
11728
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11729
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11730
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'
11732
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11733
hardcode_libdir_separator_CXX=:
11735
# Commands to make compiler produce verbose output that lists
11736
# what "hidden" libraries, object files and flags are used when
11737
# linking a shared library.
11738
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11741
# FIXME: insert proper C++ library support
11748
case $cc_basename in
11750
# Kuck and Associates, Inc. (KAI) C++ Compiler
11752
# KCC will only create a shared library if the output file
11753
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11754
# to its proper name (with version) after linking.
11755
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'
11757
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11758
hardcode_libdir_separator_CXX=:
11760
# Archives containing C++ object files must be created using
11761
# the KAI C++ compiler.
11762
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11765
# Rational C++ 2.4.1
11766
# FIXME: insert proper C++ library support
11770
allow_undefined_flag_CXX=' -expect_unresolved \*'
11771
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'
11772
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11773
echo "-hidden">> $lib.exp~
11774
$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~
11777
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11778
hardcode_libdir_separator_CXX=:
11780
# Commands to make compiler produce verbose output that lists
11781
# what "hidden" libraries, object files and flags are used when
11782
# linking a shared library.
11784
# There doesn't appear to be a way to prevent this compiler from
11785
# explicitly linking system object files so we need to strip them
11786
# from the output so that they don't get included in the library
11788
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'
11791
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11792
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11793
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'
11795
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11796
hardcode_libdir_separator_CXX=:
11798
# Commands to make compiler produce verbose output that lists
11799
# what "hidden" libraries, object files and flags are used when
11800
# linking a shared library.
11801
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11804
# FIXME: insert proper C++ library support
11811
# FIXME: insert proper C++ library support
11815
case $cc_basename in
11818
# FIXME: insert proper C++ library support
11823
# FIXME: insert proper C++ library support
11827
# FIXME: insert proper C++ library support
11833
case $cc_basename in
11835
# Sun C++ 4.2, 5.x and Centerline C++
11836
archive_cmds_need_lc_CXX=yes
11837
no_undefined_flag_CXX=' -zdefs'
11838
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11839
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11840
$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'
11842
hardcode_libdir_flag_spec_CXX='-R$libdir'
11843
hardcode_shlibpath_var_CXX=no
11845
solaris2.[0-5] | solaris2.[0-5].*) ;;
11847
# The compiler driver will combine and reorder linker options,
11848
# but understands `-z linker_flag'.
11849
# Supported since Solaris 2.6 (maybe 2.5.1?)
11850
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11853
link_all_deplibs_CXX=yes
11855
output_verbose_link_cmd='echo'
11857
# Archives containing C++ object files must be created using
11858
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11859
# necessary to make sure instantiated templates are included
11861
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11864
# Green Hills C++ Compiler
11865
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11867
# The C++ compiler must be used to create the archive.
11868
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11871
# GNU C++ compiler with Solaris linker
11872
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11873
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11874
if $CC --version | grep -v '^2\.7' > /dev/null; then
11875
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11876
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11877
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11879
# Commands to make compiler produce verbose output that lists
11880
# what "hidden" libraries, object files and flags are used when
11881
# linking a shared library.
11882
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11884
# g++ 2.7 appears to require `-G' NOT `-shared' on this
11886
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11887
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11888
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11890
# Commands to make compiler produce verbose output that lists
11891
# what "hidden" libraries, object files and flags are used when
11892
# linking a shared library.
11893
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11896
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11898
solaris2.[0-5] | solaris2.[0-5].*) ;;
11900
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11907
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11908
no_undefined_flag_CXX='${wl}-z,text'
11909
archive_cmds_need_lc_CXX=no
11910
hardcode_shlibpath_var_CXX=no
11911
runpath_var='LD_RUN_PATH'
11913
case $cc_basename in
11915
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11916
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11919
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11920
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11924
sysv5* | sco3.2v5* | sco5v6*)
11925
# Note: We can NOT use -z defs as we might desire, because we do not
11926
# link with -lc, and that would cause any symbols used from libc to
11927
# always be unresolved, which means just about no library would
11928
# ever link correctly. If we're not using GNU ld we use -z text
11929
# though, which does catch some bad symbols but isn't as heavy-handed
11931
# For security reasons, it is highly recommended that you always
11932
# use absolute paths for naming shared libraries, and exclude the
11933
# DT_RUNPATH tag from executables and libraries. But doing so
11934
# requires that you compile everything twice, which is a pain.
11935
# So that behaviour is only enabled if SCOABSPATH is set to a
11936
# non-empty value in the environment. Most likely only useful for
11937
# creating official distributions of packages.
11938
# This is a hack until libtool officially supports absolute path
11939
# names for shared libraries.
11940
no_undefined_flag_CXX='${wl}-z,text'
11941
allow_undefined_flag_CXX='${wl}-z,nodefs'
11942
archive_cmds_need_lc_CXX=no
11943
hardcode_shlibpath_var_CXX=no
11944
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11945
hardcode_libdir_separator_CXX=':'
11946
link_all_deplibs_CXX=yes
11947
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11948
runpath_var='LD_RUN_PATH'
11950
case $cc_basename in
11952
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11953
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11956
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11957
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11962
case $cc_basename in
11964
# NonStop-UX NCC 3.20
11965
# FIXME: insert proper C++ library support
11969
# FIXME: insert proper C++ library support
11975
# FIXME: insert proper C++ library support
11979
# FIXME: insert proper C++ library support
11983
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11984
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11985
test "$ld_shlibs_CXX" = no && can_build_shared=no
11991
cat > conftest.$ac_ext <<EOF
11995
Foo (void) { a = 0; }
12001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002
(eval $ac_compile) 2>&5
12004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005
(exit $ac_status); }; then
12006
# Parse the compiler output and extract the necessary
12007
# objects, libraries and library flags.
12009
# Sentinel used to keep track of whether or not we are before
12010
# the conftest object file.
12011
pre_test_object_deps_done=no
12013
# The `*' in the case matches for architectures that use `case' in
12014
# $output_verbose_cmd can trigger glob expansion during the loop
12015
# eval without this substitution.
12016
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12018
for p in `eval $output_verbose_link_cmd`; do
12022
# Some compilers place space between "-{L,R}" and the path.
12023
# Remove the space.
12024
if test $p = "-L" \
12025
|| test $p = "-R"; then
12032
if test "$pre_test_object_deps_done" = no; then
12035
# Internal compiler library paths should come after those
12036
# provided the user. The postdeps already come after the
12037
# user supplied libs so there is no need to process them.
12038
if test -z "$compiler_lib_search_path_CXX"; then
12039
compiler_lib_search_path_CXX="${prev}${p}"
12041
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12044
# The "-l" case would never come before the object being
12045
# linked, so don't bother handling this case.
12048
if test -z "$postdeps_CXX"; then
12049
postdeps_CXX="${prev}${p}"
12051
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12057
# This assumes that the test object file only shows up
12058
# once in the compiler output.
12059
if test "$p" = "conftest.$objext"; then
12060
pre_test_object_deps_done=yes
12064
if test "$pre_test_object_deps_done" = no; then
12065
if test -z "$predep_objects_CXX"; then
12066
predep_objects_CXX="$p"
12068
predep_objects_CXX="$predep_objects_CXX $p"
12071
if test -z "$postdep_objects_CXX"; then
12072
postdep_objects_CXX="$p"
12074
postdep_objects_CXX="$postdep_objects_CXX $p"
12079
*) ;; # Ignore the rest.
12087
echo "libtool.m4: error: problem compiling CXX test program"
12090
$rm -f confest.$objext
12092
# PORTME: override above test on systems where it is broken
12095
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12096
# hack all around it, let's just trust "g++" to DTRT.
12097
predep_objects_CXX=
12098
postdep_objects_CXX=
12103
case `$CC -V 2>&1 | sed 5q` in
12107
# The more standards-conforming stlport4 library is
12108
# incompatible with the Cstd library. Avoid specifying
12109
# it if it's in CXXFLAGS. Ignore libCrun as
12110
# -library=stlport4 depends on it.
12111
case " $CXX $CXXFLAGS " in
12112
*" -library=stlport4 "*)
12113
solaris_use_stlport4=yes
12116
if test "$solaris_use_stlport4" != yes; then
12117
postdeps_CXX='-library=Cstd -library=Crun'
12124
case $cc_basename in
12126
# The more standards-conforming stlport4 library is
12127
# incompatible with the Cstd library. Avoid specifying
12128
# it if it's in CXXFLAGS. Ignore libCrun as
12129
# -library=stlport4 depends on it.
12130
case " $CXX $CXXFLAGS " in
12131
*" -library=stlport4 "*)
12132
solaris_use_stlport4=yes
12136
# Adding this requires a known-good setup of shared libraries for
12137
# Sun compiler versions before 5.6, else PIC objects from an old
12138
# archive will be linked into the output, leading to subtle bugs.
12139
if test "$solaris_use_stlport4" != yes; then
12140
postdeps_CXX='-library=Cstd -library=Crun'
12148
case " $postdeps_CXX " in
12149
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12152
lt_prog_compiler_wl_CXX=
12153
lt_prog_compiler_pic_CXX=
12154
lt_prog_compiler_static_CXX=
12156
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12157
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12159
# C++ specific cases for pic, static, wl, etc.
12160
if test "$GXX" = yes; then
12161
lt_prog_compiler_wl_CXX='-Wl,'
12162
lt_prog_compiler_static_CXX='-static'
12166
# All AIX code is PIC.
12167
if test "$host_cpu" = ia64; then
12168
# AIX 5 now supports IA64 processor
12169
lt_prog_compiler_static_CXX='-Bstatic'
12173
# FIXME: we need at least 68020 code to build shared libraries, but
12174
# adding the `-m68020' flag to GCC prevents building anything better,
12176
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12178
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12179
# PIC is the default for these OSes.
12181
mingw* | cygwin* | os2* | pw32*)
12182
# This hack is so that the source file can tell whether it is being
12183
# built for inclusion in a dll (and should export symbols for example).
12184
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12185
# (--disable-auto-import) libraries
12186
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12188
darwin* | rhapsody*)
12189
# PIC is the default on this platform
12190
# Common symbols not allowed in MH_DYLIB files
12191
lt_prog_compiler_pic_CXX='-fno-common'
12194
# DJGPP does not support shared libraries at all
12195
lt_prog_compiler_pic_CXX=
12198
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12199
# Instead, we relocate shared libraries at runtime.
12202
if test -d /usr/nec; then
12203
lt_prog_compiler_pic_CXX=-Kconform_pic
12207
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12208
# not for PA HP-UX.
12213
lt_prog_compiler_pic_CXX='-fPIC'
12218
lt_prog_compiler_pic_CXX='-fPIC'
12224
# All AIX code is PIC.
12225
if test "$host_cpu" = ia64; then
12226
# AIX 5 now supports IA64 processor
12227
lt_prog_compiler_static_CXX='-Bstatic'
12229
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12233
case $cc_basename in
12235
# Green Hills C++ Compiler
12236
# _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"
12241
# PIC is the default on this platform
12242
# Common symbols not allowed in MH_DYLIB files
12243
case $cc_basename in
12245
lt_prog_compiler_pic_CXX='-qnocommon'
12246
lt_prog_compiler_wl_CXX='-Wl,'
12251
case $cc_basename in
12253
lt_prog_compiler_pic_CXX='-KPIC'
12256
# Green Hills C++ Compiler
12257
lt_prog_compiler_pic_CXX='-pic'
12263
freebsd* | dragonfly*)
12264
# FreeBSD uses GNU C++
12266
hpux9* | hpux10* | hpux11*)
12267
case $cc_basename in
12269
lt_prog_compiler_wl_CXX='-Wl,'
12270
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12271
if test "$host_cpu" != ia64; then
12272
lt_prog_compiler_pic_CXX='+Z'
12276
lt_prog_compiler_wl_CXX='-Wl,'
12277
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12283
lt_prog_compiler_pic_CXX='+Z'
12292
# This is c89, which is MS Visual C++ (no shared libs)
12293
# Anyone wants to do a port?
12295
irix5* | irix6* | nonstopux*)
12296
case $cc_basename in
12298
lt_prog_compiler_wl_CXX='-Wl,'
12299
lt_prog_compiler_static_CXX='-non_shared'
12300
# CC pic flag -KPIC is the default.
12306
linux* | k*bsd*-gnu)
12307
case $cc_basename in
12310
lt_prog_compiler_wl_CXX='--backend -Wl,'
12311
lt_prog_compiler_pic_CXX='-fPIC'
12315
lt_prog_compiler_wl_CXX='-Wl,'
12316
lt_prog_compiler_pic_CXX='-KPIC'
12317
lt_prog_compiler_static_CXX='-static'
12320
# Portland Group C++ compiler.
12321
lt_prog_compiler_wl_CXX='-Wl,'
12322
lt_prog_compiler_pic_CXX='-fpic'
12323
lt_prog_compiler_static_CXX='-Bstatic'
12327
# Make sure the PIC flag is empty. It appears that all Alpha
12328
# Linux and Compaq Tru64 Unix objects are PIC.
12329
lt_prog_compiler_pic_CXX=
12330
lt_prog_compiler_static_CXX='-non_shared'
12333
case `$CC -V 2>&1 | sed 5q` in
12336
lt_prog_compiler_pic_CXX='-KPIC'
12337
lt_prog_compiler_static_CXX='-Bstatic'
12338
lt_prog_compiler_wl_CXX='-Qoption ld '
12349
case $cc_basename in
12351
lt_prog_compiler_pic_CXX='-W c,exportall'
12359
osf3* | osf4* | osf5*)
12360
case $cc_basename in
12362
lt_prog_compiler_wl_CXX='--backend -Wl,'
12365
# Rational C++ 2.4.1
12366
lt_prog_compiler_pic_CXX='-pic'
12369
# Digital/Compaq C++
12370
lt_prog_compiler_wl_CXX='-Wl,'
12371
# Make sure the PIC flag is empty. It appears that all Alpha
12372
# Linux and Compaq Tru64 Unix objects are PIC.
12373
lt_prog_compiler_pic_CXX=
12374
lt_prog_compiler_static_CXX='-non_shared'
12383
case $cc_basename in
12385
# Sun C++ 4.2, 5.x and Centerline C++
12386
lt_prog_compiler_pic_CXX='-KPIC'
12387
lt_prog_compiler_static_CXX='-Bstatic'
12388
lt_prog_compiler_wl_CXX='-Qoption ld '
12391
# Green Hills C++ Compiler
12392
lt_prog_compiler_pic_CXX='-PIC'
12399
case $cc_basename in
12402
lt_prog_compiler_pic_CXX='-pic'
12403
lt_prog_compiler_static_CXX='-Bstatic'
12407
lt_prog_compiler_pic_CXX='-pic'
12414
case $cc_basename in
12416
# NonStop-UX NCC 3.20
12417
lt_prog_compiler_pic_CXX='-KPIC'
12423
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12424
case $cc_basename in
12426
lt_prog_compiler_wl_CXX='-Wl,'
12427
lt_prog_compiler_pic_CXX='-KPIC'
12428
lt_prog_compiler_static_CXX='-Bstatic'
12435
lt_prog_compiler_can_build_shared_CXX=no
12440
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12441
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12444
# Check to make sure the PIC flag actually works.
12446
if test -n "$lt_prog_compiler_pic_CXX"; then
12448
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12449
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12450
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12451
echo $ECHO_N "(cached) $ECHO_C" >&6
12453
lt_prog_compiler_pic_works_CXX=no
12454
ac_outfile=conftest.$ac_objext
12455
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12456
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12457
# Insert the option either (1) after the last *FLAGS variable, or
12458
# (2) before a word containing "conftest.", or (3) at the end.
12459
# Note that $ac_compile itself does not contain backslashes and begins
12460
# with a dollar sign (not a hyphen), so the echo should work correctly.
12461
# The option is referenced via a variable to avoid confusing sed.
12462
lt_compile=`echo "$ac_compile" | $SED \
12463
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12464
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12465
-e 's:$: $lt_compiler_flag:'`
12466
(eval echo "\"\$as_me:12466: $lt_compile\"" >&5)
12467
(eval "$lt_compile" 2>conftest.err)
12469
cat conftest.err >&5
12470
echo "$as_me:12470: \$? = $ac_status" >&5
12471
if (exit $ac_status) && test -s "$ac_outfile"; then
12472
# The compiler can only warn and ignore the option if not recognized
12473
# So say no if there are warnings other than the usual output.
12474
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12475
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12476
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12477
lt_prog_compiler_pic_works_CXX=yes
12483
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12484
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12486
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12487
case $lt_prog_compiler_pic_CXX in
12489
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12492
lt_prog_compiler_pic_CXX=
12493
lt_prog_compiler_can_build_shared_CXX=no
12498
# For platforms which do not support PIC, -DPIC is meaningless:
12500
lt_prog_compiler_pic_CXX=
12503
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12508
# Check to make sure the static flag actually works.
12510
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12511
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12512
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12513
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12514
echo $ECHO_N "(cached) $ECHO_C" >&6
12516
lt_prog_compiler_static_works_CXX=no
12517
save_LDFLAGS="$LDFLAGS"
12518
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12519
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12520
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12521
# The linker can only warn and ignore the option if not recognized
12522
# So say no if there are warnings
12523
if test -s conftest.err; then
12524
# Append any errors to the config.log.
12525
cat conftest.err 1>&5
12526
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12527
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12528
if diff conftest.exp conftest.er2 >/dev/null; then
12529
lt_prog_compiler_static_works_CXX=yes
12532
lt_prog_compiler_static_works_CXX=yes
12536
LDFLAGS="$save_LDFLAGS"
12539
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12540
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12542
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12545
lt_prog_compiler_static_CXX=
12549
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12550
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12551
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12552
echo $ECHO_N "(cached) $ECHO_C" >&6
12554
lt_cv_prog_compiler_c_o_CXX=no
12555
$rm -r conftest 2>/dev/null
12559
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12561
lt_compiler_flag="-o out/conftest2.$ac_objext"
12562
# Insert the option either (1) after the last *FLAGS variable, or
12563
# (2) before a word containing "conftest.", or (3) at the end.
12564
# Note that $ac_compile itself does not contain backslashes and begins
12565
# with a dollar sign (not a hyphen), so the echo should work correctly.
12566
lt_compile=`echo "$ac_compile" | $SED \
12567
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12568
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12569
-e 's:$: $lt_compiler_flag:'`
12570
(eval echo "\"\$as_me:12570: $lt_compile\"" >&5)
12571
(eval "$lt_compile" 2>out/conftest.err)
12573
cat out/conftest.err >&5
12574
echo "$as_me:12574: \$? = $ac_status" >&5
12575
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12577
# The compiler can only warn and ignore the option if not recognized
12578
# So say no if there are warnings
12579
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12580
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12581
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12582
lt_cv_prog_compiler_c_o_CXX=yes
12587
# SGI C++ compiler will create directory out/ii_files/ for
12588
# template instantiation
12589
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12590
$rm out/* && rmdir out
12596
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12597
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12600
hard_links="nottested"
12601
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12602
# do not overwrite the value of need_locks provided by the user
12603
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12604
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12607
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12609
ln conftest.a conftest.b 2>&5 || hard_links=no
12610
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12611
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12612
echo "${ECHO_T}$hard_links" >&6; }
12613
if test "$hard_links" = no; then
12614
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12615
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12622
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12623
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12625
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12628
# If we're using GNU nm, then we don't want the "-C" option.
12629
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12630
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12631
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'
12633
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'
12637
export_symbols_cmds_CXX="$ltdll_cmds"
12640
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'
12643
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12647
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12648
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12649
test "$ld_shlibs_CXX" = no && can_build_shared=no
12652
# Do we need to explicitly link libc?
12654
case "x$archive_cmds_need_lc_CXX" in
12656
# Assume -lc should be added
12657
archive_cmds_need_lc_CXX=yes
12659
if test "$enable_shared" = yes && test "$GCC" = yes; then
12660
case $archive_cmds_CXX in
12662
# FIXME: we may have to deal with multi-command sequences.
12665
# Test whether the compiler implicitly links with -lc since on some
12666
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12667
# to ld, don't add -lc before -lgcc.
12668
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12669
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12671
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12673
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12674
(eval $ac_compile) 2>&5
12676
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677
(exit $ac_status); } 2>conftest.err; then
12680
libobjs=conftest.$ac_objext
12682
wl=$lt_prog_compiler_wl_CXX
12683
pic_flag=$lt_prog_compiler_pic_CXX
12689
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12690
allow_undefined_flag_CXX=
12691
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12692
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695
(exit $ac_status); }
12697
archive_cmds_need_lc_CXX=no
12699
archive_cmds_need_lc_CXX=yes
12701
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12703
cat conftest.err 1>&5
12706
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12707
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12714
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12715
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12716
library_names_spec=
12717
libname_spec='lib$name'
12721
postuninstall_cmds=
12725
shlibpath_overrides_runpath=unknown
12727
dynamic_linker="$host_os ld.so"
12728
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12730
need_lib_prefix=unknown
12731
hardcode_into_libs=no
12733
# when you set need_version to no, make sure it does not cause -set_version
12734
# flags to be left without arguments
12735
need_version=unknown
12740
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12741
shlibpath_var=LIBPATH
12743
# AIX 3 has no versioning support, so we append a major version to the name.
12744
soname_spec='${libname}${release}${shared_ext}$major'
12751
hardcode_into_libs=yes
12752
if test "$host_cpu" = ia64; then
12753
# AIX 5 supports IA64
12754
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12755
shlibpath_var=LD_LIBRARY_PATH
12757
# With GCC up to 2.95.x, collect2 would create an import file
12758
# for dependence libraries. The import file would start with
12759
# the line `#! .'. This would cause the generated library to
12760
# depend on `.', always an invalid library. This was fixed in
12761
# development snapshots of GCC prior to 3.0.
12763
aix4 | aix4.[01] | aix4.[01].*)
12764
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12766
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12769
can_build_shared=no
12773
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12774
# soname into executable. Probably we can add versioning support to
12775
# collect2, so additional links can be useful in future.
12776
if test "$aix_use_runtimelinking" = yes; then
12777
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12778
# instead of lib<name>.a to let people know that these are not
12779
# typical AIX shared libraries.
12780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782
# We preserve .a as extension for shared libraries through AIX4.2
12783
# and later when we are not doing run time linking.
12784
library_names_spec='${libname}${release}.a $libname.a'
12785
soname_spec='${libname}${release}${shared_ext}$major'
12787
shlibpath_var=LIBPATH
12792
library_names_spec='$libname.ixlibrary $libname.a'
12793
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12794
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'
12798
library_names_spec='${libname}${shared_ext}'
12799
dynamic_linker="$host_os ld.so"
12800
shlibpath_var=LIBRARY_PATH
12806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12807
soname_spec='${libname}${release}${shared_ext}$major'
12808
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12809
shlibpath_var=LD_LIBRARY_PATH
12810
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12811
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12812
# the default ld.so.conf also contains /usr/contrib/lib and
12813
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12814
# libtool to hard-code these into programs
12817
cygwin* | mingw* | pw32*)
12818
version_type=windows
12823
case $GCC,$host_os in
12824
yes,cygwin* | yes,mingw* | yes,pw32*)
12825
library_names_spec='$libname.dll.a'
12826
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12827
postinstall_cmds='base_file=`basename \${file}`~
12828
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12829
dldir=$destdir/`dirname \$dlpath`~
12830
test -d \$dldir || mkdir -p \$dldir~
12831
$install_prog $dir/$dlname \$dldir/$dlname~
12832
chmod a+x \$dldir/$dlname'
12833
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12834
dlpath=$dir/\$dldll~
12836
shlibpath_overrides_runpath=yes
12840
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12841
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12842
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12845
# MinGW DLLs use traditional 'lib' prefix
12846
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12847
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12848
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12849
# It is most probably a Windows format PATH printed by
12850
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12851
# path with ; separators, and with drive letters. We can handle the
12852
# drive letters (cygwin fileutils understands them), so leave them,
12853
# especially as we might pass files found there to a mingw objdump,
12854
# which wouldn't understand a cygwinified path. Ahh.
12855
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12857
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12861
# pw32 DLLs use 'pw' prefix rather than 'lib'
12862
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12868
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12871
dynamic_linker='Win32 ld.exe'
12872
# FIXME: first we should search . and the directory the executable is in
12876
darwin* | rhapsody*)
12877
dynamic_linker="$host_os dyld"
12878
version_type=darwin
12881
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12882
soname_spec='${libname}${release}${major}$shared_ext'
12883
shlibpath_overrides_runpath=yes
12884
shlibpath_var=DYLD_LIBRARY_PATH
12885
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12887
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12894
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12895
soname_spec='${libname}${release}${shared_ext}$major'
12896
shlibpath_var=LD_LIBRARY_PATH
12903
freebsd* | dragonfly*)
12904
# DragonFly does not have aout. When/if they implement a new
12905
# versioning mechanism, adjust this.
12906
if test -x /usr/bin/objformat; then
12907
objformat=`/usr/bin/objformat`
12910
freebsd[123]*) objformat=aout ;;
12911
*) objformat=elf ;;
12914
version_type=freebsd-$objformat
12915
case $version_type in
12917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12922
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12926
shlibpath_var=LD_LIBRARY_PATH
12929
shlibpath_overrides_runpath=yes
12931
freebsd3.[01]* | freebsdelf3.[01]*)
12932
shlibpath_overrides_runpath=yes
12933
hardcode_into_libs=yes
12935
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12936
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12937
shlibpath_overrides_runpath=no
12938
hardcode_into_libs=yes
12940
*) # from 4.6 on, and DragonFly
12941
shlibpath_overrides_runpath=yes
12942
hardcode_into_libs=yes
12951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12952
soname_spec='${libname}${release}${shared_ext}$major'
12953
shlibpath_var=LD_LIBRARY_PATH
12954
hardcode_into_libs=yes
12957
hpux9* | hpux10* | hpux11*)
12958
# Give a soname corresponding to the major version so that dld.sl refuses to
12959
# link against other versions.
12966
hardcode_into_libs=yes
12967
dynamic_linker="$host_os dld.so"
12968
shlibpath_var=LD_LIBRARY_PATH
12969
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12971
soname_spec='${libname}${release}${shared_ext}$major'
12972
if test "X$HPUX_IA64_MODE" = X32; then
12973
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12975
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12977
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12981
hardcode_into_libs=yes
12982
dynamic_linker="$host_os dld.sl"
12983
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12984
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986
soname_spec='${libname}${release}${shared_ext}$major'
12987
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12988
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12992
dynamic_linker="$host_os dld.sl"
12993
shlibpath_var=SHLIB_PATH
12994
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12996
soname_spec='${libname}${release}${shared_ext}$major'
12999
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13000
postinstall_cmds='chmod 555 $lib'
13007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13008
soname_spec='${libname}${release}${shared_ext}$major'
13009
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13010
shlibpath_var=LD_LIBRARY_PATH
13011
shlibpath_overrides_runpath=no
13012
hardcode_into_libs=yes
13015
irix5* | irix6* | nonstopux*)
13017
nonstopux*) version_type=nonstopux ;;
13019
if test "$lt_cv_prog_gnu_ld" = yes; then
13027
soname_spec='${libname}${release}${shared_ext}$major'
13028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13030
irix5* | nonstopux*)
13031
libsuff= shlibsuff=
13034
case $LD in # libtool.m4 will add one of these switches to LD
13035
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13036
libsuff= shlibsuff= libmagic=32-bit;;
13037
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13038
libsuff=32 shlibsuff=N32 libmagic=N32;;
13039
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13040
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13041
*) libsuff= shlibsuff= libmagic=never-match;;
13045
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13046
shlibpath_overrides_runpath=no
13047
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13048
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13049
hardcode_into_libs=yes
13052
# No shared lib support for Linux oldld, aout, or coff.
13053
linux*oldld* | linux*aout* | linux*coff*)
13057
# This must be Linux ELF.
13058
linux* | k*bsd*-gnu)
13062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13063
soname_spec='${libname}${release}${shared_ext}$major'
13064
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13065
shlibpath_var=LD_LIBRARY_PATH
13066
shlibpath_overrides_runpath=no
13067
# This implies no fast_install, which is unacceptable.
13068
# Some rework will be needed to allow for fast_install
13069
# before this can be enabled.
13070
hardcode_into_libs=yes
13071
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13072
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13074
# Append ld.so.conf contents to the search path
13075
if test -f /etc/ld.so.conf; then
13076
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' ' '`
13077
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13080
# We used to test for /lib/ld.so.1 and disable shared libraries on
13081
# powerpc, because MkLinux only supported shared libraries with the
13082
# GNU dynamic linker. Since this was broken with cross compilers,
13083
# most powerpc-linux boxes support dynamic linking these days and
13084
# people can always --disable-shared, the test was removed, and we
13085
# assume the GNU/Linux dynamic linker is in use.
13086
dynamic_linker='GNU/Linux ld.so'
13093
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13095
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13096
dynamic_linker='NetBSD (a.out) ld.so'
13098
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13099
soname_spec='${libname}${release}${shared_ext}$major'
13100
dynamic_linker='NetBSD ld.elf_so'
13102
shlibpath_var=LD_LIBRARY_PATH
13103
shlibpath_overrides_runpath=yes
13104
hardcode_into_libs=yes
13109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13110
shlibpath_var=LD_LIBRARY_PATH
13111
shlibpath_overrides_runpath=yes
13118
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13119
soname_spec='${libname}${release}${shared_ext}$major'
13120
shlibpath_var=LD_LIBRARY_PATH
13121
shlibpath_overrides_runpath=yes
13126
sys_lib_dlsearch_path_spec="/usr/lib"
13128
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13130
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13131
*) need_version=no ;;
13133
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13134
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13135
shlibpath_var=LD_LIBRARY_PATH
13136
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13138
openbsd2.[89] | openbsd2.[89].*)
13139
shlibpath_overrides_runpath=no
13142
shlibpath_overrides_runpath=yes
13146
shlibpath_overrides_runpath=yes
13151
libname_spec='$name'
13154
library_names_spec='$libname${shared_ext} $libname.a'
13155
dynamic_linker='OS/2 ld.exe'
13156
shlibpath_var=LIBPATH
13159
osf3* | osf4* | osf5*)
13163
soname_spec='${libname}${release}${shared_ext}$major'
13164
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13165
shlibpath_var=LD_LIBRARY_PATH
13166
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13167
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13178
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13179
soname_spec='${libname}${release}${shared_ext}$major'
13180
shlibpath_var=LD_LIBRARY_PATH
13181
shlibpath_overrides_runpath=yes
13182
hardcode_into_libs=yes
13183
# ldd complains unless libraries are executable
13184
postinstall_cmds='chmod +x $lib'
13189
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13190
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13191
shlibpath_var=LD_LIBRARY_PATH
13192
shlibpath_overrides_runpath=yes
13193
if test "$with_gnu_ld" = yes; then
13201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202
soname_spec='${libname}${release}${shared_ext}$major'
13203
shlibpath_var=LD_LIBRARY_PATH
13204
case $host_vendor in
13206
shlibpath_overrides_runpath=no
13208
export_dynamic_flag_spec='${wl}-Blargedynsym'
13209
runpath_var=LD_RUN_PATH
13217
shlibpath_overrides_runpath=no
13218
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13224
if test -d /usr/nec ;then
13226
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13227
soname_spec='$libname${shared_ext}.$major'
13228
shlibpath_var=LD_LIBRARY_PATH
13232
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13233
version_type=freebsd-elf
13236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13237
soname_spec='${libname}${release}${shared_ext}$major'
13238
shlibpath_var=LD_LIBRARY_PATH
13239
hardcode_into_libs=yes
13240
if test "$with_gnu_ld" = yes; then
13241
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13242
shlibpath_overrides_runpath=no
13244
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13245
shlibpath_overrides_runpath=yes
13248
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13252
sys_lib_dlsearch_path_spec='/usr/lib'
13257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258
soname_spec='${libname}${release}${shared_ext}$major'
13259
shlibpath_var=LD_LIBRARY_PATH
13266
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13267
echo "${ECHO_T}$dynamic_linker" >&6; }
13268
test "$dynamic_linker" = no && can_build_shared=no
13270
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13271
if test "$GCC" = yes; then
13272
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13275
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13276
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13277
hardcode_action_CXX=
13278
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13279
test -n "$runpath_var_CXX" || \
13280
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13282
# We can hardcode non-existant directories.
13283
if test "$hardcode_direct_CXX" != no &&
13284
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13285
# have to relink, otherwise we might link with an installed library
13286
# when we should be linking with a yet-to-be-installed one
13287
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13288
test "$hardcode_minus_L_CXX" != no; then
13289
# Linking always hardcodes the temporary library directory.
13290
hardcode_action_CXX=relink
13292
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13293
hardcode_action_CXX=immediate
13296
# We cannot hardcode anything, or else we can only hardcode existing
13298
hardcode_action_CXX=unsupported
13300
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13301
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13303
if test "$hardcode_action_CXX" = relink; then
13304
# Fast installation is not supported
13305
enable_fast_install=no
13306
elif test "$shlibpath_overrides_runpath" = yes ||
13307
test "$enable_shared" = no; then
13308
# Fast installation is not necessary
13309
enable_fast_install=needless
13313
# The else clause should only fire when bootstrapping the
13314
# libtool distribution, otherwise you forgot to ship ltmain.sh
13315
# with your package, and you will get complaints that there are
13316
# no rules to generate ltmain.sh.
13317
if test -f "$ltmain"; then
13318
# See if we are running on zsh, and set the options which allow our commands through
13319
# without removal of \ escapes.
13320
if test -n "${ZSH_VERSION+set}" ; then
13321
setopt NO_GLOB_SUBST
13323
# Now quote all the things that may contain metacharacters while being
13324
# careful not to overquote the AC_SUBSTed values. We take copies of the
13325
# variables and quote the copies for generation of the libtool script.
13326
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13328
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13329
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13330
deplibs_check_method reload_flag reload_cmds need_locks \
13331
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13332
lt_cv_sys_global_symbol_to_c_name_address \
13333
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13334
old_postinstall_cmds old_postuninstall_cmds \
13338
lt_prog_compiler_wl_CXX \
13339
lt_prog_compiler_pic_CXX \
13340
lt_prog_compiler_static_CXX \
13341
lt_prog_compiler_no_builtin_flag_CXX \
13342
export_dynamic_flag_spec_CXX \
13343
thread_safe_flag_spec_CXX \
13344
whole_archive_flag_spec_CXX \
13345
enable_shared_with_static_runtimes_CXX \
13346
old_archive_cmds_CXX \
13347
old_archive_from_new_cmds_CXX \
13348
predep_objects_CXX \
13349
postdep_objects_CXX \
13352
compiler_lib_search_path_CXX \
13354
archive_expsym_cmds_CXX \
13355
postinstall_cmds_CXX \
13356
postuninstall_cmds_CXX \
13357
old_archive_from_expsyms_cmds_CXX \
13358
allow_undefined_flag_CXX \
13359
no_undefined_flag_CXX \
13360
export_symbols_cmds_CXX \
13361
hardcode_libdir_flag_spec_CXX \
13362
hardcode_libdir_flag_spec_ld_CXX \
13363
hardcode_libdir_separator_CXX \
13364
hardcode_automatic_CXX \
13366
module_expsym_cmds_CXX \
13367
lt_cv_prog_compiler_c_o_CXX \
13368
fix_srcfile_path_CXX \
13369
exclude_expsyms_CXX \
13370
include_expsyms_CXX; do
13373
old_archive_cmds_CXX | \
13374
old_archive_from_new_cmds_CXX | \
13375
archive_cmds_CXX | \
13376
archive_expsym_cmds_CXX | \
13377
module_cmds_CXX | \
13378
module_expsym_cmds_CXX | \
13379
old_archive_from_expsyms_cmds_CXX | \
13380
export_symbols_cmds_CXX | \
13381
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13382
postinstall_cmds | postuninstall_cmds | \
13383
old_postinstall_cmds | old_postuninstall_cmds | \
13384
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13385
# Double-quote double-evaled strings.
13386
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13389
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13395
*'\$0 --fallback-echo"')
13396
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13402
cat <<__EOF__ >> "$cfgfile"
13403
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13405
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13407
# Shell to use when invoking shell scripts.
13410
# Whether or not to build shared libraries.
13411
build_libtool_libs=$enable_shared
13413
# Whether or not to build static libraries.
13414
build_old_libs=$enable_static
13416
# Whether or not to add -lc for building shared libraries.
13417
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13419
# Whether or not to disallow shared libs when runtime libs are static
13420
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13422
# Whether or not to optimize for fast installation.
13423
fast_install=$enable_fast_install
13426
host_alias=$host_alias
13430
# The build system.
13431
build_alias=$build_alias
13435
# An echo program that does not interpret backslashes.
13440
AR_FLAGS=$lt_AR_FLAGS
13445
# LTCC compiler flags.
13446
LTCFLAGS=$lt_LTCFLAGS
13448
# A language-specific compiler.
13449
CC=$lt_compiler_CXX
13451
# Is the compiler the GNU C compiler?
13457
# The linker used to build libraries.
13460
# Whether we need hard or soft links.
13463
# A BSD-compatible nm program.
13466
# A symbol stripping program
13469
# Used to examine libraries when file_magic_cmd begins "file"
13470
MAGIC_CMD=$MAGIC_CMD
13472
# Used on cygwin: DLL creation program.
13475
# Used on cygwin: object dumper.
13478
# Used on cygwin: assembler.
13481
# The name of the directory that contains temporary libtool files.
13484
# How to create reloadable object files.
13485
reload_flag=$lt_reload_flag
13486
reload_cmds=$lt_reload_cmds
13488
# How to pass a linker flag through the compiler.
13489
wl=$lt_lt_prog_compiler_wl_CXX
13491
# Object file suffix (normally "o").
13492
objext="$ac_objext"
13494
# Old archive suffix (normally "a").
13497
# Shared library suffix (normally ".so").
13498
shrext_cmds='$shrext_cmds'
13500
# Executable file suffix (normally "").
13503
# Additional compiler flags for building library objects.
13504
pic_flag=$lt_lt_prog_compiler_pic_CXX
13507
# What is the maximum length of a command?
13508
max_cmd_len=$lt_cv_sys_max_cmd_len
13510
# Does compiler simultaneously support -c and -o options?
13511
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13513
# Must we lock files when doing compilation?
13514
need_locks=$lt_need_locks
13516
# Do we need the lib prefix for modules?
13517
need_lib_prefix=$need_lib_prefix
13519
# Do we need a version for libraries?
13520
need_version=$need_version
13522
# Whether dlopen is supported.
13523
dlopen_support=$enable_dlopen
13525
# Whether dlopen of programs is supported.
13526
dlopen_self=$enable_dlopen_self
13528
# Whether dlopen of statically linked programs is supported.
13529
dlopen_self_static=$enable_dlopen_self_static
13531
# Compiler flag to prevent dynamic linking.
13532
link_static_flag=$lt_lt_prog_compiler_static_CXX
13534
# Compiler flag to turn off builtin functions.
13535
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13537
# Compiler flag to allow reflexive dlopens.
13538
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13540
# Compiler flag to generate shared objects directly from archives.
13541
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13543
# Compiler flag to generate thread-safe objects.
13544
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13546
# Library versioning type.
13547
version_type=$version_type
13549
# Format of library name prefix.
13550
libname_spec=$lt_libname_spec
13552
# List of archive names. First name is the real one, the rest are links.
13553
# The last name is the one that the linker finds with -lNAME.
13554
library_names_spec=$lt_library_names_spec
13556
# The coded name of the library, if different from the real name.
13557
soname_spec=$lt_soname_spec
13559
# Commands used to build and install an old-style archive.
13561
old_archive_cmds=$lt_old_archive_cmds_CXX
13562
old_postinstall_cmds=$lt_old_postinstall_cmds
13563
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13565
# Create an old-style archive from a shared archive.
13566
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13568
# Create a temporary old-style archive to link instead of a shared archive.
13569
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13571
# Commands used to build and install a shared archive.
13572
archive_cmds=$lt_archive_cmds_CXX
13573
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13574
postinstall_cmds=$lt_postinstall_cmds
13575
postuninstall_cmds=$lt_postuninstall_cmds
13577
# Commands used to build a loadable module (assumed same as above if empty)
13578
module_cmds=$lt_module_cmds_CXX
13579
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13581
# Commands to strip libraries.
13582
old_striplib=$lt_old_striplib
13583
striplib=$lt_striplib
13585
# Dependencies to place before the objects being linked to create a
13587
predep_objects=$lt_predep_objects_CXX
13589
# Dependencies to place after the objects being linked to create a
13591
postdep_objects=$lt_postdep_objects_CXX
13593
# Dependencies to place before the objects being linked to create a
13595
predeps=$lt_predeps_CXX
13597
# Dependencies to place after the objects being linked to create a
13599
postdeps=$lt_postdeps_CXX
13601
# The library search path used internally by the compiler when linking
13602
# a shared library.
13603
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13605
# Method to check whether dependent libraries are shared objects.
13606
deplibs_check_method=$lt_deplibs_check_method
13608
# Command to use when deplibs_check_method == file_magic.
13609
file_magic_cmd=$lt_file_magic_cmd
13611
# Flag that allows shared libraries with undefined symbols to be built.
13612
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13614
# Flag that forces no undefined symbols.
13615
no_undefined_flag=$lt_no_undefined_flag_CXX
13617
# Commands used to finish a libtool library installation in a directory.
13618
finish_cmds=$lt_finish_cmds
13620
# Same as above, but a single script fragment to be evaled but not shown.
13621
finish_eval=$lt_finish_eval
13623
# Take the output of nm and produce a listing of raw symbols and C names.
13624
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13626
# Transform the output of nm in a proper C declaration
13627
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13629
# Transform the output of nm in a C name address pair
13630
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13632
# This is the shared library runtime path variable.
13633
runpath_var=$runpath_var
13635
# This is the shared library path variable.
13636
shlibpath_var=$shlibpath_var
13638
# Is shlibpath searched before the hard-coded library search path?
13639
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13641
# How to hardcode a shared library path into an executable.
13642
hardcode_action=$hardcode_action_CXX
13644
# Whether we should hardcode library paths into libraries.
13645
hardcode_into_libs=$hardcode_into_libs
13647
# Flag to hardcode \$libdir into a binary during linking.
13648
# This must work even if \$libdir does not exist.
13649
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13651
# If ld is used when linking, flag to hardcode \$libdir into
13652
# a binary during linking. This must work even if \$libdir does
13654
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13656
# Whether we need a single -rpath flag with a separated argument.
13657
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13659
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13660
# resulting binary.
13661
hardcode_direct=$hardcode_direct_CXX
13663
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13664
# resulting binary.
13665
hardcode_minus_L=$hardcode_minus_L_CXX
13667
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13668
# the resulting binary.
13669
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13671
# Set to yes if building a shared library automatically hardcodes DIR into the library
13672
# and all subsequent libraries and executables linked against it.
13673
hardcode_automatic=$hardcode_automatic_CXX
13675
# Variables whose values should be saved in libtool wrapper scripts and
13676
# restored at relink time.
13677
variables_saved_for_relink="$variables_saved_for_relink"
13679
# Whether libtool must link a program against all its dependency libraries.
13680
link_all_deplibs=$link_all_deplibs_CXX
13682
# Compile-time system search path for libraries
13683
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13685
# Run-time system search path for libraries
13686
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13688
# Fix the shell variable \$srcfile for the compiler.
13689
fix_srcfile_path=$lt_fix_srcfile_path
13691
# Set to yes if exported symbols are required.
13692
always_export_symbols=$always_export_symbols_CXX
13694
# The commands to list exported symbols.
13695
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13697
# The commands to extract the exported symbol list from a shared archive.
13698
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13700
# Symbols that should not be listed in the preloaded symbols.
13701
exclude_expsyms=$lt_exclude_expsyms_CXX
13703
# Symbols that must always be exported.
13704
include_expsyms=$lt_include_expsyms_CXX
13706
# ### END LIBTOOL TAG CONFIG: $tagname
13712
# If there is no Makefile yet, we rely on a make rule to execute
13713
# `config.status --recheck' to rerun these tests and create the
13714
# libtool script then.
13715
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13716
if test -f "$ltmain_in"; then
13717
test -f Makefile && make "$ltmain"
13723
ac_cpp='$CPP $CPPFLAGS'
13724
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13725
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13726
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13732
with_gnu_ldcxx=$with_gnu_ld
13733
with_gnu_ld=$lt_save_with_gnu_ld
13734
lt_cv_path_LDCXX=$lt_cv_path_LD
13735
lt_cv_path_LD=$lt_save_path_LD
13736
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13737
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13745
if test -n "$F77" && test "X$F77" != "Xno"; then
13748
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13749
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13750
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13753
archive_cmds_need_lc_F77=no
13754
allow_undefined_flag_F77=
13755
always_export_symbols_F77=no
13756
archive_expsym_cmds_F77=
13757
export_dynamic_flag_spec_F77=
13758
hardcode_direct_F77=no
13759
hardcode_libdir_flag_spec_F77=
13760
hardcode_libdir_flag_spec_ld_F77=
13761
hardcode_libdir_separator_F77=
13762
hardcode_minus_L_F77=no
13763
hardcode_automatic_F77=no
13765
module_expsym_cmds_F77=
13766
link_all_deplibs_F77=unknown
13767
old_archive_cmds_F77=$old_archive_cmds
13768
no_undefined_flag_F77=
13769
whole_archive_flag_spec_F77=
13770
enable_shared_with_static_runtimes_F77=no
13772
# Source file extension for f77 test sources.
13775
# Object file extension for compiled f77 test sources.
13779
# Code to be used in simple compile tests
13780
lt_simple_compile_test_code="\
13786
# Code to be used in simple link tests
13787
lt_simple_link_test_code="\
13792
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13794
# If no C compiler was specified, use CC.
13797
# If no C compiler flags were specified, use CFLAGS.
13798
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13800
# Allow CC to be a program name with arguments.
13804
# save warnings/boilerplate of simple test code
13805
ac_outfile=conftest.$ac_objext
13806
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13807
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13808
_lt_compiler_boilerplate=`cat conftest.err`
13811
ac_outfile=conftest.$ac_objext
13812
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13813
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13814
_lt_linker_boilerplate=`cat conftest.err`
13818
# Allow CC to be a program name with arguments.
13823
for cc_temp in $compiler""; do
13825
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13826
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13831
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13834
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13835
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13836
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13837
echo "${ECHO_T}$can_build_shared" >&6; }
13839
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13840
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13841
test "$can_build_shared" = "no" && enable_shared=no
13843
# On AIX, shared libraries and static libraries use the same namespace, and
13844
# are all built from PIC.
13847
test "$enable_shared" = yes && enable_static=no
13848
if test -n "$RANLIB"; then
13849
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13850
postinstall_cmds='$RANLIB $lib'
13854
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13855
test "$enable_shared" = yes && enable_static=no
13859
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13860
echo "${ECHO_T}$enable_shared" >&6; }
13862
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13863
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13864
# Make sure either enable_shared or enable_static is yes.
13865
test "$enable_shared" = yes || enable_static=yes
13866
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13867
echo "${ECHO_T}$enable_static" >&6; }
13872
lt_prog_compiler_wl_F77=
13873
lt_prog_compiler_pic_F77=
13874
lt_prog_compiler_static_F77=
13876
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13877
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13879
if test "$GCC" = yes; then
13880
lt_prog_compiler_wl_F77='-Wl,'
13881
lt_prog_compiler_static_F77='-static'
13885
# All AIX code is PIC.
13886
if test "$host_cpu" = ia64; then
13887
# AIX 5 now supports IA64 processor
13888
lt_prog_compiler_static_F77='-Bstatic'
13893
# FIXME: we need at least 68020 code to build shared libraries, but
13894
# adding the `-m68020' flag to GCC prevents building anything better,
13896
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13899
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13900
# PIC is the default for these OSes.
13903
mingw* | cygwin* | pw32* | os2*)
13904
# This hack is so that the source file can tell whether it is being
13905
# built for inclusion in a dll (and should export symbols for example).
13906
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13907
# (--disable-auto-import) libraries
13908
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13911
darwin* | rhapsody*)
13912
# PIC is the default on this platform
13913
# Common symbols not allowed in MH_DYLIB files
13914
lt_prog_compiler_pic_F77='-fno-common'
13918
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13919
# Instead, we relocate shared libraries at runtime.
13923
# Just because we use GCC doesn't mean we suddenly get shared libraries
13924
# on systems that don't support them.
13925
lt_prog_compiler_can_build_shared_F77=no
13930
if test -d /usr/nec; then
13931
lt_prog_compiler_pic_F77=-Kconform_pic
13936
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13937
# not for PA HP-UX.
13943
lt_prog_compiler_pic_F77='-fPIC'
13949
lt_prog_compiler_pic_F77='-fPIC'
13953
# PORTME Check for flag to pass linker flags through the system compiler.
13956
lt_prog_compiler_wl_F77='-Wl,'
13957
if test "$host_cpu" = ia64; then
13958
# AIX 5 now supports IA64 processor
13959
lt_prog_compiler_static_F77='-Bstatic'
13961
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13965
# PIC is the default on this platform
13966
# Common symbols not allowed in MH_DYLIB files
13967
case $cc_basename in
13969
lt_prog_compiler_pic_F77='-qnocommon'
13970
lt_prog_compiler_wl_F77='-Wl,'
13975
mingw* | cygwin* | pw32* | os2*)
13976
# This hack is so that the source file can tell whether it is being
13977
# built for inclusion in a dll (and should export symbols for example).
13978
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13981
hpux9* | hpux10* | hpux11*)
13982
lt_prog_compiler_wl_F77='-Wl,'
13983
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13984
# not for PA HP-UX.
13990
lt_prog_compiler_pic_F77='+Z'
13993
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13994
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13997
irix5* | irix6* | nonstopux*)
13998
lt_prog_compiler_wl_F77='-Wl,'
13999
# PIC (with -KPIC) is the default.
14000
lt_prog_compiler_static_F77='-non_shared'
14004
lt_prog_compiler_pic_F77='-KPIC'
14005
lt_prog_compiler_static_F77='-Bstatic'
14008
linux* | k*bsd*-gnu)
14009
case $cc_basename in
14011
lt_prog_compiler_wl_F77='-Wl,'
14012
lt_prog_compiler_pic_F77='-KPIC'
14013
lt_prog_compiler_static_F77='-static'
14015
pgcc* | pgf77* | pgf90* | pgf95*)
14016
# Portland Group compilers (*not* the Pentium gcc compiler,
14017
# which looks to be a dead project)
14018
lt_prog_compiler_wl_F77='-Wl,'
14019
lt_prog_compiler_pic_F77='-fpic'
14020
lt_prog_compiler_static_F77='-Bstatic'
14023
lt_prog_compiler_wl_F77='-Wl,'
14024
# All Alpha code is PIC.
14025
lt_prog_compiler_static_F77='-non_shared'
14028
case `$CC -V 2>&1 | sed 5q` in
14031
lt_prog_compiler_pic_F77='-KPIC'
14032
lt_prog_compiler_static_F77='-Bstatic'
14033
lt_prog_compiler_wl_F77='-Wl,'
14036
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14037
lt_prog_compiler_pic_F77='-KPIC'
14038
lt_prog_compiler_static_F77='-Bstatic'
14039
lt_prog_compiler_wl_F77=''
14046
osf3* | osf4* | osf5*)
14047
lt_prog_compiler_wl_F77='-Wl,'
14048
# All OSF/1 code is PIC.
14049
lt_prog_compiler_static_F77='-non_shared'
14053
lt_prog_compiler_static_F77='-non_shared'
14057
lt_prog_compiler_pic_F77='-KPIC'
14058
lt_prog_compiler_static_F77='-Bstatic'
14059
case $cc_basename in
14060
f77* | f90* | f95*)
14061
lt_prog_compiler_wl_F77='-Qoption ld ';;
14063
lt_prog_compiler_wl_F77='-Wl,';;
14068
lt_prog_compiler_wl_F77='-Qoption ld '
14069
lt_prog_compiler_pic_F77='-PIC'
14070
lt_prog_compiler_static_F77='-Bstatic'
14073
sysv4 | sysv4.2uw2* | sysv4.3*)
14074
lt_prog_compiler_wl_F77='-Wl,'
14075
lt_prog_compiler_pic_F77='-KPIC'
14076
lt_prog_compiler_static_F77='-Bstatic'
14080
if test -d /usr/nec ;then
14081
lt_prog_compiler_pic_F77='-Kconform_pic'
14082
lt_prog_compiler_static_F77='-Bstatic'
14086
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14087
lt_prog_compiler_wl_F77='-Wl,'
14088
lt_prog_compiler_pic_F77='-KPIC'
14089
lt_prog_compiler_static_F77='-Bstatic'
14093
lt_prog_compiler_wl_F77='-Wl,'
14094
lt_prog_compiler_can_build_shared_F77=no
14098
lt_prog_compiler_pic_F77='-pic'
14099
lt_prog_compiler_static_F77='-Bstatic'
14103
lt_prog_compiler_can_build_shared_F77=no
14108
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14109
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14112
# Check to make sure the PIC flag actually works.
14114
if test -n "$lt_prog_compiler_pic_F77"; then
14116
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14117
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14118
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14119
echo $ECHO_N "(cached) $ECHO_C" >&6
14121
lt_prog_compiler_pic_works_F77=no
14122
ac_outfile=conftest.$ac_objext
14123
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14124
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14125
# Insert the option either (1) after the last *FLAGS variable, or
14126
# (2) before a word containing "conftest.", or (3) at the end.
14127
# Note that $ac_compile itself does not contain backslashes and begins
14128
# with a dollar sign (not a hyphen), so the echo should work correctly.
14129
# The option is referenced via a variable to avoid confusing sed.
14130
lt_compile=`echo "$ac_compile" | $SED \
14131
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14132
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14133
-e 's:$: $lt_compiler_flag:'`
14134
(eval echo "\"\$as_me:14134: $lt_compile\"" >&5)
14135
(eval "$lt_compile" 2>conftest.err)
14137
cat conftest.err >&5
14138
echo "$as_me:14138: \$? = $ac_status" >&5
14139
if (exit $ac_status) && test -s "$ac_outfile"; then
14140
# The compiler can only warn and ignore the option if not recognized
14141
# So say no if there are warnings other than the usual output.
14142
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14143
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14144
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14145
lt_prog_compiler_pic_works_F77=yes
14151
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14152
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14154
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14155
case $lt_prog_compiler_pic_F77 in
14157
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14160
lt_prog_compiler_pic_F77=
14161
lt_prog_compiler_can_build_shared_F77=no
14166
# For platforms which do not support PIC, -DPIC is meaningless:
14168
lt_prog_compiler_pic_F77=
14171
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14176
# Check to make sure the static flag actually works.
14178
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14179
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14180
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14181
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14182
echo $ECHO_N "(cached) $ECHO_C" >&6
14184
lt_prog_compiler_static_works_F77=no
14185
save_LDFLAGS="$LDFLAGS"
14186
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14187
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14188
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14189
# The linker can only warn and ignore the option if not recognized
14190
# So say no if there are warnings
14191
if test -s conftest.err; then
14192
# Append any errors to the config.log.
14193
cat conftest.err 1>&5
14194
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14195
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14196
if diff conftest.exp conftest.er2 >/dev/null; then
14197
lt_prog_compiler_static_works_F77=yes
14200
lt_prog_compiler_static_works_F77=yes
14204
LDFLAGS="$save_LDFLAGS"
14207
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14208
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14210
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14213
lt_prog_compiler_static_F77=
14217
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14218
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14219
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14220
echo $ECHO_N "(cached) $ECHO_C" >&6
14222
lt_cv_prog_compiler_c_o_F77=no
14223
$rm -r conftest 2>/dev/null
14227
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14229
lt_compiler_flag="-o out/conftest2.$ac_objext"
14230
# Insert the option either (1) after the last *FLAGS variable, or
14231
# (2) before a word containing "conftest.", or (3) at the end.
14232
# Note that $ac_compile itself does not contain backslashes and begins
14233
# with a dollar sign (not a hyphen), so the echo should work correctly.
14234
lt_compile=`echo "$ac_compile" | $SED \
14235
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14236
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14237
-e 's:$: $lt_compiler_flag:'`
14238
(eval echo "\"\$as_me:14238: $lt_compile\"" >&5)
14239
(eval "$lt_compile" 2>out/conftest.err)
14241
cat out/conftest.err >&5
14242
echo "$as_me:14242: \$? = $ac_status" >&5
14243
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14245
# The compiler can only warn and ignore the option if not recognized
14246
# So say no if there are warnings
14247
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14248
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14249
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14250
lt_cv_prog_compiler_c_o_F77=yes
14255
# SGI C++ compiler will create directory out/ii_files/ for
14256
# template instantiation
14257
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14258
$rm out/* && rmdir out
14264
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14265
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14268
hard_links="nottested"
14269
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14270
# do not overwrite the value of need_locks provided by the user
14271
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14272
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14275
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14277
ln conftest.a conftest.b 2>&5 || hard_links=no
14278
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14279
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14280
echo "${ECHO_T}$hard_links" >&6; }
14281
if test "$hard_links" = no; then
14282
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14283
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14290
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14291
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14294
allow_undefined_flag_F77=
14295
enable_shared_with_static_runtimes_F77=no
14297
archive_expsym_cmds_F77=
14298
old_archive_From_new_cmds_F77=
14299
old_archive_from_expsyms_cmds_F77=
14300
export_dynamic_flag_spec_F77=
14301
whole_archive_flag_spec_F77=
14302
thread_safe_flag_spec_F77=
14303
hardcode_libdir_flag_spec_F77=
14304
hardcode_libdir_flag_spec_ld_F77=
14305
hardcode_libdir_separator_F77=
14306
hardcode_direct_F77=no
14307
hardcode_minus_L_F77=no
14308
hardcode_shlibpath_var_F77=unsupported
14309
link_all_deplibs_F77=unknown
14310
hardcode_automatic_F77=no
14312
module_expsym_cmds_F77=
14313
always_export_symbols_F77=no
14314
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14315
# include_expsyms should be a list of space-separated symbols to be *always*
14316
# included in the symbol list
14317
include_expsyms_F77=
14318
# exclude_expsyms can be an extended regexp of symbols to exclude
14319
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14320
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14321
# as well as any symbol that contains `d'.
14322
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14323
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14324
# platforms (ab)use it in PIC code, but their linkers get confused if
14325
# the symbol is explicitly referenced. Since portable code cannot
14326
# rely on this symbol name, it's probably fine to never include it in
14327
# preloaded symbol tables.
14328
extract_expsyms_cmds=
14329
# Just being paranoid about ensuring that cc_basename is set.
14330
for cc_temp in $compiler""; do
14332
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14333
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14338
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14341
cygwin* | mingw* | pw32*)
14342
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14343
# When not using gcc, we currently assume that we are using
14344
# Microsoft Visual C++.
14345
if test "$GCC" != yes; then
14350
# we just hope/assume this is gcc and not c89 (= MSVC++)
14359
if test "$with_gnu_ld" = yes; then
14360
# If archive_cmds runs LD, not CC, wlarc should be empty
14363
# Set some defaults for GNU ld with shared library support. These
14364
# are reset later if shared libraries are not supported. Putting them
14365
# here allows them to be overridden if necessary.
14366
runpath_var=LD_RUN_PATH
14367
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14368
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14369
# ancient GNU ld didn't support --whole-archive et. al.
14370
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14371
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14373
whole_archive_flag_spec_F77=
14375
supports_anon_versioning=no
14376
case `$LD -v 2>/dev/null` in
14377
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14378
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14379
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14380
*\ 2.11.*) ;; # other 2.11 versions
14381
*) supports_anon_versioning=yes ;;
14384
# See if GNU ld supports shared libraries.
14386
aix3* | aix4* | aix5*)
14387
# On AIX/PPC, the GNU linker is very broken
14388
if test "$host_cpu" != ia64; then
14392
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14393
*** to be unable to reliably create shared libraries on AIX.
14394
*** Therefore, libtool is disabling shared libraries support. If you
14395
*** really care for shared libraries, you may want to modify your PATH
14396
*** so that a non-GNU linker is found, and then restart.
14403
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)'
14404
hardcode_libdir_flag_spec_F77='-L$libdir'
14405
hardcode_minus_L_F77=yes
14407
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14408
# that the semantics of dynamic libraries on AmigaOS, at least up
14409
# to version 4, is to share data among multiple programs linked
14410
# with the same dynamic library. Since this doesn't match the
14411
# behavior of shared libraries on other platforms, we can't use
14417
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14418
allow_undefined_flag_F77=unsupported
14419
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14420
# support --undefined. This deserves some investigation. FIXME
14421
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14427
cygwin* | mingw* | pw32*)
14428
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14429
# as there is no search path for DLLs.
14430
hardcode_libdir_flag_spec_F77='-L$libdir'
14431
allow_undefined_flag_F77=unsupported
14432
always_export_symbols_F77=no
14433
enable_shared_with_static_runtimes_F77=yes
14434
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14436
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14437
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14438
# If the export-symbols file already is a .def file (1st line
14439
# is EXPORTS), use it as is; otherwise, prepend...
14440
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14441
cp $export_symbols $output_objdir/$soname.def;
14443
echo EXPORTS > $output_objdir/$soname.def;
14444
cat $export_symbols >> $output_objdir/$soname.def;
14446
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14453
hardcode_direct_F77=no
14454
hardcode_shlibpath_var_F77=no
14455
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14456
export_dynamic_flag_spec_F77='${wl}-E'
14457
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14458
# Instead, shared libraries are loaded at an image base (0x10000000 by
14459
# default) and relocated if they conflict, which is a slow very memory
14460
# consuming and fragmenting process. To avoid this, we pick a random,
14461
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14462
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14463
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'
14464
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'
14467
gnu* | linux* | k*bsd*-gnu)
14468
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14470
case $cc_basename,$host_cpu in
14471
pgcc*) # Portland Group C compiler
14472
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14473
tmp_addflag=' $pic_flag'
14475
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14476
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'
14477
tmp_addflag=' $pic_flag -Mnomain' ;;
14478
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14479
tmp_addflag=' -i_dynamic' ;;
14480
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14481
tmp_addflag=' -i_dynamic -nofor_main' ;;
14482
ifc* | ifort*) # Intel Fortran compiler
14483
tmp_addflag=' -nofor_main' ;;
14485
case `$CC -V 2>&1 | sed 5q` in
14486
*Sun\ C*) # Sun C 5.9
14487
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'
14488
tmp_sharedflag='-G' ;;
14489
*Sun\ F*) # Sun Fortran 8.3
14490
tmp_sharedflag='-G' ;;
14492
tmp_sharedflag='-shared' ;;
14494
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14496
if test $supports_anon_versioning = yes; then
14497
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14498
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14499
$echo "local: *; };" >> $output_objdir/$libname.ver~
14500
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14508
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14509
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14512
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14513
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14518
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14522
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14523
*** create shared libraries on Solaris systems. Therefore, libtool
14524
*** is disabling shared libraries support. We urge you to upgrade GNU
14525
*** binutils to release 2.9.1 or newer. Another option is to modify
14526
*** your PATH or compiler configuration so that the native linker is
14527
*** used, and then restart.
14530
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14531
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14532
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14538
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14539
case `$LD -v 2>&1` in
14540
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14544
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14545
*** reliably create shared libraries on SCO systems. Therefore, libtool
14546
*** is disabling shared libraries support. We urge you to upgrade GNU
14547
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14548
*** your PATH or compiler configuration so that the native linker is
14549
*** used, and then restart.
14554
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14555
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14556
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14557
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14566
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14568
hardcode_direct_F77=yes
14569
hardcode_shlibpath_var_F77=no
14573
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14574
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14575
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14582
if test "$ld_shlibs_F77" = no; then
14584
hardcode_libdir_flag_spec_F77=
14585
export_dynamic_flag_spec_F77=
14586
whole_archive_flag_spec_F77=
14589
# PORTME fill in a description of your system's linker (not GNU ld)
14592
allow_undefined_flag_F77=unsupported
14593
always_export_symbols_F77=yes
14594
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'
14595
# Note: this linker hardcodes the directories in LIBPATH if there
14596
# are no directories specified by -L.
14597
hardcode_minus_L_F77=yes
14598
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14599
# Neither direct hardcoding nor static linking is supported with a
14601
hardcode_direct_F77=unsupported
14606
if test "$host_cpu" = ia64; then
14607
# On IA64, the linker does run time linking by default, so we don't
14608
# have to do anything special.
14609
aix_use_runtimelinking=no
14610
exp_sym_flag='-Bexport'
14613
# If we're using GNU nm, then we don't want the "-C" option.
14614
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14615
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14616
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'
14618
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'
14620
aix_use_runtimelinking=no
14622
# Test if we are trying to use run time linking or normal
14623
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14624
# need to do runtime linking.
14625
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14626
for ld_flag in $LDFLAGS; do
14627
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14628
aix_use_runtimelinking=yes
14635
exp_sym_flag='-bexport'
14636
no_entry_flag='-bnoentry'
14639
# When large executables or shared objects are built, AIX ld can
14640
# have problems creating the table of contents. If linking a library
14641
# or program results in "error TOC overflow" add -mminimal-toc to
14642
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14643
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14645
archive_cmds_F77=''
14646
hardcode_direct_F77=yes
14647
hardcode_libdir_separator_F77=':'
14648
link_all_deplibs_F77=yes
14650
if test "$GCC" = yes; then
14651
case $host_os in aix4.[012]|aix4.[012].*)
14652
# We only want to do this on AIX 4.2 and lower, the check
14653
# below for broken collect2 doesn't work under 4.3+
14654
collect2name=`${CC} -print-prog-name=collect2`
14655
if test -f "$collect2name" && \
14656
strings "$collect2name" | grep resolve_lib_name >/dev/null
14658
# We have reworked collect2
14661
# We have old collect2
14662
hardcode_direct_F77=unsupported
14663
# It fails to find uninstalled libraries when the uninstalled
14664
# path is not listed in the libpath. Setting hardcode_minus_L
14665
# to unsupported forces relinking
14666
hardcode_minus_L_F77=yes
14667
hardcode_libdir_flag_spec_F77='-L$libdir'
14668
hardcode_libdir_separator_F77=
14672
shared_flag='-shared'
14673
if test "$aix_use_runtimelinking" = yes; then
14674
shared_flag="$shared_flag "'${wl}-G'
14678
if test "$host_cpu" = ia64; then
14679
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14680
# chokes on -Wl,-G. The following line is correct:
14683
if test "$aix_use_runtimelinking" = yes; then
14684
shared_flag='${wl}-G'
14686
shared_flag='${wl}-bM:SRE'
14691
# It seems that -bexpall does not export symbols beginning with
14692
# underscore (_), so it is better to generate a list of symbols to export.
14693
always_export_symbols_F77=yes
14694
if test "$aix_use_runtimelinking" = yes; then
14695
# Warning - without using the other runtime loading flags (-brtl),
14696
# -berok will link without error, but may produce a broken library.
14697
allow_undefined_flag_F77='-berok'
14698
# Determine the default libpath from the value encoded in an empty executable.
14699
cat >conftest.$ac_ext <<_ACEOF
14704
rm -f conftest.$ac_objext conftest$ac_exeext
14705
if { (ac_try="$ac_link"
14706
case "(($ac_try" in
14707
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708
*) ac_try_echo=$ac_try;;
14710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711
(eval "$ac_link") 2>conftest.er1
14713
grep -v '^ *+' conftest.er1 >conftest.err
14715
cat conftest.err >&5
14716
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717
(exit $ac_status); } && {
14718
test -z "$ac_f77_werror_flag" ||
14719
test ! -s conftest.err
14720
} && test -s conftest$ac_exeext &&
14721
$as_test_x conftest$ac_exeext; then
14723
lt_aix_libpath_sed='
14724
/Import File Strings/,/^$/ {
14730
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14731
# Check for a 64-bit object if we didn't find anything.
14732
if test -z "$aix_libpath"; then
14733
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14736
echo "$as_me: failed program was:" >&5
14737
sed 's/^/| /' conftest.$ac_ext >&5
14742
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14743
conftest$ac_exeext conftest.$ac_ext
14744
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14746
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14747
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"
14749
if test "$host_cpu" = ia64; then
14750
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14751
allow_undefined_flag_F77="-z nodefs"
14752
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"
14754
# Determine the default libpath from the value encoded in an empty executable.
14755
cat >conftest.$ac_ext <<_ACEOF
14760
rm -f conftest.$ac_objext conftest$ac_exeext
14761
if { (ac_try="$ac_link"
14762
case "(($ac_try" in
14763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764
*) ac_try_echo=$ac_try;;
14766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767
(eval "$ac_link") 2>conftest.er1
14769
grep -v '^ *+' conftest.er1 >conftest.err
14771
cat conftest.err >&5
14772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773
(exit $ac_status); } && {
14774
test -z "$ac_f77_werror_flag" ||
14775
test ! -s conftest.err
14776
} && test -s conftest$ac_exeext &&
14777
$as_test_x conftest$ac_exeext; then
14779
lt_aix_libpath_sed='
14780
/Import File Strings/,/^$/ {
14786
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14787
# Check for a 64-bit object if we didn't find anything.
14788
if test -z "$aix_libpath"; then
14789
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14792
echo "$as_me: failed program was:" >&5
14793
sed 's/^/| /' conftest.$ac_ext >&5
14798
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14799
conftest$ac_exeext conftest.$ac_ext
14800
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14802
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14803
# Warning - without using the other run time loading flags,
14804
# -berok will link without error, but may produce a broken library.
14805
no_undefined_flag_F77=' ${wl}-bernotok'
14806
allow_undefined_flag_F77=' ${wl}-berok'
14807
# Exported symbols can be pulled into shared objects from archives
14808
whole_archive_flag_spec_F77='$convenience'
14809
archive_cmds_need_lc_F77=yes
14810
# This is similar to how AIX traditionally builds its shared libraries.
14811
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'
14817
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)'
14818
hardcode_libdir_flag_spec_F77='-L$libdir'
14819
hardcode_minus_L_F77=yes
14820
# see comment about different semantics on the GNU ld section
14825
export_dynamic_flag_spec_F77=-rdynamic
14828
cygwin* | mingw* | pw32*)
14829
# When not using gcc, we currently assume that we are using
14830
# Microsoft Visual C++.
14831
# hardcode_libdir_flag_spec is actually meaningless, as there is
14832
# no search path for DLLs.
14833
hardcode_libdir_flag_spec_F77=' '
14834
allow_undefined_flag_F77=unsupported
14835
# Tell ltmain to make .lib files, not .a files.
14837
# Tell ltmain to make .dll files, not .so files.
14839
# FIXME: Setting linknames here is a bad hack.
14840
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14841
# The linker will automatically build a .lib file if we build a DLL.
14842
old_archive_From_new_cmds_F77='true'
14843
# FIXME: Should let the user specify the lib program.
14844
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14845
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14846
enable_shared_with_static_runtimes_F77=yes
14849
darwin* | rhapsody*)
14851
rhapsody* | darwin1.[012])
14852
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14855
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14856
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14858
case ${MACOSX_DEPLOYMENT_TARGET} in
14860
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14863
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14869
archive_cmds_need_lc_F77=no
14870
hardcode_direct_F77=no
14871
hardcode_automatic_F77=yes
14872
hardcode_shlibpath_var_F77=unsupported
14873
whole_archive_flag_spec_F77=''
14874
link_all_deplibs_F77=yes
14875
if test "$GCC" = yes ; then
14876
output_verbose_link_cmd='echo'
14877
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14878
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14879
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14880
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}'
14881
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}'
14883
case $cc_basename in
14885
output_verbose_link_cmd='echo'
14886
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14887
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14888
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14889
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}'
14890
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}'
14900
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14901
hardcode_libdir_flag_spec_F77='-L$libdir'
14902
hardcode_shlibpath_var_F77=no
14909
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14910
# support. Future versions do this automatically, but an explicit c++rt0.o
14911
# does not break anything, and helps significantly (at the cost of a little
14914
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14915
hardcode_libdir_flag_spec_F77='-R$libdir'
14916
hardcode_direct_F77=yes
14917
hardcode_shlibpath_var_F77=no
14920
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14922
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14923
hardcode_direct_F77=yes
14924
hardcode_minus_L_F77=yes
14925
hardcode_shlibpath_var_F77=no
14928
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14929
freebsd* | dragonfly*)
14930
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14931
hardcode_libdir_flag_spec_F77='-R$libdir'
14932
hardcode_direct_F77=yes
14933
hardcode_shlibpath_var_F77=no
14937
if test "$GCC" = yes; then
14938
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'
14940
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'
14942
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14943
hardcode_libdir_separator_F77=:
14944
hardcode_direct_F77=yes
14946
# hardcode_minus_L: Not really in the search PATH,
14947
# but as the default location of the library.
14948
hardcode_minus_L_F77=yes
14949
export_dynamic_flag_spec_F77='${wl}-E'
14953
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14954
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14956
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14958
if test "$with_gnu_ld" = no; then
14959
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14960
hardcode_libdir_separator_F77=:
14962
hardcode_direct_F77=yes
14963
export_dynamic_flag_spec_F77='${wl}-E'
14965
# hardcode_minus_L: Not really in the search PATH,
14966
# but as the default location of the library.
14967
hardcode_minus_L_F77=yes
14972
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14975
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14978
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14981
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14987
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14990
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14993
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14997
if test "$with_gnu_ld" = no; then
14998
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14999
hardcode_libdir_separator_F77=:
15003
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15004
hardcode_direct_F77=no
15005
hardcode_shlibpath_var_F77=no
15008
hardcode_direct_F77=yes
15009
export_dynamic_flag_spec_F77='${wl}-E'
15011
# hardcode_minus_L: Not really in the search PATH,
15012
# but as the default location of the library.
15013
hardcode_minus_L_F77=yes
15019
irix5* | irix6* | nonstopux*)
15020
if test "$GCC" = yes; then
15021
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'
15023
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'
15024
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15026
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15027
hardcode_libdir_separator_F77=:
15028
link_all_deplibs_F77=yes
15032
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15033
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15035
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15037
hardcode_libdir_flag_spec_F77='-R$libdir'
15038
hardcode_direct_F77=yes
15039
hardcode_shlibpath_var_F77=no
15043
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15044
hardcode_direct_F77=yes
15045
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15046
hardcode_libdir_separator_F77=:
15047
hardcode_shlibpath_var_F77=no
15051
if test -f /usr/libexec/ld.so; then
15052
hardcode_direct_F77=yes
15053
hardcode_shlibpath_var_F77=no
15054
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15055
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15056
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15057
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15058
export_dynamic_flag_spec_F77='${wl}-E'
15061
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15062
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15063
hardcode_libdir_flag_spec_F77='-R$libdir'
15066
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15067
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15077
hardcode_libdir_flag_spec_F77='-L$libdir'
15078
hardcode_minus_L_F77=yes
15079
allow_undefined_flag_F77=unsupported
15080
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'
15081
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15085
if test "$GCC" = yes; then
15086
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15087
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'
15089
allow_undefined_flag_F77=' -expect_unresolved \*'
15090
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'
15092
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15093
hardcode_libdir_separator_F77=:
15096
osf4* | osf5*) # as osf3* with the addition of -msym flag
15097
if test "$GCC" = yes; then
15098
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15099
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'
15100
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15102
allow_undefined_flag_F77=' -expect_unresolved \*'
15103
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'
15104
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~
15105
$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'
15107
# Both c and cxx compiler support -rpath directly
15108
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15110
hardcode_libdir_separator_F77=:
15114
no_undefined_flag_F77=' -z text'
15115
if test "$GCC" = yes; then
15117
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15118
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15119
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15122
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15124
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15126
hardcode_libdir_flag_spec_F77='-R$libdir'
15127
hardcode_shlibpath_var_F77=no
15129
solaris2.[0-5] | solaris2.[0-5].*) ;;
15131
# The compiler driver will combine and reorder linker options,
15132
# but understands `-z linker_flag'. GCC discards it without `$wl',
15133
# but is careful enough not to reorder.
15134
# Supported since Solaris 2.6 (maybe 2.5.1?)
15135
if test "$GCC" = yes; then
15136
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15138
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15142
link_all_deplibs_F77=yes
15146
if test "x$host_vendor" = xsequent; then
15147
# Use $CC to link under sequent, because it throws in some extra .o
15148
# files that make .init and .fini sections work.
15149
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15151
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15153
hardcode_libdir_flag_spec_F77='-L$libdir'
15154
hardcode_direct_F77=yes
15155
hardcode_minus_L_F77=yes
15156
hardcode_shlibpath_var_F77=no
15160
case $host_vendor in
15162
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163
hardcode_direct_F77=yes # is this really true???
15166
## LD is ld it makes a PLAMLIB
15167
## CC just makes a GrossModule.
15168
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15169
reload_cmds_F77='$CC -r -o $output$reload_objs'
15170
hardcode_direct_F77=no
15173
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15174
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15177
runpath_var='LD_RUN_PATH'
15178
hardcode_shlibpath_var_F77=no
15182
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15183
hardcode_shlibpath_var_F77=no
15184
export_dynamic_flag_spec_F77='-Bexport'
15188
if test -d /usr/nec; then
15189
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15190
hardcode_shlibpath_var_F77=no
15191
runpath_var=LD_RUN_PATH
15192
hardcode_runpath_var=yes
15197
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15198
no_undefined_flag_F77='${wl}-z,text'
15199
archive_cmds_need_lc_F77=no
15200
hardcode_shlibpath_var_F77=no
15201
runpath_var='LD_RUN_PATH'
15203
if test "$GCC" = yes; then
15204
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15205
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15207
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15208
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15212
sysv5* | sco3.2v5* | sco5v6*)
15213
# Note: We can NOT use -z defs as we might desire, because we do not
15214
# link with -lc, and that would cause any symbols used from libc to
15215
# always be unresolved, which means just about no library would
15216
# ever link correctly. If we're not using GNU ld we use -z text
15217
# though, which does catch some bad symbols but isn't as heavy-handed
15219
no_undefined_flag_F77='${wl}-z,text'
15220
allow_undefined_flag_F77='${wl}-z,nodefs'
15221
archive_cmds_need_lc_F77=no
15222
hardcode_shlibpath_var_F77=no
15223
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15224
hardcode_libdir_separator_F77=':'
15225
link_all_deplibs_F77=yes
15226
export_dynamic_flag_spec_F77='${wl}-Bexport'
15227
runpath_var='LD_RUN_PATH'
15229
if test "$GCC" = yes; then
15230
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15231
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15233
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15234
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15239
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15240
hardcode_libdir_flag_spec_F77='-L$libdir'
15241
hardcode_shlibpath_var_F77=no
15250
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15251
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15252
test "$ld_shlibs_F77" = no && can_build_shared=no
15255
# Do we need to explicitly link libc?
15257
case "x$archive_cmds_need_lc_F77" in
15259
# Assume -lc should be added
15260
archive_cmds_need_lc_F77=yes
15262
if test "$enable_shared" = yes && test "$GCC" = yes; then
15263
case $archive_cmds_F77 in
15265
# FIXME: we may have to deal with multi-command sequences.
15268
# Test whether the compiler implicitly links with -lc since on some
15269
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15270
# to ld, don't add -lc before -lgcc.
15271
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15272
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15274
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15276
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15277
(eval $ac_compile) 2>&5
15279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280
(exit $ac_status); } 2>conftest.err; then
15283
libobjs=conftest.$ac_objext
15285
wl=$lt_prog_compiler_wl_F77
15286
pic_flag=$lt_prog_compiler_pic_F77
15292
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15293
allow_undefined_flag_F77=
15294
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15295
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298
(exit $ac_status); }
15300
archive_cmds_need_lc_F77=no
15302
archive_cmds_need_lc_F77=yes
15304
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15306
cat conftest.err 1>&5
15309
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15310
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15317
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15318
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15319
library_names_spec=
15320
libname_spec='lib$name'
15324
postuninstall_cmds=
15328
shlibpath_overrides_runpath=unknown
15330
dynamic_linker="$host_os ld.so"
15331
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15333
need_lib_prefix=unknown
15334
hardcode_into_libs=no
15336
# when you set need_version to no, make sure it does not cause -set_version
15337
# flags to be left without arguments
15338
need_version=unknown
15343
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15344
shlibpath_var=LIBPATH
15346
# AIX 3 has no versioning support, so we append a major version to the name.
15347
soname_spec='${libname}${release}${shared_ext}$major'
15354
hardcode_into_libs=yes
15355
if test "$host_cpu" = ia64; then
15356
# AIX 5 supports IA64
15357
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15358
shlibpath_var=LD_LIBRARY_PATH
15360
# With GCC up to 2.95.x, collect2 would create an import file
15361
# for dependence libraries. The import file would start with
15362
# the line `#! .'. This would cause the generated library to
15363
# depend on `.', always an invalid library. This was fixed in
15364
# development snapshots of GCC prior to 3.0.
15366
aix4 | aix4.[01] | aix4.[01].*)
15367
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15369
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15372
can_build_shared=no
15376
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15377
# soname into executable. Probably we can add versioning support to
15378
# collect2, so additional links can be useful in future.
15379
if test "$aix_use_runtimelinking" = yes; then
15380
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15381
# instead of lib<name>.a to let people know that these are not
15382
# typical AIX shared libraries.
15383
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385
# We preserve .a as extension for shared libraries through AIX4.2
15386
# and later when we are not doing run time linking.
15387
library_names_spec='${libname}${release}.a $libname.a'
15388
soname_spec='${libname}${release}${shared_ext}$major'
15390
shlibpath_var=LIBPATH
15395
library_names_spec='$libname.ixlibrary $libname.a'
15396
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15397
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'
15401
library_names_spec='${libname}${shared_ext}'
15402
dynamic_linker="$host_os ld.so"
15403
shlibpath_var=LIBRARY_PATH
15409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15410
soname_spec='${libname}${release}${shared_ext}$major'
15411
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15412
shlibpath_var=LD_LIBRARY_PATH
15413
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15414
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15415
# the default ld.so.conf also contains /usr/contrib/lib and
15416
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15417
# libtool to hard-code these into programs
15420
cygwin* | mingw* | pw32*)
15421
version_type=windows
15426
case $GCC,$host_os in
15427
yes,cygwin* | yes,mingw* | yes,pw32*)
15428
library_names_spec='$libname.dll.a'
15429
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15430
postinstall_cmds='base_file=`basename \${file}`~
15431
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15432
dldir=$destdir/`dirname \$dlpath`~
15433
test -d \$dldir || mkdir -p \$dldir~
15434
$install_prog $dir/$dlname \$dldir/$dlname~
15435
chmod a+x \$dldir/$dlname'
15436
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15437
dlpath=$dir/\$dldll~
15439
shlibpath_overrides_runpath=yes
15443
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15444
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15445
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15448
# MinGW DLLs use traditional 'lib' prefix
15449
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15450
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15451
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15452
# It is most probably a Windows format PATH printed by
15453
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15454
# path with ; separators, and with drive letters. We can handle the
15455
# drive letters (cygwin fileutils understands them), so leave them,
15456
# especially as we might pass files found there to a mingw objdump,
15457
# which wouldn't understand a cygwinified path. Ahh.
15458
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15460
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15464
# pw32 DLLs use 'pw' prefix rather than 'lib'
15465
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15471
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15474
dynamic_linker='Win32 ld.exe'
15475
# FIXME: first we should search . and the directory the executable is in
15479
darwin* | rhapsody*)
15480
dynamic_linker="$host_os dyld"
15481
version_type=darwin
15484
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15485
soname_spec='${libname}${release}${major}$shared_ext'
15486
shlibpath_overrides_runpath=yes
15487
shlibpath_var=DYLD_LIBRARY_PATH
15488
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15490
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15498
soname_spec='${libname}${release}${shared_ext}$major'
15499
shlibpath_var=LD_LIBRARY_PATH
15506
freebsd* | dragonfly*)
15507
# DragonFly does not have aout. When/if they implement a new
15508
# versioning mechanism, adjust this.
15509
if test -x /usr/bin/objformat; then
15510
objformat=`/usr/bin/objformat`
15513
freebsd[123]*) objformat=aout ;;
15514
*) objformat=elf ;;
15517
version_type=freebsd-$objformat
15518
case $version_type in
15520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15525
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15529
shlibpath_var=LD_LIBRARY_PATH
15532
shlibpath_overrides_runpath=yes
15534
freebsd3.[01]* | freebsdelf3.[01]*)
15535
shlibpath_overrides_runpath=yes
15536
hardcode_into_libs=yes
15538
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15539
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15540
shlibpath_overrides_runpath=no
15541
hardcode_into_libs=yes
15543
*) # from 4.6 on, and DragonFly
15544
shlibpath_overrides_runpath=yes
15545
hardcode_into_libs=yes
15554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15555
soname_spec='${libname}${release}${shared_ext}$major'
15556
shlibpath_var=LD_LIBRARY_PATH
15557
hardcode_into_libs=yes
15560
hpux9* | hpux10* | hpux11*)
15561
# Give a soname corresponding to the major version so that dld.sl refuses to
15562
# link against other versions.
15569
hardcode_into_libs=yes
15570
dynamic_linker="$host_os dld.so"
15571
shlibpath_var=LD_LIBRARY_PATH
15572
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15573
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574
soname_spec='${libname}${release}${shared_ext}$major'
15575
if test "X$HPUX_IA64_MODE" = X32; then
15576
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15578
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15580
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15584
hardcode_into_libs=yes
15585
dynamic_linker="$host_os dld.sl"
15586
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15587
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15588
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589
soname_spec='${libname}${release}${shared_ext}$major'
15590
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15591
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15595
dynamic_linker="$host_os dld.sl"
15596
shlibpath_var=SHLIB_PATH
15597
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15599
soname_spec='${libname}${release}${shared_ext}$major'
15602
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15603
postinstall_cmds='chmod 555 $lib'
15610
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15611
soname_spec='${libname}${release}${shared_ext}$major'
15612
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15613
shlibpath_var=LD_LIBRARY_PATH
15614
shlibpath_overrides_runpath=no
15615
hardcode_into_libs=yes
15618
irix5* | irix6* | nonstopux*)
15620
nonstopux*) version_type=nonstopux ;;
15622
if test "$lt_cv_prog_gnu_ld" = yes; then
15630
soname_spec='${libname}${release}${shared_ext}$major'
15631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15633
irix5* | nonstopux*)
15634
libsuff= shlibsuff=
15637
case $LD in # libtool.m4 will add one of these switches to LD
15638
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15639
libsuff= shlibsuff= libmagic=32-bit;;
15640
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15641
libsuff=32 shlibsuff=N32 libmagic=N32;;
15642
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15643
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15644
*) libsuff= shlibsuff= libmagic=never-match;;
15648
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15649
shlibpath_overrides_runpath=no
15650
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15651
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15652
hardcode_into_libs=yes
15655
# No shared lib support for Linux oldld, aout, or coff.
15656
linux*oldld* | linux*aout* | linux*coff*)
15660
# This must be Linux ELF.
15661
linux* | k*bsd*-gnu)
15665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666
soname_spec='${libname}${release}${shared_ext}$major'
15667
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15668
shlibpath_var=LD_LIBRARY_PATH
15669
shlibpath_overrides_runpath=no
15670
# This implies no fast_install, which is unacceptable.
15671
# Some rework will be needed to allow for fast_install
15672
# before this can be enabled.
15673
hardcode_into_libs=yes
15674
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15675
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15677
# Append ld.so.conf contents to the search path
15678
if test -f /etc/ld.so.conf; then
15679
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' ' '`
15680
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15683
# We used to test for /lib/ld.so.1 and disable shared libraries on
15684
# powerpc, because MkLinux only supported shared libraries with the
15685
# GNU dynamic linker. Since this was broken with cross compilers,
15686
# most powerpc-linux boxes support dynamic linking these days and
15687
# people can always --disable-shared, the test was removed, and we
15688
# assume the GNU/Linux dynamic linker is in use.
15689
dynamic_linker='GNU/Linux ld.so'
15696
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15698
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15699
dynamic_linker='NetBSD (a.out) ld.so'
15701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15702
soname_spec='${libname}${release}${shared_ext}$major'
15703
dynamic_linker='NetBSD ld.elf_so'
15705
shlibpath_var=LD_LIBRARY_PATH
15706
shlibpath_overrides_runpath=yes
15707
hardcode_into_libs=yes
15712
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713
shlibpath_var=LD_LIBRARY_PATH
15714
shlibpath_overrides_runpath=yes
15721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722
soname_spec='${libname}${release}${shared_ext}$major'
15723
shlibpath_var=LD_LIBRARY_PATH
15724
shlibpath_overrides_runpath=yes
15729
sys_lib_dlsearch_path_spec="/usr/lib"
15731
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15733
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15734
*) need_version=no ;;
15736
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15737
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15738
shlibpath_var=LD_LIBRARY_PATH
15739
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15741
openbsd2.[89] | openbsd2.[89].*)
15742
shlibpath_overrides_runpath=no
15745
shlibpath_overrides_runpath=yes
15749
shlibpath_overrides_runpath=yes
15754
libname_spec='$name'
15757
library_names_spec='$libname${shared_ext} $libname.a'
15758
dynamic_linker='OS/2 ld.exe'
15759
shlibpath_var=LIBPATH
15762
osf3* | osf4* | osf5*)
15766
soname_spec='${libname}${release}${shared_ext}$major'
15767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15768
shlibpath_var=LD_LIBRARY_PATH
15769
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15770
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782
soname_spec='${libname}${release}${shared_ext}$major'
15783
shlibpath_var=LD_LIBRARY_PATH
15784
shlibpath_overrides_runpath=yes
15785
hardcode_into_libs=yes
15786
# ldd complains unless libraries are executable
15787
postinstall_cmds='chmod +x $lib'
15792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15793
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15794
shlibpath_var=LD_LIBRARY_PATH
15795
shlibpath_overrides_runpath=yes
15796
if test "$with_gnu_ld" = yes; then
15804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805
soname_spec='${libname}${release}${shared_ext}$major'
15806
shlibpath_var=LD_LIBRARY_PATH
15807
case $host_vendor in
15809
shlibpath_overrides_runpath=no
15811
export_dynamic_flag_spec='${wl}-Blargedynsym'
15812
runpath_var=LD_RUN_PATH
15820
shlibpath_overrides_runpath=no
15821
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15827
if test -d /usr/nec ;then
15829
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15830
soname_spec='$libname${shared_ext}.$major'
15831
shlibpath_var=LD_LIBRARY_PATH
15835
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15836
version_type=freebsd-elf
15839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15840
soname_spec='${libname}${release}${shared_ext}$major'
15841
shlibpath_var=LD_LIBRARY_PATH
15842
hardcode_into_libs=yes
15843
if test "$with_gnu_ld" = yes; then
15844
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15845
shlibpath_overrides_runpath=no
15847
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15848
shlibpath_overrides_runpath=yes
15851
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15855
sys_lib_dlsearch_path_spec='/usr/lib'
15860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861
soname_spec='${libname}${release}${shared_ext}$major'
15862
shlibpath_var=LD_LIBRARY_PATH
15869
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15870
echo "${ECHO_T}$dynamic_linker" >&6; }
15871
test "$dynamic_linker" = no && can_build_shared=no
15873
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15874
if test "$GCC" = yes; then
15875
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15878
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15879
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15880
hardcode_action_F77=
15881
if test -n "$hardcode_libdir_flag_spec_F77" || \
15882
test -n "$runpath_var_F77" || \
15883
test "X$hardcode_automatic_F77" = "Xyes" ; then
15885
# We can hardcode non-existant directories.
15886
if test "$hardcode_direct_F77" != no &&
15887
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15888
# have to relink, otherwise we might link with an installed library
15889
# when we should be linking with a yet-to-be-installed one
15890
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15891
test "$hardcode_minus_L_F77" != no; then
15892
# Linking always hardcodes the temporary library directory.
15893
hardcode_action_F77=relink
15895
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15896
hardcode_action_F77=immediate
15899
# We cannot hardcode anything, or else we can only hardcode existing
15901
hardcode_action_F77=unsupported
15903
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15904
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15906
if test "$hardcode_action_F77" = relink; then
15907
# Fast installation is not supported
15908
enable_fast_install=no
15909
elif test "$shlibpath_overrides_runpath" = yes ||
15910
test "$enable_shared" = no; then
15911
# Fast installation is not necessary
15912
enable_fast_install=needless
15916
# The else clause should only fire when bootstrapping the
15917
# libtool distribution, otherwise you forgot to ship ltmain.sh
15918
# with your package, and you will get complaints that there are
15919
# no rules to generate ltmain.sh.
15920
if test -f "$ltmain"; then
15921
# See if we are running on zsh, and set the options which allow our commands through
15922
# without removal of \ escapes.
15923
if test -n "${ZSH_VERSION+set}" ; then
15924
setopt NO_GLOB_SUBST
15926
# Now quote all the things that may contain metacharacters while being
15927
# careful not to overquote the AC_SUBSTed values. We take copies of the
15928
# variables and quote the copies for generation of the libtool script.
15929
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15931
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15932
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15933
deplibs_check_method reload_flag reload_cmds need_locks \
15934
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15935
lt_cv_sys_global_symbol_to_c_name_address \
15936
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15937
old_postinstall_cmds old_postuninstall_cmds \
15941
lt_prog_compiler_wl_F77 \
15942
lt_prog_compiler_pic_F77 \
15943
lt_prog_compiler_static_F77 \
15944
lt_prog_compiler_no_builtin_flag_F77 \
15945
export_dynamic_flag_spec_F77 \
15946
thread_safe_flag_spec_F77 \
15947
whole_archive_flag_spec_F77 \
15948
enable_shared_with_static_runtimes_F77 \
15949
old_archive_cmds_F77 \
15950
old_archive_from_new_cmds_F77 \
15951
predep_objects_F77 \
15952
postdep_objects_F77 \
15955
compiler_lib_search_path_F77 \
15957
archive_expsym_cmds_F77 \
15958
postinstall_cmds_F77 \
15959
postuninstall_cmds_F77 \
15960
old_archive_from_expsyms_cmds_F77 \
15961
allow_undefined_flag_F77 \
15962
no_undefined_flag_F77 \
15963
export_symbols_cmds_F77 \
15964
hardcode_libdir_flag_spec_F77 \
15965
hardcode_libdir_flag_spec_ld_F77 \
15966
hardcode_libdir_separator_F77 \
15967
hardcode_automatic_F77 \
15969
module_expsym_cmds_F77 \
15970
lt_cv_prog_compiler_c_o_F77 \
15971
fix_srcfile_path_F77 \
15972
exclude_expsyms_F77 \
15973
include_expsyms_F77; do
15976
old_archive_cmds_F77 | \
15977
old_archive_from_new_cmds_F77 | \
15978
archive_cmds_F77 | \
15979
archive_expsym_cmds_F77 | \
15980
module_cmds_F77 | \
15981
module_expsym_cmds_F77 | \
15982
old_archive_from_expsyms_cmds_F77 | \
15983
export_symbols_cmds_F77 | \
15984
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15985
postinstall_cmds | postuninstall_cmds | \
15986
old_postinstall_cmds | old_postuninstall_cmds | \
15987
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15988
# Double-quote double-evaled strings.
15989
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15992
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15998
*'\$0 --fallback-echo"')
15999
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16005
cat <<__EOF__ >> "$cfgfile"
16006
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16008
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16010
# Shell to use when invoking shell scripts.
16013
# Whether or not to build shared libraries.
16014
build_libtool_libs=$enable_shared
16016
# Whether or not to build static libraries.
16017
build_old_libs=$enable_static
16019
# Whether or not to add -lc for building shared libraries.
16020
build_libtool_need_lc=$archive_cmds_need_lc_F77
16022
# Whether or not to disallow shared libs when runtime libs are static
16023
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16025
# Whether or not to optimize for fast installation.
16026
fast_install=$enable_fast_install
16029
host_alias=$host_alias
16033
# The build system.
16034
build_alias=$build_alias
16038
# An echo program that does not interpret backslashes.
16043
AR_FLAGS=$lt_AR_FLAGS
16048
# LTCC compiler flags.
16049
LTCFLAGS=$lt_LTCFLAGS
16051
# A language-specific compiler.
16052
CC=$lt_compiler_F77
16054
# Is the compiler the GNU C compiler?
16060
# The linker used to build libraries.
16063
# Whether we need hard or soft links.
16066
# A BSD-compatible nm program.
16069
# A symbol stripping program
16072
# Used to examine libraries when file_magic_cmd begins "file"
16073
MAGIC_CMD=$MAGIC_CMD
16075
# Used on cygwin: DLL creation program.
16078
# Used on cygwin: object dumper.
16081
# Used on cygwin: assembler.
16084
# The name of the directory that contains temporary libtool files.
16087
# How to create reloadable object files.
16088
reload_flag=$lt_reload_flag
16089
reload_cmds=$lt_reload_cmds
16091
# How to pass a linker flag through the compiler.
16092
wl=$lt_lt_prog_compiler_wl_F77
16094
# Object file suffix (normally "o").
16095
objext="$ac_objext"
16097
# Old archive suffix (normally "a").
16100
# Shared library suffix (normally ".so").
16101
shrext_cmds='$shrext_cmds'
16103
# Executable file suffix (normally "").
16106
# Additional compiler flags for building library objects.
16107
pic_flag=$lt_lt_prog_compiler_pic_F77
16110
# What is the maximum length of a command?
16111
max_cmd_len=$lt_cv_sys_max_cmd_len
16113
# Does compiler simultaneously support -c and -o options?
16114
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16116
# Must we lock files when doing compilation?
16117
need_locks=$lt_need_locks
16119
# Do we need the lib prefix for modules?
16120
need_lib_prefix=$need_lib_prefix
16122
# Do we need a version for libraries?
16123
need_version=$need_version
16125
# Whether dlopen is supported.
16126
dlopen_support=$enable_dlopen
16128
# Whether dlopen of programs is supported.
16129
dlopen_self=$enable_dlopen_self
16131
# Whether dlopen of statically linked programs is supported.
16132
dlopen_self_static=$enable_dlopen_self_static
16134
# Compiler flag to prevent dynamic linking.
16135
link_static_flag=$lt_lt_prog_compiler_static_F77
16137
# Compiler flag to turn off builtin functions.
16138
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16140
# Compiler flag to allow reflexive dlopens.
16141
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16143
# Compiler flag to generate shared objects directly from archives.
16144
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16146
# Compiler flag to generate thread-safe objects.
16147
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16149
# Library versioning type.
16150
version_type=$version_type
16152
# Format of library name prefix.
16153
libname_spec=$lt_libname_spec
16155
# List of archive names. First name is the real one, the rest are links.
16156
# The last name is the one that the linker finds with -lNAME.
16157
library_names_spec=$lt_library_names_spec
16159
# The coded name of the library, if different from the real name.
16160
soname_spec=$lt_soname_spec
16162
# Commands used to build and install an old-style archive.
16164
old_archive_cmds=$lt_old_archive_cmds_F77
16165
old_postinstall_cmds=$lt_old_postinstall_cmds
16166
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16168
# Create an old-style archive from a shared archive.
16169
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16171
# Create a temporary old-style archive to link instead of a shared archive.
16172
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16174
# Commands used to build and install a shared archive.
16175
archive_cmds=$lt_archive_cmds_F77
16176
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16177
postinstall_cmds=$lt_postinstall_cmds
16178
postuninstall_cmds=$lt_postuninstall_cmds
16180
# Commands used to build a loadable module (assumed same as above if empty)
16181
module_cmds=$lt_module_cmds_F77
16182
module_expsym_cmds=$lt_module_expsym_cmds_F77
16184
# Commands to strip libraries.
16185
old_striplib=$lt_old_striplib
16186
striplib=$lt_striplib
16188
# Dependencies to place before the objects being linked to create a
16190
predep_objects=$lt_predep_objects_F77
16192
# Dependencies to place after the objects being linked to create a
16194
postdep_objects=$lt_postdep_objects_F77
16196
# Dependencies to place before the objects being linked to create a
16198
predeps=$lt_predeps_F77
16200
# Dependencies to place after the objects being linked to create a
16202
postdeps=$lt_postdeps_F77
16204
# The library search path used internally by the compiler when linking
16205
# a shared library.
16206
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16208
# Method to check whether dependent libraries are shared objects.
16209
deplibs_check_method=$lt_deplibs_check_method
16211
# Command to use when deplibs_check_method == file_magic.
16212
file_magic_cmd=$lt_file_magic_cmd
16214
# Flag that allows shared libraries with undefined symbols to be built.
16215
allow_undefined_flag=$lt_allow_undefined_flag_F77
16217
# Flag that forces no undefined symbols.
16218
no_undefined_flag=$lt_no_undefined_flag_F77
16220
# Commands used to finish a libtool library installation in a directory.
16221
finish_cmds=$lt_finish_cmds
16223
# Same as above, but a single script fragment to be evaled but not shown.
16224
finish_eval=$lt_finish_eval
16226
# Take the output of nm and produce a listing of raw symbols and C names.
16227
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16229
# Transform the output of nm in a proper C declaration
16230
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16232
# Transform the output of nm in a C name address pair
16233
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16235
# This is the shared library runtime path variable.
16236
runpath_var=$runpath_var
16238
# This is the shared library path variable.
16239
shlibpath_var=$shlibpath_var
16241
# Is shlibpath searched before the hard-coded library search path?
16242
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16244
# How to hardcode a shared library path into an executable.
16245
hardcode_action=$hardcode_action_F77
16247
# Whether we should hardcode library paths into libraries.
16248
hardcode_into_libs=$hardcode_into_libs
16250
# Flag to hardcode \$libdir into a binary during linking.
16251
# This must work even if \$libdir does not exist.
16252
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16254
# If ld is used when linking, flag to hardcode \$libdir into
16255
# a binary during linking. This must work even if \$libdir does
16257
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16259
# Whether we need a single -rpath flag with a separated argument.
16260
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16262
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16263
# resulting binary.
16264
hardcode_direct=$hardcode_direct_F77
16266
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16267
# resulting binary.
16268
hardcode_minus_L=$hardcode_minus_L_F77
16270
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16271
# the resulting binary.
16272
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16274
# Set to yes if building a shared library automatically hardcodes DIR into the library
16275
# and all subsequent libraries and executables linked against it.
16276
hardcode_automatic=$hardcode_automatic_F77
16278
# Variables whose values should be saved in libtool wrapper scripts and
16279
# restored at relink time.
16280
variables_saved_for_relink="$variables_saved_for_relink"
16282
# Whether libtool must link a program against all its dependency libraries.
16283
link_all_deplibs=$link_all_deplibs_F77
16285
# Compile-time system search path for libraries
16286
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16288
# Run-time system search path for libraries
16289
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16291
# Fix the shell variable \$srcfile for the compiler.
16292
fix_srcfile_path=$lt_fix_srcfile_path
16294
# Set to yes if exported symbols are required.
16295
always_export_symbols=$always_export_symbols_F77
16297
# The commands to list exported symbols.
16298
export_symbols_cmds=$lt_export_symbols_cmds_F77
16300
# The commands to extract the exported symbol list from a shared archive.
16301
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16303
# Symbols that should not be listed in the preloaded symbols.
16304
exclude_expsyms=$lt_exclude_expsyms_F77
16306
# Symbols that must always be exported.
16307
include_expsyms=$lt_include_expsyms_F77
16309
# ### END LIBTOOL TAG CONFIG: $tagname
16315
# If there is no Makefile yet, we rely on a make rule to execute
16316
# `config.status --recheck' to rerun these tests and create the
16317
# libtool script then.
16318
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16319
if test -f "$ltmain_in"; then
16320
test -f Makefile && make "$ltmain"
16326
ac_cpp='$CPP $CPPFLAGS'
16327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16339
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16342
# Source file extension for Java test sources.
16345
# Object file extension for compiled Java test sources.
16349
# Code to be used in simple compile tests
16350
lt_simple_compile_test_code="class foo {}"
16352
# Code to be used in simple link tests
16353
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16355
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16357
# If no C compiler was specified, use CC.
16360
# If no C compiler flags were specified, use CFLAGS.
16361
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16363
# Allow CC to be a program name with arguments.
16367
# save warnings/boilerplate of simple test code
16368
ac_outfile=conftest.$ac_objext
16369
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16370
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16371
_lt_compiler_boilerplate=`cat conftest.err`
16374
ac_outfile=conftest.$ac_objext
16375
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16376
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16377
_lt_linker_boilerplate=`cat conftest.err`
16381
# Allow CC to be a program name with arguments.
16386
for cc_temp in $compiler""; do
16388
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16389
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16394
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16397
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16398
archive_cmds_need_lc_GCJ=no
16400
old_archive_cmds_GCJ=$old_archive_cmds
16403
lt_prog_compiler_no_builtin_flag_GCJ=
16405
if test "$GCC" = yes; then
16406
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16409
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16410
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16411
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16412
echo $ECHO_N "(cached) $ECHO_C" >&6
16414
lt_cv_prog_compiler_rtti_exceptions=no
16415
ac_outfile=conftest.$ac_objext
16416
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16417
lt_compiler_flag="-fno-rtti -fno-exceptions"
16418
# Insert the option either (1) after the last *FLAGS variable, or
16419
# (2) before a word containing "conftest.", or (3) at the end.
16420
# Note that $ac_compile itself does not contain backslashes and begins
16421
# with a dollar sign (not a hyphen), so the echo should work correctly.
16422
# The option is referenced via a variable to avoid confusing sed.
16423
lt_compile=`echo "$ac_compile" | $SED \
16424
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16425
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16426
-e 's:$: $lt_compiler_flag:'`
16427
(eval echo "\"\$as_me:16427: $lt_compile\"" >&5)
16428
(eval "$lt_compile" 2>conftest.err)
16430
cat conftest.err >&5
16431
echo "$as_me:16431: \$? = $ac_status" >&5
16432
if (exit $ac_status) && test -s "$ac_outfile"; then
16433
# The compiler can only warn and ignore the option if not recognized
16434
# So say no if there are warnings other than the usual output.
16435
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16436
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16437
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16438
lt_cv_prog_compiler_rtti_exceptions=yes
16444
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16445
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16447
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16448
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16455
lt_prog_compiler_wl_GCJ=
16456
lt_prog_compiler_pic_GCJ=
16457
lt_prog_compiler_static_GCJ=
16459
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16460
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16462
if test "$GCC" = yes; then
16463
lt_prog_compiler_wl_GCJ='-Wl,'
16464
lt_prog_compiler_static_GCJ='-static'
16468
# All AIX code is PIC.
16469
if test "$host_cpu" = ia64; then
16470
# AIX 5 now supports IA64 processor
16471
lt_prog_compiler_static_GCJ='-Bstatic'
16476
# FIXME: we need at least 68020 code to build shared libraries, but
16477
# adding the `-m68020' flag to GCC prevents building anything better,
16479
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16482
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16483
# PIC is the default for these OSes.
16486
mingw* | cygwin* | pw32* | os2*)
16487
# This hack is so that the source file can tell whether it is being
16488
# built for inclusion in a dll (and should export symbols for example).
16489
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16490
# (--disable-auto-import) libraries
16491
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16494
darwin* | rhapsody*)
16495
# PIC is the default on this platform
16496
# Common symbols not allowed in MH_DYLIB files
16497
lt_prog_compiler_pic_GCJ='-fno-common'
16501
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16502
# Instead, we relocate shared libraries at runtime.
16506
# Just because we use GCC doesn't mean we suddenly get shared libraries
16507
# on systems that don't support them.
16508
lt_prog_compiler_can_build_shared_GCJ=no
16513
if test -d /usr/nec; then
16514
lt_prog_compiler_pic_GCJ=-Kconform_pic
16519
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16520
# not for PA HP-UX.
16526
lt_prog_compiler_pic_GCJ='-fPIC'
16532
lt_prog_compiler_pic_GCJ='-fPIC'
16536
# PORTME Check for flag to pass linker flags through the system compiler.
16539
lt_prog_compiler_wl_GCJ='-Wl,'
16540
if test "$host_cpu" = ia64; then
16541
# AIX 5 now supports IA64 processor
16542
lt_prog_compiler_static_GCJ='-Bstatic'
16544
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16548
# PIC is the default on this platform
16549
# Common symbols not allowed in MH_DYLIB files
16550
case $cc_basename in
16552
lt_prog_compiler_pic_GCJ='-qnocommon'
16553
lt_prog_compiler_wl_GCJ='-Wl,'
16558
mingw* | cygwin* | pw32* | os2*)
16559
# This hack is so that the source file can tell whether it is being
16560
# built for inclusion in a dll (and should export symbols for example).
16561
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16564
hpux9* | hpux10* | hpux11*)
16565
lt_prog_compiler_wl_GCJ='-Wl,'
16566
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16567
# not for PA HP-UX.
16573
lt_prog_compiler_pic_GCJ='+Z'
16576
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16577
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16580
irix5* | irix6* | nonstopux*)
16581
lt_prog_compiler_wl_GCJ='-Wl,'
16582
# PIC (with -KPIC) is the default.
16583
lt_prog_compiler_static_GCJ='-non_shared'
16587
lt_prog_compiler_pic_GCJ='-KPIC'
16588
lt_prog_compiler_static_GCJ='-Bstatic'
16591
linux* | k*bsd*-gnu)
16592
case $cc_basename in
16594
lt_prog_compiler_wl_GCJ='-Wl,'
16595
lt_prog_compiler_pic_GCJ='-KPIC'
16596
lt_prog_compiler_static_GCJ='-static'
16598
pgcc* | pgf77* | pgf90* | pgf95*)
16599
# Portland Group compilers (*not* the Pentium gcc compiler,
16600
# which looks to be a dead project)
16601
lt_prog_compiler_wl_GCJ='-Wl,'
16602
lt_prog_compiler_pic_GCJ='-fpic'
16603
lt_prog_compiler_static_GCJ='-Bstatic'
16606
lt_prog_compiler_wl_GCJ='-Wl,'
16607
# All Alpha code is PIC.
16608
lt_prog_compiler_static_GCJ='-non_shared'
16611
case `$CC -V 2>&1 | sed 5q` in
16614
lt_prog_compiler_pic_GCJ='-KPIC'
16615
lt_prog_compiler_static_GCJ='-Bstatic'
16616
lt_prog_compiler_wl_GCJ='-Wl,'
16619
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16620
lt_prog_compiler_pic_GCJ='-KPIC'
16621
lt_prog_compiler_static_GCJ='-Bstatic'
16622
lt_prog_compiler_wl_GCJ=''
16629
osf3* | osf4* | osf5*)
16630
lt_prog_compiler_wl_GCJ='-Wl,'
16631
# All OSF/1 code is PIC.
16632
lt_prog_compiler_static_GCJ='-non_shared'
16636
lt_prog_compiler_static_GCJ='-non_shared'
16640
lt_prog_compiler_pic_GCJ='-KPIC'
16641
lt_prog_compiler_static_GCJ='-Bstatic'
16642
case $cc_basename in
16643
f77* | f90* | f95*)
16644
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16646
lt_prog_compiler_wl_GCJ='-Wl,';;
16651
lt_prog_compiler_wl_GCJ='-Qoption ld '
16652
lt_prog_compiler_pic_GCJ='-PIC'
16653
lt_prog_compiler_static_GCJ='-Bstatic'
16656
sysv4 | sysv4.2uw2* | sysv4.3*)
16657
lt_prog_compiler_wl_GCJ='-Wl,'
16658
lt_prog_compiler_pic_GCJ='-KPIC'
16659
lt_prog_compiler_static_GCJ='-Bstatic'
16663
if test -d /usr/nec ;then
16664
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16665
lt_prog_compiler_static_GCJ='-Bstatic'
16669
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16670
lt_prog_compiler_wl_GCJ='-Wl,'
16671
lt_prog_compiler_pic_GCJ='-KPIC'
16672
lt_prog_compiler_static_GCJ='-Bstatic'
16676
lt_prog_compiler_wl_GCJ='-Wl,'
16677
lt_prog_compiler_can_build_shared_GCJ=no
16681
lt_prog_compiler_pic_GCJ='-pic'
16682
lt_prog_compiler_static_GCJ='-Bstatic'
16686
lt_prog_compiler_can_build_shared_GCJ=no
16691
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16692
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16695
# Check to make sure the PIC flag actually works.
16697
if test -n "$lt_prog_compiler_pic_GCJ"; then
16699
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16700
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16701
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16702
echo $ECHO_N "(cached) $ECHO_C" >&6
16704
lt_prog_compiler_pic_works_GCJ=no
16705
ac_outfile=conftest.$ac_objext
16706
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16707
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16708
# Insert the option either (1) after the last *FLAGS variable, or
16709
# (2) before a word containing "conftest.", or (3) at the end.
16710
# Note that $ac_compile itself does not contain backslashes and begins
16711
# with a dollar sign (not a hyphen), so the echo should work correctly.
16712
# The option is referenced via a variable to avoid confusing sed.
16713
lt_compile=`echo "$ac_compile" | $SED \
16714
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16715
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16716
-e 's:$: $lt_compiler_flag:'`
16717
(eval echo "\"\$as_me:16717: $lt_compile\"" >&5)
16718
(eval "$lt_compile" 2>conftest.err)
16720
cat conftest.err >&5
16721
echo "$as_me:16721: \$? = $ac_status" >&5
16722
if (exit $ac_status) && test -s "$ac_outfile"; then
16723
# The compiler can only warn and ignore the option if not recognized
16724
# So say no if there are warnings other than the usual output.
16725
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16726
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16727
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16728
lt_prog_compiler_pic_works_GCJ=yes
16734
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16735
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16737
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16738
case $lt_prog_compiler_pic_GCJ in
16740
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16743
lt_prog_compiler_pic_GCJ=
16744
lt_prog_compiler_can_build_shared_GCJ=no
16749
# For platforms which do not support PIC, -DPIC is meaningless:
16751
lt_prog_compiler_pic_GCJ=
16754
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16759
# Check to make sure the static flag actually works.
16761
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16762
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16763
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16764
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16765
echo $ECHO_N "(cached) $ECHO_C" >&6
16767
lt_prog_compiler_static_works_GCJ=no
16768
save_LDFLAGS="$LDFLAGS"
16769
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16770
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16771
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16772
# The linker can only warn and ignore the option if not recognized
16773
# So say no if there are warnings
16774
if test -s conftest.err; then
16775
# Append any errors to the config.log.
16776
cat conftest.err 1>&5
16777
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16778
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16779
if diff conftest.exp conftest.er2 >/dev/null; then
16780
lt_prog_compiler_static_works_GCJ=yes
16783
lt_prog_compiler_static_works_GCJ=yes
16787
LDFLAGS="$save_LDFLAGS"
16790
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16791
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16793
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16796
lt_prog_compiler_static_GCJ=
16800
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16801
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16802
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16803
echo $ECHO_N "(cached) $ECHO_C" >&6
16805
lt_cv_prog_compiler_c_o_GCJ=no
16806
$rm -r conftest 2>/dev/null
16810
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16812
lt_compiler_flag="-o out/conftest2.$ac_objext"
16813
# Insert the option either (1) after the last *FLAGS variable, or
16814
# (2) before a word containing "conftest.", or (3) at the end.
16815
# Note that $ac_compile itself does not contain backslashes and begins
16816
# with a dollar sign (not a hyphen), so the echo should work correctly.
16817
lt_compile=`echo "$ac_compile" | $SED \
16818
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16819
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16820
-e 's:$: $lt_compiler_flag:'`
16821
(eval echo "\"\$as_me:16821: $lt_compile\"" >&5)
16822
(eval "$lt_compile" 2>out/conftest.err)
16824
cat out/conftest.err >&5
16825
echo "$as_me:16825: \$? = $ac_status" >&5
16826
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16828
# The compiler can only warn and ignore the option if not recognized
16829
# So say no if there are warnings
16830
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16831
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16832
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16833
lt_cv_prog_compiler_c_o_GCJ=yes
16838
# SGI C++ compiler will create directory out/ii_files/ for
16839
# template instantiation
16840
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16841
$rm out/* && rmdir out
16847
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16848
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16851
hard_links="nottested"
16852
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16853
# do not overwrite the value of need_locks provided by the user
16854
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16855
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16858
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16860
ln conftest.a conftest.b 2>&5 || hard_links=no
16861
ln conftest.a conftest.b 2>/dev/null && hard_links=no
16862
{ echo "$as_me:$LINENO: result: $hard_links" >&5
16863
echo "${ECHO_T}$hard_links" >&6; }
16864
if test "$hard_links" = no; then
16865
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16866
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16873
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16874
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16877
allow_undefined_flag_GCJ=
16878
enable_shared_with_static_runtimes_GCJ=no
16880
archive_expsym_cmds_GCJ=
16881
old_archive_From_new_cmds_GCJ=
16882
old_archive_from_expsyms_cmds_GCJ=
16883
export_dynamic_flag_spec_GCJ=
16884
whole_archive_flag_spec_GCJ=
16885
thread_safe_flag_spec_GCJ=
16886
hardcode_libdir_flag_spec_GCJ=
16887
hardcode_libdir_flag_spec_ld_GCJ=
16888
hardcode_libdir_separator_GCJ=
16889
hardcode_direct_GCJ=no
16890
hardcode_minus_L_GCJ=no
16891
hardcode_shlibpath_var_GCJ=unsupported
16892
link_all_deplibs_GCJ=unknown
16893
hardcode_automatic_GCJ=no
16895
module_expsym_cmds_GCJ=
16896
always_export_symbols_GCJ=no
16897
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16898
# include_expsyms should be a list of space-separated symbols to be *always*
16899
# included in the symbol list
16900
include_expsyms_GCJ=
16901
# exclude_expsyms can be an extended regexp of symbols to exclude
16902
# it will be wrapped by ` (' and `)$', so one must not match beginning or
16903
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16904
# as well as any symbol that contains `d'.
16905
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16906
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16907
# platforms (ab)use it in PIC code, but their linkers get confused if
16908
# the symbol is explicitly referenced. Since portable code cannot
16909
# rely on this symbol name, it's probably fine to never include it in
16910
# preloaded symbol tables.
16911
extract_expsyms_cmds=
16912
# Just being paranoid about ensuring that cc_basename is set.
16913
for cc_temp in $compiler""; do
16915
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16916
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16921
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16924
cygwin* | mingw* | pw32*)
16925
# FIXME: the MSVC++ port hasn't been tested in a loooong time
16926
# When not using gcc, we currently assume that we are using
16927
# Microsoft Visual C++.
16928
if test "$GCC" != yes; then
16933
# we just hope/assume this is gcc and not c89 (= MSVC++)
16942
if test "$with_gnu_ld" = yes; then
16943
# If archive_cmds runs LD, not CC, wlarc should be empty
16946
# Set some defaults for GNU ld with shared library support. These
16947
# are reset later if shared libraries are not supported. Putting them
16948
# here allows them to be overridden if necessary.
16949
runpath_var=LD_RUN_PATH
16950
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16951
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16952
# ancient GNU ld didn't support --whole-archive et. al.
16953
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16954
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16956
whole_archive_flag_spec_GCJ=
16958
supports_anon_versioning=no
16959
case `$LD -v 2>/dev/null` in
16960
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16961
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16962
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16963
*\ 2.11.*) ;; # other 2.11 versions
16964
*) supports_anon_versioning=yes ;;
16967
# See if GNU ld supports shared libraries.
16969
aix3* | aix4* | aix5*)
16970
# On AIX/PPC, the GNU linker is very broken
16971
if test "$host_cpu" != ia64; then
16975
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16976
*** to be unable to reliably create shared libraries on AIX.
16977
*** Therefore, libtool is disabling shared libraries support. If you
16978
*** really care for shared libraries, you may want to modify your PATH
16979
*** so that a non-GNU linker is found, and then restart.
16986
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)'
16987
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16988
hardcode_minus_L_GCJ=yes
16990
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16991
# that the semantics of dynamic libraries on AmigaOS, at least up
16992
# to version 4, is to share data among multiple programs linked
16993
# with the same dynamic library. Since this doesn't match the
16994
# behavior of shared libraries on other platforms, we can't use
17000
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17001
allow_undefined_flag_GCJ=unsupported
17002
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17003
# support --undefined. This deserves some investigation. FIXME
17004
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17010
cygwin* | mingw* | pw32*)
17011
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17012
# as there is no search path for DLLs.
17013
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17014
allow_undefined_flag_GCJ=unsupported
17015
always_export_symbols_GCJ=no
17016
enable_shared_with_static_runtimes_GCJ=yes
17017
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17019
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17020
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17021
# If the export-symbols file already is a .def file (1st line
17022
# is EXPORTS), use it as is; otherwise, prepend...
17023
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17024
cp $export_symbols $output_objdir/$soname.def;
17026
echo EXPORTS > $output_objdir/$soname.def;
17027
cat $export_symbols >> $output_objdir/$soname.def;
17029
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17036
hardcode_direct_GCJ=no
17037
hardcode_shlibpath_var_GCJ=no
17038
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17039
export_dynamic_flag_spec_GCJ='${wl}-E'
17040
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17041
# Instead, shared libraries are loaded at an image base (0x10000000 by
17042
# default) and relocated if they conflict, which is a slow very memory
17043
# consuming and fragmenting process. To avoid this, we pick a random,
17044
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17045
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17046
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'
17047
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'
17050
gnu* | linux* | k*bsd*-gnu)
17051
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17053
case $cc_basename,$host_cpu in
17054
pgcc*) # Portland Group C compiler
17055
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'
17056
tmp_addflag=' $pic_flag'
17058
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17059
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'
17060
tmp_addflag=' $pic_flag -Mnomain' ;;
17061
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17062
tmp_addflag=' -i_dynamic' ;;
17063
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17064
tmp_addflag=' -i_dynamic -nofor_main' ;;
17065
ifc* | ifort*) # Intel Fortran compiler
17066
tmp_addflag=' -nofor_main' ;;
17068
case `$CC -V 2>&1 | sed 5q` in
17069
*Sun\ C*) # Sun C 5.9
17070
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'
17071
tmp_sharedflag='-G' ;;
17072
*Sun\ F*) # Sun Fortran 8.3
17073
tmp_sharedflag='-G' ;;
17075
tmp_sharedflag='-shared' ;;
17077
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17079
if test $supports_anon_versioning = yes; then
17080
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17081
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17082
$echo "local: *; };" >> $output_objdir/$libname.ver~
17083
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17091
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17092
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17095
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17096
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17101
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17105
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17106
*** create shared libraries on Solaris systems. Therefore, libtool
17107
*** is disabling shared libraries support. We urge you to upgrade GNU
17108
*** binutils to release 2.9.1 or newer. Another option is to modify
17109
*** your PATH or compiler configuration so that the native linker is
17110
*** used, and then restart.
17113
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17114
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17115
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17121
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17122
case `$LD -v 2>&1` in
17123
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17127
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17128
*** reliably create shared libraries on SCO systems. Therefore, libtool
17129
*** is disabling shared libraries support. We urge you to upgrade GNU
17130
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17131
*** your PATH or compiler configuration so that the native linker is
17132
*** used, and then restart.
17137
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17138
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17139
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17140
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17149
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17151
hardcode_direct_GCJ=yes
17152
hardcode_shlibpath_var_GCJ=no
17156
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17157
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17158
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17165
if test "$ld_shlibs_GCJ" = no; then
17167
hardcode_libdir_flag_spec_GCJ=
17168
export_dynamic_flag_spec_GCJ=
17169
whole_archive_flag_spec_GCJ=
17172
# PORTME fill in a description of your system's linker (not GNU ld)
17175
allow_undefined_flag_GCJ=unsupported
17176
always_export_symbols_GCJ=yes
17177
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'
17178
# Note: this linker hardcodes the directories in LIBPATH if there
17179
# are no directories specified by -L.
17180
hardcode_minus_L_GCJ=yes
17181
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17182
# Neither direct hardcoding nor static linking is supported with a
17184
hardcode_direct_GCJ=unsupported
17189
if test "$host_cpu" = ia64; then
17190
# On IA64, the linker does run time linking by default, so we don't
17191
# have to do anything special.
17192
aix_use_runtimelinking=no
17193
exp_sym_flag='-Bexport'
17196
# If we're using GNU nm, then we don't want the "-C" option.
17197
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17198
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17199
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'
17201
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'
17203
aix_use_runtimelinking=no
17205
# Test if we are trying to use run time linking or normal
17206
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17207
# need to do runtime linking.
17208
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17209
for ld_flag in $LDFLAGS; do
17210
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17211
aix_use_runtimelinking=yes
17218
exp_sym_flag='-bexport'
17219
no_entry_flag='-bnoentry'
17222
# When large executables or shared objects are built, AIX ld can
17223
# have problems creating the table of contents. If linking a library
17224
# or program results in "error TOC overflow" add -mminimal-toc to
17225
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17226
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17228
archive_cmds_GCJ=''
17229
hardcode_direct_GCJ=yes
17230
hardcode_libdir_separator_GCJ=':'
17231
link_all_deplibs_GCJ=yes
17233
if test "$GCC" = yes; then
17234
case $host_os in aix4.[012]|aix4.[012].*)
17235
# We only want to do this on AIX 4.2 and lower, the check
17236
# below for broken collect2 doesn't work under 4.3+
17237
collect2name=`${CC} -print-prog-name=collect2`
17238
if test -f "$collect2name" && \
17239
strings "$collect2name" | grep resolve_lib_name >/dev/null
17241
# We have reworked collect2
17244
# We have old collect2
17245
hardcode_direct_GCJ=unsupported
17246
# It fails to find uninstalled libraries when the uninstalled
17247
# path is not listed in the libpath. Setting hardcode_minus_L
17248
# to unsupported forces relinking
17249
hardcode_minus_L_GCJ=yes
17250
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17251
hardcode_libdir_separator_GCJ=
17255
shared_flag='-shared'
17256
if test "$aix_use_runtimelinking" = yes; then
17257
shared_flag="$shared_flag "'${wl}-G'
17261
if test "$host_cpu" = ia64; then
17262
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17263
# chokes on -Wl,-G. The following line is correct:
17266
if test "$aix_use_runtimelinking" = yes; then
17267
shared_flag='${wl}-G'
17269
shared_flag='${wl}-bM:SRE'
17274
# It seems that -bexpall does not export symbols beginning with
17275
# underscore (_), so it is better to generate a list of symbols to export.
17276
always_export_symbols_GCJ=yes
17277
if test "$aix_use_runtimelinking" = yes; then
17278
# Warning - without using the other runtime loading flags (-brtl),
17279
# -berok will link without error, but may produce a broken library.
17280
allow_undefined_flag_GCJ='-berok'
17281
# Determine the default libpath from the value encoded in an empty executable.
17282
cat >conftest.$ac_ext <<_ACEOF
17285
cat confdefs.h >>conftest.$ac_ext
17286
cat >>conftest.$ac_ext <<_ACEOF
17287
/* end confdefs.h. */
17297
rm -f conftest.$ac_objext conftest$ac_exeext
17298
if { (ac_try="$ac_link"
17299
case "(($ac_try" in
17300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301
*) ac_try_echo=$ac_try;;
17303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304
(eval "$ac_link") 2>conftest.er1
17306
grep -v '^ *+' conftest.er1 >conftest.err
17308
cat conftest.err >&5
17309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310
(exit $ac_status); } && {
17311
test -z "$ac_c_werror_flag" ||
17312
test ! -s conftest.err
17313
} && test -s conftest$ac_exeext &&
17314
$as_test_x conftest$ac_exeext; then
17316
lt_aix_libpath_sed='
17317
/Import File Strings/,/^$/ {
17323
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17324
# Check for a 64-bit object if we didn't find anything.
17325
if test -z "$aix_libpath"; then
17326
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17329
echo "$as_me: failed program was:" >&5
17330
sed 's/^/| /' conftest.$ac_ext >&5
17335
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17336
conftest$ac_exeext conftest.$ac_ext
17337
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17339
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17340
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"
17342
if test "$host_cpu" = ia64; then
17343
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17344
allow_undefined_flag_GCJ="-z nodefs"
17345
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"
17347
# Determine the default libpath from the value encoded in an empty executable.
17348
cat >conftest.$ac_ext <<_ACEOF
17351
cat confdefs.h >>conftest.$ac_ext
17352
cat >>conftest.$ac_ext <<_ACEOF
17353
/* end confdefs.h. */
17363
rm -f conftest.$ac_objext conftest$ac_exeext
17364
if { (ac_try="$ac_link"
17365
case "(($ac_try" in
17366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367
*) ac_try_echo=$ac_try;;
17369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370
(eval "$ac_link") 2>conftest.er1
17372
grep -v '^ *+' conftest.er1 >conftest.err
17374
cat conftest.err >&5
17375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376
(exit $ac_status); } && {
17377
test -z "$ac_c_werror_flag" ||
17378
test ! -s conftest.err
17379
} && test -s conftest$ac_exeext &&
17380
$as_test_x conftest$ac_exeext; then
17382
lt_aix_libpath_sed='
17383
/Import File Strings/,/^$/ {
17389
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17390
# Check for a 64-bit object if we didn't find anything.
17391
if test -z "$aix_libpath"; then
17392
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17395
echo "$as_me: failed program was:" >&5
17396
sed 's/^/| /' conftest.$ac_ext >&5
17401
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17402
conftest$ac_exeext conftest.$ac_ext
17403
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17405
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17406
# Warning - without using the other run time loading flags,
17407
# -berok will link without error, but may produce a broken library.
17408
no_undefined_flag_GCJ=' ${wl}-bernotok'
17409
allow_undefined_flag_GCJ=' ${wl}-berok'
17410
# Exported symbols can be pulled into shared objects from archives
17411
whole_archive_flag_spec_GCJ='$convenience'
17412
archive_cmds_need_lc_GCJ=yes
17413
# This is similar to how AIX traditionally builds its shared libraries.
17414
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'
17420
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)'
17421
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17422
hardcode_minus_L_GCJ=yes
17423
# see comment about different semantics on the GNU ld section
17428
export_dynamic_flag_spec_GCJ=-rdynamic
17431
cygwin* | mingw* | pw32*)
17432
# When not using gcc, we currently assume that we are using
17433
# Microsoft Visual C++.
17434
# hardcode_libdir_flag_spec is actually meaningless, as there is
17435
# no search path for DLLs.
17436
hardcode_libdir_flag_spec_GCJ=' '
17437
allow_undefined_flag_GCJ=unsupported
17438
# Tell ltmain to make .lib files, not .a files.
17440
# Tell ltmain to make .dll files, not .so files.
17442
# FIXME: Setting linknames here is a bad hack.
17443
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17444
# The linker will automatically build a .lib file if we build a DLL.
17445
old_archive_From_new_cmds_GCJ='true'
17446
# FIXME: Should let the user specify the lib program.
17447
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17448
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17449
enable_shared_with_static_runtimes_GCJ=yes
17452
darwin* | rhapsody*)
17454
rhapsody* | darwin1.[012])
17455
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17458
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17459
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17461
case ${MACOSX_DEPLOYMENT_TARGET} in
17463
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17466
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17472
archive_cmds_need_lc_GCJ=no
17473
hardcode_direct_GCJ=no
17474
hardcode_automatic_GCJ=yes
17475
hardcode_shlibpath_var_GCJ=unsupported
17476
whole_archive_flag_spec_GCJ=''
17477
link_all_deplibs_GCJ=yes
17478
if test "$GCC" = yes ; then
17479
output_verbose_link_cmd='echo'
17480
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17481
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17482
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17483
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}'
17484
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}'
17486
case $cc_basename in
17488
output_verbose_link_cmd='echo'
17489
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17490
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17491
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17492
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}'
17493
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}'
17503
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17504
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17505
hardcode_shlibpath_var_GCJ=no
17512
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17513
# support. Future versions do this automatically, but an explicit c++rt0.o
17514
# does not break anything, and helps significantly (at the cost of a little
17517
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17518
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17519
hardcode_direct_GCJ=yes
17520
hardcode_shlibpath_var_GCJ=no
17523
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17525
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17526
hardcode_direct_GCJ=yes
17527
hardcode_minus_L_GCJ=yes
17528
hardcode_shlibpath_var_GCJ=no
17531
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17532
freebsd* | dragonfly*)
17533
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17534
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17535
hardcode_direct_GCJ=yes
17536
hardcode_shlibpath_var_GCJ=no
17540
if test "$GCC" = yes; then
17541
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'
17543
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'
17545
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17546
hardcode_libdir_separator_GCJ=:
17547
hardcode_direct_GCJ=yes
17549
# hardcode_minus_L: Not really in the search PATH,
17550
# but as the default location of the library.
17551
hardcode_minus_L_GCJ=yes
17552
export_dynamic_flag_spec_GCJ='${wl}-E'
17556
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17557
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17559
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17561
if test "$with_gnu_ld" = no; then
17562
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17563
hardcode_libdir_separator_GCJ=:
17565
hardcode_direct_GCJ=yes
17566
export_dynamic_flag_spec_GCJ='${wl}-E'
17568
# hardcode_minus_L: Not really in the search PATH,
17569
# but as the default location of the library.
17570
hardcode_minus_L_GCJ=yes
17575
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17578
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17584
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17590
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17593
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17596
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17600
if test "$with_gnu_ld" = no; then
17601
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17602
hardcode_libdir_separator_GCJ=:
17606
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17607
hardcode_direct_GCJ=no
17608
hardcode_shlibpath_var_GCJ=no
17611
hardcode_direct_GCJ=yes
17612
export_dynamic_flag_spec_GCJ='${wl}-E'
17614
# hardcode_minus_L: Not really in the search PATH,
17615
# but as the default location of the library.
17616
hardcode_minus_L_GCJ=yes
17622
irix5* | irix6* | nonstopux*)
17623
if test "$GCC" = yes; then
17624
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'
17626
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'
17627
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17629
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17630
hardcode_libdir_separator_GCJ=:
17631
link_all_deplibs_GCJ=yes
17635
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17636
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17638
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17640
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17641
hardcode_direct_GCJ=yes
17642
hardcode_shlibpath_var_GCJ=no
17646
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17647
hardcode_direct_GCJ=yes
17648
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17649
hardcode_libdir_separator_GCJ=:
17650
hardcode_shlibpath_var_GCJ=no
17654
if test -f /usr/libexec/ld.so; then
17655
hardcode_direct_GCJ=yes
17656
hardcode_shlibpath_var_GCJ=no
17657
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17658
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17659
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17660
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17661
export_dynamic_flag_spec_GCJ='${wl}-E'
17664
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17665
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17666
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17669
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17670
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17680
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17681
hardcode_minus_L_GCJ=yes
17682
allow_undefined_flag_GCJ=unsupported
17683
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'
17684
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17688
if test "$GCC" = yes; then
17689
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17690
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'
17692
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17693
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'
17695
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17696
hardcode_libdir_separator_GCJ=:
17699
osf4* | osf5*) # as osf3* with the addition of -msym flag
17700
if test "$GCC" = yes; then
17701
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17702
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'
17703
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17705
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17706
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'
17707
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~
17708
$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'
17710
# Both c and cxx compiler support -rpath directly
17711
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17713
hardcode_libdir_separator_GCJ=:
17717
no_undefined_flag_GCJ=' -z text'
17718
if test "$GCC" = yes; then
17720
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17721
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17722
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17725
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17727
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17729
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17730
hardcode_shlibpath_var_GCJ=no
17732
solaris2.[0-5] | solaris2.[0-5].*) ;;
17734
# The compiler driver will combine and reorder linker options,
17735
# but understands `-z linker_flag'. GCC discards it without `$wl',
17736
# but is careful enough not to reorder.
17737
# Supported since Solaris 2.6 (maybe 2.5.1?)
17738
if test "$GCC" = yes; then
17739
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17741
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17745
link_all_deplibs_GCJ=yes
17749
if test "x$host_vendor" = xsequent; then
17750
# Use $CC to link under sequent, because it throws in some extra .o
17751
# files that make .init and .fini sections work.
17752
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17754
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17756
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17757
hardcode_direct_GCJ=yes
17758
hardcode_minus_L_GCJ=yes
17759
hardcode_shlibpath_var_GCJ=no
17763
case $host_vendor in
17765
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17766
hardcode_direct_GCJ=yes # is this really true???
17769
## LD is ld it makes a PLAMLIB
17770
## CC just makes a GrossModule.
17771
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17772
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17773
hardcode_direct_GCJ=no
17776
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17777
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17780
runpath_var='LD_RUN_PATH'
17781
hardcode_shlibpath_var_GCJ=no
17785
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17786
hardcode_shlibpath_var_GCJ=no
17787
export_dynamic_flag_spec_GCJ='-Bexport'
17791
if test -d /usr/nec; then
17792
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17793
hardcode_shlibpath_var_GCJ=no
17794
runpath_var=LD_RUN_PATH
17795
hardcode_runpath_var=yes
17800
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17801
no_undefined_flag_GCJ='${wl}-z,text'
17802
archive_cmds_need_lc_GCJ=no
17803
hardcode_shlibpath_var_GCJ=no
17804
runpath_var='LD_RUN_PATH'
17806
if test "$GCC" = yes; then
17807
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17808
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17811
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17815
sysv5* | sco3.2v5* | sco5v6*)
17816
# Note: We can NOT use -z defs as we might desire, because we do not
17817
# link with -lc, and that would cause any symbols used from libc to
17818
# always be unresolved, which means just about no library would
17819
# ever link correctly. If we're not using GNU ld we use -z text
17820
# though, which does catch some bad symbols but isn't as heavy-handed
17822
no_undefined_flag_GCJ='${wl}-z,text'
17823
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17824
archive_cmds_need_lc_GCJ=no
17825
hardcode_shlibpath_var_GCJ=no
17826
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17827
hardcode_libdir_separator_GCJ=':'
17828
link_all_deplibs_GCJ=yes
17829
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17830
runpath_var='LD_RUN_PATH'
17832
if test "$GCC" = yes; then
17833
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17834
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17836
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17837
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17842
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17843
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17844
hardcode_shlibpath_var_GCJ=no
17853
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17854
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17855
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17858
# Do we need to explicitly link libc?
17860
case "x$archive_cmds_need_lc_GCJ" in
17862
# Assume -lc should be added
17863
archive_cmds_need_lc_GCJ=yes
17865
if test "$enable_shared" = yes && test "$GCC" = yes; then
17866
case $archive_cmds_GCJ in
17868
# FIXME: we may have to deal with multi-command sequences.
17871
# Test whether the compiler implicitly links with -lc since on some
17872
# systems, -lgcc has to come before -lc. If gcc already passes -lc
17873
# to ld, don't add -lc before -lgcc.
17874
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17875
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17877
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17880
(eval $ac_compile) 2>&5
17882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883
(exit $ac_status); } 2>conftest.err; then
17886
libobjs=conftest.$ac_objext
17888
wl=$lt_prog_compiler_wl_GCJ
17889
pic_flag=$lt_prog_compiler_pic_GCJ
17895
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17896
allow_undefined_flag_GCJ=
17897
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17898
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901
(exit $ac_status); }
17903
archive_cmds_need_lc_GCJ=no
17905
archive_cmds_need_lc_GCJ=yes
17907
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17909
cat conftest.err 1>&5
17912
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17913
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17920
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17921
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17922
library_names_spec=
17923
libname_spec='lib$name'
17927
postuninstall_cmds=
17931
shlibpath_overrides_runpath=unknown
17933
dynamic_linker="$host_os ld.so"
17934
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17936
need_lib_prefix=unknown
17937
hardcode_into_libs=no
17939
# when you set need_version to no, make sure it does not cause -set_version
17940
# flags to be left without arguments
17941
need_version=unknown
17946
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17947
shlibpath_var=LIBPATH
17949
# AIX 3 has no versioning support, so we append a major version to the name.
17950
soname_spec='${libname}${release}${shared_ext}$major'
17957
hardcode_into_libs=yes
17958
if test "$host_cpu" = ia64; then
17959
# AIX 5 supports IA64
17960
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17961
shlibpath_var=LD_LIBRARY_PATH
17963
# With GCC up to 2.95.x, collect2 would create an import file
17964
# for dependence libraries. The import file would start with
17965
# the line `#! .'. This would cause the generated library to
17966
# depend on `.', always an invalid library. This was fixed in
17967
# development snapshots of GCC prior to 3.0.
17969
aix4 | aix4.[01] | aix4.[01].*)
17970
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17972
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17975
can_build_shared=no
17979
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17980
# soname into executable. Probably we can add versioning support to
17981
# collect2, so additional links can be useful in future.
17982
if test "$aix_use_runtimelinking" = yes; then
17983
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17984
# instead of lib<name>.a to let people know that these are not
17985
# typical AIX shared libraries.
17986
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17988
# We preserve .a as extension for shared libraries through AIX4.2
17989
# and later when we are not doing run time linking.
17990
library_names_spec='${libname}${release}.a $libname.a'
17991
soname_spec='${libname}${release}${shared_ext}$major'
17993
shlibpath_var=LIBPATH
17998
library_names_spec='$libname.ixlibrary $libname.a'
17999
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18000
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'
18004
library_names_spec='${libname}${shared_ext}'
18005
dynamic_linker="$host_os ld.so"
18006
shlibpath_var=LIBRARY_PATH
18012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18013
soname_spec='${libname}${release}${shared_ext}$major'
18014
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18015
shlibpath_var=LD_LIBRARY_PATH
18016
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18017
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18018
# the default ld.so.conf also contains /usr/contrib/lib and
18019
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18020
# libtool to hard-code these into programs
18023
cygwin* | mingw* | pw32*)
18024
version_type=windows
18029
case $GCC,$host_os in
18030
yes,cygwin* | yes,mingw* | yes,pw32*)
18031
library_names_spec='$libname.dll.a'
18032
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18033
postinstall_cmds='base_file=`basename \${file}`~
18034
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18035
dldir=$destdir/`dirname \$dlpath`~
18036
test -d \$dldir || mkdir -p \$dldir~
18037
$install_prog $dir/$dlname \$dldir/$dlname~
18038
chmod a+x \$dldir/$dlname'
18039
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18040
dlpath=$dir/\$dldll~
18042
shlibpath_overrides_runpath=yes
18046
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18047
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18048
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18051
# MinGW DLLs use traditional 'lib' prefix
18052
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18053
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18054
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18055
# It is most probably a Windows format PATH printed by
18056
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18057
# path with ; separators, and with drive letters. We can handle the
18058
# drive letters (cygwin fileutils understands them), so leave them,
18059
# especially as we might pass files found there to a mingw objdump,
18060
# which wouldn't understand a cygwinified path. Ahh.
18061
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18063
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18067
# pw32 DLLs use 'pw' prefix rather than 'lib'
18068
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18074
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18077
dynamic_linker='Win32 ld.exe'
18078
# FIXME: first we should search . and the directory the executable is in
18082
darwin* | rhapsody*)
18083
dynamic_linker="$host_os dyld"
18084
version_type=darwin
18087
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18088
soname_spec='${libname}${release}${major}$shared_ext'
18089
shlibpath_overrides_runpath=yes
18090
shlibpath_var=DYLD_LIBRARY_PATH
18091
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18093
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18100
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18101
soname_spec='${libname}${release}${shared_ext}$major'
18102
shlibpath_var=LD_LIBRARY_PATH
18109
freebsd* | dragonfly*)
18110
# DragonFly does not have aout. When/if they implement a new
18111
# versioning mechanism, adjust this.
18112
if test -x /usr/bin/objformat; then
18113
objformat=`/usr/bin/objformat`
18116
freebsd[123]*) objformat=aout ;;
18117
*) objformat=elf ;;
18120
version_type=freebsd-$objformat
18121
case $version_type in
18123
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18128
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18132
shlibpath_var=LD_LIBRARY_PATH
18135
shlibpath_overrides_runpath=yes
18137
freebsd3.[01]* | freebsdelf3.[01]*)
18138
shlibpath_overrides_runpath=yes
18139
hardcode_into_libs=yes
18141
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18142
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18143
shlibpath_overrides_runpath=no
18144
hardcode_into_libs=yes
18146
*) # from 4.6 on, and DragonFly
18147
shlibpath_overrides_runpath=yes
18148
hardcode_into_libs=yes
18157
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18158
soname_spec='${libname}${release}${shared_ext}$major'
18159
shlibpath_var=LD_LIBRARY_PATH
18160
hardcode_into_libs=yes
18163
hpux9* | hpux10* | hpux11*)
18164
# Give a soname corresponding to the major version so that dld.sl refuses to
18165
# link against other versions.
18172
hardcode_into_libs=yes
18173
dynamic_linker="$host_os dld.so"
18174
shlibpath_var=LD_LIBRARY_PATH
18175
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177
soname_spec='${libname}${release}${shared_ext}$major'
18178
if test "X$HPUX_IA64_MODE" = X32; then
18179
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18181
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18183
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18187
hardcode_into_libs=yes
18188
dynamic_linker="$host_os dld.sl"
18189
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18190
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192
soname_spec='${libname}${release}${shared_ext}$major'
18193
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18194
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18198
dynamic_linker="$host_os dld.sl"
18199
shlibpath_var=SHLIB_PATH
18200
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18202
soname_spec='${libname}${release}${shared_ext}$major'
18205
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18206
postinstall_cmds='chmod 555 $lib'
18213
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18214
soname_spec='${libname}${release}${shared_ext}$major'
18215
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18216
shlibpath_var=LD_LIBRARY_PATH
18217
shlibpath_overrides_runpath=no
18218
hardcode_into_libs=yes
18221
irix5* | irix6* | nonstopux*)
18223
nonstopux*) version_type=nonstopux ;;
18225
if test "$lt_cv_prog_gnu_ld" = yes; then
18233
soname_spec='${libname}${release}${shared_ext}$major'
18234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18236
irix5* | nonstopux*)
18237
libsuff= shlibsuff=
18240
case $LD in # libtool.m4 will add one of these switches to LD
18241
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18242
libsuff= shlibsuff= libmagic=32-bit;;
18243
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18244
libsuff=32 shlibsuff=N32 libmagic=N32;;
18245
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18246
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18247
*) libsuff= shlibsuff= libmagic=never-match;;
18251
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18252
shlibpath_overrides_runpath=no
18253
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18254
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18255
hardcode_into_libs=yes
18258
# No shared lib support for Linux oldld, aout, or coff.
18259
linux*oldld* | linux*aout* | linux*coff*)
18263
# This must be Linux ELF.
18264
linux* | k*bsd*-gnu)
18268
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18269
soname_spec='${libname}${release}${shared_ext}$major'
18270
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18271
shlibpath_var=LD_LIBRARY_PATH
18272
shlibpath_overrides_runpath=no
18273
# This implies no fast_install, which is unacceptable.
18274
# Some rework will be needed to allow for fast_install
18275
# before this can be enabled.
18276
hardcode_into_libs=yes
18277
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18278
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18280
# Append ld.so.conf contents to the search path
18281
if test -f /etc/ld.so.conf; then
18282
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' ' '`
18283
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18286
# We used to test for /lib/ld.so.1 and disable shared libraries on
18287
# powerpc, because MkLinux only supported shared libraries with the
18288
# GNU dynamic linker. Since this was broken with cross compilers,
18289
# most powerpc-linux boxes support dynamic linking these days and
18290
# people can always --disable-shared, the test was removed, and we
18291
# assume the GNU/Linux dynamic linker is in use.
18292
dynamic_linker='GNU/Linux ld.so'
18299
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18301
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18302
dynamic_linker='NetBSD (a.out) ld.so'
18304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18305
soname_spec='${libname}${release}${shared_ext}$major'
18306
dynamic_linker='NetBSD ld.elf_so'
18308
shlibpath_var=LD_LIBRARY_PATH
18309
shlibpath_overrides_runpath=yes
18310
hardcode_into_libs=yes
18315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18316
shlibpath_var=LD_LIBRARY_PATH
18317
shlibpath_overrides_runpath=yes
18324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18325
soname_spec='${libname}${release}${shared_ext}$major'
18326
shlibpath_var=LD_LIBRARY_PATH
18327
shlibpath_overrides_runpath=yes
18332
sys_lib_dlsearch_path_spec="/usr/lib"
18334
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18336
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18337
*) need_version=no ;;
18339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18340
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18341
shlibpath_var=LD_LIBRARY_PATH
18342
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18344
openbsd2.[89] | openbsd2.[89].*)
18345
shlibpath_overrides_runpath=no
18348
shlibpath_overrides_runpath=yes
18352
shlibpath_overrides_runpath=yes
18357
libname_spec='$name'
18360
library_names_spec='$libname${shared_ext} $libname.a'
18361
dynamic_linker='OS/2 ld.exe'
18362
shlibpath_var=LIBPATH
18365
osf3* | osf4* | osf5*)
18369
soname_spec='${libname}${release}${shared_ext}$major'
18370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371
shlibpath_var=LD_LIBRARY_PATH
18372
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18373
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18385
soname_spec='${libname}${release}${shared_ext}$major'
18386
shlibpath_var=LD_LIBRARY_PATH
18387
shlibpath_overrides_runpath=yes
18388
hardcode_into_libs=yes
18389
# ldd complains unless libraries are executable
18390
postinstall_cmds='chmod +x $lib'
18395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18396
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18397
shlibpath_var=LD_LIBRARY_PATH
18398
shlibpath_overrides_runpath=yes
18399
if test "$with_gnu_ld" = yes; then
18407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18408
soname_spec='${libname}${release}${shared_ext}$major'
18409
shlibpath_var=LD_LIBRARY_PATH
18410
case $host_vendor in
18412
shlibpath_overrides_runpath=no
18414
export_dynamic_flag_spec='${wl}-Blargedynsym'
18415
runpath_var=LD_RUN_PATH
18423
shlibpath_overrides_runpath=no
18424
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18430
if test -d /usr/nec ;then
18432
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18433
soname_spec='$libname${shared_ext}.$major'
18434
shlibpath_var=LD_LIBRARY_PATH
18438
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18439
version_type=freebsd-elf
18442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18443
soname_spec='${libname}${release}${shared_ext}$major'
18444
shlibpath_var=LD_LIBRARY_PATH
18445
hardcode_into_libs=yes
18446
if test "$with_gnu_ld" = yes; then
18447
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18448
shlibpath_overrides_runpath=no
18450
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18451
shlibpath_overrides_runpath=yes
18454
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18458
sys_lib_dlsearch_path_spec='/usr/lib'
18463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18464
soname_spec='${libname}${release}${shared_ext}$major'
18465
shlibpath_var=LD_LIBRARY_PATH
18472
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18473
echo "${ECHO_T}$dynamic_linker" >&6; }
18474
test "$dynamic_linker" = no && can_build_shared=no
18476
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18477
if test "$GCC" = yes; then
18478
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18481
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18482
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18483
hardcode_action_GCJ=
18484
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18485
test -n "$runpath_var_GCJ" || \
18486
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18488
# We can hardcode non-existant directories.
18489
if test "$hardcode_direct_GCJ" != no &&
18490
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18491
# have to relink, otherwise we might link with an installed library
18492
# when we should be linking with a yet-to-be-installed one
18493
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18494
test "$hardcode_minus_L_GCJ" != no; then
18495
# Linking always hardcodes the temporary library directory.
18496
hardcode_action_GCJ=relink
18498
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18499
hardcode_action_GCJ=immediate
18502
# We cannot hardcode anything, or else we can only hardcode existing
18504
hardcode_action_GCJ=unsupported
18506
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18507
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18509
if test "$hardcode_action_GCJ" = relink; then
18510
# Fast installation is not supported
18511
enable_fast_install=no
18512
elif test "$shlibpath_overrides_runpath" = yes ||
18513
test "$enable_shared" = no; then
18514
# Fast installation is not necessary
18515
enable_fast_install=needless
18519
# The else clause should only fire when bootstrapping the
18520
# libtool distribution, otherwise you forgot to ship ltmain.sh
18521
# with your package, and you will get complaints that there are
18522
# no rules to generate ltmain.sh.
18523
if test -f "$ltmain"; then
18524
# See if we are running on zsh, and set the options which allow our commands through
18525
# without removal of \ escapes.
18526
if test -n "${ZSH_VERSION+set}" ; then
18527
setopt NO_GLOB_SUBST
18529
# Now quote all the things that may contain metacharacters while being
18530
# careful not to overquote the AC_SUBSTed values. We take copies of the
18531
# variables and quote the copies for generation of the libtool script.
18532
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18534
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18535
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18536
deplibs_check_method reload_flag reload_cmds need_locks \
18537
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18538
lt_cv_sys_global_symbol_to_c_name_address \
18539
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18540
old_postinstall_cmds old_postuninstall_cmds \
18544
lt_prog_compiler_wl_GCJ \
18545
lt_prog_compiler_pic_GCJ \
18546
lt_prog_compiler_static_GCJ \
18547
lt_prog_compiler_no_builtin_flag_GCJ \
18548
export_dynamic_flag_spec_GCJ \
18549
thread_safe_flag_spec_GCJ \
18550
whole_archive_flag_spec_GCJ \
18551
enable_shared_with_static_runtimes_GCJ \
18552
old_archive_cmds_GCJ \
18553
old_archive_from_new_cmds_GCJ \
18554
predep_objects_GCJ \
18555
postdep_objects_GCJ \
18558
compiler_lib_search_path_GCJ \
18560
archive_expsym_cmds_GCJ \
18561
postinstall_cmds_GCJ \
18562
postuninstall_cmds_GCJ \
18563
old_archive_from_expsyms_cmds_GCJ \
18564
allow_undefined_flag_GCJ \
18565
no_undefined_flag_GCJ \
18566
export_symbols_cmds_GCJ \
18567
hardcode_libdir_flag_spec_GCJ \
18568
hardcode_libdir_flag_spec_ld_GCJ \
18569
hardcode_libdir_separator_GCJ \
18570
hardcode_automatic_GCJ \
18572
module_expsym_cmds_GCJ \
18573
lt_cv_prog_compiler_c_o_GCJ \
18574
fix_srcfile_path_GCJ \
18575
exclude_expsyms_GCJ \
18576
include_expsyms_GCJ; do
18579
old_archive_cmds_GCJ | \
18580
old_archive_from_new_cmds_GCJ | \
18581
archive_cmds_GCJ | \
18582
archive_expsym_cmds_GCJ | \
18583
module_cmds_GCJ | \
18584
module_expsym_cmds_GCJ | \
18585
old_archive_from_expsyms_cmds_GCJ | \
18586
export_symbols_cmds_GCJ | \
18587
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18588
postinstall_cmds | postuninstall_cmds | \
18589
old_postinstall_cmds | old_postuninstall_cmds | \
18590
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18591
# Double-quote double-evaled strings.
18592
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18595
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18601
*'\$0 --fallback-echo"')
18602
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18608
cat <<__EOF__ >> "$cfgfile"
18609
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18611
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18613
# Shell to use when invoking shell scripts.
18616
# Whether or not to build shared libraries.
18617
build_libtool_libs=$enable_shared
18619
# Whether or not to build static libraries.
18620
build_old_libs=$enable_static
18622
# Whether or not to add -lc for building shared libraries.
18623
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18625
# Whether or not to disallow shared libs when runtime libs are static
18626
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18628
# Whether or not to optimize for fast installation.
18629
fast_install=$enable_fast_install
18632
host_alias=$host_alias
18636
# The build system.
18637
build_alias=$build_alias
18641
# An echo program that does not interpret backslashes.
18646
AR_FLAGS=$lt_AR_FLAGS
18651
# LTCC compiler flags.
18652
LTCFLAGS=$lt_LTCFLAGS
18654
# A language-specific compiler.
18655
CC=$lt_compiler_GCJ
18657
# Is the compiler the GNU C compiler?
18663
# The linker used to build libraries.
18666
# Whether we need hard or soft links.
18669
# A BSD-compatible nm program.
18672
# A symbol stripping program
18675
# Used to examine libraries when file_magic_cmd begins "file"
18676
MAGIC_CMD=$MAGIC_CMD
18678
# Used on cygwin: DLL creation program.
18681
# Used on cygwin: object dumper.
18684
# Used on cygwin: assembler.
18687
# The name of the directory that contains temporary libtool files.
18690
# How to create reloadable object files.
18691
reload_flag=$lt_reload_flag
18692
reload_cmds=$lt_reload_cmds
18694
# How to pass a linker flag through the compiler.
18695
wl=$lt_lt_prog_compiler_wl_GCJ
18697
# Object file suffix (normally "o").
18698
objext="$ac_objext"
18700
# Old archive suffix (normally "a").
18703
# Shared library suffix (normally ".so").
18704
shrext_cmds='$shrext_cmds'
18706
# Executable file suffix (normally "").
18709
# Additional compiler flags for building library objects.
18710
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18713
# What is the maximum length of a command?
18714
max_cmd_len=$lt_cv_sys_max_cmd_len
18716
# Does compiler simultaneously support -c and -o options?
18717
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18719
# Must we lock files when doing compilation?
18720
need_locks=$lt_need_locks
18722
# Do we need the lib prefix for modules?
18723
need_lib_prefix=$need_lib_prefix
18725
# Do we need a version for libraries?
18726
need_version=$need_version
18728
# Whether dlopen is supported.
18729
dlopen_support=$enable_dlopen
18731
# Whether dlopen of programs is supported.
18732
dlopen_self=$enable_dlopen_self
18734
# Whether dlopen of statically linked programs is supported.
18735
dlopen_self_static=$enable_dlopen_self_static
18737
# Compiler flag to prevent dynamic linking.
18738
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18740
# Compiler flag to turn off builtin functions.
18741
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18743
# Compiler flag to allow reflexive dlopens.
18744
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18746
# Compiler flag to generate shared objects directly from archives.
18747
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18749
# Compiler flag to generate thread-safe objects.
18750
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18752
# Library versioning type.
18753
version_type=$version_type
18755
# Format of library name prefix.
18756
libname_spec=$lt_libname_spec
18758
# List of archive names. First name is the real one, the rest are links.
18759
# The last name is the one that the linker finds with -lNAME.
18760
library_names_spec=$lt_library_names_spec
18762
# The coded name of the library, if different from the real name.
18763
soname_spec=$lt_soname_spec
18765
# Commands used to build and install an old-style archive.
18767
old_archive_cmds=$lt_old_archive_cmds_GCJ
18768
old_postinstall_cmds=$lt_old_postinstall_cmds
18769
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18771
# Create an old-style archive from a shared archive.
18772
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18774
# Create a temporary old-style archive to link instead of a shared archive.
18775
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18777
# Commands used to build and install a shared archive.
18778
archive_cmds=$lt_archive_cmds_GCJ
18779
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18780
postinstall_cmds=$lt_postinstall_cmds
18781
postuninstall_cmds=$lt_postuninstall_cmds
18783
# Commands used to build a loadable module (assumed same as above if empty)
18784
module_cmds=$lt_module_cmds_GCJ
18785
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18787
# Commands to strip libraries.
18788
old_striplib=$lt_old_striplib
18789
striplib=$lt_striplib
18791
# Dependencies to place before the objects being linked to create a
18793
predep_objects=$lt_predep_objects_GCJ
18795
# Dependencies to place after the objects being linked to create a
18797
postdep_objects=$lt_postdep_objects_GCJ
18799
# Dependencies to place before the objects being linked to create a
18801
predeps=$lt_predeps_GCJ
18803
# Dependencies to place after the objects being linked to create a
18805
postdeps=$lt_postdeps_GCJ
18807
# The library search path used internally by the compiler when linking
18808
# a shared library.
18809
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18811
# Method to check whether dependent libraries are shared objects.
18812
deplibs_check_method=$lt_deplibs_check_method
18814
# Command to use when deplibs_check_method == file_magic.
18815
file_magic_cmd=$lt_file_magic_cmd
18817
# Flag that allows shared libraries with undefined symbols to be built.
18818
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18820
# Flag that forces no undefined symbols.
18821
no_undefined_flag=$lt_no_undefined_flag_GCJ
18823
# Commands used to finish a libtool library installation in a directory.
18824
finish_cmds=$lt_finish_cmds
18826
# Same as above, but a single script fragment to be evaled but not shown.
18827
finish_eval=$lt_finish_eval
18829
# Take the output of nm and produce a listing of raw symbols and C names.
18830
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18832
# Transform the output of nm in a proper C declaration
18833
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18835
# Transform the output of nm in a C name address pair
18836
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18838
# This is the shared library runtime path variable.
18839
runpath_var=$runpath_var
18841
# This is the shared library path variable.
18842
shlibpath_var=$shlibpath_var
18844
# Is shlibpath searched before the hard-coded library search path?
18845
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18847
# How to hardcode a shared library path into an executable.
18848
hardcode_action=$hardcode_action_GCJ
18850
# Whether we should hardcode library paths into libraries.
18851
hardcode_into_libs=$hardcode_into_libs
18853
# Flag to hardcode \$libdir into a binary during linking.
18854
# This must work even if \$libdir does not exist.
18855
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18857
# If ld is used when linking, flag to hardcode \$libdir into
18858
# a binary during linking. This must work even if \$libdir does
18860
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18862
# Whether we need a single -rpath flag with a separated argument.
18863
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18865
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18866
# resulting binary.
18867
hardcode_direct=$hardcode_direct_GCJ
18869
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18870
# resulting binary.
18871
hardcode_minus_L=$hardcode_minus_L_GCJ
18873
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18874
# the resulting binary.
18875
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18877
# Set to yes if building a shared library automatically hardcodes DIR into the library
18878
# and all subsequent libraries and executables linked against it.
18879
hardcode_automatic=$hardcode_automatic_GCJ
18881
# Variables whose values should be saved in libtool wrapper scripts and
18882
# restored at relink time.
18883
variables_saved_for_relink="$variables_saved_for_relink"
18885
# Whether libtool must link a program against all its dependency libraries.
18886
link_all_deplibs=$link_all_deplibs_GCJ
18888
# Compile-time system search path for libraries
18889
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18891
# Run-time system search path for libraries
18892
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18894
# Fix the shell variable \$srcfile for the compiler.
18895
fix_srcfile_path=$lt_fix_srcfile_path
18897
# Set to yes if exported symbols are required.
18898
always_export_symbols=$always_export_symbols_GCJ
18900
# The commands to list exported symbols.
18901
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18903
# The commands to extract the exported symbol list from a shared archive.
18904
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18906
# Symbols that should not be listed in the preloaded symbols.
18907
exclude_expsyms=$lt_exclude_expsyms_GCJ
18909
# Symbols that must always be exported.
18910
include_expsyms=$lt_include_expsyms_GCJ
18912
# ### END LIBTOOL TAG CONFIG: $tagname
18918
# If there is no Makefile yet, we rely on a make rule to execute
18919
# `config.status --recheck' to rerun these tests and create the
18920
# libtool script then.
18921
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18922
if test -f "$ltmain_in"; then
18923
test -f Makefile && make "$ltmain"
18929
ac_cpp='$CPP $CPPFLAGS'
18930
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18931
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18932
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18944
# Source file extension for RC test sources.
18947
# Object file extension for compiled RC test sources.
18951
# Code to be used in simple compile tests
18952
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18954
# Code to be used in simple link tests
18955
lt_simple_link_test_code="$lt_simple_compile_test_code"
18957
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18959
# If no C compiler was specified, use CC.
18962
# If no C compiler flags were specified, use CFLAGS.
18963
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18965
# Allow CC to be a program name with arguments.
18969
# save warnings/boilerplate of simple test code
18970
ac_outfile=conftest.$ac_objext
18971
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18972
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18973
_lt_compiler_boilerplate=`cat conftest.err`
18976
ac_outfile=conftest.$ac_objext
18977
echo "$lt_simple_link_test_code" >conftest.$ac_ext
18978
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18979
_lt_linker_boilerplate=`cat conftest.err`
18983
# Allow CC to be a program name with arguments.
18988
for cc_temp in $compiler""; do
18990
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18991
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18996
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18998
lt_cv_prog_compiler_c_o_RC=yes
19000
# The else clause should only fire when bootstrapping the
19001
# libtool distribution, otherwise you forgot to ship ltmain.sh
19002
# with your package, and you will get complaints that there are
19003
# no rules to generate ltmain.sh.
19004
if test -f "$ltmain"; then
19005
# See if we are running on zsh, and set the options which allow our commands through
19006
# without removal of \ escapes.
19007
if test -n "${ZSH_VERSION+set}" ; then
19008
setopt NO_GLOB_SUBST
19010
# Now quote all the things that may contain metacharacters while being
19011
# careful not to overquote the AC_SUBSTed values. We take copies of the
19012
# variables and quote the copies for generation of the libtool script.
19013
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19015
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19016
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19017
deplibs_check_method reload_flag reload_cmds need_locks \
19018
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19019
lt_cv_sys_global_symbol_to_c_name_address \
19020
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19021
old_postinstall_cmds old_postuninstall_cmds \
19025
lt_prog_compiler_wl_RC \
19026
lt_prog_compiler_pic_RC \
19027
lt_prog_compiler_static_RC \
19028
lt_prog_compiler_no_builtin_flag_RC \
19029
export_dynamic_flag_spec_RC \
19030
thread_safe_flag_spec_RC \
19031
whole_archive_flag_spec_RC \
19032
enable_shared_with_static_runtimes_RC \
19033
old_archive_cmds_RC \
19034
old_archive_from_new_cmds_RC \
19035
predep_objects_RC \
19036
postdep_objects_RC \
19039
compiler_lib_search_path_RC \
19041
archive_expsym_cmds_RC \
19042
postinstall_cmds_RC \
19043
postuninstall_cmds_RC \
19044
old_archive_from_expsyms_cmds_RC \
19045
allow_undefined_flag_RC \
19046
no_undefined_flag_RC \
19047
export_symbols_cmds_RC \
19048
hardcode_libdir_flag_spec_RC \
19049
hardcode_libdir_flag_spec_ld_RC \
19050
hardcode_libdir_separator_RC \
19051
hardcode_automatic_RC \
19053
module_expsym_cmds_RC \
19054
lt_cv_prog_compiler_c_o_RC \
19055
fix_srcfile_path_RC \
19056
exclude_expsyms_RC \
19057
include_expsyms_RC; do
19060
old_archive_cmds_RC | \
19061
old_archive_from_new_cmds_RC | \
19062
archive_cmds_RC | \
19063
archive_expsym_cmds_RC | \
19065
module_expsym_cmds_RC | \
19066
old_archive_from_expsyms_cmds_RC | \
19067
export_symbols_cmds_RC | \
19068
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19069
postinstall_cmds | postuninstall_cmds | \
19070
old_postinstall_cmds | old_postuninstall_cmds | \
19071
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19072
# Double-quote double-evaled strings.
19073
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19076
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19082
*'\$0 --fallback-echo"')
19083
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19089
cat <<__EOF__ >> "$cfgfile"
19090
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19092
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19094
# Shell to use when invoking shell scripts.
19097
# Whether or not to build shared libraries.
19098
build_libtool_libs=$enable_shared
19100
# Whether or not to build static libraries.
19101
build_old_libs=$enable_static
19103
# Whether or not to add -lc for building shared libraries.
19104
build_libtool_need_lc=$archive_cmds_need_lc_RC
19106
# Whether or not to disallow shared libs when runtime libs are static
19107
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19109
# Whether or not to optimize for fast installation.
19110
fast_install=$enable_fast_install
19113
host_alias=$host_alias
19117
# The build system.
19118
build_alias=$build_alias
19122
# An echo program that does not interpret backslashes.
19127
AR_FLAGS=$lt_AR_FLAGS
19132
# LTCC compiler flags.
19133
LTCFLAGS=$lt_LTCFLAGS
19135
# A language-specific compiler.
19138
# Is the compiler the GNU C compiler?
19144
# The linker used to build libraries.
19147
# Whether we need hard or soft links.
19150
# A BSD-compatible nm program.
19153
# A symbol stripping program
19156
# Used to examine libraries when file_magic_cmd begins "file"
19157
MAGIC_CMD=$MAGIC_CMD
19159
# Used on cygwin: DLL creation program.
19162
# Used on cygwin: object dumper.
19165
# Used on cygwin: assembler.
19168
# The name of the directory that contains temporary libtool files.
19171
# How to create reloadable object files.
19172
reload_flag=$lt_reload_flag
19173
reload_cmds=$lt_reload_cmds
19175
# How to pass a linker flag through the compiler.
19176
wl=$lt_lt_prog_compiler_wl_RC
19178
# Object file suffix (normally "o").
19179
objext="$ac_objext"
19181
# Old archive suffix (normally "a").
19184
# Shared library suffix (normally ".so").
19185
shrext_cmds='$shrext_cmds'
19187
# Executable file suffix (normally "").
19190
# Additional compiler flags for building library objects.
19191
pic_flag=$lt_lt_prog_compiler_pic_RC
19194
# What is the maximum length of a command?
19195
max_cmd_len=$lt_cv_sys_max_cmd_len
19197
# Does compiler simultaneously support -c and -o options?
19198
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19200
# Must we lock files when doing compilation?
19201
need_locks=$lt_need_locks
19203
# Do we need the lib prefix for modules?
19204
need_lib_prefix=$need_lib_prefix
19206
# Do we need a version for libraries?
19207
need_version=$need_version
19209
# Whether dlopen is supported.
19210
dlopen_support=$enable_dlopen
19212
# Whether dlopen of programs is supported.
19213
dlopen_self=$enable_dlopen_self
19215
# Whether dlopen of statically linked programs is supported.
19216
dlopen_self_static=$enable_dlopen_self_static
19218
# Compiler flag to prevent dynamic linking.
19219
link_static_flag=$lt_lt_prog_compiler_static_RC
19221
# Compiler flag to turn off builtin functions.
19222
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19224
# Compiler flag to allow reflexive dlopens.
19225
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19227
# Compiler flag to generate shared objects directly from archives.
19228
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19230
# Compiler flag to generate thread-safe objects.
19231
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19233
# Library versioning type.
19234
version_type=$version_type
19236
# Format of library name prefix.
19237
libname_spec=$lt_libname_spec
19239
# List of archive names. First name is the real one, the rest are links.
19240
# The last name is the one that the linker finds with -lNAME.
19241
library_names_spec=$lt_library_names_spec
19243
# The coded name of the library, if different from the real name.
19244
soname_spec=$lt_soname_spec
19246
# Commands used to build and install an old-style archive.
19248
old_archive_cmds=$lt_old_archive_cmds_RC
19249
old_postinstall_cmds=$lt_old_postinstall_cmds
19250
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19252
# Create an old-style archive from a shared archive.
19253
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19255
# Create a temporary old-style archive to link instead of a shared archive.
19256
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19258
# Commands used to build and install a shared archive.
19259
archive_cmds=$lt_archive_cmds_RC
19260
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19261
postinstall_cmds=$lt_postinstall_cmds
19262
postuninstall_cmds=$lt_postuninstall_cmds
19264
# Commands used to build a loadable module (assumed same as above if empty)
19265
module_cmds=$lt_module_cmds_RC
19266
module_expsym_cmds=$lt_module_expsym_cmds_RC
19268
# Commands to strip libraries.
19269
old_striplib=$lt_old_striplib
19270
striplib=$lt_striplib
19272
# Dependencies to place before the objects being linked to create a
19274
predep_objects=$lt_predep_objects_RC
19276
# Dependencies to place after the objects being linked to create a
19278
postdep_objects=$lt_postdep_objects_RC
19280
# Dependencies to place before the objects being linked to create a
19282
predeps=$lt_predeps_RC
19284
# Dependencies to place after the objects being linked to create a
19286
postdeps=$lt_postdeps_RC
19288
# The library search path used internally by the compiler when linking
19289
# a shared library.
19290
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19292
# Method to check whether dependent libraries are shared objects.
19293
deplibs_check_method=$lt_deplibs_check_method
19295
# Command to use when deplibs_check_method == file_magic.
19296
file_magic_cmd=$lt_file_magic_cmd
19298
# Flag that allows shared libraries with undefined symbols to be built.
19299
allow_undefined_flag=$lt_allow_undefined_flag_RC
19301
# Flag that forces no undefined symbols.
19302
no_undefined_flag=$lt_no_undefined_flag_RC
19304
# Commands used to finish a libtool library installation in a directory.
19305
finish_cmds=$lt_finish_cmds
19307
# Same as above, but a single script fragment to be evaled but not shown.
19308
finish_eval=$lt_finish_eval
19310
# Take the output of nm and produce a listing of raw symbols and C names.
19311
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19313
# Transform the output of nm in a proper C declaration
19314
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19316
# Transform the output of nm in a C name address pair
19317
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19319
# This is the shared library runtime path variable.
19320
runpath_var=$runpath_var
19322
# This is the shared library path variable.
19323
shlibpath_var=$shlibpath_var
19325
# Is shlibpath searched before the hard-coded library search path?
19326
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19328
# How to hardcode a shared library path into an executable.
19329
hardcode_action=$hardcode_action_RC
19331
# Whether we should hardcode library paths into libraries.
19332
hardcode_into_libs=$hardcode_into_libs
19334
# Flag to hardcode \$libdir into a binary during linking.
19335
# This must work even if \$libdir does not exist.
19336
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19338
# If ld is used when linking, flag to hardcode \$libdir into
19339
# a binary during linking. This must work even if \$libdir does
19341
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19343
# Whether we need a single -rpath flag with a separated argument.
19344
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19346
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19347
# resulting binary.
19348
hardcode_direct=$hardcode_direct_RC
19350
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19351
# resulting binary.
19352
hardcode_minus_L=$hardcode_minus_L_RC
19354
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19355
# the resulting binary.
19356
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19358
# Set to yes if building a shared library automatically hardcodes DIR into the library
19359
# and all subsequent libraries and executables linked against it.
19360
hardcode_automatic=$hardcode_automatic_RC
19362
# Variables whose values should be saved in libtool wrapper scripts and
19363
# restored at relink time.
19364
variables_saved_for_relink="$variables_saved_for_relink"
19366
# Whether libtool must link a program against all its dependency libraries.
19367
link_all_deplibs=$link_all_deplibs_RC
19369
# Compile-time system search path for libraries
19370
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19372
# Run-time system search path for libraries
19373
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19375
# Fix the shell variable \$srcfile for the compiler.
19376
fix_srcfile_path=$lt_fix_srcfile_path
19378
# Set to yes if exported symbols are required.
19379
always_export_symbols=$always_export_symbols_RC
19381
# The commands to list exported symbols.
19382
export_symbols_cmds=$lt_export_symbols_cmds_RC
19384
# The commands to extract the exported symbol list from a shared archive.
19385
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19387
# Symbols that should not be listed in the preloaded symbols.
19388
exclude_expsyms=$lt_exclude_expsyms_RC
19390
# Symbols that must always be exported.
19391
include_expsyms=$lt_include_expsyms_RC
19393
# ### END LIBTOOL TAG CONFIG: $tagname
19399
# If there is no Makefile yet, we rely on a make rule to execute
19400
# `config.status --recheck' to rerun these tests and create the
19401
# libtool script then.
19402
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19403
if test -f "$ltmain_in"; then
19404
test -f Makefile && make "$ltmain"
19410
ac_cpp='$CPP $CPPFLAGS'
19411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19420
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19421
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19422
{ (exit 1); exit 1; }; }
19426
# Append the new tag name to the list of available tags.
19427
if test -n "$tagname" ; then
19428
available_tags="$available_tags $tagname"
19434
# Now substitute the updated list of available tags.
19435
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19436
mv "${ofile}T" "$ofile"
19440
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19441
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19442
{ (exit 1); exit 1; }; }
19448
# This can be used to rebuild libtool when needed
19449
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19451
# Always use our own libtool.
19452
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19454
# Prevent multiple expansion
19475
# Extract the first word of "setcap", so it can be a program name with args.
19476
set dummy setcap; ac_word=$2
19477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19479
if test "${ac_cv_prog_SETCAP+set}" = set; then
19480
echo $ECHO_N "(cached) $ECHO_C" >&6
19482
if test -n "$SETCAP"; then
19483
ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test.
19485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19486
for as_dir in $PATH
19489
test -z "$as_dir" && as_dir=.
19490
for ac_exec_ext in '' $ac_executable_extensions; do
19491
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19492
ac_cv_prog_SETCAP="yes"
19493
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19500
test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no"
19503
SETCAP=$ac_cv_prog_SETCAP
19504
if test -n "$SETCAP"; then
19505
{ echo "$as_me:$LINENO: result: $SETCAP" >&5
19506
echo "${ECHO_T}$SETCAP" >&6; }
19508
{ echo "$as_me:$LINENO: result: no" >&5
19509
echo "${ECHO_T}no" >&6; }
19513
# Extract the first word of "docbook2man", so it can be a program name with args.
19514
set dummy docbook2man; ac_word=$2
19515
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19516
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19517
if test "${ac_cv_prog_DOCBOOK+set}" = set; then
19518
echo $ECHO_N "(cached) $ECHO_C" >&6
19520
if test -n "$DOCBOOK"; then
19521
ac_cv_prog_DOCBOOK="$DOCBOOK" # Let the user override the test.
19523
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19524
for as_dir in $PATH
19527
test -z "$as_dir" && as_dir=.
19528
for ac_exec_ext in '' $ac_executable_extensions; do
19529
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19530
ac_cv_prog_DOCBOOK="yes"
19531
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19538
test -z "$ac_cv_prog_DOCBOOK" && ac_cv_prog_DOCBOOK="no"
19541
DOCBOOK=$ac_cv_prog_DOCBOOK
19542
if test -n "$DOCBOOK"; then
19543
{ echo "$as_me:$LINENO: result: $DOCBOOK" >&5
19544
echo "${ECHO_T}$DOCBOOK" >&6; }
19546
{ echo "$as_me:$LINENO: result: no" >&5
19547
echo "${ECHO_T}no" >&6; }
19551
if test x$DOCBOOK = xyes; then
19552
ENABLE_DOCBOOK_TRUE=
19553
ENABLE_DOCBOOK_FALSE='#'
19555
ENABLE_DOCBOOK_TRUE='#'
19556
ENABLE_DOCBOOK_FALSE=
19563
prefix_save=$prefix
19564
exec_prefix_save=$exec_prefix
19566
if test "x$prefix" = "xNONE"; then
19567
prefix="$ac_default_prefix"
19569
if test "x$exec_prefix" = "xNONE"; then
19570
exec_prefix=$prefix
19573
full_var="$FROM_VAR"
19575
new_full_var="`eval echo $full_var`"
19576
if test "x$new_full_var" = "x$full_var"; then break; fi
19577
full_var=$new_full_var
19580
full_var=$new_full_var
19584
prefix=$prefix_save
19585
exec_prefix=$exec_prefix_save
19589
FROM_VAR=$libexecdir
19591
prefix_save=$prefix
19592
exec_prefix_save=$exec_prefix
19594
if test "x$prefix" = "xNONE"; then
19595
prefix="$ac_default_prefix"
19597
if test "x$exec_prefix" = "xNONE"; then
19598
exec_prefix=$prefix
19601
full_var="$FROM_VAR"
19603
new_full_var="`eval echo $full_var`"
19604
if test "x$new_full_var" = "x$full_var"; then break; fi
19605
full_var=$new_full_var
19608
full_var=$new_full_var
19609
LIBEXECDIR="$full_var"
19612
prefix=$prefix_save
19613
exec_prefix=$exec_prefix_save
19617
FROM_VAR=$sysconfdir
19619
prefix_save=$prefix
19620
exec_prefix_save=$exec_prefix
19622
if test "x$prefix" = "xNONE"; then
19623
prefix="$ac_default_prefix"
19625
if test "x$exec_prefix" = "xNONE"; then
19626
exec_prefix=$prefix
19629
full_var="$FROM_VAR"
19631
new_full_var="`eval echo $full_var`"
19632
if test "x$new_full_var" = "x$full_var"; then break; fi
19633
full_var=$new_full_var
19636
full_var=$new_full_var
19637
SYSCONFDIR="$full_var"
19640
prefix=$prefix_save
19641
exec_prefix=$exec_prefix_save
19644
EXP_VAR=LOCALSTATEDIR
19645
FROM_VAR=$localstatedir
19647
prefix_save=$prefix
19648
exec_prefix_save=$exec_prefix
19650
if test "x$prefix" = "xNONE"; then
19651
prefix="$ac_default_prefix"
19653
if test "x$exec_prefix" = "xNONE"; then
19654
exec_prefix=$prefix
19657
full_var="$FROM_VAR"
19659
new_full_var="`eval echo $full_var`"
19660
if test "x$new_full_var" = "x$full_var"; then break; fi
19661
full_var=$new_full_var
19664
full_var=$new_full_var
19665
LOCALSTATEDIR="$full_var"
19668
prefix=$prefix_save
19669
exec_prefix=$exec_prefix_save
19673
FROM_VAR="${localstatedir}/lib/lxc"
19675
prefix_save=$prefix
19676
exec_prefix_save=$exec_prefix
19678
if test "x$prefix" = "xNONE"; then
19679
prefix="$ac_default_prefix"
19681
if test "x$exec_prefix" = "xNONE"; then
19682
exec_prefix=$prefix
19685
full_var="$FROM_VAR"
19687
new_full_var="`eval echo $full_var`"
19688
if test "x$new_full_var" = "x$full_var"; then break; fi
19689
full_var=$new_full_var
19692
full_var=$new_full_var
19693
LXCPATH="$full_var"
19696
prefix=$prefix_save
19697
exec_prefix=$exec_prefix_save
19702
for ac_header in linux/netlink.h linux/genetlink.h
19704
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19705
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19706
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19707
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19708
echo $ECHO_N "(cached) $ECHO_C" >&6
19710
cat >conftest.$ac_ext <<_ACEOF
19713
cat confdefs.h >>conftest.$ac_ext
19714
cat >>conftest.$ac_ext <<_ACEOF
19715
/* end confdefs.h. */
19716
#include <linux/types.h>
19717
#include <bits/sockaddr.h>
19718
#include <linux/socket.h>
19720
#include <$ac_header>
19722
rm -f conftest.$ac_objext
19723
if { (ac_try="$ac_compile"
19724
case "(($ac_try" in
19725
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726
*) ac_try_echo=$ac_try;;
19728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729
(eval "$ac_compile") 2>conftest.er1
19731
grep -v '^ *+' conftest.er1 >conftest.err
19733
cat conftest.err >&5
19734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735
(exit $ac_status); } && {
19736
test -z "$ac_c_werror_flag" ||
19737
test ! -s conftest.err
19738
} && test -s conftest.$ac_objext; then
19739
eval "$as_ac_Header=yes"
19741
echo "$as_me: failed program was:" >&5
19742
sed 's/^/| /' conftest.$ac_ext >&5
19744
eval "$as_ac_Header=no"
19747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749
ac_res=`eval echo '${'$as_ac_Header'}'`
19750
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19751
echo "${ECHO_T}$ac_res" >&6; }
19752
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19753
cat >>confdefs.h <<_ACEOF
19754
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19758
{ { echo "$as_me:$LINENO: error: netlink headers not found" >&5
19759
echo "$as_me: error: netlink headers not found" >&2;}
19760
{ (exit 1); exit 1; }; }
19767
for ac_header in sys/capability.h
19769
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19770
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19771
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19772
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19773
echo $ECHO_N "(cached) $ECHO_C" >&6
19775
cat >conftest.$ac_ext <<_ACEOF
19778
cat confdefs.h >>conftest.$ac_ext
19779
cat >>conftest.$ac_ext <<_ACEOF
19780
/* end confdefs.h. */
19781
#include <sys/capability.h>
19783
#include <$ac_header>
19785
rm -f conftest.$ac_objext
19786
if { (ac_try="$ac_compile"
19787
case "(($ac_try" in
19788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789
*) ac_try_echo=$ac_try;;
19791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792
(eval "$ac_compile") 2>conftest.er1
19794
grep -v '^ *+' conftest.er1 >conftest.err
19796
cat conftest.err >&5
19797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798
(exit $ac_status); } && {
19799
test -z "$ac_c_werror_flag" ||
19800
test ! -s conftest.err
19801
} && test -s conftest.$ac_objext; then
19802
eval "$as_ac_Header=yes"
19804
echo "$as_me: failed program was:" >&5
19805
sed 's/^/| /' conftest.$ac_ext >&5
19807
eval "$as_ac_Header=no"
19810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812
ac_res=`eval echo '${'$as_ac_Header'}'`
19813
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19814
echo "${ECHO_T}$ac_res" >&6; }
19815
if test `eval echo '${'$as_ac_Header'}'` = yes; then
19816
cat >>confdefs.h <<_ACEOF
19817
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19821
{ { echo "$as_me:$LINENO: error: please install libcap-devel." >&5
19822
echo "$as_me: error: please install libcap-devel." >&2;}
19823
{ (exit 1); exit 1; }; }
19829
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
19830
{ echo "$as_me:$LINENO: checking whether PR_CAPBSET_DROP is declared" >&5
19831
echo $ECHO_N "checking whether PR_CAPBSET_DROP is declared... $ECHO_C" >&6; }
19832
if test "${ac_cv_have_decl_PR_CAPBSET_DROP+set}" = set; then
19833
echo $ECHO_N "(cached) $ECHO_C" >&6
19835
cat >conftest.$ac_ext <<_ACEOF
19838
cat confdefs.h >>conftest.$ac_ext
19839
cat >>conftest.$ac_ext <<_ACEOF
19840
/* end confdefs.h. */
19841
#include <sys/prctl.h>
19846
#ifndef PR_CAPBSET_DROP
19847
(void) PR_CAPBSET_DROP;
19854
rm -f conftest.$ac_objext
19855
if { (ac_try="$ac_compile"
19856
case "(($ac_try" in
19857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858
*) ac_try_echo=$ac_try;;
19860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861
(eval "$ac_compile") 2>conftest.er1
19863
grep -v '^ *+' conftest.er1 >conftest.err
19865
cat conftest.err >&5
19866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867
(exit $ac_status); } && {
19868
test -z "$ac_c_werror_flag" ||
19869
test ! -s conftest.err
19870
} && test -s conftest.$ac_objext; then
19871
ac_cv_have_decl_PR_CAPBSET_DROP=yes
19873
echo "$as_me: failed program was:" >&5
19874
sed 's/^/| /' conftest.$ac_ext >&5
19876
ac_cv_have_decl_PR_CAPBSET_DROP=no
19879
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_CAPBSET_DROP" >&5
19882
echo "${ECHO_T}$ac_cv_have_decl_PR_CAPBSET_DROP" >&6; }
19883
if test $ac_cv_have_decl_PR_CAPBSET_DROP = yes; then
19885
cat >>confdefs.h <<_ACEOF
19886
#define HAVE_DECL_PR_CAPBSET_DROP 1
19891
cat >>confdefs.h <<_ACEOF
19892
#define HAVE_DECL_PR_CAPBSET_DROP 0
19901
for ac_header in sys/signalfd.h
19903
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19904
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19905
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19906
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19907
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19908
echo $ECHO_N "(cached) $ECHO_C" >&6
19910
ac_res=`eval echo '${'$as_ac_Header'}'`
19911
{ echo "$as_me:$LINENO: result: $ac_res" >&5
19912
echo "${ECHO_T}$ac_res" >&6; }
19914
# Is the header compilable?
19915
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19916
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19917
cat >conftest.$ac_ext <<_ACEOF
19920
cat confdefs.h >>conftest.$ac_ext
19921
cat >>conftest.$ac_ext <<_ACEOF
19922
/* end confdefs.h. */
19923
$ac_includes_default
19924
#include <$ac_header>
19926
rm -f conftest.$ac_objext
19927
if { (ac_try="$ac_compile"
19928
case "(($ac_try" in
19929
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930
*) ac_try_echo=$ac_try;;
19932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933
(eval "$ac_compile") 2>conftest.er1
19935
grep -v '^ *+' conftest.er1 >conftest.err
19937
cat conftest.err >&5
19938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939
(exit $ac_status); } && {
19940
test -z "$ac_c_werror_flag" ||
19941
test ! -s conftest.err
19942
} && test -s conftest.$ac_objext; then
19943
ac_header_compiler=yes
19945
echo "$as_me: failed program was:" >&5
19946
sed 's/^/| /' conftest.$ac_ext >&5
19948
ac_header_compiler=no
19951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19952
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953
echo "${ECHO_T}$ac_header_compiler" >&6; }
19955
# Is the header present?
19956
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19957
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19958
cat >conftest.$ac_ext <<_ACEOF
19961
cat confdefs.h >>conftest.$ac_ext
19962
cat >>conftest.$ac_ext <<_ACEOF
19963
/* end confdefs.h. */
19964
#include <$ac_header>
19966
if { (ac_try="$ac_cpp conftest.$ac_ext"
19967
case "(($ac_try" in
19968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969
*) ac_try_echo=$ac_try;;
19971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19974
grep -v '^ *+' conftest.er1 >conftest.err
19976
cat conftest.err >&5
19977
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978
(exit $ac_status); } >/dev/null && {
19979
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19980
test ! -s conftest.err
19982
ac_header_preproc=yes
19984
echo "$as_me: failed program was:" >&5
19985
sed 's/^/| /' conftest.$ac_ext >&5
19987
ac_header_preproc=no
19990
rm -f conftest.err conftest.$ac_ext
19991
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992
echo "${ECHO_T}$ac_header_preproc" >&6; }
19994
# So? What about this header?
19995
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19997
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19998
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20000
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20001
ac_header_preproc=yes
20004
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20005
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20006
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20007
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20008
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20009
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20010
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20011
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20012
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20013
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20014
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20015
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20019
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20020
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20021
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20022
echo $ECHO_N "(cached) $ECHO_C" >&6
20024
eval "$as_ac_Header=\$ac_header_preproc"
20026
ac_res=`eval echo '${'$as_ac_Header'}'`
20027
{ echo "$as_me:$LINENO: result: $ac_res" >&5
20028
echo "${ECHO_T}$ac_res" >&6; }
20031
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20032
cat >>confdefs.h <<_ACEOF
20033
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20041
if test $ac_cv_c_compiler_gnu = yes; then
20042
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20043
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
20044
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20045
echo $ECHO_N "(cached) $ECHO_C" >&6
20047
ac_pattern="Autoconf.*'x'"
20048
cat >conftest.$ac_ext <<_ACEOF
20051
cat confdefs.h >>conftest.$ac_ext
20052
cat >>conftest.$ac_ext <<_ACEOF
20053
/* end confdefs.h. */
20057
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20058
$EGREP "$ac_pattern" >/dev/null 2>&1; then
20059
ac_cv_prog_gcc_traditional=yes
20061
ac_cv_prog_gcc_traditional=no
20066
if test $ac_cv_prog_gcc_traditional = no; then
20067
cat >conftest.$ac_ext <<_ACEOF
20070
cat confdefs.h >>conftest.$ac_ext
20071
cat >>conftest.$ac_ext <<_ACEOF
20072
/* end confdefs.h. */
20073
#include <termio.h>
20076
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20077
$EGREP "$ac_pattern" >/dev/null 2>&1; then
20078
ac_cv_prog_gcc_traditional=yes
20084
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20085
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
20086
if test $ac_cv_prog_gcc_traditional = yes; then
20087
CC="$CC -traditional"
20092
if test "x$GCC" = "xyes"; then
20093
CFLAGS="$CFLAGS -Wall"
20096
LXC_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
20097
LXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
20098
LXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
20101
# Check whether --with-kernel-release was given.
20102
if test "${with_kernel_release+set}" = set; then
20103
withval=$with_kernel_release; KERNEL_RELEASE="${withval}"
20105
KERNEL_RELEASE=`uname -r`
20110
# Used to indicate true or false condition
20111
ax_compare_version=false
20112
# Convert the two version strings to be compared into a format that
20113
# allows a simple string comparison. The end result is that a version
20114
# string of the form 1.12.5-r617 will be converted to the form
20115
# 0001001200050617. In other words, each number is zero padded to four
20116
# digits, and non digits are removed.
20118
ax_compare_version_A=`echo "$KERNEL_RELEASE" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20119
-e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20120
-e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20121
-e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20125
ax_compare_version_B=`echo "2.6.29" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
20126
-e 's/Z\([0-9]\)Z/Z0\1Z/g' \
20127
-e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
20128
-e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
20132
ax_compare_version=`echo "x$ax_compare_version_A
20133
x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
20137
if test "$ax_compare_version" = "true" ; then
20138
{ echo "$as_me:$LINENO: network autodestroy: yes" >&5
20139
echo "$as_me: network autodestroy: yes" >&6;}
20140
else { echo "$as_me:$LINENO: network autodestroy: no" >&5
20141
echo "$as_me: network autodestroy: no" >&6;}
20145
if test ${ax_compare_version} != "true"; then
20146
CFLAGS="$CFLAGS -DNETWORK_DESTROY"
20149
# Check whether --enable-test was given.
20150
if test "${enable_test+set}" = set; then
20151
enableval=$enable_test;
20156
if test x$enable_test = xyes; then
20158
ENABLE_TEST_FALSE='#'
20160
ENABLE_TEST_TRUE='#'
20169
ac_config_files="$ac_config_files Makefile lxc.spec config/Makefile doc/Makefile doc/lxc-create.sgml doc/lxc-destroy.sgml doc/lxc-execute.sgml doc/lxc-start.sgml doc/lxc-stop.sgml doc/lxc-console.sgml doc/lxc-freeze.sgml doc/lxc-unfreeze.sgml doc/lxc-monitor.sgml doc/lxc-wait.sgml doc/lxc-ls.sgml doc/lxc-ps.sgml doc/lxc-cgroup.sgml doc/lxc.conf.sgml doc/lxc.sgml scripts/Makefile scripts/lxc-debian scripts/lxc-fedora scripts/lxc-sshd src/Makefile src/lxc/Makefile src/lxc/lxc-ps src/lxc/lxc-ls src/lxc/lxc-netstat src/lxc/lxc-checkconfig src/lxc/lxc-setcap etc/Makefile etc/lxc-macvlan.conf etc/lxc-no-netns.conf etc/lxc-empty-netns.conf etc/lxc-phys.conf etc/lxc-veth.conf etc/lxc-complex-config test/Makefile"
20171
ac_config_commands="$ac_config_commands default"
20173
cat >confcache <<\_ACEOF
20174
# This file is a shell script that caches the results of configure
20175
# tests run on this system so they can be shared between configure
20176
# scripts and configure runs, see configure's option --config-cache.
20177
# It is not useful on other systems. If it contains results you don't
20178
# want to keep, you may remove or edit it.
20180
# config.status only pays attention to the cache file if you give it
20181
# the --recheck option to rerun configure.
20183
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20184
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20185
# following values.
20189
# The following way of writing the cache mishandles newlines in values,
20190
# but we know of no workaround that is simple, portable, and efficient.
20191
# So, we kill variables containing newlines.
20192
# Ultrix sh set writes to stderr and can't be redirected directly,
20193
# and sets the high bit in the cache file unless we assign to the vars.
20195
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20196
eval ac_val=\$$ac_var
20200
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20201
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20204
_ | IFS | as_nl) ;; #(
20205
*) $as_unset $ac_var ;;
20211
case $as_nl`(ac_space=' '; set) 2>&1` in #(
20212
*${as_nl}ac_space=\ *)
20213
# `set' does not quote correctly, so add quotes (double-quote
20214
# substitution turns \\\\ into \\, and sed turns \\ into \).
20217
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20220
# `set' quotes correctly as required by POSIX, so do not add quotes.
20221
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20230
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20232
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20234
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20235
if test -w "$cache_file"; then
20236
test "x$cache_file" != "x/dev/null" &&
20237
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
20238
echo "$as_me: updating cache $cache_file" >&6;}
20239
cat confcache >$cache_file
20241
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20242
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20247
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20248
# Let make expand exec_prefix.
20249
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20251
DEFS=-DHAVE_CONFIG_H
20255
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20256
# 1. Remove the extension, and $U if already installed.
20257
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20258
ac_i=`echo "$ac_i" | sed "$ac_script"`
20259
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20260
# will be set to the directory where LIBOBJS objects are built.
20261
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20262
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20264
LIBOBJS=$ac_libobjs
20266
LTLIBOBJS=$ac_ltlibobjs
20269
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20270
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20271
Usually this means the macro was only invoked conditionally." >&5
20272
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20273
Usually this means the macro was only invoked conditionally." >&2;}
20274
{ (exit 1); exit 1; }; }
20276
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20277
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20278
Usually this means the macro was only invoked conditionally." >&5
20279
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20280
Usually this means the macro was only invoked conditionally." >&2;}
20281
{ (exit 1); exit 1; }; }
20283
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20284
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20285
Usually this means the macro was only invoked conditionally." >&5
20286
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20287
Usually this means the macro was only invoked conditionally." >&2;}
20288
{ (exit 1); exit 1; }; }
20290
if test -z "${ENABLE_DOCBOOK_TRUE}" && test -z "${ENABLE_DOCBOOK_FALSE}"; then
20291
{ { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOCBOOK\" was never defined.
20292
Usually this means the macro was only invoked conditionally." >&5
20293
echo "$as_me: error: conditional \"ENABLE_DOCBOOK\" was never defined.
20294
Usually this means the macro was only invoked conditionally." >&2;}
20295
{ (exit 1); exit 1; }; }
20297
if test -z "${ENABLE_TEST_TRUE}" && test -z "${ENABLE_TEST_FALSE}"; then
20298
{ { echo "$as_me:$LINENO: error: conditional \"ENABLE_TEST\" was never defined.
20299
Usually this means the macro was only invoked conditionally." >&5
20300
echo "$as_me: error: conditional \"ENABLE_TEST\" was never defined.
20301
Usually this means the macro was only invoked conditionally." >&2;}
20302
{ (exit 1); exit 1; }; }
20305
: ${CONFIG_STATUS=./config.status}
20306
ac_clean_files_save=$ac_clean_files
20307
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20308
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20309
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20310
cat >$CONFIG_STATUS <<_ACEOF
20312
# Generated by $as_me.
20313
# Run this file to recreate the current configuration.
20314
# Compiler output produced by configure, useful for debugging
20315
# configure, is in config.log if it exists.
20318
ac_cs_recheck=false
20320
SHELL=\${CONFIG_SHELL-$SHELL}
20323
cat >>$CONFIG_STATUS <<\_ACEOF
20324
## --------------------- ##
20325
## M4sh Initialization. ##
20326
## --------------------- ##
20328
# Be more Bourne compatible
20329
DUALCASE=1; export DUALCASE # for MKS sh
20330
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20333
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20334
# is contrary to our usage. Disable this feature.
20335
alias -g '${1+"$@"}'='"$@"'
20336
setopt NO_GLOB_SUBST
20338
case `(set -o) 2>/dev/null` in
20339
*posix*) set -o posix ;;
20348
# Avoid depending upon Character Ranges.
20349
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20350
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20351
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20352
as_cr_digits='0123456789'
20353
as_cr_alnum=$as_cr_Letters$as_cr_digits
20355
# The user is always right.
20356
if test "${PATH_SEPARATOR+set}" != set; then
20357
echo "#! /bin/sh" >conf$$.sh
20358
echo "exit 0" >>conf$$.sh
20360
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20368
# Support unset when possible.
20369
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20377
# We need space, tab and new line, in precisely that order. Quoting is
20378
# there to prevent editors from complaining about space-tab.
20379
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20380
# splitting by setting IFS to empty value.)
20385
# Find who we are. Look in the path if we contain no directory separator.
20387
*[\\/]* ) as_myself=$0 ;;
20388
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20389
for as_dir in $PATH
20392
test -z "$as_dir" && as_dir=.
20393
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20399
# We did not find ourselves, most probably we were run as `sh COMMAND'
20400
# in which case we are not to be found in the path.
20401
if test "x$as_myself" = x; then
20404
if test ! -f "$as_myself"; then
20405
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20406
{ (exit 1); exit 1; }
20409
# Work around bugs in pre-3.0 UWIN ksh.
20410
for as_var in ENV MAIL MAILPATH
20411
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20419
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20420
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20421
LC_TELEPHONE LC_TIME
20423
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20424
eval $as_var=C; export $as_var
20426
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20430
# Required to use basename.
20431
if expr a : '\(a\)' >/dev/null 2>&1 &&
20432
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20439
as_basename=basename
20445
# Name of the executable.
20446
as_me=`$as_basename -- "$0" ||
20447
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20448
X"$0" : 'X\(//\)$' \| \
20449
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20451
sed '/^.*\/\([^/][^/]*\)\/*$/{
20470
as_lineno_1=$LINENO
20471
as_lineno_2=$LINENO
20472
test "x$as_lineno_1" != "x$as_lineno_2" &&
20473
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20475
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20476
# uniformly replaced by the line number. The first 'sed' inserts a
20477
# line-number line after each line using $LINENO; the second 'sed'
20478
# does the real work. The second script uses 'N' to pair each
20479
# line-number line with the line containing $LINENO, and appends
20480
# trailing '-' during substitution so that $LINENO is not a special
20481
# case at line end.
20482
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20483
# scripts with optimization help from Paolo Bonzini. Blame Lee
20484
# E. McMahon (1931-1989) for sed's syntax. :-)
20496
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20499
' >$as_me.lineno &&
20500
chmod +x "$as_me.lineno" ||
20501
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20502
{ (exit 1); exit 1; }; }
20504
# Don't try to exec as it changes $[0], causing all sort of problems
20505
# (the dirname of $[0] is not the place where we might find the
20506
# original and so on. Autoconf is especially sensitive to this).
20507
. "./$as_me.lineno"
20508
# Exit status is that of the last command.
20513
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20519
ECHO_C= ECHO_N= ECHO_T=
20520
case `echo -n x` in
20522
case `echo 'x\c'` in
20523
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
20530
if expr a : '\(a\)' >/dev/null 2>&1 &&
20531
test "X`expr 00001 : '.*\(...\)'`" = X001; then
20537
rm -f conf$$ conf$$.exe conf$$.file
20538
if test -d conf$$.dir; then
20539
rm -f conf$$.dir/conf$$.file
20545
if ln -s conf$$.file conf$$ 2>/dev/null; then
20547
# ... but there are two gotchas:
20548
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20549
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20550
# In both cases, we have to default to `cp -p'.
20551
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20553
elif ln conf$$.file conf$$ 2>/dev/null; then
20558
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20559
rmdir conf$$.dir 2>/dev/null
20561
if mkdir -p . 2>/dev/null; then
20564
test -d ./-p && rmdir ./-p
20568
if test -x / >/dev/null 2>&1; then
20569
as_test_x='test -x'
20571
if ls -dL / >/dev/null 2>&1; then
20578
if test -d "$1"; then
20584
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20585
???[sx]*):;;*)false;;esac;fi
20589
as_executable_p=$as_test_x
20591
# Sed expression to map a string onto a valid CPP name.
20592
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20594
# Sed expression to map a string onto a valid variable name.
20595
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20600
# Save the log message, to keep $[0] and so on meaningful, and to
20601
# report actual input values of CONFIG_FILES etc. instead of their
20602
# values after options handling.
20604
This file was extended by lxc $as_me 0.6.2, which was
20605
generated by GNU Autoconf 2.61. Invocation command line was
20607
CONFIG_FILES = $CONFIG_FILES
20608
CONFIG_HEADERS = $CONFIG_HEADERS
20609
CONFIG_LINKS = $CONFIG_LINKS
20610
CONFIG_COMMANDS = $CONFIG_COMMANDS
20613
on `(hostname || uname -n) 2>/dev/null | sed 1q`
20618
cat >>$CONFIG_STATUS <<_ACEOF
20619
# Files that config.status was made for.
20620
config_files="$ac_config_files"
20621
config_headers="$ac_config_headers"
20622
config_commands="$ac_config_commands"
20626
cat >>$CONFIG_STATUS <<\_ACEOF
20628
\`$as_me' instantiates files from templates according to the
20629
current configuration.
20631
Usage: $0 [OPTIONS] [FILE]...
20633
-h, --help print this help, then exit
20634
-V, --version print version number and configuration settings, then exit
20635
-q, --quiet do not print progress messages
20636
-d, --debug don't remove temporary files
20637
--recheck update $as_me by reconfiguring in the same conditions
20638
--file=FILE[:TEMPLATE]
20639
instantiate the configuration file FILE
20640
--header=FILE[:TEMPLATE]
20641
instantiate the configuration header FILE
20643
Configuration files:
20646
Configuration headers:
20649
Configuration commands:
20652
Report bugs to <bug-autoconf@gnu.org>."
20655
cat >>$CONFIG_STATUS <<_ACEOF
20657
lxc config.status 0.6.2
20658
configured by $0, generated by GNU Autoconf 2.61,
20659
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20661
Copyright (C) 2006 Free Software Foundation, Inc.
20662
This config.status script is free software; the Free Software Foundation
20663
gives unlimited permission to copy, distribute and modify it."
20671
cat >>$CONFIG_STATUS <<\_ACEOF
20672
# If no file are specified by the user, then we need to provide default
20673
# value. By we need to know if files were specified by the user.
20679
ac_option=`expr "X$1" : 'X\([^=]*\)='`
20680
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20691
# Handling of the options.
20692
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20694
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20695
echo "$ac_cs_version"; exit ;;
20696
--debug | --debu | --deb | --de | --d | -d )
20698
--file | --fil | --fi | --f )
20700
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20701
ac_need_defaults=false;;
20702
--header | --heade | --head | --hea )
20704
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20705
ac_need_defaults=false;;
20707
# Conflict between --help and --header
20708
{ echo "$as_me: error: ambiguous option: $1
20709
Try \`$0 --help' for more information." >&2
20710
{ (exit 1); exit 1; }; };;
20711
--help | --hel | -h )
20712
echo "$ac_cs_usage"; exit ;;
20713
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
20714
| -silent | --silent | --silen | --sile | --sil | --si | --s)
20717
# This is an error.
20718
-*) { echo "$as_me: error: unrecognized option: $1
20719
Try \`$0 --help' for more information." >&2
20720
{ (exit 1); exit 1; }; } ;;
20722
*) ac_config_targets="$ac_config_targets $1"
20723
ac_need_defaults=false ;;
20729
ac_configure_extra_args=
20731
if $ac_cs_silent; then
20733
ac_configure_extra_args="$ac_configure_extra_args --silent"
20737
cat >>$CONFIG_STATUS <<_ACEOF
20738
if \$ac_cs_recheck; then
20739
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20740
CONFIG_SHELL=$SHELL
20741
export CONFIG_SHELL
20742
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20746
cat >>$CONFIG_STATUS <<\_ACEOF
20750
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20751
## Running $as_me. ##
20757
cat >>$CONFIG_STATUS <<_ACEOF
20761
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20766
cat >>$CONFIG_STATUS <<\_ACEOF
20768
# Handling of arguments.
20769
for ac_config_target in $ac_config_targets
20771
case $ac_config_target in
20772
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
20773
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20774
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20775
"lxc.spec") CONFIG_FILES="$CONFIG_FILES lxc.spec" ;;
20776
"config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
20777
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20778
"doc/lxc-create.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-create.sgml" ;;
20779
"doc/lxc-destroy.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-destroy.sgml" ;;
20780
"doc/lxc-execute.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-execute.sgml" ;;
20781
"doc/lxc-start.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-start.sgml" ;;
20782
"doc/lxc-stop.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-stop.sgml" ;;
20783
"doc/lxc-console.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-console.sgml" ;;
20784
"doc/lxc-freeze.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-freeze.sgml" ;;
20785
"doc/lxc-unfreeze.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-unfreeze.sgml" ;;
20786
"doc/lxc-monitor.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-monitor.sgml" ;;
20787
"doc/lxc-wait.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-wait.sgml" ;;
20788
"doc/lxc-ls.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-ls.sgml" ;;
20789
"doc/lxc-ps.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-ps.sgml" ;;
20790
"doc/lxc-cgroup.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-cgroup.sgml" ;;
20791
"doc/lxc.conf.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.conf.sgml" ;;
20792
"doc/lxc.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.sgml" ;;
20793
"scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20794
"scripts/lxc-debian") CONFIG_FILES="$CONFIG_FILES scripts/lxc-debian" ;;
20795
"scripts/lxc-fedora") CONFIG_FILES="$CONFIG_FILES scripts/lxc-fedora" ;;
20796
"scripts/lxc-sshd") CONFIG_FILES="$CONFIG_FILES scripts/lxc-sshd" ;;
20797
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20798
"src/lxc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lxc/Makefile" ;;
20799
"src/lxc/lxc-ps") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-ps" ;;
20800
"src/lxc/lxc-ls") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-ls" ;;
20801
"src/lxc/lxc-netstat") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-netstat" ;;
20802
"src/lxc/lxc-checkconfig") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-checkconfig" ;;
20803
"src/lxc/lxc-setcap") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-setcap" ;;
20804
"etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20805
"etc/lxc-macvlan.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-macvlan.conf" ;;
20806
"etc/lxc-no-netns.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-no-netns.conf" ;;
20807
"etc/lxc-empty-netns.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-empty-netns.conf" ;;
20808
"etc/lxc-phys.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-phys.conf" ;;
20809
"etc/lxc-veth.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-veth.conf" ;;
20810
"etc/lxc-complex-config") CONFIG_FILES="$CONFIG_FILES etc/lxc-complex-config" ;;
20811
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20812
"default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20814
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20815
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20816
{ (exit 1); exit 1; }; };;
20821
# If the user did not use the arguments to specify the items to instantiate,
20822
# then the envvar interface is used. Set only those that are not.
20823
# We use the long form for the default assignment because of an extremely
20824
# bizarre bug on SunOS 4.1.3.
20825
if $ac_need_defaults; then
20826
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20827
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20828
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20831
# Have a temporary directory for convenience. Make it in the build tree
20832
# simply because there is no reason against having it here, and in addition,
20833
# creating and moving files from /tmp can sometimes cause problems.
20834
# Hook for its removal unless debugging.
20835
# Note that there is a small window in which the directory will not be cleaned:
20836
# after its creation but before its name has been assigned to `$tmp'.
20840
trap 'exit_status=$?
20841
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20843
trap '{ (exit 1); exit 1; }' 1 2 13 15
20845
# Create a (secure) tmp directory for tmp files.
20848
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20849
test -n "$tmp" && test -d "$tmp"
20852
tmp=./conf$$-$RANDOM
20853
(umask 077 && mkdir "$tmp")
20856
echo "$me: cannot create a temporary directory in ." >&2
20857
{ (exit 1); exit 1; }
20861
# Set up the sed scripts for CONFIG_FILES section.
20864
# No need to generate the scripts if there are no CONFIG_FILES.
20865
# This happens for instance when ./config.status config.h
20866
if test -n "$CONFIG_FILES"; then
20873
for ac_last_try in false false false false false :; do
20874
cat >conf$$subs.sed <<_ACEOF
20875
SHELL!$SHELL$ac_delim
20876
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20877
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20878
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20879
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20880
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20881
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20882
exec_prefix!$exec_prefix$ac_delim
20883
prefix!$prefix$ac_delim
20884
program_transform_name!$program_transform_name$ac_delim
20885
bindir!$bindir$ac_delim
20886
sbindir!$sbindir$ac_delim
20887
libexecdir!$libexecdir$ac_delim
20888
datarootdir!$datarootdir$ac_delim
20889
datadir!$datadir$ac_delim
20890
sysconfdir!$sysconfdir$ac_delim
20891
sharedstatedir!$sharedstatedir$ac_delim
20892
localstatedir!$localstatedir$ac_delim
20893
includedir!$includedir$ac_delim
20894
oldincludedir!$oldincludedir$ac_delim
20895
docdir!$docdir$ac_delim
20896
infodir!$infodir$ac_delim
20897
htmldir!$htmldir$ac_delim
20898
dvidir!$dvidir$ac_delim
20899
pdfdir!$pdfdir$ac_delim
20900
psdir!$psdir$ac_delim
20901
libdir!$libdir$ac_delim
20902
localedir!$localedir$ac_delim
20903
mandir!$mandir$ac_delim
20904
DEFS!$DEFS$ac_delim
20905
ECHO_C!$ECHO_C$ac_delim
20906
ECHO_N!$ECHO_N$ac_delim
20907
ECHO_T!$ECHO_T$ac_delim
20908
LIBS!$LIBS$ac_delim
20909
build_alias!$build_alias$ac_delim
20910
host_alias!$host_alias$ac_delim
20911
target_alias!$target_alias$ac_delim
20912
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20913
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20914
INSTALL_DATA!$INSTALL_DATA$ac_delim
20915
am__isrc!$am__isrc$ac_delim
20916
CYGPATH_W!$CYGPATH_W$ac_delim
20917
PACKAGE!$PACKAGE$ac_delim
20918
VERSION!$VERSION$ac_delim
20919
ACLOCAL!$ACLOCAL$ac_delim
20920
AUTOCONF!$AUTOCONF$ac_delim
20921
AUTOMAKE!$AUTOMAKE$ac_delim
20922
AUTOHEADER!$AUTOHEADER$ac_delim
20923
MAKEINFO!$MAKEINFO$ac_delim
20924
install_sh!$install_sh$ac_delim
20925
STRIP!$STRIP$ac_delim
20926
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20927
mkdir_p!$mkdir_p$ac_delim
20929
SET_MAKE!$SET_MAKE$ac_delim
20930
am__leading_dot!$am__leading_dot$ac_delim
20931
AMTAR!$AMTAR$ac_delim
20932
am__tar!$am__tar$ac_delim
20933
am__untar!$am__untar$ac_delim
20934
build!$build$ac_delim
20935
build_cpu!$build_cpu$ac_delim
20936
build_vendor!$build_vendor$ac_delim
20937
build_os!$build_os$ac_delim
20938
host!$host$ac_delim
20939
host_cpu!$host_cpu$ac_delim
20940
host_vendor!$host_vendor$ac_delim
20941
host_os!$host_os$ac_delim
20943
CFLAGS!$CFLAGS$ac_delim
20944
LDFLAGS!$LDFLAGS$ac_delim
20945
CPPFLAGS!$CPPFLAGS$ac_delim
20946
ac_ct_CC!$ac_ct_CC$ac_delim
20947
EXEEXT!$EXEEXT$ac_delim
20948
OBJEXT!$OBJEXT$ac_delim
20949
DEPDIR!$DEPDIR$ac_delim
20950
am__include!$am__include$ac_delim
20951
am__quote!$am__quote$ac_delim
20952
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20953
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20954
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20955
CCDEPMODE!$CCDEPMODE$ac_delim
20956
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20957
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20959
GREP!$GREP$ac_delim
20960
EGREP!$EGREP$ac_delim
20961
LN_S!$LN_S$ac_delim
20962
ECHO!$ECHO$ac_delim
20964
RANLIB!$RANLIB$ac_delim
20967
CXXFLAGS!$CXXFLAGS$ac_delim
20968
ac_ct_CXX!$ac_ct_CXX$ac_delim
20969
CXXDEPMODE!$CXXDEPMODE$ac_delim
20970
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20971
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20974
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20976
elif $ac_last_try; then
20977
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20978
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20979
{ (exit 1); exit 1; }; }
20981
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20985
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20986
if test -n "$ac_eof"; then
20987
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20988
ac_eof=`expr $ac_eof + 1`
20991
cat >>$CONFIG_STATUS <<_ACEOF
20992
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20993
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20996
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20997
s/^/s,@/; s/!/@,|#_!!_#|/
21000
s/'"$ac_delim"'$/,g/; t
21002
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21003
' >>$CONFIG_STATUS <conf$$subs.sed
21004
rm -f conf$$subs.sed
21005
cat >>$CONFIG_STATUS <<_ACEOF
21011
for ac_last_try in false false false false false :; do
21012
cat >conf$$subs.sed <<_ACEOF
21013
CXXCPP!$CXXCPP$ac_delim
21015
FFLAGS!$FFLAGS$ac_delim
21016
ac_ct_F77!$ac_ct_F77$ac_delim
21017
LIBTOOL!$LIBTOOL$ac_delim
21018
SETCAP!$SETCAP$ac_delim
21019
DOCBOOK!$DOCBOOK$ac_delim
21020
ENABLE_DOCBOOK_TRUE!$ENABLE_DOCBOOK_TRUE$ac_delim
21021
ENABLE_DOCBOOK_FALSE!$ENABLE_DOCBOOK_FALSE$ac_delim
21022
BINDIR!$BINDIR$ac_delim
21023
LIBEXECDIR!$LIBEXECDIR$ac_delim
21024
SYSCONFDIR!$SYSCONFDIR$ac_delim
21025
LOCALSTATEDIR!$LOCALSTATEDIR$ac_delim
21026
LXCPATH!$LXCPATH$ac_delim
21027
ENABLE_TEST_TRUE!$ENABLE_TEST_TRUE$ac_delim
21028
ENABLE_TEST_FALSE!$ENABLE_TEST_FALSE$ac_delim
21029
LXC_MAJOR_VERSION!$LXC_MAJOR_VERSION$ac_delim
21030
LXC_MINOR_VERSION!$LXC_MINOR_VERSION$ac_delim
21031
LXC_MICRO_VERSION!$LXC_MICRO_VERSION$ac_delim
21032
LIBOBJS!$LIBOBJS$ac_delim
21033
LTLIBOBJS!$LTLIBOBJS$ac_delim
21036
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
21038
elif $ac_last_try; then
21039
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21040
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21041
{ (exit 1); exit 1; }; }
21043
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21047
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21048
if test -n "$ac_eof"; then
21049
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21050
ac_eof=`expr $ac_eof + 1`
21053
cat >>$CONFIG_STATUS <<_ACEOF
21054
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21055
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21058
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21059
s/^/s,@/; s/!/@,|#_!!_#|/
21062
s/'"$ac_delim"'$/,g/; t
21064
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21065
' >>$CONFIG_STATUS <conf$$subs.sed
21066
rm -f conf$$subs.sed
21067
cat >>$CONFIG_STATUS <<_ACEOF
21074
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21075
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21076
# trailing colons and then remove the whole line if VPATH becomes empty
21077
# (actually we leave an empty line to preserve line numbers).
21078
if test "x$srcdir" = x.; then
21079
ac_vpsub='/^[ ]*VPATH[ ]*=/{
21080
s/:*\$(srcdir):*/:/
21081
s/:*\${srcdir}:*/:/
21083
s/^\([^=]*=[ ]*\):*/\1/
21089
cat >>$CONFIG_STATUS <<\_ACEOF
21090
fi # test -n "$CONFIG_FILES"
21093
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21096
:[FHLC]) ac_mode=$ac_tag; continue;;
21098
case $ac_mode$ac_tag in
21100
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21101
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21102
{ (exit 1); exit 1; }; };;
21103
:[FH]-) ac_tag=-:-;;
21104
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21121
-) ac_f="$tmp/stdin";;
21122
*) # Look for the file first in the build tree, then in the source tree
21123
# (if the path is not absolute). The absolute path cannot be DOS-style,
21124
# because $ac_f cannot contain `:'.
21128
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21130
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21131
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21132
{ (exit 1); exit 1; }; };;
21134
ac_file_inputs="$ac_file_inputs $ac_f"
21137
# Let's still pretend it is `configure' which instantiates (i.e., don't
21138
# use $as_me), people would be surprised to read:
21139
# /* config.h. Generated by config.status. */
21140
configure_input="Generated from "`IFS=:
21141
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21142
if test x"$ac_file" != x-; then
21143
configure_input="$ac_file. $configure_input"
21144
{ echo "$as_me:$LINENO: creating $ac_file" >&5
21145
echo "$as_me: creating $ac_file" >&6;}
21149
*:-:* | *:-) cat >"$tmp/stdin";;
21154
ac_dir=`$as_dirname -- "$ac_file" ||
21155
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21156
X"$ac_file" : 'X\(//\)[^/]' \| \
21157
X"$ac_file" : 'X\(//\)$' \| \
21158
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21160
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21164
/^X\(\/\/\)[^/].*/{
21179
-*) as_dir=./$as_dir;;
21181
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21185
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21186
*) as_qdir=$as_dir;;
21188
as_dirs="'$as_qdir' $as_dirs"
21189
as_dir=`$as_dirname -- "$as_dir" ||
21190
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21191
X"$as_dir" : 'X\(//\)[^/]' \| \
21192
X"$as_dir" : 'X\(//\)$' \| \
21193
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21195
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21199
/^X\(\/\/\)[^/].*/{
21212
test -d "$as_dir" && break
21214
test -z "$as_dirs" || eval "mkdir $as_dirs"
21215
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21216
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21217
{ (exit 1); exit 1; }; }; }
21221
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21223
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21224
# A ".." for each directory in $ac_dir_suffix.
21225
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21226
case $ac_top_builddir_sub in
21227
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21228
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21231
ac_abs_top_builddir=$ac_pwd
21232
ac_abs_builddir=$ac_pwd$ac_dir_suffix
21233
# for backward compatibility:
21234
ac_top_builddir=$ac_top_build_prefix
21237
.) # We are building in place.
21239
ac_top_srcdir=$ac_top_builddir_sub
21240
ac_abs_top_srcdir=$ac_pwd ;;
21241
[\\/]* | ?:[\\/]* ) # Absolute name.
21242
ac_srcdir=$srcdir$ac_dir_suffix;
21243
ac_top_srcdir=$srcdir
21244
ac_abs_top_srcdir=$srcdir ;;
21245
*) # Relative name.
21246
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21247
ac_top_srcdir=$ac_top_build_prefix$srcdir
21248
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21250
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21260
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21261
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21263
ac_MKDIR_P=$MKDIR_P
21265
[\\/$]* | ?:[\\/]* ) ;;
21266
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21270
cat >>$CONFIG_STATUS <<\_ACEOF
21271
# If the template does not know about datarootdir, expand it.
21272
# FIXME: This hack should be removed a few years after 2.60.
21273
ac_datarootdir_hack=; ac_datarootdir_seen=
21275
case `sed -n '/datarootdir/ {
21284
' $ac_file_inputs` in
21285
*datarootdir*) ac_datarootdir_seen=yes;;
21286
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21287
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21288
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21290
cat >>$CONFIG_STATUS <<_ACEOF
21291
ac_datarootdir_hack='
21292
s&@datadir@&$datadir&g
21293
s&@docdir@&$docdir&g
21294
s&@infodir@&$infodir&g
21295
s&@localedir@&$localedir&g
21296
s&@mandir@&$mandir&g
21297
s&\\\${datarootdir}&$datarootdir&g' ;;
21301
# Neutralize VPATH when `$srcdir' = `.'.
21302
# Shell code in configure.ac might set extrasub.
21303
# FIXME: do we really want to maintain this feature?
21304
cat >>$CONFIG_STATUS <<_ACEOF
21308
cat >>$CONFIG_STATUS <<\_ACEOF
21310
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21311
s&@configure_input@&$configure_input&;t t
21312
s&@top_builddir@&$ac_top_builddir_sub&;t t
21313
s&@srcdir@&$ac_srcdir&;t t
21314
s&@abs_srcdir@&$ac_abs_srcdir&;t t
21315
s&@top_srcdir@&$ac_top_srcdir&;t t
21316
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21317
s&@builddir@&$ac_builddir&;t t
21318
s&@abs_builddir@&$ac_abs_builddir&;t t
21319
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21320
s&@INSTALL@&$ac_INSTALL&;t t
21321
s&@MKDIR_P@&$ac_MKDIR_P&;t t
21322
$ac_datarootdir_hack
21323
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21325
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21326
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21327
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21328
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21329
which seems to be undefined. Please make sure it is defined." >&5
21330
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21331
which seems to be undefined. Please make sure it is defined." >&2;}
21335
-) cat "$tmp/out"; rm -f "$tmp/out";;
21336
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21345
# Transform confdefs.h into a sed script `conftest.defines', that
21346
# substitutes the proper values into config.h.in to produce config.h.
21347
rm -f conftest.defines conftest.tail
21348
# First, append a space to every undef/define line, to ease matching.
21349
echo 's/$/ /' >conftest.defines
21350
# Then, protect against being on the right side of a sed subst, or in
21351
# an unquoted here document, in config.status. If some macros were
21352
# called several times there might be several #defines for the same
21353
# symbol, which is useless. But do not sort them, since the last
21354
# AC_DEFINE must be honored.
21355
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21356
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21357
# NAME is the cpp macro being defined, VALUE is the value it is being given.
21358
# PARAMS is the parameter list in the macro definition--in most cases, it's
21359
# just an empty string.
21360
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21361
ac_dB='\\)[ (].*,\\1define\\2'
21369
s/^[ ]*#[ ]*define[ ][ ]*//
21374
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21375
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21376
' >>conftest.defines
21378
# Remove the space that was appended to ease matching.
21379
# Then replace #undef with comments. This is necessary, for
21380
# example, in the case of _POSIX_SOURCE, which is predefined and required
21381
# on some systems where configure will not decide to define it.
21382
# (The regexp can be short, since the line contains either #define or #undef.)
21384
s,^[ #]*u.*,/* & */,' >>conftest.defines
21386
# Break up conftest.defines:
21387
ac_max_sed_lines=50
21389
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21390
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21391
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21393
ac_in='$ac_file_inputs'
21394
ac_out='"$tmp/out1"'
21395
ac_nxt='"$tmp/out2"'
21399
# Write a here document:
21400
cat >>$CONFIG_STATUS <<_ACEOF
21401
# First, check the format of the line:
21402
cat >"\$tmp/defines.sed" <<\\CEOF
21403
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21404
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21408
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21410
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21411
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21412
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21413
grep . conftest.tail >/dev/null || break
21414
rm -f conftest.defines
21415
mv conftest.tail conftest.defines
21417
rm -f conftest.defines conftest.tail
21419
echo "ac_result=$ac_in" >>$CONFIG_STATUS
21420
cat >>$CONFIG_STATUS <<\_ACEOF
21421
if test x"$ac_file" != x-; then
21422
echo "/* $configure_input */" >"$tmp/config.h"
21423
cat "$ac_result" >>"$tmp/config.h"
21424
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21425
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21426
echo "$as_me: $ac_file is unchanged" >&6;}
21429
mv "$tmp/config.h" $ac_file
21432
echo "/* $configure_input */"
21436
# Compute $ac_file's index in $config_headers.
21439
for _am_header in $config_headers :; do
21440
case $_am_header in
21441
$_am_arg | $_am_arg:* )
21444
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
21447
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21448
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21449
X"$_am_arg" : 'X\(//\)[^/]' \| \
21450
X"$_am_arg" : 'X\(//\)$' \| \
21451
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21453
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21457
/^X\(\/\/\)[^/].*/{
21469
s/.*/./; q'`/stamp-h$_am_stamp_count
21472
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21473
echo "$as_me: executing $ac_file commands" >&6;}
21478
case $ac_file$ac_mode in
21479
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21480
# Strip MF so we end up with the name of the file.
21481
mf=`echo "$mf" | sed -e 's/:.*$//'`
21482
# Check whether this is an Automake generated Makefile or not.
21483
# We used to match only the files named `Makefile.in', but
21484
# some people rename them; so instead we look at the file content.
21485
# Grep'ing the first line is not enough: some people post-process
21486
# each Makefile.in and add a new line on top of each file to say so.
21487
# Grep'ing the whole file is not good either: AIX grep has a line
21488
# limit of 2048, but all sed's we know have understand at least 4000.
21489
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21490
dirpart=`$as_dirname -- "$mf" ||
21491
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21492
X"$mf" : 'X\(//\)[^/]' \| \
21493
X"$mf" : 'X\(//\)$' \| \
21494
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21496
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21500
/^X\(\/\/\)[^/].*/{
21516
# Extract the definition of DEPDIR, am__include, and am__quote
21517
# from the Makefile without running `make'.
21518
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21519
test -z "$DEPDIR" && continue
21520
am__include=`sed -n 's/^am__include = //p' < "$mf"`
21521
test -z "am__include" && continue
21522
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21523
# When using ansi2knr, U may be empty or an underscore; expand it
21524
U=`sed -n 's/^U = //p' < "$mf"`
21525
# Find all dependency output files, they are included files with
21526
# $(DEPDIR) in their names. We invoke sed twice because it is the
21527
# simplest approach to changing $(DEPDIR) to its actual value in the
21529
for file in `sed -n "
21530
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21531
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21532
# Make sure the directory exists.
21533
test -f "$dirpart/$file" && continue
21534
fdir=`$as_dirname -- "$file" ||
21535
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21536
X"$file" : 'X\(//\)[^/]' \| \
21537
X"$file" : 'X\(//\)$' \| \
21538
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21540
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21544
/^X\(\/\/\)[^/].*/{
21557
{ as_dir=$dirpart/$fdir
21559
-*) as_dir=./$as_dir;;
21561
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21565
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21566
*) as_qdir=$as_dir;;
21568
as_dirs="'$as_qdir' $as_dirs"
21569
as_dir=`$as_dirname -- "$as_dir" ||
21570
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21571
X"$as_dir" : 'X\(//\)[^/]' \| \
21572
X"$as_dir" : 'X\(//\)$' \| \
21573
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21575
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21579
/^X\(\/\/\)[^/].*/{
21592
test -d "$as_dir" && break
21594
test -z "$as_dirs" || eval "mkdir $as_dirs"
21595
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21596
echo "$as_me: error: cannot create directory $as_dir" >&2;}
21597
{ (exit 1); exit 1; }; }; }
21598
# echo "creating $dirpart/$file"
21599
echo '# dummy' > "$dirpart/$file"
21609
{ (exit 0); exit 0; }
21611
chmod +x $CONFIG_STATUS
21612
ac_clean_files=$ac_clean_files_save
21615
# configure is writing to config.log, and then calls config.status.
21616
# config.status does its own redirection, appending to config.log.
21617
# Unfortunately, on DOS this fails, as config.log is still kept open
21618
# by configure, so config.status won't be able to write to it; its
21619
# output is simply discarded. So we exec the FD to /dev/null,
21620
# effectively closing config.log, so it can be properly (re)opened and
21621
# appended to by config.status. When coming back to configure, we
21622
# need to make the FD available again.
21623
if test "$no_create" != yes; then
21625
ac_config_status_args=
21626
test "$silent" = yes &&
21627
ac_config_status_args="$ac_config_status_args --quiet"
21629
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21631
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21632
# would make configure fail if this is the last instruction.
21633
$ac_cs_success || { (exit 1); exit 1; }
21637
if test "x$DOCBOOK" = "xno"; then
21638
{ echo "$as_me:$LINENO:
21642
The docbook tool is not installed, the man pages won't be generated.
21643
If you want the man pages, install docbook and rerun 'configure'.
21650
The docbook tool is not installed, the man pages won't be generated.
21651
If you want the man pages, install docbook and rerun 'configure'.
21657
if test "x$SETCAP" = "xno"; then
21658
{ echo "$as_me:$LINENO:
21663
The libcap-2 is not installed. That means the tools to
21664
set the privilege for the lxc commands are not available,
21665
that's ok, but you will need to run these commands as root
21673
The libcap-2 is not installed. That means the tools to
21674
set the privilege for the lxc commands are not available,
21675
that's ok, but you will need to run these commands as root
21681
{ echo "$as_me:$LINENO:
21686
If you which to have a non root user to use the lxc tools,
21687
you can add the needed capabilities to the tools by invoking
21688
the 'lxc-setcap' script. To remove the capabilities, use
21696
If you which to have a non root user to use the lxc tools,
21697
you can add the needed capabilities to the tools by invoking
21698
the 'lxc-setcap' script. To remove the capabilities, use