2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
# Pre-4.2 versions of Zsh do 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
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90
# We need space, tab and new line, in precisely that order. Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
96
# Find who we are. Look in the path if we contain no directory separator.
98
*[\\/]* ) as_myself=$0 ;;
99
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103
test -z "$as_dir" && as_dir=.
104
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
115
if test ! -f "$as_myself"; then
116
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
{ (exit 1); exit 1; }
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
test "X`expr 00001 : '.*\(...\)'`" = X001; then
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
X"$0" : 'X\(//\)$' \| \
153
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155
sed '/^.*\/\([^/][^/]*\)\/*$/{
173
if test "x$CONFIG_SHELL" = x; then
174
if (eval ":") 2>/dev/null; then
180
if test $as_have_required = yes && (eval ":
190
as_func_ret_success () {
193
as_func_ret_failure () {
198
if as_func_success; then
202
echo as_func_success failed.
205
if as_func_failure; then
207
echo as_func_failure succeeded.
210
if as_func_ret_success; then
214
echo as_func_ret_success failed.
217
if as_func_ret_failure; then
219
echo as_func_ret_failure succeeded.
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226
echo positional parameters were not saved.
229
test \$exitcode = 0) || { (exit 1); exit 1; }
234
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
test -z "$as_dir" && as_dir=.
247
for as_base in sh bash ksh sh5; do
248
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255
for as_shell in $as_candidate_shells $SHELL; do
256
# Try only shells that exist, to save several forks.
257
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in
268
*posix*) set -o posix ;;
277
CONFIG_SHELL=$as_shell
279
if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
# is contrary to our usage. Disable this feature.
285
alias -g '${1+"$@"}'='"$@"'
288
case `(set -o) 2>/dev/null` in
289
*posix*) set -o posix ;;
305
as_func_ret_success () {
308
as_func_ret_failure () {
313
if as_func_success; then
317
echo as_func_success failed.
320
if as_func_failure; then
322
echo as_func_failure succeeded.
325
if as_func_ret_success; then
329
echo as_func_ret_success failed.
332
if as_func_ret_failure; then
334
echo as_func_ret_failure succeeded.
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
341
echo positional parameters were not saved.
344
test $exitcode = 0) || { (exit 1); exit 1; }
349
test "x$as_lineno_1" != "x$as_lineno_2" &&
350
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361
if test "x$CONFIG_SHELL" != x; then
362
for as_var in BASH_ENV ENV
363
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370
if test $as_have_required = no; then
371
echo This script requires a shell more modern than all the
372
echo shells that I found on your system. Please install a
373
echo modern shell, or manually run the script under such a
374
echo shell if you do have one.
375
{ (exit 1); exit 1; }
385
(eval "as_func_return () {
394
as_func_ret_success () {
397
as_func_ret_failure () {
402
if as_func_success; then
406
echo as_func_success failed.
409
if as_func_failure; then
411
echo as_func_failure succeeded.
414
if as_func_ret_success; then
418
echo as_func_ret_success failed.
421
if as_func_ret_failure; then
423
echo as_func_ret_failure succeeded.
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430
echo positional parameters were not saved.
433
test \$exitcode = 0") || {
434
echo No shell found that supports shell functions.
435
echo Please tell bug-autoconf@gnu.org about your system,
436
echo including any error possibly output before this message.
437
echo This can help us improve future autoconf versions.
438
echo Configuration will now proceed without shell functions.
445
test "x$as_lineno_1" != "x$as_lineno_2" &&
446
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
# uniformly replaced by the line number. The first 'sed' inserts a
450
# line-number line after each line using $LINENO; the second 'sed'
451
# does the real work. The second script uses 'N' to pair each
452
# line-number line with the line containing $LINENO, and appends
453
# trailing '-' during substitution so that $LINENO is not a special
455
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
# scripts with optimization help from Paolo Bonzini. Blame Lee
457
# E. McMahon (1931-1989) for sed's syntax. :-)
469
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473
chmod +x "$as_me.lineno" ||
474
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
{ (exit 1); exit 1; }; }
477
# Don't try to exec as it changes $[0], causing all sort of problems
478
# (the dirname of $[0] is not the place where we might find the
479
# original and so on. Autoconf is especially sensitive to this).
481
# Exit status is that of the last command.
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492
ECHO_C= ECHO_N= ECHO_T=
496
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
test "X`expr 00001 : '.*\(...\)'`" = X001; then
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
rm -f conf$$.dir/conf$$.file
514
mkdir conf$$.dir 2>/dev/null
516
if (echo >conf$$.file) 2>/dev/null; then
517
if ln -s conf$$.file conf$$ 2>/dev/null; then
519
# ... but there are two gotchas:
520
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
# In both cases, we have to default to `cp -p'.
523
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525
elif ln conf$$.file conf$$ 2>/dev/null; then
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
536
if mkdir -p . 2>/dev/null; then
539
test -d ./-p && rmdir ./-p
543
if test -x / >/dev/null 2>&1; then
546
if ls -dL / >/dev/null 2>&1; then
553
if test -d "$1"; then
559
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
???[sx]*):;;*)false;;esac;fi
564
as_executable_p=$as_test_x
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
580
# Remove one level of quotation (which was required for Make).
581
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586
if test "X$1" = X--no-reexec; then
587
# Discard the --no-reexec flag, and continue.
589
elif test "X$1" = X--fallback-echo; then
590
# Avoid inline document here, it may be left over
592
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593
# Yippee, $echo works!
596
# Restart under the correct shell.
597
exec $SHELL "$0" --no-reexec ${1+"$@"}
600
if test "X$1" = X--fallback-echo; then
601
# used as fallback echo
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613
if test -z "$ECHO"; then
614
if test "X${echo_test_string+set}" != Xset; then
615
# find a string as large as possible, as long as the shell can cope with it
616
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619
echo_test_string=`eval $cmd` &&
620
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629
test "X$echo_testing_string" = "X$echo_test_string"; then
632
# The Solaris, AIX, and Digital Unix default echo programs unquote
633
# backslashes. This makes it impossible to quote backslashes using
634
# echo "$something" | sed 's/\\/\\\\/g'
636
# So, first we look for a working echo in the user's PATH.
638
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639
for dir in $PATH /usr/ucb; do
641
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644
test "X$echo_testing_string" = "X$echo_test_string"; then
651
if test "X$echo" = Xecho; then
652
# We didn't find a better echo, so look for alternatives.
653
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
# This shell has a builtin print -r that does the trick.
658
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659
test "X$CONFIG_SHELL" != X/bin/ksh; then
660
# If we have ksh, try running configure again with it.
661
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662
export ORIGINAL_CONFIG_SHELL
663
CONFIG_SHELL=/bin/ksh
665
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671
test "X$echo_testing_string" = "X$echo_test_string"; then
674
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675
test "X$echo_testing_string" = 'X\t' &&
676
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677
test "X$echo_testing_string" = "X$echo_test_string"; then
678
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680
SHELL="$CONFIG_SHELL"
682
echo="$CONFIG_SHELL $0 --fallback-echo"
683
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684
test "X$echo_testing_string" = 'X\t' &&
685
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686
test "X$echo_testing_string" = "X$echo_test_string"; then
687
echo="$CONFIG_SHELL $0 --fallback-echo"
689
# maybe with a smaller string...
692
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700
if test "$prev" != 'sed 50q "$0"'; then
701
echo_test_string=`eval $prev`
702
export echo_test_string
703
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705
# Oops. We lost completely, so just stick with echo.
714
# Copy echo and quote the copy suitably for passing to libtool from
715
# the Makefile, instead of quoting the original, which is used later.
717
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724
tagnames=${tagnames+${tagnames},}CXX
726
tagnames=${tagnames+${tagnames},}F77
728
exec 7<&0 </dev/null 6>&1
731
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732
# so uname gets run too.
733
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738
ac_default_prefix=/usr/local
740
ac_config_libobj_dir=.
746
SHELL=${CONFIG_SHELL-/bin/sh}
748
# Identity of this package.
755
ac_unique_file="clients/memcat.c"
756
# Factoring default headers for most tests.
757
ac_includes_default="\
759
#ifdef HAVE_SYS_TYPES_H
760
# include <sys/types.h>
762
#ifdef HAVE_SYS_STAT_H
763
# include <sys/stat.h>
769
# ifdef HAVE_STDLIB_H
774
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
779
#ifdef HAVE_STRINGS_H
780
# include <strings.h>
782
#ifdef HAVE_INTTYPES_H
783
# include <inttypes.h>
792
ac_subst_vars='LTLIBOBJS
795
BUILD_BYTEORDER_FALSE
855
INSTALL_STRIP_PROGRAM
872
MEMCACHED_LIBRARY_NAME
873
MEMCACHED_LIBRARY_VERSION
874
MEMCACHED_API_VERSION
914
program_transform_name
926
enable_option_checking
927
enable_dependency_tracking
940
ac_precious_vars='build_alias
957
# Initialize some variables set by options.
959
ac_init_version=false
960
ac_unrecognized_opts=
962
# The variables have the same names as the options, with
963
# dashes changed to underlines.
971
program_transform_name=s,x,x,
979
# Installation directory options.
980
# These are left unexpanded so users can "make install exec_prefix=/foo"
981
# and all the variables that are supposed to be based on exec_prefix
982
# by default will actually change.
983
# Use braces instead of parens because sh, perl, etc. also accept them.
984
# (The list follows the same order as the GNU Coding Standards.)
985
bindir='${exec_prefix}/bin'
986
sbindir='${exec_prefix}/sbin'
987
libexecdir='${exec_prefix}/libexec'
988
datarootdir='${prefix}/share'
989
datadir='${datarootdir}'
990
sysconfdir='${prefix}/etc'
991
sharedstatedir='${prefix}/com'
992
localstatedir='${prefix}/var'
993
includedir='${prefix}/include'
994
oldincludedir='/usr/include'
995
docdir='${datarootdir}/doc/${PACKAGE}'
996
infodir='${datarootdir}/info'
1001
libdir='${exec_prefix}/lib'
1002
localedir='${datarootdir}/locale'
1003
mandir='${datarootdir}/man'
1009
# If the previous option needs an argument, assign it.
1010
if test -n "$ac_prev"; then
1011
eval $ac_prev=\$ac_option
1017
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021
# Accept the important Cygnus configure options, so we can diagnose typos.
1023
case $ac_dashdash$ac_option in
1027
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1029
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030
bindir=$ac_optarg ;;
1032
-build | --build | --buil | --bui | --bu)
1033
ac_prev=build_alias ;;
1034
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035
build_alias=$ac_optarg ;;
1037
-cache-file | --cache-file | --cache-fil | --cache-fi \
1038
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039
ac_prev=cache_file ;;
1040
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042
cache_file=$ac_optarg ;;
1044
--config-cache | -C)
1045
cache_file=config.cache ;;
1047
-datadir | --datadir | --datadi | --datad)
1049
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1050
datadir=$ac_optarg ;;
1052
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053
| --dataroo | --dataro | --datar)
1054
ac_prev=datarootdir ;;
1055
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057
datarootdir=$ac_optarg ;;
1059
-disable-* | --disable-*)
1060
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061
# Reject names that are not valid shell variable names.
1062
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1064
{ (exit 1); exit 1; }; }
1065
ac_useropt_orig=$ac_useropt
1066
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067
case $ac_user_opts in
1069
"enable_$ac_useropt"
1071
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072
ac_unrecognized_sep=', ';;
1074
eval enable_$ac_useropt=no ;;
1076
-docdir | --docdir | --docdi | --doc | --do)
1078
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079
docdir=$ac_optarg ;;
1081
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084
dvidir=$ac_optarg ;;
1086
-enable-* | --enable-*)
1087
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088
# Reject names that are not valid shell variable names.
1089
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1091
{ (exit 1); exit 1; }; }
1092
ac_useropt_orig=$ac_useropt
1093
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094
case $ac_user_opts in
1096
"enable_$ac_useropt"
1098
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099
ac_unrecognized_sep=', ';;
1101
eval enable_$ac_useropt=\$ac_optarg ;;
1103
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105
| --exec | --exe | --ex)
1106
ac_prev=exec_prefix ;;
1107
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109
| --exec=* | --exe=* | --ex=*)
1110
exec_prefix=$ac_optarg ;;
1112
-gas | --gas | --ga | --g)
1113
# Obsolete; use --with-gas.
1116
-help | --help | --hel | --he | -h)
1117
ac_init_help=long ;;
1118
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119
ac_init_help=recursive ;;
1120
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121
ac_init_help=short ;;
1123
-host | --host | --hos | --ho)
1124
ac_prev=host_alias ;;
1125
-host=* | --host=* | --hos=* | --ho=*)
1126
host_alias=$ac_optarg ;;
1128
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132
htmldir=$ac_optarg ;;
1134
-includedir | --includedir | --includedi | --included | --include \
1135
| --includ | --inclu | --incl | --inc)
1136
ac_prev=includedir ;;
1137
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138
| --includ=* | --inclu=* | --incl=* | --inc=*)
1139
includedir=$ac_optarg ;;
1141
-infodir | --infodir | --infodi | --infod | --info | --inf)
1143
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144
infodir=$ac_optarg ;;
1146
-libdir | --libdir | --libdi | --libd)
1148
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1149
libdir=$ac_optarg ;;
1151
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152
| --libexe | --libex | --libe)
1153
ac_prev=libexecdir ;;
1154
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155
| --libexe=* | --libex=* | --libe=*)
1156
libexecdir=$ac_optarg ;;
1158
-localedir | --localedir | --localedi | --localed | --locale)
1159
ac_prev=localedir ;;
1160
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161
localedir=$ac_optarg ;;
1163
-localstatedir | --localstatedir | --localstatedi | --localstated \
1164
| --localstate | --localstat | --localsta | --localst | --locals)
1165
ac_prev=localstatedir ;;
1166
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1167
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1168
localstatedir=$ac_optarg ;;
1170
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173
mandir=$ac_optarg ;;
1175
-nfp | --nfp | --nf)
1176
# Obsolete; use --without-fp.
1179
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180
| --no-cr | --no-c | -n)
1183
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189
| --oldin | --oldi | --old | --ol | --o)
1190
ac_prev=oldincludedir ;;
1191
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194
oldincludedir=$ac_optarg ;;
1196
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199
prefix=$ac_optarg ;;
1201
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1202
| --program-pre | --program-pr | --program-p)
1203
ac_prev=program_prefix ;;
1204
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1205
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206
program_prefix=$ac_optarg ;;
1208
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1209
| --program-suf | --program-su | --program-s)
1210
ac_prev=program_suffix ;;
1211
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1212
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213
program_suffix=$ac_optarg ;;
1215
-program-transform-name | --program-transform-name \
1216
| --program-transform-nam | --program-transform-na \
1217
| --program-transform-n | --program-transform- \
1218
| --program-transform | --program-transfor \
1219
| --program-transfo | --program-transf \
1220
| --program-trans | --program-tran \
1221
| --progr-tra | --program-tr | --program-t)
1222
ac_prev=program_transform_name ;;
1223
-program-transform-name=* | --program-transform-name=* \
1224
| --program-transform-nam=* | --program-transform-na=* \
1225
| --program-transform-n=* | --program-transform-=* \
1226
| --program-transform=* | --program-transfor=* \
1227
| --program-transfo=* | --program-transf=* \
1228
| --program-trans=* | --program-tran=* \
1229
| --progr-tra=* | --program-tr=* | --program-t=*)
1230
program_transform_name=$ac_optarg ;;
1232
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235
pdfdir=$ac_optarg ;;
1237
-psdir | --psdir | --psdi | --psd | --ps)
1239
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243
| -silent | --silent | --silen | --sile | --sil)
1246
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250
sbindir=$ac_optarg ;;
1252
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1253
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254
| --sharedst | --shareds | --shared | --share | --shar \
1256
ac_prev=sharedstatedir ;;
1257
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261
sharedstatedir=$ac_optarg ;;
1263
-site | --site | --sit)
1265
-site=* | --site=* | --sit=*)
1268
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271
srcdir=$ac_optarg ;;
1273
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274
| --syscon | --sysco | --sysc | --sys | --sy)
1275
ac_prev=sysconfdir ;;
1276
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278
sysconfdir=$ac_optarg ;;
1280
-target | --target | --targe | --targ | --tar | --ta | --t)
1281
ac_prev=target_alias ;;
1282
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283
target_alias=$ac_optarg ;;
1285
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1288
-version | --version | --versio | --versi | --vers | -V)
1289
ac_init_version=: ;;
1292
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293
# Reject names that are not valid shell variable names.
1294
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1296
{ (exit 1); exit 1; }; }
1297
ac_useropt_orig=$ac_useropt
1298
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299
case $ac_user_opts in
1303
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304
ac_unrecognized_sep=', ';;
1306
eval with_$ac_useropt=\$ac_optarg ;;
1308
-without-* | --without-*)
1309
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310
# Reject names that are not valid shell variable names.
1311
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1313
{ (exit 1); exit 1; }; }
1314
ac_useropt_orig=$ac_useropt
1315
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316
case $ac_user_opts in
1320
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321
ac_unrecognized_sep=', ';;
1323
eval with_$ac_useropt=no ;;
1326
# Obsolete; use --with-x.
1329
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330
| --x-incl | --x-inc | --x-in | --x-i)
1331
ac_prev=x_includes ;;
1332
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334
x_includes=$ac_optarg ;;
1336
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1337
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338
ac_prev=x_libraries ;;
1339
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341
x_libraries=$ac_optarg ;;
1343
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1344
Try \`$0 --help' for more information." >&2
1345
{ (exit 1); exit 1; }; }
1349
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350
# Reject names that are not valid shell variable names.
1351
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1352
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1353
{ (exit 1); exit 1; }; }
1354
eval $ac_envvar=\$ac_optarg
1355
export $ac_envvar ;;
1358
# FIXME: should be removed in autoconf 3.0.
1359
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368
if test -n "$ac_prev"; then
1369
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
1371
{ (exit 1); exit 1; }; }
1374
if test -n "$ac_unrecognized_opts"; then
1375
case $enable_option_checking in
1377
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1378
{ (exit 1); exit 1; }; } ;;
1379
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383
# Check all directory arguments for consistency.
1384
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385
datadir sysconfdir sharedstatedir localstatedir includedir \
1386
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387
libdir localedir mandir
1389
eval ac_val=\$$ac_var
1390
# Remove trailing slashes.
1393
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394
eval $ac_var=\$ac_val;;
1396
# Be sure to have absolute directory names.
1398
[\\/$]* | ?:[\\/]* ) continue;;
1399
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1402
{ (exit 1); exit 1; }; }
1405
# There might be people who depend on the old broken behavior: `$host'
1406
# used to hold the argument of --host etc.
1407
# FIXME: To remove some day.
1410
target=$target_alias
1412
# FIXME: To remove some day.
1413
if test "x$host_alias" != x; then
1414
if test "x$build_alias" = x; then
1415
cross_compiling=maybe
1416
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1417
If a cross compiler is detected then cross compile mode will be used." >&2
1418
elif test "x$build_alias" != "x$host_alias"; then
1424
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
test "$silent" = yes && exec 6>/dev/null
1429
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430
ac_ls_di=`ls -di .` &&
1431
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
1433
{ (exit 1); exit 1; }; }
1434
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1436
{ (exit 1); exit 1; }; }
1439
# Find the source files, if location was not specified.
1440
if test -z "$srcdir"; then
1441
ac_srcdir_defaulted=yes
1442
# Try the directory containing this script, then the parent directory.
1443
ac_confdir=`$as_dirname -- "$as_myself" ||
1444
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1445
X"$as_myself" : 'X\(//\)[^/]' \| \
1446
X"$as_myself" : 'X\(//\)$' \| \
1447
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1448
$as_echo X"$as_myself" |
1449
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1467
if test ! -r "$srcdir/$ac_unique_file"; then
1471
ac_srcdir_defaulted=no
1473
if test ! -r "$srcdir/$ac_unique_file"; then
1474
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1475
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1476
{ (exit 1); exit 1; }; }
1478
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1481
{ (exit 1); exit 1; }; }
1483
# When building in place, set srcdir=.
1484
if test "$ac_abs_confdir" = "$ac_pwd"; then
1487
# Remove unnecessary trailing slashes from srcdir.
1488
# Double slashes in file names in object file debugging info
1489
# mess up M-x gdb in Emacs.
1491
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493
for ac_var in $ac_precious_vars; do
1494
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1495
eval ac_env_${ac_var}_value=\$${ac_var}
1496
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1497
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501
# Report the --help message.
1503
if test "$ac_init_help" = "long"; then
1504
# Omit some internal or obsolete options to make the list less imposing.
1505
# This message is too long to be a string in the A/UX 3.1 sh.
1507
\`configure' configures this package to adapt to many kinds of systems.
1509
Usage: $0 [OPTION]... [VAR=VALUE]...
1511
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1512
VAR=VALUE. See below for descriptions of some of the useful variables.
1514
Defaults for the options are specified in brackets.
1517
-h, --help display this help and exit
1518
--help=short display options specific to this package
1519
--help=recursive display the short help of all the included packages
1520
-V, --version display version information and exit
1521
-q, --quiet, --silent do not print \`checking...' messages
1522
--cache-file=FILE cache test results in FILE [disabled]
1523
-C, --config-cache alias for \`--cache-file=config.cache'
1524
-n, --no-create do not create output files
1525
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1527
Installation directories:
1528
--prefix=PREFIX install architecture-independent files in PREFIX
1529
[$ac_default_prefix]
1530
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1533
By default, \`make install' will install all the files in
1534
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1535
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1536
for instance \`--prefix=\$HOME'.
1538
For better control, use the options below.
1540
Fine tuning of the installation directories:
1541
--bindir=DIR user executables [EPREFIX/bin]
1542
--sbindir=DIR system admin executables [EPREFIX/sbin]
1543
--libexecdir=DIR program executables [EPREFIX/libexec]
1544
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1545
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1546
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1547
--libdir=DIR object code libraries [EPREFIX/lib]
1548
--includedir=DIR C header files [PREFIX/include]
1549
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1550
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1551
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1552
--infodir=DIR info documentation [DATAROOTDIR/info]
1553
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1554
--mandir=DIR man documentation [DATAROOTDIR/man]
1555
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1556
--htmldir=DIR html documentation [DOCDIR]
1557
--dvidir=DIR dvi documentation [DOCDIR]
1558
--pdfdir=DIR pdf documentation [DOCDIR]
1559
--psdir=DIR ps documentation [DOCDIR]
1565
--program-prefix=PREFIX prepend PREFIX to installed program names
1566
--program-suffix=SUFFIX append SUFFIX to installed program names
1567
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1570
--build=BUILD configure for building on BUILD [guessed]
1571
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1572
--target=TARGET configure for building compilers for TARGET [HOST]
1576
if test -n "$ac_init_help"; then
1581
--disable-option-checking ignore unrecognized --enable/--with options
1582
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1583
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1584
--disable-dependency-tracking speeds up one-time build
1585
--enable-dependency-tracking do not reject slow dependency extractors
1586
--enable-shared[=PKGS] build shared libraries [default=yes]
1587
--enable-static[=PKGS] build static libraries [default=yes]
1588
--enable-fast-install[=PKGS]
1589
optimize for fast installation [default=yes]
1590
--disable-libtool-lock avoid locking (might break parallel builds)
1591
--enable-debug Build with support for the DEBUG.
1592
--enable-dtrace Build with support for the DTRACE.
1593
--enable-64bit Build 64bit library.
1596
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1597
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1598
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599
--with-pic try to use only PIC/non-PIC objects [default=use
1601
--with-tags[=TAGS] include additional configurations [automatic]
1602
--with-memcached[=memcached binary]
1603
Memcached binary to use for make test
1605
Some influential environment variables:
1606
CC C compiler command
1607
CFLAGS C compiler flags
1608
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609
nonstandard directory <lib dir>
1610
LIBS libraries to pass to the linker, e.g. -l<library>
1611
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612
you have headers in a nonstandard directory <include dir>
1613
CXX C++ compiler command
1614
CXXFLAGS C++ compiler flags
1616
CXXCPP C++ preprocessor
1617
F77 Fortran 77 compiler command
1618
FFLAGS Fortran 77 compiler flags
1620
Use these variables to override the choices made by `configure' or to help
1621
it to find libraries and programs with nonstandard names/locations.
1627
if test "$ac_init_help" = "recursive"; then
1628
# If there are subdirs, report their specific --help.
1629
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630
test -d "$ac_dir" ||
1631
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639
# A ".." for each directory in $ac_dir_suffix.
1640
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641
case $ac_top_builddir_sub in
1642
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646
ac_abs_top_builddir=$ac_pwd
1647
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648
# for backward compatibility:
1649
ac_top_builddir=$ac_top_build_prefix
1652
.) # We are building in place.
1654
ac_top_srcdir=$ac_top_builddir_sub
1655
ac_abs_top_srcdir=$ac_pwd ;;
1656
[\\/]* | ?:[\\/]* ) # Absolute name.
1657
ac_srcdir=$srcdir$ac_dir_suffix;
1658
ac_top_srcdir=$srcdir
1659
ac_abs_top_srcdir=$srcdir ;;
1661
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662
ac_top_srcdir=$ac_top_build_prefix$srcdir
1663
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
cd "$ac_dir" || { ac_status=$?; continue; }
1668
# Check for guested configure.
1669
if test -f "$ac_srcdir/configure.gnu"; then
1671
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672
elif test -f "$ac_srcdir/configure"; then
1674
$SHELL "$ac_srcdir/configure" --help=recursive
1676
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678
cd "$ac_pwd" || { ac_status=$?; break; }
1682
test -n "$ac_init_help" && exit $ac_status
1683
if $ac_init_version; then
1686
generated by GNU Autoconf 2.63
1688
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1690
This configure script is free software; the Free Software Foundation
1691
gives unlimited permission to copy, distribute and modify it.
1695
cat >config.log <<_ACEOF
1696
This file contains any messages produced by compilers while
1697
running configure, to aid debugging if configure makes a mistake.
1699
It was created by $as_me, which was
1700
generated by GNU Autoconf 2.63. Invocation command line was
1712
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1722
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1723
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1725
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1726
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1727
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735
test -z "$as_dir" && as_dir=.
1736
$as_echo "PATH: $as_dir"
1752
# Keep a trace of the command line.
1753
# Strip out --no-create and --no-recursion so they do not pile up.
1754
# Strip out --silent because we don't want to record it for future runs.
1755
# Also quote any args containing shell meta-characters.
1756
# Make two passes to allow for proper duplicate-argument suppression.
1760
ac_must_keep_next=false
1766
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768
| -silent | --silent | --silen | --sile | --sil)
1771
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777
if test $ac_must_keep_next = true; then
1778
ac_must_keep_next=false # Got value, back to normal.
1781
*=* | --config-cache | -C | -disable-* | --disable-* \
1782
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784
| -with-* | --with-* | -without-* | --without-* | --x)
1785
case "$ac_configure_args0 " in
1786
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789
-* ) ac_must_keep_next=true ;;
1792
ac_configure_args="$ac_configure_args '$ac_arg'"
1797
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
# When interrupted or exit'd, cleanup temporary files, and complete
1801
# config.log. We remove comments because anyway the quotes in there
1802
# would cause problems or look ugly.
1803
# WARNING: Use '\'' to represent an apostrophe within the trap.
1804
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805
trap 'exit_status=$?
1806
# Save into config.log some information that might help in debugging.
1811
## ---------------- ##
1812
## Cache variables. ##
1813
## ---------------- ##
1816
# The following way of writing the cache mishandles newlines in values,
1818
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819
eval ac_val=\$$ac_var
1823
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1824
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1827
_ | IFS | as_nl) ;; #(
1828
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1829
*) $as_unset $ac_var ;;
1834
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835
*${as_nl}ac_space=\ *)
1837
"s/'\''/'\''\\\\'\'''\''/g;
1838
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849
## ----------------- ##
1850
## Output variables. ##
1851
## ----------------- ##
1854
for ac_var in $ac_subst_vars
1856
eval ac_val=\$$ac_var
1858
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860
$as_echo "$ac_var='\''$ac_val'\''"
1864
if test -n "$ac_subst_files"; then
1866
## ------------------- ##
1867
## File substitutions. ##
1868
## ------------------- ##
1871
for ac_var in $ac_subst_files
1873
eval ac_val=\$$ac_var
1875
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877
$as_echo "$ac_var='\''$ac_val'\''"
1882
if test -s confdefs.h; then
1892
test "$ac_signal" != 0 &&
1893
$as_echo "$as_me: caught signal $ac_signal"
1894
$as_echo "$as_me: exit $exit_status"
1896
rm -f core *.core core.conftest.* &&
1897
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900
for ac_signal in 1 2 13 15; do
1901
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1906
rm -f -r conftest* confdefs.h
1908
# Predefined preprocessor variables.
1910
cat >>confdefs.h <<_ACEOF
1911
#define PACKAGE_NAME "$PACKAGE_NAME"
1915
cat >>confdefs.h <<_ACEOF
1916
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920
cat >>confdefs.h <<_ACEOF
1921
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1925
cat >>confdefs.h <<_ACEOF
1926
#define PACKAGE_STRING "$PACKAGE_STRING"
1930
cat >>confdefs.h <<_ACEOF
1931
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935
# Let the site file select an alternate cache file if it wants to.
1936
# Prefer an explicitly selected file to automatically selected ones.
1939
if test -n "$CONFIG_SITE"; then
1940
ac_site_file1=$CONFIG_SITE
1941
elif test "x$prefix" != xNONE; then
1942
ac_site_file1=$prefix/share/config.site
1943
ac_site_file2=$prefix/etc/config.site
1945
ac_site_file1=$ac_default_prefix/share/config.site
1946
ac_site_file2=$ac_default_prefix/etc/config.site
1948
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1950
test "x$ac_site_file" = xNONE && continue
1951
if test -r "$ac_site_file"; then
1952
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1954
sed 's/^/| /' "$ac_site_file" >&5
1959
if test -r "$cache_file"; then
1960
# Some versions of bash will fail to source /dev/null (special
1961
# files actually), so we avoid doing that.
1962
if test -f "$cache_file"; then
1963
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964
$as_echo "$as_me: loading cache $cache_file" >&6;}
1966
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1967
*) . "./$cache_file";;
1971
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972
$as_echo "$as_me: creating cache $cache_file" >&6;}
1976
# Check that the precious variables saved in the cache have kept the same
1978
ac_cache_corrupted=false
1979
for ac_var in $ac_precious_vars; do
1980
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981
eval ac_new_set=\$ac_env_${ac_var}_set
1982
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983
eval ac_new_val=\$ac_env_${ac_var}_value
1984
case $ac_old_set,$ac_new_set in
1986
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988
ac_cache_corrupted=: ;;
1990
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992
ac_cache_corrupted=: ;;
1995
if test "x$ac_old_val" != "x$ac_new_val"; then
1996
# differences in whitespace do not lead to failure.
1997
ac_old_val_w=`echo x $ac_old_val`
1998
ac_new_val_w=`echo x $ac_new_val`
1999
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2000
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2001
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2002
ac_cache_corrupted=:
2004
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2005
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2006
eval $ac_var=\$ac_old_val
2008
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2009
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2010
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2011
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2014
# Pass precious variables to config.status.
2015
if test "$ac_new_set" = set; then
2017
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018
*) ac_arg=$ac_var=$ac_new_val ;;
2020
case " $ac_configure_args " in
2021
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2026
if $ac_cache_corrupted; then
2027
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2028
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2029
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2030
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2032
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2033
{ (exit 1); exit 1; }; }
2053
ac_cpp='$CPP $CPPFLAGS'
2054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060
for ac_dir in config "$srcdir"/config; do
2061
if test -f "$ac_dir/install-sh"; then
2063
ac_install_sh="$ac_aux_dir/install-sh -c"
2065
elif test -f "$ac_dir/install.sh"; then
2067
ac_install_sh="$ac_aux_dir/install.sh -c"
2069
elif test -f "$ac_dir/shtool"; then
2071
ac_install_sh="$ac_aux_dir/shtool install -c"
2075
if test -z "$ac_aux_dir"; then
2076
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2077
$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2078
{ (exit 1); exit 1; }; }
2081
# These three variables are undocumented and unsupported,
2082
# and are intended to be withdrawn in a future Autoconf release.
2083
# They can cause serious problems if a builder's source tree is in a directory
2084
# whose full name contains unusual characters.
2085
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2090
ac_config_headers="$ac_config_headers libmemcached/libmemcached_config.h"
2092
# Make sure we can run config.sub.
2093
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2094
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2095
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2096
{ (exit 1); exit 1; }; }
2098
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2099
$as_echo_n "checking build system type... " >&6; }
2100
if test "${ac_cv_build+set}" = set; then
2101
$as_echo_n "(cached) " >&6
2103
ac_build_alias=$build_alias
2104
test "x$ac_build_alias" = x &&
2105
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2106
test "x$ac_build_alias" = x &&
2107
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2108
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2109
{ (exit 1); exit 1; }; }
2110
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2111
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2112
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2113
{ (exit 1); exit 1; }; }
2116
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2117
$as_echo "$ac_cv_build" >&6; }
2118
case $ac_cv_build in
2120
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2121
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2122
{ (exit 1); exit 1; }; };;
2125
ac_save_IFS=$IFS; IFS='-'
2131
# Remember, the first character of IFS is used to create $*,
2132
# except with old shells:
2135
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2138
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2139
$as_echo_n "checking host system type... " >&6; }
2140
if test "${ac_cv_host+set}" = set; then
2141
$as_echo_n "(cached) " >&6
2143
if test "x$host_alias" = x; then
2144
ac_cv_host=$ac_cv_build
2146
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2147
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2148
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2149
{ (exit 1); exit 1; }; }
2153
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2154
$as_echo "$ac_cv_host" >&6; }
2157
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2158
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2159
{ (exit 1); exit 1; }; };;
2162
ac_save_IFS=$IFS; IFS='-'
2168
# Remember, the first character of IFS is used to create $*,
2169
# except with old shells:
2172
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2175
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2176
$as_echo_n "checking target system type... " >&6; }
2177
if test "${ac_cv_target+set}" = set; then
2178
$as_echo_n "(cached) " >&6
2180
if test "x$target_alias" = x; then
2181
ac_cv_target=$ac_cv_host
2183
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2184
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2185
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2186
{ (exit 1); exit 1; }; }
2190
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2191
$as_echo "$ac_cv_target" >&6; }
2192
case $ac_cv_target in
2194
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2195
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2196
{ (exit 1); exit 1; }; };;
2198
target=$ac_cv_target
2199
ac_save_IFS=$IFS; IFS='-'
2205
# Remember, the first character of IFS is used to create $*,
2206
# except with old shells:
2209
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2212
# The aliases save the names the user supplied, while $host etc.
2213
# will get canonicalized.
2214
test -n "$target_alias" &&
2215
test "$program_prefix$program_suffix$program_transform_name" = \
2217
program_prefix=${target_alias}-
2219
MEMCACHED_LIBRARY_NAME=libmemcached
2222
MEMCACHED_MAJOR_VERSION=0
2223
MEMCACHED_MINOR_VERSION=28
2224
MEMCACHED_MICRO_VERSION=0
2227
MEMCACHED_API_VERSION=1.0
2230
#shared library versioning
2231
MEMCACHED_LIBRARY_VERSION=2:0:0
2235
# current:revision:age
2237
# | | +- increment if interfaces have been added
2238
# | | set to zero if interfaces have been removed or changed
2239
# | +- increment if source code has changed
2240
# | set to zero if current is incremented
2241
# +- increment if interfaces have been added, removed or changed
2245
PACKAGE=$MEMCACHED_LIBRARY_NAME
2248
MEMCACHED_VERSION=$MEMCACHED_MAJOR_VERSION.$MEMCACHED_MINOR_VERSION.$MEMCACHED_MICRO_VERSION
2249
MEMCACHED_RELEASE=$MEMCACHED_MAJOR_VERSION.$MEMCACHED_MINOR_VERSION
2253
VERSION=$MEMCACHED_RELEASE
2255
am__api_version='1.10'
2257
# Find a good install program. We prefer a C program (faster),
2258
# so one script is as good as another. But avoid the broken or
2259
# incompatible versions:
2260
# SysV /etc/install, /usr/sbin/install
2261
# SunOS /usr/etc/install
2262
# IRIX /sbin/install
2264
# AmigaOS /C/install, which installs bootblocks on floppy discs
2265
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268
# OS/2's system install, which has a completely different semantic
2269
# ./install, which can be erroneously created by make from ./install.sh.
2270
# Reject install programs that cannot install multiple files.
2271
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2272
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2273
if test -z "$INSTALL"; then
2274
if test "${ac_cv_path_install+set}" = set; then
2275
$as_echo_n "(cached) " >&6
2277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281
test -z "$as_dir" && as_dir=.
2282
# Account for people who put trailing slashes in PATH elements.
2284
./ | .// | /cC/* | \
2285
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2289
# OSF1 and SCO ODT 3.0 have their own names for install.
2290
# Don't use installbsd from OSF since it installs stuff as root
2292
for ac_prog in ginstall scoinst install; do
2293
for ac_exec_ext in '' $ac_executable_extensions; do
2294
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2295
if test $ac_prog = install &&
2296
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297
# AIX install. It has an incompatible calling convention.
2299
elif test $ac_prog = install &&
2300
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301
# program-specific install script used by HP pwplus--don't use.
2304
rm -rf conftest.one conftest.two conftest.dir
2305
echo one > conftest.one
2306
echo two > conftest.two
2308
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309
test -s conftest.one && test -s conftest.two &&
2310
test -s conftest.dir/conftest.one &&
2311
test -s conftest.dir/conftest.two
2313
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2326
rm -rf conftest.one conftest.two conftest.dir
2329
if test "${ac_cv_path_install+set}" = set; then
2330
INSTALL=$ac_cv_path_install
2332
# As a last resort, use the slow shell script. Don't cache a
2333
# value for INSTALL within a source directory, because that will
2334
# break other packages using the cache if that directory is
2335
# removed, or if the value is a relative name.
2336
INSTALL=$ac_install_sh
2339
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2340
$as_echo "$INSTALL" >&6; }
2342
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343
# It thinks the first close brace ends the variable substitution.
2344
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2346
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2348
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2351
$as_echo_n "checking whether build environment is sane... " >&6; }
2354
echo timestamp > conftest.file
2355
# Do `set' in a subshell so we don't clobber the current shell's
2356
# arguments. Must try -L first in case configure is actually a
2357
# symlink; some systems play weird games with the mod time of symlinks
2358
# (eg FreeBSD returns the mod time of the symlink's containing
2361
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2362
if test "$*" = "X"; then
2364
set X `ls -t $srcdir/configure conftest.file`
2367
if test "$*" != "X $srcdir/configure conftest.file" \
2368
&& test "$*" != "X conftest.file $srcdir/configure"; then
2370
# If neither matched, then we have a broken ls. This can happen
2371
# if, for instance, CONFIG_SHELL is bash and it inherits a
2372
# broken ls alias from the environment. This has actually
2373
# happened. Such a system could not be considered "sane".
2374
{ { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2375
alias in your environment" >&5
2376
$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2377
alias in your environment" >&2;}
2378
{ (exit 1); exit 1; }; }
2381
test "$2" = conftest.file
2387
{ { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2388
Check your system clock" >&5
2389
$as_echo "$as_me: error: newly created file is older than distributed files!
2390
Check your system clock" >&2;}
2391
{ (exit 1); exit 1; }; }
2393
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2394
$as_echo "yes" >&6; }
2395
test "$program_prefix" != NONE &&
2396
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2397
# Use a double $ so make ignores it.
2398
test "$program_suffix" != NONE &&
2399
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2400
# Double any \ or $.
2401
# By default was `s,x,x', remove it if useless.
2402
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2403
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2405
# expand $ac_aux_dir to an absolute path
2406
am_aux_dir=`cd $ac_aux_dir && pwd`
2408
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2409
# Use eval to expand $SHELL
2410
if eval "$MISSING --run true"; then
2411
am_missing_run="$MISSING --run "
2414
{ $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2415
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2418
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2419
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2420
if test -z "$MKDIR_P"; then
2421
if test "${ac_cv_path_mkdir+set}" = set; then
2422
$as_echo_n "(cached) " >&6
2424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2428
test -z "$as_dir" && as_dir=.
2429
for ac_prog in mkdir gmkdir; do
2430
for ac_exec_ext in '' $ac_executable_extensions; do
2431
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2432
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2433
'mkdir (GNU coreutils) '* | \
2434
'mkdir (coreutils) '* | \
2435
'mkdir (fileutils) '4.1*)
2436
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2446
if test "${ac_cv_path_mkdir+set}" = set; then
2447
MKDIR_P="$ac_cv_path_mkdir -p"
2449
# As a last resort, use the slow shell script. Don't cache a
2450
# value for MKDIR_P within a source directory, because that will
2451
# break other packages using the cache if that directory is
2452
# removed, or if the value is a relative name.
2453
test -d ./--version && rmdir ./--version
2454
MKDIR_P="$ac_install_sh -d"
2457
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2458
$as_echo "$MKDIR_P" >&6; }
2462
[\\/$]* | ?:[\\/]*) ;;
2463
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2466
for ac_prog in gawk mawk nawk awk
2468
# Extract the first word of "$ac_prog", so it can be a program name with args.
2469
set dummy $ac_prog; ac_word=$2
2470
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2471
$as_echo_n "checking for $ac_word... " >&6; }
2472
if test "${ac_cv_prog_AWK+set}" = set; then
2473
$as_echo_n "(cached) " >&6
2475
if test -n "$AWK"; then
2476
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482
test -z "$as_dir" && as_dir=.
2483
for ac_exec_ext in '' $ac_executable_extensions; do
2484
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485
ac_cv_prog_AWK="$ac_prog"
2486
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496
if test -n "$AWK"; then
2497
{ $as_echo "$as_me:$LINENO: result: $AWK" >&5
2498
$as_echo "$AWK" >&6; }
2500
{ $as_echo "$as_me:$LINENO: result: no" >&5
2501
$as_echo "no" >&6; }
2505
test -n "$AWK" && break
2508
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2509
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2511
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2512
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2513
$as_echo_n "(cached) " >&6
2515
cat >conftest.make <<\_ACEOF
2518
@echo '@@@%%%=$(MAKE)=@@@%%%'
2520
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2521
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2523
eval ac_cv_prog_make_${ac_make}_set=yes;;
2525
eval ac_cv_prog_make_${ac_make}_set=no;;
2529
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2530
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2531
$as_echo "yes" >&6; }
2534
{ $as_echo "$as_me:$LINENO: result: no" >&5
2535
$as_echo "no" >&6; }
2536
SET_MAKE="MAKE=${MAKE-make}"
2539
rm -rf .tst 2>/dev/null
2540
mkdir .tst 2>/dev/null
2541
if test -d .tst; then
2546
rmdir .tst 2>/dev/null
2548
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2549
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2550
# is not polluted with repeated "-I."
2551
am__isrc=' -I$(srcdir)'
2552
# test to see if srcdir already configured
2553
if test -f $srcdir/config.status; then
2554
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2555
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2556
{ (exit 1); exit 1; }; }
2560
# test whether we have cygpath
2561
if test -z "$CYGPATH_W"; then
2562
if (cygpath --version) >/dev/null 2>/dev/null; then
2563
CYGPATH_W='cygpath -w'
2570
# Define the identity of the package.
2575
# Some tools Automake needs.
2577
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2580
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2583
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2586
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2589
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2591
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2593
# Installed binaries are usually stripped using `strip' when the user
2594
# run `make install-strip'. However `strip' might not be the right
2595
# tool to use in cross-compilation environments, therefore Automake
2596
# will honor the `STRIP' environment variable to overrule this program.
2597
if test "$cross_compiling" != no; then
2598
if test -n "$ac_tool_prefix"; then
2599
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2600
set dummy ${ac_tool_prefix}strip; ac_word=$2
2601
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2602
$as_echo_n "checking for $ac_word... " >&6; }
2603
if test "${ac_cv_prog_STRIP+set}" = set; then
2604
$as_echo_n "(cached) " >&6
2606
if test -n "$STRIP"; then
2607
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613
test -z "$as_dir" && as_dir=.
2614
for ac_exec_ext in '' $ac_executable_extensions; do
2615
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2617
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626
STRIP=$ac_cv_prog_STRIP
2627
if test -n "$STRIP"; then
2628
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2629
$as_echo "$STRIP" >&6; }
2631
{ $as_echo "$as_me:$LINENO: result: no" >&5
2632
$as_echo "no" >&6; }
2637
if test -z "$ac_cv_prog_STRIP"; then
2639
# Extract the first word of "strip", so it can be a program name with args.
2640
set dummy strip; ac_word=$2
2641
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2642
$as_echo_n "checking for $ac_word... " >&6; }
2643
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2644
$as_echo_n "(cached) " >&6
2646
if test -n "$ac_ct_STRIP"; then
2647
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653
test -z "$as_dir" && as_dir=.
2654
for ac_exec_ext in '' $ac_executable_extensions; do
2655
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656
ac_cv_prog_ac_ct_STRIP="strip"
2657
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2667
if test -n "$ac_ct_STRIP"; then
2668
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2669
$as_echo "$ac_ct_STRIP" >&6; }
2671
{ $as_echo "$as_me:$LINENO: result: no" >&5
2672
$as_echo "no" >&6; }
2675
if test "x$ac_ct_STRIP" = x; then
2678
case $cross_compiling:$ac_tool_warned in
2680
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2681
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682
ac_tool_warned=yes ;;
2687
STRIP="$ac_cv_prog_STRIP"
2691
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2693
# We need awk for the "check" target. The system "awk" is bad on
2695
# Always define AMTAR for backward compatibility.
2697
AMTAR=${AMTAR-"${am_missing_run}tar"}
2699
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2707
ac_cpp='$CPP $CPPFLAGS'
2708
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2711
if test -n "$ac_tool_prefix"; then
2712
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2713
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2714
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2715
$as_echo_n "checking for $ac_word... " >&6; }
2716
if test "${ac_cv_prog_CC+set}" = set; then
2717
$as_echo_n "(cached) " >&6
2719
if test -n "$CC"; then
2720
ac_cv_prog_CC="$CC" # Let the user override the test.
2722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726
test -z "$as_dir" && as_dir=.
2727
for ac_exec_ext in '' $ac_executable_extensions; do
2728
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2730
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740
if test -n "$CC"; then
2741
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2742
$as_echo "$CC" >&6; }
2744
{ $as_echo "$as_me:$LINENO: result: no" >&5
2745
$as_echo "no" >&6; }
2750
if test -z "$ac_cv_prog_CC"; then
2752
# Extract the first word of "gcc", so it can be a program name with args.
2753
set dummy gcc; ac_word=$2
2754
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2755
$as_echo_n "checking for $ac_word... " >&6; }
2756
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2757
$as_echo_n "(cached) " >&6
2759
if test -n "$ac_ct_CC"; then
2760
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766
test -z "$as_dir" && as_dir=.
2767
for ac_exec_ext in '' $ac_executable_extensions; do
2768
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769
ac_cv_prog_ac_ct_CC="gcc"
2770
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2780
if test -n "$ac_ct_CC"; then
2781
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2782
$as_echo "$ac_ct_CC" >&6; }
2784
{ $as_echo "$as_me:$LINENO: result: no" >&5
2785
$as_echo "no" >&6; }
2788
if test "x$ac_ct_CC" = x; then
2791
case $cross_compiling:$ac_tool_warned in
2793
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2794
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2795
ac_tool_warned=yes ;;
2803
if test -z "$CC"; then
2804
if test -n "$ac_tool_prefix"; then
2805
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2806
set dummy ${ac_tool_prefix}cc; ac_word=$2
2807
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808
$as_echo_n "checking for $ac_word... " >&6; }
2809
if test "${ac_cv_prog_CC+set}" = set; then
2810
$as_echo_n "(cached) " >&6
2812
if test -n "$CC"; then
2813
ac_cv_prog_CC="$CC" # Let the user override the test.
2815
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819
test -z "$as_dir" && as_dir=.
2820
for ac_exec_ext in '' $ac_executable_extensions; do
2821
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822
ac_cv_prog_CC="${ac_tool_prefix}cc"
2823
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833
if test -n "$CC"; then
2834
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2835
$as_echo "$CC" >&6; }
2837
{ $as_echo "$as_me:$LINENO: result: no" >&5
2838
$as_echo "no" >&6; }
2844
if test -z "$CC"; then
2845
# Extract the first word of "cc", so it can be a program name with args.
2846
set dummy cc; ac_word=$2
2847
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848
$as_echo_n "checking for $ac_word... " >&6; }
2849
if test "${ac_cv_prog_CC+set}" = set; then
2850
$as_echo_n "(cached) " >&6
2852
if test -n "$CC"; then
2853
ac_cv_prog_CC="$CC" # Let the user override the test.
2856
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860
test -z "$as_dir" && as_dir=.
2861
for ac_exec_ext in '' $ac_executable_extensions; do
2862
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2864
ac_prog_rejected=yes
2868
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875
if test $ac_prog_rejected = yes; then
2876
# We found a bogon in the path, so make sure we never use it.
2877
set dummy $ac_cv_prog_CC
2879
if test $# != 0; then
2880
# We chose a different compiler from the bogus one.
2881
# However, it has the same basename, so the bogon will be chosen
2882
# first if we set CC to just the basename; use the full file name.
2884
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890
if test -n "$CC"; then
2891
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2892
$as_echo "$CC" >&6; }
2894
{ $as_echo "$as_me:$LINENO: result: no" >&5
2895
$as_echo "no" >&6; }
2900
if test -z "$CC"; then
2901
if test -n "$ac_tool_prefix"; then
2902
for ac_prog in cl.exe
2904
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2905
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2906
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2907
$as_echo_n "checking for $ac_word... " >&6; }
2908
if test "${ac_cv_prog_CC+set}" = set; then
2909
$as_echo_n "(cached) " >&6
2911
if test -n "$CC"; then
2912
ac_cv_prog_CC="$CC" # Let the user override the test.
2914
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918
test -z "$as_dir" && as_dir=.
2919
for ac_exec_ext in '' $ac_executable_extensions; do
2920
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2922
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932
if test -n "$CC"; then
2933
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2934
$as_echo "$CC" >&6; }
2936
{ $as_echo "$as_me:$LINENO: result: no" >&5
2937
$as_echo "no" >&6; }
2941
test -n "$CC" && break
2944
if test -z "$CC"; then
2946
for ac_prog in cl.exe
2948
# Extract the first word of "$ac_prog", so it can be a program name with args.
2949
set dummy $ac_prog; ac_word=$2
2950
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2951
$as_echo_n "checking for $ac_word... " >&6; }
2952
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2953
$as_echo_n "(cached) " >&6
2955
if test -n "$ac_ct_CC"; then
2956
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962
test -z "$as_dir" && as_dir=.
2963
for ac_exec_ext in '' $ac_executable_extensions; do
2964
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965
ac_cv_prog_ac_ct_CC="$ac_prog"
2966
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2975
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976
if test -n "$ac_ct_CC"; then
2977
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2978
$as_echo "$ac_ct_CC" >&6; }
2980
{ $as_echo "$as_me:$LINENO: result: no" >&5
2981
$as_echo "no" >&6; }
2985
test -n "$ac_ct_CC" && break
2988
if test "x$ac_ct_CC" = x; then
2991
case $cross_compiling:$ac_tool_warned in
2993
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2994
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995
ac_tool_warned=yes ;;
3004
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3005
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3006
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3007
See \`config.log' for more details." >&5
3008
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3009
See \`config.log' for more details." >&2;}
3010
{ (exit 1); exit 1; }; }; }
3012
# Provide some information about the compiler.
3013
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3016
{ (ac_try="$ac_compiler --version >&5"
3018
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019
*) ac_try_echo=$ac_try;;
3021
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3022
$as_echo "$ac_try_echo") >&5
3023
(eval "$ac_compiler --version >&5") 2>&5
3025
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026
(exit $ac_status); }
3027
{ (ac_try="$ac_compiler -v >&5"
3029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030
*) ac_try_echo=$ac_try;;
3032
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3033
$as_echo "$ac_try_echo") >&5
3034
(eval "$ac_compiler -v >&5") 2>&5
3036
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037
(exit $ac_status); }
3038
{ (ac_try="$ac_compiler -V >&5"
3040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041
*) ac_try_echo=$ac_try;;
3043
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3044
$as_echo "$ac_try_echo") >&5
3045
(eval "$ac_compiler -V >&5") 2>&5
3047
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048
(exit $ac_status); }
3050
cat >conftest.$ac_ext <<_ACEOF
3053
cat confdefs.h >>conftest.$ac_ext
3054
cat >>conftest.$ac_ext <<_ACEOF
3055
/* end confdefs.h. */
3065
ac_clean_files_save=$ac_clean_files
3066
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3067
# Try to create an executable without -o first, disregard a.out.
3068
# It will help us diagnose broken compilers, and finding out an intuition
3070
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3071
$as_echo_n "checking for C compiler default output file name... " >&6; }
3072
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3074
# The possible output files:
3075
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3078
for ac_file in $ac_files
3081
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3082
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087
if { (ac_try="$ac_link_default"
3089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090
*) ac_try_echo=$ac_try;;
3092
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3093
$as_echo "$ac_try_echo") >&5
3094
(eval "$ac_link_default") 2>&5
3096
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097
(exit $ac_status); }; then
3098
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3101
# so that the user can short-circuit this test for compilers unknown to
3103
for ac_file in $ac_files ''
3105
test -f "$ac_file" || continue
3107
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3110
# We found the default executable, but exeext='' is most
3114
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3116
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118
# We set ac_cv_exeext here because the later test for it is not
3119
# safe: cross compilers may not add the suffix if given an `-o'
3120
# argument, so we may need to know it at that point already.
3121
# Even if this section looks crufty: it has the advantage of
3128
test "$ac_cv_exeext" = no && ac_cv_exeext=
3134
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3135
$as_echo "$ac_file" >&6; }
3136
if test -z "$ac_file"; then
3137
$as_echo "$as_me: failed program was:" >&5
3138
sed 's/^/| /' conftest.$ac_ext >&5
3140
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3141
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3143
See \`config.log' for more details." >&5
3144
$as_echo "$as_me: error: C compiler cannot create executables
3145
See \`config.log' for more details." >&2;}
3146
{ (exit 77); exit 77; }; }; }
3149
ac_exeext=$ac_cv_exeext
3151
# Check that the compiler produces executables we can run. If not, either
3152
# the compiler is broken, or we cross compile.
3153
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3154
$as_echo_n "checking whether the C compiler works... " >&6; }
3155
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3156
# If not cross compiling, check that we can run a simple program.
3157
if test "$cross_compiling" != yes; then
3158
if { ac_try='./$ac_file'
3159
{ (case "(($ac_try" in
3160
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161
*) ac_try_echo=$ac_try;;
3163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164
$as_echo "$ac_try_echo") >&5
3165
(eval "$ac_try") 2>&5
3167
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168
(exit $ac_status); }; }; then
3171
if test "$cross_compiling" = maybe; then
3174
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3175
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3177
If you meant to cross compile, use \`--host'.
3178
See \`config.log' for more details." >&5
3179
$as_echo "$as_me: error: cannot run C compiled programs.
3180
If you meant to cross compile, use \`--host'.
3181
See \`config.log' for more details." >&2;}
3182
{ (exit 1); exit 1; }; }; }
3186
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3187
$as_echo "yes" >&6; }
3189
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3190
ac_clean_files=$ac_clean_files_save
3191
# Check that the compiler produces executables we can run. If not, either
3192
# the compiler is broken, or we cross compile.
3193
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3194
$as_echo_n "checking whether we are cross compiling... " >&6; }
3195
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3196
$as_echo "$cross_compiling" >&6; }
3198
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3199
$as_echo_n "checking for suffix of executables... " >&6; }
3200
if { (ac_try="$ac_link"
3202
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203
*) ac_try_echo=$ac_try;;
3205
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3206
$as_echo "$ac_try_echo") >&5
3207
(eval "$ac_link") 2>&5
3209
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210
(exit $ac_status); }; then
3211
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3212
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3213
# work properly (i.e., refer to `conftest.exe'), while it won't with
3215
for ac_file in conftest.exe conftest conftest.*; do
3216
test -f "$ac_file" || continue
3218
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3226
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3228
See \`config.log' for more details." >&5
3229
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3230
See \`config.log' for more details." >&2;}
3231
{ (exit 1); exit 1; }; }; }
3234
rm -f conftest$ac_cv_exeext
3235
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3236
$as_echo "$ac_cv_exeext" >&6; }
3238
rm -f conftest.$ac_ext
3239
EXEEXT=$ac_cv_exeext
3241
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3242
$as_echo_n "checking for suffix of object files... " >&6; }
3243
if test "${ac_cv_objext+set}" = set; then
3244
$as_echo_n "(cached) " >&6
3246
cat >conftest.$ac_ext <<_ACEOF
3249
cat confdefs.h >>conftest.$ac_ext
3250
cat >>conftest.$ac_ext <<_ACEOF
3251
/* end confdefs.h. */
3261
rm -f conftest.o conftest.obj
3262
if { (ac_try="$ac_compile"
3264
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265
*) ac_try_echo=$ac_try;;
3267
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268
$as_echo "$ac_try_echo") >&5
3269
(eval "$ac_compile") 2>&5
3271
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272
(exit $ac_status); }; then
3273
for ac_file in conftest.o conftest.obj conftest.*; do
3274
test -f "$ac_file" || continue;
3276
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3277
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282
$as_echo "$as_me: failed program was:" >&5
3283
sed 's/^/| /' conftest.$ac_ext >&5
3285
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3286
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3288
See \`config.log' for more details." >&5
3289
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3290
See \`config.log' for more details." >&2;}
3291
{ (exit 1); exit 1; }; }; }
3294
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3296
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3297
$as_echo "$ac_cv_objext" >&6; }
3298
OBJEXT=$ac_cv_objext
3300
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3301
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3302
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3303
$as_echo_n "(cached) " >&6
3305
cat >conftest.$ac_ext <<_ACEOF
3308
cat confdefs.h >>conftest.$ac_ext
3309
cat >>conftest.$ac_ext <<_ACEOF
3310
/* end confdefs.h. */
3323
rm -f conftest.$ac_objext
3324
if { (ac_try="$ac_compile"
3326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327
*) ac_try_echo=$ac_try;;
3329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3330
$as_echo "$ac_try_echo") >&5
3331
(eval "$ac_compile") 2>conftest.er1
3333
grep -v '^ *+' conftest.er1 >conftest.err
3335
cat conftest.err >&5
3336
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337
(exit $ac_status); } && {
3338
test -z "$ac_c_werror_flag" ||
3339
test ! -s conftest.err
3340
} && test -s conftest.$ac_objext; then
3343
$as_echo "$as_me: failed program was:" >&5
3344
sed 's/^/| /' conftest.$ac_ext >&5
3349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3353
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3354
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3355
if test $ac_compiler_gnu = yes; then
3360
ac_test_CFLAGS=${CFLAGS+set}
3361
ac_save_CFLAGS=$CFLAGS
3362
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3363
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3364
if test "${ac_cv_prog_cc_g+set}" = set; then
3365
$as_echo_n "(cached) " >&6
3367
ac_save_c_werror_flag=$ac_c_werror_flag
3368
ac_c_werror_flag=yes
3371
cat >conftest.$ac_ext <<_ACEOF
3374
cat confdefs.h >>conftest.$ac_ext
3375
cat >>conftest.$ac_ext <<_ACEOF
3376
/* end confdefs.h. */
3386
rm -f conftest.$ac_objext
3387
if { (ac_try="$ac_compile"
3389
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390
*) ac_try_echo=$ac_try;;
3392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3393
$as_echo "$ac_try_echo") >&5
3394
(eval "$ac_compile") 2>conftest.er1
3396
grep -v '^ *+' conftest.er1 >conftest.err
3398
cat conftest.err >&5
3399
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400
(exit $ac_status); } && {
3401
test -z "$ac_c_werror_flag" ||
3402
test ! -s conftest.err
3403
} && test -s conftest.$ac_objext; then
3406
$as_echo "$as_me: failed program was:" >&5
3407
sed 's/^/| /' conftest.$ac_ext >&5
3410
cat >conftest.$ac_ext <<_ACEOF
3413
cat confdefs.h >>conftest.$ac_ext
3414
cat >>conftest.$ac_ext <<_ACEOF
3415
/* end confdefs.h. */
3425
rm -f conftest.$ac_objext
3426
if { (ac_try="$ac_compile"
3428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429
*) ac_try_echo=$ac_try;;
3431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432
$as_echo "$ac_try_echo") >&5
3433
(eval "$ac_compile") 2>conftest.er1
3435
grep -v '^ *+' conftest.er1 >conftest.err
3437
cat conftest.err >&5
3438
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439
(exit $ac_status); } && {
3440
test -z "$ac_c_werror_flag" ||
3441
test ! -s conftest.err
3442
} && test -s conftest.$ac_objext; then
3445
$as_echo "$as_me: failed program was:" >&5
3446
sed 's/^/| /' conftest.$ac_ext >&5
3448
ac_c_werror_flag=$ac_save_c_werror_flag
3450
cat >conftest.$ac_ext <<_ACEOF
3453
cat confdefs.h >>conftest.$ac_ext
3454
cat >>conftest.$ac_ext <<_ACEOF
3455
/* end confdefs.h. */
3465
rm -f conftest.$ac_objext
3466
if { (ac_try="$ac_compile"
3468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469
*) ac_try_echo=$ac_try;;
3471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3472
$as_echo "$ac_try_echo") >&5
3473
(eval "$ac_compile") 2>conftest.er1
3475
grep -v '^ *+' conftest.er1 >conftest.err
3477
cat conftest.err >&5
3478
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479
(exit $ac_status); } && {
3480
test -z "$ac_c_werror_flag" ||
3481
test ! -s conftest.err
3482
} && test -s conftest.$ac_objext; then
3485
$as_echo "$as_me: failed program was:" >&5
3486
sed 's/^/| /' conftest.$ac_ext >&5
3491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498
ac_c_werror_flag=$ac_save_c_werror_flag
3500
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3501
$as_echo "$ac_cv_prog_cc_g" >&6; }
3502
if test "$ac_test_CFLAGS" = set; then
3503
CFLAGS=$ac_save_CFLAGS
3504
elif test $ac_cv_prog_cc_g = yes; then
3505
if test "$GCC" = yes; then
3511
if test "$GCC" = yes; then
3517
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3518
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3519
if test "${ac_cv_prog_cc_c89+set}" = set; then
3520
$as_echo_n "(cached) " >&6
3522
ac_cv_prog_cc_c89=no
3524
cat >conftest.$ac_ext <<_ACEOF
3527
cat confdefs.h >>conftest.$ac_ext
3528
cat >>conftest.$ac_ext <<_ACEOF
3529
/* end confdefs.h. */
3532
#include <sys/types.h>
3533
#include <sys/stat.h>
3534
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3535
struct buf { int x; };
3536
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537
static char *e (p, i)
3543
static char *f (char * (*g) (char **, int), char **p, ...)
3548
s = g (p, va_arg (v,int));
3553
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3554
function prototypes and stuff, but not '\xHH' hex character constants.
3555
These don't provoke an error unfortunately, instead are silently treated
3556
as 'x'. The following induces an error, until -std is added to get
3557
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3558
array size at least. It's necessary to write '\x00'==0 to get something
3559
that's true only with -std. */
3560
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3562
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563
inside strings and character constants. */
3565
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3567
int test (int i, double x);
3568
struct s1 {int (*f) (int a);};
3569
struct s2 {int (*f) (double a);};
3570
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3581
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584
CC="$ac_save_CC $ac_arg"
3585
rm -f conftest.$ac_objext
3586
if { (ac_try="$ac_compile"
3588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589
*) ac_try_echo=$ac_try;;
3591
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592
$as_echo "$ac_try_echo") >&5
3593
(eval "$ac_compile") 2>conftest.er1
3595
grep -v '^ *+' conftest.er1 >conftest.err
3597
cat conftest.err >&5
3598
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599
(exit $ac_status); } && {
3600
test -z "$ac_c_werror_flag" ||
3601
test ! -s conftest.err
3602
} && test -s conftest.$ac_objext; then
3603
ac_cv_prog_cc_c89=$ac_arg
3605
$as_echo "$as_me: failed program was:" >&5
3606
sed 's/^/| /' conftest.$ac_ext >&5
3611
rm -f core conftest.err conftest.$ac_objext
3612
test "x$ac_cv_prog_cc_c89" != "xno" && break
3614
rm -f conftest.$ac_ext
3619
case "x$ac_cv_prog_cc_c89" in
3621
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3622
$as_echo "none needed" >&6; } ;;
3624
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3625
$as_echo "unsupported" >&6; } ;;
3627
CC="$CC $ac_cv_prog_cc_c89"
3628
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3629
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3634
ac_cpp='$CPP $CPPFLAGS'
3635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
DEPDIR="${am__leading_dot}deps"
3640
ac_config_commands="$ac_config_commands depfiles"
3643
am_make=${MAKE-make}
3644
cat > confinc << 'END'
3649
# If we don't find an include directive, just comment out the code.
3650
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3651
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3655
# First try GNU make style include.
3656
echo "include confinc" > confmf
3657
# We grep out `Entering directory' and `Leaving directory'
3658
# messages which can occur if `w' ends up in MAKEFLAGS.
3659
# In particular we don't look at `^make:' because GNU make might
3660
# be invoked under some other name (usually "gmake"), in which
3661
# case it prints its new name instead of `make'.
3662
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3667
# Now try BSD make style include.
3668
if test "$am__include" = "#"; then
3669
echo '.include "confinc"' > confmf
3670
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3671
am__include=.include
3678
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3679
$as_echo "$_am_result" >&6; }
3680
rm -f confinc confmf
3682
# Check whether --enable-dependency-tracking was given.
3683
if test "${enable_dependency_tracking+set}" = set; then
3684
enableval=$enable_dependency_tracking;
3687
if test "x$enable_dependency_tracking" != xno; then
3688
am_depcomp="$ac_aux_dir/depcomp"
3691
if test "x$enable_dependency_tracking" != xno; then
3701
depcc="$CC" am_compiler_list=
3703
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3704
$as_echo_n "checking dependency style of $depcc... " >&6; }
3705
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3706
$as_echo_n "(cached) " >&6
3708
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709
# We make a subdir and do the tests there. Otherwise we can end up
3710
# making bogus files that we don't know about and never remove. For
3711
# instance it was reported that on HP-UX the gcc test will end up
3712
# making a dummy file named `D' -- because `-MD' means `put the output
3715
# Copy depcomp to subdir because otherwise we won't find it if we're
3716
# using a relative directory.
3717
cp "$am_depcomp" conftest.dir
3719
# We will build objects and dependencies in a subdirectory because
3720
# it helps to detect inapplicable dependency modes. For instance
3721
# both Tru64's cc and ICC support -MD to output dependencies as a
3722
# side effect of compilation, but ICC will put the dependencies in
3723
# the current directory while Tru64 will put them in the object
3727
am_cv_CC_dependencies_compiler_type=none
3728
if test "$am_compiler_list" = ""; then
3729
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3731
for depmode in $am_compiler_list; do
3732
# Setup a source with many dependencies, because some compilers
3733
# like to wrap large dependency lists on column 80 (with \), and
3734
# we should not choose a depcomp mode which is confused by this.
3736
# We need to recreate these files for each test, as the compiler may
3737
# overwrite some of them when testing with obscure command lines.
3738
# This happens at least with the AIX C compiler.
3740
for i in 1 2 3 4 5 6; do
3741
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3742
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3743
# Solaris 8's {/usr,}/bin/sh.
3744
touch sub/conftst$i.h
3746
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750
# after this tag, mechanisms are not by side-effect, so they'll
3751
# only be used when explicitly requested
3752
if test "x$enable_dependency_tracking" = xyes; then
3760
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3761
# mode. It turns out that the SunPro C++ compiler does not properly
3762
# handle `-M -o', and we need to detect this.
3763
if depmode=$depmode \
3764
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3765
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3766
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3767
>/dev/null 2>conftest.err &&
3768
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3769
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3770
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3771
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3772
# icc doesn't choke on unknown options, it will just issue warnings
3773
# or remarks (even with -Werror). So we grep stderr for any message
3774
# that says an option was ignored or not supported.
3775
# When given -MP, icc 7.0 and 7.1 complain thusly:
3776
# icc: Command line warning: ignoring option '-M'; no argument required
3777
# The diagnosis changed in icc 8.0:
3778
# icc: Command line remark: option '-MP' not supported
3779
if (grep 'ignoring option' conftest.err ||
3780
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3781
am_cv_CC_dependencies_compiler_type=$depmode
3790
am_cv_CC_dependencies_compiler_type=none
3794
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3795
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3796
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3799
test "x$enable_dependency_tracking" != xno \
3800
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3802
am__fastdepCC_FALSE='#'
3804
am__fastdepCC_TRUE='#'
3805
am__fastdepCC_FALSE=
3809
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3810
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3811
if test "${ac_cv_prog_cc_c99+set}" = set; then
3812
$as_echo_n "(cached) " >&6
3814
ac_cv_prog_cc_c99=no
3816
cat >conftest.$ac_ext <<_ACEOF
3819
cat confdefs.h >>conftest.$ac_ext
3820
cat >>conftest.$ac_ext <<_ACEOF
3821
/* end confdefs.h. */
3823
#include <stdbool.h>
3828
// Check varargs macros. These examples are taken from C99 6.10.3.5.
3829
#define debug(...) fprintf (stderr, __VA_ARGS__)
3830
#define showlist(...) puts (#__VA_ARGS__)
3831
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3833
test_varargs_macros (void)
3838
debug ("X = %d\n", x);
3839
showlist (The first, second, and third items.);
3840
report (x>y, "x is %d but y is %d", x, y);
3843
// Check long long types.
3844
#define BIG64 18446744073709551615ull
3845
#define BIG32 4294967295ul
3846
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3848
your preprocessor is broken;
3852
your preprocessor is broken;
3854
static long long int bignum = -9223372036854775807LL;
3855
static unsigned long long int ubignum = BIG64;
3857
struct incomplete_array
3865
const wchar_t *name;
3869
typedef const char *ccp;
3872
test_restrict (ccp restrict text)
3874
// See if C++-style comments work.
3875
// Iterate through items via the restricted pointer.
3876
// Also check for declarations in for loops.
3877
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3882
// Check varargs and va_copy.
3884
test_varargs (const char *format, ...)
3887
va_start (args, format);
3889
va_copy (args_copy, args);
3900
str = va_arg (args_copy, const char *);
3903
number = va_arg (args_copy, int);
3906
fnumber = va_arg (args_copy, double);
3921
_Bool success = false;
3924
if (test_restrict ("String literal") == 0)
3926
char *restrict newvar = "Another string";
3929
test_varargs ("s, d' f .", "string", 65, 34.234);
3930
test_varargs_macros ();
3932
// Check flexible array members.
3933
struct incomplete_array *ia =
3934
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3936
for (int i = 0; i < ia->datasize; ++i)
3937
ia->data[i] = i * 1.234;
3939
// Check named initializers.
3940
struct named_init ni = {
3942
.name = L"Test wide string",
3943
.average = 543.34343,
3948
int dynamic_array[ni.number];
3949
dynamic_array[ni.number - 1] = 543;
3951
// work around unused variable warnings
3952
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3953
|| dynamic_array[ni.number - 1] != 543);
3959
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3961
CC="$ac_save_CC $ac_arg"
3962
rm -f conftest.$ac_objext
3963
if { (ac_try="$ac_compile"
3965
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966
*) ac_try_echo=$ac_try;;
3968
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3969
$as_echo "$ac_try_echo") >&5
3970
(eval "$ac_compile") 2>conftest.er1
3972
grep -v '^ *+' conftest.er1 >conftest.err
3974
cat conftest.err >&5
3975
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976
(exit $ac_status); } && {
3977
test -z "$ac_c_werror_flag" ||
3978
test ! -s conftest.err
3979
} && test -s conftest.$ac_objext; then
3980
ac_cv_prog_cc_c99=$ac_arg
3982
$as_echo "$as_me: failed program was:" >&5
3983
sed 's/^/| /' conftest.$ac_ext >&5
3988
rm -f core conftest.err conftest.$ac_objext
3989
test "x$ac_cv_prog_cc_c99" != "xno" && break
3991
rm -f conftest.$ac_ext
3996
case "x$ac_cv_prog_cc_c99" in
3998
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3999
$as_echo "none needed" >&6; } ;;
4001
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
4002
$as_echo "unsupported" >&6; } ;;
4004
CC="$CC $ac_cv_prog_cc_c99"
4005
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4006
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4012
ac_cpp='$CXXCPP $CPPFLAGS'
4013
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4016
if test -z "$CXX"; then
4017
if test -n "$CCC"; then
4020
if test -n "$ac_tool_prefix"; then
4021
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4023
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4024
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4025
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4026
$as_echo_n "checking for $ac_word... " >&6; }
4027
if test "${ac_cv_prog_CXX+set}" = set; then
4028
$as_echo_n "(cached) " >&6
4030
if test -n "$CXX"; then
4031
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037
test -z "$as_dir" && as_dir=.
4038
for ac_exec_ext in '' $ac_executable_extensions; do
4039
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4041
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051
if test -n "$CXX"; then
4052
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
4053
$as_echo "$CXX" >&6; }
4055
{ $as_echo "$as_me:$LINENO: result: no" >&5
4056
$as_echo "no" >&6; }
4060
test -n "$CXX" && break
4063
if test -z "$CXX"; then
4065
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4067
# Extract the first word of "$ac_prog", so it can be a program name with args.
4068
set dummy $ac_prog; ac_word=$2
4069
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4070
$as_echo_n "checking for $ac_word... " >&6; }
4071
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4072
$as_echo_n "(cached) " >&6
4074
if test -n "$ac_ct_CXX"; then
4075
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081
test -z "$as_dir" && as_dir=.
4082
for ac_exec_ext in '' $ac_executable_extensions; do
4083
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084
ac_cv_prog_ac_ct_CXX="$ac_prog"
4085
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4095
if test -n "$ac_ct_CXX"; then
4096
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4097
$as_echo "$ac_ct_CXX" >&6; }
4099
{ $as_echo "$as_me:$LINENO: result: no" >&5
4100
$as_echo "no" >&6; }
4104
test -n "$ac_ct_CXX" && break
4107
if test "x$ac_ct_CXX" = x; then
4110
case $cross_compiling:$ac_tool_warned in
4112
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4113
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114
ac_tool_warned=yes ;;
4122
# Provide some information about the compiler.
4123
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4126
{ (ac_try="$ac_compiler --version >&5"
4128
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129
*) ac_try_echo=$ac_try;;
4131
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4132
$as_echo "$ac_try_echo") >&5
4133
(eval "$ac_compiler --version >&5") 2>&5
4135
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136
(exit $ac_status); }
4137
{ (ac_try="$ac_compiler -v >&5"
4139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140
*) ac_try_echo=$ac_try;;
4142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4143
$as_echo "$ac_try_echo") >&5
4144
(eval "$ac_compiler -v >&5") 2>&5
4146
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147
(exit $ac_status); }
4148
{ (ac_try="$ac_compiler -V >&5"
4150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151
*) ac_try_echo=$ac_try;;
4153
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4154
$as_echo "$ac_try_echo") >&5
4155
(eval "$ac_compiler -V >&5") 2>&5
4157
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158
(exit $ac_status); }
4160
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4161
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4162
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4163
$as_echo_n "(cached) " >&6
4165
cat >conftest.$ac_ext <<_ACEOF
4168
cat confdefs.h >>conftest.$ac_ext
4169
cat >>conftest.$ac_ext <<_ACEOF
4170
/* end confdefs.h. */
4183
rm -f conftest.$ac_objext
4184
if { (ac_try="$ac_compile"
4186
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187
*) ac_try_echo=$ac_try;;
4189
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4190
$as_echo "$ac_try_echo") >&5
4191
(eval "$ac_compile") 2>conftest.er1
4193
grep -v '^ *+' conftest.er1 >conftest.err
4195
cat conftest.err >&5
4196
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197
(exit $ac_status); } && {
4198
test -z "$ac_cxx_werror_flag" ||
4199
test ! -s conftest.err
4200
} && test -s conftest.$ac_objext; then
4203
$as_echo "$as_me: failed program was:" >&5
4204
sed 's/^/| /' conftest.$ac_ext >&5
4209
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4213
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4214
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4215
if test $ac_compiler_gnu = yes; then
4220
ac_test_CXXFLAGS=${CXXFLAGS+set}
4221
ac_save_CXXFLAGS=$CXXFLAGS
4222
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4223
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4224
if test "${ac_cv_prog_cxx_g+set}" = set; then
4225
$as_echo_n "(cached) " >&6
4227
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4228
ac_cxx_werror_flag=yes
4231
cat >conftest.$ac_ext <<_ACEOF
4234
cat confdefs.h >>conftest.$ac_ext
4235
cat >>conftest.$ac_ext <<_ACEOF
4236
/* end confdefs.h. */
4246
rm -f conftest.$ac_objext
4247
if { (ac_try="$ac_compile"
4249
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250
*) ac_try_echo=$ac_try;;
4252
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4253
$as_echo "$ac_try_echo") >&5
4254
(eval "$ac_compile") 2>conftest.er1
4256
grep -v '^ *+' conftest.er1 >conftest.err
4258
cat conftest.err >&5
4259
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260
(exit $ac_status); } && {
4261
test -z "$ac_cxx_werror_flag" ||
4262
test ! -s conftest.err
4263
} && test -s conftest.$ac_objext; then
4264
ac_cv_prog_cxx_g=yes
4266
$as_echo "$as_me: failed program was:" >&5
4267
sed 's/^/| /' conftest.$ac_ext >&5
4270
cat >conftest.$ac_ext <<_ACEOF
4273
cat confdefs.h >>conftest.$ac_ext
4274
cat >>conftest.$ac_ext <<_ACEOF
4275
/* end confdefs.h. */
4285
rm -f conftest.$ac_objext
4286
if { (ac_try="$ac_compile"
4288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289
*) ac_try_echo=$ac_try;;
4291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4292
$as_echo "$ac_try_echo") >&5
4293
(eval "$ac_compile") 2>conftest.er1
4295
grep -v '^ *+' conftest.er1 >conftest.err
4297
cat conftest.err >&5
4298
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299
(exit $ac_status); } && {
4300
test -z "$ac_cxx_werror_flag" ||
4301
test ! -s conftest.err
4302
} && test -s conftest.$ac_objext; then
4305
$as_echo "$as_me: failed program was:" >&5
4306
sed 's/^/| /' conftest.$ac_ext >&5
4308
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4310
cat >conftest.$ac_ext <<_ACEOF
4313
cat confdefs.h >>conftest.$ac_ext
4314
cat >>conftest.$ac_ext <<_ACEOF
4315
/* end confdefs.h. */
4325
rm -f conftest.$ac_objext
4326
if { (ac_try="$ac_compile"
4328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329
*) ac_try_echo=$ac_try;;
4331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4332
$as_echo "$ac_try_echo") >&5
4333
(eval "$ac_compile") 2>conftest.er1
4335
grep -v '^ *+' conftest.er1 >conftest.err
4337
cat conftest.err >&5
4338
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339
(exit $ac_status); } && {
4340
test -z "$ac_cxx_werror_flag" ||
4341
test ! -s conftest.err
4342
} && test -s conftest.$ac_objext; then
4343
ac_cv_prog_cxx_g=yes
4345
$as_echo "$as_me: failed program was:" >&5
4346
sed 's/^/| /' conftest.$ac_ext >&5
4351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4360
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4361
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4362
if test "$ac_test_CXXFLAGS" = set; then
4363
CXXFLAGS=$ac_save_CXXFLAGS
4364
elif test $ac_cv_prog_cxx_g = yes; then
4365
if test "$GXX" = yes; then
4371
if test "$GXX" = yes; then
4378
ac_cpp='$CPP $CPPFLAGS'
4379
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383
depcc="$CXX" am_compiler_list=
4385
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4386
$as_echo_n "checking dependency style of $depcc... " >&6; }
4387
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4388
$as_echo_n "(cached) " >&6
4390
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391
# We make a subdir and do the tests there. Otherwise we can end up
4392
# making bogus files that we don't know about and never remove. For
4393
# instance it was reported that on HP-UX the gcc test will end up
4394
# making a dummy file named `D' -- because `-MD' means `put the output
4397
# Copy depcomp to subdir because otherwise we won't find it if we're
4398
# using a relative directory.
4399
cp "$am_depcomp" conftest.dir
4401
# We will build objects and dependencies in a subdirectory because
4402
# it helps to detect inapplicable dependency modes. For instance
4403
# both Tru64's cc and ICC support -MD to output dependencies as a
4404
# side effect of compilation, but ICC will put the dependencies in
4405
# the current directory while Tru64 will put them in the object
4409
am_cv_CXX_dependencies_compiler_type=none
4410
if test "$am_compiler_list" = ""; then
4411
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4413
for depmode in $am_compiler_list; do
4414
# Setup a source with many dependencies, because some compilers
4415
# like to wrap large dependency lists on column 80 (with \), and
4416
# we should not choose a depcomp mode which is confused by this.
4418
# We need to recreate these files for each test, as the compiler may
4419
# overwrite some of them when testing with obscure command lines.
4420
# This happens at least with the AIX C compiler.
4422
for i in 1 2 3 4 5 6; do
4423
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4424
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4425
# Solaris 8's {/usr,}/bin/sh.
4426
touch sub/conftst$i.h
4428
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4432
# after this tag, mechanisms are not by side-effect, so they'll
4433
# only be used when explicitly requested
4434
if test "x$enable_dependency_tracking" = xyes; then
4442
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4443
# mode. It turns out that the SunPro C++ compiler does not properly
4444
# handle `-M -o', and we need to detect this.
4445
if depmode=$depmode \
4446
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4447
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4448
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4449
>/dev/null 2>conftest.err &&
4450
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4451
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4452
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4453
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4454
# icc doesn't choke on unknown options, it will just issue warnings
4455
# or remarks (even with -Werror). So we grep stderr for any message
4456
# that says an option was ignored or not supported.
4457
# When given -MP, icc 7.0 and 7.1 complain thusly:
4458
# icc: Command line warning: ignoring option '-M'; no argument required
4459
# The diagnosis changed in icc 8.0:
4460
# icc: Command line remark: option '-MP' not supported
4461
if (grep 'ignoring option' conftest.err ||
4462
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4463
am_cv_CXX_dependencies_compiler_type=$depmode
4472
am_cv_CXX_dependencies_compiler_type=none
4476
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4477
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4478
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4481
test "x$enable_dependency_tracking" != xno \
4482
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4483
am__fastdepCXX_TRUE=
4484
am__fastdepCXX_FALSE='#'
4486
am__fastdepCXX_TRUE='#'
4487
am__fastdepCXX_FALSE=
4491
# Check whether --enable-shared was given.
4492
if test "${enable_shared+set}" = set; then
4493
enableval=$enable_shared; p=${PACKAGE-default}
4495
yes) enable_shared=yes ;;
4496
no) enable_shared=no ;;
4499
# Look at the argument we got. We use all the common list separators.
4500
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4501
for pkg in $enableval; do
4503
if test "X$pkg" = "X$p"; then
4515
# Check whether --enable-static was given.
4516
if test "${enable_static+set}" = set; then
4517
enableval=$enable_static; p=${PACKAGE-default}
4519
yes) enable_static=yes ;;
4520
no) enable_static=no ;;
4523
# Look at the argument we got. We use all the common list separators.
4524
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4525
for pkg in $enableval; do
4527
if test "X$pkg" = "X$p"; then
4539
# Check whether --enable-fast-install was given.
4540
if test "${enable_fast_install+set}" = set; then
4541
enableval=$enable_fast_install; p=${PACKAGE-default}
4543
yes) enable_fast_install=yes ;;
4544
no) enable_fast_install=no ;;
4546
enable_fast_install=no
4547
# Look at the argument we got. We use all the common list separators.
4548
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4549
for pkg in $enableval; do
4551
if test "X$pkg" = "X$p"; then
4552
enable_fast_install=yes
4559
enable_fast_install=yes
4563
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4564
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4565
if test "${lt_cv_path_SED+set}" = set; then
4566
$as_echo_n "(cached) " >&6
4568
# Loop through the user's path and test for sed and gsed.
4569
# Then use that list of sed's as ones to test for truncation.
4570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574
test -z "$as_dir" && as_dir=.
4575
for lt_ac_prog in sed gsed; do
4576
for ac_exec_ext in '' $ac_executable_extensions; do
4577
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4578
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4586
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4587
# along with /bin/sed that truncates output.
4588
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4589
test ! -f $lt_ac_sed && continue
4590
cat /dev/null > conftest.in
4592
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4593
# Check for GNU sed and select it if it is found.
4594
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4595
lt_cv_path_SED=$lt_ac_sed
4599
cat conftest.in conftest.in >conftest.tmp
4600
mv conftest.tmp conftest.in
4601
cp conftest.in conftest.nl
4603
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4604
cmp -s conftest.out conftest.nl || break
4605
# 10000 chars as input seems more than enough
4606
test $lt_ac_count -gt 10 && break
4607
lt_ac_count=`expr $lt_ac_count + 1`
4608
if test $lt_ac_count -gt $lt_ac_max; then
4609
lt_ac_max=$lt_ac_count
4610
lt_cv_path_SED=$lt_ac_sed
4619
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
4620
$as_echo "$SED" >&6; }
4622
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4623
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4624
if test "${ac_cv_path_GREP+set}" = set; then
4625
$as_echo_n "(cached) " >&6
4627
if test -z "$GREP"; then
4628
ac_path_GREP_found=false
4629
# Loop through the user's path and test for each of PROGNAME-LIST
4630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634
test -z "$as_dir" && as_dir=.
4635
for ac_prog in grep ggrep; do
4636
for ac_exec_ext in '' $ac_executable_extensions; do
4637
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4638
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4639
# Check for GNU ac_path_GREP and select it if it is found.
4640
# Check for GNU $ac_path_GREP
4641
case `"$ac_path_GREP" --version 2>&1` in
4643
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646
$as_echo_n 0123456789 >"conftest.in"
4649
cat "conftest.in" "conftest.in" >"conftest.tmp"
4650
mv "conftest.tmp" "conftest.in"
4651
cp "conftest.in" "conftest.nl"
4652
$as_echo 'GREP' >> "conftest.nl"
4653
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655
ac_count=`expr $ac_count + 1`
4656
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4657
# Best one so far, save it but keep looking for a better one
4658
ac_cv_path_GREP="$ac_path_GREP"
4659
ac_path_GREP_max=$ac_count
4661
# 10*(2^10) chars as input seems more than enough
4662
test $ac_count -gt 10 && break
4664
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667
$ac_path_GREP_found && break 3
4672
if test -z "$ac_cv_path_GREP"; then
4673
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4674
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4675
{ (exit 1); exit 1; }; }
4678
ac_cv_path_GREP=$GREP
4682
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4683
$as_echo "$ac_cv_path_GREP" >&6; }
4684
GREP="$ac_cv_path_GREP"
4687
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4688
$as_echo_n "checking for egrep... " >&6; }
4689
if test "${ac_cv_path_EGREP+set}" = set; then
4690
$as_echo_n "(cached) " >&6
4692
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693
then ac_cv_path_EGREP="$GREP -E"
4695
if test -z "$EGREP"; then
4696
ac_path_EGREP_found=false
4697
# Loop through the user's path and test for each of PROGNAME-LIST
4698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4702
test -z "$as_dir" && as_dir=.
4703
for ac_prog in egrep; do
4704
for ac_exec_ext in '' $ac_executable_extensions; do
4705
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4707
# Check for GNU ac_path_EGREP and select it if it is found.
4708
# Check for GNU $ac_path_EGREP
4709
case `"$ac_path_EGREP" --version 2>&1` in
4711
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4714
$as_echo_n 0123456789 >"conftest.in"
4717
cat "conftest.in" "conftest.in" >"conftest.tmp"
4718
mv "conftest.tmp" "conftest.in"
4719
cp "conftest.in" "conftest.nl"
4720
$as_echo 'EGREP' >> "conftest.nl"
4721
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723
ac_count=`expr $ac_count + 1`
4724
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725
# Best one so far, save it but keep looking for a better one
4726
ac_cv_path_EGREP="$ac_path_EGREP"
4727
ac_path_EGREP_max=$ac_count
4729
# 10*(2^10) chars as input seems more than enough
4730
test $ac_count -gt 10 && break
4732
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4735
$ac_path_EGREP_found && break 3
4740
if test -z "$ac_cv_path_EGREP"; then
4741
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4742
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4743
{ (exit 1); exit 1; }; }
4746
ac_cv_path_EGREP=$EGREP
4751
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4752
$as_echo "$ac_cv_path_EGREP" >&6; }
4753
EGREP="$ac_cv_path_EGREP"
4757
# Check whether --with-gnu-ld was given.
4758
if test "${with_gnu_ld+set}" = set; then
4759
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4765
if test "$GCC" = yes; then
4766
# Check if gcc -print-prog-name=ld gives a path.
4767
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4768
$as_echo_n "checking for ld used by $CC... " >&6; }
4771
# gcc leaves a trailing carriage return which upsets mingw
4772
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4774
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4777
# Accept absolute paths.
4779
re_direlt='/[^/][^/]*/\.\./'
4780
# Canonicalize the pathname of ld
4781
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4782
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4783
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4785
test -z "$LD" && LD="$ac_prog"
4788
# If it fails, then pretend we aren't using GCC.
4792
# If it is relative, then search for the first ld in PATH.
4796
elif test "$with_gnu_ld" = yes; then
4797
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4798
$as_echo_n "checking for GNU ld... " >&6; }
4800
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4801
$as_echo_n "checking for non-GNU ld... " >&6; }
4803
if test "${lt_cv_path_LD+set}" = set; then
4804
$as_echo_n "(cached) " >&6
4806
if test -z "$LD"; then
4807
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4808
for ac_dir in $PATH; do
4810
test -z "$ac_dir" && ac_dir=.
4811
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4812
lt_cv_path_LD="$ac_dir/$ac_prog"
4813
# Check to see if the program is GNU ld. I'd rather use --version,
4814
# but apparently some variants of GNU ld only accept -v.
4815
# Break only if it was the GNU/non-GNU ld that we prefer.
4816
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4817
*GNU* | *'with BFD'*)
4818
test "$with_gnu_ld" != no && break
4821
test "$with_gnu_ld" != yes && break
4828
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4833
if test -n "$LD"; then
4834
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
4835
$as_echo "$LD" >&6; }
4837
{ $as_echo "$as_me:$LINENO: result: no" >&5
4838
$as_echo "no" >&6; }
4840
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4841
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4842
{ (exit 1); exit 1; }; }
4843
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4844
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4845
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4846
$as_echo_n "(cached) " >&6
4848
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4849
case `$LD -v 2>&1 </dev/null` in
4850
*GNU* | *'with BFD'*)
4851
lt_cv_prog_gnu_ld=yes
4854
lt_cv_prog_gnu_ld=no
4858
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4859
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4860
with_gnu_ld=$lt_cv_prog_gnu_ld
4863
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4864
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4865
if test "${lt_cv_ld_reload_flag+set}" = set; then
4866
$as_echo_n "(cached) " >&6
4868
lt_cv_ld_reload_flag='-r'
4870
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4871
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4872
reload_flag=$lt_cv_ld_reload_flag
4873
case $reload_flag in
4875
*) reload_flag=" $reload_flag" ;;
4877
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4880
if test "$GCC" = yes; then
4881
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4883
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4888
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4889
$as_echo_n "checking for BSD-compatible nm... " >&6; }
4890
if test "${lt_cv_path_NM+set}" = set; then
4891
$as_echo_n "(cached) " >&6
4893
if test -n "$NM"; then
4894
# Let the user override the test.
4897
lt_nm_to_check="${ac_tool_prefix}nm"
4898
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4899
lt_nm_to_check="$lt_nm_to_check nm"
4901
for lt_tmp_nm in $lt_nm_to_check; do
4902
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4903
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4905
test -z "$ac_dir" && ac_dir=.
4906
tmp_nm="$ac_dir/$lt_tmp_nm"
4907
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4908
# Check to see if the nm accepts a BSD-compat flag.
4909
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4910
# nm: unknown option "B" ignored
4911
# Tru64's nm complains that /dev/null is an invalid object file
4912
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4913
*/dev/null* | *'Invalid file or object type'*)
4914
lt_cv_path_NM="$tmp_nm -B"
4918
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4920
lt_cv_path_NM="$tmp_nm -p"
4924
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4925
continue # so that we can try to find one that supports BSD flags
4934
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4937
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4938
$as_echo "$lt_cv_path_NM" >&6; }
4941
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4942
$as_echo_n "checking whether ln -s works... " >&6; }
4944
if test "$LN_S" = "ln -s"; then
4945
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4946
$as_echo "yes" >&6; }
4948
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4949
$as_echo "no, using $LN_S" >&6; }
4952
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4953
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4954
if test "${lt_cv_deplibs_check_method+set}" = set; then
4955
$as_echo_n "(cached) " >&6
4957
lt_cv_file_magic_cmd='$MAGIC_CMD'
4958
lt_cv_file_magic_test_file=
4959
lt_cv_deplibs_check_method='unknown'
4960
# Need to set the preceding variable on all platforms that support
4961
# interlibrary dependencies.
4962
# 'none' -- dependencies not supported.
4963
# `unknown' -- same as none, but documents that we really don't know.
4964
# 'pass_all' -- all dependencies passed with no checks.
4965
# 'test_compile' -- check by making test program.
4966
# 'file_magic [[regex]]' -- check by looking for files in library path
4967
# which responds to the $file_magic_cmd with a given extended regex.
4968
# If you have `file' or equivalent on your system and you're not sure
4969
# whether `pass_all' will *always* work, you probably want this one.
4973
lt_cv_deplibs_check_method=pass_all
4977
lt_cv_deplibs_check_method=pass_all
4981
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4982
lt_cv_file_magic_cmd='/usr/bin/file -L'
4983
lt_cv_file_magic_test_file=/shlib/libc.so
4987
# func_win32_libid is a shell function defined in ltmain.sh
4988
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4989
lt_cv_file_magic_cmd='func_win32_libid'
4993
# Base MSYS/MinGW do not provide the 'file' command needed by
4994
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4995
# unless we find 'file', for example because we are cross-compiling.
4996
if ( file / ) >/dev/null 2>&1; then
4997
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4998
lt_cv_file_magic_cmd='func_win32_libid'
5000
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5001
lt_cv_file_magic_cmd='$OBJDUMP -f'
5005
darwin* | rhapsody*)
5006
lt_cv_deplibs_check_method=pass_all
5009
freebsd* | dragonfly*)
5010
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5013
# Not sure whether the presence of OpenBSD here was a mistake.
5014
# Let's accept both of them until this is cleared up.
5015
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5016
lt_cv_file_magic_cmd=/usr/bin/file
5017
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5021
lt_cv_deplibs_check_method=pass_all
5026
lt_cv_deplibs_check_method=pass_all
5029
hpux10.20* | hpux11*)
5030
lt_cv_file_magic_cmd=/usr/bin/file
5033
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5034
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5037
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]'
5038
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5041
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5042
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5048
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5049
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5052
irix5* | irix6* | nonstopux*)
5054
*-32|*"-32 ") libmagic=32-bit;;
5055
*-n32|*"-n32 ") libmagic=N32;;
5056
*-64|*"-64 ") libmagic=64-bit;;
5057
*) libmagic=never-match;;
5059
lt_cv_deplibs_check_method=pass_all
5062
# This must be Linux ELF.
5063
linux* | k*bsd*-gnu)
5064
lt_cv_deplibs_check_method=pass_all
5068
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5069
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5071
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5076
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5077
lt_cv_file_magic_cmd=/usr/bin/file
5078
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5082
lt_cv_deplibs_check_method=unknown
5086
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5087
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5089
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5093
osf3* | osf4* | osf5*)
5094
lt_cv_deplibs_check_method=pass_all
5098
lt_cv_deplibs_check_method=pass_all
5102
lt_cv_deplibs_check_method=pass_all
5106
case $host_vendor in
5108
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]'
5109
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5112
lt_cv_deplibs_check_method=pass_all
5115
lt_cv_file_magic_cmd='/bin/file'
5116
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5119
lt_cv_file_magic_cmd='/bin/file'
5120
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5121
lt_cv_file_magic_test_file=/lib/libc.so
5124
lt_cv_deplibs_check_method=pass_all
5127
lt_cv_deplibs_check_method=pass_all
5132
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5133
lt_cv_deplibs_check_method=pass_all
5138
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5139
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5140
file_magic_cmd=$lt_cv_file_magic_cmd
5141
deplibs_check_method=$lt_cv_deplibs_check_method
5142
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5147
# If no C compiler was specified, use CC.
5150
# If no C compiler flags were specified, use CFLAGS.
5151
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5153
# Allow CC to be a program name with arguments.
5157
# Check whether --enable-libtool-lock was given.
5158
if test "${enable_libtool_lock+set}" = set; then
5159
enableval=$enable_libtool_lock;
5162
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5164
# Some flags need to be propagated to the compiler or linker for good
5168
# Find out which ABI we are using.
5169
echo 'int i;' > conftest.$ac_ext
5170
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171
(eval $ac_compile) 2>&5
5173
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174
(exit $ac_status); }; then
5175
case `/usr/bin/file conftest.$ac_objext` in
5187
# Find out which ABI we are using.
5188
echo '#line 5188 "configure"' > conftest.$ac_ext
5189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190
(eval $ac_compile) 2>&5
5192
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193
(exit $ac_status); }; then
5194
if test "$lt_cv_prog_gnu_ld" = yes; then
5195
case `/usr/bin/file conftest.$ac_objext` in
5197
LD="${LD-ld} -melf32bsmip"
5200
LD="${LD-ld} -melf32bmipn32"
5203
LD="${LD-ld} -melf64bmip"
5207
case `/usr/bin/file conftest.$ac_objext` in
5223
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5224
s390*-*linux*|sparc*-*linux*)
5225
# Find out which ABI we are using.
5226
echo 'int i;' > conftest.$ac_ext
5227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228
(eval $ac_compile) 2>&5
5230
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231
(exit $ac_status); }; then
5232
case `/usr/bin/file conftest.o` in
5235
x86_64-*kfreebsd*-gnu)
5236
LD="${LD-ld} -m elf_i386_fbsd"
5239
LD="${LD-ld} -m elf_i386"
5241
ppc64-*linux*|powerpc64-*linux*)
5242
LD="${LD-ld} -m elf32ppclinux"
5245
LD="${LD-ld} -m elf_s390"
5248
LD="${LD-ld} -m elf32_sparc"
5255
x86_64-*kfreebsd*-gnu)
5256
LD="${LD-ld} -m elf_x86_64_fbsd"
5259
LD="${LD-ld} -m elf_x86_64"
5261
ppc*-*linux*|powerpc*-*linux*)
5262
LD="${LD-ld} -m elf64ppc"
5265
LD="${LD-ld} -m elf64_s390"
5268
LD="${LD-ld} -m elf64_sparc"
5278
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5279
SAVE_CFLAGS="$CFLAGS"
5280
CFLAGS="$CFLAGS -belf"
5281
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5282
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5283
if test "${lt_cv_cc_needs_belf+set}" = set; then
5284
$as_echo_n "(cached) " >&6
5287
ac_cpp='$CPP $CPPFLAGS'
5288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292
cat >conftest.$ac_ext <<_ACEOF
5295
cat confdefs.h >>conftest.$ac_ext
5296
cat >>conftest.$ac_ext <<_ACEOF
5297
/* end confdefs.h. */
5307
rm -f conftest.$ac_objext conftest$ac_exeext
5308
if { (ac_try="$ac_link"
5310
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311
*) ac_try_echo=$ac_try;;
5313
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5314
$as_echo "$ac_try_echo") >&5
5315
(eval "$ac_link") 2>conftest.er1
5317
grep -v '^ *+' conftest.er1 >conftest.err
5319
cat conftest.err >&5
5320
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321
(exit $ac_status); } && {
5322
test -z "$ac_c_werror_flag" ||
5323
test ! -s conftest.err
5324
} && test -s conftest$ac_exeext && {
5325
test "$cross_compiling" = yes ||
5326
$as_test_x conftest$ac_exeext
5328
lt_cv_cc_needs_belf=yes
5330
$as_echo "$as_me: failed program was:" >&5
5331
sed 's/^/| /' conftest.$ac_ext >&5
5333
lt_cv_cc_needs_belf=no
5336
rm -rf conftest.dSYM
5337
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5338
conftest$ac_exeext conftest.$ac_ext
5340
ac_cpp='$CPP $CPPFLAGS'
5341
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5347
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5348
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5349
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5350
CFLAGS="$SAVE_CFLAGS"
5354
# Find out which ABI we are using.
5355
echo 'int i;' > conftest.$ac_ext
5356
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357
(eval $ac_compile) 2>&5
5359
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360
(exit $ac_status); }; then
5361
case `/usr/bin/file conftest.o` in
5363
case $lt_cv_prog_gnu_ld in
5364
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5366
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5380
need_locks="$enable_libtool_lock"
5384
ac_cpp='$CPP $CPPFLAGS'
5385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5389
$as_echo_n "checking how to run the C preprocessor... " >&6; }
5390
# On Suns, sometimes $CPP names a directory.
5391
if test -n "$CPP" && test -d "$CPP"; then
5394
if test -z "$CPP"; then
5395
if test "${ac_cv_prog_CPP+set}" = set; then
5396
$as_echo_n "(cached) " >&6
5398
# Double quotes because CPP needs to be expanded
5399
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5402
for ac_c_preproc_warn_flag in '' yes
5404
# Use a header file that comes with gcc, so configuring glibc
5405
# with a fresh cross-compiler works.
5406
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407
# <limits.h> exists even on freestanding compilers.
5408
# On the NeXT, cc -E runs the code through the compiler's parser,
5409
# not just through cpp. "Syntax error" is here to catch this case.
5410
cat >conftest.$ac_ext <<_ACEOF
5413
cat confdefs.h >>conftest.$ac_ext
5414
cat >>conftest.$ac_ext <<_ACEOF
5415
/* end confdefs.h. */
5417
# include <limits.h>
5419
# include <assert.h>
5423
if { (ac_try="$ac_cpp conftest.$ac_ext"
5425
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426
*) ac_try_echo=$ac_try;;
5428
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5429
$as_echo "$ac_try_echo") >&5
5430
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5432
grep -v '^ *+' conftest.er1 >conftest.err
5434
cat conftest.err >&5
5435
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
(exit $ac_status); } >/dev/null && {
5437
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5438
test ! -s conftest.err
5442
$as_echo "$as_me: failed program was:" >&5
5443
sed 's/^/| /' conftest.$ac_ext >&5
5445
# Broken: fails on valid input.
5449
rm -f conftest.err conftest.$ac_ext
5451
# OK, works on sane cases. Now check whether nonexistent headers
5452
# can be detected and how.
5453
cat >conftest.$ac_ext <<_ACEOF
5456
cat confdefs.h >>conftest.$ac_ext
5457
cat >>conftest.$ac_ext <<_ACEOF
5458
/* end confdefs.h. */
5459
#include <ac_nonexistent.h>
5461
if { (ac_try="$ac_cpp conftest.$ac_ext"
5463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464
*) ac_try_echo=$ac_try;;
5466
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5467
$as_echo "$ac_try_echo") >&5
5468
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5470
grep -v '^ *+' conftest.er1 >conftest.err
5472
cat conftest.err >&5
5473
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474
(exit $ac_status); } >/dev/null && {
5475
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5476
test ! -s conftest.err
5478
# Broken: success on invalid input.
5481
$as_echo "$as_me: failed program was:" >&5
5482
sed 's/^/| /' conftest.$ac_ext >&5
5484
# Passes both tests.
5489
rm -f conftest.err conftest.$ac_ext
5492
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493
rm -f conftest.err conftest.$ac_ext
5494
if $ac_preproc_ok; then
5506
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5507
$as_echo "$CPP" >&6; }
5509
for ac_c_preproc_warn_flag in '' yes
5511
# Use a header file that comes with gcc, so configuring glibc
5512
# with a fresh cross-compiler works.
5513
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514
# <limits.h> exists even on freestanding compilers.
5515
# On the NeXT, cc -E runs the code through the compiler's parser,
5516
# not just through cpp. "Syntax error" is here to catch this case.
5517
cat >conftest.$ac_ext <<_ACEOF
5520
cat confdefs.h >>conftest.$ac_ext
5521
cat >>conftest.$ac_ext <<_ACEOF
5522
/* end confdefs.h. */
5524
# include <limits.h>
5526
# include <assert.h>
5530
if { (ac_try="$ac_cpp conftest.$ac_ext"
5532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533
*) ac_try_echo=$ac_try;;
5535
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5536
$as_echo "$ac_try_echo") >&5
5537
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5539
grep -v '^ *+' conftest.er1 >conftest.err
5541
cat conftest.err >&5
5542
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543
(exit $ac_status); } >/dev/null && {
5544
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5545
test ! -s conftest.err
5549
$as_echo "$as_me: failed program was:" >&5
5550
sed 's/^/| /' conftest.$ac_ext >&5
5552
# Broken: fails on valid input.
5556
rm -f conftest.err conftest.$ac_ext
5558
# OK, works on sane cases. Now check whether nonexistent headers
5559
# can be detected and how.
5560
cat >conftest.$ac_ext <<_ACEOF
5563
cat confdefs.h >>conftest.$ac_ext
5564
cat >>conftest.$ac_ext <<_ACEOF
5565
/* end confdefs.h. */
5566
#include <ac_nonexistent.h>
5568
if { (ac_try="$ac_cpp conftest.$ac_ext"
5570
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571
*) ac_try_echo=$ac_try;;
5573
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574
$as_echo "$ac_try_echo") >&5
5575
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5577
grep -v '^ *+' conftest.er1 >conftest.err
5579
cat conftest.err >&5
5580
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581
(exit $ac_status); } >/dev/null && {
5582
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5583
test ! -s conftest.err
5585
# Broken: success on invalid input.
5588
$as_echo "$as_me: failed program was:" >&5
5589
sed 's/^/| /' conftest.$ac_ext >&5
5591
# Passes both tests.
5596
rm -f conftest.err conftest.$ac_ext
5599
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600
rm -f conftest.err conftest.$ac_ext
5601
if $ac_preproc_ok; then
5604
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5605
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5606
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5607
See \`config.log' for more details." >&5
5608
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5609
See \`config.log' for more details." >&2;}
5610
{ (exit 1); exit 1; }; }; }
5614
ac_cpp='$CPP $CPPFLAGS'
5615
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5616
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5617
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5621
$as_echo_n "checking for ANSI C header files... " >&6; }
5622
if test "${ac_cv_header_stdc+set}" = set; then
5623
$as_echo_n "(cached) " >&6
5625
cat >conftest.$ac_ext <<_ACEOF
5628
cat confdefs.h >>conftest.$ac_ext
5629
cat >>conftest.$ac_ext <<_ACEOF
5630
/* end confdefs.h. */
5644
rm -f conftest.$ac_objext
5645
if { (ac_try="$ac_compile"
5647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648
*) ac_try_echo=$ac_try;;
5650
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5651
$as_echo "$ac_try_echo") >&5
5652
(eval "$ac_compile") 2>conftest.er1
5654
grep -v '^ *+' conftest.er1 >conftest.err
5656
cat conftest.err >&5
5657
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658
(exit $ac_status); } && {
5659
test -z "$ac_c_werror_flag" ||
5660
test ! -s conftest.err
5661
} && test -s conftest.$ac_objext; then
5662
ac_cv_header_stdc=yes
5664
$as_echo "$as_me: failed program was:" >&5
5665
sed 's/^/| /' conftest.$ac_ext >&5
5667
ac_cv_header_stdc=no
5670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672
if test $ac_cv_header_stdc = yes; then
5673
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5674
cat >conftest.$ac_ext <<_ACEOF
5677
cat confdefs.h >>conftest.$ac_ext
5678
cat >>conftest.$ac_ext <<_ACEOF
5679
/* end confdefs.h. */
5683
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5684
$EGREP "memchr" >/dev/null 2>&1; then
5687
ac_cv_header_stdc=no
5693
if test $ac_cv_header_stdc = yes; then
5694
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5695
cat >conftest.$ac_ext <<_ACEOF
5698
cat confdefs.h >>conftest.$ac_ext
5699
cat >>conftest.$ac_ext <<_ACEOF
5700
/* end confdefs.h. */
5704
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5705
$EGREP "free" >/dev/null 2>&1; then
5708
ac_cv_header_stdc=no
5714
if test $ac_cv_header_stdc = yes; then
5715
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5716
if test "$cross_compiling" = yes; then
5719
cat >conftest.$ac_ext <<_ACEOF
5722
cat confdefs.h >>conftest.$ac_ext
5723
cat >>conftest.$ac_ext <<_ACEOF
5724
/* end confdefs.h. */
5727
#if ((' ' & 0x0FF) == 0x020)
5728
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5729
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5731
# define ISLOWER(c) \
5732
(('a' <= (c) && (c) <= 'i') \
5733
|| ('j' <= (c) && (c) <= 'r') \
5734
|| ('s' <= (c) && (c) <= 'z'))
5735
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5738
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5743
for (i = 0; i < 256; i++)
5744
if (XOR (islower (i), ISLOWER (i))
5745
|| toupper (i) != TOUPPER (i))
5750
rm -f conftest$ac_exeext
5751
if { (ac_try="$ac_link"
5753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754
*) ac_try_echo=$ac_try;;
5756
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5757
$as_echo "$ac_try_echo") >&5
5758
(eval "$ac_link") 2>&5
5760
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5762
{ (case "(($ac_try" in
5763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764
*) ac_try_echo=$ac_try;;
5766
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5767
$as_echo "$ac_try_echo") >&5
5768
(eval "$ac_try") 2>&5
5770
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771
(exit $ac_status); }; }; then
5774
$as_echo "$as_me: program exited with status $ac_status" >&5
5775
$as_echo "$as_me: failed program was:" >&5
5776
sed 's/^/| /' conftest.$ac_ext >&5
5779
ac_cv_header_stdc=no
5781
rm -rf conftest.dSYM
5782
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5788
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5789
$as_echo "$ac_cv_header_stdc" >&6; }
5790
if test $ac_cv_header_stdc = yes; then
5792
cat >>confdefs.h <<\_ACEOF
5793
#define STDC_HEADERS 1
5798
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5808
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5809
inttypes.h stdint.h unistd.h
5811
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5812
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5813
$as_echo_n "checking for $ac_header... " >&6; }
5814
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5815
$as_echo_n "(cached) " >&6
5817
cat >conftest.$ac_ext <<_ACEOF
5820
cat confdefs.h >>conftest.$ac_ext
5821
cat >>conftest.$ac_ext <<_ACEOF
5822
/* end confdefs.h. */
5823
$ac_includes_default
5825
#include <$ac_header>
5827
rm -f conftest.$ac_objext
5828
if { (ac_try="$ac_compile"
5830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831
*) ac_try_echo=$ac_try;;
5833
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5834
$as_echo "$ac_try_echo") >&5
5835
(eval "$ac_compile") 2>conftest.er1
5837
grep -v '^ *+' conftest.er1 >conftest.err
5839
cat conftest.err >&5
5840
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
(exit $ac_status); } && {
5842
test -z "$ac_c_werror_flag" ||
5843
test ! -s conftest.err
5844
} && test -s conftest.$ac_objext; then
5845
eval "$as_ac_Header=yes"
5847
$as_echo "$as_me: failed program was:" >&5
5848
sed 's/^/| /' conftest.$ac_ext >&5
5850
eval "$as_ac_Header=no"
5853
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855
ac_res=`eval 'as_val=${'$as_ac_Header'}
5856
$as_echo "$as_val"'`
5857
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5858
$as_echo "$ac_res" >&6; }
5859
as_val=`eval 'as_val=${'$as_ac_Header'}
5860
$as_echo "$as_val"'`
5861
if test "x$as_val" = x""yes; then
5862
cat >>confdefs.h <<_ACEOF
5863
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5872
for ac_header in dlfcn.h
5874
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5875
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5876
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5877
$as_echo_n "checking for $ac_header... " >&6; }
5878
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5879
$as_echo_n "(cached) " >&6
5881
ac_res=`eval 'as_val=${'$as_ac_Header'}
5882
$as_echo "$as_val"'`
5883
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5884
$as_echo "$ac_res" >&6; }
5886
# Is the header compilable?
5887
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5888
$as_echo_n "checking $ac_header usability... " >&6; }
5889
cat >conftest.$ac_ext <<_ACEOF
5892
cat confdefs.h >>conftest.$ac_ext
5893
cat >>conftest.$ac_ext <<_ACEOF
5894
/* end confdefs.h. */
5895
$ac_includes_default
5896
#include <$ac_header>
5898
rm -f conftest.$ac_objext
5899
if { (ac_try="$ac_compile"
5901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902
*) ac_try_echo=$ac_try;;
5904
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5905
$as_echo "$ac_try_echo") >&5
5906
(eval "$ac_compile") 2>conftest.er1
5908
grep -v '^ *+' conftest.er1 >conftest.err
5910
cat conftest.err >&5
5911
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912
(exit $ac_status); } && {
5913
test -z "$ac_c_werror_flag" ||
5914
test ! -s conftest.err
5915
} && test -s conftest.$ac_objext; then
5916
ac_header_compiler=yes
5918
$as_echo "$as_me: failed program was:" >&5
5919
sed 's/^/| /' conftest.$ac_ext >&5
5921
ac_header_compiler=no
5924
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5926
$as_echo "$ac_header_compiler" >&6; }
5928
# Is the header present?
5929
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5930
$as_echo_n "checking $ac_header presence... " >&6; }
5931
cat >conftest.$ac_ext <<_ACEOF
5934
cat confdefs.h >>conftest.$ac_ext
5935
cat >>conftest.$ac_ext <<_ACEOF
5936
/* end confdefs.h. */
5937
#include <$ac_header>
5939
if { (ac_try="$ac_cpp conftest.$ac_ext"
5941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942
*) ac_try_echo=$ac_try;;
5944
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945
$as_echo "$ac_try_echo") >&5
5946
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948
grep -v '^ *+' conftest.er1 >conftest.err
5950
cat conftest.err >&5
5951
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952
(exit $ac_status); } >/dev/null && {
5953
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5954
test ! -s conftest.err
5956
ac_header_preproc=yes
5958
$as_echo "$as_me: failed program was:" >&5
5959
sed 's/^/| /' conftest.$ac_ext >&5
5961
ac_header_preproc=no
5964
rm -f conftest.err conftest.$ac_ext
5965
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5966
$as_echo "$ac_header_preproc" >&6; }
5968
# So? What about this header?
5969
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5971
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5972
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5973
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5974
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5975
ac_header_preproc=yes
5978
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5979
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5980
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5981
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5982
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5983
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5984
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5985
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5986
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5987
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5988
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5989
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5993
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5994
$as_echo_n "checking for $ac_header... " >&6; }
5995
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5996
$as_echo_n "(cached) " >&6
5998
eval "$as_ac_Header=\$ac_header_preproc"
6000
ac_res=`eval 'as_val=${'$as_ac_Header'}
6001
$as_echo "$as_val"'`
6002
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6003
$as_echo "$ac_res" >&6; }
6006
as_val=`eval 'as_val=${'$as_ac_Header'}
6007
$as_echo "$as_val"'`
6008
if test "x$as_val" = x""yes; then
6009
cat >>confdefs.h <<_ACEOF
6010
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6019
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6020
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6021
(test "X$CXX" != "Xg++"))) ; then
6023
ac_cpp='$CXXCPP $CPPFLAGS'
6024
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6027
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6028
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6029
if test -z "$CXXCPP"; then
6030
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6031
$as_echo_n "(cached) " >&6
6033
# Double quotes because CXXCPP needs to be expanded
6034
for CXXCPP in "$CXX -E" "/lib/cpp"
6037
for ac_cxx_preproc_warn_flag in '' yes
6039
# Use a header file that comes with gcc, so configuring glibc
6040
# with a fresh cross-compiler works.
6041
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6042
# <limits.h> exists even on freestanding compilers.
6043
# On the NeXT, cc -E runs the code through the compiler's parser,
6044
# not just through cpp. "Syntax error" is here to catch this case.
6045
cat >conftest.$ac_ext <<_ACEOF
6048
cat confdefs.h >>conftest.$ac_ext
6049
cat >>conftest.$ac_ext <<_ACEOF
6050
/* end confdefs.h. */
6052
# include <limits.h>
6054
# include <assert.h>
6058
if { (ac_try="$ac_cpp conftest.$ac_ext"
6060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061
*) ac_try_echo=$ac_try;;
6063
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064
$as_echo "$ac_try_echo") >&5
6065
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6067
grep -v '^ *+' conftest.er1 >conftest.err
6069
cat conftest.err >&5
6070
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071
(exit $ac_status); } >/dev/null && {
6072
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6073
test ! -s conftest.err
6077
$as_echo "$as_me: failed program was:" >&5
6078
sed 's/^/| /' conftest.$ac_ext >&5
6080
# Broken: fails on valid input.
6084
rm -f conftest.err conftest.$ac_ext
6086
# OK, works on sane cases. Now check whether nonexistent headers
6087
# can be detected and how.
6088
cat >conftest.$ac_ext <<_ACEOF
6091
cat confdefs.h >>conftest.$ac_ext
6092
cat >>conftest.$ac_ext <<_ACEOF
6093
/* end confdefs.h. */
6094
#include <ac_nonexistent.h>
6096
if { (ac_try="$ac_cpp conftest.$ac_ext"
6098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099
*) ac_try_echo=$ac_try;;
6101
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6102
$as_echo "$ac_try_echo") >&5
6103
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6105
grep -v '^ *+' conftest.er1 >conftest.err
6107
cat conftest.err >&5
6108
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109
(exit $ac_status); } >/dev/null && {
6110
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6111
test ! -s conftest.err
6113
# Broken: success on invalid input.
6116
$as_echo "$as_me: failed program was:" >&5
6117
sed 's/^/| /' conftest.$ac_ext >&5
6119
# Passes both tests.
6124
rm -f conftest.err conftest.$ac_ext
6127
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6128
rm -f conftest.err conftest.$ac_ext
6129
if $ac_preproc_ok; then
6134
ac_cv_prog_CXXCPP=$CXXCPP
6137
CXXCPP=$ac_cv_prog_CXXCPP
6139
ac_cv_prog_CXXCPP=$CXXCPP
6141
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6142
$as_echo "$CXXCPP" >&6; }
6144
for ac_cxx_preproc_warn_flag in '' yes
6146
# Use a header file that comes with gcc, so configuring glibc
6147
# with a fresh cross-compiler works.
6148
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149
# <limits.h> exists even on freestanding compilers.
6150
# On the NeXT, cc -E runs the code through the compiler's parser,
6151
# not just through cpp. "Syntax error" is here to catch this case.
6152
cat >conftest.$ac_ext <<_ACEOF
6155
cat confdefs.h >>conftest.$ac_ext
6156
cat >>conftest.$ac_ext <<_ACEOF
6157
/* end confdefs.h. */
6159
# include <limits.h>
6161
# include <assert.h>
6165
if { (ac_try="$ac_cpp conftest.$ac_ext"
6167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168
*) ac_try_echo=$ac_try;;
6170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171
$as_echo "$ac_try_echo") >&5
6172
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6174
grep -v '^ *+' conftest.er1 >conftest.err
6176
cat conftest.err >&5
6177
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178
(exit $ac_status); } >/dev/null && {
6179
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6180
test ! -s conftest.err
6184
$as_echo "$as_me: failed program was:" >&5
6185
sed 's/^/| /' conftest.$ac_ext >&5
6187
# Broken: fails on valid input.
6191
rm -f conftest.err conftest.$ac_ext
6193
# OK, works on sane cases. Now check whether nonexistent headers
6194
# can be detected and how.
6195
cat >conftest.$ac_ext <<_ACEOF
6198
cat confdefs.h >>conftest.$ac_ext
6199
cat >>conftest.$ac_ext <<_ACEOF
6200
/* end confdefs.h. */
6201
#include <ac_nonexistent.h>
6203
if { (ac_try="$ac_cpp conftest.$ac_ext"
6205
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206
*) ac_try_echo=$ac_try;;
6208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209
$as_echo "$ac_try_echo") >&5
6210
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6212
grep -v '^ *+' conftest.er1 >conftest.err
6214
cat conftest.err >&5
6215
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216
(exit $ac_status); } >/dev/null && {
6217
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6218
test ! -s conftest.err
6220
# Broken: success on invalid input.
6223
$as_echo "$as_me: failed program was:" >&5
6224
sed 's/^/| /' conftest.$ac_ext >&5
6226
# Passes both tests.
6231
rm -f conftest.err conftest.$ac_ext
6234
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6235
rm -f conftest.err conftest.$ac_ext
6236
if $ac_preproc_ok; then
6239
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6240
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6241
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6242
See \`config.log' for more details." >&5
6243
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6244
See \`config.log' for more details." >&2;}
6245
{ (exit 1); exit 1; }; }; }
6249
ac_cpp='$CXXCPP $CPPFLAGS'
6250
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6258
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6259
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6261
if test -n "$ac_tool_prefix"; then
6262
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
6264
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6265
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6266
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6267
$as_echo_n "checking for $ac_word... " >&6; }
6268
if test "${ac_cv_prog_F77+set}" = set; then
6269
$as_echo_n "(cached) " >&6
6271
if test -n "$F77"; then
6272
ac_cv_prog_F77="$F77" # Let the user override the test.
6274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278
test -z "$as_dir" && as_dir=.
6279
for ac_exec_ext in '' $ac_executable_extensions; do
6280
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6282
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292
if test -n "$F77"; then
6293
{ $as_echo "$as_me:$LINENO: result: $F77" >&5
6294
$as_echo "$F77" >&6; }
6296
{ $as_echo "$as_me:$LINENO: result: no" >&5
6297
$as_echo "no" >&6; }
6301
test -n "$F77" && break
6304
if test -z "$F77"; then
6306
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
6308
# Extract the first word of "$ac_prog", so it can be a program name with args.
6309
set dummy $ac_prog; ac_word=$2
6310
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6311
$as_echo_n "checking for $ac_word... " >&6; }
6312
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6313
$as_echo_n "(cached) " >&6
6315
if test -n "$ac_ct_F77"; then
6316
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322
test -z "$as_dir" && as_dir=.
6323
for ac_exec_ext in '' $ac_executable_extensions; do
6324
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325
ac_cv_prog_ac_ct_F77="$ac_prog"
6326
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6336
if test -n "$ac_ct_F77"; then
6337
{ $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6338
$as_echo "$ac_ct_F77" >&6; }
6340
{ $as_echo "$as_me:$LINENO: result: no" >&5
6341
$as_echo "no" >&6; }
6345
test -n "$ac_ct_F77" && break
6348
if test "x$ac_ct_F77" = x; then
6351
case $cross_compiling:$ac_tool_warned in
6353
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6354
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355
ac_tool_warned=yes ;;
6362
# Provide some information about the compiler.
6363
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6366
{ (ac_try="$ac_compiler --version >&5"
6368
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369
*) ac_try_echo=$ac_try;;
6371
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6372
$as_echo "$ac_try_echo") >&5
6373
(eval "$ac_compiler --version >&5") 2>&5
6375
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376
(exit $ac_status); }
6377
{ (ac_try="$ac_compiler -v >&5"
6379
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380
*) ac_try_echo=$ac_try;;
6382
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6383
$as_echo "$ac_try_echo") >&5
6384
(eval "$ac_compiler -v >&5") 2>&5
6386
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387
(exit $ac_status); }
6388
{ (ac_try="$ac_compiler -V >&5"
6390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391
*) ac_try_echo=$ac_try;;
6393
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6394
$as_echo "$ac_try_echo") >&5
6395
(eval "$ac_compiler -V >&5") 2>&5
6397
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398
(exit $ac_status); }
6401
# If we don't use `.F' as extension, the preprocessor is not run on the
6402
# input file. (Note that this only needs to work for GNU compilers.)
6405
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6406
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6407
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6408
$as_echo_n "(cached) " >&6
6410
cat >conftest.$ac_ext <<_ACEOF
6418
rm -f conftest.$ac_objext
6419
if { (ac_try="$ac_compile"
6421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422
*) ac_try_echo=$ac_try;;
6424
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6425
$as_echo "$ac_try_echo") >&5
6426
(eval "$ac_compile") 2>conftest.er1
6428
grep -v '^ *+' conftest.er1 >conftest.err
6430
cat conftest.err >&5
6431
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432
(exit $ac_status); } && {
6433
test -z "$ac_f77_werror_flag" ||
6434
test ! -s conftest.err
6435
} && test -s conftest.$ac_objext; then
6438
$as_echo "$as_me: failed program was:" >&5
6439
sed 's/^/| /' conftest.$ac_ext >&5
6444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6448
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6449
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6451
ac_test_FFLAGS=${FFLAGS+set}
6452
ac_save_FFLAGS=$FFLAGS
6454
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6455
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6456
if test "${ac_cv_prog_f77_g+set}" = set; then
6457
$as_echo_n "(cached) " >&6
6460
cat >conftest.$ac_ext <<_ACEOF
6465
rm -f conftest.$ac_objext
6466
if { (ac_try="$ac_compile"
6468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469
*) ac_try_echo=$ac_try;;
6471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6472
$as_echo "$ac_try_echo") >&5
6473
(eval "$ac_compile") 2>conftest.er1
6475
grep -v '^ *+' conftest.er1 >conftest.err
6477
cat conftest.err >&5
6478
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479
(exit $ac_status); } && {
6480
test -z "$ac_f77_werror_flag" ||
6481
test ! -s conftest.err
6482
} && test -s conftest.$ac_objext; then
6483
ac_cv_prog_f77_g=yes
6485
$as_echo "$as_me: failed program was:" >&5
6486
sed 's/^/| /' conftest.$ac_ext >&5
6491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6495
$as_echo "$ac_cv_prog_f77_g" >&6; }
6496
if test "$ac_test_FFLAGS" = set; then
6497
FFLAGS=$ac_save_FFLAGS
6498
elif test $ac_cv_prog_f77_g = yes; then
6499
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6505
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6512
if test $ac_compiler_gnu = yes; then
6518
ac_cpp='$CPP $CPPFLAGS'
6519
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6520
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6521
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6526
# find the maximum length of command line arguments
6527
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6528
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6529
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6530
$as_echo_n "(cached) " >&6
6537
# On DJGPP, this test can blow up pretty badly due to problems in libc
6538
# (any single argument exceeding 2000 bytes causes a buffer overrun
6539
# during glob expansion). Even if it were fixed, the result of this
6540
# check would be larger than it should be.
6541
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6545
# Under GNU Hurd, this test is not required because there is
6546
# no limit to the length of command line arguments.
6547
# Libtool will interpret -1 as no limit whatsoever
6548
lt_cv_sys_max_cmd_len=-1;
6552
# On Win9x/ME, this test blows up -- it succeeds, but takes
6553
# about 5 minutes as the teststring grows exponentially.
6554
# Worse, since 9x/ME are not pre-emptively multitasking,
6555
# you end up with a "frozen" computer, even though with patience
6556
# the test eventually succeeds (with a max line length of 256k).
6557
# Instead, let's just punt: use the minimum linelength reported by
6558
# all of the supported platforms: 8192 (on NT/2K/XP).
6559
lt_cv_sys_max_cmd_len=8192;
6563
# On AmigaOS with pdksh, this test takes hours, literally.
6564
# So we just punt and use a minimum line length of 8192.
6565
lt_cv_sys_max_cmd_len=8192;
6568
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6569
# This has been around since 386BSD, at least. Likely further.
6570
if test -x /sbin/sysctl; then
6571
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6572
elif test -x /usr/sbin/sysctl; then
6573
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6575
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6577
# And add a safety zone
6578
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6579
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6583
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6584
lt_cv_sys_max_cmd_len=196608
6588
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6589
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6590
# nice to cause kernel panics so lets avoid the loop below.
6591
# First set a reasonable default.
6592
lt_cv_sys_max_cmd_len=16384
6594
if test -x /sbin/sysconfig; then
6595
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6596
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6601
lt_cv_sys_max_cmd_len=102400
6603
sysv5* | sco5v6* | sysv4.2uw2*)
6604
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6605
if test -n "$kargmax"; then
6606
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6608
lt_cv_sys_max_cmd_len=32768
6612
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6613
if test -n "$lt_cv_sys_max_cmd_len"; then
6614
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6615
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6617
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6618
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6619
= "XX$teststring") >/dev/null 2>&1 &&
6620
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6621
lt_cv_sys_max_cmd_len=$new_result &&
6622
test $i != 17 # 1/2 MB should be enough
6625
teststring=$teststring$teststring
6628
# Add a significant safety factor because C++ compilers can tack on massive
6629
# amounts of additional arguments before passing them to the linker.
6630
# It appears as though 1/2 is a usable value.
6631
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6638
if test -n $lt_cv_sys_max_cmd_len ; then
6639
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6640
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6642
{ $as_echo "$as_me:$LINENO: result: none" >&5
6643
$as_echo "none" >&6; }
6650
# Check for command to grab the raw symbol name followed by C symbol from nm.
6651
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6652
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6653
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6654
$as_echo_n "(cached) " >&6
6657
# These are sane defaults that work on at least a few old systems.
6658
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6660
# Character class describing NM global symbol codes.
6661
symcode='[BCDEGRST]'
6663
# Regexp to match symbols that can be accessed directly from C.
6664
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6666
# Transform an extracted symbol line into a proper C declaration
6667
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6669
# Transform an extracted symbol line into symbol name and symbol address
6670
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'"
6672
# Define system-specific variables.
6677
cygwin* | mingw* | pw32*)
6678
symcode='[ABCDGISTW]'
6680
hpux*) # Its linker distinguishes data from code symbols
6681
if test "$host_cpu" = ia64; then
6682
symcode='[ABCDEGRST]'
6684
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6685
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'"
6687
linux* | k*bsd*-gnu)
6688
if test "$host_cpu" = ia64; then
6689
symcode='[ABCDGIRSTW]'
6690
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6691
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'"
6695
symcode='[BCDEGRST]'
6698
symcode='[BCDEGQRST]'
6709
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6717
# Handle CRLF in mingw tool chain
6721
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6725
# If we're using GNU nm, then use its standard symbol codes.
6726
case `$NM -V 2>&1` in
6727
*GNU* | *'with BFD'*)
6728
symcode='[ABCDGIRSTW]' ;;
6731
# Try without a prefix undercore, then with it.
6732
for ac_symprfx in "" "_"; do
6734
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6735
symxfrm="\\1 $ac_symprfx\\2 \\2"
6737
# Write the raw and C identifiers.
6738
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6740
# Check to see that the pipe works correctly.
6744
cat > conftest.$ac_ext <<EOF
6749
void nm_test_func(){}
6753
int main(){nm_test_var='a';nm_test_func();return(0);}
6756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757
(eval $ac_compile) 2>&5
6759
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760
(exit $ac_status); }; then
6761
# Now try to grab the symbols.
6763
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6764
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6766
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767
(exit $ac_status); } && test -s "$nlist"; then
6768
# Try sorting and uniquifying the output.
6769
if sort "$nlist" | uniq > "$nlist"T; then
6770
mv -f "$nlist"T "$nlist"
6775
# Make sure that we snagged all the symbols we need.
6776
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6777
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6778
cat <<EOF > conftest.$ac_ext
6784
# Now generate the symbol file.
6785
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6787
cat <<EOF >> conftest.$ac_ext
6788
#if defined (__STDC__) && __STDC__
6789
# define lt_ptr_t void *
6791
# define lt_ptr_t char *
6795
/* The mapping between symbol names and symbols. */
6800
lt_preloaded_symbols[] =
6803
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6804
cat <<\EOF >> conftest.$ac_ext
6812
# Now try linking the two files.
6813
mv conftest.$ac_objext conftstm.$ac_objext
6814
lt_save_LIBS="$LIBS"
6815
lt_save_CFLAGS="$CFLAGS"
6816
LIBS="conftstm.$ac_objext"
6817
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6818
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6819
(eval $ac_link) 2>&5
6821
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6825
LIBS="$lt_save_LIBS"
6826
CFLAGS="$lt_save_CFLAGS"
6828
echo "cannot find nm_test_func in $nlist" >&5
6831
echo "cannot find nm_test_var in $nlist" >&5
6834
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6837
echo "$progname: failed program was:" >&5
6838
cat conftest.$ac_ext >&5
6840
rm -rf conftest* conftst*
6842
# Do not use the global_symbol_pipe unless it works.
6843
if test "$pipe_works" = yes; then
6846
lt_cv_sys_global_symbol_pipe=
6852
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6853
lt_cv_sys_global_symbol_to_cdecl=
6855
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6856
{ $as_echo "$as_me:$LINENO: result: failed" >&5
6857
$as_echo "failed" >&6; }
6859
{ $as_echo "$as_me:$LINENO: result: ok" >&5
6860
$as_echo "ok" >&6; }
6863
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6864
$as_echo_n "checking for objdir... " >&6; }
6865
if test "${lt_cv_objdir+set}" = set; then
6866
$as_echo_n "(cached) " >&6
6868
rm -f .libs 2>/dev/null
6869
mkdir .libs 2>/dev/null
6870
if test -d .libs; then
6873
# MS-DOS does not allow filenames that begin with a dot.
6876
rmdir .libs 2>/dev/null
6878
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6879
$as_echo "$lt_cv_objdir" >&6; }
6880
objdir=$lt_cv_objdir
6888
# AIX sometimes has problems with the GCC collect2 program. For some
6889
# reason, if we set the COLLECT_NAMES environment variable, the problems
6890
# vanish in a puff of smoke.
6891
if test "X${COLLECT_NAMES+set}" != Xset; then
6893
export COLLECT_NAMES
6898
# Sed substitution that helps us do robust quoting. It backslashifies
6899
# metacharacters that are still active within double-quoted strings.
6900
Xsed='sed -e 1s/^X//'
6901
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6903
# Same as above, but do not quote variable references.
6904
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6906
# Sed substitution to delay expansion of an escaped shell variable in a
6907
# double_quote_subst'ed string.
6908
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6910
# Sed substitution to avoid accidental globbing in evaled expressions
6911
no_glob_subst='s/\*/\\\*/g'
6917
default_ofile=libtool
6918
can_build_shared=yes
6920
# All known linkers require a `.a' archive for static linking (except MSVC,
6921
# which needs '.lib').
6923
ltmain="$ac_aux_dir/ltmain.sh"
6924
ofile="$default_ofile"
6925
with_gnu_ld="$lt_cv_prog_gnu_ld"
6927
if test -n "$ac_tool_prefix"; then
6928
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6929
set dummy ${ac_tool_prefix}ar; ac_word=$2
6930
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6931
$as_echo_n "checking for $ac_word... " >&6; }
6932
if test "${ac_cv_prog_AR+set}" = set; then
6933
$as_echo_n "(cached) " >&6
6935
if test -n "$AR"; then
6936
ac_cv_prog_AR="$AR" # Let the user override the test.
6938
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942
test -z "$as_dir" && as_dir=.
6943
for ac_exec_ext in '' $ac_executable_extensions; do
6944
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945
ac_cv_prog_AR="${ac_tool_prefix}ar"
6946
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956
if test -n "$AR"; then
6957
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
6958
$as_echo "$AR" >&6; }
6960
{ $as_echo "$as_me:$LINENO: result: no" >&5
6961
$as_echo "no" >&6; }
6966
if test -z "$ac_cv_prog_AR"; then
6968
# Extract the first word of "ar", so it can be a program name with args.
6969
set dummy ar; ac_word=$2
6970
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6971
$as_echo_n "checking for $ac_word... " >&6; }
6972
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6973
$as_echo_n "(cached) " >&6
6975
if test -n "$ac_ct_AR"; then
6976
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982
test -z "$as_dir" && as_dir=.
6983
for ac_exec_ext in '' $ac_executable_extensions; do
6984
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985
ac_cv_prog_ac_ct_AR="ar"
6986
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6996
if test -n "$ac_ct_AR"; then
6997
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6998
$as_echo "$ac_ct_AR" >&6; }
7000
{ $as_echo "$as_me:$LINENO: result: no" >&5
7001
$as_echo "no" >&6; }
7004
if test "x$ac_ct_AR" = x; then
7007
case $cross_compiling:$ac_tool_warned in
7009
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7010
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011
ac_tool_warned=yes ;;
7019
if test -n "$ac_tool_prefix"; then
7020
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7021
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7022
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7023
$as_echo_n "checking for $ac_word... " >&6; }
7024
if test "${ac_cv_prog_RANLIB+set}" = set; then
7025
$as_echo_n "(cached) " >&6
7027
if test -n "$RANLIB"; then
7028
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034
test -z "$as_dir" && as_dir=.
7035
for ac_exec_ext in '' $ac_executable_extensions; do
7036
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7038
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047
RANLIB=$ac_cv_prog_RANLIB
7048
if test -n "$RANLIB"; then
7049
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7050
$as_echo "$RANLIB" >&6; }
7052
{ $as_echo "$as_me:$LINENO: result: no" >&5
7053
$as_echo "no" >&6; }
7058
if test -z "$ac_cv_prog_RANLIB"; then
7059
ac_ct_RANLIB=$RANLIB
7060
# Extract the first word of "ranlib", so it can be a program name with args.
7061
set dummy ranlib; ac_word=$2
7062
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7063
$as_echo_n "checking for $ac_word... " >&6; }
7064
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7065
$as_echo_n "(cached) " >&6
7067
if test -n "$ac_ct_RANLIB"; then
7068
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074
test -z "$as_dir" && as_dir=.
7075
for ac_exec_ext in '' $ac_executable_extensions; do
7076
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077
ac_cv_prog_ac_ct_RANLIB="ranlib"
7078
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7088
if test -n "$ac_ct_RANLIB"; then
7089
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7090
$as_echo "$ac_ct_RANLIB" >&6; }
7092
{ $as_echo "$as_me:$LINENO: result: no" >&5
7093
$as_echo "no" >&6; }
7096
if test "x$ac_ct_RANLIB" = x; then
7099
case $cross_compiling:$ac_tool_warned in
7101
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7102
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103
ac_tool_warned=yes ;;
7105
RANLIB=$ac_ct_RANLIB
7108
RANLIB="$ac_cv_prog_RANLIB"
7111
if test -n "$ac_tool_prefix"; then
7112
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7113
set dummy ${ac_tool_prefix}strip; ac_word=$2
7114
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7115
$as_echo_n "checking for $ac_word... " >&6; }
7116
if test "${ac_cv_prog_STRIP+set}" = set; then
7117
$as_echo_n "(cached) " >&6
7119
if test -n "$STRIP"; then
7120
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126
test -z "$as_dir" && as_dir=.
7127
for ac_exec_ext in '' $ac_executable_extensions; do
7128
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7130
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139
STRIP=$ac_cv_prog_STRIP
7140
if test -n "$STRIP"; then
7141
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7142
$as_echo "$STRIP" >&6; }
7144
{ $as_echo "$as_me:$LINENO: result: no" >&5
7145
$as_echo "no" >&6; }
7150
if test -z "$ac_cv_prog_STRIP"; then
7152
# Extract the first word of "strip", so it can be a program name with args.
7153
set dummy strip; ac_word=$2
7154
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7155
$as_echo_n "checking for $ac_word... " >&6; }
7156
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7157
$as_echo_n "(cached) " >&6
7159
if test -n "$ac_ct_STRIP"; then
7160
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166
test -z "$as_dir" && as_dir=.
7167
for ac_exec_ext in '' $ac_executable_extensions; do
7168
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169
ac_cv_prog_ac_ct_STRIP="strip"
7170
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7180
if test -n "$ac_ct_STRIP"; then
7181
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7182
$as_echo "$ac_ct_STRIP" >&6; }
7184
{ $as_echo "$as_me:$LINENO: result: no" >&5
7185
$as_echo "no" >&6; }
7188
if test "x$ac_ct_STRIP" = x; then
7191
case $cross_compiling:$ac_tool_warned in
7193
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7194
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195
ac_tool_warned=yes ;;
7200
STRIP="$ac_cv_prog_STRIP"
7205
old_CFLAGS="$CFLAGS"
7207
# Set sane defaults for various variables
7208
test -z "$AR" && AR=ar
7209
test -z "$AR_FLAGS" && AR_FLAGS=cru
7210
test -z "$AS" && AS=as
7211
test -z "$CC" && CC=cc
7212
test -z "$LTCC" && LTCC=$CC
7213
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7214
test -z "$DLLTOOL" && DLLTOOL=dlltool
7215
test -z "$LD" && LD=ld
7216
test -z "$LN_S" && LN_S="ln -s"
7217
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7218
test -z "$NM" && NM=nm
7219
test -z "$SED" && SED=sed
7220
test -z "$OBJDUMP" && OBJDUMP=objdump
7221
test -z "$RANLIB" && RANLIB=:
7222
test -z "$STRIP" && STRIP=:
7223
test -z "$ac_objext" && ac_objext=o
7225
# Determine commands to create old-style static archives.
7226
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7227
old_postinstall_cmds='chmod 644 $oldlib'
7228
old_postuninstall_cmds=
7230
if test -n "$RANLIB"; then
7233
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7236
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7239
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7242
for cc_temp in $compiler""; do
7244
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7245
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7250
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7253
# Only perform the check for file, if the check method requires it
7254
case $deplibs_check_method in
7256
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7257
{ $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7258
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7259
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7260
$as_echo_n "(cached) " >&6
7264
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7267
lt_save_MAGIC_CMD="$MAGIC_CMD"
7268
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7269
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7270
for ac_dir in $ac_dummy; do
7272
test -z "$ac_dir" && ac_dir=.
7273
if test -f $ac_dir/${ac_tool_prefix}file; then
7274
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7275
if test -n "$file_magic_test_file"; then
7276
case $deplibs_check_method in
7278
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7279
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7281
$EGREP "$file_magic_regex" > /dev/null; then
7286
*** Warning: the command libtool uses to detect shared libraries,
7287
*** $file_magic_cmd, produces output that libtool cannot recognize.
7288
*** The result is that libtool may fail to recognize shared libraries
7289
*** as such. This will affect the creation of libtool libraries that
7290
*** depend on shared libraries, but programs linked with such libtool
7291
*** libraries will work regardless of this problem. Nevertheless, you
7292
*** may want to report the problem to your system manager and/or to
7293
*** bug-libtool@gnu.org
7303
MAGIC_CMD="$lt_save_MAGIC_CMD"
7308
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7309
if test -n "$MAGIC_CMD"; then
7310
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7311
$as_echo "$MAGIC_CMD" >&6; }
7313
{ $as_echo "$as_me:$LINENO: result: no" >&5
7314
$as_echo "no" >&6; }
7317
if test -z "$lt_cv_path_MAGIC_CMD"; then
7318
if test -n "$ac_tool_prefix"; then
7319
{ $as_echo "$as_me:$LINENO: checking for file" >&5
7320
$as_echo_n "checking for file... " >&6; }
7321
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7322
$as_echo_n "(cached) " >&6
7326
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7329
lt_save_MAGIC_CMD="$MAGIC_CMD"
7330
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7331
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7332
for ac_dir in $ac_dummy; do
7334
test -z "$ac_dir" && ac_dir=.
7335
if test -f $ac_dir/file; then
7336
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7337
if test -n "$file_magic_test_file"; then
7338
case $deplibs_check_method in
7340
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7341
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7342
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7343
$EGREP "$file_magic_regex" > /dev/null; then
7348
*** Warning: the command libtool uses to detect shared libraries,
7349
*** $file_magic_cmd, produces output that libtool cannot recognize.
7350
*** The result is that libtool may fail to recognize shared libraries
7351
*** as such. This will affect the creation of libtool libraries that
7352
*** depend on shared libraries, but programs linked with such libtool
7353
*** libraries will work regardless of this problem. Nevertheless, you
7354
*** may want to report the problem to your system manager and/or to
7355
*** bug-libtool@gnu.org
7365
MAGIC_CMD="$lt_save_MAGIC_CMD"
7370
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7371
if test -n "$MAGIC_CMD"; then
7372
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7373
$as_echo "$MAGIC_CMD" >&6; }
7375
{ $as_echo "$as_me:$LINENO: result: no" >&5
7376
$as_echo "no" >&6; }
7390
rhapsody* | darwin*)
7391
if test -n "$ac_tool_prefix"; then
7392
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7393
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7394
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7395
$as_echo_n "checking for $ac_word... " >&6; }
7396
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7397
$as_echo_n "(cached) " >&6
7399
if test -n "$DSYMUTIL"; then
7400
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406
test -z "$as_dir" && as_dir=.
7407
for ac_exec_ext in '' $ac_executable_extensions; do
7408
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7410
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7420
if test -n "$DSYMUTIL"; then
7421
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7422
$as_echo "$DSYMUTIL" >&6; }
7424
{ $as_echo "$as_me:$LINENO: result: no" >&5
7425
$as_echo "no" >&6; }
7430
if test -z "$ac_cv_prog_DSYMUTIL"; then
7431
ac_ct_DSYMUTIL=$DSYMUTIL
7432
# Extract the first word of "dsymutil", so it can be a program name with args.
7433
set dummy dsymutil; ac_word=$2
7434
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7435
$as_echo_n "checking for $ac_word... " >&6; }
7436
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7437
$as_echo_n "(cached) " >&6
7439
if test -n "$ac_ct_DSYMUTIL"; then
7440
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446
test -z "$as_dir" && as_dir=.
7447
for ac_exec_ext in '' $ac_executable_extensions; do
7448
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7450
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7460
if test -n "$ac_ct_DSYMUTIL"; then
7461
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7462
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7464
{ $as_echo "$as_me:$LINENO: result: no" >&5
7465
$as_echo "no" >&6; }
7468
if test "x$ac_ct_DSYMUTIL" = x; then
7471
case $cross_compiling:$ac_tool_warned in
7473
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7474
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475
ac_tool_warned=yes ;;
7477
DSYMUTIL=$ac_ct_DSYMUTIL
7480
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7483
if test -n "$ac_tool_prefix"; then
7484
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7485
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7486
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7487
$as_echo_n "checking for $ac_word... " >&6; }
7488
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7489
$as_echo_n "(cached) " >&6
7491
if test -n "$NMEDIT"; then
7492
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498
test -z "$as_dir" && as_dir=.
7499
for ac_exec_ext in '' $ac_executable_extensions; do
7500
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7502
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511
NMEDIT=$ac_cv_prog_NMEDIT
7512
if test -n "$NMEDIT"; then
7513
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7514
$as_echo "$NMEDIT" >&6; }
7516
{ $as_echo "$as_me:$LINENO: result: no" >&5
7517
$as_echo "no" >&6; }
7522
if test -z "$ac_cv_prog_NMEDIT"; then
7523
ac_ct_NMEDIT=$NMEDIT
7524
# Extract the first word of "nmedit", so it can be a program name with args.
7525
set dummy nmedit; ac_word=$2
7526
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7527
$as_echo_n "checking for $ac_word... " >&6; }
7528
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7529
$as_echo_n "(cached) " >&6
7531
if test -n "$ac_ct_NMEDIT"; then
7532
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538
test -z "$as_dir" && as_dir=.
7539
for ac_exec_ext in '' $ac_executable_extensions; do
7540
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7541
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7542
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7552
if test -n "$ac_ct_NMEDIT"; then
7553
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7554
$as_echo "$ac_ct_NMEDIT" >&6; }
7556
{ $as_echo "$as_me:$LINENO: result: no" >&5
7557
$as_echo "no" >&6; }
7560
if test "x$ac_ct_NMEDIT" = x; then
7563
case $cross_compiling:$ac_tool_warned in
7565
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7566
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567
ac_tool_warned=yes ;;
7569
NMEDIT=$ac_ct_NMEDIT
7572
NMEDIT="$ac_cv_prog_NMEDIT"
7576
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7577
$as_echo_n "checking for -single_module linker flag... " >&6; }
7578
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7579
$as_echo_n "(cached) " >&6
7581
lt_cv_apple_cc_single_mod=no
7582
if test -z "${LT_MULTI_MODULE}"; then
7583
# By default we will add the -single_module flag. You can override
7584
# by either setting the environment variable LT_MULTI_MODULE
7585
# non-empty at configure time, or by adding -multi_module to the
7587
echo "int foo(void){return 1;}" > conftest.c
7588
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7589
-dynamiclib ${wl}-single_module conftest.c
7590
if test -f libconftest.dylib; then
7591
lt_cv_apple_cc_single_mod=yes
7592
rm -rf libconftest.dylib*
7597
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7598
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7599
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7600
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7601
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7602
$as_echo_n "(cached) " >&6
7604
lt_cv_ld_exported_symbols_list=no
7605
save_LDFLAGS=$LDFLAGS
7606
echo "_main" > conftest.sym
7607
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7608
cat >conftest.$ac_ext <<_ACEOF
7611
cat confdefs.h >>conftest.$ac_ext
7612
cat >>conftest.$ac_ext <<_ACEOF
7613
/* end confdefs.h. */
7623
rm -f conftest.$ac_objext conftest$ac_exeext
7624
if { (ac_try="$ac_link"
7626
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627
*) ac_try_echo=$ac_try;;
7629
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7630
$as_echo "$ac_try_echo") >&5
7631
(eval "$ac_link") 2>conftest.er1
7633
grep -v '^ *+' conftest.er1 >conftest.err
7635
cat conftest.err >&5
7636
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637
(exit $ac_status); } && {
7638
test -z "$ac_c_werror_flag" ||
7639
test ! -s conftest.err
7640
} && test -s conftest$ac_exeext && {
7641
test "$cross_compiling" = yes ||
7642
$as_test_x conftest$ac_exeext
7644
lt_cv_ld_exported_symbols_list=yes
7646
$as_echo "$as_me: failed program was:" >&5
7647
sed 's/^/| /' conftest.$ac_ext >&5
7649
lt_cv_ld_exported_symbols_list=no
7652
rm -rf conftest.dSYM
7653
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7654
conftest$ac_exeext conftest.$ac_ext
7655
LDFLAGS="$save_LDFLAGS"
7658
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7659
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7661
rhapsody* | darwin1.[0123])
7662
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7664
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7666
# if running on 10.5 or later, the deployment target defaults
7667
# to the OS version, if on x86, and 10.4, the deployment
7668
# target defaults to 10.4. Don't you love it?
7669
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7670
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7671
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7673
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7675
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7679
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7680
_lt_dar_single_mod='$single_module'
7682
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7683
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7685
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7687
if test "$DSYMUTIL" != ":"; then
7688
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7699
# Check whether --enable-libtool-lock was given.
7700
if test "${enable_libtool_lock+set}" = set; then
7701
enableval=$enable_libtool_lock;
7704
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7707
# Check whether --with-pic was given.
7708
if test "${with_pic+set}" = set; then
7709
withval=$with_pic; pic_mode="$withval"
7714
test -z "$pic_mode" && pic_mode=default
7716
# Use C for the default configuration in the libtool script
7720
ac_cpp='$CPP $CPPFLAGS'
7721
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7726
# Source file extension for C test sources.
7729
# Object file extension for compiled C test sources.
7733
# Code to be used in simple compile tests
7734
lt_simple_compile_test_code="int some_variable = 0;"
7736
# Code to be used in simple link tests
7737
lt_simple_link_test_code='int main(){return(0);}'
7740
# If no C compiler was specified, use CC.
7743
# If no C compiler flags were specified, use CFLAGS.
7744
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7746
# Allow CC to be a program name with arguments.
7750
# save warnings/boilerplate of simple test code
7751
ac_outfile=conftest.$ac_objext
7752
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7753
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7754
_lt_compiler_boilerplate=`cat conftest.err`
7757
ac_outfile=conftest.$ac_objext
7758
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7759
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7760
_lt_linker_boilerplate=`cat conftest.err`
7765
lt_prog_compiler_no_builtin_flag=
7767
if test "$GCC" = yes; then
7768
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7771
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7772
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7773
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7774
$as_echo_n "(cached) " >&6
7776
lt_cv_prog_compiler_rtti_exceptions=no
7777
ac_outfile=conftest.$ac_objext
7778
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7779
lt_compiler_flag="-fno-rtti -fno-exceptions"
7780
# Insert the option either (1) after the last *FLAGS variable, or
7781
# (2) before a word containing "conftest.", or (3) at the end.
7782
# Note that $ac_compile itself does not contain backslashes and begins
7783
# with a dollar sign (not a hyphen), so the echo should work correctly.
7784
# The option is referenced via a variable to avoid confusing sed.
7785
lt_compile=`echo "$ac_compile" | $SED \
7786
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7787
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7788
-e 's:$: $lt_compiler_flag:'`
7789
(eval echo "\"\$as_me:7789: $lt_compile\"" >&5)
7790
(eval "$lt_compile" 2>conftest.err)
7792
cat conftest.err >&5
7793
echo "$as_me:7793: \$? = $ac_status" >&5
7794
if (exit $ac_status) && test -s "$ac_outfile"; then
7795
# The compiler can only warn and ignore the option if not recognized
7796
# So say no if there are warnings other than the usual output.
7797
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7798
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7799
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7800
lt_cv_prog_compiler_rtti_exceptions=yes
7806
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7807
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7809
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7810
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7817
lt_prog_compiler_wl=
7818
lt_prog_compiler_pic=
7819
lt_prog_compiler_static=
7821
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7822
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7824
if test "$GCC" = yes; then
7825
lt_prog_compiler_wl='-Wl,'
7826
lt_prog_compiler_static='-static'
7830
# All AIX code is PIC.
7831
if test "$host_cpu" = ia64; then
7832
# AIX 5 now supports IA64 processor
7833
lt_prog_compiler_static='-Bstatic'
7838
# FIXME: we need at least 68020 code to build shared libraries, but
7839
# adding the `-m68020' flag to GCC prevents building anything better,
7841
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7844
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7845
# PIC is the default for these OSes.
7848
mingw* | cygwin* | pw32* | os2*)
7849
# This hack is so that the source file can tell whether it is being
7850
# built for inclusion in a dll (and should export symbols for example).
7851
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7852
# (--disable-auto-import) libraries
7853
lt_prog_compiler_pic='-DDLL_EXPORT'
7856
darwin* | rhapsody*)
7857
# PIC is the default on this platform
7858
# Common symbols not allowed in MH_DYLIB files
7859
lt_prog_compiler_pic='-fno-common'
7863
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7864
# Instead, we relocate shared libraries at runtime.
7868
# Just because we use GCC doesn't mean we suddenly get shared libraries
7869
# on systems that don't support them.
7870
lt_prog_compiler_can_build_shared=no
7875
if test -d /usr/nec; then
7876
lt_prog_compiler_pic=-Kconform_pic
7881
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7888
lt_prog_compiler_pic='-fPIC'
7894
lt_prog_compiler_pic='-fPIC'
7898
# PORTME Check for flag to pass linker flags through the system compiler.
7901
lt_prog_compiler_wl='-Wl,'
7902
if test "$host_cpu" = ia64; then
7903
# AIX 5 now supports IA64 processor
7904
lt_prog_compiler_static='-Bstatic'
7906
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7910
# PIC is the default on this platform
7911
# Common symbols not allowed in MH_DYLIB files
7912
case $cc_basename in
7914
lt_prog_compiler_pic='-qnocommon'
7915
lt_prog_compiler_wl='-Wl,'
7920
mingw* | cygwin* | pw32* | os2*)
7921
# This hack is so that the source file can tell whether it is being
7922
# built for inclusion in a dll (and should export symbols for example).
7923
lt_prog_compiler_pic='-DDLL_EXPORT'
7926
hpux9* | hpux10* | hpux11*)
7927
lt_prog_compiler_wl='-Wl,'
7928
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7935
lt_prog_compiler_pic='+Z'
7938
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7939
lt_prog_compiler_static='${wl}-a ${wl}archive'
7942
irix5* | irix6* | nonstopux*)
7943
lt_prog_compiler_wl='-Wl,'
7944
# PIC (with -KPIC) is the default.
7945
lt_prog_compiler_static='-non_shared'
7949
lt_prog_compiler_pic='-KPIC'
7950
lt_prog_compiler_static='-Bstatic'
7953
linux* | k*bsd*-gnu)
7954
case $cc_basename in
7956
lt_prog_compiler_wl='-Wl,'
7957
lt_prog_compiler_pic='-KPIC'
7958
lt_prog_compiler_static='-static'
7960
pgcc* | pgf77* | pgf90* | pgf95*)
7961
# Portland Group compilers (*not* the Pentium gcc compiler,
7962
# which looks to be a dead project)
7963
lt_prog_compiler_wl='-Wl,'
7964
lt_prog_compiler_pic='-fpic'
7965
lt_prog_compiler_static='-Bstatic'
7968
lt_prog_compiler_wl='-Wl,'
7969
# All Alpha code is PIC.
7970
lt_prog_compiler_static='-non_shared'
7973
case `$CC -V 2>&1 | sed 5q` in
7976
lt_prog_compiler_pic='-KPIC'
7977
lt_prog_compiler_static='-Bstatic'
7978
lt_prog_compiler_wl='-Wl,'
7981
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7982
lt_prog_compiler_pic='-KPIC'
7983
lt_prog_compiler_static='-Bstatic'
7984
lt_prog_compiler_wl=''
7991
osf3* | osf4* | osf5*)
7992
lt_prog_compiler_wl='-Wl,'
7993
# All OSF/1 code is PIC.
7994
lt_prog_compiler_static='-non_shared'
7998
lt_prog_compiler_static='-non_shared'
8002
lt_prog_compiler_pic='-KPIC'
8003
lt_prog_compiler_static='-Bstatic'
8004
case $cc_basename in
8006
lt_prog_compiler_wl='-Qoption ld ';;
8008
lt_prog_compiler_wl='-Wl,';;
8013
lt_prog_compiler_wl='-Qoption ld '
8014
lt_prog_compiler_pic='-PIC'
8015
lt_prog_compiler_static='-Bstatic'
8018
sysv4 | sysv4.2uw2* | sysv4.3*)
8019
lt_prog_compiler_wl='-Wl,'
8020
lt_prog_compiler_pic='-KPIC'
8021
lt_prog_compiler_static='-Bstatic'
8025
if test -d /usr/nec ;then
8026
lt_prog_compiler_pic='-Kconform_pic'
8027
lt_prog_compiler_static='-Bstatic'
8031
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8032
lt_prog_compiler_wl='-Wl,'
8033
lt_prog_compiler_pic='-KPIC'
8034
lt_prog_compiler_static='-Bstatic'
8038
lt_prog_compiler_wl='-Wl,'
8039
lt_prog_compiler_can_build_shared=no
8043
lt_prog_compiler_pic='-pic'
8044
lt_prog_compiler_static='-Bstatic'
8048
lt_prog_compiler_can_build_shared=no
8053
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8054
$as_echo "$lt_prog_compiler_pic" >&6; }
8057
# Check to make sure the PIC flag actually works.
8059
if test -n "$lt_prog_compiler_pic"; then
8061
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8062
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8063
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8064
$as_echo_n "(cached) " >&6
8066
lt_cv_prog_compiler_pic_works=no
8067
ac_outfile=conftest.$ac_objext
8068
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8069
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8070
# Insert the option either (1) after the last *FLAGS variable, or
8071
# (2) before a word containing "conftest.", or (3) at the end.
8072
# Note that $ac_compile itself does not contain backslashes and begins
8073
# with a dollar sign (not a hyphen), so the echo should work correctly.
8074
# The option is referenced via a variable to avoid confusing sed.
8075
lt_compile=`echo "$ac_compile" | $SED \
8076
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8077
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8078
-e 's:$: $lt_compiler_flag:'`
8079
(eval echo "\"\$as_me:8079: $lt_compile\"" >&5)
8080
(eval "$lt_compile" 2>conftest.err)
8082
cat conftest.err >&5
8083
echo "$as_me:8083: \$? = $ac_status" >&5
8084
if (exit $ac_status) && test -s "$ac_outfile"; then
8085
# The compiler can only warn and ignore the option if not recognized
8086
# So say no if there are warnings other than the usual output.
8087
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8088
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8089
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8090
lt_cv_prog_compiler_pic_works=yes
8096
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8097
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8099
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8100
case $lt_prog_compiler_pic in
8102
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8105
lt_prog_compiler_pic=
8106
lt_prog_compiler_can_build_shared=no
8111
# For platforms which do not support PIC, -DPIC is meaningless:
8113
lt_prog_compiler_pic=
8116
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8121
# Check to make sure the static flag actually works.
8123
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8124
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8125
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8126
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8127
$as_echo_n "(cached) " >&6
8129
lt_cv_prog_compiler_static_works=no
8130
save_LDFLAGS="$LDFLAGS"
8131
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8132
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8133
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8134
# The linker can only warn and ignore the option if not recognized
8135
# So say no if there are warnings
8136
if test -s conftest.err; then
8137
# Append any errors to the config.log.
8138
cat conftest.err 1>&5
8139
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8140
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8141
if diff conftest.exp conftest.er2 >/dev/null; then
8142
lt_cv_prog_compiler_static_works=yes
8145
lt_cv_prog_compiler_static_works=yes
8149
LDFLAGS="$save_LDFLAGS"
8152
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8153
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8155
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8158
lt_prog_compiler_static=
8162
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8163
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8164
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8165
$as_echo_n "(cached) " >&6
8167
lt_cv_prog_compiler_c_o=no
8168
$rm -r conftest 2>/dev/null
8172
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8174
lt_compiler_flag="-o out/conftest2.$ac_objext"
8175
# Insert the option either (1) after the last *FLAGS variable, or
8176
# (2) before a word containing "conftest.", or (3) at the end.
8177
# Note that $ac_compile itself does not contain backslashes and begins
8178
# with a dollar sign (not a hyphen), so the echo should work correctly.
8179
lt_compile=`echo "$ac_compile" | $SED \
8180
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8181
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8182
-e 's:$: $lt_compiler_flag:'`
8183
(eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
8184
(eval "$lt_compile" 2>out/conftest.err)
8186
cat out/conftest.err >&5
8187
echo "$as_me:8187: \$? = $ac_status" >&5
8188
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8190
# The compiler can only warn and ignore the option if not recognized
8191
# So say no if there are warnings
8192
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8193
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8194
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8195
lt_cv_prog_compiler_c_o=yes
8200
# SGI C++ compiler will create directory out/ii_files/ for
8201
# template instantiation
8202
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8203
$rm out/* && rmdir out
8209
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8210
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8213
hard_links="nottested"
8214
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8215
# do not overwrite the value of need_locks provided by the user
8216
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8217
$as_echo_n "checking if we can lock with hard links... " >&6; }
8220
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8222
ln conftest.a conftest.b 2>&5 || hard_links=no
8223
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8224
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8225
$as_echo "$hard_links" >&6; }
8226
if test "$hard_links" = no; then
8227
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8228
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8235
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8236
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8239
allow_undefined_flag=
8240
enable_shared_with_static_runtimes=no
8242
archive_expsym_cmds=
8243
old_archive_From_new_cmds=
8244
old_archive_from_expsyms_cmds=
8245
export_dynamic_flag_spec=
8246
whole_archive_flag_spec=
8247
thread_safe_flag_spec=
8248
hardcode_libdir_flag_spec=
8249
hardcode_libdir_flag_spec_ld=
8250
hardcode_libdir_separator=
8253
hardcode_shlibpath_var=unsupported
8254
link_all_deplibs=unknown
8255
hardcode_automatic=no
8258
always_export_symbols=no
8259
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8260
# include_expsyms should be a list of space-separated symbols to be *always*
8261
# included in the symbol list
8263
# exclude_expsyms can be an extended regexp of symbols to exclude
8264
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8265
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8266
# as well as any symbol that contains `d'.
8267
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8268
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8269
# platforms (ab)use it in PIC code, but their linkers get confused if
8270
# the symbol is explicitly referenced. Since portable code cannot
8271
# rely on this symbol name, it's probably fine to never include it in
8272
# preloaded symbol tables.
8273
# Exclude shared library initialization/finalization symbols.
8274
extract_expsyms_cmds=
8275
# Just being paranoid about ensuring that cc_basename is set.
8276
for cc_temp in $compiler""; do
8278
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8279
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8284
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8287
cygwin* | mingw* | pw32*)
8288
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8289
# When not using gcc, we currently assume that we are using
8290
# Microsoft Visual C++.
8291
if test "$GCC" != yes; then
8296
# we just hope/assume this is gcc and not c89 (= MSVC++)
8305
if test "$with_gnu_ld" = yes; then
8306
# If archive_cmds runs LD, not CC, wlarc should be empty
8309
# Set some defaults for GNU ld with shared library support. These
8310
# are reset later if shared libraries are not supported. Putting them
8311
# here allows them to be overridden if necessary.
8312
runpath_var=LD_RUN_PATH
8313
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8314
export_dynamic_flag_spec='${wl}--export-dynamic'
8315
# ancient GNU ld didn't support --whole-archive et. al.
8316
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8317
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8319
whole_archive_flag_spec=
8321
supports_anon_versioning=no
8322
case `$LD -v 2>/dev/null` in
8323
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8324
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8325
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8326
*\ 2.11.*) ;; # other 2.11 versions
8327
*) supports_anon_versioning=yes ;;
8330
# See if GNU ld supports shared libraries.
8333
# On AIX/PPC, the GNU linker is very broken
8334
if test "$host_cpu" != ia64; then
8338
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8339
*** to be unable to reliably create shared libraries on AIX.
8340
*** Therefore, libtool is disabling shared libraries support. If you
8341
*** really care for shared libraries, you may want to modify your PATH
8342
*** so that a non-GNU linker is found, and then restart.
8349
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)'
8350
hardcode_libdir_flag_spec='-L$libdir'
8351
hardcode_minus_L=yes
8353
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8354
# that the semantics of dynamic libraries on AmigaOS, at least up
8355
# to version 4, is to share data among multiple programs linked
8356
# with the same dynamic library. Since this doesn't match the
8357
# behavior of shared libraries on other platforms, we can't use
8363
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8364
allow_undefined_flag=unsupported
8365
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8366
# support --undefined. This deserves some investigation. FIXME
8367
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373
cygwin* | mingw* | pw32*)
8374
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8375
# as there is no search path for DLLs.
8376
hardcode_libdir_flag_spec='-L$libdir'
8377
allow_undefined_flag=unsupported
8378
always_export_symbols=no
8379
enable_shared_with_static_runtimes=yes
8380
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8382
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8383
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8384
# If the export-symbols file already is a .def file (1st line
8385
# is EXPORTS), use it as is; otherwise, prepend...
8386
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8387
cp $export_symbols $output_objdir/$soname.def;
8389
echo EXPORTS > $output_objdir/$soname.def;
8390
cat $export_symbols >> $output_objdir/$soname.def;
8392
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8400
hardcode_shlibpath_var=no
8401
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8402
export_dynamic_flag_spec='${wl}-E'
8403
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8404
# Instead, shared libraries are loaded at an image base (0x10000000 by
8405
# default) and relocated if they conflict, which is a slow very memory
8406
# consuming and fragmenting process. To avoid this, we pick a random,
8407
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8408
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8409
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8410
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'
8413
gnu* | linux* | k*bsd*-gnu)
8414
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8416
case $cc_basename,$host_cpu in
8417
pgcc*) # Portland Group C compiler
8418
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'
8419
tmp_addflag=' $pic_flag'
8421
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8422
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'
8423
tmp_addflag=' $pic_flag -Mnomain' ;;
8424
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8425
tmp_addflag=' -i_dynamic' ;;
8426
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8427
tmp_addflag=' -i_dynamic -nofor_main' ;;
8428
ifc* | ifort*) # Intel Fortran compiler
8429
tmp_addflag=' -nofor_main' ;;
8431
case `$CC -V 2>&1 | sed 5q` in
8432
*Sun\ C*) # Sun C 5.9
8433
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'
8434
tmp_sharedflag='-G' ;;
8435
*Sun\ F*) # Sun Fortran 8.3
8436
tmp_sharedflag='-G' ;;
8438
tmp_sharedflag='-shared' ;;
8440
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442
if test $supports_anon_versioning = yes; then
8443
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8444
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8445
$echo "local: *; };" >> $output_objdir/$libname.ver~
8446
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8454
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8455
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8458
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8459
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8464
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8468
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8469
*** create shared libraries on Solaris systems. Therefore, libtool
8470
*** is disabling shared libraries support. We urge you to upgrade GNU
8471
*** binutils to release 2.9.1 or newer. Another option is to modify
8472
*** your PATH or compiler configuration so that the native linker is
8473
*** used, and then restart.
8476
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8477
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8478
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8485
case `$LD -v 2>&1` in
8486
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8490
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8491
*** reliably create shared libraries on SCO systems. Therefore, libtool
8492
*** is disabling shared libraries support. We urge you to upgrade GNU
8493
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8494
*** your PATH or compiler configuration so that the native linker is
8495
*** used, and then restart.
8500
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8501
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8502
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8503
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8512
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8515
hardcode_shlibpath_var=no
8519
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8520
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8521
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8528
if test "$ld_shlibs" = no; then
8530
hardcode_libdir_flag_spec=
8531
export_dynamic_flag_spec=
8532
whole_archive_flag_spec=
8535
# PORTME fill in a description of your system's linker (not GNU ld)
8538
allow_undefined_flag=unsupported
8539
always_export_symbols=yes
8540
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'
8541
# Note: this linker hardcodes the directories in LIBPATH if there
8542
# are no directories specified by -L.
8543
hardcode_minus_L=yes
8544
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8545
# Neither direct hardcoding nor static linking is supported with a
8547
hardcode_direct=unsupported
8552
if test "$host_cpu" = ia64; then
8553
# On IA64, the linker does run time linking by default, so we don't
8554
# have to do anything special.
8555
aix_use_runtimelinking=no
8556
exp_sym_flag='-Bexport'
8559
# If we're using GNU nm, then we don't want the "-C" option.
8560
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8561
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8562
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'
8564
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'
8566
aix_use_runtimelinking=no
8568
# Test if we are trying to use run time linking or normal
8569
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8570
# need to do runtime linking.
8571
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8572
for ld_flag in $LDFLAGS; do
8573
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8574
aix_use_runtimelinking=yes
8581
exp_sym_flag='-bexport'
8582
no_entry_flag='-bnoentry'
8585
# When large executables or shared objects are built, AIX ld can
8586
# have problems creating the table of contents. If linking a library
8587
# or program results in "error TOC overflow" add -mminimal-toc to
8588
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8589
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8593
hardcode_libdir_separator=':'
8594
link_all_deplibs=yes
8596
if test "$GCC" = yes; then
8597
case $host_os in aix4.[012]|aix4.[012].*)
8598
# We only want to do this on AIX 4.2 and lower, the check
8599
# below for broken collect2 doesn't work under 4.3+
8600
collect2name=`${CC} -print-prog-name=collect2`
8601
if test -f "$collect2name" && \
8602
strings "$collect2name" | grep resolve_lib_name >/dev/null
8604
# We have reworked collect2
8607
# We have old collect2
8608
hardcode_direct=unsupported
8609
# It fails to find uninstalled libraries when the uninstalled
8610
# path is not listed in the libpath. Setting hardcode_minus_L
8611
# to unsupported forces relinking
8612
hardcode_minus_L=yes
8613
hardcode_libdir_flag_spec='-L$libdir'
8614
hardcode_libdir_separator=
8618
shared_flag='-shared'
8619
if test "$aix_use_runtimelinking" = yes; then
8620
shared_flag="$shared_flag "'${wl}-G'
8624
if test "$host_cpu" = ia64; then
8625
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8626
# chokes on -Wl,-G. The following line is correct:
8629
if test "$aix_use_runtimelinking" = yes; then
8630
shared_flag='${wl}-G'
8632
shared_flag='${wl}-bM:SRE'
8637
# It seems that -bexpall does not export symbols beginning with
8638
# underscore (_), so it is better to generate a list of symbols to export.
8639
always_export_symbols=yes
8640
if test "$aix_use_runtimelinking" = yes; then
8641
# Warning - without using the other runtime loading flags (-brtl),
8642
# -berok will link without error, but may produce a broken library.
8643
allow_undefined_flag='-berok'
8644
# Determine the default libpath from the value encoded in an empty executable.
8645
cat >conftest.$ac_ext <<_ACEOF
8648
cat confdefs.h >>conftest.$ac_ext
8649
cat >>conftest.$ac_ext <<_ACEOF
8650
/* end confdefs.h. */
8660
rm -f conftest.$ac_objext conftest$ac_exeext
8661
if { (ac_try="$ac_link"
8663
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664
*) ac_try_echo=$ac_try;;
8666
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667
$as_echo "$ac_try_echo") >&5
8668
(eval "$ac_link") 2>conftest.er1
8670
grep -v '^ *+' conftest.er1 >conftest.err
8672
cat conftest.err >&5
8673
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674
(exit $ac_status); } && {
8675
test -z "$ac_c_werror_flag" ||
8676
test ! -s conftest.err
8677
} && test -s conftest$ac_exeext && {
8678
test "$cross_compiling" = yes ||
8679
$as_test_x conftest$ac_exeext
8682
lt_aix_libpath_sed='
8683
/Import File Strings/,/^$/ {
8689
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8690
# Check for a 64-bit object if we didn't find anything.
8691
if test -z "$aix_libpath"; then
8692
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8695
$as_echo "$as_me: failed program was:" >&5
8696
sed 's/^/| /' conftest.$ac_ext >&5
8701
rm -rf conftest.dSYM
8702
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8703
conftest$ac_exeext conftest.$ac_ext
8704
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8706
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8707
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"
8709
if test "$host_cpu" = ia64; then
8710
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8711
allow_undefined_flag="-z nodefs"
8712
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"
8714
# Determine the default libpath from the value encoded in an empty executable.
8715
cat >conftest.$ac_ext <<_ACEOF
8718
cat confdefs.h >>conftest.$ac_ext
8719
cat >>conftest.$ac_ext <<_ACEOF
8720
/* end confdefs.h. */
8730
rm -f conftest.$ac_objext conftest$ac_exeext
8731
if { (ac_try="$ac_link"
8733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734
*) ac_try_echo=$ac_try;;
8736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8737
$as_echo "$ac_try_echo") >&5
8738
(eval "$ac_link") 2>conftest.er1
8740
grep -v '^ *+' conftest.er1 >conftest.err
8742
cat conftest.err >&5
8743
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744
(exit $ac_status); } && {
8745
test -z "$ac_c_werror_flag" ||
8746
test ! -s conftest.err
8747
} && test -s conftest$ac_exeext && {
8748
test "$cross_compiling" = yes ||
8749
$as_test_x conftest$ac_exeext
8752
lt_aix_libpath_sed='
8753
/Import File Strings/,/^$/ {
8759
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8760
# Check for a 64-bit object if we didn't find anything.
8761
if test -z "$aix_libpath"; then
8762
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8765
$as_echo "$as_me: failed program was:" >&5
8766
sed 's/^/| /' conftest.$ac_ext >&5
8771
rm -rf conftest.dSYM
8772
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8773
conftest$ac_exeext conftest.$ac_ext
8774
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8776
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8777
# Warning - without using the other run time loading flags,
8778
# -berok will link without error, but may produce a broken library.
8779
no_undefined_flag=' ${wl}-bernotok'
8780
allow_undefined_flag=' ${wl}-berok'
8781
# Exported symbols can be pulled into shared objects from archives
8782
whole_archive_flag_spec='$convenience'
8783
archive_cmds_need_lc=yes
8784
# This is similar to how AIX traditionally builds its shared libraries.
8785
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'
8791
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)'
8792
hardcode_libdir_flag_spec='-L$libdir'
8793
hardcode_minus_L=yes
8794
# see comment about different semantics on the GNU ld section
8799
export_dynamic_flag_spec=-rdynamic
8802
cygwin* | mingw* | pw32*)
8803
# When not using gcc, we currently assume that we are using
8804
# Microsoft Visual C++.
8805
# hardcode_libdir_flag_spec is actually meaningless, as there is
8806
# no search path for DLLs.
8807
hardcode_libdir_flag_spec=' '
8808
allow_undefined_flag=unsupported
8809
# Tell ltmain to make .lib files, not .a files.
8811
# Tell ltmain to make .dll files, not .so files.
8813
# FIXME: Setting linknames here is a bad hack.
8814
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8815
# The linker will automatically build a .lib file if we build a DLL.
8816
old_archive_From_new_cmds='true'
8817
# FIXME: Should let the user specify the lib program.
8818
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8819
fix_srcfile_path='`cygpath -w "$srcfile"`'
8820
enable_shared_with_static_runtimes=yes
8823
darwin* | rhapsody*)
8825
rhapsody* | darwin1.[012])
8826
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8829
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8830
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8832
case ${MACOSX_DEPLOYMENT_TARGET} in
8834
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8837
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8843
archive_cmds_need_lc=no
8845
hardcode_automatic=yes
8846
hardcode_shlibpath_var=unsupported
8847
whole_archive_flag_spec=''
8848
link_all_deplibs=yes
8849
if test "$GCC" = yes ; then
8850
output_verbose_link_cmd='echo'
8851
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8852
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8853
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8854
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8856
case $cc_basename in
8858
output_verbose_link_cmd='echo'
8859
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8860
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8861
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8862
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}'
8863
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}'
8873
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874
hardcode_libdir_flag_spec='-L$libdir'
8875
hardcode_shlibpath_var=no
8882
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8883
# support. Future versions do this automatically, but an explicit c++rt0.o
8884
# does not break anything, and helps significantly (at the cost of a little
8887
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8888
hardcode_libdir_flag_spec='-R$libdir'
8890
hardcode_shlibpath_var=no
8893
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8895
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8897
hardcode_minus_L=yes
8898
hardcode_shlibpath_var=no
8901
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8902
freebsd* | dragonfly*)
8903
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8904
hardcode_libdir_flag_spec='-R$libdir'
8906
hardcode_shlibpath_var=no
8910
if test "$GCC" = yes; then
8911
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'
8913
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'
8915
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8916
hardcode_libdir_separator=:
8919
# hardcode_minus_L: Not really in the search PATH,
8920
# but as the default location of the library.
8921
hardcode_minus_L=yes
8922
export_dynamic_flag_spec='${wl}-E'
8926
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8927
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8929
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8931
if test "$with_gnu_ld" = no; then
8932
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8933
hardcode_libdir_separator=:
8936
export_dynamic_flag_spec='${wl}-E'
8938
# hardcode_minus_L: Not really in the search PATH,
8939
# but as the default location of the library.
8940
hardcode_minus_L=yes
8945
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8948
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8951
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8954
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8960
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8966
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8970
if test "$with_gnu_ld" = no; then
8971
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8972
hardcode_libdir_separator=:
8976
hardcode_libdir_flag_spec_ld='+b $libdir'
8978
hardcode_shlibpath_var=no
8982
export_dynamic_flag_spec='${wl}-E'
8984
# hardcode_minus_L: Not really in the search PATH,
8985
# but as the default location of the library.
8986
hardcode_minus_L=yes
8992
irix5* | irix6* | nonstopux*)
8993
if test "$GCC" = yes; then
8994
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'
8996
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'
8997
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8999
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000
hardcode_libdir_separator=:
9001
link_all_deplibs=yes
9005
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9006
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9008
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9010
hardcode_libdir_flag_spec='-R$libdir'
9012
hardcode_shlibpath_var=no
9016
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019
hardcode_libdir_separator=:
9020
hardcode_shlibpath_var=no
9024
if test -f /usr/libexec/ld.so; then
9026
hardcode_shlibpath_var=no
9027
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9028
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9029
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9030
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9031
export_dynamic_flag_spec='${wl}-E'
9034
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9035
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9036
hardcode_libdir_flag_spec='-R$libdir'
9039
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9040
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9050
hardcode_libdir_flag_spec='-L$libdir'
9051
hardcode_minus_L=yes
9052
allow_undefined_flag=unsupported
9053
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'
9054
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9058
if test "$GCC" = yes; then
9059
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9060
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'
9062
allow_undefined_flag=' -expect_unresolved \*'
9063
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'
9065
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066
hardcode_libdir_separator=:
9069
osf4* | osf5*) # as osf3* with the addition of -msym flag
9070
if test "$GCC" = yes; then
9071
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9072
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'
9073
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9075
allow_undefined_flag=' -expect_unresolved \*'
9076
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'
9077
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9078
$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'
9080
# Both c and cxx compiler support -rpath directly
9081
hardcode_libdir_flag_spec='-rpath $libdir'
9083
hardcode_libdir_separator=:
9087
no_undefined_flag=' -z text'
9088
if test "$GCC" = yes; then
9090
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9092
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9095
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9097
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9099
hardcode_libdir_flag_spec='-R$libdir'
9100
hardcode_shlibpath_var=no
9102
solaris2.[0-5] | solaris2.[0-5].*) ;;
9104
# The compiler driver will combine and reorder linker options,
9105
# but understands `-z linker_flag'. GCC discards it without `$wl',
9106
# but is careful enough not to reorder.
9107
# Supported since Solaris 2.6 (maybe 2.5.1?)
9108
if test "$GCC" = yes; then
9109
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9111
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9115
link_all_deplibs=yes
9119
if test "x$host_vendor" = xsequent; then
9120
# Use $CC to link under sequent, because it throws in some extra .o
9121
# files that make .init and .fini sections work.
9122
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9124
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9126
hardcode_libdir_flag_spec='-L$libdir'
9128
hardcode_minus_L=yes
9129
hardcode_shlibpath_var=no
9133
case $host_vendor in
9135
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9136
hardcode_direct=yes # is this really true???
9139
## LD is ld it makes a PLAMLIB
9140
## CC just makes a GrossModule.
9141
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9142
reload_cmds='$CC -r -o $output$reload_objs'
9146
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9150
runpath_var='LD_RUN_PATH'
9151
hardcode_shlibpath_var=no
9155
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9156
hardcode_shlibpath_var=no
9157
export_dynamic_flag_spec='-Bexport'
9161
if test -d /usr/nec; then
9162
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9163
hardcode_shlibpath_var=no
9164
runpath_var=LD_RUN_PATH
9165
hardcode_runpath_var=yes
9170
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9171
no_undefined_flag='${wl}-z,text'
9172
archive_cmds_need_lc=no
9173
hardcode_shlibpath_var=no
9174
runpath_var='LD_RUN_PATH'
9176
if test "$GCC" = yes; then
9177
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9180
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9181
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9185
sysv5* | sco3.2v5* | sco5v6*)
9186
# Note: We can NOT use -z defs as we might desire, because we do not
9187
# link with -lc, and that would cause any symbols used from libc to
9188
# always be unresolved, which means just about no library would
9189
# ever link correctly. If we're not using GNU ld we use -z text
9190
# though, which does catch some bad symbols but isn't as heavy-handed
9192
no_undefined_flag='${wl}-z,text'
9193
allow_undefined_flag='${wl}-z,nodefs'
9194
archive_cmds_need_lc=no
9195
hardcode_shlibpath_var=no
9196
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9197
hardcode_libdir_separator=':'
9198
link_all_deplibs=yes
9199
export_dynamic_flag_spec='${wl}-Bexport'
9200
runpath_var='LD_RUN_PATH'
9202
if test "$GCC" = yes; then
9203
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9207
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9212
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9213
hardcode_libdir_flag_spec='-L$libdir'
9214
hardcode_shlibpath_var=no
9223
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9224
$as_echo "$ld_shlibs" >&6; }
9225
test "$ld_shlibs" = no && can_build_shared=no
9228
# Do we need to explicitly link libc?
9230
case "x$archive_cmds_need_lc" in
9232
# Assume -lc should be added
9233
archive_cmds_need_lc=yes
9235
if test "$enable_shared" = yes && test "$GCC" = yes; then
9236
case $archive_cmds in
9238
# FIXME: we may have to deal with multi-command sequences.
9241
# Test whether the compiler implicitly links with -lc since on some
9242
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9243
# to ld, don't add -lc before -lgcc.
9244
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9245
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9247
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9249
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9250
(eval $ac_compile) 2>&5
9252
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253
(exit $ac_status); } 2>conftest.err; then
9256
libobjs=conftest.$ac_objext
9258
wl=$lt_prog_compiler_wl
9259
pic_flag=$lt_prog_compiler_pic
9265
lt_save_allow_undefined_flag=$allow_undefined_flag
9266
allow_undefined_flag=
9267
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9268
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9270
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271
(exit $ac_status); }
9273
archive_cmds_need_lc=no
9275
archive_cmds_need_lc=yes
9277
allow_undefined_flag=$lt_save_allow_undefined_flag
9279
cat conftest.err 1>&5
9282
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9283
$as_echo "$archive_cmds_need_lc" >&6; }
9290
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9291
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9293
libname_spec='lib$name'
9301
shlibpath_overrides_runpath=unknown
9303
dynamic_linker="$host_os ld.so"
9304
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9306
if test "$GCC" = yes; then
9308
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9309
*) lt_awk_arg="/^libraries:/" ;;
9311
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9312
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9313
# if the path contains ";" then we assume it to be the separator
9314
# otherwise default to the standard path separator (i.e. ":") - it is
9315
# assumed that no part of a normal pathname contains ";" but that should
9316
# okay in the real world where ";" in dirpaths is itself problematic.
9317
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9319
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9321
# Ok, now we have the path, separated by spaces, we can step through it
9322
# and add multilib dir if necessary.
9323
lt_tmp_lt_search_path_spec=
9324
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9325
for lt_sys_path in $lt_search_path_spec; do
9326
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9327
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9329
test -d "$lt_sys_path" && \
9330
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9333
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9334
BEGIN {RS=" "; FS="/|\n";} {
9337
for (lt_i = NF; lt_i > 0; lt_i--) {
9338
if ($lt_i != "" && $lt_i != ".") {
9339
if ($lt_i == "..") {
9342
if (lt_count == 0) {
9343
lt_foo="/" $lt_i lt_foo;
9350
if (lt_foo != "") { lt_freq[lt_foo]++; }
9351
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9353
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9355
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9357
need_lib_prefix=unknown
9358
hardcode_into_libs=no
9360
# when you set need_version to no, make sure it does not cause -set_version
9361
# flags to be left without arguments
9362
need_version=unknown
9367
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9368
shlibpath_var=LIBPATH
9370
# AIX 3 has no versioning support, so we append a major version to the name.
9371
soname_spec='${libname}${release}${shared_ext}$major'
9378
hardcode_into_libs=yes
9379
if test "$host_cpu" = ia64; then
9380
# AIX 5 supports IA64
9381
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9382
shlibpath_var=LD_LIBRARY_PATH
9384
# With GCC up to 2.95.x, collect2 would create an import file
9385
# for dependence libraries. The import file would start with
9386
# the line `#! .'. This would cause the generated library to
9387
# depend on `.', always an invalid library. This was fixed in
9388
# development snapshots of GCC prior to 3.0.
9390
aix4 | aix4.[01] | aix4.[01].*)
9391
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9393
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9400
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9401
# soname into executable. Probably we can add versioning support to
9402
# collect2, so additional links can be useful in future.
9403
if test "$aix_use_runtimelinking" = yes; then
9404
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9405
# instead of lib<name>.a to let people know that these are not
9406
# typical AIX shared libraries.
9407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409
# We preserve .a as extension for shared libraries through AIX4.2
9410
# and later when we are not doing run time linking.
9411
library_names_spec='${libname}${release}.a $libname.a'
9412
soname_spec='${libname}${release}${shared_ext}$major'
9414
shlibpath_var=LIBPATH
9419
library_names_spec='$libname.ixlibrary $libname.a'
9420
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9421
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'
9425
library_names_spec='${libname}${shared_ext}'
9426
dynamic_linker="$host_os ld.so"
9427
shlibpath_var=LIBRARY_PATH
9433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434
soname_spec='${libname}${release}${shared_ext}$major'
9435
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9436
shlibpath_var=LD_LIBRARY_PATH
9437
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9438
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9439
# the default ld.so.conf also contains /usr/contrib/lib and
9440
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9441
# libtool to hard-code these into programs
9444
cygwin* | mingw* | pw32*)
9445
version_type=windows
9450
case $GCC,$host_os in
9451
yes,cygwin* | yes,mingw* | yes,pw32*)
9452
library_names_spec='$libname.dll.a'
9453
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9454
postinstall_cmds='base_file=`basename \${file}`~
9455
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9456
dldir=$destdir/`dirname \$dlpath`~
9457
test -d \$dldir || mkdir -p \$dldir~
9458
$install_prog $dir/$dlname \$dldir/$dlname~
9459
chmod a+x \$dldir/$dlname'
9460
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9461
dlpath=$dir/\$dldll~
9463
shlibpath_overrides_runpath=yes
9467
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9468
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9469
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9472
# MinGW DLLs use traditional 'lib' prefix
9473
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9474
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9475
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9476
# It is most probably a Windows format PATH printed by
9477
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9478
# path with ; separators, and with drive letters. We can handle the
9479
# drive letters (cygwin fileutils understands them), so leave them,
9480
# especially as we might pass files found there to a mingw objdump,
9481
# which wouldn't understand a cygwinified path. Ahh.
9482
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9484
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9488
# pw32 DLLs use 'pw' prefix rather than 'lib'
9489
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9495
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9498
dynamic_linker='Win32 ld.exe'
9499
# FIXME: first we should search . and the directory the executable is in
9503
darwin* | rhapsody*)
9504
dynamic_linker="$host_os dyld"
9508
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9509
soname_spec='${libname}${release}${major}$shared_ext'
9510
shlibpath_overrides_runpath=yes
9511
shlibpath_var=DYLD_LIBRARY_PATH
9512
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9514
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9515
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9523
soname_spec='${libname}${release}${shared_ext}$major'
9524
shlibpath_var=LD_LIBRARY_PATH
9531
freebsd* | dragonfly*)
9532
# DragonFly does not have aout. When/if they implement a new
9533
# versioning mechanism, adjust this.
9534
if test -x /usr/bin/objformat; then
9535
objformat=`/usr/bin/objformat`
9538
freebsd[123]*) objformat=aout ;;
9542
version_type=freebsd-$objformat
9543
case $version_type in
9545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9550
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9554
shlibpath_var=LD_LIBRARY_PATH
9557
shlibpath_overrides_runpath=yes
9559
freebsd3.[01]* | freebsdelf3.[01]*)
9560
shlibpath_overrides_runpath=yes
9561
hardcode_into_libs=yes
9563
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9564
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9565
shlibpath_overrides_runpath=no
9566
hardcode_into_libs=yes
9568
*) # from 4.6 on, and DragonFly
9569
shlibpath_overrides_runpath=yes
9570
hardcode_into_libs=yes
9579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9580
soname_spec='${libname}${release}${shared_ext}$major'
9581
shlibpath_var=LD_LIBRARY_PATH
9582
hardcode_into_libs=yes
9585
hpux9* | hpux10* | hpux11*)
9586
# Give a soname corresponding to the major version so that dld.sl refuses to
9587
# link against other versions.
9594
hardcode_into_libs=yes
9595
dynamic_linker="$host_os dld.so"
9596
shlibpath_var=LD_LIBRARY_PATH
9597
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599
soname_spec='${libname}${release}${shared_ext}$major'
9600
if test "X$HPUX_IA64_MODE" = X32; then
9601
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9603
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9605
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9609
hardcode_into_libs=yes
9610
dynamic_linker="$host_os dld.sl"
9611
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9612
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9613
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614
soname_spec='${libname}${release}${shared_ext}$major'
9615
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9616
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9620
dynamic_linker="$host_os dld.sl"
9621
shlibpath_var=SHLIB_PATH
9622
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9624
soname_spec='${libname}${release}${shared_ext}$major'
9627
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9628
postinstall_cmds='chmod 555 $lib'
9635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9636
soname_spec='${libname}${release}${shared_ext}$major'
9637
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9638
shlibpath_var=LD_LIBRARY_PATH
9639
shlibpath_overrides_runpath=no
9640
hardcode_into_libs=yes
9643
irix5* | irix6* | nonstopux*)
9645
nonstopux*) version_type=nonstopux ;;
9647
if test "$lt_cv_prog_gnu_ld" = yes; then
9655
soname_spec='${libname}${release}${shared_ext}$major'
9656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9658
irix5* | nonstopux*)
9662
case $LD in # libtool.m4 will add one of these switches to LD
9663
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9664
libsuff= shlibsuff= libmagic=32-bit;;
9665
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9666
libsuff=32 shlibsuff=N32 libmagic=N32;;
9667
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9668
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9669
*) libsuff= shlibsuff= libmagic=never-match;;
9673
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9674
shlibpath_overrides_runpath=no
9675
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9676
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9677
hardcode_into_libs=yes
9680
# No shared lib support for Linux oldld, aout, or coff.
9681
linux*oldld* | linux*aout* | linux*coff*)
9685
# This must be Linux ELF.
9686
linux* | k*bsd*-gnu)
9690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691
soname_spec='${libname}${release}${shared_ext}$major'
9692
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9693
shlibpath_var=LD_LIBRARY_PATH
9694
shlibpath_overrides_runpath=no
9695
# This implies no fast_install, which is unacceptable.
9696
# Some rework will be needed to allow for fast_install
9697
# before this can be enabled.
9698
hardcode_into_libs=yes
9699
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9700
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9702
# Append ld.so.conf contents to the search path
9703
if test -f /etc/ld.so.conf; then
9704
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' ' '`
9705
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9708
# We used to test for /lib/ld.so.1 and disable shared libraries on
9709
# powerpc, because MkLinux only supported shared libraries with the
9710
# GNU dynamic linker. Since this was broken with cross compilers,
9711
# most powerpc-linux boxes support dynamic linking these days and
9712
# people can always --disable-shared, the test was removed, and we
9713
# assume the GNU/Linux dynamic linker is in use.
9714
dynamic_linker='GNU/Linux ld.so'
9721
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9723
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9724
dynamic_linker='NetBSD (a.out) ld.so'
9726
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9727
soname_spec='${libname}${release}${shared_ext}$major'
9728
dynamic_linker='NetBSD ld.elf_so'
9730
shlibpath_var=LD_LIBRARY_PATH
9731
shlibpath_overrides_runpath=yes
9732
hardcode_into_libs=yes
9737
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738
shlibpath_var=LD_LIBRARY_PATH
9739
shlibpath_overrides_runpath=yes
9746
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747
soname_spec='${libname}${release}${shared_ext}$major'
9748
shlibpath_var=LD_LIBRARY_PATH
9749
shlibpath_overrides_runpath=yes
9754
sys_lib_dlsearch_path_spec="/usr/lib"
9756
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9758
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9759
*) need_version=no ;;
9761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9762
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9763
shlibpath_var=LD_LIBRARY_PATH
9764
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9766
openbsd2.[89] | openbsd2.[89].*)
9767
shlibpath_overrides_runpath=no
9770
shlibpath_overrides_runpath=yes
9774
shlibpath_overrides_runpath=yes
9779
libname_spec='$name'
9782
library_names_spec='$libname${shared_ext} $libname.a'
9783
dynamic_linker='OS/2 ld.exe'
9784
shlibpath_var=LIBPATH
9787
osf3* | osf4* | osf5*)
9791
soname_spec='${libname}${release}${shared_ext}$major'
9792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793
shlibpath_var=LD_LIBRARY_PATH
9794
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9795
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807
soname_spec='${libname}${release}${shared_ext}$major'
9808
shlibpath_var=LD_LIBRARY_PATH
9809
shlibpath_overrides_runpath=yes
9810
hardcode_into_libs=yes
9811
# ldd complains unless libraries are executable
9812
postinstall_cmds='chmod +x $lib'
9817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9818
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9819
shlibpath_var=LD_LIBRARY_PATH
9820
shlibpath_overrides_runpath=yes
9821
if test "$with_gnu_ld" = yes; then
9829
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830
soname_spec='${libname}${release}${shared_ext}$major'
9831
shlibpath_var=LD_LIBRARY_PATH
9832
case $host_vendor in
9834
shlibpath_overrides_runpath=no
9836
export_dynamic_flag_spec='${wl}-Blargedynsym'
9837
runpath_var=LD_RUN_PATH
9845
shlibpath_overrides_runpath=no
9846
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9852
if test -d /usr/nec ;then
9854
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9855
soname_spec='$libname${shared_ext}.$major'
9856
shlibpath_var=LD_LIBRARY_PATH
9860
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9861
version_type=freebsd-elf
9864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9865
soname_spec='${libname}${release}${shared_ext}$major'
9866
shlibpath_var=LD_LIBRARY_PATH
9867
hardcode_into_libs=yes
9868
if test "$with_gnu_ld" = yes; then
9869
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9870
shlibpath_overrides_runpath=no
9872
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9873
shlibpath_overrides_runpath=yes
9876
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9880
sys_lib_dlsearch_path_spec='/usr/lib'
9885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886
soname_spec='${libname}${release}${shared_ext}$major'
9887
shlibpath_var=LD_LIBRARY_PATH
9894
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9895
$as_echo "$dynamic_linker" >&6; }
9896
test "$dynamic_linker" = no && can_build_shared=no
9898
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9899
$as_echo_n "(cached) " >&6
9901
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9904
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9905
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9906
$as_echo_n "(cached) " >&6
9908
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9911
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9913
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9914
if test "$GCC" = yes; then
9915
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9918
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9919
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9921
if test -n "$hardcode_libdir_flag_spec" || \
9922
test -n "$runpath_var" || \
9923
test "X$hardcode_automatic" = "Xyes" ; then
9925
# We can hardcode non-existant directories.
9926
if test "$hardcode_direct" != no &&
9927
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9928
# have to relink, otherwise we might link with an installed library
9929
# when we should be linking with a yet-to-be-installed one
9930
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9931
test "$hardcode_minus_L" != no; then
9932
# Linking always hardcodes the temporary library directory.
9933
hardcode_action=relink
9935
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9936
hardcode_action=immediate
9939
# We cannot hardcode anything, or else we can only hardcode existing
9941
hardcode_action=unsupported
9943
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9944
$as_echo "$hardcode_action" >&6; }
9946
if test "$hardcode_action" = relink; then
9947
# Fast installation is not supported
9948
enable_fast_install=no
9949
elif test "$shlibpath_overrides_runpath" = yes ||
9950
test "$enable_shared" = no; then
9951
# Fast installation is not necessary
9952
enable_fast_install=needless
9957
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9958
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9959
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9960
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9961
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9962
{ $as_echo "$as_me:$LINENO: result: yes" >&5
9963
$as_echo "yes" >&6; }
9965
# FIXME - insert some real tests, host_os isn't really good enough
9968
if test -n "$STRIP" ; then
9969
striplib="$STRIP -x"
9970
old_striplib="$STRIP -S"
9971
{ $as_echo "$as_me:$LINENO: result: yes" >&5
9972
$as_echo "yes" >&6; }
9974
{ $as_echo "$as_me:$LINENO: result: no" >&5
9975
$as_echo "no" >&6; }
9979
{ $as_echo "$as_me:$LINENO: result: no" >&5
9980
$as_echo "no" >&6; }
9985
if test "x$enable_dlopen" != xyes; then
9986
enable_dlopen=unknown
9987
enable_dlopen_self=unknown
9988
enable_dlopen_self_static=unknown
9995
lt_cv_dlopen="load_add_on"
9997
lt_cv_dlopen_self=yes
10001
lt_cv_dlopen="LoadLibrary"
10006
lt_cv_dlopen="dlopen"
10011
# if libdl is installed we need to link against it
10012
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10013
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10014
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10015
$as_echo_n "(cached) " >&6
10017
ac_check_lib_save_LIBS=$LIBS
10019
cat >conftest.$ac_ext <<_ACEOF
10022
cat confdefs.h >>conftest.$ac_ext
10023
cat >>conftest.$ac_ext <<_ACEOF
10024
/* end confdefs.h. */
10026
/* Override any GCC internal prototype to avoid an error.
10027
Use char because int might match the return type of a GCC
10028
builtin and then its argument prototype would still apply. */
10041
rm -f conftest.$ac_objext conftest$ac_exeext
10042
if { (ac_try="$ac_link"
10043
case "(($ac_try" in
10044
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045
*) ac_try_echo=$ac_try;;
10047
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10048
$as_echo "$ac_try_echo") >&5
10049
(eval "$ac_link") 2>conftest.er1
10051
grep -v '^ *+' conftest.er1 >conftest.err
10053
cat conftest.err >&5
10054
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055
(exit $ac_status); } && {
10056
test -z "$ac_c_werror_flag" ||
10057
test ! -s conftest.err
10058
} && test -s conftest$ac_exeext && {
10059
test "$cross_compiling" = yes ||
10060
$as_test_x conftest$ac_exeext
10062
ac_cv_lib_dl_dlopen=yes
10064
$as_echo "$as_me: failed program was:" >&5
10065
sed 's/^/| /' conftest.$ac_ext >&5
10067
ac_cv_lib_dl_dlopen=no
10070
rm -rf conftest.dSYM
10071
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10072
conftest$ac_exeext conftest.$ac_ext
10073
LIBS=$ac_check_lib_save_LIBS
10075
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10076
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10077
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10078
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10081
lt_cv_dlopen="dyld"
10083
lt_cv_dlopen_self=yes
10090
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10091
$as_echo_n "checking for shl_load... " >&6; }
10092
if test "${ac_cv_func_shl_load+set}" = set; then
10093
$as_echo_n "(cached) " >&6
10095
cat >conftest.$ac_ext <<_ACEOF
10098
cat confdefs.h >>conftest.$ac_ext
10099
cat >>conftest.$ac_ext <<_ACEOF
10100
/* end confdefs.h. */
10101
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10102
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10103
#define shl_load innocuous_shl_load
10105
/* System header to define __stub macros and hopefully few prototypes,
10106
which can conflict with char shl_load (); below.
10107
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10108
<limits.h> exists even on freestanding compilers. */
10111
# include <limits.h>
10113
# include <assert.h>
10118
/* Override any GCC internal prototype to avoid an error.
10119
Use char because int might match the return type of a GCC
10120
builtin and then its argument prototype would still apply. */
10125
/* The GNU C library defines this for functions which it implements
10126
to always fail with ENOSYS. Some functions are actually named
10127
something starting with __ and the normal name is an alias. */
10128
#if defined __stub_shl_load || defined __stub___shl_load
10135
return shl_load ();
10140
rm -f conftest.$ac_objext conftest$ac_exeext
10141
if { (ac_try="$ac_link"
10142
case "(($ac_try" in
10143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144
*) ac_try_echo=$ac_try;;
10146
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10147
$as_echo "$ac_try_echo") >&5
10148
(eval "$ac_link") 2>conftest.er1
10150
grep -v '^ *+' conftest.er1 >conftest.err
10152
cat conftest.err >&5
10153
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154
(exit $ac_status); } && {
10155
test -z "$ac_c_werror_flag" ||
10156
test ! -s conftest.err
10157
} && test -s conftest$ac_exeext && {
10158
test "$cross_compiling" = yes ||
10159
$as_test_x conftest$ac_exeext
10161
ac_cv_func_shl_load=yes
10163
$as_echo "$as_me: failed program was:" >&5
10164
sed 's/^/| /' conftest.$ac_ext >&5
10166
ac_cv_func_shl_load=no
10169
rm -rf conftest.dSYM
10170
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10171
conftest$ac_exeext conftest.$ac_ext
10173
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10174
$as_echo "$ac_cv_func_shl_load" >&6; }
10175
if test "x$ac_cv_func_shl_load" = x""yes; then
10176
lt_cv_dlopen="shl_load"
10178
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10179
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10180
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10181
$as_echo_n "(cached) " >&6
10183
ac_check_lib_save_LIBS=$LIBS
10185
cat >conftest.$ac_ext <<_ACEOF
10188
cat confdefs.h >>conftest.$ac_ext
10189
cat >>conftest.$ac_ext <<_ACEOF
10190
/* end confdefs.h. */
10192
/* Override any GCC internal prototype to avoid an error.
10193
Use char because int might match the return type of a GCC
10194
builtin and then its argument prototype would still apply. */
10202
return shl_load ();
10207
rm -f conftest.$ac_objext conftest$ac_exeext
10208
if { (ac_try="$ac_link"
10209
case "(($ac_try" in
10210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211
*) ac_try_echo=$ac_try;;
10213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10214
$as_echo "$ac_try_echo") >&5
10215
(eval "$ac_link") 2>conftest.er1
10217
grep -v '^ *+' conftest.er1 >conftest.err
10219
cat conftest.err >&5
10220
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221
(exit $ac_status); } && {
10222
test -z "$ac_c_werror_flag" ||
10223
test ! -s conftest.err
10224
} && test -s conftest$ac_exeext && {
10225
test "$cross_compiling" = yes ||
10226
$as_test_x conftest$ac_exeext
10228
ac_cv_lib_dld_shl_load=yes
10230
$as_echo "$as_me: failed program was:" >&5
10231
sed 's/^/| /' conftest.$ac_ext >&5
10233
ac_cv_lib_dld_shl_load=no
10236
rm -rf conftest.dSYM
10237
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10238
conftest$ac_exeext conftest.$ac_ext
10239
LIBS=$ac_check_lib_save_LIBS
10241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10242
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10243
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10244
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10246
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10247
$as_echo_n "checking for dlopen... " >&6; }
10248
if test "${ac_cv_func_dlopen+set}" = set; then
10249
$as_echo_n "(cached) " >&6
10251
cat >conftest.$ac_ext <<_ACEOF
10254
cat confdefs.h >>conftest.$ac_ext
10255
cat >>conftest.$ac_ext <<_ACEOF
10256
/* end confdefs.h. */
10257
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10258
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10259
#define dlopen innocuous_dlopen
10261
/* System header to define __stub macros and hopefully few prototypes,
10262
which can conflict with char dlopen (); below.
10263
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10264
<limits.h> exists even on freestanding compilers. */
10267
# include <limits.h>
10269
# include <assert.h>
10274
/* Override any GCC internal prototype to avoid an error.
10275
Use char because int might match the return type of a GCC
10276
builtin and then its argument prototype would still apply. */
10281
/* The GNU C library defines this for functions which it implements
10282
to always fail with ENOSYS. Some functions are actually named
10283
something starting with __ and the normal name is an alias. */
10284
#if defined __stub_dlopen || defined __stub___dlopen
10296
rm -f conftest.$ac_objext conftest$ac_exeext
10297
if { (ac_try="$ac_link"
10298
case "(($ac_try" in
10299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300
*) ac_try_echo=$ac_try;;
10302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303
$as_echo "$ac_try_echo") >&5
10304
(eval "$ac_link") 2>conftest.er1
10306
grep -v '^ *+' conftest.er1 >conftest.err
10308
cat conftest.err >&5
10309
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310
(exit $ac_status); } && {
10311
test -z "$ac_c_werror_flag" ||
10312
test ! -s conftest.err
10313
} && test -s conftest$ac_exeext && {
10314
test "$cross_compiling" = yes ||
10315
$as_test_x conftest$ac_exeext
10317
ac_cv_func_dlopen=yes
10319
$as_echo "$as_me: failed program was:" >&5
10320
sed 's/^/| /' conftest.$ac_ext >&5
10322
ac_cv_func_dlopen=no
10325
rm -rf conftest.dSYM
10326
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327
conftest$ac_exeext conftest.$ac_ext
10329
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10330
$as_echo "$ac_cv_func_dlopen" >&6; }
10331
if test "x$ac_cv_func_dlopen" = x""yes; then
10332
lt_cv_dlopen="dlopen"
10334
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10335
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10336
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10337
$as_echo_n "(cached) " >&6
10339
ac_check_lib_save_LIBS=$LIBS
10341
cat >conftest.$ac_ext <<_ACEOF
10344
cat confdefs.h >>conftest.$ac_ext
10345
cat >>conftest.$ac_ext <<_ACEOF
10346
/* end confdefs.h. */
10348
/* Override any GCC internal prototype to avoid an error.
10349
Use char because int might match the return type of a GCC
10350
builtin and then its argument prototype would still apply. */
10363
rm -f conftest.$ac_objext conftest$ac_exeext
10364
if { (ac_try="$ac_link"
10365
case "(($ac_try" in
10366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367
*) ac_try_echo=$ac_try;;
10369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10370
$as_echo "$ac_try_echo") >&5
10371
(eval "$ac_link") 2>conftest.er1
10373
grep -v '^ *+' conftest.er1 >conftest.err
10375
cat conftest.err >&5
10376
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377
(exit $ac_status); } && {
10378
test -z "$ac_c_werror_flag" ||
10379
test ! -s conftest.err
10380
} && test -s conftest$ac_exeext && {
10381
test "$cross_compiling" = yes ||
10382
$as_test_x conftest$ac_exeext
10384
ac_cv_lib_dl_dlopen=yes
10386
$as_echo "$as_me: failed program was:" >&5
10387
sed 's/^/| /' conftest.$ac_ext >&5
10389
ac_cv_lib_dl_dlopen=no
10392
rm -rf conftest.dSYM
10393
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10394
conftest$ac_exeext conftest.$ac_ext
10395
LIBS=$ac_check_lib_save_LIBS
10397
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10398
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10399
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10400
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10402
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10403
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10404
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10405
$as_echo_n "(cached) " >&6
10407
ac_check_lib_save_LIBS=$LIBS
10408
LIBS="-lsvld $LIBS"
10409
cat >conftest.$ac_ext <<_ACEOF
10412
cat confdefs.h >>conftest.$ac_ext
10413
cat >>conftest.$ac_ext <<_ACEOF
10414
/* end confdefs.h. */
10416
/* Override any GCC internal prototype to avoid an error.
10417
Use char because int might match the return type of a GCC
10418
builtin and then its argument prototype would still apply. */
10431
rm -f conftest.$ac_objext conftest$ac_exeext
10432
if { (ac_try="$ac_link"
10433
case "(($ac_try" in
10434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435
*) ac_try_echo=$ac_try;;
10437
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10438
$as_echo "$ac_try_echo") >&5
10439
(eval "$ac_link") 2>conftest.er1
10441
grep -v '^ *+' conftest.er1 >conftest.err
10443
cat conftest.err >&5
10444
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445
(exit $ac_status); } && {
10446
test -z "$ac_c_werror_flag" ||
10447
test ! -s conftest.err
10448
} && test -s conftest$ac_exeext && {
10449
test "$cross_compiling" = yes ||
10450
$as_test_x conftest$ac_exeext
10452
ac_cv_lib_svld_dlopen=yes
10454
$as_echo "$as_me: failed program was:" >&5
10455
sed 's/^/| /' conftest.$ac_ext >&5
10457
ac_cv_lib_svld_dlopen=no
10460
rm -rf conftest.dSYM
10461
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10462
conftest$ac_exeext conftest.$ac_ext
10463
LIBS=$ac_check_lib_save_LIBS
10465
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10466
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10467
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10468
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10470
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10471
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10472
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10473
$as_echo_n "(cached) " >&6
10475
ac_check_lib_save_LIBS=$LIBS
10477
cat >conftest.$ac_ext <<_ACEOF
10480
cat confdefs.h >>conftest.$ac_ext
10481
cat >>conftest.$ac_ext <<_ACEOF
10482
/* end confdefs.h. */
10484
/* Override any GCC internal prototype to avoid an error.
10485
Use char because int might match the return type of a GCC
10486
builtin and then its argument prototype would still apply. */
10494
return dld_link ();
10499
rm -f conftest.$ac_objext conftest$ac_exeext
10500
if { (ac_try="$ac_link"
10501
case "(($ac_try" in
10502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503
*) ac_try_echo=$ac_try;;
10505
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506
$as_echo "$ac_try_echo") >&5
10507
(eval "$ac_link") 2>conftest.er1
10509
grep -v '^ *+' conftest.er1 >conftest.err
10511
cat conftest.err >&5
10512
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513
(exit $ac_status); } && {
10514
test -z "$ac_c_werror_flag" ||
10515
test ! -s conftest.err
10516
} && test -s conftest$ac_exeext && {
10517
test "$cross_compiling" = yes ||
10518
$as_test_x conftest$ac_exeext
10520
ac_cv_lib_dld_dld_link=yes
10522
$as_echo "$as_me: failed program was:" >&5
10523
sed 's/^/| /' conftest.$ac_ext >&5
10525
ac_cv_lib_dld_dld_link=no
10528
rm -rf conftest.dSYM
10529
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10530
conftest$ac_exeext conftest.$ac_ext
10531
LIBS=$ac_check_lib_save_LIBS
10533
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10534
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10535
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10536
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10557
if test "x$lt_cv_dlopen" != xno; then
10563
case $lt_cv_dlopen in
10565
save_CPPFLAGS="$CPPFLAGS"
10566
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10568
save_LDFLAGS="$LDFLAGS"
10569
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10572
LIBS="$lt_cv_dlopen_libs $LIBS"
10574
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10575
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10576
if test "${lt_cv_dlopen_self+set}" = set; then
10577
$as_echo_n "(cached) " >&6
10579
if test "$cross_compiling" = yes; then :
10580
lt_cv_dlopen_self=cross
10582
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10583
lt_status=$lt_dlunknown
10584
cat > conftest.$ac_ext <<EOF
10585
#line 10585 "configure"
10586
#include "confdefs.h"
10595
# define LT_DLGLOBAL RTLD_GLOBAL
10598
# define LT_DLGLOBAL DL_GLOBAL
10600
# define LT_DLGLOBAL 0
10604
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10605
find out it does not work in some platform. */
10606
#ifndef LT_DLLAZY_OR_NOW
10608
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10611
# define LT_DLLAZY_OR_NOW DL_LAZY
10614
# define LT_DLLAZY_OR_NOW RTLD_NOW
10617
# define LT_DLLAZY_OR_NOW DL_NOW
10619
# define LT_DLLAZY_OR_NOW 0
10627
extern "C" void exit (int);
10630
void fnord() { int i=42;}
10633
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10634
int status = $lt_dlunknown;
10638
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10639
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10640
/* dlclose (self); */
10648
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649
(eval $ac_link) 2>&5
10651
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10653
(./conftest; exit; ) >&5 2>/dev/null
10655
case x$lt_status in
10656
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10657
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10658
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10661
# compilation failed
10662
lt_cv_dlopen_self=no
10669
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10670
$as_echo "$lt_cv_dlopen_self" >&6; }
10672
if test "x$lt_cv_dlopen_self" = xyes; then
10673
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10674
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10675
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10676
if test "${lt_cv_dlopen_self_static+set}" = set; then
10677
$as_echo_n "(cached) " >&6
10679
if test "$cross_compiling" = yes; then :
10680
lt_cv_dlopen_self_static=cross
10682
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10683
lt_status=$lt_dlunknown
10684
cat > conftest.$ac_ext <<EOF
10685
#line 10685 "configure"
10686
#include "confdefs.h"
10695
# define LT_DLGLOBAL RTLD_GLOBAL
10698
# define LT_DLGLOBAL DL_GLOBAL
10700
# define LT_DLGLOBAL 0
10704
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10705
find out it does not work in some platform. */
10706
#ifndef LT_DLLAZY_OR_NOW
10708
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10711
# define LT_DLLAZY_OR_NOW DL_LAZY
10714
# define LT_DLLAZY_OR_NOW RTLD_NOW
10717
# define LT_DLLAZY_OR_NOW DL_NOW
10719
# define LT_DLLAZY_OR_NOW 0
10727
extern "C" void exit (int);
10730
void fnord() { int i=42;}
10733
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10734
int status = $lt_dlunknown;
10738
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10739
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10740
/* dlclose (self); */
10748
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10749
(eval $ac_link) 2>&5
10751
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10753
(./conftest; exit; ) >&5 2>/dev/null
10755
case x$lt_status in
10756
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10757
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10758
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10761
# compilation failed
10762
lt_cv_dlopen_self_static=no
10769
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10770
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10773
CPPFLAGS="$save_CPPFLAGS"
10774
LDFLAGS="$save_LDFLAGS"
10779
case $lt_cv_dlopen_self in
10780
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10781
*) enable_dlopen_self=unknown ;;
10784
case $lt_cv_dlopen_self_static in
10785
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10786
*) enable_dlopen_self_static=unknown ;;
10791
# Report which library types will actually be built
10792
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10793
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10794
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10795
$as_echo "$can_build_shared" >&6; }
10797
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10798
$as_echo_n "checking whether to build shared libraries... " >&6; }
10799
test "$can_build_shared" = "no" && enable_shared=no
10801
# On AIX, shared libraries and static libraries use the same namespace, and
10802
# are all built from PIC.
10805
test "$enable_shared" = yes && enable_static=no
10806
if test -n "$RANLIB"; then
10807
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10808
postinstall_cmds='$RANLIB $lib'
10813
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10814
test "$enable_shared" = yes && enable_static=no
10818
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10819
$as_echo "$enable_shared" >&6; }
10821
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10822
$as_echo_n "checking whether to build static libraries... " >&6; }
10823
# Make sure either enable_shared or enable_static is yes.
10824
test "$enable_shared" = yes || enable_static=yes
10825
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10826
$as_echo "$enable_static" >&6; }
10828
# The else clause should only fire when bootstrapping the
10829
# libtool distribution, otherwise you forgot to ship ltmain.sh
10830
# with your package, and you will get complaints that there are
10831
# no rules to generate ltmain.sh.
10832
if test -f "$ltmain"; then
10833
# See if we are running on zsh, and set the options which allow our commands through
10834
# without removal of \ escapes.
10835
if test -n "${ZSH_VERSION+set}" ; then
10836
setopt NO_GLOB_SUBST
10838
# Now quote all the things that may contain metacharacters while being
10839
# careful not to overquote the AC_SUBSTed values. We take copies of the
10840
# variables and quote the copies for generation of the libtool script.
10841
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10843
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10844
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10845
deplibs_check_method reload_flag reload_cmds need_locks \
10846
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10847
lt_cv_sys_global_symbol_to_c_name_address \
10848
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10849
old_postinstall_cmds old_postuninstall_cmds \
10853
lt_prog_compiler_wl \
10854
lt_prog_compiler_pic \
10855
lt_prog_compiler_static \
10856
lt_prog_compiler_no_builtin_flag \
10857
export_dynamic_flag_spec \
10858
thread_safe_flag_spec \
10859
whole_archive_flag_spec \
10860
enable_shared_with_static_runtimes \
10862
old_archive_from_new_cmds \
10867
compiler_lib_search_path \
10868
compiler_lib_search_dirs \
10870
archive_expsym_cmds \
10872
postuninstall_cmds \
10873
old_archive_from_expsyms_cmds \
10874
allow_undefined_flag \
10875
no_undefined_flag \
10876
export_symbols_cmds \
10877
hardcode_libdir_flag_spec \
10878
hardcode_libdir_flag_spec_ld \
10879
hardcode_libdir_separator \
10880
hardcode_automatic \
10882
module_expsym_cmds \
10883
lt_cv_prog_compiler_c_o \
10886
include_expsyms; do
10889
old_archive_cmds | \
10890
old_archive_from_new_cmds | \
10892
archive_expsym_cmds | \
10894
module_expsym_cmds | \
10895
old_archive_from_expsyms_cmds | \
10896
export_symbols_cmds | \
10897
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10898
postinstall_cmds | postuninstall_cmds | \
10899
old_postinstall_cmds | old_postuninstall_cmds | \
10900
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10901
# Double-quote double-evaled strings.
10902
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10905
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10911
*'\$0 --fallback-echo"')
10912
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10916
cfgfile="${ofile}T"
10917
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10919
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
10920
$as_echo "$as_me: creating $ofile" >&6;}
10922
cat <<__EOF__ >> "$cfgfile"
10925
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10926
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10927
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10929
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10930
# Free Software Foundation, Inc.
10932
# This file is part of GNU Libtool:
10933
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10935
# This program is free software; you can redistribute it and/or modify
10936
# it under the terms of the GNU General Public License as published by
10937
# the Free Software Foundation; either version 2 of the License, or
10938
# (at your option) any later version.
10940
# This program is distributed in the hope that it will be useful, but
10941
# WITHOUT ANY WARRANTY; without even the implied warranty of
10942
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10943
# General Public License for more details.
10945
# You should have received a copy of the GNU General Public License
10946
# along with this program; if not, write to the Free Software
10947
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10949
# As a special exception to the GNU General Public License, if you
10950
# distribute this file as part of a program that contains a
10951
# configuration script generated by Autoconf, you may include it under
10952
# the same distribution terms that you use for the rest of that program.
10954
# A sed program that does not truncate output.
10957
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10958
Xsed="$SED -e 1s/^X//"
10960
# The HP-UX ksh and POSIX shell print the target directory to stdout
10961
# if CDPATH is set.
10962
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10964
# The names of the tagged configurations supported by this script.
10967
# ### BEGIN LIBTOOL CONFIG
10969
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10971
# Shell to use when invoking shell scripts.
10974
# Whether or not to build shared libraries.
10975
build_libtool_libs=$enable_shared
10977
# Whether or not to build static libraries.
10978
build_old_libs=$enable_static
10980
# Whether or not to add -lc for building shared libraries.
10981
build_libtool_need_lc=$archive_cmds_need_lc
10983
# Whether or not to disallow shared libs when runtime libs are static
10984
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10986
# Whether or not to optimize for fast installation.
10987
fast_install=$enable_fast_install
10990
host_alias=$host_alias
10994
# The build system.
10995
build_alias=$build_alias
10999
# An echo program that does not interpret backslashes.
11004
AR_FLAGS=$lt_AR_FLAGS
11009
# LTCC compiler flags.
11010
LTCFLAGS=$lt_LTCFLAGS
11012
# A language-specific compiler.
11015
# Is the compiler the GNU C compiler?
11021
# The linker used to build libraries.
11024
# Whether we need hard or soft links.
11027
# A BSD-compatible nm program.
11030
# A symbol stripping program
11033
# Used to examine libraries when file_magic_cmd begins "file"
11034
MAGIC_CMD=$MAGIC_CMD
11036
# Used on cygwin: DLL creation program.
11039
# Used on cygwin: object dumper.
11042
# Used on cygwin: assembler.
11045
# The name of the directory that contains temporary libtool files.
11048
# How to create reloadable object files.
11049
reload_flag=$lt_reload_flag
11050
reload_cmds=$lt_reload_cmds
11052
# How to pass a linker flag through the compiler.
11053
wl=$lt_lt_prog_compiler_wl
11055
# Object file suffix (normally "o").
11056
objext="$ac_objext"
11058
# Old archive suffix (normally "a").
11061
# Shared library suffix (normally ".so").
11062
shrext_cmds='$shrext_cmds'
11064
# Executable file suffix (normally "").
11067
# Additional compiler flags for building library objects.
11068
pic_flag=$lt_lt_prog_compiler_pic
11071
# What is the maximum length of a command?
11072
max_cmd_len=$lt_cv_sys_max_cmd_len
11074
# Does compiler simultaneously support -c and -o options?
11075
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11077
# Must we lock files when doing compilation?
11078
need_locks=$lt_need_locks
11080
# Do we need the lib prefix for modules?
11081
need_lib_prefix=$need_lib_prefix
11083
# Do we need a version for libraries?
11084
need_version=$need_version
11086
# Whether dlopen is supported.
11087
dlopen_support=$enable_dlopen
11089
# Whether dlopen of programs is supported.
11090
dlopen_self=$enable_dlopen_self
11092
# Whether dlopen of statically linked programs is supported.
11093
dlopen_self_static=$enable_dlopen_self_static
11095
# Compiler flag to prevent dynamic linking.
11096
link_static_flag=$lt_lt_prog_compiler_static
11098
# Compiler flag to turn off builtin functions.
11099
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11101
# Compiler flag to allow reflexive dlopens.
11102
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11104
# Compiler flag to generate shared objects directly from archives.
11105
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11107
# Compiler flag to generate thread-safe objects.
11108
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11110
# Library versioning type.
11111
version_type=$version_type
11113
# Format of library name prefix.
11114
libname_spec=$lt_libname_spec
11116
# List of archive names. First name is the real one, the rest are links.
11117
# The last name is the one that the linker finds with -lNAME.
11118
library_names_spec=$lt_library_names_spec
11120
# The coded name of the library, if different from the real name.
11121
soname_spec=$lt_soname_spec
11123
# Commands used to build and install an old-style archive.
11125
old_archive_cmds=$lt_old_archive_cmds
11126
old_postinstall_cmds=$lt_old_postinstall_cmds
11127
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11129
# Create an old-style archive from a shared archive.
11130
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11132
# Create a temporary old-style archive to link instead of a shared archive.
11133
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11135
# Commands used to build and install a shared archive.
11136
archive_cmds=$lt_archive_cmds
11137
archive_expsym_cmds=$lt_archive_expsym_cmds
11138
postinstall_cmds=$lt_postinstall_cmds
11139
postuninstall_cmds=$lt_postuninstall_cmds
11141
# Commands used to build a loadable module (assumed same as above if empty)
11142
module_cmds=$lt_module_cmds
11143
module_expsym_cmds=$lt_module_expsym_cmds
11145
# Commands to strip libraries.
11146
old_striplib=$lt_old_striplib
11147
striplib=$lt_striplib
11149
# Dependencies to place before the objects being linked to create a
11151
predep_objects=$lt_predep_objects
11153
# Dependencies to place after the objects being linked to create a
11155
postdep_objects=$lt_postdep_objects
11157
# Dependencies to place before the objects being linked to create a
11159
predeps=$lt_predeps
11161
# Dependencies to place after the objects being linked to create a
11163
postdeps=$lt_postdeps
11165
# The directories searched by this compiler when creating a shared
11167
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11169
# The library search path used internally by the compiler when linking
11170
# a shared library.
11171
compiler_lib_search_path=$lt_compiler_lib_search_path
11173
# Method to check whether dependent libraries are shared objects.
11174
deplibs_check_method=$lt_deplibs_check_method
11176
# Command to use when deplibs_check_method == file_magic.
11177
file_magic_cmd=$lt_file_magic_cmd
11179
# Flag that allows shared libraries with undefined symbols to be built.
11180
allow_undefined_flag=$lt_allow_undefined_flag
11182
# Flag that forces no undefined symbols.
11183
no_undefined_flag=$lt_no_undefined_flag
11185
# Commands used to finish a libtool library installation in a directory.
11186
finish_cmds=$lt_finish_cmds
11188
# Same as above, but a single script fragment to be evaled but not shown.
11189
finish_eval=$lt_finish_eval
11191
# Take the output of nm and produce a listing of raw symbols and C names.
11192
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11194
# Transform the output of nm in a proper C declaration
11195
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11197
# Transform the output of nm in a C name address pair
11198
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11200
# This is the shared library runtime path variable.
11201
runpath_var=$runpath_var
11203
# This is the shared library path variable.
11204
shlibpath_var=$shlibpath_var
11206
# Is shlibpath searched before the hard-coded library search path?
11207
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11209
# How to hardcode a shared library path into an executable.
11210
hardcode_action=$hardcode_action
11212
# Whether we should hardcode library paths into libraries.
11213
hardcode_into_libs=$hardcode_into_libs
11215
# Flag to hardcode \$libdir into a binary during linking.
11216
# This must work even if \$libdir does not exist.
11217
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11219
# If ld is used when linking, flag to hardcode \$libdir into
11220
# a binary during linking. This must work even if \$libdir does
11222
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11224
# Whether we need a single -rpath flag with a separated argument.
11225
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11227
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11228
# resulting binary.
11229
hardcode_direct=$hardcode_direct
11231
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11232
# resulting binary.
11233
hardcode_minus_L=$hardcode_minus_L
11235
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11236
# the resulting binary.
11237
hardcode_shlibpath_var=$hardcode_shlibpath_var
11239
# Set to yes if building a shared library automatically hardcodes DIR into the library
11240
# and all subsequent libraries and executables linked against it.
11241
hardcode_automatic=$hardcode_automatic
11243
# Variables whose values should be saved in libtool wrapper scripts and
11244
# restored at relink time.
11245
variables_saved_for_relink="$variables_saved_for_relink"
11247
# Whether libtool must link a program against all its dependency libraries.
11248
link_all_deplibs=$link_all_deplibs
11250
# Compile-time system search path for libraries
11251
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11253
# Run-time system search path for libraries
11254
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11256
# Fix the shell variable \$srcfile for the compiler.
11257
fix_srcfile_path=$lt_fix_srcfile_path
11259
# Set to yes if exported symbols are required.
11260
always_export_symbols=$always_export_symbols
11262
# The commands to list exported symbols.
11263
export_symbols_cmds=$lt_export_symbols_cmds
11265
# The commands to extract the exported symbol list from a shared archive.
11266
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11268
# Symbols that should not be listed in the preloaded symbols.
11269
exclude_expsyms=$lt_exclude_expsyms
11271
# Symbols that must always be exported.
11272
include_expsyms=$lt_include_expsyms
11274
# ### END LIBTOOL CONFIG
11281
cat <<\EOF >> "$cfgfile"
11283
# AIX sometimes has problems with the GCC collect2 program. For some
11284
# reason, if we set the COLLECT_NAMES environment variable, the problems
11285
# vanish in a puff of smoke.
11286
if test "X${COLLECT_NAMES+set}" != Xset; then
11288
export COLLECT_NAMES
11294
# We use sed instead of cat because bash on DJGPP gets confused if
11295
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11296
# text mode, it properly converts lines to CR/LF. This bash problem
11297
# is reportedly fixed, but why not run on old versions too?
11298
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11300
mv -f "$cfgfile" "$ofile" || \
11301
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11305
# If there is no Makefile yet, we rely on a make rule to execute
11306
# `config.status --recheck' to rerun these tests and create the
11307
# libtool script then.
11308
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11309
if test -f "$ltmain_in"; then
11310
test -f Makefile && make "$ltmain"
11316
ac_cpp='$CPP $CPPFLAGS'
11317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11324
# Check whether --with-tags was given.
11325
if test "${with_tags+set}" = set; then
11326
withval=$with_tags; tagnames="$withval"
11330
if test -f "$ltmain" && test -n "$tagnames"; then
11331
if test ! -f "${ofile}"; then
11332
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11333
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11336
if test -z "$LTCC"; then
11337
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11338
if test -z "$LTCC"; then
11339
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11340
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11342
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11343
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11346
if test -z "$LTCFLAGS"; then
11347
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11350
# Extract list of available tagged configurations in $ofile.
11351
# Note that this assumes the entire list is on one line.
11352
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11354
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11355
for tagname in $tagnames; do
11357
# Check whether tagname contains only valid characters
11358
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11360
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11361
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11362
{ (exit 1); exit 1; }; }
11366
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11368
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11369
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11370
{ (exit 1); exit 1; }; }
11373
# Update the list of available tags.
11374
if test -n "$tagname"; then
11375
echo appending configuration tag \"$tagname\" to $ofile
11379
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11380
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11381
(test "X$CXX" != "Xg++"))) ; then
11383
ac_cpp='$CXXCPP $CPPFLAGS'
11384
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11385
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11386
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11391
archive_cmds_need_lc_CXX=no
11392
allow_undefined_flag_CXX=
11393
always_export_symbols_CXX=no
11394
archive_expsym_cmds_CXX=
11395
export_dynamic_flag_spec_CXX=
11396
hardcode_direct_CXX=no
11397
hardcode_libdir_flag_spec_CXX=
11398
hardcode_libdir_flag_spec_ld_CXX=
11399
hardcode_libdir_separator_CXX=
11400
hardcode_minus_L_CXX=no
11401
hardcode_shlibpath_var_CXX=unsupported
11402
hardcode_automatic_CXX=no
11404
module_expsym_cmds_CXX=
11405
link_all_deplibs_CXX=unknown
11406
old_archive_cmds_CXX=$old_archive_cmds
11407
no_undefined_flag_CXX=
11408
whole_archive_flag_spec_CXX=
11409
enable_shared_with_static_runtimes_CXX=no
11411
# Dependencies to place before and after the object being linked:
11412
predep_objects_CXX=
11413
postdep_objects_CXX=
11416
compiler_lib_search_path_CXX=
11417
compiler_lib_search_dirs_CXX=
11419
# Source file extension for C++ test sources.
11422
# Object file extension for compiled C++ test sources.
11426
# Code to be used in simple compile tests
11427
lt_simple_compile_test_code="int some_variable = 0;"
11429
# Code to be used in simple link tests
11430
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11432
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11434
# If no C compiler was specified, use CC.
11437
# If no C compiler flags were specified, use CFLAGS.
11438
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11440
# Allow CC to be a program name with arguments.
11444
# save warnings/boilerplate of simple test code
11445
ac_outfile=conftest.$ac_objext
11446
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11447
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11448
_lt_compiler_boilerplate=`cat conftest.err`
11451
ac_outfile=conftest.$ac_objext
11452
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11453
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11454
_lt_linker_boilerplate=`cat conftest.err`
11458
# Allow CC to be a program name with arguments.
11463
lt_save_with_gnu_ld=$with_gnu_ld
11464
lt_save_path_LD=$lt_cv_path_LD
11465
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11466
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11468
$as_unset lt_cv_prog_gnu_ld
11470
if test -n "${lt_cv_path_LDCXX+set}"; then
11471
lt_cv_path_LD=$lt_cv_path_LDCXX
11473
$as_unset lt_cv_path_LD
11475
test -z "${LDCXX+set}" || LD=$LDCXX
11479
for cc_temp in $compiler""; do
11481
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11482
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11487
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11490
# We don't want -fno-exception wen compiling C++ code, so set the
11491
# no_builtin_flag separately
11492
if test "$GXX" = yes; then
11493
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11495
lt_prog_compiler_no_builtin_flag_CXX=
11498
if test "$GXX" = yes; then
11499
# Set up default GNU C++ configuration
11502
# Check whether --with-gnu-ld was given.
11503
if test "${with_gnu_ld+set}" = set; then
11504
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11510
if test "$GCC" = yes; then
11511
# Check if gcc -print-prog-name=ld gives a path.
11512
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11513
$as_echo_n "checking for ld used by $CC... " >&6; }
11516
# gcc leaves a trailing carriage return which upsets mingw
11517
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11519
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11522
# Accept absolute paths.
11524
re_direlt='/[^/][^/]*/\.\./'
11525
# Canonicalize the pathname of ld
11526
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11527
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11528
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11530
test -z "$LD" && LD="$ac_prog"
11533
# If it fails, then pretend we aren't using GCC.
11537
# If it is relative, then search for the first ld in PATH.
11538
with_gnu_ld=unknown
11541
elif test "$with_gnu_ld" = yes; then
11542
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11543
$as_echo_n "checking for GNU ld... " >&6; }
11545
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11546
$as_echo_n "checking for non-GNU ld... " >&6; }
11548
if test "${lt_cv_path_LD+set}" = set; then
11549
$as_echo_n "(cached) " >&6
11551
if test -z "$LD"; then
11552
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11553
for ac_dir in $PATH; do
11555
test -z "$ac_dir" && ac_dir=.
11556
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11557
lt_cv_path_LD="$ac_dir/$ac_prog"
11558
# Check to see if the program is GNU ld. I'd rather use --version,
11559
# but apparently some variants of GNU ld only accept -v.
11560
# Break only if it was the GNU/non-GNU ld that we prefer.
11561
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11562
*GNU* | *'with BFD'*)
11563
test "$with_gnu_ld" != no && break
11566
test "$with_gnu_ld" != yes && break
11573
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11577
LD="$lt_cv_path_LD"
11578
if test -n "$LD"; then
11579
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11580
$as_echo "$LD" >&6; }
11582
{ $as_echo "$as_me:$LINENO: result: no" >&5
11583
$as_echo "no" >&6; }
11585
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11586
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11587
{ (exit 1); exit 1; }; }
11588
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11589
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11590
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11591
$as_echo_n "(cached) " >&6
11593
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11594
case `$LD -v 2>&1 </dev/null` in
11595
*GNU* | *'with BFD'*)
11596
lt_cv_prog_gnu_ld=yes
11599
lt_cv_prog_gnu_ld=no
11603
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11604
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11605
with_gnu_ld=$lt_cv_prog_gnu_ld
11609
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11610
# archiving commands below assume that GNU ld is being used.
11611
if test "$with_gnu_ld" = yes; then
11612
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11613
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'
11615
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11616
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11618
# If archive_cmds runs LD, not CC, wlarc should be empty
11619
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11620
# investigate it a little bit more. (MM)
11623
# ancient GNU ld didn't support --whole-archive et. al.
11624
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11625
grep 'no-whole-archive' > /dev/null; then
11626
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11628
whole_archive_flag_spec_CXX=
11634
# A generic and very simple default shared library creation
11635
# command for GNU C++ for the case where it uses the native
11636
# linker, instead of GNU ld. If possible, this setting should
11637
# overridden to take advantage of the native linker features on
11638
# the platform it is being used on.
11639
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11642
# Commands to make compiler produce verbose output that lists
11643
# what "hidden" libraries, object files and flags are used when
11644
# linking a shared library.
11645
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11653
# PORTME: fill in a description of your system's C++ link characteristics
11654
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11655
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11659
# FIXME: insert proper C++ library support
11663
if test "$host_cpu" = ia64; then
11664
# On IA64, the linker does run time linking by default, so we don't
11665
# have to do anything special.
11666
aix_use_runtimelinking=no
11667
exp_sym_flag='-Bexport'
11670
aix_use_runtimelinking=no
11672
# Test if we are trying to use run time linking or normal
11673
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11674
# need to do runtime linking.
11675
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11676
for ld_flag in $LDFLAGS; do
11679
aix_use_runtimelinking=yes
11687
exp_sym_flag='-bexport'
11688
no_entry_flag='-bnoentry'
11691
# When large executables or shared objects are built, AIX ld can
11692
# have problems creating the table of contents. If linking a library
11693
# or program results in "error TOC overflow" add -mminimal-toc to
11694
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11695
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11697
archive_cmds_CXX=''
11698
hardcode_direct_CXX=yes
11699
hardcode_libdir_separator_CXX=':'
11700
link_all_deplibs_CXX=yes
11702
if test "$GXX" = yes; then
11703
case $host_os in aix4.[012]|aix4.[012].*)
11704
# We only want to do this on AIX 4.2 and lower, the check
11705
# below for broken collect2 doesn't work under 4.3+
11706
collect2name=`${CC} -print-prog-name=collect2`
11707
if test -f "$collect2name" && \
11708
strings "$collect2name" | grep resolve_lib_name >/dev/null
11710
# We have reworked collect2
11713
# We have old collect2
11714
hardcode_direct_CXX=unsupported
11715
# It fails to find uninstalled libraries when the uninstalled
11716
# path is not listed in the libpath. Setting hardcode_minus_L
11717
# to unsupported forces relinking
11718
hardcode_minus_L_CXX=yes
11719
hardcode_libdir_flag_spec_CXX='-L$libdir'
11720
hardcode_libdir_separator_CXX=
11724
shared_flag='-shared'
11725
if test "$aix_use_runtimelinking" = yes; then
11726
shared_flag="$shared_flag "'${wl}-G'
11730
if test "$host_cpu" = ia64; then
11731
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11732
# chokes on -Wl,-G. The following line is correct:
11735
if test "$aix_use_runtimelinking" = yes; then
11736
shared_flag='${wl}-G'
11738
shared_flag='${wl}-bM:SRE'
11743
# It seems that -bexpall does not export symbols beginning with
11744
# underscore (_), so it is better to generate a list of symbols to export.
11745
always_export_symbols_CXX=yes
11746
if test "$aix_use_runtimelinking" = yes; then
11747
# Warning - without using the other runtime loading flags (-brtl),
11748
# -berok will link without error, but may produce a broken library.
11749
allow_undefined_flag_CXX='-berok'
11750
# Determine the default libpath from the value encoded in an empty executable.
11751
cat >conftest.$ac_ext <<_ACEOF
11754
cat confdefs.h >>conftest.$ac_ext
11755
cat >>conftest.$ac_ext <<_ACEOF
11756
/* end confdefs.h. */
11766
rm -f conftest.$ac_objext conftest$ac_exeext
11767
if { (ac_try="$ac_link"
11768
case "(($ac_try" in
11769
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770
*) ac_try_echo=$ac_try;;
11772
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11773
$as_echo "$ac_try_echo") >&5
11774
(eval "$ac_link") 2>conftest.er1
11776
grep -v '^ *+' conftest.er1 >conftest.err
11778
cat conftest.err >&5
11779
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780
(exit $ac_status); } && {
11781
test -z "$ac_cxx_werror_flag" ||
11782
test ! -s conftest.err
11783
} && test -s conftest$ac_exeext && {
11784
test "$cross_compiling" = yes ||
11785
$as_test_x conftest$ac_exeext
11788
lt_aix_libpath_sed='
11789
/Import File Strings/,/^$/ {
11795
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11796
# Check for a 64-bit object if we didn't find anything.
11797
if test -z "$aix_libpath"; then
11798
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11801
$as_echo "$as_me: failed program was:" >&5
11802
sed 's/^/| /' conftest.$ac_ext >&5
11807
rm -rf conftest.dSYM
11808
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11809
conftest$ac_exeext conftest.$ac_ext
11810
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11812
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11814
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"
11816
if test "$host_cpu" = ia64; then
11817
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11818
allow_undefined_flag_CXX="-z nodefs"
11819
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"
11821
# Determine the default libpath from the value encoded in an empty executable.
11822
cat >conftest.$ac_ext <<_ACEOF
11825
cat confdefs.h >>conftest.$ac_ext
11826
cat >>conftest.$ac_ext <<_ACEOF
11827
/* end confdefs.h. */
11837
rm -f conftest.$ac_objext conftest$ac_exeext
11838
if { (ac_try="$ac_link"
11839
case "(($ac_try" in
11840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841
*) ac_try_echo=$ac_try;;
11843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844
$as_echo "$ac_try_echo") >&5
11845
(eval "$ac_link") 2>conftest.er1
11847
grep -v '^ *+' conftest.er1 >conftest.err
11849
cat conftest.err >&5
11850
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851
(exit $ac_status); } && {
11852
test -z "$ac_cxx_werror_flag" ||
11853
test ! -s conftest.err
11854
} && test -s conftest$ac_exeext && {
11855
test "$cross_compiling" = yes ||
11856
$as_test_x conftest$ac_exeext
11859
lt_aix_libpath_sed='
11860
/Import File Strings/,/^$/ {
11866
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11867
# Check for a 64-bit object if we didn't find anything.
11868
if test -z "$aix_libpath"; then
11869
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11872
$as_echo "$as_me: failed program was:" >&5
11873
sed 's/^/| /' conftest.$ac_ext >&5
11878
rm -rf conftest.dSYM
11879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11880
conftest$ac_exeext conftest.$ac_ext
11881
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11883
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11884
# Warning - without using the other run time loading flags,
11885
# -berok will link without error, but may produce a broken library.
11886
no_undefined_flag_CXX=' ${wl}-bernotok'
11887
allow_undefined_flag_CXX=' ${wl}-berok'
11888
# Exported symbols can be pulled into shared objects from archives
11889
whole_archive_flag_spec_CXX='$convenience'
11890
archive_cmds_need_lc_CXX=yes
11891
# This is similar to how AIX traditionally builds its shared libraries.
11892
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'
11898
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11899
allow_undefined_flag_CXX=unsupported
11900
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11901
# support --undefined. This deserves some investigation. FIXME
11902
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11909
case $cc_basename in
11911
# FIXME: insert proper C++ library support
11917
cygwin* | mingw* | pw32*)
11918
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11919
# as there is no search path for DLLs.
11920
hardcode_libdir_flag_spec_CXX='-L$libdir'
11921
allow_undefined_flag_CXX=unsupported
11922
always_export_symbols_CXX=no
11923
enable_shared_with_static_runtimes_CXX=yes
11925
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11926
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'
11927
# If the export-symbols file already is a .def file (1st line
11928
# is EXPORTS), use it as is; otherwise, prepend...
11929
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11930
cp $export_symbols $output_objdir/$soname.def;
11932
echo EXPORTS > $output_objdir/$soname.def;
11933
cat $export_symbols >> $output_objdir/$soname.def;
11935
$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'
11940
darwin* | rhapsody*)
11941
archive_cmds_need_lc_CXX=no
11942
hardcode_direct_CXX=no
11943
hardcode_automatic_CXX=yes
11944
hardcode_shlibpath_var_CXX=unsupported
11945
whole_archive_flag_spec_CXX=''
11946
link_all_deplibs_CXX=yes
11947
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11948
if test "$GXX" = yes ; then
11949
output_verbose_link_cmd='echo'
11950
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11951
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11952
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11953
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11954
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11955
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${_lt_dsymutil}"
11956
archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11959
case $cc_basename in
11961
output_verbose_link_cmd='echo'
11962
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'
11963
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11964
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11965
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}'
11966
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}'
11976
case $cc_basename in
11978
# FIXME: insert proper C++ library support
11982
# Green Hills C++ Compiler
11983
# FIXME: insert proper C++ library support
11987
# FIXME: insert proper C++ library support
11993
# C++ shared libraries reported to be fairly broken before switch to ELF
11997
archive_cmds_need_lc_CXX=no
11999
freebsd* | dragonfly*)
12000
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12007
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12008
hardcode_libdir_separator_CXX=:
12009
export_dynamic_flag_spec_CXX='${wl}-E'
12010
hardcode_direct_CXX=yes
12011
hardcode_minus_L_CXX=yes # Not in the search PATH,
12012
# but as the default
12013
# location of the library.
12015
case $cc_basename in
12017
# FIXME: insert proper C++ library support
12021
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'
12022
# Commands to make compiler produce verbose output that lists
12023
# what "hidden" libraries, object files and flags are used when
12024
# linking a shared library.
12026
# There doesn't appear to be a way to prevent this compiler from
12027
# explicitly linking system object files so we need to strip them
12028
# from the output so that they don't get included in the library
12030
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'
12033
if test "$GXX" = yes; then
12034
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'
12036
# FIXME: insert proper C++ library support
12043
if test $with_gnu_ld = no; then
12044
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12045
hardcode_libdir_separator_CXX=:
12050
export_dynamic_flag_spec_CXX='${wl}-E'
12056
hardcode_direct_CXX=no
12057
hardcode_shlibpath_var_CXX=no
12060
hardcode_direct_CXX=yes
12061
hardcode_minus_L_CXX=yes # Not in the search PATH,
12062
# but as the default
12063
# location of the library.
12067
case $cc_basename in
12069
# FIXME: insert proper C++ library support
12075
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12078
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12081
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12084
# Commands to make compiler produce verbose output that lists
12085
# what "hidden" libraries, object files and flags are used when
12086
# linking a shared library.
12088
# There doesn't appear to be a way to prevent this compiler from
12089
# explicitly linking system object files so we need to strip them
12090
# from the output so that they don't get included in the library
12092
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'
12095
if test "$GXX" = yes; then
12096
if test $with_gnu_ld = no; then
12099
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12102
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12105
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'
12110
# FIXME: insert proper C++ library support
12117
hardcode_direct_CXX=no
12118
hardcode_shlibpath_var_CXX=no
12119
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12120
export_dynamic_flag_spec_CXX='${wl}-E'
12121
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12122
# Instead, shared libraries are loaded at an image base (0x10000000 by
12123
# default) and relocated if they conflict, which is a slow very memory
12124
# consuming and fragmenting process. To avoid this, we pick a random,
12125
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12126
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12127
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'
12128
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'
12131
case $cc_basename in
12134
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'
12136
# Archives containing C++ object files must be created using
12137
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12138
# necessary to make sure instantiated templates are included
12140
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12143
if test "$GXX" = yes; then
12144
if test "$with_gnu_ld" = no; then
12145
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'
12147
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'
12150
link_all_deplibs_CXX=yes
12153
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12154
hardcode_libdir_separator_CXX=:
12156
linux* | k*bsd*-gnu)
12157
case $cc_basename in
12159
# Kuck and Associates, Inc. (KAI) C++ Compiler
12161
# KCC will only create a shared library if the output file
12162
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12163
# to its proper name (with version) after linking.
12164
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'
12165
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'
12166
# Commands to make compiler produce verbose output that lists
12167
# what "hidden" libraries, object files and flags are used when
12168
# linking a shared library.
12170
# There doesn't appear to be a way to prevent this compiler from
12171
# explicitly linking system object files so we need to strip them
12172
# from the output so that they don't get included in the library
12174
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'
12176
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12177
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12179
# Archives containing C++ object files must be created using
12180
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12181
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12186
# version 8.0 and above of icpc choke on multiply defined symbols
12187
# if we add $predep_objects and $postdep_objects, however 7.1 and
12188
# earlier do not add the objects themselves.
12189
case `$CC -V 2>&1` in
12191
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192
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'
12194
*) # Version 8.0 or newer
12197
ia64*) tmp_idyn=' -i_dynamic';;
12199
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12200
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'
12203
archive_cmds_need_lc_CXX=no
12204
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12205
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12206
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12209
# Portland Group C++ compiler
12210
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12211
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'
12213
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12214
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12215
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'
12219
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12220
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'
12222
runpath_var=LD_RUN_PATH
12223
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12224
hardcode_libdir_separator_CXX=:
12226
# Commands to make compiler produce verbose output that lists
12227
# what "hidden" libraries, object files and flags are used when
12228
# linking a shared library.
12230
# There doesn't appear to be a way to prevent this compiler from
12231
# explicitly linking system object files so we need to strip them
12232
# from the output so that they don't get included in the library
12234
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'
12237
case `$CC -V 2>&1 | sed 5q` in
12240
no_undefined_flag_CXX=' -zdefs'
12241
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12242
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'
12243
hardcode_libdir_flag_spec_CXX='-R$libdir'
12244
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'
12246
# Not sure whether something based on
12247
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12249
output_verbose_link_cmd='echo'
12251
# Archives containing C++ object files must be created using
12252
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12253
# necessary to make sure instantiated templates are included
12255
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12262
# FIXME: insert proper C++ library support
12266
# FIXME: insert proper C++ library support
12270
case $cc_basename in
12272
# FIXME: insert proper C++ library support
12276
# FIXME: insert proper C++ library support
12282
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12283
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12285
hardcode_libdir_flag_spec_CXX='-R$libdir'
12286
hardcode_direct_CXX=yes
12287
hardcode_shlibpath_var_CXX=no
12289
# Workaround some broken pre-1.5 toolchains
12290
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12293
# C++ shared libraries are fairly broken
12297
if test -f /usr/libexec/ld.so; then
12298
hardcode_direct_CXX=yes
12299
hardcode_shlibpath_var_CXX=no
12300
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12301
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12302
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12303
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12304
export_dynamic_flag_spec_CXX='${wl}-E'
12305
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12307
output_verbose_link_cmd='echo'
12313
case $cc_basename in
12315
# Kuck and Associates, Inc. (KAI) C++ Compiler
12317
# KCC will only create a shared library if the output file
12318
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12319
# to its proper name (with version) after linking.
12320
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'
12322
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12323
hardcode_libdir_separator_CXX=:
12325
# Archives containing C++ object files must be created using
12326
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12327
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12331
# Rational C++ 2.4.1
12332
# FIXME: insert proper C++ library support
12336
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12337
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'
12339
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12340
hardcode_libdir_separator_CXX=:
12342
# Commands to make compiler produce verbose output that lists
12343
# what "hidden" libraries, object files and flags are used when
12344
# linking a shared library.
12346
# There doesn't appear to be a way to prevent this compiler from
12347
# explicitly linking system object files so we need to strip them
12348
# from the output so that they don't get included in the library
12350
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'
12353
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12354
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12355
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'
12357
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12358
hardcode_libdir_separator_CXX=:
12360
# Commands to make compiler produce verbose output that lists
12361
# what "hidden" libraries, object files and flags are used when
12362
# linking a shared library.
12363
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12366
# FIXME: insert proper C++ library support
12373
case $cc_basename in
12375
# Kuck and Associates, Inc. (KAI) C++ Compiler
12377
# KCC will only create a shared library if the output file
12378
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12379
# to its proper name (with version) after linking.
12380
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'
12382
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12383
hardcode_libdir_separator_CXX=:
12385
# Archives containing C++ object files must be created using
12386
# the KAI C++ compiler.
12387
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12390
# Rational C++ 2.4.1
12391
# FIXME: insert proper C++ library support
12395
allow_undefined_flag_CXX=' -expect_unresolved \*'
12396
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'
12397
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12398
echo "-hidden">> $lib.exp~
12399
$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~
12402
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12403
hardcode_libdir_separator_CXX=:
12405
# Commands to make compiler produce verbose output that lists
12406
# what "hidden" libraries, object files and flags are used when
12407
# linking a shared library.
12409
# There doesn't appear to be a way to prevent this compiler from
12410
# explicitly linking system object files so we need to strip them
12411
# from the output so that they don't get included in the library
12413
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'
12416
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12417
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12418
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'
12420
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12421
hardcode_libdir_separator_CXX=:
12423
# Commands to make compiler produce verbose output that lists
12424
# what "hidden" libraries, object files and flags are used when
12425
# linking a shared library.
12426
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12429
# FIXME: insert proper C++ library support
12436
# FIXME: insert proper C++ library support
12440
case $cc_basename in
12443
# FIXME: insert proper C++ library support
12448
# FIXME: insert proper C++ library support
12452
# FIXME: insert proper C++ library support
12458
case $cc_basename in
12460
# Sun C++ 4.2, 5.x and Centerline C++
12461
archive_cmds_need_lc_CXX=yes
12462
no_undefined_flag_CXX=' -zdefs'
12463
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12464
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12465
$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'
12467
hardcode_libdir_flag_spec_CXX='-R$libdir'
12468
hardcode_shlibpath_var_CXX=no
12470
solaris2.[0-5] | solaris2.[0-5].*) ;;
12472
# The compiler driver will combine and reorder linker options,
12473
# but understands `-z linker_flag'.
12474
# Supported since Solaris 2.6 (maybe 2.5.1?)
12475
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12478
link_all_deplibs_CXX=yes
12480
output_verbose_link_cmd='echo'
12482
# Archives containing C++ object files must be created using
12483
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12484
# necessary to make sure instantiated templates are included
12486
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12489
# Green Hills C++ Compiler
12490
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12492
# The C++ compiler must be used to create the archive.
12493
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12496
# GNU C++ compiler with Solaris linker
12497
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12498
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12499
if $CC --version | grep -v '^2\.7' > /dev/null; then
12500
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12501
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12502
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12504
# Commands to make compiler produce verbose output that lists
12505
# what "hidden" libraries, object files and flags are used when
12506
# linking a shared library.
12507
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12509
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12511
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12512
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12513
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12515
# Commands to make compiler produce verbose output that lists
12516
# what "hidden" libraries, object files and flags are used when
12517
# linking a shared library.
12518
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12521
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12523
solaris2.[0-5] | solaris2.[0-5].*) ;;
12525
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12532
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12533
no_undefined_flag_CXX='${wl}-z,text'
12534
archive_cmds_need_lc_CXX=no
12535
hardcode_shlibpath_var_CXX=no
12536
runpath_var='LD_RUN_PATH'
12538
case $cc_basename in
12540
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12541
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12544
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12545
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12549
sysv5* | sco3.2v5* | sco5v6*)
12550
# Note: We can NOT use -z defs as we might desire, because we do not
12551
# link with -lc, and that would cause any symbols used from libc to
12552
# always be unresolved, which means just about no library would
12553
# ever link correctly. If we're not using GNU ld we use -z text
12554
# though, which does catch some bad symbols but isn't as heavy-handed
12556
# For security reasons, it is highly recommended that you always
12557
# use absolute paths for naming shared libraries, and exclude the
12558
# DT_RUNPATH tag from executables and libraries. But doing so
12559
# requires that you compile everything twice, which is a pain.
12560
# So that behaviour is only enabled if SCOABSPATH is set to a
12561
# non-empty value in the environment. Most likely only useful for
12562
# creating official distributions of packages.
12563
# This is a hack until libtool officially supports absolute path
12564
# names for shared libraries.
12565
no_undefined_flag_CXX='${wl}-z,text'
12566
allow_undefined_flag_CXX='${wl}-z,nodefs'
12567
archive_cmds_need_lc_CXX=no
12568
hardcode_shlibpath_var_CXX=no
12569
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12570
hardcode_libdir_separator_CXX=':'
12571
link_all_deplibs_CXX=yes
12572
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12573
runpath_var='LD_RUN_PATH'
12575
case $cc_basename in
12577
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12578
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12581
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12582
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12587
case $cc_basename in
12589
# NonStop-UX NCC 3.20
12590
# FIXME: insert proper C++ library support
12594
# FIXME: insert proper C++ library support
12600
# FIXME: insert proper C++ library support
12604
# FIXME: insert proper C++ library support
12608
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12609
$as_echo "$ld_shlibs_CXX" >&6; }
12610
test "$ld_shlibs_CXX" = no && can_build_shared=no
12615
cat > conftest.$ac_ext <<EOF
12619
Foo (void) { a = 0; }
12625
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626
(eval $ac_compile) 2>&5
12628
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629
(exit $ac_status); }; then
12630
# Parse the compiler output and extract the necessary
12631
# objects, libraries and library flags.
12633
# Sentinel used to keep track of whether or not we are before
12634
# the conftest object file.
12635
pre_test_object_deps_done=no
12637
# The `*' in the case matches for architectures that use `case' in
12638
# $output_verbose_cmd can trigger glob expansion during the loop
12639
# eval without this substitution.
12640
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12642
for p in `eval $output_verbose_link_cmd`; do
12646
# Some compilers place space between "-{L,R}" and the path.
12647
# Remove the space.
12648
if test $p = "-L" \
12649
|| test $p = "-R"; then
12656
if test "$pre_test_object_deps_done" = no; then
12659
# Internal compiler library paths should come after those
12660
# provided the user. The postdeps already come after the
12661
# user supplied libs so there is no need to process them.
12662
if test -z "$compiler_lib_search_path_CXX"; then
12663
compiler_lib_search_path_CXX="${prev}${p}"
12665
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12668
# The "-l" case would never come before the object being
12669
# linked, so don't bother handling this case.
12672
if test -z "$postdeps_CXX"; then
12673
postdeps_CXX="${prev}${p}"
12675
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12681
# This assumes that the test object file only shows up
12682
# once in the compiler output.
12683
if test "$p" = "conftest.$objext"; then
12684
pre_test_object_deps_done=yes
12688
if test "$pre_test_object_deps_done" = no; then
12689
if test -z "$predep_objects_CXX"; then
12690
predep_objects_CXX="$p"
12692
predep_objects_CXX="$predep_objects_CXX $p"
12695
if test -z "$postdep_objects_CXX"; then
12696
postdep_objects_CXX="$p"
12698
postdep_objects_CXX="$postdep_objects_CXX $p"
12703
*) ;; # Ignore the rest.
12711
echo "libtool.m4: error: problem compiling CXX test program"
12714
$rm -f confest.$objext
12716
compiler_lib_search_dirs_CXX=
12717
if test -n "$compiler_lib_search_path_CXX"; then
12718
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12721
# PORTME: override above test on systems where it is broken
12724
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12725
# hack all around it, let's just trust "g++" to DTRT.
12726
predep_objects_CXX=
12727
postdep_objects_CXX=
12732
case `$CC -V 2>&1 | sed 5q` in
12736
# The more standards-conforming stlport4 library is
12737
# incompatible with the Cstd library. Avoid specifying
12738
# it if it's in CXXFLAGS. Ignore libCrun as
12739
# -library=stlport4 depends on it.
12740
case " $CXX $CXXFLAGS " in
12741
*" -library=stlport4 "*)
12742
solaris_use_stlport4=yes
12745
if test "$solaris_use_stlport4" != yes; then
12746
postdeps_CXX='-library=Cstd -library=Crun'
12753
case $cc_basename in
12755
# The more standards-conforming stlport4 library is
12756
# incompatible with the Cstd library. Avoid specifying
12757
# it if it's in CXXFLAGS. Ignore libCrun as
12758
# -library=stlport4 depends on it.
12759
case " $CXX $CXXFLAGS " in
12760
*" -library=stlport4 "*)
12761
solaris_use_stlport4=yes
12765
# Adding this requires a known-good setup of shared libraries for
12766
# Sun compiler versions before 5.6, else PIC objects from an old
12767
# archive will be linked into the output, leading to subtle bugs.
12768
if test "$solaris_use_stlport4" != yes; then
12769
postdeps_CXX='-library=Cstd -library=Crun'
12776
case " $postdeps_CXX " in
12777
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12780
lt_prog_compiler_wl_CXX=
12781
lt_prog_compiler_pic_CXX=
12782
lt_prog_compiler_static_CXX=
12784
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12785
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12787
# C++ specific cases for pic, static, wl, etc.
12788
if test "$GXX" = yes; then
12789
lt_prog_compiler_wl_CXX='-Wl,'
12790
lt_prog_compiler_static_CXX='-static'
12794
# All AIX code is PIC.
12795
if test "$host_cpu" = ia64; then
12796
# AIX 5 now supports IA64 processor
12797
lt_prog_compiler_static_CXX='-Bstatic'
12801
# FIXME: we need at least 68020 code to build shared libraries, but
12802
# adding the `-m68020' flag to GCC prevents building anything better,
12804
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12806
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12807
# PIC is the default for these OSes.
12809
mingw* | cygwin* | os2* | pw32*)
12810
# This hack is so that the source file can tell whether it is being
12811
# built for inclusion in a dll (and should export symbols for example).
12812
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12813
# (--disable-auto-import) libraries
12814
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12816
darwin* | rhapsody*)
12817
# PIC is the default on this platform
12818
# Common symbols not allowed in MH_DYLIB files
12819
lt_prog_compiler_pic_CXX='-fno-common'
12822
# DJGPP does not support shared libraries at all
12823
lt_prog_compiler_pic_CXX=
12826
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12827
# Instead, we relocate shared libraries at runtime.
12830
if test -d /usr/nec; then
12831
lt_prog_compiler_pic_CXX=-Kconform_pic
12835
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12836
# not for PA HP-UX.
12841
lt_prog_compiler_pic_CXX='-fPIC'
12846
lt_prog_compiler_pic_CXX='-fPIC'
12852
# All AIX code is PIC.
12853
if test "$host_cpu" = ia64; then
12854
# AIX 5 now supports IA64 processor
12855
lt_prog_compiler_static_CXX='-Bstatic'
12857
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12861
case $cc_basename in
12863
# Green Hills C++ Compiler
12864
# _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"
12869
# PIC is the default on this platform
12870
# Common symbols not allowed in MH_DYLIB files
12871
case $cc_basename in
12873
lt_prog_compiler_pic_CXX='-qnocommon'
12874
lt_prog_compiler_wl_CXX='-Wl,'
12879
case $cc_basename in
12881
lt_prog_compiler_pic_CXX='-KPIC'
12884
# Green Hills C++ Compiler
12885
lt_prog_compiler_pic_CXX='-pic'
12891
freebsd* | dragonfly*)
12892
# FreeBSD uses GNU C++
12894
hpux9* | hpux10* | hpux11*)
12895
case $cc_basename in
12897
lt_prog_compiler_wl_CXX='-Wl,'
12898
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12899
if test "$host_cpu" != ia64; then
12900
lt_prog_compiler_pic_CXX='+Z'
12904
lt_prog_compiler_wl_CXX='-Wl,'
12905
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12911
lt_prog_compiler_pic_CXX='+Z'
12920
# This is c89, which is MS Visual C++ (no shared libs)
12921
# Anyone wants to do a port?
12923
irix5* | irix6* | nonstopux*)
12924
case $cc_basename in
12926
lt_prog_compiler_wl_CXX='-Wl,'
12927
lt_prog_compiler_static_CXX='-non_shared'
12928
# CC pic flag -KPIC is the default.
12934
linux* | k*bsd*-gnu)
12935
case $cc_basename in
12938
lt_prog_compiler_wl_CXX='--backend -Wl,'
12939
lt_prog_compiler_pic_CXX='-fPIC'
12943
lt_prog_compiler_wl_CXX='-Wl,'
12944
lt_prog_compiler_pic_CXX='-KPIC'
12945
lt_prog_compiler_static_CXX='-static'
12948
# Portland Group C++ compiler.
12949
lt_prog_compiler_wl_CXX='-Wl,'
12950
lt_prog_compiler_pic_CXX='-fpic'
12951
lt_prog_compiler_static_CXX='-Bstatic'
12955
# Make sure the PIC flag is empty. It appears that all Alpha
12956
# Linux and Compaq Tru64 Unix objects are PIC.
12957
lt_prog_compiler_pic_CXX=
12958
lt_prog_compiler_static_CXX='-non_shared'
12961
case `$CC -V 2>&1 | sed 5q` in
12964
lt_prog_compiler_pic_CXX='-KPIC'
12965
lt_prog_compiler_static_CXX='-Bstatic'
12966
lt_prog_compiler_wl_CXX='-Qoption ld '
12977
case $cc_basename in
12979
lt_prog_compiler_pic_CXX='-W c,exportall'
12987
osf3* | osf4* | osf5*)
12988
case $cc_basename in
12990
lt_prog_compiler_wl_CXX='--backend -Wl,'
12993
# Rational C++ 2.4.1
12994
lt_prog_compiler_pic_CXX='-pic'
12997
# Digital/Compaq C++
12998
lt_prog_compiler_wl_CXX='-Wl,'
12999
# Make sure the PIC flag is empty. It appears that all Alpha
13000
# Linux and Compaq Tru64 Unix objects are PIC.
13001
lt_prog_compiler_pic_CXX=
13002
lt_prog_compiler_static_CXX='-non_shared'
13011
case $cc_basename in
13013
# Sun C++ 4.2, 5.x and Centerline C++
13014
lt_prog_compiler_pic_CXX='-KPIC'
13015
lt_prog_compiler_static_CXX='-Bstatic'
13016
lt_prog_compiler_wl_CXX='-Qoption ld '
13019
# Green Hills C++ Compiler
13020
lt_prog_compiler_pic_CXX='-PIC'
13027
case $cc_basename in
13030
lt_prog_compiler_pic_CXX='-pic'
13031
lt_prog_compiler_static_CXX='-Bstatic'
13035
lt_prog_compiler_pic_CXX='-pic'
13042
case $cc_basename in
13044
# NonStop-UX NCC 3.20
13045
lt_prog_compiler_pic_CXX='-KPIC'
13051
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13052
case $cc_basename in
13054
lt_prog_compiler_wl_CXX='-Wl,'
13055
lt_prog_compiler_pic_CXX='-KPIC'
13056
lt_prog_compiler_static_CXX='-Bstatic'
13063
lt_prog_compiler_can_build_shared_CXX=no
13068
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13069
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13072
# Check to make sure the PIC flag actually works.
13074
if test -n "$lt_prog_compiler_pic_CXX"; then
13076
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13077
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13078
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13079
$as_echo_n "(cached) " >&6
13081
lt_cv_prog_compiler_pic_works_CXX=no
13082
ac_outfile=conftest.$ac_objext
13083
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13084
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13085
# Insert the option either (1) after the last *FLAGS variable, or
13086
# (2) before a word containing "conftest.", or (3) at the end.
13087
# Note that $ac_compile itself does not contain backslashes and begins
13088
# with a dollar sign (not a hyphen), so the echo should work correctly.
13089
# The option is referenced via a variable to avoid confusing sed.
13090
lt_compile=`echo "$ac_compile" | $SED \
13091
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13092
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13093
-e 's:$: $lt_compiler_flag:'`
13094
(eval echo "\"\$as_me:13094: $lt_compile\"" >&5)
13095
(eval "$lt_compile" 2>conftest.err)
13097
cat conftest.err >&5
13098
echo "$as_me:13098: \$? = $ac_status" >&5
13099
if (exit $ac_status) && test -s "$ac_outfile"; then
13100
# The compiler can only warn and ignore the option if not recognized
13101
# So say no if there are warnings other than the usual output.
13102
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13103
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13104
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13105
lt_cv_prog_compiler_pic_works_CXX=yes
13111
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13112
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13114
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13115
case $lt_prog_compiler_pic_CXX in
13117
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13120
lt_prog_compiler_pic_CXX=
13121
lt_prog_compiler_can_build_shared_CXX=no
13126
# For platforms which do not support PIC, -DPIC is meaningless:
13128
lt_prog_compiler_pic_CXX=
13131
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13136
# Check to make sure the static flag actually works.
13138
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13139
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13140
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13141
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13142
$as_echo_n "(cached) " >&6
13144
lt_cv_prog_compiler_static_works_CXX=no
13145
save_LDFLAGS="$LDFLAGS"
13146
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13147
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13148
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13149
# The linker can only warn and ignore the option if not recognized
13150
# So say no if there are warnings
13151
if test -s conftest.err; then
13152
# Append any errors to the config.log.
13153
cat conftest.err 1>&5
13154
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13155
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13156
if diff conftest.exp conftest.er2 >/dev/null; then
13157
lt_cv_prog_compiler_static_works_CXX=yes
13160
lt_cv_prog_compiler_static_works_CXX=yes
13164
LDFLAGS="$save_LDFLAGS"
13167
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13168
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13170
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13173
lt_prog_compiler_static_CXX=
13177
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13178
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13179
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13180
$as_echo_n "(cached) " >&6
13182
lt_cv_prog_compiler_c_o_CXX=no
13183
$rm -r conftest 2>/dev/null
13187
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13189
lt_compiler_flag="-o out/conftest2.$ac_objext"
13190
# Insert the option either (1) after the last *FLAGS variable, or
13191
# (2) before a word containing "conftest.", or (3) at the end.
13192
# Note that $ac_compile itself does not contain backslashes and begins
13193
# with a dollar sign (not a hyphen), so the echo should work correctly.
13194
lt_compile=`echo "$ac_compile" | $SED \
13195
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13196
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13197
-e 's:$: $lt_compiler_flag:'`
13198
(eval echo "\"\$as_me:13198: $lt_compile\"" >&5)
13199
(eval "$lt_compile" 2>out/conftest.err)
13201
cat out/conftest.err >&5
13202
echo "$as_me:13202: \$? = $ac_status" >&5
13203
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13205
# The compiler can only warn and ignore the option if not recognized
13206
# So say no if there are warnings
13207
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13208
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13209
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13210
lt_cv_prog_compiler_c_o_CXX=yes
13215
# SGI C++ compiler will create directory out/ii_files/ for
13216
# template instantiation
13217
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13218
$rm out/* && rmdir out
13224
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13225
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13228
hard_links="nottested"
13229
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13230
# do not overwrite the value of need_locks provided by the user
13231
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13232
$as_echo_n "checking if we can lock with hard links... " >&6; }
13235
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13237
ln conftest.a conftest.b 2>&5 || hard_links=no
13238
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13239
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13240
$as_echo "$hard_links" >&6; }
13241
if test "$hard_links" = no; then
13242
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13243
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13250
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13251
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13253
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13256
# If we're using GNU nm, then we don't want the "-C" option.
13257
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13258
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13259
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'
13261
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'
13265
export_symbols_cmds_CXX="$ltdll_cmds"
13268
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'
13271
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13274
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13276
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13277
$as_echo "$ld_shlibs_CXX" >&6; }
13278
test "$ld_shlibs_CXX" = no && can_build_shared=no
13281
# Do we need to explicitly link libc?
13283
case "x$archive_cmds_need_lc_CXX" in
13285
# Assume -lc should be added
13286
archive_cmds_need_lc_CXX=yes
13288
if test "$enable_shared" = yes && test "$GCC" = yes; then
13289
case $archive_cmds_CXX in
13291
# FIXME: we may have to deal with multi-command sequences.
13294
# Test whether the compiler implicitly links with -lc since on some
13295
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13296
# to ld, don't add -lc before -lgcc.
13297
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13298
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13300
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13302
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13303
(eval $ac_compile) 2>&5
13305
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306
(exit $ac_status); } 2>conftest.err; then
13309
libobjs=conftest.$ac_objext
13311
wl=$lt_prog_compiler_wl_CXX
13312
pic_flag=$lt_prog_compiler_pic_CXX
13318
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13319
allow_undefined_flag_CXX=
13320
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13321
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13323
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324
(exit $ac_status); }
13326
archive_cmds_need_lc_CXX=no
13328
archive_cmds_need_lc_CXX=yes
13330
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13332
cat conftest.err 1>&5
13335
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13336
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13343
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13344
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13345
library_names_spec=
13346
libname_spec='lib$name'
13350
postuninstall_cmds=
13354
shlibpath_overrides_runpath=unknown
13356
dynamic_linker="$host_os ld.so"
13357
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13359
need_lib_prefix=unknown
13360
hardcode_into_libs=no
13362
# when you set need_version to no, make sure it does not cause -set_version
13363
# flags to be left without arguments
13364
need_version=unknown
13369
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13370
shlibpath_var=LIBPATH
13372
# AIX 3 has no versioning support, so we append a major version to the name.
13373
soname_spec='${libname}${release}${shared_ext}$major'
13380
hardcode_into_libs=yes
13381
if test "$host_cpu" = ia64; then
13382
# AIX 5 supports IA64
13383
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13384
shlibpath_var=LD_LIBRARY_PATH
13386
# With GCC up to 2.95.x, collect2 would create an import file
13387
# for dependence libraries. The import file would start with
13388
# the line `#! .'. This would cause the generated library to
13389
# depend on `.', always an invalid library. This was fixed in
13390
# development snapshots of GCC prior to 3.0.
13392
aix4 | aix4.[01] | aix4.[01].*)
13393
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13395
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13398
can_build_shared=no
13402
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13403
# soname into executable. Probably we can add versioning support to
13404
# collect2, so additional links can be useful in future.
13405
if test "$aix_use_runtimelinking" = yes; then
13406
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13407
# instead of lib<name>.a to let people know that these are not
13408
# typical AIX shared libraries.
13409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13411
# We preserve .a as extension for shared libraries through AIX4.2
13412
# and later when we are not doing run time linking.
13413
library_names_spec='${libname}${release}.a $libname.a'
13414
soname_spec='${libname}${release}${shared_ext}$major'
13416
shlibpath_var=LIBPATH
13421
library_names_spec='$libname.ixlibrary $libname.a'
13422
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13423
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'
13427
library_names_spec='${libname}${shared_ext}'
13428
dynamic_linker="$host_os ld.so"
13429
shlibpath_var=LIBRARY_PATH
13435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13436
soname_spec='${libname}${release}${shared_ext}$major'
13437
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13438
shlibpath_var=LD_LIBRARY_PATH
13439
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13440
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13441
# the default ld.so.conf also contains /usr/contrib/lib and
13442
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13443
# libtool to hard-code these into programs
13446
cygwin* | mingw* | pw32*)
13447
version_type=windows
13452
case $GCC,$host_os in
13453
yes,cygwin* | yes,mingw* | yes,pw32*)
13454
library_names_spec='$libname.dll.a'
13455
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13456
postinstall_cmds='base_file=`basename \${file}`~
13457
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13458
dldir=$destdir/`dirname \$dlpath`~
13459
test -d \$dldir || mkdir -p \$dldir~
13460
$install_prog $dir/$dlname \$dldir/$dlname~
13461
chmod a+x \$dldir/$dlname'
13462
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13463
dlpath=$dir/\$dldll~
13465
shlibpath_overrides_runpath=yes
13469
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13470
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13471
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13474
# MinGW DLLs use traditional 'lib' prefix
13475
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13476
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13477
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13478
# It is most probably a Windows format PATH printed by
13479
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13480
# path with ; separators, and with drive letters. We can handle the
13481
# drive letters (cygwin fileutils understands them), so leave them,
13482
# especially as we might pass files found there to a mingw objdump,
13483
# which wouldn't understand a cygwinified path. Ahh.
13484
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13486
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13490
# pw32 DLLs use 'pw' prefix rather than 'lib'
13491
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13497
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13500
dynamic_linker='Win32 ld.exe'
13501
# FIXME: first we should search . and the directory the executable is in
13505
darwin* | rhapsody*)
13506
dynamic_linker="$host_os dyld"
13507
version_type=darwin
13510
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13511
soname_spec='${libname}${release}${major}$shared_ext'
13512
shlibpath_overrides_runpath=yes
13513
shlibpath_var=DYLD_LIBRARY_PATH
13514
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13516
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13523
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13524
soname_spec='${libname}${release}${shared_ext}$major'
13525
shlibpath_var=LD_LIBRARY_PATH
13532
freebsd* | dragonfly*)
13533
# DragonFly does not have aout. When/if they implement a new
13534
# versioning mechanism, adjust this.
13535
if test -x /usr/bin/objformat; then
13536
objformat=`/usr/bin/objformat`
13539
freebsd[123]*) objformat=aout ;;
13540
*) objformat=elf ;;
13543
version_type=freebsd-$objformat
13544
case $version_type in
13546
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13551
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13555
shlibpath_var=LD_LIBRARY_PATH
13558
shlibpath_overrides_runpath=yes
13560
freebsd3.[01]* | freebsdelf3.[01]*)
13561
shlibpath_overrides_runpath=yes
13562
hardcode_into_libs=yes
13564
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13565
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13566
shlibpath_overrides_runpath=no
13567
hardcode_into_libs=yes
13569
*) # from 4.6 on, and DragonFly
13570
shlibpath_overrides_runpath=yes
13571
hardcode_into_libs=yes
13580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13581
soname_spec='${libname}${release}${shared_ext}$major'
13582
shlibpath_var=LD_LIBRARY_PATH
13583
hardcode_into_libs=yes
13586
hpux9* | hpux10* | hpux11*)
13587
# Give a soname corresponding to the major version so that dld.sl refuses to
13588
# link against other versions.
13595
hardcode_into_libs=yes
13596
dynamic_linker="$host_os dld.so"
13597
shlibpath_var=LD_LIBRARY_PATH
13598
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13599
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600
soname_spec='${libname}${release}${shared_ext}$major'
13601
if test "X$HPUX_IA64_MODE" = X32; then
13602
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13604
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13606
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13610
hardcode_into_libs=yes
13611
dynamic_linker="$host_os dld.sl"
13612
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13613
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615
soname_spec='${libname}${release}${shared_ext}$major'
13616
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13617
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13621
dynamic_linker="$host_os dld.sl"
13622
shlibpath_var=SHLIB_PATH
13623
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13624
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625
soname_spec='${libname}${release}${shared_ext}$major'
13628
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13629
postinstall_cmds='chmod 555 $lib'
13636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13637
soname_spec='${libname}${release}${shared_ext}$major'
13638
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13639
shlibpath_var=LD_LIBRARY_PATH
13640
shlibpath_overrides_runpath=no
13641
hardcode_into_libs=yes
13644
irix5* | irix6* | nonstopux*)
13646
nonstopux*) version_type=nonstopux ;;
13648
if test "$lt_cv_prog_gnu_ld" = yes; then
13656
soname_spec='${libname}${release}${shared_ext}$major'
13657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13659
irix5* | nonstopux*)
13660
libsuff= shlibsuff=
13663
case $LD in # libtool.m4 will add one of these switches to LD
13664
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13665
libsuff= shlibsuff= libmagic=32-bit;;
13666
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13667
libsuff=32 shlibsuff=N32 libmagic=N32;;
13668
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13669
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13670
*) libsuff= shlibsuff= libmagic=never-match;;
13674
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13675
shlibpath_overrides_runpath=no
13676
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13677
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13678
hardcode_into_libs=yes
13681
# No shared lib support for Linux oldld, aout, or coff.
13682
linux*oldld* | linux*aout* | linux*coff*)
13686
# This must be Linux ELF.
13687
linux* | k*bsd*-gnu)
13691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692
soname_spec='${libname}${release}${shared_ext}$major'
13693
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13694
shlibpath_var=LD_LIBRARY_PATH
13695
shlibpath_overrides_runpath=no
13696
# This implies no fast_install, which is unacceptable.
13697
# Some rework will be needed to allow for fast_install
13698
# before this can be enabled.
13699
hardcode_into_libs=yes
13700
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13701
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13703
# Append ld.so.conf contents to the search path
13704
if test -f /etc/ld.so.conf; then
13705
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' ' '`
13706
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13709
# We used to test for /lib/ld.so.1 and disable shared libraries on
13710
# powerpc, because MkLinux only supported shared libraries with the
13711
# GNU dynamic linker. Since this was broken with cross compilers,
13712
# most powerpc-linux boxes support dynamic linking these days and
13713
# people can always --disable-shared, the test was removed, and we
13714
# assume the GNU/Linux dynamic linker is in use.
13715
dynamic_linker='GNU/Linux ld.so'
13722
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13724
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13725
dynamic_linker='NetBSD (a.out) ld.so'
13727
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13728
soname_spec='${libname}${release}${shared_ext}$major'
13729
dynamic_linker='NetBSD ld.elf_so'
13731
shlibpath_var=LD_LIBRARY_PATH
13732
shlibpath_overrides_runpath=yes
13733
hardcode_into_libs=yes
13738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739
shlibpath_var=LD_LIBRARY_PATH
13740
shlibpath_overrides_runpath=yes
13747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13748
soname_spec='${libname}${release}${shared_ext}$major'
13749
shlibpath_var=LD_LIBRARY_PATH
13750
shlibpath_overrides_runpath=yes
13755
sys_lib_dlsearch_path_spec="/usr/lib"
13757
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13759
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13760
*) need_version=no ;;
13762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13763
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13764
shlibpath_var=LD_LIBRARY_PATH
13765
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13767
openbsd2.[89] | openbsd2.[89].*)
13768
shlibpath_overrides_runpath=no
13771
shlibpath_overrides_runpath=yes
13775
shlibpath_overrides_runpath=yes
13780
libname_spec='$name'
13783
library_names_spec='$libname${shared_ext} $libname.a'
13784
dynamic_linker='OS/2 ld.exe'
13785
shlibpath_var=LIBPATH
13788
osf3* | osf4* | osf5*)
13792
soname_spec='${libname}${release}${shared_ext}$major'
13793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13794
shlibpath_var=LD_LIBRARY_PATH
13795
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13796
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13807
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13808
soname_spec='${libname}${release}${shared_ext}$major'
13809
shlibpath_var=LD_LIBRARY_PATH
13810
shlibpath_overrides_runpath=yes
13811
hardcode_into_libs=yes
13812
# ldd complains unless libraries are executable
13813
postinstall_cmds='chmod +x $lib'
13818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13819
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13820
shlibpath_var=LD_LIBRARY_PATH
13821
shlibpath_overrides_runpath=yes
13822
if test "$with_gnu_ld" = yes; then
13830
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13831
soname_spec='${libname}${release}${shared_ext}$major'
13832
shlibpath_var=LD_LIBRARY_PATH
13833
case $host_vendor in
13835
shlibpath_overrides_runpath=no
13837
export_dynamic_flag_spec='${wl}-Blargedynsym'
13838
runpath_var=LD_RUN_PATH
13846
shlibpath_overrides_runpath=no
13847
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13853
if test -d /usr/nec ;then
13855
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13856
soname_spec='$libname${shared_ext}.$major'
13857
shlibpath_var=LD_LIBRARY_PATH
13861
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13862
version_type=freebsd-elf
13865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13866
soname_spec='${libname}${release}${shared_ext}$major'
13867
shlibpath_var=LD_LIBRARY_PATH
13868
hardcode_into_libs=yes
13869
if test "$with_gnu_ld" = yes; then
13870
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13871
shlibpath_overrides_runpath=no
13873
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13874
shlibpath_overrides_runpath=yes
13877
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13881
sys_lib_dlsearch_path_spec='/usr/lib'
13886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13887
soname_spec='${libname}${release}${shared_ext}$major'
13888
shlibpath_var=LD_LIBRARY_PATH
13895
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13896
$as_echo "$dynamic_linker" >&6; }
13897
test "$dynamic_linker" = no && can_build_shared=no
13899
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13900
$as_echo_n "(cached) " >&6
13902
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13905
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13906
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13907
$as_echo_n "(cached) " >&6
13909
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13912
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13914
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13915
if test "$GCC" = yes; then
13916
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13919
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13920
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13921
hardcode_action_CXX=
13922
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13923
test -n "$runpath_var_CXX" || \
13924
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13926
# We can hardcode non-existant directories.
13927
if test "$hardcode_direct_CXX" != no &&
13928
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13929
# have to relink, otherwise we might link with an installed library
13930
# when we should be linking with a yet-to-be-installed one
13931
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13932
test "$hardcode_minus_L_CXX" != no; then
13933
# Linking always hardcodes the temporary library directory.
13934
hardcode_action_CXX=relink
13936
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13937
hardcode_action_CXX=immediate
13940
# We cannot hardcode anything, or else we can only hardcode existing
13942
hardcode_action_CXX=unsupported
13944
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13945
$as_echo "$hardcode_action_CXX" >&6; }
13947
if test "$hardcode_action_CXX" = relink; then
13948
# Fast installation is not supported
13949
enable_fast_install=no
13950
elif test "$shlibpath_overrides_runpath" = yes ||
13951
test "$enable_shared" = no; then
13952
# Fast installation is not necessary
13953
enable_fast_install=needless
13957
# The else clause should only fire when bootstrapping the
13958
# libtool distribution, otherwise you forgot to ship ltmain.sh
13959
# with your package, and you will get complaints that there are
13960
# no rules to generate ltmain.sh.
13961
if test -f "$ltmain"; then
13962
# See if we are running on zsh, and set the options which allow our commands through
13963
# without removal of \ escapes.
13964
if test -n "${ZSH_VERSION+set}" ; then
13965
setopt NO_GLOB_SUBST
13967
# Now quote all the things that may contain metacharacters while being
13968
# careful not to overquote the AC_SUBSTed values. We take copies of the
13969
# variables and quote the copies for generation of the libtool script.
13970
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13972
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13973
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13974
deplibs_check_method reload_flag reload_cmds need_locks \
13975
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13976
lt_cv_sys_global_symbol_to_c_name_address \
13977
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13978
old_postinstall_cmds old_postuninstall_cmds \
13982
lt_prog_compiler_wl_CXX \
13983
lt_prog_compiler_pic_CXX \
13984
lt_prog_compiler_static_CXX \
13985
lt_prog_compiler_no_builtin_flag_CXX \
13986
export_dynamic_flag_spec_CXX \
13987
thread_safe_flag_spec_CXX \
13988
whole_archive_flag_spec_CXX \
13989
enable_shared_with_static_runtimes_CXX \
13990
old_archive_cmds_CXX \
13991
old_archive_from_new_cmds_CXX \
13992
predep_objects_CXX \
13993
postdep_objects_CXX \
13996
compiler_lib_search_path_CXX \
13997
compiler_lib_search_dirs_CXX \
13999
archive_expsym_cmds_CXX \
14000
postinstall_cmds_CXX \
14001
postuninstall_cmds_CXX \
14002
old_archive_from_expsyms_cmds_CXX \
14003
allow_undefined_flag_CXX \
14004
no_undefined_flag_CXX \
14005
export_symbols_cmds_CXX \
14006
hardcode_libdir_flag_spec_CXX \
14007
hardcode_libdir_flag_spec_ld_CXX \
14008
hardcode_libdir_separator_CXX \
14009
hardcode_automatic_CXX \
14011
module_expsym_cmds_CXX \
14012
lt_cv_prog_compiler_c_o_CXX \
14013
fix_srcfile_path_CXX \
14014
exclude_expsyms_CXX \
14015
include_expsyms_CXX; do
14018
old_archive_cmds_CXX | \
14019
old_archive_from_new_cmds_CXX | \
14020
archive_cmds_CXX | \
14021
archive_expsym_cmds_CXX | \
14022
module_cmds_CXX | \
14023
module_expsym_cmds_CXX | \
14024
old_archive_from_expsyms_cmds_CXX | \
14025
export_symbols_cmds_CXX | \
14026
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14027
postinstall_cmds | postuninstall_cmds | \
14028
old_postinstall_cmds | old_postuninstall_cmds | \
14029
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14030
# Double-quote double-evaled strings.
14031
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14034
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14040
*'\$0 --fallback-echo"')
14041
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14047
cat <<__EOF__ >> "$cfgfile"
14048
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14050
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14052
# Shell to use when invoking shell scripts.
14055
# Whether or not to build shared libraries.
14056
build_libtool_libs=$enable_shared
14058
# Whether or not to build static libraries.
14059
build_old_libs=$enable_static
14061
# Whether or not to add -lc for building shared libraries.
14062
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14064
# Whether or not to disallow shared libs when runtime libs are static
14065
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14067
# Whether or not to optimize for fast installation.
14068
fast_install=$enable_fast_install
14071
host_alias=$host_alias
14075
# The build system.
14076
build_alias=$build_alias
14080
# An echo program that does not interpret backslashes.
14085
AR_FLAGS=$lt_AR_FLAGS
14090
# LTCC compiler flags.
14091
LTCFLAGS=$lt_LTCFLAGS
14093
# A language-specific compiler.
14094
CC=$lt_compiler_CXX
14096
# Is the compiler the GNU C compiler?
14102
# The linker used to build libraries.
14105
# Whether we need hard or soft links.
14108
# A BSD-compatible nm program.
14111
# A symbol stripping program
14114
# Used to examine libraries when file_magic_cmd begins "file"
14115
MAGIC_CMD=$MAGIC_CMD
14117
# Used on cygwin: DLL creation program.
14120
# Used on cygwin: object dumper.
14123
# Used on cygwin: assembler.
14126
# The name of the directory that contains temporary libtool files.
14129
# How to create reloadable object files.
14130
reload_flag=$lt_reload_flag
14131
reload_cmds=$lt_reload_cmds
14133
# How to pass a linker flag through the compiler.
14134
wl=$lt_lt_prog_compiler_wl_CXX
14136
# Object file suffix (normally "o").
14137
objext="$ac_objext"
14139
# Old archive suffix (normally "a").
14142
# Shared library suffix (normally ".so").
14143
shrext_cmds='$shrext_cmds'
14145
# Executable file suffix (normally "").
14148
# Additional compiler flags for building library objects.
14149
pic_flag=$lt_lt_prog_compiler_pic_CXX
14152
# What is the maximum length of a command?
14153
max_cmd_len=$lt_cv_sys_max_cmd_len
14155
# Does compiler simultaneously support -c and -o options?
14156
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14158
# Must we lock files when doing compilation?
14159
need_locks=$lt_need_locks
14161
# Do we need the lib prefix for modules?
14162
need_lib_prefix=$need_lib_prefix
14164
# Do we need a version for libraries?
14165
need_version=$need_version
14167
# Whether dlopen is supported.
14168
dlopen_support=$enable_dlopen
14170
# Whether dlopen of programs is supported.
14171
dlopen_self=$enable_dlopen_self
14173
# Whether dlopen of statically linked programs is supported.
14174
dlopen_self_static=$enable_dlopen_self_static
14176
# Compiler flag to prevent dynamic linking.
14177
link_static_flag=$lt_lt_prog_compiler_static_CXX
14179
# Compiler flag to turn off builtin functions.
14180
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14182
# Compiler flag to allow reflexive dlopens.
14183
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14185
# Compiler flag to generate shared objects directly from archives.
14186
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14188
# Compiler flag to generate thread-safe objects.
14189
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14191
# Library versioning type.
14192
version_type=$version_type
14194
# Format of library name prefix.
14195
libname_spec=$lt_libname_spec
14197
# List of archive names. First name is the real one, the rest are links.
14198
# The last name is the one that the linker finds with -lNAME.
14199
library_names_spec=$lt_library_names_spec
14201
# The coded name of the library, if different from the real name.
14202
soname_spec=$lt_soname_spec
14204
# Commands used to build and install an old-style archive.
14206
old_archive_cmds=$lt_old_archive_cmds_CXX
14207
old_postinstall_cmds=$lt_old_postinstall_cmds
14208
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14210
# Create an old-style archive from a shared archive.
14211
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14213
# Create a temporary old-style archive to link instead of a shared archive.
14214
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14216
# Commands used to build and install a shared archive.
14217
archive_cmds=$lt_archive_cmds_CXX
14218
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14219
postinstall_cmds=$lt_postinstall_cmds
14220
postuninstall_cmds=$lt_postuninstall_cmds
14222
# Commands used to build a loadable module (assumed same as above if empty)
14223
module_cmds=$lt_module_cmds_CXX
14224
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14226
# Commands to strip libraries.
14227
old_striplib=$lt_old_striplib
14228
striplib=$lt_striplib
14230
# Dependencies to place before the objects being linked to create a
14232
predep_objects=$lt_predep_objects_CXX
14234
# Dependencies to place after the objects being linked to create a
14236
postdep_objects=$lt_postdep_objects_CXX
14238
# Dependencies to place before the objects being linked to create a
14240
predeps=$lt_predeps_CXX
14242
# Dependencies to place after the objects being linked to create a
14244
postdeps=$lt_postdeps_CXX
14246
# The directories searched by this compiler when creating a shared
14248
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14250
# The library search path used internally by the compiler when linking
14251
# a shared library.
14252
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14254
# Method to check whether dependent libraries are shared objects.
14255
deplibs_check_method=$lt_deplibs_check_method
14257
# Command to use when deplibs_check_method == file_magic.
14258
file_magic_cmd=$lt_file_magic_cmd
14260
# Flag that allows shared libraries with undefined symbols to be built.
14261
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14263
# Flag that forces no undefined symbols.
14264
no_undefined_flag=$lt_no_undefined_flag_CXX
14266
# Commands used to finish a libtool library installation in a directory.
14267
finish_cmds=$lt_finish_cmds
14269
# Same as above, but a single script fragment to be evaled but not shown.
14270
finish_eval=$lt_finish_eval
14272
# Take the output of nm and produce a listing of raw symbols and C names.
14273
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14275
# Transform the output of nm in a proper C declaration
14276
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14278
# Transform the output of nm in a C name address pair
14279
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14281
# This is the shared library runtime path variable.
14282
runpath_var=$runpath_var
14284
# This is the shared library path variable.
14285
shlibpath_var=$shlibpath_var
14287
# Is shlibpath searched before the hard-coded library search path?
14288
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14290
# How to hardcode a shared library path into an executable.
14291
hardcode_action=$hardcode_action_CXX
14293
# Whether we should hardcode library paths into libraries.
14294
hardcode_into_libs=$hardcode_into_libs
14296
# Flag to hardcode \$libdir into a binary during linking.
14297
# This must work even if \$libdir does not exist.
14298
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14300
# If ld is used when linking, flag to hardcode \$libdir into
14301
# a binary during linking. This must work even if \$libdir does
14303
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14305
# Whether we need a single -rpath flag with a separated argument.
14306
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14308
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14309
# resulting binary.
14310
hardcode_direct=$hardcode_direct_CXX
14312
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14313
# resulting binary.
14314
hardcode_minus_L=$hardcode_minus_L_CXX
14316
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14317
# the resulting binary.
14318
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14320
# Set to yes if building a shared library automatically hardcodes DIR into the library
14321
# and all subsequent libraries and executables linked against it.
14322
hardcode_automatic=$hardcode_automatic_CXX
14324
# Variables whose values should be saved in libtool wrapper scripts and
14325
# restored at relink time.
14326
variables_saved_for_relink="$variables_saved_for_relink"
14328
# Whether libtool must link a program against all its dependency libraries.
14329
link_all_deplibs=$link_all_deplibs_CXX
14331
# Compile-time system search path for libraries
14332
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14334
# Run-time system search path for libraries
14335
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14337
# Fix the shell variable \$srcfile for the compiler.
14338
fix_srcfile_path=$lt_fix_srcfile_path
14340
# Set to yes if exported symbols are required.
14341
always_export_symbols=$always_export_symbols_CXX
14343
# The commands to list exported symbols.
14344
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14346
# The commands to extract the exported symbol list from a shared archive.
14347
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14349
# Symbols that should not be listed in the preloaded symbols.
14350
exclude_expsyms=$lt_exclude_expsyms_CXX
14352
# Symbols that must always be exported.
14353
include_expsyms=$lt_include_expsyms_CXX
14355
# ### END LIBTOOL TAG CONFIG: $tagname
14361
# If there is no Makefile yet, we rely on a make rule to execute
14362
# `config.status --recheck' to rerun these tests and create the
14363
# libtool script then.
14364
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14365
if test -f "$ltmain_in"; then
14366
test -f Makefile && make "$ltmain"
14372
ac_cpp='$CPP $CPPFLAGS'
14373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14381
with_gnu_ldcxx=$with_gnu_ld
14382
with_gnu_ld=$lt_save_with_gnu_ld
14383
lt_cv_path_LDCXX=$lt_cv_path_LD
14384
lt_cv_path_LD=$lt_save_path_LD
14385
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14386
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14394
if test -n "$F77" && test "X$F77" != "Xno"; then
14397
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14398
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14402
archive_cmds_need_lc_F77=no
14403
allow_undefined_flag_F77=
14404
always_export_symbols_F77=no
14405
archive_expsym_cmds_F77=
14406
export_dynamic_flag_spec_F77=
14407
hardcode_direct_F77=no
14408
hardcode_libdir_flag_spec_F77=
14409
hardcode_libdir_flag_spec_ld_F77=
14410
hardcode_libdir_separator_F77=
14411
hardcode_minus_L_F77=no
14412
hardcode_automatic_F77=no
14414
module_expsym_cmds_F77=
14415
link_all_deplibs_F77=unknown
14416
old_archive_cmds_F77=$old_archive_cmds
14417
no_undefined_flag_F77=
14418
whole_archive_flag_spec_F77=
14419
enable_shared_with_static_runtimes_F77=no
14421
# Source file extension for f77 test sources.
14424
# Object file extension for compiled f77 test sources.
14428
# Code to be used in simple compile tests
14429
lt_simple_compile_test_code="\
14435
# Code to be used in simple link tests
14436
lt_simple_link_test_code="\
14441
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14443
# If no C compiler was specified, use CC.
14446
# If no C compiler flags were specified, use CFLAGS.
14447
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14449
# Allow CC to be a program name with arguments.
14453
# save warnings/boilerplate of simple test code
14454
ac_outfile=conftest.$ac_objext
14455
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14456
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14457
_lt_compiler_boilerplate=`cat conftest.err`
14460
ac_outfile=conftest.$ac_objext
14461
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14462
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463
_lt_linker_boilerplate=`cat conftest.err`
14467
# Allow CC to be a program name with arguments.
14472
for cc_temp in $compiler""; do
14474
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14475
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14480
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14483
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14484
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14485
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14486
$as_echo "$can_build_shared" >&6; }
14488
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14489
$as_echo_n "checking whether to build shared libraries... " >&6; }
14490
test "$can_build_shared" = "no" && enable_shared=no
14492
# On AIX, shared libraries and static libraries use the same namespace, and
14493
# are all built from PIC.
14496
test "$enable_shared" = yes && enable_static=no
14497
if test -n "$RANLIB"; then
14498
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14499
postinstall_cmds='$RANLIB $lib'
14503
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14504
test "$enable_shared" = yes && enable_static=no
14508
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14509
$as_echo "$enable_shared" >&6; }
14511
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14512
$as_echo_n "checking whether to build static libraries... " >&6; }
14513
# Make sure either enable_shared or enable_static is yes.
14514
test "$enable_shared" = yes || enable_static=yes
14515
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14516
$as_echo "$enable_static" >&6; }
14521
lt_prog_compiler_wl_F77=
14522
lt_prog_compiler_pic_F77=
14523
lt_prog_compiler_static_F77=
14525
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14526
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14528
if test "$GCC" = yes; then
14529
lt_prog_compiler_wl_F77='-Wl,'
14530
lt_prog_compiler_static_F77='-static'
14534
# All AIX code is PIC.
14535
if test "$host_cpu" = ia64; then
14536
# AIX 5 now supports IA64 processor
14537
lt_prog_compiler_static_F77='-Bstatic'
14542
# FIXME: we need at least 68020 code to build shared libraries, but
14543
# adding the `-m68020' flag to GCC prevents building anything better,
14545
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14548
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14549
# PIC is the default for these OSes.
14552
mingw* | cygwin* | pw32* | os2*)
14553
# This hack is so that the source file can tell whether it is being
14554
# built for inclusion in a dll (and should export symbols for example).
14555
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14556
# (--disable-auto-import) libraries
14557
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14560
darwin* | rhapsody*)
14561
# PIC is the default on this platform
14562
# Common symbols not allowed in MH_DYLIB files
14563
lt_prog_compiler_pic_F77='-fno-common'
14567
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14568
# Instead, we relocate shared libraries at runtime.
14572
# Just because we use GCC doesn't mean we suddenly get shared libraries
14573
# on systems that don't support them.
14574
lt_prog_compiler_can_build_shared_F77=no
14579
if test -d /usr/nec; then
14580
lt_prog_compiler_pic_F77=-Kconform_pic
14585
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14586
# not for PA HP-UX.
14592
lt_prog_compiler_pic_F77='-fPIC'
14598
lt_prog_compiler_pic_F77='-fPIC'
14602
# PORTME Check for flag to pass linker flags through the system compiler.
14605
lt_prog_compiler_wl_F77='-Wl,'
14606
if test "$host_cpu" = ia64; then
14607
# AIX 5 now supports IA64 processor
14608
lt_prog_compiler_static_F77='-Bstatic'
14610
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14614
# PIC is the default on this platform
14615
# Common symbols not allowed in MH_DYLIB files
14616
case $cc_basename in
14618
lt_prog_compiler_pic_F77='-qnocommon'
14619
lt_prog_compiler_wl_F77='-Wl,'
14624
mingw* | cygwin* | pw32* | os2*)
14625
# This hack is so that the source file can tell whether it is being
14626
# built for inclusion in a dll (and should export symbols for example).
14627
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14630
hpux9* | hpux10* | hpux11*)
14631
lt_prog_compiler_wl_F77='-Wl,'
14632
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14633
# not for PA HP-UX.
14639
lt_prog_compiler_pic_F77='+Z'
14642
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14643
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14646
irix5* | irix6* | nonstopux*)
14647
lt_prog_compiler_wl_F77='-Wl,'
14648
# PIC (with -KPIC) is the default.
14649
lt_prog_compiler_static_F77='-non_shared'
14653
lt_prog_compiler_pic_F77='-KPIC'
14654
lt_prog_compiler_static_F77='-Bstatic'
14657
linux* | k*bsd*-gnu)
14658
case $cc_basename in
14660
lt_prog_compiler_wl_F77='-Wl,'
14661
lt_prog_compiler_pic_F77='-KPIC'
14662
lt_prog_compiler_static_F77='-static'
14664
pgcc* | pgf77* | pgf90* | pgf95*)
14665
# Portland Group compilers (*not* the Pentium gcc compiler,
14666
# which looks to be a dead project)
14667
lt_prog_compiler_wl_F77='-Wl,'
14668
lt_prog_compiler_pic_F77='-fpic'
14669
lt_prog_compiler_static_F77='-Bstatic'
14672
lt_prog_compiler_wl_F77='-Wl,'
14673
# All Alpha code is PIC.
14674
lt_prog_compiler_static_F77='-non_shared'
14677
case `$CC -V 2>&1 | sed 5q` in
14680
lt_prog_compiler_pic_F77='-KPIC'
14681
lt_prog_compiler_static_F77='-Bstatic'
14682
lt_prog_compiler_wl_F77='-Wl,'
14685
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14686
lt_prog_compiler_pic_F77='-KPIC'
14687
lt_prog_compiler_static_F77='-Bstatic'
14688
lt_prog_compiler_wl_F77=''
14695
osf3* | osf4* | osf5*)
14696
lt_prog_compiler_wl_F77='-Wl,'
14697
# All OSF/1 code is PIC.
14698
lt_prog_compiler_static_F77='-non_shared'
14702
lt_prog_compiler_static_F77='-non_shared'
14706
lt_prog_compiler_pic_F77='-KPIC'
14707
lt_prog_compiler_static_F77='-Bstatic'
14708
case $cc_basename in
14709
f77* | f90* | f95*)
14710
lt_prog_compiler_wl_F77='-Qoption ld ';;
14712
lt_prog_compiler_wl_F77='-Wl,';;
14717
lt_prog_compiler_wl_F77='-Qoption ld '
14718
lt_prog_compiler_pic_F77='-PIC'
14719
lt_prog_compiler_static_F77='-Bstatic'
14722
sysv4 | sysv4.2uw2* | sysv4.3*)
14723
lt_prog_compiler_wl_F77='-Wl,'
14724
lt_prog_compiler_pic_F77='-KPIC'
14725
lt_prog_compiler_static_F77='-Bstatic'
14729
if test -d /usr/nec ;then
14730
lt_prog_compiler_pic_F77='-Kconform_pic'
14731
lt_prog_compiler_static_F77='-Bstatic'
14735
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14736
lt_prog_compiler_wl_F77='-Wl,'
14737
lt_prog_compiler_pic_F77='-KPIC'
14738
lt_prog_compiler_static_F77='-Bstatic'
14742
lt_prog_compiler_wl_F77='-Wl,'
14743
lt_prog_compiler_can_build_shared_F77=no
14747
lt_prog_compiler_pic_F77='-pic'
14748
lt_prog_compiler_static_F77='-Bstatic'
14752
lt_prog_compiler_can_build_shared_F77=no
14757
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14758
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14761
# Check to make sure the PIC flag actually works.
14763
if test -n "$lt_prog_compiler_pic_F77"; then
14765
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14766
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14767
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14768
$as_echo_n "(cached) " >&6
14770
lt_cv_prog_compiler_pic_works_F77=no
14771
ac_outfile=conftest.$ac_objext
14772
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14773
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14774
# Insert the option either (1) after the last *FLAGS variable, or
14775
# (2) before a word containing "conftest.", or (3) at the end.
14776
# Note that $ac_compile itself does not contain backslashes and begins
14777
# with a dollar sign (not a hyphen), so the echo should work correctly.
14778
# The option is referenced via a variable to avoid confusing sed.
14779
lt_compile=`echo "$ac_compile" | $SED \
14780
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14781
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14782
-e 's:$: $lt_compiler_flag:'`
14783
(eval echo "\"\$as_me:14783: $lt_compile\"" >&5)
14784
(eval "$lt_compile" 2>conftest.err)
14786
cat conftest.err >&5
14787
echo "$as_me:14787: \$? = $ac_status" >&5
14788
if (exit $ac_status) && test -s "$ac_outfile"; then
14789
# The compiler can only warn and ignore the option if not recognized
14790
# So say no if there are warnings other than the usual output.
14791
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14792
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14793
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14794
lt_cv_prog_compiler_pic_works_F77=yes
14800
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14801
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14803
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14804
case $lt_prog_compiler_pic_F77 in
14806
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14809
lt_prog_compiler_pic_F77=
14810
lt_prog_compiler_can_build_shared_F77=no
14815
# For platforms which do not support PIC, -DPIC is meaningless:
14817
lt_prog_compiler_pic_F77=
14820
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14825
# Check to make sure the static flag actually works.
14827
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14828
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14829
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14830
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14831
$as_echo_n "(cached) " >&6
14833
lt_cv_prog_compiler_static_works_F77=no
14834
save_LDFLAGS="$LDFLAGS"
14835
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14836
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14837
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14838
# The linker can only warn and ignore the option if not recognized
14839
# So say no if there are warnings
14840
if test -s conftest.err; then
14841
# Append any errors to the config.log.
14842
cat conftest.err 1>&5
14843
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14844
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14845
if diff conftest.exp conftest.er2 >/dev/null; then
14846
lt_cv_prog_compiler_static_works_F77=yes
14849
lt_cv_prog_compiler_static_works_F77=yes
14853
LDFLAGS="$save_LDFLAGS"
14856
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14857
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14859
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14862
lt_prog_compiler_static_F77=
14866
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14867
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14868
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14869
$as_echo_n "(cached) " >&6
14871
lt_cv_prog_compiler_c_o_F77=no
14872
$rm -r conftest 2>/dev/null
14876
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14878
lt_compiler_flag="-o out/conftest2.$ac_objext"
14879
# Insert the option either (1) after the last *FLAGS variable, or
14880
# (2) before a word containing "conftest.", or (3) at the end.
14881
# Note that $ac_compile itself does not contain backslashes and begins
14882
# with a dollar sign (not a hyphen), so the echo should work correctly.
14883
lt_compile=`echo "$ac_compile" | $SED \
14884
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14885
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14886
-e 's:$: $lt_compiler_flag:'`
14887
(eval echo "\"\$as_me:14887: $lt_compile\"" >&5)
14888
(eval "$lt_compile" 2>out/conftest.err)
14890
cat out/conftest.err >&5
14891
echo "$as_me:14891: \$? = $ac_status" >&5
14892
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14894
# The compiler can only warn and ignore the option if not recognized
14895
# So say no if there are warnings
14896
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14897
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14898
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14899
lt_cv_prog_compiler_c_o_F77=yes
14904
# SGI C++ compiler will create directory out/ii_files/ for
14905
# template instantiation
14906
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14907
$rm out/* && rmdir out
14913
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14914
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14917
hard_links="nottested"
14918
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14919
# do not overwrite the value of need_locks provided by the user
14920
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14921
$as_echo_n "checking if we can lock with hard links... " >&6; }
14924
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14926
ln conftest.a conftest.b 2>&5 || hard_links=no
14927
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14928
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14929
$as_echo "$hard_links" >&6; }
14930
if test "$hard_links" = no; then
14931
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14932
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14939
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14940
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14943
allow_undefined_flag_F77=
14944
enable_shared_with_static_runtimes_F77=no
14946
archive_expsym_cmds_F77=
14947
old_archive_From_new_cmds_F77=
14948
old_archive_from_expsyms_cmds_F77=
14949
export_dynamic_flag_spec_F77=
14950
whole_archive_flag_spec_F77=
14951
thread_safe_flag_spec_F77=
14952
hardcode_libdir_flag_spec_F77=
14953
hardcode_libdir_flag_spec_ld_F77=
14954
hardcode_libdir_separator_F77=
14955
hardcode_direct_F77=no
14956
hardcode_minus_L_F77=no
14957
hardcode_shlibpath_var_F77=unsupported
14958
link_all_deplibs_F77=unknown
14959
hardcode_automatic_F77=no
14961
module_expsym_cmds_F77=
14962
always_export_symbols_F77=no
14963
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14964
# include_expsyms should be a list of space-separated symbols to be *always*
14965
# included in the symbol list
14966
include_expsyms_F77=
14967
# exclude_expsyms can be an extended regexp of symbols to exclude
14968
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14969
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14970
# as well as any symbol that contains `d'.
14971
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14972
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14973
# platforms (ab)use it in PIC code, but their linkers get confused if
14974
# the symbol is explicitly referenced. Since portable code cannot
14975
# rely on this symbol name, it's probably fine to never include it in
14976
# preloaded symbol tables.
14977
# Exclude shared library initialization/finalization symbols.
14978
extract_expsyms_cmds=
14979
# Just being paranoid about ensuring that cc_basename is set.
14980
for cc_temp in $compiler""; do
14982
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14983
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14988
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14991
cygwin* | mingw* | pw32*)
14992
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14993
# When not using gcc, we currently assume that we are using
14994
# Microsoft Visual C++.
14995
if test "$GCC" != yes; then
15000
# we just hope/assume this is gcc and not c89 (= MSVC++)
15009
if test "$with_gnu_ld" = yes; then
15010
# If archive_cmds runs LD, not CC, wlarc should be empty
15013
# Set some defaults for GNU ld with shared library support. These
15014
# are reset later if shared libraries are not supported. Putting them
15015
# here allows them to be overridden if necessary.
15016
runpath_var=LD_RUN_PATH
15017
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15018
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15019
# ancient GNU ld didn't support --whole-archive et. al.
15020
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15021
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15023
whole_archive_flag_spec_F77=
15025
supports_anon_versioning=no
15026
case `$LD -v 2>/dev/null` in
15027
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15028
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15029
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15030
*\ 2.11.*) ;; # other 2.11 versions
15031
*) supports_anon_versioning=yes ;;
15034
# See if GNU ld supports shared libraries.
15037
# On AIX/PPC, the GNU linker is very broken
15038
if test "$host_cpu" != ia64; then
15042
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15043
*** to be unable to reliably create shared libraries on AIX.
15044
*** Therefore, libtool is disabling shared libraries support. If you
15045
*** really care for shared libraries, you may want to modify your PATH
15046
*** so that a non-GNU linker is found, and then restart.
15053
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)'
15054
hardcode_libdir_flag_spec_F77='-L$libdir'
15055
hardcode_minus_L_F77=yes
15057
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15058
# that the semantics of dynamic libraries on AmigaOS, at least up
15059
# to version 4, is to share data among multiple programs linked
15060
# with the same dynamic library. Since this doesn't match the
15061
# behavior of shared libraries on other platforms, we can't use
15067
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15068
allow_undefined_flag_F77=unsupported
15069
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15070
# support --undefined. This deserves some investigation. FIXME
15071
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15077
cygwin* | mingw* | pw32*)
15078
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15079
# as there is no search path for DLLs.
15080
hardcode_libdir_flag_spec_F77='-L$libdir'
15081
allow_undefined_flag_F77=unsupported
15082
always_export_symbols_F77=no
15083
enable_shared_with_static_runtimes_F77=yes
15084
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15086
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15087
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15088
# If the export-symbols file already is a .def file (1st line
15089
# is EXPORTS), use it as is; otherwise, prepend...
15090
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15091
cp $export_symbols $output_objdir/$soname.def;
15093
echo EXPORTS > $output_objdir/$soname.def;
15094
cat $export_symbols >> $output_objdir/$soname.def;
15096
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15103
hardcode_direct_F77=no
15104
hardcode_shlibpath_var_F77=no
15105
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15106
export_dynamic_flag_spec_F77='${wl}-E'
15107
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15108
# Instead, shared libraries are loaded at an image base (0x10000000 by
15109
# default) and relocated if they conflict, which is a slow very memory
15110
# consuming and fragmenting process. To avoid this, we pick a random,
15111
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15112
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15113
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'
15114
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'
15117
gnu* | linux* | k*bsd*-gnu)
15118
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120
case $cc_basename,$host_cpu in
15121
pgcc*) # Portland Group C compiler
15122
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'
15123
tmp_addflag=' $pic_flag'
15125
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15126
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'
15127
tmp_addflag=' $pic_flag -Mnomain' ;;
15128
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15129
tmp_addflag=' -i_dynamic' ;;
15130
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15131
tmp_addflag=' -i_dynamic -nofor_main' ;;
15132
ifc* | ifort*) # Intel Fortran compiler
15133
tmp_addflag=' -nofor_main' ;;
15135
case `$CC -V 2>&1 | sed 5q` in
15136
*Sun\ C*) # Sun C 5.9
15137
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'
15138
tmp_sharedflag='-G' ;;
15139
*Sun\ F*) # Sun Fortran 8.3
15140
tmp_sharedflag='-G' ;;
15142
tmp_sharedflag='-shared' ;;
15144
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15146
if test $supports_anon_versioning = yes; then
15147
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15148
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15149
$echo "local: *; };" >> $output_objdir/$libname.ver~
15150
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15158
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15159
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15162
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15163
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15168
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15172
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15173
*** create shared libraries on Solaris systems. Therefore, libtool
15174
*** is disabling shared libraries support. We urge you to upgrade GNU
15175
*** binutils to release 2.9.1 or newer. Another option is to modify
15176
*** your PATH or compiler configuration so that the native linker is
15177
*** used, and then restart.
15180
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15182
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15188
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15189
case `$LD -v 2>&1` in
15190
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15194
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15195
*** reliably create shared libraries on SCO systems. Therefore, libtool
15196
*** is disabling shared libraries support. We urge you to upgrade GNU
15197
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15198
*** your PATH or compiler configuration so that the native linker is
15199
*** used, and then restart.
15204
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15205
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15206
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15207
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15216
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15218
hardcode_direct_F77=yes
15219
hardcode_shlibpath_var_F77=no
15223
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15224
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15225
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15232
if test "$ld_shlibs_F77" = no; then
15234
hardcode_libdir_flag_spec_F77=
15235
export_dynamic_flag_spec_F77=
15236
whole_archive_flag_spec_F77=
15239
# PORTME fill in a description of your system's linker (not GNU ld)
15242
allow_undefined_flag_F77=unsupported
15243
always_export_symbols_F77=yes
15244
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'
15245
# Note: this linker hardcodes the directories in LIBPATH if there
15246
# are no directories specified by -L.
15247
hardcode_minus_L_F77=yes
15248
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15249
# Neither direct hardcoding nor static linking is supported with a
15251
hardcode_direct_F77=unsupported
15256
if test "$host_cpu" = ia64; then
15257
# On IA64, the linker does run time linking by default, so we don't
15258
# have to do anything special.
15259
aix_use_runtimelinking=no
15260
exp_sym_flag='-Bexport'
15263
# If we're using GNU nm, then we don't want the "-C" option.
15264
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15265
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15266
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'
15268
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'
15270
aix_use_runtimelinking=no
15272
# Test if we are trying to use run time linking or normal
15273
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15274
# need to do runtime linking.
15275
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15276
for ld_flag in $LDFLAGS; do
15277
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15278
aix_use_runtimelinking=yes
15285
exp_sym_flag='-bexport'
15286
no_entry_flag='-bnoentry'
15289
# When large executables or shared objects are built, AIX ld can
15290
# have problems creating the table of contents. If linking a library
15291
# or program results in "error TOC overflow" add -mminimal-toc to
15292
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15293
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15295
archive_cmds_F77=''
15296
hardcode_direct_F77=yes
15297
hardcode_libdir_separator_F77=':'
15298
link_all_deplibs_F77=yes
15300
if test "$GCC" = yes; then
15301
case $host_os in aix4.[012]|aix4.[012].*)
15302
# We only want to do this on AIX 4.2 and lower, the check
15303
# below for broken collect2 doesn't work under 4.3+
15304
collect2name=`${CC} -print-prog-name=collect2`
15305
if test -f "$collect2name" && \
15306
strings "$collect2name" | grep resolve_lib_name >/dev/null
15308
# We have reworked collect2
15311
# We have old collect2
15312
hardcode_direct_F77=unsupported
15313
# It fails to find uninstalled libraries when the uninstalled
15314
# path is not listed in the libpath. Setting hardcode_minus_L
15315
# to unsupported forces relinking
15316
hardcode_minus_L_F77=yes
15317
hardcode_libdir_flag_spec_F77='-L$libdir'
15318
hardcode_libdir_separator_F77=
15322
shared_flag='-shared'
15323
if test "$aix_use_runtimelinking" = yes; then
15324
shared_flag="$shared_flag "'${wl}-G'
15328
if test "$host_cpu" = ia64; then
15329
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15330
# chokes on -Wl,-G. The following line is correct:
15333
if test "$aix_use_runtimelinking" = yes; then
15334
shared_flag='${wl}-G'
15336
shared_flag='${wl}-bM:SRE'
15341
# It seems that -bexpall does not export symbols beginning with
15342
# underscore (_), so it is better to generate a list of symbols to export.
15343
always_export_symbols_F77=yes
15344
if test "$aix_use_runtimelinking" = yes; then
15345
# Warning - without using the other runtime loading flags (-brtl),
15346
# -berok will link without error, but may produce a broken library.
15347
allow_undefined_flag_F77='-berok'
15348
# Determine the default libpath from the value encoded in an empty executable.
15349
cat >conftest.$ac_ext <<_ACEOF
15354
rm -f conftest.$ac_objext conftest$ac_exeext
15355
if { (ac_try="$ac_link"
15356
case "(($ac_try" in
15357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358
*) ac_try_echo=$ac_try;;
15360
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15361
$as_echo "$ac_try_echo") >&5
15362
(eval "$ac_link") 2>conftest.er1
15364
grep -v '^ *+' conftest.er1 >conftest.err
15366
cat conftest.err >&5
15367
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368
(exit $ac_status); } && {
15369
test -z "$ac_f77_werror_flag" ||
15370
test ! -s conftest.err
15371
} && test -s conftest$ac_exeext && {
15372
test "$cross_compiling" = yes ||
15373
$as_test_x conftest$ac_exeext
15376
lt_aix_libpath_sed='
15377
/Import File Strings/,/^$/ {
15383
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15384
# Check for a 64-bit object if we didn't find anything.
15385
if test -z "$aix_libpath"; then
15386
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15389
$as_echo "$as_me: failed program was:" >&5
15390
sed 's/^/| /' conftest.$ac_ext >&5
15395
rm -rf conftest.dSYM
15396
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397
conftest$ac_exeext conftest.$ac_ext
15398
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15400
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15401
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"
15403
if test "$host_cpu" = ia64; then
15404
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15405
allow_undefined_flag_F77="-z nodefs"
15406
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"
15408
# Determine the default libpath from the value encoded in an empty executable.
15409
cat >conftest.$ac_ext <<_ACEOF
15414
rm -f conftest.$ac_objext conftest$ac_exeext
15415
if { (ac_try="$ac_link"
15416
case "(($ac_try" in
15417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418
*) ac_try_echo=$ac_try;;
15420
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15421
$as_echo "$ac_try_echo") >&5
15422
(eval "$ac_link") 2>conftest.er1
15424
grep -v '^ *+' conftest.er1 >conftest.err
15426
cat conftest.err >&5
15427
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428
(exit $ac_status); } && {
15429
test -z "$ac_f77_werror_flag" ||
15430
test ! -s conftest.err
15431
} && test -s conftest$ac_exeext && {
15432
test "$cross_compiling" = yes ||
15433
$as_test_x conftest$ac_exeext
15436
lt_aix_libpath_sed='
15437
/Import File Strings/,/^$/ {
15443
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15444
# Check for a 64-bit object if we didn't find anything.
15445
if test -z "$aix_libpath"; then
15446
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15449
$as_echo "$as_me: failed program was:" >&5
15450
sed 's/^/| /' conftest.$ac_ext >&5
15455
rm -rf conftest.dSYM
15456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15457
conftest$ac_exeext conftest.$ac_ext
15458
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15460
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15461
# Warning - without using the other run time loading flags,
15462
# -berok will link without error, but may produce a broken library.
15463
no_undefined_flag_F77=' ${wl}-bernotok'
15464
allow_undefined_flag_F77=' ${wl}-berok'
15465
# Exported symbols can be pulled into shared objects from archives
15466
whole_archive_flag_spec_F77='$convenience'
15467
archive_cmds_need_lc_F77=yes
15468
# This is similar to how AIX traditionally builds its shared libraries.
15469
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'
15475
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)'
15476
hardcode_libdir_flag_spec_F77='-L$libdir'
15477
hardcode_minus_L_F77=yes
15478
# see comment about different semantics on the GNU ld section
15483
export_dynamic_flag_spec_F77=-rdynamic
15486
cygwin* | mingw* | pw32*)
15487
# When not using gcc, we currently assume that we are using
15488
# Microsoft Visual C++.
15489
# hardcode_libdir_flag_spec is actually meaningless, as there is
15490
# no search path for DLLs.
15491
hardcode_libdir_flag_spec_F77=' '
15492
allow_undefined_flag_F77=unsupported
15493
# Tell ltmain to make .lib files, not .a files.
15495
# Tell ltmain to make .dll files, not .so files.
15497
# FIXME: Setting linknames here is a bad hack.
15498
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15499
# The linker will automatically build a .lib file if we build a DLL.
15500
old_archive_From_new_cmds_F77='true'
15501
# FIXME: Should let the user specify the lib program.
15502
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15503
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15504
enable_shared_with_static_runtimes_F77=yes
15507
darwin* | rhapsody*)
15509
rhapsody* | darwin1.[012])
15510
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15513
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15514
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15516
case ${MACOSX_DEPLOYMENT_TARGET} in
15518
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15521
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15527
archive_cmds_need_lc_F77=no
15528
hardcode_direct_F77=no
15529
hardcode_automatic_F77=yes
15530
hardcode_shlibpath_var_F77=unsupported
15531
whole_archive_flag_spec_F77=''
15532
link_all_deplibs_F77=yes
15533
if test "$GCC" = yes ; then
15534
output_verbose_link_cmd='echo'
15535
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15536
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15537
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15538
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15540
case $cc_basename in
15542
output_verbose_link_cmd='echo'
15543
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15544
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15545
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15546
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}'
15547
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}'
15557
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15558
hardcode_libdir_flag_spec_F77='-L$libdir'
15559
hardcode_shlibpath_var_F77=no
15566
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15567
# support. Future versions do this automatically, but an explicit c++rt0.o
15568
# does not break anything, and helps significantly (at the cost of a little
15571
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15572
hardcode_libdir_flag_spec_F77='-R$libdir'
15573
hardcode_direct_F77=yes
15574
hardcode_shlibpath_var_F77=no
15577
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15579
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15580
hardcode_direct_F77=yes
15581
hardcode_minus_L_F77=yes
15582
hardcode_shlibpath_var_F77=no
15585
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15586
freebsd* | dragonfly*)
15587
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15588
hardcode_libdir_flag_spec_F77='-R$libdir'
15589
hardcode_direct_F77=yes
15590
hardcode_shlibpath_var_F77=no
15594
if test "$GCC" = yes; then
15595
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'
15597
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'
15599
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15600
hardcode_libdir_separator_F77=:
15601
hardcode_direct_F77=yes
15603
# hardcode_minus_L: Not really in the search PATH,
15604
# but as the default location of the library.
15605
hardcode_minus_L_F77=yes
15606
export_dynamic_flag_spec_F77='${wl}-E'
15610
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15611
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15613
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15615
if test "$with_gnu_ld" = no; then
15616
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15617
hardcode_libdir_separator_F77=:
15619
hardcode_direct_F77=yes
15620
export_dynamic_flag_spec_F77='${wl}-E'
15622
# hardcode_minus_L: Not really in the search PATH,
15623
# but as the default location of the library.
15624
hardcode_minus_L_F77=yes
15629
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15632
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15635
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15638
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15644
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15647
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15650
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15654
if test "$with_gnu_ld" = no; then
15655
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15656
hardcode_libdir_separator_F77=:
15660
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15661
hardcode_direct_F77=no
15662
hardcode_shlibpath_var_F77=no
15665
hardcode_direct_F77=yes
15666
export_dynamic_flag_spec_F77='${wl}-E'
15668
# hardcode_minus_L: Not really in the search PATH,
15669
# but as the default location of the library.
15670
hardcode_minus_L_F77=yes
15676
irix5* | irix6* | nonstopux*)
15677
if test "$GCC" = yes; then
15678
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'
15680
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'
15681
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15683
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15684
hardcode_libdir_separator_F77=:
15685
link_all_deplibs_F77=yes
15689
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15690
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15692
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15694
hardcode_libdir_flag_spec_F77='-R$libdir'
15695
hardcode_direct_F77=yes
15696
hardcode_shlibpath_var_F77=no
15700
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701
hardcode_direct_F77=yes
15702
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15703
hardcode_libdir_separator_F77=:
15704
hardcode_shlibpath_var_F77=no
15708
if test -f /usr/libexec/ld.so; then
15709
hardcode_direct_F77=yes
15710
hardcode_shlibpath_var_F77=no
15711
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15712
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15713
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15714
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15715
export_dynamic_flag_spec_F77='${wl}-E'
15718
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15719
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15720
hardcode_libdir_flag_spec_F77='-R$libdir'
15723
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15734
hardcode_libdir_flag_spec_F77='-L$libdir'
15735
hardcode_minus_L_F77=yes
15736
allow_undefined_flag_F77=unsupported
15737
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'
15738
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15742
if test "$GCC" = yes; then
15743
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15744
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'
15746
allow_undefined_flag_F77=' -expect_unresolved \*'
15747
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'
15749
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15750
hardcode_libdir_separator_F77=:
15753
osf4* | osf5*) # as osf3* with the addition of -msym flag
15754
if test "$GCC" = yes; then
15755
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15756
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'
15757
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15759
allow_undefined_flag_F77=' -expect_unresolved \*'
15760
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'
15761
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~
15762
$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'
15764
# Both c and cxx compiler support -rpath directly
15765
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15767
hardcode_libdir_separator_F77=:
15771
no_undefined_flag_F77=' -z text'
15772
if test "$GCC" = yes; then
15774
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15775
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15776
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15779
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15780
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15781
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15783
hardcode_libdir_flag_spec_F77='-R$libdir'
15784
hardcode_shlibpath_var_F77=no
15786
solaris2.[0-5] | solaris2.[0-5].*) ;;
15788
# The compiler driver will combine and reorder linker options,
15789
# but understands `-z linker_flag'. GCC discards it without `$wl',
15790
# but is careful enough not to reorder.
15791
# Supported since Solaris 2.6 (maybe 2.5.1?)
15792
if test "$GCC" = yes; then
15793
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15795
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15799
link_all_deplibs_F77=yes
15803
if test "x$host_vendor" = xsequent; then
15804
# Use $CC to link under sequent, because it throws in some extra .o
15805
# files that make .init and .fini sections work.
15806
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15808
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15810
hardcode_libdir_flag_spec_F77='-L$libdir'
15811
hardcode_direct_F77=yes
15812
hardcode_minus_L_F77=yes
15813
hardcode_shlibpath_var_F77=no
15817
case $host_vendor in
15819
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15820
hardcode_direct_F77=yes # is this really true???
15823
## LD is ld it makes a PLAMLIB
15824
## CC just makes a GrossModule.
15825
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15826
reload_cmds_F77='$CC -r -o $output$reload_objs'
15827
hardcode_direct_F77=no
15830
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15834
runpath_var='LD_RUN_PATH'
15835
hardcode_shlibpath_var_F77=no
15839
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840
hardcode_shlibpath_var_F77=no
15841
export_dynamic_flag_spec_F77='-Bexport'
15845
if test -d /usr/nec; then
15846
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15847
hardcode_shlibpath_var_F77=no
15848
runpath_var=LD_RUN_PATH
15849
hardcode_runpath_var=yes
15854
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15855
no_undefined_flag_F77='${wl}-z,text'
15856
archive_cmds_need_lc_F77=no
15857
hardcode_shlibpath_var_F77=no
15858
runpath_var='LD_RUN_PATH'
15860
if test "$GCC" = yes; then
15861
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15864
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15865
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15869
sysv5* | sco3.2v5* | sco5v6*)
15870
# Note: We can NOT use -z defs as we might desire, because we do not
15871
# link with -lc, and that would cause any symbols used from libc to
15872
# always be unresolved, which means just about no library would
15873
# ever link correctly. If we're not using GNU ld we use -z text
15874
# though, which does catch some bad symbols but isn't as heavy-handed
15876
no_undefined_flag_F77='${wl}-z,text'
15877
allow_undefined_flag_F77='${wl}-z,nodefs'
15878
archive_cmds_need_lc_F77=no
15879
hardcode_shlibpath_var_F77=no
15880
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15881
hardcode_libdir_separator_F77=':'
15882
link_all_deplibs_F77=yes
15883
export_dynamic_flag_spec_F77='${wl}-Bexport'
15884
runpath_var='LD_RUN_PATH'
15886
if test "$GCC" = yes; then
15887
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15891
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15896
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15897
hardcode_libdir_flag_spec_F77='-L$libdir'
15898
hardcode_shlibpath_var_F77=no
15907
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15908
$as_echo "$ld_shlibs_F77" >&6; }
15909
test "$ld_shlibs_F77" = no && can_build_shared=no
15912
# Do we need to explicitly link libc?
15914
case "x$archive_cmds_need_lc_F77" in
15916
# Assume -lc should be added
15917
archive_cmds_need_lc_F77=yes
15919
if test "$enable_shared" = yes && test "$GCC" = yes; then
15920
case $archive_cmds_F77 in
15922
# FIXME: we may have to deal with multi-command sequences.
15925
# Test whether the compiler implicitly links with -lc since on some
15926
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15927
# to ld, don't add -lc before -lgcc.
15928
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15929
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15931
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934
(eval $ac_compile) 2>&5
15936
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937
(exit $ac_status); } 2>conftest.err; then
15940
libobjs=conftest.$ac_objext
15942
wl=$lt_prog_compiler_wl_F77
15943
pic_flag=$lt_prog_compiler_pic_F77
15949
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15950
allow_undefined_flag_F77=
15951
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15952
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15954
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955
(exit $ac_status); }
15957
archive_cmds_need_lc_F77=no
15959
archive_cmds_need_lc_F77=yes
15961
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15963
cat conftest.err 1>&5
15966
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15967
$as_echo "$archive_cmds_need_lc_F77" >&6; }
15974
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15975
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15976
library_names_spec=
15977
libname_spec='lib$name'
15981
postuninstall_cmds=
15985
shlibpath_overrides_runpath=unknown
15987
dynamic_linker="$host_os ld.so"
15988
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15990
need_lib_prefix=unknown
15991
hardcode_into_libs=no
15993
# when you set need_version to no, make sure it does not cause -set_version
15994
# flags to be left without arguments
15995
need_version=unknown
16000
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16001
shlibpath_var=LIBPATH
16003
# AIX 3 has no versioning support, so we append a major version to the name.
16004
soname_spec='${libname}${release}${shared_ext}$major'
16011
hardcode_into_libs=yes
16012
if test "$host_cpu" = ia64; then
16013
# AIX 5 supports IA64
16014
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16015
shlibpath_var=LD_LIBRARY_PATH
16017
# With GCC up to 2.95.x, collect2 would create an import file
16018
# for dependence libraries. The import file would start with
16019
# the line `#! .'. This would cause the generated library to
16020
# depend on `.', always an invalid library. This was fixed in
16021
# development snapshots of GCC prior to 3.0.
16023
aix4 | aix4.[01] | aix4.[01].*)
16024
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16026
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16029
can_build_shared=no
16033
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16034
# soname into executable. Probably we can add versioning support to
16035
# collect2, so additional links can be useful in future.
16036
if test "$aix_use_runtimelinking" = yes; then
16037
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16038
# instead of lib<name>.a to let people know that these are not
16039
# typical AIX shared libraries.
16040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042
# We preserve .a as extension for shared libraries through AIX4.2
16043
# and later when we are not doing run time linking.
16044
library_names_spec='${libname}${release}.a $libname.a'
16045
soname_spec='${libname}${release}${shared_ext}$major'
16047
shlibpath_var=LIBPATH
16052
library_names_spec='$libname.ixlibrary $libname.a'
16053
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16054
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'
16058
library_names_spec='${libname}${shared_ext}'
16059
dynamic_linker="$host_os ld.so"
16060
shlibpath_var=LIBRARY_PATH
16066
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16067
soname_spec='${libname}${release}${shared_ext}$major'
16068
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16069
shlibpath_var=LD_LIBRARY_PATH
16070
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16071
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16072
# the default ld.so.conf also contains /usr/contrib/lib and
16073
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16074
# libtool to hard-code these into programs
16077
cygwin* | mingw* | pw32*)
16078
version_type=windows
16083
case $GCC,$host_os in
16084
yes,cygwin* | yes,mingw* | yes,pw32*)
16085
library_names_spec='$libname.dll.a'
16086
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16087
postinstall_cmds='base_file=`basename \${file}`~
16088
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16089
dldir=$destdir/`dirname \$dlpath`~
16090
test -d \$dldir || mkdir -p \$dldir~
16091
$install_prog $dir/$dlname \$dldir/$dlname~
16092
chmod a+x \$dldir/$dlname'
16093
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16094
dlpath=$dir/\$dldll~
16096
shlibpath_overrides_runpath=yes
16100
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16101
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16102
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16105
# MinGW DLLs use traditional 'lib' prefix
16106
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16107
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16108
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16109
# It is most probably a Windows format PATH printed by
16110
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16111
# path with ; separators, and with drive letters. We can handle the
16112
# drive letters (cygwin fileutils understands them), so leave them,
16113
# especially as we might pass files found there to a mingw objdump,
16114
# which wouldn't understand a cygwinified path. Ahh.
16115
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16117
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16121
# pw32 DLLs use 'pw' prefix rather than 'lib'
16122
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16128
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16131
dynamic_linker='Win32 ld.exe'
16132
# FIXME: first we should search . and the directory the executable is in
16136
darwin* | rhapsody*)
16137
dynamic_linker="$host_os dyld"
16138
version_type=darwin
16141
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16142
soname_spec='${libname}${release}${major}$shared_ext'
16143
shlibpath_overrides_runpath=yes
16144
shlibpath_var=DYLD_LIBRARY_PATH
16145
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16147
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16155
soname_spec='${libname}${release}${shared_ext}$major'
16156
shlibpath_var=LD_LIBRARY_PATH
16163
freebsd* | dragonfly*)
16164
# DragonFly does not have aout. When/if they implement a new
16165
# versioning mechanism, adjust this.
16166
if test -x /usr/bin/objformat; then
16167
objformat=`/usr/bin/objformat`
16170
freebsd[123]*) objformat=aout ;;
16171
*) objformat=elf ;;
16174
version_type=freebsd-$objformat
16175
case $version_type in
16177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16186
shlibpath_var=LD_LIBRARY_PATH
16189
shlibpath_overrides_runpath=yes
16191
freebsd3.[01]* | freebsdelf3.[01]*)
16192
shlibpath_overrides_runpath=yes
16193
hardcode_into_libs=yes
16195
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16196
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16197
shlibpath_overrides_runpath=no
16198
hardcode_into_libs=yes
16200
*) # from 4.6 on, and DragonFly
16201
shlibpath_overrides_runpath=yes
16202
hardcode_into_libs=yes
16211
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16212
soname_spec='${libname}${release}${shared_ext}$major'
16213
shlibpath_var=LD_LIBRARY_PATH
16214
hardcode_into_libs=yes
16217
hpux9* | hpux10* | hpux11*)
16218
# Give a soname corresponding to the major version so that dld.sl refuses to
16219
# link against other versions.
16226
hardcode_into_libs=yes
16227
dynamic_linker="$host_os dld.so"
16228
shlibpath_var=LD_LIBRARY_PATH
16229
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231
soname_spec='${libname}${release}${shared_ext}$major'
16232
if test "X$HPUX_IA64_MODE" = X32; then
16233
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16235
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16237
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16241
hardcode_into_libs=yes
16242
dynamic_linker="$host_os dld.sl"
16243
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16244
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16245
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246
soname_spec='${libname}${release}${shared_ext}$major'
16247
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16248
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16252
dynamic_linker="$host_os dld.sl"
16253
shlibpath_var=SHLIB_PATH
16254
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256
soname_spec='${libname}${release}${shared_ext}$major'
16259
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16260
postinstall_cmds='chmod 555 $lib'
16267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16268
soname_spec='${libname}${release}${shared_ext}$major'
16269
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16270
shlibpath_var=LD_LIBRARY_PATH
16271
shlibpath_overrides_runpath=no
16272
hardcode_into_libs=yes
16275
irix5* | irix6* | nonstopux*)
16277
nonstopux*) version_type=nonstopux ;;
16279
if test "$lt_cv_prog_gnu_ld" = yes; then
16287
soname_spec='${libname}${release}${shared_ext}$major'
16288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16290
irix5* | nonstopux*)
16291
libsuff= shlibsuff=
16294
case $LD in # libtool.m4 will add one of these switches to LD
16295
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16296
libsuff= shlibsuff= libmagic=32-bit;;
16297
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16298
libsuff=32 shlibsuff=N32 libmagic=N32;;
16299
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16300
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16301
*) libsuff= shlibsuff= libmagic=never-match;;
16305
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16306
shlibpath_overrides_runpath=no
16307
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16308
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16309
hardcode_into_libs=yes
16312
# No shared lib support for Linux oldld, aout, or coff.
16313
linux*oldld* | linux*aout* | linux*coff*)
16317
# This must be Linux ELF.
16318
linux* | k*bsd*-gnu)
16322
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323
soname_spec='${libname}${release}${shared_ext}$major'
16324
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16325
shlibpath_var=LD_LIBRARY_PATH
16326
shlibpath_overrides_runpath=no
16327
# This implies no fast_install, which is unacceptable.
16328
# Some rework will be needed to allow for fast_install
16329
# before this can be enabled.
16330
hardcode_into_libs=yes
16331
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16332
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16334
# Append ld.so.conf contents to the search path
16335
if test -f /etc/ld.so.conf; then
16336
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' ' '`
16337
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16340
# We used to test for /lib/ld.so.1 and disable shared libraries on
16341
# powerpc, because MkLinux only supported shared libraries with the
16342
# GNU dynamic linker. Since this was broken with cross compilers,
16343
# most powerpc-linux boxes support dynamic linking these days and
16344
# people can always --disable-shared, the test was removed, and we
16345
# assume the GNU/Linux dynamic linker is in use.
16346
dynamic_linker='GNU/Linux ld.so'
16353
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16355
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16356
dynamic_linker='NetBSD (a.out) ld.so'
16358
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16359
soname_spec='${libname}${release}${shared_ext}$major'
16360
dynamic_linker='NetBSD ld.elf_so'
16362
shlibpath_var=LD_LIBRARY_PATH
16363
shlibpath_overrides_runpath=yes
16364
hardcode_into_libs=yes
16369
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370
shlibpath_var=LD_LIBRARY_PATH
16371
shlibpath_overrides_runpath=yes
16378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379
soname_spec='${libname}${release}${shared_ext}$major'
16380
shlibpath_var=LD_LIBRARY_PATH
16381
shlibpath_overrides_runpath=yes
16386
sys_lib_dlsearch_path_spec="/usr/lib"
16388
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16390
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16391
*) need_version=no ;;
16393
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16394
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16395
shlibpath_var=LD_LIBRARY_PATH
16396
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16398
openbsd2.[89] | openbsd2.[89].*)
16399
shlibpath_overrides_runpath=no
16402
shlibpath_overrides_runpath=yes
16406
shlibpath_overrides_runpath=yes
16411
libname_spec='$name'
16414
library_names_spec='$libname${shared_ext} $libname.a'
16415
dynamic_linker='OS/2 ld.exe'
16416
shlibpath_var=LIBPATH
16419
osf3* | osf4* | osf5*)
16423
soname_spec='${libname}${release}${shared_ext}$major'
16424
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425
shlibpath_var=LD_LIBRARY_PATH
16426
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16427
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16439
soname_spec='${libname}${release}${shared_ext}$major'
16440
shlibpath_var=LD_LIBRARY_PATH
16441
shlibpath_overrides_runpath=yes
16442
hardcode_into_libs=yes
16443
# ldd complains unless libraries are executable
16444
postinstall_cmds='chmod +x $lib'
16449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16450
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16451
shlibpath_var=LD_LIBRARY_PATH
16452
shlibpath_overrides_runpath=yes
16453
if test "$with_gnu_ld" = yes; then
16461
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16462
soname_spec='${libname}${release}${shared_ext}$major'
16463
shlibpath_var=LD_LIBRARY_PATH
16464
case $host_vendor in
16466
shlibpath_overrides_runpath=no
16468
export_dynamic_flag_spec='${wl}-Blargedynsym'
16469
runpath_var=LD_RUN_PATH
16477
shlibpath_overrides_runpath=no
16478
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16484
if test -d /usr/nec ;then
16486
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16487
soname_spec='$libname${shared_ext}.$major'
16488
shlibpath_var=LD_LIBRARY_PATH
16492
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16493
version_type=freebsd-elf
16496
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16497
soname_spec='${libname}${release}${shared_ext}$major'
16498
shlibpath_var=LD_LIBRARY_PATH
16499
hardcode_into_libs=yes
16500
if test "$with_gnu_ld" = yes; then
16501
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16502
shlibpath_overrides_runpath=no
16504
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16505
shlibpath_overrides_runpath=yes
16508
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16512
sys_lib_dlsearch_path_spec='/usr/lib'
16517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518
soname_spec='${libname}${release}${shared_ext}$major'
16519
shlibpath_var=LD_LIBRARY_PATH
16526
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16527
$as_echo "$dynamic_linker" >&6; }
16528
test "$dynamic_linker" = no && can_build_shared=no
16530
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16531
$as_echo_n "(cached) " >&6
16533
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16536
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16537
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16538
$as_echo_n "(cached) " >&6
16540
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16543
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16545
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16546
if test "$GCC" = yes; then
16547
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16550
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16551
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16552
hardcode_action_F77=
16553
if test -n "$hardcode_libdir_flag_spec_F77" || \
16554
test -n "$runpath_var_F77" || \
16555
test "X$hardcode_automatic_F77" = "Xyes" ; then
16557
# We can hardcode non-existant directories.
16558
if test "$hardcode_direct_F77" != no &&
16559
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16560
# have to relink, otherwise we might link with an installed library
16561
# when we should be linking with a yet-to-be-installed one
16562
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16563
test "$hardcode_minus_L_F77" != no; then
16564
# Linking always hardcodes the temporary library directory.
16565
hardcode_action_F77=relink
16567
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16568
hardcode_action_F77=immediate
16571
# We cannot hardcode anything, or else we can only hardcode existing
16573
hardcode_action_F77=unsupported
16575
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16576
$as_echo "$hardcode_action_F77" >&6; }
16578
if test "$hardcode_action_F77" = relink; then
16579
# Fast installation is not supported
16580
enable_fast_install=no
16581
elif test "$shlibpath_overrides_runpath" = yes ||
16582
test "$enable_shared" = no; then
16583
# Fast installation is not necessary
16584
enable_fast_install=needless
16588
# The else clause should only fire when bootstrapping the
16589
# libtool distribution, otherwise you forgot to ship ltmain.sh
16590
# with your package, and you will get complaints that there are
16591
# no rules to generate ltmain.sh.
16592
if test -f "$ltmain"; then
16593
# See if we are running on zsh, and set the options which allow our commands through
16594
# without removal of \ escapes.
16595
if test -n "${ZSH_VERSION+set}" ; then
16596
setopt NO_GLOB_SUBST
16598
# Now quote all the things that may contain metacharacters while being
16599
# careful not to overquote the AC_SUBSTed values. We take copies of the
16600
# variables and quote the copies for generation of the libtool script.
16601
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16603
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16604
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16605
deplibs_check_method reload_flag reload_cmds need_locks \
16606
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16607
lt_cv_sys_global_symbol_to_c_name_address \
16608
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16609
old_postinstall_cmds old_postuninstall_cmds \
16613
lt_prog_compiler_wl_F77 \
16614
lt_prog_compiler_pic_F77 \
16615
lt_prog_compiler_static_F77 \
16616
lt_prog_compiler_no_builtin_flag_F77 \
16617
export_dynamic_flag_spec_F77 \
16618
thread_safe_flag_spec_F77 \
16619
whole_archive_flag_spec_F77 \
16620
enable_shared_with_static_runtimes_F77 \
16621
old_archive_cmds_F77 \
16622
old_archive_from_new_cmds_F77 \
16623
predep_objects_F77 \
16624
postdep_objects_F77 \
16627
compiler_lib_search_path_F77 \
16628
compiler_lib_search_dirs_F77 \
16630
archive_expsym_cmds_F77 \
16631
postinstall_cmds_F77 \
16632
postuninstall_cmds_F77 \
16633
old_archive_from_expsyms_cmds_F77 \
16634
allow_undefined_flag_F77 \
16635
no_undefined_flag_F77 \
16636
export_symbols_cmds_F77 \
16637
hardcode_libdir_flag_spec_F77 \
16638
hardcode_libdir_flag_spec_ld_F77 \
16639
hardcode_libdir_separator_F77 \
16640
hardcode_automatic_F77 \
16642
module_expsym_cmds_F77 \
16643
lt_cv_prog_compiler_c_o_F77 \
16644
fix_srcfile_path_F77 \
16645
exclude_expsyms_F77 \
16646
include_expsyms_F77; do
16649
old_archive_cmds_F77 | \
16650
old_archive_from_new_cmds_F77 | \
16651
archive_cmds_F77 | \
16652
archive_expsym_cmds_F77 | \
16653
module_cmds_F77 | \
16654
module_expsym_cmds_F77 | \
16655
old_archive_from_expsyms_cmds_F77 | \
16656
export_symbols_cmds_F77 | \
16657
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16658
postinstall_cmds | postuninstall_cmds | \
16659
old_postinstall_cmds | old_postuninstall_cmds | \
16660
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16661
# Double-quote double-evaled strings.
16662
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16665
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16671
*'\$0 --fallback-echo"')
16672
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16678
cat <<__EOF__ >> "$cfgfile"
16679
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16681
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16683
# Shell to use when invoking shell scripts.
16686
# Whether or not to build shared libraries.
16687
build_libtool_libs=$enable_shared
16689
# Whether or not to build static libraries.
16690
build_old_libs=$enable_static
16692
# Whether or not to add -lc for building shared libraries.
16693
build_libtool_need_lc=$archive_cmds_need_lc_F77
16695
# Whether or not to disallow shared libs when runtime libs are static
16696
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16698
# Whether or not to optimize for fast installation.
16699
fast_install=$enable_fast_install
16702
host_alias=$host_alias
16706
# The build system.
16707
build_alias=$build_alias
16711
# An echo program that does not interpret backslashes.
16716
AR_FLAGS=$lt_AR_FLAGS
16721
# LTCC compiler flags.
16722
LTCFLAGS=$lt_LTCFLAGS
16724
# A language-specific compiler.
16725
CC=$lt_compiler_F77
16727
# Is the compiler the GNU C compiler?
16733
# The linker used to build libraries.
16736
# Whether we need hard or soft links.
16739
# A BSD-compatible nm program.
16742
# A symbol stripping program
16745
# Used to examine libraries when file_magic_cmd begins "file"
16746
MAGIC_CMD=$MAGIC_CMD
16748
# Used on cygwin: DLL creation program.
16751
# Used on cygwin: object dumper.
16754
# Used on cygwin: assembler.
16757
# The name of the directory that contains temporary libtool files.
16760
# How to create reloadable object files.
16761
reload_flag=$lt_reload_flag
16762
reload_cmds=$lt_reload_cmds
16764
# How to pass a linker flag through the compiler.
16765
wl=$lt_lt_prog_compiler_wl_F77
16767
# Object file suffix (normally "o").
16768
objext="$ac_objext"
16770
# Old archive suffix (normally "a").
16773
# Shared library suffix (normally ".so").
16774
shrext_cmds='$shrext_cmds'
16776
# Executable file suffix (normally "").
16779
# Additional compiler flags for building library objects.
16780
pic_flag=$lt_lt_prog_compiler_pic_F77
16783
# What is the maximum length of a command?
16784
max_cmd_len=$lt_cv_sys_max_cmd_len
16786
# Does compiler simultaneously support -c and -o options?
16787
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16789
# Must we lock files when doing compilation?
16790
need_locks=$lt_need_locks
16792
# Do we need the lib prefix for modules?
16793
need_lib_prefix=$need_lib_prefix
16795
# Do we need a version for libraries?
16796
need_version=$need_version
16798
# Whether dlopen is supported.
16799
dlopen_support=$enable_dlopen
16801
# Whether dlopen of programs is supported.
16802
dlopen_self=$enable_dlopen_self
16804
# Whether dlopen of statically linked programs is supported.
16805
dlopen_self_static=$enable_dlopen_self_static
16807
# Compiler flag to prevent dynamic linking.
16808
link_static_flag=$lt_lt_prog_compiler_static_F77
16810
# Compiler flag to turn off builtin functions.
16811
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16813
# Compiler flag to allow reflexive dlopens.
16814
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16816
# Compiler flag to generate shared objects directly from archives.
16817
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16819
# Compiler flag to generate thread-safe objects.
16820
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16822
# Library versioning type.
16823
version_type=$version_type
16825
# Format of library name prefix.
16826
libname_spec=$lt_libname_spec
16828
# List of archive names. First name is the real one, the rest are links.
16829
# The last name is the one that the linker finds with -lNAME.
16830
library_names_spec=$lt_library_names_spec
16832
# The coded name of the library, if different from the real name.
16833
soname_spec=$lt_soname_spec
16835
# Commands used to build and install an old-style archive.
16837
old_archive_cmds=$lt_old_archive_cmds_F77
16838
old_postinstall_cmds=$lt_old_postinstall_cmds
16839
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16841
# Create an old-style archive from a shared archive.
16842
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16844
# Create a temporary old-style archive to link instead of a shared archive.
16845
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16847
# Commands used to build and install a shared archive.
16848
archive_cmds=$lt_archive_cmds_F77
16849
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16850
postinstall_cmds=$lt_postinstall_cmds
16851
postuninstall_cmds=$lt_postuninstall_cmds
16853
# Commands used to build a loadable module (assumed same as above if empty)
16854
module_cmds=$lt_module_cmds_F77
16855
module_expsym_cmds=$lt_module_expsym_cmds_F77
16857
# Commands to strip libraries.
16858
old_striplib=$lt_old_striplib
16859
striplib=$lt_striplib
16861
# Dependencies to place before the objects being linked to create a
16863
predep_objects=$lt_predep_objects_F77
16865
# Dependencies to place after the objects being linked to create a
16867
postdep_objects=$lt_postdep_objects_F77
16869
# Dependencies to place before the objects being linked to create a
16871
predeps=$lt_predeps_F77
16873
# Dependencies to place after the objects being linked to create a
16875
postdeps=$lt_postdeps_F77
16877
# The directories searched by this compiler when creating a shared
16879
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16881
# The library search path used internally by the compiler when linking
16882
# a shared library.
16883
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16885
# Method to check whether dependent libraries are shared objects.
16886
deplibs_check_method=$lt_deplibs_check_method
16888
# Command to use when deplibs_check_method == file_magic.
16889
file_magic_cmd=$lt_file_magic_cmd
16891
# Flag that allows shared libraries with undefined symbols to be built.
16892
allow_undefined_flag=$lt_allow_undefined_flag_F77
16894
# Flag that forces no undefined symbols.
16895
no_undefined_flag=$lt_no_undefined_flag_F77
16897
# Commands used to finish a libtool library installation in a directory.
16898
finish_cmds=$lt_finish_cmds
16900
# Same as above, but a single script fragment to be evaled but not shown.
16901
finish_eval=$lt_finish_eval
16903
# Take the output of nm and produce a listing of raw symbols and C names.
16904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16906
# Transform the output of nm in a proper C declaration
16907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16909
# Transform the output of nm in a C name address pair
16910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16912
# This is the shared library runtime path variable.
16913
runpath_var=$runpath_var
16915
# This is the shared library path variable.
16916
shlibpath_var=$shlibpath_var
16918
# Is shlibpath searched before the hard-coded library search path?
16919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16921
# How to hardcode a shared library path into an executable.
16922
hardcode_action=$hardcode_action_F77
16924
# Whether we should hardcode library paths into libraries.
16925
hardcode_into_libs=$hardcode_into_libs
16927
# Flag to hardcode \$libdir into a binary during linking.
16928
# This must work even if \$libdir does not exist.
16929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16931
# If ld is used when linking, flag to hardcode \$libdir into
16932
# a binary during linking. This must work even if \$libdir does
16934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16936
# Whether we need a single -rpath flag with a separated argument.
16937
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16940
# resulting binary.
16941
hardcode_direct=$hardcode_direct_F77
16943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16944
# resulting binary.
16945
hardcode_minus_L=$hardcode_minus_L_F77
16947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16948
# the resulting binary.
16949
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16951
# Set to yes if building a shared library automatically hardcodes DIR into the library
16952
# and all subsequent libraries and executables linked against it.
16953
hardcode_automatic=$hardcode_automatic_F77
16955
# Variables whose values should be saved in libtool wrapper scripts and
16956
# restored at relink time.
16957
variables_saved_for_relink="$variables_saved_for_relink"
16959
# Whether libtool must link a program against all its dependency libraries.
16960
link_all_deplibs=$link_all_deplibs_F77
16962
# Compile-time system search path for libraries
16963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16965
# Run-time system search path for libraries
16966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16968
# Fix the shell variable \$srcfile for the compiler.
16969
fix_srcfile_path=$lt_fix_srcfile_path
16971
# Set to yes if exported symbols are required.
16972
always_export_symbols=$always_export_symbols_F77
16974
# The commands to list exported symbols.
16975
export_symbols_cmds=$lt_export_symbols_cmds_F77
16977
# The commands to extract the exported symbol list from a shared archive.
16978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16980
# Symbols that should not be listed in the preloaded symbols.
16981
exclude_expsyms=$lt_exclude_expsyms_F77
16983
# Symbols that must always be exported.
16984
include_expsyms=$lt_include_expsyms_F77
16986
# ### END LIBTOOL TAG CONFIG: $tagname
16992
# If there is no Makefile yet, we rely on a make rule to execute
16993
# `config.status --recheck' to rerun these tests and create the
16994
# libtool script then.
16995
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16996
if test -f "$ltmain_in"; then
16997
test -f Makefile && make "$ltmain"
17003
ac_cpp='$CPP $CPPFLAGS'
17004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17016
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17019
# Source file extension for Java test sources.
17022
# Object file extension for compiled Java test sources.
17026
# Code to be used in simple compile tests
17027
lt_simple_compile_test_code="class foo {}"
17029
# Code to be used in simple link tests
17030
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17032
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17034
# If no C compiler was specified, use CC.
17037
# If no C compiler flags were specified, use CFLAGS.
17038
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17040
# Allow CC to be a program name with arguments.
17044
# save warnings/boilerplate of simple test code
17045
ac_outfile=conftest.$ac_objext
17046
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17047
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17048
_lt_compiler_boilerplate=`cat conftest.err`
17051
ac_outfile=conftest.$ac_objext
17052
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17053
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17054
_lt_linker_boilerplate=`cat conftest.err`
17058
# Allow CC to be a program name with arguments.
17063
for cc_temp in $compiler""; do
17065
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17066
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17071
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17074
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17075
archive_cmds_need_lc_GCJ=no
17077
old_archive_cmds_GCJ=$old_archive_cmds
17080
lt_prog_compiler_no_builtin_flag_GCJ=
17082
if test "$GCC" = yes; then
17083
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17086
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17087
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17088
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17089
$as_echo_n "(cached) " >&6
17091
lt_cv_prog_compiler_rtti_exceptions=no
17092
ac_outfile=conftest.$ac_objext
17093
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17094
lt_compiler_flag="-fno-rtti -fno-exceptions"
17095
# Insert the option either (1) after the last *FLAGS variable, or
17096
# (2) before a word containing "conftest.", or (3) at the end.
17097
# Note that $ac_compile itself does not contain backslashes and begins
17098
# with a dollar sign (not a hyphen), so the echo should work correctly.
17099
# The option is referenced via a variable to avoid confusing sed.
17100
lt_compile=`echo "$ac_compile" | $SED \
17101
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17102
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17103
-e 's:$: $lt_compiler_flag:'`
17104
(eval echo "\"\$as_me:17104: $lt_compile\"" >&5)
17105
(eval "$lt_compile" 2>conftest.err)
17107
cat conftest.err >&5
17108
echo "$as_me:17108: \$? = $ac_status" >&5
17109
if (exit $ac_status) && test -s "$ac_outfile"; then
17110
# The compiler can only warn and ignore the option if not recognized
17111
# So say no if there are warnings other than the usual output.
17112
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17113
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17114
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17115
lt_cv_prog_compiler_rtti_exceptions=yes
17121
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17122
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17124
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17125
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17132
lt_prog_compiler_wl_GCJ=
17133
lt_prog_compiler_pic_GCJ=
17134
lt_prog_compiler_static_GCJ=
17136
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17137
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17139
if test "$GCC" = yes; then
17140
lt_prog_compiler_wl_GCJ='-Wl,'
17141
lt_prog_compiler_static_GCJ='-static'
17145
# All AIX code is PIC.
17146
if test "$host_cpu" = ia64; then
17147
# AIX 5 now supports IA64 processor
17148
lt_prog_compiler_static_GCJ='-Bstatic'
17153
# FIXME: we need at least 68020 code to build shared libraries, but
17154
# adding the `-m68020' flag to GCC prevents building anything better,
17156
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17159
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17160
# PIC is the default for these OSes.
17163
mingw* | cygwin* | pw32* | os2*)
17164
# This hack is so that the source file can tell whether it is being
17165
# built for inclusion in a dll (and should export symbols for example).
17166
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17167
# (--disable-auto-import) libraries
17171
darwin* | rhapsody*)
17172
# PIC is the default on this platform
17173
# Common symbols not allowed in MH_DYLIB files
17174
lt_prog_compiler_pic_GCJ='-fno-common'
17178
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17179
# Instead, we relocate shared libraries at runtime.
17183
# Just because we use GCC doesn't mean we suddenly get shared libraries
17184
# on systems that don't support them.
17185
lt_prog_compiler_can_build_shared_GCJ=no
17190
if test -d /usr/nec; then
17191
lt_prog_compiler_pic_GCJ=-Kconform_pic
17196
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17197
# not for PA HP-UX.
17203
lt_prog_compiler_pic_GCJ='-fPIC'
17209
lt_prog_compiler_pic_GCJ='-fPIC'
17213
# PORTME Check for flag to pass linker flags through the system compiler.
17216
lt_prog_compiler_wl_GCJ='-Wl,'
17217
if test "$host_cpu" = ia64; then
17218
# AIX 5 now supports IA64 processor
17219
lt_prog_compiler_static_GCJ='-Bstatic'
17221
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17225
# PIC is the default on this platform
17226
# Common symbols not allowed in MH_DYLIB files
17227
case $cc_basename in
17229
lt_prog_compiler_pic_GCJ='-qnocommon'
17230
lt_prog_compiler_wl_GCJ='-Wl,'
17235
mingw* | cygwin* | pw32* | os2*)
17236
# This hack is so that the source file can tell whether it is being
17237
# built for inclusion in a dll (and should export symbols for example).
17241
hpux9* | hpux10* | hpux11*)
17242
lt_prog_compiler_wl_GCJ='-Wl,'
17243
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17244
# not for PA HP-UX.
17250
lt_prog_compiler_pic_GCJ='+Z'
17253
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17254
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17257
irix5* | irix6* | nonstopux*)
17258
lt_prog_compiler_wl_GCJ='-Wl,'
17259
# PIC (with -KPIC) is the default.
17260
lt_prog_compiler_static_GCJ='-non_shared'
17264
lt_prog_compiler_pic_GCJ='-KPIC'
17265
lt_prog_compiler_static_GCJ='-Bstatic'
17268
linux* | k*bsd*-gnu)
17269
case $cc_basename in
17271
lt_prog_compiler_wl_GCJ='-Wl,'
17272
lt_prog_compiler_pic_GCJ='-KPIC'
17273
lt_prog_compiler_static_GCJ='-static'
17275
pgcc* | pgf77* | pgf90* | pgf95*)
17276
# Portland Group compilers (*not* the Pentium gcc compiler,
17277
# which looks to be a dead project)
17278
lt_prog_compiler_wl_GCJ='-Wl,'
17279
lt_prog_compiler_pic_GCJ='-fpic'
17280
lt_prog_compiler_static_GCJ='-Bstatic'
17283
lt_prog_compiler_wl_GCJ='-Wl,'
17284
# All Alpha code is PIC.
17285
lt_prog_compiler_static_GCJ='-non_shared'
17288
case `$CC -V 2>&1 | sed 5q` in
17291
lt_prog_compiler_pic_GCJ='-KPIC'
17292
lt_prog_compiler_static_GCJ='-Bstatic'
17293
lt_prog_compiler_wl_GCJ='-Wl,'
17296
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17297
lt_prog_compiler_pic_GCJ='-KPIC'
17298
lt_prog_compiler_static_GCJ='-Bstatic'
17299
lt_prog_compiler_wl_GCJ=''
17306
osf3* | osf4* | osf5*)
17307
lt_prog_compiler_wl_GCJ='-Wl,'
17308
# All OSF/1 code is PIC.
17309
lt_prog_compiler_static_GCJ='-non_shared'
17313
lt_prog_compiler_static_GCJ='-non_shared'
17317
lt_prog_compiler_pic_GCJ='-KPIC'
17318
lt_prog_compiler_static_GCJ='-Bstatic'
17319
case $cc_basename in
17320
f77* | f90* | f95*)
17321
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17323
lt_prog_compiler_wl_GCJ='-Wl,';;
17328
lt_prog_compiler_wl_GCJ='-Qoption ld '
17329
lt_prog_compiler_pic_GCJ='-PIC'
17330
lt_prog_compiler_static_GCJ='-Bstatic'
17333
sysv4 | sysv4.2uw2* | sysv4.3*)
17334
lt_prog_compiler_wl_GCJ='-Wl,'
17335
lt_prog_compiler_pic_GCJ='-KPIC'
17336
lt_prog_compiler_static_GCJ='-Bstatic'
17340
if test -d /usr/nec ;then
17341
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17342
lt_prog_compiler_static_GCJ='-Bstatic'
17346
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17347
lt_prog_compiler_wl_GCJ='-Wl,'
17348
lt_prog_compiler_pic_GCJ='-KPIC'
17349
lt_prog_compiler_static_GCJ='-Bstatic'
17353
lt_prog_compiler_wl_GCJ='-Wl,'
17354
lt_prog_compiler_can_build_shared_GCJ=no
17358
lt_prog_compiler_pic_GCJ='-pic'
17359
lt_prog_compiler_static_GCJ='-Bstatic'
17363
lt_prog_compiler_can_build_shared_GCJ=no
17368
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17369
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17372
# Check to make sure the PIC flag actually works.
17374
if test -n "$lt_prog_compiler_pic_GCJ"; then
17376
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17377
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17378
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17379
$as_echo_n "(cached) " >&6
17381
lt_cv_prog_compiler_pic_works_GCJ=no
17382
ac_outfile=conftest.$ac_objext
17383
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17384
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17385
# Insert the option either (1) after the last *FLAGS variable, or
17386
# (2) before a word containing "conftest.", or (3) at the end.
17387
# Note that $ac_compile itself does not contain backslashes and begins
17388
# with a dollar sign (not a hyphen), so the echo should work correctly.
17389
# The option is referenced via a variable to avoid confusing sed.
17390
lt_compile=`echo "$ac_compile" | $SED \
17391
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17392
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17393
-e 's:$: $lt_compiler_flag:'`
17394
(eval echo "\"\$as_me:17394: $lt_compile\"" >&5)
17395
(eval "$lt_compile" 2>conftest.err)
17397
cat conftest.err >&5
17398
echo "$as_me:17398: \$? = $ac_status" >&5
17399
if (exit $ac_status) && test -s "$ac_outfile"; then
17400
# The compiler can only warn and ignore the option if not recognized
17401
# So say no if there are warnings other than the usual output.
17402
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17403
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17404
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17405
lt_cv_prog_compiler_pic_works_GCJ=yes
17411
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17412
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17414
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17415
case $lt_prog_compiler_pic_GCJ in
17417
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17420
lt_prog_compiler_pic_GCJ=
17421
lt_prog_compiler_can_build_shared_GCJ=no
17426
# For platforms which do not support PIC, -DPIC is meaningless:
17428
lt_prog_compiler_pic_GCJ=
17431
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17436
# Check to make sure the static flag actually works.
17438
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17439
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17440
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17441
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17442
$as_echo_n "(cached) " >&6
17444
lt_cv_prog_compiler_static_works_GCJ=no
17445
save_LDFLAGS="$LDFLAGS"
17446
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17447
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17448
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17449
# The linker can only warn and ignore the option if not recognized
17450
# So say no if there are warnings
17451
if test -s conftest.err; then
17452
# Append any errors to the config.log.
17453
cat conftest.err 1>&5
17454
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17455
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17456
if diff conftest.exp conftest.er2 >/dev/null; then
17457
lt_cv_prog_compiler_static_works_GCJ=yes
17460
lt_cv_prog_compiler_static_works_GCJ=yes
17464
LDFLAGS="$save_LDFLAGS"
17467
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17468
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17470
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17473
lt_prog_compiler_static_GCJ=
17477
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17478
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17479
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17480
$as_echo_n "(cached) " >&6
17482
lt_cv_prog_compiler_c_o_GCJ=no
17483
$rm -r conftest 2>/dev/null
17487
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17489
lt_compiler_flag="-o out/conftest2.$ac_objext"
17490
# Insert the option either (1) after the last *FLAGS variable, or
17491
# (2) before a word containing "conftest.", or (3) at the end.
17492
# Note that $ac_compile itself does not contain backslashes and begins
17493
# with a dollar sign (not a hyphen), so the echo should work correctly.
17494
lt_compile=`echo "$ac_compile" | $SED \
17495
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17496
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17497
-e 's:$: $lt_compiler_flag:'`
17498
(eval echo "\"\$as_me:17498: $lt_compile\"" >&5)
17499
(eval "$lt_compile" 2>out/conftest.err)
17501
cat out/conftest.err >&5
17502
echo "$as_me:17502: \$? = $ac_status" >&5
17503
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17505
# The compiler can only warn and ignore the option if not recognized
17506
# So say no if there are warnings
17507
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17508
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17509
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17510
lt_cv_prog_compiler_c_o_GCJ=yes
17515
# SGI C++ compiler will create directory out/ii_files/ for
17516
# template instantiation
17517
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17518
$rm out/* && rmdir out
17524
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17525
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17528
hard_links="nottested"
17529
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17530
# do not overwrite the value of need_locks provided by the user
17531
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17532
$as_echo_n "checking if we can lock with hard links... " >&6; }
17535
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17537
ln conftest.a conftest.b 2>&5 || hard_links=no
17538
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17539
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17540
$as_echo "$hard_links" >&6; }
17541
if test "$hard_links" = no; then
17542
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17543
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17550
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17551
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17554
allow_undefined_flag_GCJ=
17555
enable_shared_with_static_runtimes_GCJ=no
17557
archive_expsym_cmds_GCJ=
17558
old_archive_From_new_cmds_GCJ=
17559
old_archive_from_expsyms_cmds_GCJ=
17560
export_dynamic_flag_spec_GCJ=
17561
whole_archive_flag_spec_GCJ=
17562
thread_safe_flag_spec_GCJ=
17563
hardcode_libdir_flag_spec_GCJ=
17564
hardcode_libdir_flag_spec_ld_GCJ=
17565
hardcode_libdir_separator_GCJ=
17566
hardcode_direct_GCJ=no
17567
hardcode_minus_L_GCJ=no
17568
hardcode_shlibpath_var_GCJ=unsupported
17569
link_all_deplibs_GCJ=unknown
17570
hardcode_automatic_GCJ=no
17572
module_expsym_cmds_GCJ=
17573
always_export_symbols_GCJ=no
17574
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17575
# include_expsyms should be a list of space-separated symbols to be *always*
17576
# included in the symbol list
17577
include_expsyms_GCJ=
17578
# exclude_expsyms can be an extended regexp of symbols to exclude
17579
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17580
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17581
# as well as any symbol that contains `d'.
17582
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17583
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17584
# platforms (ab)use it in PIC code, but their linkers get confused if
17585
# the symbol is explicitly referenced. Since portable code cannot
17586
# rely on this symbol name, it's probably fine to never include it in
17587
# preloaded symbol tables.
17588
# Exclude shared library initialization/finalization symbols.
17589
extract_expsyms_cmds=
17590
# Just being paranoid about ensuring that cc_basename is set.
17591
for cc_temp in $compiler""; do
17593
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17594
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17599
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17602
cygwin* | mingw* | pw32*)
17603
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17604
# When not using gcc, we currently assume that we are using
17605
# Microsoft Visual C++.
17606
if test "$GCC" != yes; then
17611
# we just hope/assume this is gcc and not c89 (= MSVC++)
17620
if test "$with_gnu_ld" = yes; then
17621
# If archive_cmds runs LD, not CC, wlarc should be empty
17624
# Set some defaults for GNU ld with shared library support. These
17625
# are reset later if shared libraries are not supported. Putting them
17626
# here allows them to be overridden if necessary.
17627
runpath_var=LD_RUN_PATH
17628
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17629
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17630
# ancient GNU ld didn't support --whole-archive et. al.
17631
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17632
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17634
whole_archive_flag_spec_GCJ=
17636
supports_anon_versioning=no
17637
case `$LD -v 2>/dev/null` in
17638
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17639
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17640
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17641
*\ 2.11.*) ;; # other 2.11 versions
17642
*) supports_anon_versioning=yes ;;
17645
# See if GNU ld supports shared libraries.
17648
# On AIX/PPC, the GNU linker is very broken
17649
if test "$host_cpu" != ia64; then
17653
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17654
*** to be unable to reliably create shared libraries on AIX.
17655
*** Therefore, libtool is disabling shared libraries support. If you
17656
*** really care for shared libraries, you may want to modify your PATH
17657
*** so that a non-GNU linker is found, and then restart.
17664
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)'
17665
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17666
hardcode_minus_L_GCJ=yes
17668
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17669
# that the semantics of dynamic libraries on AmigaOS, at least up
17670
# to version 4, is to share data among multiple programs linked
17671
# with the same dynamic library. Since this doesn't match the
17672
# behavior of shared libraries on other platforms, we can't use
17678
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17679
allow_undefined_flag_GCJ=unsupported
17680
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17681
# support --undefined. This deserves some investigation. FIXME
17682
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17688
cygwin* | mingw* | pw32*)
17689
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17690
# as there is no search path for DLLs.
17691
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692
allow_undefined_flag_GCJ=unsupported
17693
always_export_symbols_GCJ=no
17694
enable_shared_with_static_runtimes_GCJ=yes
17695
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17697
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17698
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17699
# If the export-symbols file already is a .def file (1st line
17700
# is EXPORTS), use it as is; otherwise, prepend...
17701
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17702
cp $export_symbols $output_objdir/$soname.def;
17704
echo EXPORTS > $output_objdir/$soname.def;
17705
cat $export_symbols >> $output_objdir/$soname.def;
17707
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17714
hardcode_direct_GCJ=no
17715
hardcode_shlibpath_var_GCJ=no
17716
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17717
export_dynamic_flag_spec_GCJ='${wl}-E'
17718
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17719
# Instead, shared libraries are loaded at an image base (0x10000000 by
17720
# default) and relocated if they conflict, which is a slow very memory
17721
# consuming and fragmenting process. To avoid this, we pick a random,
17722
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17723
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17724
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'
17725
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'
17728
gnu* | linux* | k*bsd*-gnu)
17729
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17731
case $cc_basename,$host_cpu in
17732
pgcc*) # Portland Group C compiler
17733
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'
17734
tmp_addflag=' $pic_flag'
17736
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17737
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'
17738
tmp_addflag=' $pic_flag -Mnomain' ;;
17739
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17740
tmp_addflag=' -i_dynamic' ;;
17741
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17742
tmp_addflag=' -i_dynamic -nofor_main' ;;
17743
ifc* | ifort*) # Intel Fortran compiler
17744
tmp_addflag=' -nofor_main' ;;
17746
case `$CC -V 2>&1 | sed 5q` in
17747
*Sun\ C*) # Sun C 5.9
17748
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'
17749
tmp_sharedflag='-G' ;;
17750
*Sun\ F*) # Sun Fortran 8.3
17751
tmp_sharedflag='-G' ;;
17753
tmp_sharedflag='-shared' ;;
17755
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17757
if test $supports_anon_versioning = yes; then
17758
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17759
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17760
$echo "local: *; };" >> $output_objdir/$libname.ver~
17761
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17769
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17770
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17773
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17774
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17779
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17783
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17784
*** create shared libraries on Solaris systems. Therefore, libtool
17785
*** is disabling shared libraries support. We urge you to upgrade GNU
17786
*** binutils to release 2.9.1 or newer. Another option is to modify
17787
*** your PATH or compiler configuration so that the native linker is
17788
*** used, and then restart.
17791
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17792
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17793
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17799
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17800
case `$LD -v 2>&1` in
17801
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17805
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17806
*** reliably create shared libraries on SCO systems. Therefore, libtool
17807
*** is disabling shared libraries support. We urge you to upgrade GNU
17808
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17809
*** your PATH or compiler configuration so that the native linker is
17810
*** used, and then restart.
17815
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17816
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17817
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17818
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17827
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17829
hardcode_direct_GCJ=yes
17830
hardcode_shlibpath_var_GCJ=no
17834
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17835
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17836
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17843
if test "$ld_shlibs_GCJ" = no; then
17845
hardcode_libdir_flag_spec_GCJ=
17846
export_dynamic_flag_spec_GCJ=
17847
whole_archive_flag_spec_GCJ=
17850
# PORTME fill in a description of your system's linker (not GNU ld)
17853
allow_undefined_flag_GCJ=unsupported
17854
always_export_symbols_GCJ=yes
17855
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'
17856
# Note: this linker hardcodes the directories in LIBPATH if there
17857
# are no directories specified by -L.
17858
hardcode_minus_L_GCJ=yes
17859
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17860
# Neither direct hardcoding nor static linking is supported with a
17862
hardcode_direct_GCJ=unsupported
17867
if test "$host_cpu" = ia64; then
17868
# On IA64, the linker does run time linking by default, so we don't
17869
# have to do anything special.
17870
aix_use_runtimelinking=no
17871
exp_sym_flag='-Bexport'
17874
# If we're using GNU nm, then we don't want the "-C" option.
17875
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17876
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17877
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'
17879
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'
17881
aix_use_runtimelinking=no
17883
# Test if we are trying to use run time linking or normal
17884
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17885
# need to do runtime linking.
17886
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17887
for ld_flag in $LDFLAGS; do
17888
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17889
aix_use_runtimelinking=yes
17896
exp_sym_flag='-bexport'
17897
no_entry_flag='-bnoentry'
17900
# When large executables or shared objects are built, AIX ld can
17901
# have problems creating the table of contents. If linking a library
17902
# or program results in "error TOC overflow" add -mminimal-toc to
17903
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17904
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17906
archive_cmds_GCJ=''
17907
hardcode_direct_GCJ=yes
17908
hardcode_libdir_separator_GCJ=':'
17909
link_all_deplibs_GCJ=yes
17911
if test "$GCC" = yes; then
17912
case $host_os in aix4.[012]|aix4.[012].*)
17913
# We only want to do this on AIX 4.2 and lower, the check
17914
# below for broken collect2 doesn't work under 4.3+
17915
collect2name=`${CC} -print-prog-name=collect2`
17916
if test -f "$collect2name" && \
17917
strings "$collect2name" | grep resolve_lib_name >/dev/null
17919
# We have reworked collect2
17922
# We have old collect2
17923
hardcode_direct_GCJ=unsupported
17924
# It fails to find uninstalled libraries when the uninstalled
17925
# path is not listed in the libpath. Setting hardcode_minus_L
17926
# to unsupported forces relinking
17927
hardcode_minus_L_GCJ=yes
17928
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17929
hardcode_libdir_separator_GCJ=
17933
shared_flag='-shared'
17934
if test "$aix_use_runtimelinking" = yes; then
17935
shared_flag="$shared_flag "'${wl}-G'
17939
if test "$host_cpu" = ia64; then
17940
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17941
# chokes on -Wl,-G. The following line is correct:
17944
if test "$aix_use_runtimelinking" = yes; then
17945
shared_flag='${wl}-G'
17947
shared_flag='${wl}-bM:SRE'
17952
# It seems that -bexpall does not export symbols beginning with
17953
# underscore (_), so it is better to generate a list of symbols to export.
17954
always_export_symbols_GCJ=yes
17955
if test "$aix_use_runtimelinking" = yes; then
17956
# Warning - without using the other runtime loading flags (-brtl),
17957
# -berok will link without error, but may produce a broken library.
17958
allow_undefined_flag_GCJ='-berok'
17959
# Determine the default libpath from the value encoded in an empty executable.
17960
cat >conftest.$ac_ext <<_ACEOF
17963
cat confdefs.h >>conftest.$ac_ext
17964
cat >>conftest.$ac_ext <<_ACEOF
17965
/* end confdefs.h. */
17975
rm -f conftest.$ac_objext conftest$ac_exeext
17976
if { (ac_try="$ac_link"
17977
case "(($ac_try" in
17978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979
*) ac_try_echo=$ac_try;;
17981
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17982
$as_echo "$ac_try_echo") >&5
17983
(eval "$ac_link") 2>conftest.er1
17985
grep -v '^ *+' conftest.er1 >conftest.err
17987
cat conftest.err >&5
17988
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989
(exit $ac_status); } && {
17990
test -z "$ac_c_werror_flag" ||
17991
test ! -s conftest.err
17992
} && test -s conftest$ac_exeext && {
17993
test "$cross_compiling" = yes ||
17994
$as_test_x conftest$ac_exeext
17997
lt_aix_libpath_sed='
17998
/Import File Strings/,/^$/ {
18004
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18005
# Check for a 64-bit object if we didn't find anything.
18006
if test -z "$aix_libpath"; then
18007
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18010
$as_echo "$as_me: failed program was:" >&5
18011
sed 's/^/| /' conftest.$ac_ext >&5
18016
rm -rf conftest.dSYM
18017
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18018
conftest$ac_exeext conftest.$ac_ext
18019
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18021
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18022
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"
18024
if test "$host_cpu" = ia64; then
18025
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18026
allow_undefined_flag_GCJ="-z nodefs"
18027
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"
18029
# Determine the default libpath from the value encoded in an empty executable.
18030
cat >conftest.$ac_ext <<_ACEOF
18033
cat confdefs.h >>conftest.$ac_ext
18034
cat >>conftest.$ac_ext <<_ACEOF
18035
/* end confdefs.h. */
18045
rm -f conftest.$ac_objext conftest$ac_exeext
18046
if { (ac_try="$ac_link"
18047
case "(($ac_try" in
18048
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049
*) ac_try_echo=$ac_try;;
18051
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18052
$as_echo "$ac_try_echo") >&5
18053
(eval "$ac_link") 2>conftest.er1
18055
grep -v '^ *+' conftest.er1 >conftest.err
18057
cat conftest.err >&5
18058
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059
(exit $ac_status); } && {
18060
test -z "$ac_c_werror_flag" ||
18061
test ! -s conftest.err
18062
} && test -s conftest$ac_exeext && {
18063
test "$cross_compiling" = yes ||
18064
$as_test_x conftest$ac_exeext
18067
lt_aix_libpath_sed='
18068
/Import File Strings/,/^$/ {
18074
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18075
# Check for a 64-bit object if we didn't find anything.
18076
if test -z "$aix_libpath"; then
18077
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18080
$as_echo "$as_me: failed program was:" >&5
18081
sed 's/^/| /' conftest.$ac_ext >&5
18086
rm -rf conftest.dSYM
18087
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18088
conftest$ac_exeext conftest.$ac_ext
18089
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18091
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18092
# Warning - without using the other run time loading flags,
18093
# -berok will link without error, but may produce a broken library.
18094
no_undefined_flag_GCJ=' ${wl}-bernotok'
18095
allow_undefined_flag_GCJ=' ${wl}-berok'
18096
# Exported symbols can be pulled into shared objects from archives
18097
whole_archive_flag_spec_GCJ='$convenience'
18098
archive_cmds_need_lc_GCJ=yes
18099
# This is similar to how AIX traditionally builds its shared libraries.
18100
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'
18106
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)'
18107
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18108
hardcode_minus_L_GCJ=yes
18109
# see comment about different semantics on the GNU ld section
18114
export_dynamic_flag_spec_GCJ=-rdynamic
18117
cygwin* | mingw* | pw32*)
18118
# When not using gcc, we currently assume that we are using
18119
# Microsoft Visual C++.
18120
# hardcode_libdir_flag_spec is actually meaningless, as there is
18121
# no search path for DLLs.
18122
hardcode_libdir_flag_spec_GCJ=' '
18123
allow_undefined_flag_GCJ=unsupported
18124
# Tell ltmain to make .lib files, not .a files.
18126
# Tell ltmain to make .dll files, not .so files.
18128
# FIXME: Setting linknames here is a bad hack.
18129
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18130
# The linker will automatically build a .lib file if we build a DLL.
18131
old_archive_From_new_cmds_GCJ='true'
18132
# FIXME: Should let the user specify the lib program.
18133
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18134
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18135
enable_shared_with_static_runtimes_GCJ=yes
18138
darwin* | rhapsody*)
18140
rhapsody* | darwin1.[012])
18141
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18144
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18145
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18147
case ${MACOSX_DEPLOYMENT_TARGET} in
18149
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18152
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18158
archive_cmds_need_lc_GCJ=no
18159
hardcode_direct_GCJ=no
18160
hardcode_automatic_GCJ=yes
18161
hardcode_shlibpath_var_GCJ=unsupported
18162
whole_archive_flag_spec_GCJ=''
18163
link_all_deplibs_GCJ=yes
18164
if test "$GCC" = yes ; then
18165
output_verbose_link_cmd='echo'
18166
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18167
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18168
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18169
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18171
case $cc_basename in
18173
output_verbose_link_cmd='echo'
18174
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18175
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18176
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18177
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}'
18178
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}'
18188
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18189
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18190
hardcode_shlibpath_var_GCJ=no
18197
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18198
# support. Future versions do this automatically, but an explicit c++rt0.o
18199
# does not break anything, and helps significantly (at the cost of a little
18202
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18203
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18204
hardcode_direct_GCJ=yes
18205
hardcode_shlibpath_var_GCJ=no
18208
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18210
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18211
hardcode_direct_GCJ=yes
18212
hardcode_minus_L_GCJ=yes
18213
hardcode_shlibpath_var_GCJ=no
18216
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18217
freebsd* | dragonfly*)
18218
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18219
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18220
hardcode_direct_GCJ=yes
18221
hardcode_shlibpath_var_GCJ=no
18225
if test "$GCC" = yes; then
18226
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'
18228
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'
18230
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18231
hardcode_libdir_separator_GCJ=:
18232
hardcode_direct_GCJ=yes
18234
# hardcode_minus_L: Not really in the search PATH,
18235
# but as the default location of the library.
18236
hardcode_minus_L_GCJ=yes
18237
export_dynamic_flag_spec_GCJ='${wl}-E'
18241
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18242
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18244
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18246
if test "$with_gnu_ld" = no; then
18247
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18248
hardcode_libdir_separator_GCJ=:
18250
hardcode_direct_GCJ=yes
18251
export_dynamic_flag_spec_GCJ='${wl}-E'
18253
# hardcode_minus_L: Not really in the search PATH,
18254
# but as the default location of the library.
18255
hardcode_minus_L_GCJ=yes
18260
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18263
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18266
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18269
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18275
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18278
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18281
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18285
if test "$with_gnu_ld" = no; then
18286
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18287
hardcode_libdir_separator_GCJ=:
18291
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18292
hardcode_direct_GCJ=no
18293
hardcode_shlibpath_var_GCJ=no
18296
hardcode_direct_GCJ=yes
18297
export_dynamic_flag_spec_GCJ='${wl}-E'
18299
# hardcode_minus_L: Not really in the search PATH,
18300
# but as the default location of the library.
18301
hardcode_minus_L_GCJ=yes
18307
irix5* | irix6* | nonstopux*)
18308
if test "$GCC" = yes; then
18309
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'
18311
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'
18312
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18314
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18315
hardcode_libdir_separator_GCJ=:
18316
link_all_deplibs_GCJ=yes
18320
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18321
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18323
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18325
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18326
hardcode_direct_GCJ=yes
18327
hardcode_shlibpath_var_GCJ=no
18331
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18332
hardcode_direct_GCJ=yes
18333
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18334
hardcode_libdir_separator_GCJ=:
18335
hardcode_shlibpath_var_GCJ=no
18339
if test -f /usr/libexec/ld.so; then
18340
hardcode_direct_GCJ=yes
18341
hardcode_shlibpath_var_GCJ=no
18342
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18343
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18344
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18345
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18346
export_dynamic_flag_spec_GCJ='${wl}-E'
18349
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18350
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18351
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18354
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18355
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18365
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18366
hardcode_minus_L_GCJ=yes
18367
allow_undefined_flag_GCJ=unsupported
18368
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'
18369
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18373
if test "$GCC" = yes; then
18374
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18375
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'
18377
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18378
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'
18380
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18381
hardcode_libdir_separator_GCJ=:
18384
osf4* | osf5*) # as osf3* with the addition of -msym flag
18385
if test "$GCC" = yes; then
18386
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18387
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'
18388
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18390
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18391
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'
18392
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~
18393
$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'
18395
# Both c and cxx compiler support -rpath directly
18396
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18398
hardcode_libdir_separator_GCJ=:
18402
no_undefined_flag_GCJ=' -z text'
18403
if test "$GCC" = yes; then
18405
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18406
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18407
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18410
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18411
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18412
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18414
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18415
hardcode_shlibpath_var_GCJ=no
18417
solaris2.[0-5] | solaris2.[0-5].*) ;;
18419
# The compiler driver will combine and reorder linker options,
18420
# but understands `-z linker_flag'. GCC discards it without `$wl',
18421
# but is careful enough not to reorder.
18422
# Supported since Solaris 2.6 (maybe 2.5.1?)
18423
if test "$GCC" = yes; then
18424
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18426
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18430
link_all_deplibs_GCJ=yes
18434
if test "x$host_vendor" = xsequent; then
18435
# Use $CC to link under sequent, because it throws in some extra .o
18436
# files that make .init and .fini sections work.
18437
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18439
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18441
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18442
hardcode_direct_GCJ=yes
18443
hardcode_minus_L_GCJ=yes
18444
hardcode_shlibpath_var_GCJ=no
18448
case $host_vendor in
18450
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18451
hardcode_direct_GCJ=yes # is this really true???
18454
## LD is ld it makes a PLAMLIB
18455
## CC just makes a GrossModule.
18456
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18457
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18458
hardcode_direct_GCJ=no
18461
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18462
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18465
runpath_var='LD_RUN_PATH'
18466
hardcode_shlibpath_var_GCJ=no
18470
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18471
hardcode_shlibpath_var_GCJ=no
18472
export_dynamic_flag_spec_GCJ='-Bexport'
18476
if test -d /usr/nec; then
18477
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18478
hardcode_shlibpath_var_GCJ=no
18479
runpath_var=LD_RUN_PATH
18480
hardcode_runpath_var=yes
18485
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18486
no_undefined_flag_GCJ='${wl}-z,text'
18487
archive_cmds_need_lc_GCJ=no
18488
hardcode_shlibpath_var_GCJ=no
18489
runpath_var='LD_RUN_PATH'
18491
if test "$GCC" = yes; then
18492
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18493
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18495
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18496
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18500
sysv5* | sco3.2v5* | sco5v6*)
18501
# Note: We can NOT use -z defs as we might desire, because we do not
18502
# link with -lc, and that would cause any symbols used from libc to
18503
# always be unresolved, which means just about no library would
18504
# ever link correctly. If we're not using GNU ld we use -z text
18505
# though, which does catch some bad symbols but isn't as heavy-handed
18507
no_undefined_flag_GCJ='${wl}-z,text'
18508
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18509
archive_cmds_need_lc_GCJ=no
18510
hardcode_shlibpath_var_GCJ=no
18511
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18512
hardcode_libdir_separator_GCJ=':'
18513
link_all_deplibs_GCJ=yes
18514
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18515
runpath_var='LD_RUN_PATH'
18517
if test "$GCC" = yes; then
18518
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18519
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18521
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18522
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18527
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18528
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18529
hardcode_shlibpath_var_GCJ=no
18538
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18539
$as_echo "$ld_shlibs_GCJ" >&6; }
18540
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18543
# Do we need to explicitly link libc?
18545
case "x$archive_cmds_need_lc_GCJ" in
18547
# Assume -lc should be added
18548
archive_cmds_need_lc_GCJ=yes
18550
if test "$enable_shared" = yes && test "$GCC" = yes; then
18551
case $archive_cmds_GCJ in
18553
# FIXME: we may have to deal with multi-command sequences.
18556
# Test whether the compiler implicitly links with -lc since on some
18557
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18558
# to ld, don't add -lc before -lgcc.
18559
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18560
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18562
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18564
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18565
(eval $ac_compile) 2>&5
18567
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568
(exit $ac_status); } 2>conftest.err; then
18571
libobjs=conftest.$ac_objext
18573
wl=$lt_prog_compiler_wl_GCJ
18574
pic_flag=$lt_prog_compiler_pic_GCJ
18580
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18581
allow_undefined_flag_GCJ=
18582
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18583
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18585
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586
(exit $ac_status); }
18588
archive_cmds_need_lc_GCJ=no
18590
archive_cmds_need_lc_GCJ=yes
18592
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18594
cat conftest.err 1>&5
18597
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18598
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18605
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18606
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18607
library_names_spec=
18608
libname_spec='lib$name'
18612
postuninstall_cmds=
18616
shlibpath_overrides_runpath=unknown
18618
dynamic_linker="$host_os ld.so"
18619
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18621
need_lib_prefix=unknown
18622
hardcode_into_libs=no
18624
# when you set need_version to no, make sure it does not cause -set_version
18625
# flags to be left without arguments
18626
need_version=unknown
18631
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18632
shlibpath_var=LIBPATH
18634
# AIX 3 has no versioning support, so we append a major version to the name.
18635
soname_spec='${libname}${release}${shared_ext}$major'
18642
hardcode_into_libs=yes
18643
if test "$host_cpu" = ia64; then
18644
# AIX 5 supports IA64
18645
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18646
shlibpath_var=LD_LIBRARY_PATH
18648
# With GCC up to 2.95.x, collect2 would create an import file
18649
# for dependence libraries. The import file would start with
18650
# the line `#! .'. This would cause the generated library to
18651
# depend on `.', always an invalid library. This was fixed in
18652
# development snapshots of GCC prior to 3.0.
18654
aix4 | aix4.[01] | aix4.[01].*)
18655
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18657
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18660
can_build_shared=no
18664
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18665
# soname into executable. Probably we can add versioning support to
18666
# collect2, so additional links can be useful in future.
18667
if test "$aix_use_runtimelinking" = yes; then
18668
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18669
# instead of lib<name>.a to let people know that these are not
18670
# typical AIX shared libraries.
18671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673
# We preserve .a as extension for shared libraries through AIX4.2
18674
# and later when we are not doing run time linking.
18675
library_names_spec='${libname}${release}.a $libname.a'
18676
soname_spec='${libname}${release}${shared_ext}$major'
18678
shlibpath_var=LIBPATH
18683
library_names_spec='$libname.ixlibrary $libname.a'
18684
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18685
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'
18689
library_names_spec='${libname}${shared_ext}'
18690
dynamic_linker="$host_os ld.so"
18691
shlibpath_var=LIBRARY_PATH
18697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18698
soname_spec='${libname}${release}${shared_ext}$major'
18699
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18700
shlibpath_var=LD_LIBRARY_PATH
18701
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18702
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18703
# the default ld.so.conf also contains /usr/contrib/lib and
18704
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18705
# libtool to hard-code these into programs
18708
cygwin* | mingw* | pw32*)
18709
version_type=windows
18714
case $GCC,$host_os in
18715
yes,cygwin* | yes,mingw* | yes,pw32*)
18716
library_names_spec='$libname.dll.a'
18717
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18718
postinstall_cmds='base_file=`basename \${file}`~
18719
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18720
dldir=$destdir/`dirname \$dlpath`~
18721
test -d \$dldir || mkdir -p \$dldir~
18722
$install_prog $dir/$dlname \$dldir/$dlname~
18723
chmod a+x \$dldir/$dlname'
18724
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18725
dlpath=$dir/\$dldll~
18727
shlibpath_overrides_runpath=yes
18731
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18732
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18733
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18736
# MinGW DLLs use traditional 'lib' prefix
18737
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18738
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18739
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18740
# It is most probably a Windows format PATH printed by
18741
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18742
# path with ; separators, and with drive letters. We can handle the
18743
# drive letters (cygwin fileutils understands them), so leave them,
18744
# especially as we might pass files found there to a mingw objdump,
18745
# which wouldn't understand a cygwinified path. Ahh.
18746
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18748
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18752
# pw32 DLLs use 'pw' prefix rather than 'lib'
18753
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18759
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18762
dynamic_linker='Win32 ld.exe'
18763
# FIXME: first we should search . and the directory the executable is in
18767
darwin* | rhapsody*)
18768
dynamic_linker="$host_os dyld"
18769
version_type=darwin
18772
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18773
soname_spec='${libname}${release}${major}$shared_ext'
18774
shlibpath_overrides_runpath=yes
18775
shlibpath_var=DYLD_LIBRARY_PATH
18776
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18778
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18785
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18786
soname_spec='${libname}${release}${shared_ext}$major'
18787
shlibpath_var=LD_LIBRARY_PATH
18794
freebsd* | dragonfly*)
18795
# DragonFly does not have aout. When/if they implement a new
18796
# versioning mechanism, adjust this.
18797
if test -x /usr/bin/objformat; then
18798
objformat=`/usr/bin/objformat`
18801
freebsd[123]*) objformat=aout ;;
18802
*) objformat=elf ;;
18805
version_type=freebsd-$objformat
18806
case $version_type in
18808
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18813
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18817
shlibpath_var=LD_LIBRARY_PATH
18820
shlibpath_overrides_runpath=yes
18822
freebsd3.[01]* | freebsdelf3.[01]*)
18823
shlibpath_overrides_runpath=yes
18824
hardcode_into_libs=yes
18826
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18827
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18828
shlibpath_overrides_runpath=no
18829
hardcode_into_libs=yes
18831
*) # from 4.6 on, and DragonFly
18832
shlibpath_overrides_runpath=yes
18833
hardcode_into_libs=yes
18842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18843
soname_spec='${libname}${release}${shared_ext}$major'
18844
shlibpath_var=LD_LIBRARY_PATH
18845
hardcode_into_libs=yes
18848
hpux9* | hpux10* | hpux11*)
18849
# Give a soname corresponding to the major version so that dld.sl refuses to
18850
# link against other versions.
18857
hardcode_into_libs=yes
18858
dynamic_linker="$host_os dld.so"
18859
shlibpath_var=LD_LIBRARY_PATH
18860
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18862
soname_spec='${libname}${release}${shared_ext}$major'
18863
if test "X$HPUX_IA64_MODE" = X32; then
18864
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18866
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18868
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18872
hardcode_into_libs=yes
18873
dynamic_linker="$host_os dld.sl"
18874
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18875
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18877
soname_spec='${libname}${release}${shared_ext}$major'
18878
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18879
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18883
dynamic_linker="$host_os dld.sl"
18884
shlibpath_var=SHLIB_PATH
18885
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18887
soname_spec='${libname}${release}${shared_ext}$major'
18890
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18891
postinstall_cmds='chmod 555 $lib'
18898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18899
soname_spec='${libname}${release}${shared_ext}$major'
18900
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18901
shlibpath_var=LD_LIBRARY_PATH
18902
shlibpath_overrides_runpath=no
18903
hardcode_into_libs=yes
18906
irix5* | irix6* | nonstopux*)
18908
nonstopux*) version_type=nonstopux ;;
18910
if test "$lt_cv_prog_gnu_ld" = yes; then
18918
soname_spec='${libname}${release}${shared_ext}$major'
18919
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18921
irix5* | nonstopux*)
18922
libsuff= shlibsuff=
18925
case $LD in # libtool.m4 will add one of these switches to LD
18926
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18927
libsuff= shlibsuff= libmagic=32-bit;;
18928
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18929
libsuff=32 shlibsuff=N32 libmagic=N32;;
18930
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18931
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18932
*) libsuff= shlibsuff= libmagic=never-match;;
18936
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18937
shlibpath_overrides_runpath=no
18938
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18939
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18940
hardcode_into_libs=yes
18943
# No shared lib support for Linux oldld, aout, or coff.
18944
linux*oldld* | linux*aout* | linux*coff*)
18948
# This must be Linux ELF.
18949
linux* | k*bsd*-gnu)
18953
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954
soname_spec='${libname}${release}${shared_ext}$major'
18955
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18956
shlibpath_var=LD_LIBRARY_PATH
18957
shlibpath_overrides_runpath=no
18958
# This implies no fast_install, which is unacceptable.
18959
# Some rework will be needed to allow for fast_install
18960
# before this can be enabled.
18961
hardcode_into_libs=yes
18962
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18963
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18965
# Append ld.so.conf contents to the search path
18966
if test -f /etc/ld.so.conf; then
18967
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' ' '`
18968
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18971
# We used to test for /lib/ld.so.1 and disable shared libraries on
18972
# powerpc, because MkLinux only supported shared libraries with the
18973
# GNU dynamic linker. Since this was broken with cross compilers,
18974
# most powerpc-linux boxes support dynamic linking these days and
18975
# people can always --disable-shared, the test was removed, and we
18976
# assume the GNU/Linux dynamic linker is in use.
18977
dynamic_linker='GNU/Linux ld.so'
18984
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18986
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18987
dynamic_linker='NetBSD (a.out) ld.so'
18989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18990
soname_spec='${libname}${release}${shared_ext}$major'
18991
dynamic_linker='NetBSD ld.elf_so'
18993
shlibpath_var=LD_LIBRARY_PATH
18994
shlibpath_overrides_runpath=yes
18995
hardcode_into_libs=yes
19000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19001
shlibpath_var=LD_LIBRARY_PATH
19002
shlibpath_overrides_runpath=yes
19009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010
soname_spec='${libname}${release}${shared_ext}$major'
19011
shlibpath_var=LD_LIBRARY_PATH
19012
shlibpath_overrides_runpath=yes
19017
sys_lib_dlsearch_path_spec="/usr/lib"
19019
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19021
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19022
*) need_version=no ;;
19024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19025
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19026
shlibpath_var=LD_LIBRARY_PATH
19027
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19029
openbsd2.[89] | openbsd2.[89].*)
19030
shlibpath_overrides_runpath=no
19033
shlibpath_overrides_runpath=yes
19037
shlibpath_overrides_runpath=yes
19042
libname_spec='$name'
19045
library_names_spec='$libname${shared_ext} $libname.a'
19046
dynamic_linker='OS/2 ld.exe'
19047
shlibpath_var=LIBPATH
19050
osf3* | osf4* | osf5*)
19054
soname_spec='${libname}${release}${shared_ext}$major'
19055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19056
shlibpath_var=LD_LIBRARY_PATH
19057
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19058
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19070
soname_spec='${libname}${release}${shared_ext}$major'
19071
shlibpath_var=LD_LIBRARY_PATH
19072
shlibpath_overrides_runpath=yes
19073
hardcode_into_libs=yes
19074
# ldd complains unless libraries are executable
19075
postinstall_cmds='chmod +x $lib'
19080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19081
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19082
shlibpath_var=LD_LIBRARY_PATH
19083
shlibpath_overrides_runpath=yes
19084
if test "$with_gnu_ld" = yes; then
19092
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19093
soname_spec='${libname}${release}${shared_ext}$major'
19094
shlibpath_var=LD_LIBRARY_PATH
19095
case $host_vendor in
19097
shlibpath_overrides_runpath=no
19099
export_dynamic_flag_spec='${wl}-Blargedynsym'
19100
runpath_var=LD_RUN_PATH
19108
shlibpath_overrides_runpath=no
19109
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19115
if test -d /usr/nec ;then
19117
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19118
soname_spec='$libname${shared_ext}.$major'
19119
shlibpath_var=LD_LIBRARY_PATH
19123
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19124
version_type=freebsd-elf
19127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19128
soname_spec='${libname}${release}${shared_ext}$major'
19129
shlibpath_var=LD_LIBRARY_PATH
19130
hardcode_into_libs=yes
19131
if test "$with_gnu_ld" = yes; then
19132
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19133
shlibpath_overrides_runpath=no
19135
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19136
shlibpath_overrides_runpath=yes
19139
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19143
sys_lib_dlsearch_path_spec='/usr/lib'
19148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149
soname_spec='${libname}${release}${shared_ext}$major'
19150
shlibpath_var=LD_LIBRARY_PATH
19157
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19158
$as_echo "$dynamic_linker" >&6; }
19159
test "$dynamic_linker" = no && can_build_shared=no
19161
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19162
$as_echo_n "(cached) " >&6
19164
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19167
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19168
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19169
$as_echo_n "(cached) " >&6
19171
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19174
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19176
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19177
if test "$GCC" = yes; then
19178
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19181
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19182
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19183
hardcode_action_GCJ=
19184
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19185
test -n "$runpath_var_GCJ" || \
19186
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19188
# We can hardcode non-existant directories.
19189
if test "$hardcode_direct_GCJ" != no &&
19190
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19191
# have to relink, otherwise we might link with an installed library
19192
# when we should be linking with a yet-to-be-installed one
19193
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19194
test "$hardcode_minus_L_GCJ" != no; then
19195
# Linking always hardcodes the temporary library directory.
19196
hardcode_action_GCJ=relink
19198
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19199
hardcode_action_GCJ=immediate
19202
# We cannot hardcode anything, or else we can only hardcode existing
19204
hardcode_action_GCJ=unsupported
19206
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19207
$as_echo "$hardcode_action_GCJ" >&6; }
19209
if test "$hardcode_action_GCJ" = relink; then
19210
# Fast installation is not supported
19211
enable_fast_install=no
19212
elif test "$shlibpath_overrides_runpath" = yes ||
19213
test "$enable_shared" = no; then
19214
# Fast installation is not necessary
19215
enable_fast_install=needless
19219
# The else clause should only fire when bootstrapping the
19220
# libtool distribution, otherwise you forgot to ship ltmain.sh
19221
# with your package, and you will get complaints that there are
19222
# no rules to generate ltmain.sh.
19223
if test -f "$ltmain"; then
19224
# See if we are running on zsh, and set the options which allow our commands through
19225
# without removal of \ escapes.
19226
if test -n "${ZSH_VERSION+set}" ; then
19227
setopt NO_GLOB_SUBST
19229
# Now quote all the things that may contain metacharacters while being
19230
# careful not to overquote the AC_SUBSTed values. We take copies of the
19231
# variables and quote the copies for generation of the libtool script.
19232
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19234
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19235
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19236
deplibs_check_method reload_flag reload_cmds need_locks \
19237
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19238
lt_cv_sys_global_symbol_to_c_name_address \
19239
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19240
old_postinstall_cmds old_postuninstall_cmds \
19244
lt_prog_compiler_wl_GCJ \
19245
lt_prog_compiler_pic_GCJ \
19246
lt_prog_compiler_static_GCJ \
19247
lt_prog_compiler_no_builtin_flag_GCJ \
19248
export_dynamic_flag_spec_GCJ \
19249
thread_safe_flag_spec_GCJ \
19250
whole_archive_flag_spec_GCJ \
19251
enable_shared_with_static_runtimes_GCJ \
19252
old_archive_cmds_GCJ \
19253
old_archive_from_new_cmds_GCJ \
19254
predep_objects_GCJ \
19255
postdep_objects_GCJ \
19258
compiler_lib_search_path_GCJ \
19259
compiler_lib_search_dirs_GCJ \
19261
archive_expsym_cmds_GCJ \
19262
postinstall_cmds_GCJ \
19263
postuninstall_cmds_GCJ \
19264
old_archive_from_expsyms_cmds_GCJ \
19265
allow_undefined_flag_GCJ \
19266
no_undefined_flag_GCJ \
19267
export_symbols_cmds_GCJ \
19268
hardcode_libdir_flag_spec_GCJ \
19269
hardcode_libdir_flag_spec_ld_GCJ \
19270
hardcode_libdir_separator_GCJ \
19271
hardcode_automatic_GCJ \
19273
module_expsym_cmds_GCJ \
19274
lt_cv_prog_compiler_c_o_GCJ \
19275
fix_srcfile_path_GCJ \
19276
exclude_expsyms_GCJ \
19277
include_expsyms_GCJ; do
19280
old_archive_cmds_GCJ | \
19281
old_archive_from_new_cmds_GCJ | \
19282
archive_cmds_GCJ | \
19283
archive_expsym_cmds_GCJ | \
19284
module_cmds_GCJ | \
19285
module_expsym_cmds_GCJ | \
19286
old_archive_from_expsyms_cmds_GCJ | \
19287
export_symbols_cmds_GCJ | \
19288
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19289
postinstall_cmds | postuninstall_cmds | \
19290
old_postinstall_cmds | old_postuninstall_cmds | \
19291
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19292
# Double-quote double-evaled strings.
19293
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19296
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19302
*'\$0 --fallback-echo"')
19303
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19309
cat <<__EOF__ >> "$cfgfile"
19310
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19312
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19314
# Shell to use when invoking shell scripts.
19317
# Whether or not to build shared libraries.
19318
build_libtool_libs=$enable_shared
19320
# Whether or not to build static libraries.
19321
build_old_libs=$enable_static
19323
# Whether or not to add -lc for building shared libraries.
19324
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19326
# Whether or not to disallow shared libs when runtime libs are static
19327
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19329
# Whether or not to optimize for fast installation.
19330
fast_install=$enable_fast_install
19333
host_alias=$host_alias
19337
# The build system.
19338
build_alias=$build_alias
19342
# An echo program that does not interpret backslashes.
19347
AR_FLAGS=$lt_AR_FLAGS
19352
# LTCC compiler flags.
19353
LTCFLAGS=$lt_LTCFLAGS
19355
# A language-specific compiler.
19356
CC=$lt_compiler_GCJ
19358
# Is the compiler the GNU C compiler?
19364
# The linker used to build libraries.
19367
# Whether we need hard or soft links.
19370
# A BSD-compatible nm program.
19373
# A symbol stripping program
19376
# Used to examine libraries when file_magic_cmd begins "file"
19377
MAGIC_CMD=$MAGIC_CMD
19379
# Used on cygwin: DLL creation program.
19382
# Used on cygwin: object dumper.
19385
# Used on cygwin: assembler.
19388
# The name of the directory that contains temporary libtool files.
19391
# How to create reloadable object files.
19392
reload_flag=$lt_reload_flag
19393
reload_cmds=$lt_reload_cmds
19395
# How to pass a linker flag through the compiler.
19396
wl=$lt_lt_prog_compiler_wl_GCJ
19398
# Object file suffix (normally "o").
19399
objext="$ac_objext"
19401
# Old archive suffix (normally "a").
19404
# Shared library suffix (normally ".so").
19405
shrext_cmds='$shrext_cmds'
19407
# Executable file suffix (normally "").
19410
# Additional compiler flags for building library objects.
19411
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19414
# What is the maximum length of a command?
19415
max_cmd_len=$lt_cv_sys_max_cmd_len
19417
# Does compiler simultaneously support -c and -o options?
19418
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19420
# Must we lock files when doing compilation?
19421
need_locks=$lt_need_locks
19423
# Do we need the lib prefix for modules?
19424
need_lib_prefix=$need_lib_prefix
19426
# Do we need a version for libraries?
19427
need_version=$need_version
19429
# Whether dlopen is supported.
19430
dlopen_support=$enable_dlopen
19432
# Whether dlopen of programs is supported.
19433
dlopen_self=$enable_dlopen_self
19435
# Whether dlopen of statically linked programs is supported.
19436
dlopen_self_static=$enable_dlopen_self_static
19438
# Compiler flag to prevent dynamic linking.
19439
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19441
# Compiler flag to turn off builtin functions.
19442
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19444
# Compiler flag to allow reflexive dlopens.
19445
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19447
# Compiler flag to generate shared objects directly from archives.
19448
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19450
# Compiler flag to generate thread-safe objects.
19451
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19453
# Library versioning type.
19454
version_type=$version_type
19456
# Format of library name prefix.
19457
libname_spec=$lt_libname_spec
19459
# List of archive names. First name is the real one, the rest are links.
19460
# The last name is the one that the linker finds with -lNAME.
19461
library_names_spec=$lt_library_names_spec
19463
# The coded name of the library, if different from the real name.
19464
soname_spec=$lt_soname_spec
19466
# Commands used to build and install an old-style archive.
19468
old_archive_cmds=$lt_old_archive_cmds_GCJ
19469
old_postinstall_cmds=$lt_old_postinstall_cmds
19470
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19472
# Create an old-style archive from a shared archive.
19473
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19475
# Create a temporary old-style archive to link instead of a shared archive.
19476
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19478
# Commands used to build and install a shared archive.
19479
archive_cmds=$lt_archive_cmds_GCJ
19480
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19481
postinstall_cmds=$lt_postinstall_cmds
19482
postuninstall_cmds=$lt_postuninstall_cmds
19484
# Commands used to build a loadable module (assumed same as above if empty)
19485
module_cmds=$lt_module_cmds_GCJ
19486
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19488
# Commands to strip libraries.
19489
old_striplib=$lt_old_striplib
19490
striplib=$lt_striplib
19492
# Dependencies to place before the objects being linked to create a
19494
predep_objects=$lt_predep_objects_GCJ
19496
# Dependencies to place after the objects being linked to create a
19498
postdep_objects=$lt_postdep_objects_GCJ
19500
# Dependencies to place before the objects being linked to create a
19502
predeps=$lt_predeps_GCJ
19504
# Dependencies to place after the objects being linked to create a
19506
postdeps=$lt_postdeps_GCJ
19508
# The directories searched by this compiler when creating a shared
19510
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19512
# The library search path used internally by the compiler when linking
19513
# a shared library.
19514
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19516
# Method to check whether dependent libraries are shared objects.
19517
deplibs_check_method=$lt_deplibs_check_method
19519
# Command to use when deplibs_check_method == file_magic.
19520
file_magic_cmd=$lt_file_magic_cmd
19522
# Flag that allows shared libraries with undefined symbols to be built.
19523
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19525
# Flag that forces no undefined symbols.
19526
no_undefined_flag=$lt_no_undefined_flag_GCJ
19528
# Commands used to finish a libtool library installation in a directory.
19529
finish_cmds=$lt_finish_cmds
19531
# Same as above, but a single script fragment to be evaled but not shown.
19532
finish_eval=$lt_finish_eval
19534
# Take the output of nm and produce a listing of raw symbols and C names.
19535
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19537
# Transform the output of nm in a proper C declaration
19538
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19540
# Transform the output of nm in a C name address pair
19541
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19543
# This is the shared library runtime path variable.
19544
runpath_var=$runpath_var
19546
# This is the shared library path variable.
19547
shlibpath_var=$shlibpath_var
19549
# Is shlibpath searched before the hard-coded library search path?
19550
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19552
# How to hardcode a shared library path into an executable.
19553
hardcode_action=$hardcode_action_GCJ
19555
# Whether we should hardcode library paths into libraries.
19556
hardcode_into_libs=$hardcode_into_libs
19558
# Flag to hardcode \$libdir into a binary during linking.
19559
# This must work even if \$libdir does not exist.
19560
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19562
# If ld is used when linking, flag to hardcode \$libdir into
19563
# a binary during linking. This must work even if \$libdir does
19565
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19567
# Whether we need a single -rpath flag with a separated argument.
19568
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19570
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19571
# resulting binary.
19572
hardcode_direct=$hardcode_direct_GCJ
19574
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19575
# resulting binary.
19576
hardcode_minus_L=$hardcode_minus_L_GCJ
19578
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19579
# the resulting binary.
19580
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19582
# Set to yes if building a shared library automatically hardcodes DIR into the library
19583
# and all subsequent libraries and executables linked against it.
19584
hardcode_automatic=$hardcode_automatic_GCJ
19586
# Variables whose values should be saved in libtool wrapper scripts and
19587
# restored at relink time.
19588
variables_saved_for_relink="$variables_saved_for_relink"
19590
# Whether libtool must link a program against all its dependency libraries.
19591
link_all_deplibs=$link_all_deplibs_GCJ
19593
# Compile-time system search path for libraries
19594
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19596
# Run-time system search path for libraries
19597
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19599
# Fix the shell variable \$srcfile for the compiler.
19600
fix_srcfile_path=$lt_fix_srcfile_path
19602
# Set to yes if exported symbols are required.
19603
always_export_symbols=$always_export_symbols_GCJ
19605
# The commands to list exported symbols.
19606
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19608
# The commands to extract the exported symbol list from a shared archive.
19609
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19611
# Symbols that should not be listed in the preloaded symbols.
19612
exclude_expsyms=$lt_exclude_expsyms_GCJ
19614
# Symbols that must always be exported.
19615
include_expsyms=$lt_include_expsyms_GCJ
19617
# ### END LIBTOOL TAG CONFIG: $tagname
19623
# If there is no Makefile yet, we rely on a make rule to execute
19624
# `config.status --recheck' to rerun these tests and create the
19625
# libtool script then.
19626
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19627
if test -f "$ltmain_in"; then
19628
test -f Makefile && make "$ltmain"
19634
ac_cpp='$CPP $CPPFLAGS'
19635
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19636
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19637
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19649
# Source file extension for RC test sources.
19652
# Object file extension for compiled RC test sources.
19656
# Code to be used in simple compile tests
19657
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19659
# Code to be used in simple link tests
19660
lt_simple_link_test_code="$lt_simple_compile_test_code"
19662
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19664
# If no C compiler was specified, use CC.
19667
# If no C compiler flags were specified, use CFLAGS.
19668
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19670
# Allow CC to be a program name with arguments.
19674
# save warnings/boilerplate of simple test code
19675
ac_outfile=conftest.$ac_objext
19676
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19677
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19678
_lt_compiler_boilerplate=`cat conftest.err`
19681
ac_outfile=conftest.$ac_objext
19682
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19683
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19684
_lt_linker_boilerplate=`cat conftest.err`
19688
# Allow CC to be a program name with arguments.
19693
for cc_temp in $compiler""; do
19695
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19696
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19701
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19703
lt_cv_prog_compiler_c_o_RC=yes
19705
# The else clause should only fire when bootstrapping the
19706
# libtool distribution, otherwise you forgot to ship ltmain.sh
19707
# with your package, and you will get complaints that there are
19708
# no rules to generate ltmain.sh.
19709
if test -f "$ltmain"; then
19710
# See if we are running on zsh, and set the options which allow our commands through
19711
# without removal of \ escapes.
19712
if test -n "${ZSH_VERSION+set}" ; then
19713
setopt NO_GLOB_SUBST
19715
# Now quote all the things that may contain metacharacters while being
19716
# careful not to overquote the AC_SUBSTed values. We take copies of the
19717
# variables and quote the copies for generation of the libtool script.
19718
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19720
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19721
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19722
deplibs_check_method reload_flag reload_cmds need_locks \
19723
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19724
lt_cv_sys_global_symbol_to_c_name_address \
19725
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19726
old_postinstall_cmds old_postuninstall_cmds \
19730
lt_prog_compiler_wl_RC \
19731
lt_prog_compiler_pic_RC \
19732
lt_prog_compiler_static_RC \
19733
lt_prog_compiler_no_builtin_flag_RC \
19734
export_dynamic_flag_spec_RC \
19735
thread_safe_flag_spec_RC \
19736
whole_archive_flag_spec_RC \
19737
enable_shared_with_static_runtimes_RC \
19738
old_archive_cmds_RC \
19739
old_archive_from_new_cmds_RC \
19740
predep_objects_RC \
19741
postdep_objects_RC \
19744
compiler_lib_search_path_RC \
19745
compiler_lib_search_dirs_RC \
19747
archive_expsym_cmds_RC \
19748
postinstall_cmds_RC \
19749
postuninstall_cmds_RC \
19750
old_archive_from_expsyms_cmds_RC \
19751
allow_undefined_flag_RC \
19752
no_undefined_flag_RC \
19753
export_symbols_cmds_RC \
19754
hardcode_libdir_flag_spec_RC \
19755
hardcode_libdir_flag_spec_ld_RC \
19756
hardcode_libdir_separator_RC \
19757
hardcode_automatic_RC \
19759
module_expsym_cmds_RC \
19760
lt_cv_prog_compiler_c_o_RC \
19761
fix_srcfile_path_RC \
19762
exclude_expsyms_RC \
19763
include_expsyms_RC; do
19766
old_archive_cmds_RC | \
19767
old_archive_from_new_cmds_RC | \
19768
archive_cmds_RC | \
19769
archive_expsym_cmds_RC | \
19771
module_expsym_cmds_RC | \
19772
old_archive_from_expsyms_cmds_RC | \
19773
export_symbols_cmds_RC | \
19774
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19775
postinstall_cmds | postuninstall_cmds | \
19776
old_postinstall_cmds | old_postuninstall_cmds | \
19777
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19778
# Double-quote double-evaled strings.
19779
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19782
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19788
*'\$0 --fallback-echo"')
19789
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19795
cat <<__EOF__ >> "$cfgfile"
19796
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19798
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19800
# Shell to use when invoking shell scripts.
19803
# Whether or not to build shared libraries.
19804
build_libtool_libs=$enable_shared
19806
# Whether or not to build static libraries.
19807
build_old_libs=$enable_static
19809
# Whether or not to add -lc for building shared libraries.
19810
build_libtool_need_lc=$archive_cmds_need_lc_RC
19812
# Whether or not to disallow shared libs when runtime libs are static
19813
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19815
# Whether or not to optimize for fast installation.
19816
fast_install=$enable_fast_install
19819
host_alias=$host_alias
19823
# The build system.
19824
build_alias=$build_alias
19828
# An echo program that does not interpret backslashes.
19833
AR_FLAGS=$lt_AR_FLAGS
19838
# LTCC compiler flags.
19839
LTCFLAGS=$lt_LTCFLAGS
19841
# A language-specific compiler.
19844
# Is the compiler the GNU C compiler?
19850
# The linker used to build libraries.
19853
# Whether we need hard or soft links.
19856
# A BSD-compatible nm program.
19859
# A symbol stripping program
19862
# Used to examine libraries when file_magic_cmd begins "file"
19863
MAGIC_CMD=$MAGIC_CMD
19865
# Used on cygwin: DLL creation program.
19868
# Used on cygwin: object dumper.
19871
# Used on cygwin: assembler.
19874
# The name of the directory that contains temporary libtool files.
19877
# How to create reloadable object files.
19878
reload_flag=$lt_reload_flag
19879
reload_cmds=$lt_reload_cmds
19881
# How to pass a linker flag through the compiler.
19882
wl=$lt_lt_prog_compiler_wl_RC
19884
# Object file suffix (normally "o").
19885
objext="$ac_objext"
19887
# Old archive suffix (normally "a").
19890
# Shared library suffix (normally ".so").
19891
shrext_cmds='$shrext_cmds'
19893
# Executable file suffix (normally "").
19896
# Additional compiler flags for building library objects.
19897
pic_flag=$lt_lt_prog_compiler_pic_RC
19900
# What is the maximum length of a command?
19901
max_cmd_len=$lt_cv_sys_max_cmd_len
19903
# Does compiler simultaneously support -c and -o options?
19904
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19906
# Must we lock files when doing compilation?
19907
need_locks=$lt_need_locks
19909
# Do we need the lib prefix for modules?
19910
need_lib_prefix=$need_lib_prefix
19912
# Do we need a version for libraries?
19913
need_version=$need_version
19915
# Whether dlopen is supported.
19916
dlopen_support=$enable_dlopen
19918
# Whether dlopen of programs is supported.
19919
dlopen_self=$enable_dlopen_self
19921
# Whether dlopen of statically linked programs is supported.
19922
dlopen_self_static=$enable_dlopen_self_static
19924
# Compiler flag to prevent dynamic linking.
19925
link_static_flag=$lt_lt_prog_compiler_static_RC
19927
# Compiler flag to turn off builtin functions.
19928
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19930
# Compiler flag to allow reflexive dlopens.
19931
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19933
# Compiler flag to generate shared objects directly from archives.
19934
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19936
# Compiler flag to generate thread-safe objects.
19937
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19939
# Library versioning type.
19940
version_type=$version_type
19942
# Format of library name prefix.
19943
libname_spec=$lt_libname_spec
19945
# List of archive names. First name is the real one, the rest are links.
19946
# The last name is the one that the linker finds with -lNAME.
19947
library_names_spec=$lt_library_names_spec
19949
# The coded name of the library, if different from the real name.
19950
soname_spec=$lt_soname_spec
19952
# Commands used to build and install an old-style archive.
19954
old_archive_cmds=$lt_old_archive_cmds_RC
19955
old_postinstall_cmds=$lt_old_postinstall_cmds
19956
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19958
# Create an old-style archive from a shared archive.
19959
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19961
# Create a temporary old-style archive to link instead of a shared archive.
19962
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19964
# Commands used to build and install a shared archive.
19965
archive_cmds=$lt_archive_cmds_RC
19966
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19967
postinstall_cmds=$lt_postinstall_cmds
19968
postuninstall_cmds=$lt_postuninstall_cmds
19970
# Commands used to build a loadable module (assumed same as above if empty)
19971
module_cmds=$lt_module_cmds_RC
19972
module_expsym_cmds=$lt_module_expsym_cmds_RC
19974
# Commands to strip libraries.
19975
old_striplib=$lt_old_striplib
19976
striplib=$lt_striplib
19978
# Dependencies to place before the objects being linked to create a
19980
predep_objects=$lt_predep_objects_RC
19982
# Dependencies to place after the objects being linked to create a
19984
postdep_objects=$lt_postdep_objects_RC
19986
# Dependencies to place before the objects being linked to create a
19988
predeps=$lt_predeps_RC
19990
# Dependencies to place after the objects being linked to create a
19992
postdeps=$lt_postdeps_RC
19994
# The directories searched by this compiler when creating a shared
19996
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19998
# The library search path used internally by the compiler when linking
19999
# a shared library.
20000
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20002
# Method to check whether dependent libraries are shared objects.
20003
deplibs_check_method=$lt_deplibs_check_method
20005
# Command to use when deplibs_check_method == file_magic.
20006
file_magic_cmd=$lt_file_magic_cmd
20008
# Flag that allows shared libraries with undefined symbols to be built.
20009
allow_undefined_flag=$lt_allow_undefined_flag_RC
20011
# Flag that forces no undefined symbols.
20012
no_undefined_flag=$lt_no_undefined_flag_RC
20014
# Commands used to finish a libtool library installation in a directory.
20015
finish_cmds=$lt_finish_cmds
20017
# Same as above, but a single script fragment to be evaled but not shown.
20018
finish_eval=$lt_finish_eval
20020
# Take the output of nm and produce a listing of raw symbols and C names.
20021
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20023
# Transform the output of nm in a proper C declaration
20024
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20026
# Transform the output of nm in a C name address pair
20027
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20029
# This is the shared library runtime path variable.
20030
runpath_var=$runpath_var
20032
# This is the shared library path variable.
20033
shlibpath_var=$shlibpath_var
20035
# Is shlibpath searched before the hard-coded library search path?
20036
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20038
# How to hardcode a shared library path into an executable.
20039
hardcode_action=$hardcode_action_RC
20041
# Whether we should hardcode library paths into libraries.
20042
hardcode_into_libs=$hardcode_into_libs
20044
# Flag to hardcode \$libdir into a binary during linking.
20045
# This must work even if \$libdir does not exist.
20046
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20048
# If ld is used when linking, flag to hardcode \$libdir into
20049
# a binary during linking. This must work even if \$libdir does
20051
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20053
# Whether we need a single -rpath flag with a separated argument.
20054
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20056
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20057
# resulting binary.
20058
hardcode_direct=$hardcode_direct_RC
20060
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20061
# resulting binary.
20062
hardcode_minus_L=$hardcode_minus_L_RC
20064
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20065
# the resulting binary.
20066
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20068
# Set to yes if building a shared library automatically hardcodes DIR into the library
20069
# and all subsequent libraries and executables linked against it.
20070
hardcode_automatic=$hardcode_automatic_RC
20072
# Variables whose values should be saved in libtool wrapper scripts and
20073
# restored at relink time.
20074
variables_saved_for_relink="$variables_saved_for_relink"
20076
# Whether libtool must link a program against all its dependency libraries.
20077
link_all_deplibs=$link_all_deplibs_RC
20079
# Compile-time system search path for libraries
20080
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20082
# Run-time system search path for libraries
20083
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20085
# Fix the shell variable \$srcfile for the compiler.
20086
fix_srcfile_path=$lt_fix_srcfile_path
20088
# Set to yes if exported symbols are required.
20089
always_export_symbols=$always_export_symbols_RC
20091
# The commands to list exported symbols.
20092
export_symbols_cmds=$lt_export_symbols_cmds_RC
20094
# The commands to extract the exported symbol list from a shared archive.
20095
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20097
# Symbols that should not be listed in the preloaded symbols.
20098
exclude_expsyms=$lt_exclude_expsyms_RC
20100
# Symbols that must always be exported.
20101
include_expsyms=$lt_include_expsyms_RC
20103
# ### END LIBTOOL TAG CONFIG: $tagname
20109
# If there is no Makefile yet, we rely on a make rule to execute
20110
# `config.status --recheck' to rerun these tests and create the
20111
# libtool script then.
20112
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20113
if test -f "$ltmain_in"; then
20114
test -f Makefile && make "$ltmain"
20120
ac_cpp='$CPP $CPPFLAGS'
20121
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20122
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20123
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20130
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20131
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20132
{ (exit 1); exit 1; }; }
20136
# Append the new tag name to the list of available tags.
20137
if test -n "$tagname" ; then
20138
available_tags="$available_tags $tagname"
20144
# Now substitute the updated list of available tags.
20145
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20146
mv "${ofile}T" "$ofile"
20150
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20151
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20152
{ (exit 1); exit 1; }; }
20158
# This can be used to rebuild libtool when needed
20159
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20161
# Always use our own libtool.
20162
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20164
# Prevent multiple expansion
20185
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20186
$as_echo_n "checking whether build environment is sane... " >&6; }
20189
echo timestamp > conftest.file
20190
# Do `set' in a subshell so we don't clobber the current shell's
20191
# arguments. Must try -L first in case configure is actually a
20192
# symlink; some systems play weird games with the mod time of symlinks
20193
# (eg FreeBSD returns the mod time of the symlink's containing
20196
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20197
if test "$*" = "X"; then
20199
set X `ls -t $srcdir/configure conftest.file`
20201
rm -f conftest.file
20202
if test "$*" != "X $srcdir/configure conftest.file" \
20203
&& test "$*" != "X conftest.file $srcdir/configure"; then
20205
# If neither matched, then we have a broken ls. This can happen
20206
# if, for instance, CONFIG_SHELL is bash and it inherits a
20207
# broken ls alias from the environment. This has actually
20208
# happened. Such a system could not be considered "sane".
20209
{ { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20210
alias in your environment" >&5
20211
$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20212
alias in your environment" >&2;}
20213
{ (exit 1); exit 1; }; }
20216
test "$2" = conftest.file
20222
{ { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20223
Check your system clock" >&5
20224
$as_echo "$as_me: error: newly created file is older than distributed files!
20225
Check your system clock" >&2;}
20226
{ (exit 1); exit 1; }; }
20228
{ $as_echo "$as_me:$LINENO: result: yes" >&5
20229
$as_echo "yes" >&6; }
20230
LIBTOOL="$LIBTOOL --preserve-dup-deps"
20232
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20233
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20234
if test "${ac_cv_c_const+set}" = set; then
20235
$as_echo_n "(cached) " >&6
20237
cat >conftest.$ac_ext <<_ACEOF
20240
cat confdefs.h >>conftest.$ac_ext
20241
cat >>conftest.$ac_ext <<_ACEOF
20242
/* end confdefs.h. */
20247
/* FIXME: Include the comments suggested by Paul. */
20248
#ifndef __cplusplus
20249
/* Ultrix mips cc rejects this. */
20250
typedef int charset[2];
20252
/* SunOS 4.1.1 cc rejects this. */
20253
char const *const *pcpcc;
20255
/* NEC SVR4.0.2 mips cc rejects this. */
20256
struct point {int x, y;};
20257
static struct point const zero = {0,0};
20258
/* AIX XL C 1.02.0.0 rejects this.
20259
It does not let you subtract one const X* pointer from another in
20260
an arm of an if-expression whose if-part is not a constant
20262
const char *g = "string";
20263
pcpcc = &g + (g ? g-g : 0);
20264
/* HPUX 7.0 cc rejects these. */
20266
ppc = (char**) pcpcc;
20267
pcpcc = (char const *const *) ppc;
20268
{ /* SCO 3.2v4 cc rejects this. */
20270
char const *s = 0 ? (char *) 0 : (char const *) 0;
20275
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20276
int x[] = {25, 17};
20277
const int *foo = &x[0];
20280
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20281
typedef const int *iptr;
20285
{ /* AIX XL C 1.02.0.0 rejects this saying
20286
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20287
struct s { int j; const int *ap[3]; };
20288
struct s *b; b->j = 5;
20290
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20291
const int foo = 10;
20292
if (!foo) return 0;
20294
return !cs[0] && !zero.x;
20301
rm -f conftest.$ac_objext
20302
if { (ac_try="$ac_compile"
20303
case "(($ac_try" in
20304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305
*) ac_try_echo=$ac_try;;
20307
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20308
$as_echo "$ac_try_echo") >&5
20309
(eval "$ac_compile") 2>conftest.er1
20311
grep -v '^ *+' conftest.er1 >conftest.err
20313
cat conftest.err >&5
20314
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315
(exit $ac_status); } && {
20316
test -z "$ac_c_werror_flag" ||
20317
test ! -s conftest.err
20318
} && test -s conftest.$ac_objext; then
20321
$as_echo "$as_me: failed program was:" >&5
20322
sed 's/^/| /' conftest.$ac_ext >&5
20327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20329
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20330
$as_echo "$ac_cv_c_const" >&6; }
20331
if test $ac_cv_c_const = no; then
20333
cat >>confdefs.h <<\_ACEOF
20339
{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20340
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20341
if test "${ac_cv_header_time+set}" = set; then
20342
$as_echo_n "(cached) " >&6
20344
cat >conftest.$ac_ext <<_ACEOF
20347
cat confdefs.h >>conftest.$ac_ext
20348
cat >>conftest.$ac_ext <<_ACEOF
20349
/* end confdefs.h. */
20350
#include <sys/types.h>
20351
#include <sys/time.h>
20357
if ((struct tm *) 0)
20363
rm -f conftest.$ac_objext
20364
if { (ac_try="$ac_compile"
20365
case "(($ac_try" in
20366
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367
*) ac_try_echo=$ac_try;;
20369
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20370
$as_echo "$ac_try_echo") >&5
20371
(eval "$ac_compile") 2>conftest.er1
20373
grep -v '^ *+' conftest.er1 >conftest.err
20375
cat conftest.err >&5
20376
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377
(exit $ac_status); } && {
20378
test -z "$ac_c_werror_flag" ||
20379
test ! -s conftest.err
20380
} && test -s conftest.$ac_objext; then
20381
ac_cv_header_time=yes
20383
$as_echo "$as_me: failed program was:" >&5
20384
sed 's/^/| /' conftest.$ac_ext >&5
20386
ac_cv_header_time=no
20389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20392
$as_echo "$ac_cv_header_time" >&6; }
20393
if test $ac_cv_header_time = yes; then
20395
cat >>confdefs.h <<\_ACEOF
20396
#define TIME_WITH_SYS_TIME 1
20401
{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
20402
$as_echo_n "checking for size_t... " >&6; }
20403
if test "${ac_cv_type_size_t+set}" = set; then
20404
$as_echo_n "(cached) " >&6
20406
ac_cv_type_size_t=no
20407
cat >conftest.$ac_ext <<_ACEOF
20410
cat confdefs.h >>conftest.$ac_ext
20411
cat >>conftest.$ac_ext <<_ACEOF
20412
/* end confdefs.h. */
20413
$ac_includes_default
20417
if (sizeof (size_t))
20423
rm -f conftest.$ac_objext
20424
if { (ac_try="$ac_compile"
20425
case "(($ac_try" in
20426
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427
*) ac_try_echo=$ac_try;;
20429
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20430
$as_echo "$ac_try_echo") >&5
20431
(eval "$ac_compile") 2>conftest.er1
20433
grep -v '^ *+' conftest.er1 >conftest.err
20435
cat conftest.err >&5
20436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437
(exit $ac_status); } && {
20438
test -z "$ac_c_werror_flag" ||
20439
test ! -s conftest.err
20440
} && test -s conftest.$ac_objext; then
20441
cat >conftest.$ac_ext <<_ACEOF
20444
cat confdefs.h >>conftest.$ac_ext
20445
cat >>conftest.$ac_ext <<_ACEOF
20446
/* end confdefs.h. */
20447
$ac_includes_default
20451
if (sizeof ((size_t)))
20457
rm -f conftest.$ac_objext
20458
if { (ac_try="$ac_compile"
20459
case "(($ac_try" in
20460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461
*) ac_try_echo=$ac_try;;
20463
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20464
$as_echo "$ac_try_echo") >&5
20465
(eval "$ac_compile") 2>conftest.er1
20467
grep -v '^ *+' conftest.er1 >conftest.err
20469
cat conftest.err >&5
20470
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471
(exit $ac_status); } && {
20472
test -z "$ac_c_werror_flag" ||
20473
test ! -s conftest.err
20474
} && test -s conftest.$ac_objext; then
20477
$as_echo "$as_me: failed program was:" >&5
20478
sed 's/^/| /' conftest.$ac_ext >&5
20480
ac_cv_type_size_t=yes
20483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485
$as_echo "$as_me: failed program was:" >&5
20486
sed 's/^/| /' conftest.$ac_ext >&5
20491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20494
$as_echo "$ac_cv_type_size_t" >&6; }
20495
if test "x$ac_cv_type_size_t" = x""yes; then
20499
cat >>confdefs.h <<_ACEOF
20500
#define size_t unsigned int
20505
{ $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
20506
$as_echo_n "checking for library containing getopt_long... " >&6; }
20507
if test "${ac_cv_search_getopt_long+set}" = set; then
20508
$as_echo_n "(cached) " >&6
20510
ac_func_search_save_LIBS=$LIBS
20511
cat >conftest.$ac_ext <<_ACEOF
20514
cat confdefs.h >>conftest.$ac_ext
20515
cat >>conftest.$ac_ext <<_ACEOF
20516
/* end confdefs.h. */
20518
/* Override any GCC internal prototype to avoid an error.
20519
Use char because int might match the return type of a GCC
20520
builtin and then its argument prototype would still apply. */
20524
char getopt_long ();
20528
return getopt_long ();
20533
for ac_lib in '' gnugetopt; do
20534
if test -z "$ac_lib"; then
20535
ac_res="none required"
20538
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20540
rm -f conftest.$ac_objext conftest$ac_exeext
20541
if { (ac_try="$ac_link"
20542
case "(($ac_try" in
20543
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544
*) ac_try_echo=$ac_try;;
20546
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20547
$as_echo "$ac_try_echo") >&5
20548
(eval "$ac_link") 2>conftest.er1
20550
grep -v '^ *+' conftest.er1 >conftest.err
20552
cat conftest.err >&5
20553
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554
(exit $ac_status); } && {
20555
test -z "$ac_c_werror_flag" ||
20556
test ! -s conftest.err
20557
} && test -s conftest$ac_exeext && {
20558
test "$cross_compiling" = yes ||
20559
$as_test_x conftest$ac_exeext
20561
ac_cv_search_getopt_long=$ac_res
20563
$as_echo "$as_me: failed program was:" >&5
20564
sed 's/^/| /' conftest.$ac_ext >&5
20569
rm -rf conftest.dSYM
20570
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20572
if test "${ac_cv_search_getopt_long+set}" = set; then
20576
if test "${ac_cv_search_getopt_long+set}" = set; then
20579
ac_cv_search_getopt_long=no
20581
rm conftest.$ac_ext
20582
LIBS=$ac_func_search_save_LIBS
20584
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
20585
$as_echo "$ac_cv_search_getopt_long" >&6; }
20586
ac_res=$ac_cv_search_getopt_long
20587
if test "$ac_res" != no; then
20588
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20592
{ $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
20593
$as_echo_n "checking for library containing socket... " >&6; }
20594
if test "${ac_cv_search_socket+set}" = set; then
20595
$as_echo_n "(cached) " >&6
20597
ac_func_search_save_LIBS=$LIBS
20598
cat >conftest.$ac_ext <<_ACEOF
20601
cat confdefs.h >>conftest.$ac_ext
20602
cat >>conftest.$ac_ext <<_ACEOF
20603
/* end confdefs.h. */
20605
/* Override any GCC internal prototype to avoid an error.
20606
Use char because int might match the return type of a GCC
20607
builtin and then its argument prototype would still apply. */
20620
for ac_lib in '' socket; do
20621
if test -z "$ac_lib"; then
20622
ac_res="none required"
20625
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20627
rm -f conftest.$ac_objext conftest$ac_exeext
20628
if { (ac_try="$ac_link"
20629
case "(($ac_try" in
20630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631
*) ac_try_echo=$ac_try;;
20633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20634
$as_echo "$ac_try_echo") >&5
20635
(eval "$ac_link") 2>conftest.er1
20637
grep -v '^ *+' conftest.er1 >conftest.err
20639
cat conftest.err >&5
20640
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641
(exit $ac_status); } && {
20642
test -z "$ac_c_werror_flag" ||
20643
test ! -s conftest.err
20644
} && test -s conftest$ac_exeext && {
20645
test "$cross_compiling" = yes ||
20646
$as_test_x conftest$ac_exeext
20648
ac_cv_search_socket=$ac_res
20650
$as_echo "$as_me: failed program was:" >&5
20651
sed 's/^/| /' conftest.$ac_ext >&5
20656
rm -rf conftest.dSYM
20657
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20659
if test "${ac_cv_search_socket+set}" = set; then
20663
if test "${ac_cv_search_socket+set}" = set; then
20666
ac_cv_search_socket=no
20668
rm conftest.$ac_ext
20669
LIBS=$ac_func_search_save_LIBS
20671
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
20672
$as_echo "$ac_cv_search_socket" >&6; }
20673
ac_res=$ac_cv_search_socket
20674
if test "$ac_res" != no; then
20675
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20679
{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
20680
$as_echo_n "checking for library containing gethostbyname... " >&6; }
20681
if test "${ac_cv_search_gethostbyname+set}" = set; then
20682
$as_echo_n "(cached) " >&6
20684
ac_func_search_save_LIBS=$LIBS
20685
cat >conftest.$ac_ext <<_ACEOF
20688
cat confdefs.h >>conftest.$ac_ext
20689
cat >>conftest.$ac_ext <<_ACEOF
20690
/* end confdefs.h. */
20692
/* Override any GCC internal prototype to avoid an error.
20693
Use char because int might match the return type of a GCC
20694
builtin and then its argument prototype would still apply. */
20698
char gethostbyname ();
20702
return gethostbyname ();
20707
for ac_lib in '' nsl; do
20708
if test -z "$ac_lib"; then
20709
ac_res="none required"
20712
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20714
rm -f conftest.$ac_objext conftest$ac_exeext
20715
if { (ac_try="$ac_link"
20716
case "(($ac_try" in
20717
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718
*) ac_try_echo=$ac_try;;
20720
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20721
$as_echo "$ac_try_echo") >&5
20722
(eval "$ac_link") 2>conftest.er1
20724
grep -v '^ *+' conftest.er1 >conftest.err
20726
cat conftest.err >&5
20727
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728
(exit $ac_status); } && {
20729
test -z "$ac_c_werror_flag" ||
20730
test ! -s conftest.err
20731
} && test -s conftest$ac_exeext && {
20732
test "$cross_compiling" = yes ||
20733
$as_test_x conftest$ac_exeext
20735
ac_cv_search_gethostbyname=$ac_res
20737
$as_echo "$as_me: failed program was:" >&5
20738
sed 's/^/| /' conftest.$ac_ext >&5
20743
rm -rf conftest.dSYM
20744
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20746
if test "${ac_cv_search_gethostbyname+set}" = set; then
20750
if test "${ac_cv_search_gethostbyname+set}" = set; then
20753
ac_cv_search_gethostbyname=no
20755
rm conftest.$ac_ext
20756
LIBS=$ac_func_search_save_LIBS
20758
{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
20759
$as_echo "$ac_cv_search_gethostbyname" >&6; }
20760
ac_res=$ac_cv_search_gethostbyname
20761
if test "$ac_res" != no; then
20762
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20767
# Extract the first word of "pod2man", so it can be a program name with args.
20768
set dummy pod2man; ac_word=$2
20769
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20770
$as_echo_n "checking for $ac_word... " >&6; }
20771
if test "${ac_cv_path_POD2MAN+set}" = set; then
20772
$as_echo_n "(cached) " >&6
20776
ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
20779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20780
as_dummy="$PATH:/usr/bin:/usr/local/bin"
20781
for as_dir in $as_dummy
20784
test -z "$as_dir" && as_dir=.
20785
for ac_exec_ext in '' $ac_executable_extensions; do
20786
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20787
ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
20788
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20795
test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN=""no""
20799
POD2MAN=$ac_cv_path_POD2MAN
20800
if test -n "$POD2MAN"; then
20801
{ $as_echo "$as_me:$LINENO: result: $POD2MAN" >&5
20802
$as_echo "$POD2MAN" >&6; }
20804
{ $as_echo "$as_me:$LINENO: result: no" >&5
20805
$as_echo "no" >&6; }
20809
if test "x$POD2MAN" == "xno"; then
20810
{ { $as_echo "$as_me:$LINENO: error: \"Could not find pod2man anywhere in path\"" >&5
20811
$as_echo "$as_me: error: \"Could not find pod2man anywhere in path\"" >&2;}
20812
{ (exit 1); exit 1; }; }
20816
# Check whether --enable-debug was given.
20817
if test "${enable_debug+set}" = set; then
20818
enableval=$enable_debug;
20820
cat >>confdefs.h <<\_ACEOF
20821
#define HAVE_DEBUG 1
20824
for ac_prog in debug
20826
# Extract the first word of "$ac_prog", so it can be a program name with args.
20827
set dummy $ac_prog; ac_word=$2
20828
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20829
$as_echo_n "checking for $ac_word... " >&6; }
20830
if test "${ac_cv_prog_DEBUG+set}" = set; then
20831
$as_echo_n "(cached) " >&6
20833
if test -n "$DEBUG"; then
20834
ac_cv_prog_DEBUG="$DEBUG" # Let the user override the test.
20836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837
for as_dir in $PATH
20840
test -z "$as_dir" && as_dir=.
20841
for ac_exec_ext in '' $ac_executable_extensions; do
20842
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20843
ac_cv_prog_DEBUG="$ac_prog"
20844
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20853
DEBUG=$ac_cv_prog_DEBUG
20854
if test -n "$DEBUG"; then
20855
{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
20856
$as_echo "$DEBUG" >&6; }
20858
{ $as_echo "$as_me:$LINENO: result: no" >&5
20859
$as_echo "no" >&6; }
20863
test -n "$DEBUG" && break
20877
if test "$ENABLE_DEBUG" = "yes" ; then
20879
HAVE_DEBUG_FALSE='#'
20881
HAVE_DEBUG_TRUE='#'
20886
# Check whether --enable-dtrace was given.
20887
if test "${enable_dtrace+set}" = set; then
20888
enableval=$enable_dtrace;
20889
# Extract the first word of "dtrace", so it can be a program name with args.
20890
set dummy dtrace; ac_word=$2
20891
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20892
$as_echo_n "checking for $ac_word... " >&6; }
20893
if test "${ac_cv_path_DTRACE+set}" = set; then
20894
$as_echo_n "(cached) " >&6
20898
ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
20901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20902
as_dummy="/usr/sbin:$PATH"
20903
for as_dir in $as_dummy
20906
test -z "$as_dir" && as_dir=.
20907
for ac_exec_ext in '' $ac_executable_extensions; do
20908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20909
ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
20910
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20917
test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE=""no""
20921
DTRACE=$ac_cv_path_DTRACE
20922
if test -n "$DTRACE"; then
20923
{ $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
20924
$as_echo "$DTRACE" >&6; }
20926
{ $as_echo "$as_me:$LINENO: result: no" >&5
20927
$as_echo "no" >&6; }
20931
if test "x$DTRACE" != "xno"; then
20933
cat >>confdefs.h <<\_ACEOF
20934
#define HAVE_DTRACE 1
20937
DTRACE_HEADER=dtrace_probes.h
20939
# DTrace on MacOSX does not use -G option
20940
$DTRACE -G -o conftest.$$ -s libmemcached/libmemcached_probes.d 2>/dev/zero
20943
DTRACE_OBJ=libmemcached_probes.lo
20947
ENABLE_DTRACE="yes"
20950
{ { $as_echo "$as_me:$LINENO: error: Need dtrace binary and OS support." >&5
20951
$as_echo "$as_me: error: Need dtrace binary and OS support." >&2;}
20952
{ (exit 1); exit 1; }; }
20966
if test "$ENABLE_DTRACE" = "yes" ; then
20968
HAVE_DTRACE_FALSE='#'
20970
HAVE_DTRACE_TRUE='#'
20978
{ $as_echo "$as_me:$LINENO: checking for htonll" >&5
20979
$as_echo_n "checking for htonll... " >&6; }
20981
if test "$cross_compiling" = yes; then
20982
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20983
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20984
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20985
See \`config.log' for more details." >&5
20986
$as_echo "$as_me: error: cannot run test program while cross compiling
20987
See \`config.log' for more details." >&2;}
20988
{ (exit 1); exit 1; }; }; }
20990
cat >conftest.$ac_ext <<_ACEOF
20994
cat confdefs.h >>conftest.$ac_ext
20995
cat >>conftest.$ac_ext <<_ACEOF
20996
/* end confdefs.h. */
20998
#include <sys/types.h>
20999
#include <netinet/in.h>
21000
#include <inttypes.h>
21013
rm -f conftest$ac_exeext
21014
if { (ac_try="$ac_link"
21015
case "(($ac_try" in
21016
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017
*) ac_try_echo=$ac_try;;
21019
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21020
$as_echo "$ac_try_echo") >&5
21021
(eval "$ac_link") 2>&5
21023
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21025
{ (case "(($ac_try" in
21026
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027
*) ac_try_echo=$ac_try;;
21029
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21030
$as_echo "$ac_try_echo") >&5
21031
(eval "$ac_try") 2>&5
21033
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034
(exit $ac_status); }; }; then
21038
cat >>confdefs.h <<\_ACEOF
21039
#define HAVE_HTONLL 1
21044
$as_echo "$as_me: program exited with status $ac_status" >&5
21045
$as_echo "$as_me: failed program was:" >&5
21046
sed 's/^/| /' conftest.$ac_ext >&5
21049
rm -rf conftest.dSYM
21050
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21055
{ $as_echo "$as_me:$LINENO: result: $have_htoll" >&5
21056
$as_echo "$have_htoll" >&6; }
21057
if test "x$have_htoll" == "xno"; then
21058
BUILD_BYTEORDER_TRUE=
21059
BUILD_BYTEORDER_FALSE='#'
21061
BUILD_BYTEORDER_TRUE='#'
21062
BUILD_BYTEORDER_FALSE=
21065
{ $as_echo "$as_me:$LINENO: checking byteorder" >&5
21066
$as_echo_n "checking byteorder... " >&6; }
21068
if test "$cross_compiling" = yes; then
21069
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21070
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21071
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21072
See \`config.log' for more details." >&5
21073
$as_echo "$as_me: error: cannot run test program while cross compiling
21074
See \`config.log' for more details." >&2;}
21075
{ (exit 1); exit 1; }; }; }
21077
cat >conftest.$ac_ext <<_ACEOF
21081
cat confdefs.h >>conftest.$ac_ext
21082
cat >>conftest.$ac_ext <<_ACEOF
21083
/* end confdefs.h. */
21085
#include <sys/types.h>
21086
#include <netinet/in.h>
21087
#include <inttypes.h>
21093
if (htonl(5) != 5) {
21102
rm -f conftest$ac_exeext
21103
if { (ac_try="$ac_link"
21104
case "(($ac_try" in
21105
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106
*) ac_try_echo=$ac_try;;
21108
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21109
$as_echo "$ac_try_echo") >&5
21110
(eval "$ac_link") 2>&5
21112
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21114
{ (case "(($ac_try" in
21115
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116
*) ac_try_echo=$ac_try;;
21118
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21119
$as_echo "$ac_try_echo") >&5
21120
(eval "$ac_try") 2>&5
21122
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123
(exit $ac_status); }; }; then
21125
{ $as_echo "$as_me:$LINENO: result: big endian" >&5
21126
$as_echo "big endian" >&6; }
21128
cat >>confdefs.h <<\_ACEOF
21129
#define BYTEORDER_BIG_ENDIAN 1
21134
$as_echo "$as_me: program exited with status $ac_status" >&5
21135
$as_echo "$as_me: failed program was:" >&5
21136
sed 's/^/| /' conftest.$ac_ext >&5
21138
( exit $ac_status )
21140
{ $as_echo "$as_me:$LINENO: result: little endian" >&5
21141
$as_echo "little endian" >&6; }
21143
cat >>confdefs.h <<\_ACEOF
21144
#define BYTEORDER_LITTLE_ENDIAN 1
21149
rm -rf conftest.dSYM
21150
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21156
# Check whether --enable-64bit was given.
21157
if test "${enable_64bit+set}" = set; then
21158
enableval=$enable_64bit;
21162
ac_cpp='$CPP $CPPFLAGS'
21163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21167
if test "$cross_compiling" = yes; then
21168
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21170
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21171
See \`config.log' for more details." >&5
21172
$as_echo "$as_me: error: cannot run test program while cross compiling
21173
See \`config.log' for more details." >&2;}
21174
{ (exit 1); exit 1; }; }; }
21176
cat >conftest.$ac_ext <<_ACEOF
21180
cat confdefs.h >>conftest.$ac_ext
21181
cat >>conftest.$ac_ext <<_ACEOF
21182
/* end confdefs.h. */
21187
if (sizeof(void*) != 8) return 1;
21193
rm -f conftest$ac_exeext
21194
if { (ac_try="$ac_link"
21195
case "(($ac_try" in
21196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197
*) ac_try_echo=$ac_try;;
21199
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21200
$as_echo "$ac_try_echo") >&5
21201
(eval "$ac_link") 2>&5
21203
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21205
{ (case "(($ac_try" in
21206
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207
*) ac_try_echo=$ac_try;;
21209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21210
$as_echo "$ac_try_echo") >&5
21211
(eval "$ac_try") 2>&5
21213
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214
(exit $ac_status); }; }; then
21216
CFLAGS="$CFLAGS $org_cflags"
21219
$as_echo "$as_me: program exited with status $ac_status" >&5
21220
$as_echo "$as_me: failed program was:" >&5
21221
sed 's/^/| /' conftest.$ac_ext >&5
21223
( exit $ac_status )
21225
{ { $as_echo "$as_me:$LINENO: error: Don't know how to build a 64-bit object." >&5
21226
$as_echo "$as_me: error: Don't know how to build a 64-bit object." >&2;}
21227
{ (exit 1); exit 1; }; }
21230
rm -rf conftest.dSYM
21231
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21235
org_cxxflags=$CXXFLAGS
21238
ac_cpp='$CXXCPP $CPPFLAGS'
21239
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21243
if test "$cross_compiling" = yes; then
21244
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21245
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21246
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21247
See \`config.log' for more details." >&5
21248
$as_echo "$as_me: error: cannot run test program while cross compiling
21249
See \`config.log' for more details." >&2;}
21250
{ (exit 1); exit 1; }; }; }
21252
cat >conftest.$ac_ext <<_ACEOF
21256
cat confdefs.h >>conftest.$ac_ext
21257
cat >>conftest.$ac_ext <<_ACEOF
21258
/* end confdefs.h. */
21263
if (sizeof(void*) != 8) return 1;
21269
rm -f conftest$ac_exeext
21270
if { (ac_try="$ac_link"
21271
case "(($ac_try" in
21272
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273
*) ac_try_echo=$ac_try;;
21275
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21276
$as_echo "$ac_try_echo") >&5
21277
(eval "$ac_link") 2>&5
21279
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21281
{ (case "(($ac_try" in
21282
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283
*) ac_try_echo=$ac_try;;
21285
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21286
$as_echo "$ac_try_echo") >&5
21287
(eval "$ac_try") 2>&5
21289
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290
(exit $ac_status); }; }; then
21292
CXXFLAGS="$CXXFLAGS $org_cxxflags"
21295
$as_echo "$as_me: program exited with status $ac_status" >&5
21296
$as_echo "$as_me: failed program was:" >&5
21297
sed 's/^/| /' conftest.$ac_ext >&5
21299
( exit $ac_status )
21301
{ { $as_echo "$as_me:$LINENO: error: Don't know how to build a 64-bit object." >&5
21302
$as_echo "$as_me: error: Don't know how to build a 64-bit object." >&2;}
21303
{ (exit 1); exit 1; }; }
21306
rm -rf conftest.dSYM
21307
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21316
if test "$cross_compiling" = yes; then
21317
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21318
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21319
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21320
See \`config.log' for more details." >&5
21321
$as_echo "$as_me: error: cannot run test program while cross compiling
21322
See \`config.log' for more details." >&2;}
21323
{ (exit 1); exit 1; }; }; }
21325
cat >conftest.$ac_ext <<_ACEOF
21329
cat confdefs.h >>conftest.$ac_ext
21330
cat >>conftest.$ac_ext <<_ACEOF
21331
/* end confdefs.h. */
21333
#include "libmemcached/memcached/protocol_binary.h"
21339
protocol_binary_request_set request;
21340
if (sizeof(request) != sizeof(request.bytes)) {
21349
rm -f conftest$ac_exeext
21350
if { (ac_try="$ac_link"
21351
case "(($ac_try" in
21352
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353
*) ac_try_echo=$ac_try;;
21355
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21356
$as_echo "$ac_try_echo") >&5
21357
(eval "$ac_link") 2>&5
21359
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21361
{ (case "(($ac_try" in
21362
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363
*) ac_try_echo=$ac_try;;
21365
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21366
$as_echo "$ac_try_echo") >&5
21367
(eval "$ac_try") 2>&5
21369
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370
(exit $ac_status); }; }; then
21373
$as_echo "$as_me: program exited with status $ac_status" >&5
21374
$as_echo "$as_me: failed program was:" >&5
21375
sed 's/^/| /' conftest.$ac_ext >&5
21377
( exit $ac_status )
21378
{ { $as_echo "$as_me:$LINENO: error: Unsupported struct padding done by compiler." >&5
21379
$as_echo "$as_me: error: Unsupported struct padding done by compiler." >&2;}
21380
{ (exit 1); exit 1; }; }
21382
rm -rf conftest.dSYM
21383
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21390
# Check whether --with-memcached was given.
21391
if test "${with_memcached+set}" = set; then
21392
withval=$with_memcached;
21393
if test -n "$withval"
21395
MEMC_BINARY="$withval"
21398
if test x$withval == xyes
21400
MEMC_BINARY=memcached
21403
# just ignore the user if --without-memcached is passed.. it is
21404
# only used by make test
21405
if test x$withval == xno
21407
MEMC_BINARY=memcached
21412
# Extract the first word of "memcached", so it can be a program name with args.
21413
set dummy memcached; ac_word=$2
21414
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21415
$as_echo_n "checking for $ac_word... " >&6; }
21416
if test "${ac_cv_path_MEMC_BINARY+set}" = set; then
21417
$as_echo_n "(cached) " >&6
21419
case $MEMC_BINARY in
21421
ac_cv_path_MEMC_BINARY="$MEMC_BINARY" # Let the user override the test with a path.
21424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21425
for as_dir in $PATH
21428
test -z "$as_dir" && as_dir=.
21429
for ac_exec_ext in '' $ac_executable_extensions; do
21430
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21431
ac_cv_path_MEMC_BINARY="$as_dir/$ac_word$ac_exec_ext"
21432
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21439
test -z "$ac_cv_path_MEMC_BINARY" && ac_cv_path_MEMC_BINARY=""no""
21443
MEMC_BINARY=$ac_cv_path_MEMC_BINARY
21444
if test -n "$MEMC_BINARY"; then
21445
{ $as_echo "$as_me:$LINENO: result: $MEMC_BINARY" >&5
21446
$as_echo "$MEMC_BINARY" >&6; }
21448
{ $as_echo "$as_me:$LINENO: result: no" >&5
21449
$as_echo "no" >&6; }
21457
if test x$MEMC_BINARY == "xno"
21459
{ { $as_echo "$as_me:$LINENO: error: \"could not find memcached binary\"" >&5
21460
$as_echo "$as_me: error: \"could not find memcached binary\"" >&2;}
21461
{ (exit 1); exit 1; }; }
21465
cat >>confdefs.h <<_ACEOF
21466
#define MEMCACHED_BINARY "$MEMC_BINARY"
21471
ac_cpp='$CPP $CPPFLAGS'
21472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21476
if test "$cross_compiling" = yes; then
21477
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21478
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21479
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21480
See \`config.log' for more details." >&5
21481
$as_echo "$as_me: error: cannot run test program while cross compiling
21482
See \`config.log' for more details." >&2;}
21483
{ (exit 1); exit 1; }; }; }
21485
cat >conftest.$ac_ext <<_ACEOF
21489
cat confdefs.h >>conftest.$ac_ext
21490
cat >>conftest.$ac_ext <<_ACEOF
21491
/* end confdefs.h. */
21493
#include <sys/types.h>
21494
#include <sys/socket.h>
21496
#include <sys/time.h>
21503
int sock = socket(AF_INET, SOCK_STREAM, 0);
21504
struct timeval waittime;
21506
waittime.tv_sec= 0;
21507
waittime.tv_usec= 500;
21509
if (setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO,
21510
&waittime, (socklen_t)sizeof(struct timeval)) == -1) {
21511
if (errno == ENOPROTOOPT) {
21522
rm -f conftest$ac_exeext
21523
if { (ac_try="$ac_link"
21524
case "(($ac_try" in
21525
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526
*) ac_try_echo=$ac_try;;
21528
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529
$as_echo "$ac_try_echo") >&5
21530
(eval "$ac_link") 2>&5
21532
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21534
{ (case "(($ac_try" in
21535
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536
*) ac_try_echo=$ac_try;;
21538
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21539
$as_echo "$ac_try_echo") >&5
21540
(eval "$ac_try") 2>&5
21542
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543
(exit $ac_status); }; }; then
21545
cat >>confdefs.h <<\_ACEOF
21546
#define HAVE_SNDTIMEO 1
21550
$as_echo "$as_me: program exited with status $ac_status" >&5
21551
$as_echo "$as_me: failed program was:" >&5
21552
sed 's/^/| /' conftest.$ac_ext >&5
21555
rm -rf conftest.dSYM
21556
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21561
if test "$cross_compiling" = yes; then
21562
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21563
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21564
{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21565
See \`config.log' for more details." >&5
21566
$as_echo "$as_me: error: cannot run test program while cross compiling
21567
See \`config.log' for more details." >&2;}
21568
{ (exit 1); exit 1; }; }; }
21570
cat >conftest.$ac_ext <<_ACEOF
21574
cat confdefs.h >>conftest.$ac_ext
21575
cat >>conftest.$ac_ext <<_ACEOF
21576
/* end confdefs.h. */
21578
#include <sys/types.h>
21579
#include <sys/socket.h>
21581
#include <sys/time.h>
21588
int sock = socket(AF_INET, SOCK_STREAM, 0);
21589
struct timeval waittime;
21591
waittime.tv_sec= 0;
21592
waittime.tv_usec= 500;
21594
if (setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO,
21595
&waittime, (socklen_t)sizeof(struct timeval)) == -1) {
21596
if (errno == ENOPROTOOPT) {
21607
rm -f conftest$ac_exeext
21608
if { (ac_try="$ac_link"
21609
case "(($ac_try" in
21610
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611
*) ac_try_echo=$ac_try;;
21613
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21614
$as_echo "$ac_try_echo") >&5
21615
(eval "$ac_link") 2>&5
21617
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21619
{ (case "(($ac_try" in
21620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621
*) ac_try_echo=$ac_try;;
21623
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21624
$as_echo "$ac_try_echo") >&5
21625
(eval "$ac_try") 2>&5
21627
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628
(exit $ac_status); }; }; then
21630
cat >>confdefs.h <<\_ACEOF
21631
#define HAVE_RCVTIMEO 1
21635
$as_echo "$as_me: program exited with status $ac_status" >&5
21636
$as_echo "$as_me: failed program was:" >&5
21637
sed 's/^/| /' conftest.$ac_ext >&5
21640
rm -rf conftest.dSYM
21641
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21648
# We only support GCC and Sun's forte at the moment
21649
if test "$GCC" = "yes"
21651
#CFLAGS="-W -std=iso9899:1999 -Wall -Wextra -Wstrict-aliasing -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -O3 $CFLAGS"
21652
CFLAGS="-Wall -O3 $CFLAGS"
21654
if test "$ENABLE_DEBUG" = "yes"
21656
CFLAGS="$CFLAGS -ggdb -DHAVE_DEBUG"
21659
CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ -errfmt=error -errwarn -errshort=tags $CFLAGS"
21660
CXXFLAGS="+w +w2 -xwe -mt -D_FORTEC_ $CXXFLAGS"
21661
if test "$ENABLE_DEBUG" = "yes"
21663
CFLAGS="$CFLAGS -DHAVE_DEBUG"
21664
CXXFLAGS="$CXXFLAGS -DHAVE_DEBUG"
21670
ac_config_files="$ac_config_files Makefile clients/Makefile tests/Makefile docs/Makefile libmemcached/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec"
21672
cat >confcache <<\_ACEOF
21673
# This file is a shell script that caches the results of configure
21674
# tests run on this system so they can be shared between configure
21675
# scripts and configure runs, see configure's option --config-cache.
21676
# It is not useful on other systems. If it contains results you don't
21677
# want to keep, you may remove or edit it.
21679
# config.status only pays attention to the cache file if you give it
21680
# the --recheck option to rerun configure.
21682
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21683
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21684
# following values.
21688
# The following way of writing the cache mishandles newlines in values,
21689
# but we know of no workaround that is simple, portable, and efficient.
21690
# So, we kill variables containing newlines.
21691
# Ultrix sh set writes to stderr and can't be redirected directly,
21692
# and sets the high bit in the cache file unless we assign to the vars.
21694
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21695
eval ac_val=\$$ac_var
21699
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21700
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21703
_ | IFS | as_nl) ;; #(
21704
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21705
*) $as_unset $ac_var ;;
21711
case $as_nl`(ac_space=' '; set) 2>&1` in #(
21712
*${as_nl}ac_space=\ *)
21713
# `set' does not quote correctly, so add quotes (double-quote
21714
# substitution turns \\\\ into \\, and sed turns \\ into \).
21717
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21720
# `set' quotes correctly as required by POSIX, so do not add quotes.
21721
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21730
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21732
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21734
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21735
if test -w "$cache_file"; then
21736
test "x$cache_file" != "x/dev/null" &&
21737
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21738
$as_echo "$as_me: updating cache $cache_file" >&6;}
21739
cat confcache >$cache_file
21741
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21742
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21747
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21748
# Let make expand exec_prefix.
21749
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21751
DEFS=-DHAVE_CONFIG_H
21755
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21756
# 1. Remove the extension, and $U if already installed.
21757
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21758
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21759
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21760
# will be set to the directory where LIBOBJS objects are built.
21761
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21762
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21764
LIBOBJS=$ac_libobjs
21766
LTLIBOBJS=$ac_ltlibobjs
21769
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21770
{ { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21771
Usually this means the macro was only invoked conditionally." >&5
21772
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21773
Usually this means the macro was only invoked conditionally." >&2;}
21774
{ (exit 1); exit 1; }; }
21776
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21777
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21778
Usually this means the macro was only invoked conditionally." >&5
21779
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21780
Usually this means the macro was only invoked conditionally." >&2;}
21781
{ (exit 1); exit 1; }; }
21783
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21784
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21785
Usually this means the macro was only invoked conditionally." >&5
21786
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21787
Usually this means the macro was only invoked conditionally." >&2;}
21788
{ (exit 1); exit 1; }; }
21790
if test -z "${HAVE_DEBUG_TRUE}" && test -z "${HAVE_DEBUG_FALSE}"; then
21791
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DEBUG\" was never defined.
21792
Usually this means the macro was only invoked conditionally." >&5
21793
$as_echo "$as_me: error: conditional \"HAVE_DEBUG\" was never defined.
21794
Usually this means the macro was only invoked conditionally." >&2;}
21795
{ (exit 1); exit 1; }; }
21797
if test -z "${HAVE_DTRACE_TRUE}" && test -z "${HAVE_DTRACE_FALSE}"; then
21798
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DTRACE\" was never defined.
21799
Usually this means the macro was only invoked conditionally." >&5
21800
$as_echo "$as_me: error: conditional \"HAVE_DTRACE\" was never defined.
21801
Usually this means the macro was only invoked conditionally." >&2;}
21802
{ (exit 1); exit 1; }; }
21804
if test -z "${BUILD_BYTEORDER_TRUE}" && test -z "${BUILD_BYTEORDER_FALSE}"; then
21805
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_BYTEORDER\" was never defined.
21806
Usually this means the macro was only invoked conditionally." >&5
21807
$as_echo "$as_me: error: conditional \"BUILD_BYTEORDER\" was never defined.
21808
Usually this means the macro was only invoked conditionally." >&2;}
21809
{ (exit 1); exit 1; }; }
21812
: ${CONFIG_STATUS=./config.status}
21814
ac_clean_files_save=$ac_clean_files
21815
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21816
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21817
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21818
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21820
# Generated by $as_me.
21821
# Run this file to recreate the current configuration.
21822
# Compiler output produced by configure, useful for debugging
21823
# configure, is in config.log if it exists.
21826
ac_cs_recheck=false
21828
SHELL=\${CONFIG_SHELL-$SHELL}
21831
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21832
## --------------------- ##
21833
## M4sh Initialization. ##
21834
## --------------------- ##
21836
# Be more Bourne compatible
21837
DUALCASE=1; export DUALCASE # for MKS sh
21838
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21841
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21842
# is contrary to our usage. Disable this feature.
21843
alias -g '${1+"$@"}'='"$@"'
21844
setopt NO_GLOB_SUBST
21846
case `(set -o) 2>/dev/null` in
21847
*posix*) set -o posix ;;
21856
# Avoid depending upon Character Ranges.
21857
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21858
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21859
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21860
as_cr_digits='0123456789'
21861
as_cr_alnum=$as_cr_Letters$as_cr_digits
21866
# Printing a long string crashes Solaris 7 /usr/bin/printf.
21867
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21868
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21869
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21870
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21871
as_echo='printf %s\n'
21872
as_echo_n='printf %s'
21874
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21875
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21876
as_echo_n='/usr/ucb/echo -n'
21878
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21879
as_echo_n_body='eval
21883
expr "X$arg" : "X\\(.*\\)$as_nl";
21884
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21886
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21888
export as_echo_n_body
21889
as_echo_n='sh -c $as_echo_n_body as_echo'
21891
export as_echo_body
21892
as_echo='sh -c $as_echo_body as_echo'
21895
# The user is always right.
21896
if test "${PATH_SEPARATOR+set}" != set; then
21898
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21899
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21904
# Support unset when possible.
21905
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21913
# We need space, tab and new line, in precisely that order. Quoting is
21914
# there to prevent editors from complaining about space-tab.
21915
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21916
# splitting by setting IFS to empty value.)
21919
# Find who we are. Look in the path if we contain no directory separator.
21921
*[\\/]* ) as_myself=$0 ;;
21922
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21923
for as_dir in $PATH
21926
test -z "$as_dir" && as_dir=.
21927
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21933
# We did not find ourselves, most probably we were run as `sh COMMAND'
21934
# in which case we are not to be found in the path.
21935
if test "x$as_myself" = x; then
21938
if test ! -f "$as_myself"; then
21939
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21940
{ (exit 1); exit 1; }
21943
# Work around bugs in pre-3.0 UWIN ksh.
21944
for as_var in ENV MAIL MAILPATH
21945
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21957
# Required to use basename.
21958
if expr a : '\(a\)' >/dev/null 2>&1 &&
21959
test "X`expr 00001 : '.*\(...\)'`" = X001; then
21965
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21966
as_basename=basename
21972
# Name of the executable.
21973
as_me=`$as_basename -- "$0" ||
21974
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21975
X"$0" : 'X\(//\)$' \| \
21976
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21978
sed '/^.*\/\([^/][^/]*\)\/*$/{
21997
as_lineno_1=$LINENO
21998
as_lineno_2=$LINENO
21999
test "x$as_lineno_1" != "x$as_lineno_2" &&
22000
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22002
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22003
# uniformly replaced by the line number. The first 'sed' inserts a
22004
# line-number line after each line using $LINENO; the second 'sed'
22005
# does the real work. The second script uses 'N' to pair each
22006
# line-number line with the line containing $LINENO, and appends
22007
# trailing '-' during substitution so that $LINENO is not a special
22008
# case at line end.
22009
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22010
# scripts with optimization help from Paolo Bonzini. Blame Lee
22011
# E. McMahon (1931-1989) for sed's syntax. :-)
22023
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22026
' >$as_me.lineno &&
22027
chmod +x "$as_me.lineno" ||
22028
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22029
{ (exit 1); exit 1; }; }
22031
# Don't try to exec as it changes $[0], causing all sort of problems
22032
# (the dirname of $[0] is not the place where we might find the
22033
# original and so on. Autoconf is especially sensitive to this).
22034
. "./$as_me.lineno"
22035
# Exit status is that of the last command.
22040
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22046
ECHO_C= ECHO_N= ECHO_T=
22047
case `echo -n x` in
22049
case `echo 'x\c'` in
22050
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
22056
if expr a : '\(a\)' >/dev/null 2>&1 &&
22057
test "X`expr 00001 : '.*\(...\)'`" = X001; then
22063
rm -f conf$$ conf$$.exe conf$$.file
22064
if test -d conf$$.dir; then
22065
rm -f conf$$.dir/conf$$.file
22068
mkdir conf$$.dir 2>/dev/null
22070
if (echo >conf$$.file) 2>/dev/null; then
22071
if ln -s conf$$.file conf$$ 2>/dev/null; then
22073
# ... but there are two gotchas:
22074
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22075
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22076
# In both cases, we have to default to `cp -p'.
22077
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22079
elif ln conf$$.file conf$$ 2>/dev/null; then
22087
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22088
rmdir conf$$.dir 2>/dev/null
22090
if mkdir -p . 2>/dev/null; then
22093
test -d ./-p && rmdir ./-p
22097
if test -x / >/dev/null 2>&1; then
22098
as_test_x='test -x'
22100
if ls -dL / >/dev/null 2>&1; then
22107
if test -d "$1"; then
22113
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22114
???[sx]*):;;*)false;;esac;fi
22118
as_executable_p=$as_test_x
22120
# Sed expression to map a string onto a valid CPP name.
22121
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22123
# Sed expression to map a string onto a valid variable name.
22124
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22129
# Save the log message, to keep $[0] and so on meaningful, and to
22130
# report actual input values of CONFIG_FILES etc. instead of their
22131
# values after options handling.
22133
This file was extended by $as_me, which was
22134
generated by GNU Autoconf 2.63. Invocation command line was
22136
CONFIG_FILES = $CONFIG_FILES
22137
CONFIG_HEADERS = $CONFIG_HEADERS
22138
CONFIG_LINKS = $CONFIG_LINKS
22139
CONFIG_COMMANDS = $CONFIG_COMMANDS
22142
on `(hostname || uname -n) 2>/dev/null | sed 1q`
22147
case $ac_config_files in *"
22148
"*) set x $ac_config_files; shift; ac_config_files=$*;;
22151
case $ac_config_headers in *"
22152
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22156
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22157
# Files that config.status was made for.
22158
config_files="$ac_config_files"
22159
config_headers="$ac_config_headers"
22160
config_commands="$ac_config_commands"
22164
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22166
\`$as_me' instantiates files from templates according to the
22167
current configuration.
22169
Usage: $0 [OPTION]... [FILE]...
22171
-h, --help print this help, then exit
22172
-V, --version print version number and configuration settings, then exit
22173
-q, --quiet, --silent
22174
do not print progress messages
22175
-d, --debug don't remove temporary files
22176
--recheck update $as_me by reconfiguring in the same conditions
22177
--file=FILE[:TEMPLATE]
22178
instantiate the configuration file FILE
22179
--header=FILE[:TEMPLATE]
22180
instantiate the configuration header FILE
22182
Configuration files:
22185
Configuration headers:
22188
Configuration commands:
22191
Report bugs to <bug-autoconf@gnu.org>."
22194
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22197
configured by $0, generated by GNU Autoconf 2.63,
22198
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22200
Copyright (C) 2008 Free Software Foundation, Inc.
22201
This config.status script is free software; the Free Software Foundation
22202
gives unlimited permission to copy, distribute and modify it."
22209
test -n "\$AWK" || AWK=awk
22212
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22213
# The default lists apply if the user does not specify any file.
22219
ac_option=`expr "X$1" : 'X\([^=]*\)='`
22220
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22231
# Handling of the options.
22232
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22234
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22235
$as_echo "$ac_cs_version"; exit ;;
22236
--debug | --debu | --deb | --de | --d | -d )
22238
--file | --fil | --fi | --f )
22241
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22243
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22244
ac_need_defaults=false;;
22245
--header | --heade | --head | --hea )
22248
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22250
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22251
ac_need_defaults=false;;
22253
# Conflict between --help and --header
22254
{ $as_echo "$as_me: error: ambiguous option: $1
22255
Try \`$0 --help' for more information." >&2
22256
{ (exit 1); exit 1; }; };;
22257
--help | --hel | -h )
22258
$as_echo "$ac_cs_usage"; exit ;;
22259
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
22260
| -silent | --silent | --silen | --sile | --sil | --si | --s)
22263
# This is an error.
22264
-*) { $as_echo "$as_me: error: unrecognized option: $1
22265
Try \`$0 --help' for more information." >&2
22266
{ (exit 1); exit 1; }; } ;;
22268
*) ac_config_targets="$ac_config_targets $1"
22269
ac_need_defaults=false ;;
22275
ac_configure_extra_args=
22277
if $ac_cs_silent; then
22279
ac_configure_extra_args="$ac_configure_extra_args --silent"
22283
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22284
if \$ac_cs_recheck; then
22285
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22287
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22288
CONFIG_SHELL='$SHELL'
22289
export CONFIG_SHELL
22294
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22298
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22299
## Running $as_me. ##
22305
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22309
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22313
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22315
# Handling of arguments.
22316
for ac_config_target in $ac_config_targets
22318
case $ac_config_target in
22319
"libmemcached/libmemcached_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libmemcached/libmemcached_config.h" ;;
22320
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22321
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22322
"clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
22323
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22324
"docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
22325
"libmemcached/Makefile") CONFIG_FILES="$CONFIG_FILES libmemcached/Makefile" ;;
22326
"support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
22327
"support/libmemcached.pc") CONFIG_FILES="$CONFIG_FILES support/libmemcached.pc" ;;
22328
"support/libmemcached.spec") CONFIG_FILES="$CONFIG_FILES support/libmemcached.spec" ;;
22330
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22331
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22332
{ (exit 1); exit 1; }; };;
22337
# If the user did not use the arguments to specify the items to instantiate,
22338
# then the envvar interface is used. Set only those that are not.
22339
# We use the long form for the default assignment because of an extremely
22340
# bizarre bug on SunOS 4.1.3.
22341
if $ac_need_defaults; then
22342
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22343
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22344
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22347
# Have a temporary directory for convenience. Make it in the build tree
22348
# simply because there is no reason against having it here, and in addition,
22349
# creating and moving files from /tmp can sometimes cause problems.
22350
# Hook for its removal unless debugging.
22351
# Note that there is a small window in which the directory will not be cleaned:
22352
# after its creation but before its name has been assigned to `$tmp'.
22356
trap 'exit_status=$?
22357
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22359
trap '{ (exit 1); exit 1; }' 1 2 13 15
22361
# Create a (secure) tmp directory for tmp files.
22364
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22365
test -n "$tmp" && test -d "$tmp"
22368
tmp=./conf$$-$RANDOM
22369
(umask 077 && mkdir "$tmp")
22372
$as_echo "$as_me: cannot create a temporary directory in ." >&2
22373
{ (exit 1); exit 1; }
22376
# Set up the scripts for CONFIG_FILES section.
22377
# No need to generate them if there are no CONFIG_FILES.
22378
# This happens for instance with `./config.status config.h'.
22379
if test -n "$CONFIG_FILES"; then
22383
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22384
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22387
ac_cs_awk_cr=$ac_cr
22390
echo 'BEGIN {' >"$tmp/subs1.awk" &&
22395
echo "cat >conf$$subs.awk <<_ACEOF" &&
22396
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22398
} >conf$$subs.sh ||
22399
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22400
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22401
{ (exit 1); exit 1; }; }
22402
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22404
for ac_last_try in false false false false false :; do
22405
. ./conf$$subs.sh ||
22406
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22407
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22408
{ (exit 1); exit 1; }; }
22410
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22411
if test $ac_delim_n = $ac_delim_num; then
22413
elif $ac_last_try; then
22414
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22415
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22416
{ (exit 1); exit 1; }; }
22418
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22421
rm -f conf$$subs.sh
22423
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22424
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22428
s/^/S["/; s/!.*/"]=/
22438
s/\(.\{148\}\).*/\1/
22440
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22445
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22452
s/\(.\{148\}\).*/\1/
22454
s/["\\]/\\&/g; s/^/"/; s/$/"/
22458
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22463
' <conf$$subs.awk | sed '
22468
' >>$CONFIG_STATUS || ac_write_fail=1
22469
rm -f conf$$subs.awk
22470
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22472
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22473
for (key in S) S_is_set[key] = 1
22479
nfields = split(line, field, "@")
22481
len = length(field[1])
22482
for (i = 2; i < nfields; i++) {
22484
keylen = length(key)
22485
if (S_is_set[key]) {
22487
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22488
len += length(value) + length(field[++i])
22499
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22500
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22501
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22504
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22505
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22506
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22507
{ (exit 1); exit 1; }; }
22510
# VPATH may cause trouble with some makes, so we remove $(srcdir),
22511
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22512
# trailing colons and then remove the whole line if VPATH becomes empty
22513
# (actually we leave an empty line to preserve line numbers).
22514
if test "x$srcdir" = x.; then
22515
ac_vpsub='/^[ ]*VPATH[ ]*=/{
22516
s/:*\$(srcdir):*/:/
22517
s/:*\${srcdir}:*/:/
22519
s/^\([^=]*=[ ]*\):*/\1/
22525
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22526
fi # test -n "$CONFIG_FILES"
22528
# Set up the scripts for CONFIG_HEADERS section.
22529
# No need to generate them if there are no CONFIG_HEADERS.
22530
# This happens for instance with `./config.status Makefile'.
22531
if test -n "$CONFIG_HEADERS"; then
22532
cat >"$tmp/defines.awk" <<\_ACAWK ||
22536
# Transform confdefs.h into an awk script `defines.awk', embedded as
22537
# here-document in config.status, that substitutes the proper values into
22538
# config.h.in to produce config.h.
22540
# Create a delimiter string that does not exist in confdefs.h, to ease
22541
# handling of long lines.
22543
for ac_last_try in false false :; do
22544
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22545
if test -z "$ac_t"; then
22547
elif $ac_last_try; then
22548
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22549
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22550
{ (exit 1); exit 1; }; }
22552
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22556
# For the awk script, D is an array of macro values keyed by name,
22557
# likewise P contains macro parameters if any. Preserve backslash
22558
# newline sequences.
22560
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22562
s/.\{148\}/&'"$ac_delim"'/g
22565
s/^[ ]*#[ ]*define[ ][ ]*/ /
22572
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22574
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22578
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22579
D["\1"]=" \3\\\\\\n"\\/p
22581
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22586
s/.\{148\}/&'"$ac_delim"'/g
22591
s/["\\]/\\&/g; s/^/"/; s/$/"/p
22594
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22596
' <confdefs.h | sed '
22597
s/'"$ac_delim"'/"\\\
22598
"/g' >>$CONFIG_STATUS || ac_write_fail=1
22600
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22601
for (key in D) D_is_set[key] = 1
22604
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22606
split(line, arg, " ")
22607
if (arg[1] == "#") {
22611
defundef = substr(arg[1], 2)
22614
split(mac1, mac2, "(") #)
22616
prefix = substr(line, 1, index(line, defundef) - 1)
22617
if (D_is_set[macro]) {
22618
# Preserve the white space surrounding the "#".
22619
print prefix "define", macro P[macro] D[macro]
22622
# Replace #undef with comments. This is necessary, for example,
22623
# in the case of _POSIX_SOURCE, which is predefined and required
22624
# on some systems where configure will not decide to define it.
22625
if (defundef == "undef") {
22626
print "/*", prefix defundef, macro, "*/"
22634
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22635
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22636
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22637
{ (exit 1); exit 1; }; }
22638
fi # test -n "$CONFIG_HEADERS"
22641
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22646
:[FHLC]) ac_mode=$ac_tag; continue;;
22648
case $ac_mode$ac_tag in
22650
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22651
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22652
{ (exit 1); exit 1; }; };;
22653
:[FH]-) ac_tag=-:-;;
22654
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22671
-) ac_f="$tmp/stdin";;
22672
*) # Look for the file first in the build tree, then in the source tree
22673
# (if the path is not absolute). The absolute path cannot be DOS-style,
22674
# because $ac_f cannot contain `:'.
22678
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22680
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22681
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22682
{ (exit 1); exit 1; }; };;
22684
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22685
ac_file_inputs="$ac_file_inputs '$ac_f'"
22688
# Let's still pretend it is `configure' which instantiates (i.e., don't
22689
# use $as_me), people would be surprised to read:
22690
# /* config.h. Generated by config.status. */
22691
configure_input='Generated from '`
22692
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22694
if test x"$ac_file" != x-; then
22695
configure_input="$ac_file. $configure_input"
22696
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22697
$as_echo "$as_me: creating $ac_file" >&6;}
22699
# Neutralize special characters interpreted by sed in replacement strings.
22700
case $configure_input in #(
22701
*\&* | *\|* | *\\* )
22702
ac_sed_conf_input=`$as_echo "$configure_input" |
22703
sed 's/[\\\\&|]/\\\\&/g'`;; #(
22704
*) ac_sed_conf_input=$configure_input;;
22708
*:-:* | *:-) cat >"$tmp/stdin" \
22709
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22710
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22711
{ (exit 1); exit 1; }; } ;;
22716
ac_dir=`$as_dirname -- "$ac_file" ||
22717
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22718
X"$ac_file" : 'X\(//\)[^/]' \| \
22719
X"$ac_file" : 'X\(//\)$' \| \
22720
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22721
$as_echo X"$ac_file" |
22722
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22726
/^X\(\/\/\)[^/].*/{
22741
-*) as_dir=./$as_dir;;
22743
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22747
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22748
*) as_qdir=$as_dir;;
22750
as_dirs="'$as_qdir' $as_dirs"
22751
as_dir=`$as_dirname -- "$as_dir" ||
22752
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22753
X"$as_dir" : 'X\(//\)[^/]' \| \
22754
X"$as_dir" : 'X\(//\)$' \| \
22755
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22756
$as_echo X"$as_dir" |
22757
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22761
/^X\(\/\/\)[^/].*/{
22774
test -d "$as_dir" && break
22776
test -z "$as_dirs" || eval "mkdir $as_dirs"
22777
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22778
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22779
{ (exit 1); exit 1; }; }; }
22783
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22785
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22786
# A ".." for each directory in $ac_dir_suffix.
22787
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22788
case $ac_top_builddir_sub in
22789
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22790
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22793
ac_abs_top_builddir=$ac_pwd
22794
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22795
# for backward compatibility:
22796
ac_top_builddir=$ac_top_build_prefix
22799
.) # We are building in place.
22801
ac_top_srcdir=$ac_top_builddir_sub
22802
ac_abs_top_srcdir=$ac_pwd ;;
22803
[\\/]* | ?:[\\/]* ) # Absolute name.
22804
ac_srcdir=$srcdir$ac_dir_suffix;
22805
ac_top_srcdir=$srcdir
22806
ac_abs_top_srcdir=$srcdir ;;
22807
*) # Relative name.
22808
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22809
ac_top_srcdir=$ac_top_build_prefix$srcdir
22810
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22812
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22822
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22823
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22825
ac_MKDIR_P=$MKDIR_P
22827
[\\/$]* | ?:[\\/]* ) ;;
22828
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22832
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22833
# If the template does not know about datarootdir, expand it.
22834
# FIXME: This hack should be removed a few years after 2.60.
22835
ac_datarootdir_hack=; ac_datarootdir_seen=
22848
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22849
*datarootdir*) ac_datarootdir_seen=yes;;
22850
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22851
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22852
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22854
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22855
ac_datarootdir_hack='
22856
s&@datadir@&$datadir&g
22857
s&@docdir@&$docdir&g
22858
s&@infodir@&$infodir&g
22859
s&@localedir@&$localedir&g
22860
s&@mandir@&$mandir&g
22861
s&\\\${datarootdir}&$datarootdir&g' ;;
22865
# Neutralize VPATH when `$srcdir' = `.'.
22866
# Shell code in configure.ac might set extrasub.
22867
# FIXME: do we really want to maintain this feature?
22868
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22869
ac_sed_extra="$ac_vpsub
22872
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22874
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22875
s|@configure_input@|$ac_sed_conf_input|;t t
22876
s&@top_builddir@&$ac_top_builddir_sub&;t t
22877
s&@top_build_prefix@&$ac_top_build_prefix&;t t
22878
s&@srcdir@&$ac_srcdir&;t t
22879
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22880
s&@top_srcdir@&$ac_top_srcdir&;t t
22881
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22882
s&@builddir@&$ac_builddir&;t t
22883
s&@abs_builddir@&$ac_abs_builddir&;t t
22884
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22885
s&@INSTALL@&$ac_INSTALL&;t t
22886
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22887
$ac_datarootdir_hack
22889
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22890
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22891
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22892
{ (exit 1); exit 1; }; }
22894
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22895
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22896
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22897
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22898
which seems to be undefined. Please make sure it is defined." >&5
22899
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22900
which seems to be undefined. Please make sure it is defined." >&2;}
22904
-) cat "$tmp/out" && rm -f "$tmp/out";;
22905
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22907
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22908
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22909
{ (exit 1); exit 1; }; }
22915
if test x"$ac_file" != x-; then
22917
$as_echo "/* $configure_input */" \
22918
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22919
} >"$tmp/config.h" \
22920
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22921
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22922
{ (exit 1); exit 1; }; }
22923
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22924
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22925
$as_echo "$as_me: $ac_file is unchanged" >&6;}
22928
mv "$tmp/config.h" "$ac_file" \
22929
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22930
$as_echo "$as_me: error: could not create $ac_file" >&2;}
22931
{ (exit 1); exit 1; }; }
22934
$as_echo "/* $configure_input */" \
22935
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22936
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22937
$as_echo "$as_me: error: could not create -" >&2;}
22938
{ (exit 1); exit 1; }; }
22940
# Compute "$ac_file"'s index in $config_headers.
22943
for _am_header in $config_headers :; do
22944
case $_am_header in
22945
$_am_arg | $_am_arg:* )
22948
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
22951
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22952
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22953
X"$_am_arg" : 'X\(//\)[^/]' \| \
22954
X"$_am_arg" : 'X\(//\)$' \| \
22955
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22956
$as_echo X"$_am_arg" |
22957
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22961
/^X\(\/\/\)[^/].*/{
22973
s/.*/./; q'`/stamp-h$_am_stamp_count
22976
:C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22977
$as_echo "$as_me: executing $ac_file commands" >&6;}
22982
case $ac_file$ac_mode in
22983
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22984
# Strip MF so we end up with the name of the file.
22985
mf=`echo "$mf" | sed -e 's/:.*$//'`
22986
# Check whether this is an Automake generated Makefile or not.
22987
# We used to match only the files named `Makefile.in', but
22988
# some people rename them; so instead we look at the file content.
22989
# Grep'ing the first line is not enough: some people post-process
22990
# each Makefile.in and add a new line on top of each file to say so.
22991
# Grep'ing the whole file is not good either: AIX grep has a line
22992
# limit of 2048, but all sed's we know have understand at least 4000.
22993
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22994
dirpart=`$as_dirname -- "$mf" ||
22995
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22996
X"$mf" : 'X\(//\)[^/]' \| \
22997
X"$mf" : 'X\(//\)$' \| \
22998
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23000
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23004
/^X\(\/\/\)[^/].*/{
23020
# Extract the definition of DEPDIR, am__include, and am__quote
23021
# from the Makefile without running `make'.
23022
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23023
test -z "$DEPDIR" && continue
23024
am__include=`sed -n 's/^am__include = //p' < "$mf"`
23025
test -z "am__include" && continue
23026
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23027
# When using ansi2knr, U may be empty or an underscore; expand it
23028
U=`sed -n 's/^U = //p' < "$mf"`
23029
# Find all dependency output files, they are included files with
23030
# $(DEPDIR) in their names. We invoke sed twice because it is the
23031
# simplest approach to changing $(DEPDIR) to its actual value in the
23033
for file in `sed -n "
23034
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23035
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23036
# Make sure the directory exists.
23037
test -f "$dirpart/$file" && continue
23038
fdir=`$as_dirname -- "$file" ||
23039
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23040
X"$file" : 'X\(//\)[^/]' \| \
23041
X"$file" : 'X\(//\)$' \| \
23042
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23043
$as_echo X"$file" |
23044
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23048
/^X\(\/\/\)[^/].*/{
23061
{ as_dir=$dirpart/$fdir
23063
-*) as_dir=./$as_dir;;
23065
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23069
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23070
*) as_qdir=$as_dir;;
23072
as_dirs="'$as_qdir' $as_dirs"
23073
as_dir=`$as_dirname -- "$as_dir" ||
23074
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23075
X"$as_dir" : 'X\(//\)[^/]' \| \
23076
X"$as_dir" : 'X\(//\)$' \| \
23077
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23078
$as_echo X"$as_dir" |
23079
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23083
/^X\(\/\/\)[^/].*/{
23096
test -d "$as_dir" && break
23098
test -z "$as_dirs" || eval "mkdir $as_dirs"
23099
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23100
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23101
{ (exit 1); exit 1; }; }; }
23102
# echo "creating $dirpart/$file"
23103
echo '# dummy' > "$dirpart/$file"
23112
{ (exit 0); exit 0; }
23114
chmod +x $CONFIG_STATUS
23115
ac_clean_files=$ac_clean_files_save
23117
test $ac_write_fail = 0 ||
23118
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23119
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23120
{ (exit 1); exit 1; }; }
23123
# configure is writing to config.log, and then calls config.status.
23124
# config.status does its own redirection, appending to config.log.
23125
# Unfortunately, on DOS this fails, as config.log is still kept open
23126
# by configure, so config.status won't be able to write to it; its
23127
# output is simply discarded. So we exec the FD to /dev/null,
23128
# effectively closing config.log, so it can be properly (re)opened and
23129
# appended to by config.status. When coming back to configure, we
23130
# need to make the FD available again.
23131
if test "$no_create" != yes; then
23133
ac_config_status_args=
23134
test "$silent" = yes &&
23135
ac_config_status_args="$ac_config_status_args --quiet"
23137
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23139
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
23140
# would make configure fail if this is the last instruction.
23141
$ac_cs_success || { (exit 1); exit 1; }
23143
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23144
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23145
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}