2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for Google C++ Testing Framework 1.5.0.
5
# Report bugs to <googletestframework@googlegroups.com>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
96
*[\\/]* ) as_myself=$0 ;;
97
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101
test -z "$as_dir" && as_dir=.
102
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
# in which case we are not to be found in the path.
110
if test "x$as_myself" = x; then
113
if test ! -f "$as_myself"; then
114
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118
# Unset variables that we do not need and which cause bugs (e.g. in
119
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120
# suppresses any "Segmentation fault" message there. '((' could
121
# trigger a bug in pdksh 5.2.14.
122
for as_var in BASH_ENV ENV MAIL MAILPATH
123
do eval test x\${$as_var+set} = xset \
124
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
if test "x$CONFIG_SHELL" = x; then
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
# is contrary to our usage. Disable this feature.
145
alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
case \`(set -o) 2>/dev/null\` in #(
156
as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
exitcode=1; echo positional parameters were not saved.
172
test x\$exitcode = x0 || exit 1"
173
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
PATH=/empty FPATH=/empty; export PATH FPATH
183
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185
test \$(( 1 + 1 )) = 2 || exit 1"
186
if (eval "$as_required") 2>/dev/null; then :
191
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199
test -z "$as_dir" && as_dir=.
203
for as_base in sh bash ksh sh5; do
204
# Try only shells that exist, to save several forks.
205
as_shell=$as_dir/$as_base
206
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
CONFIG_SHELL=$as_shell as_have_required=yes
209
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
CONFIG_SHELL=$SHELL as_have_required=yes
224
if test "x$CONFIG_SHELL" != x; then :
225
# We cannot yet assume a decent shell, so we have to provide a
226
# neutralization value for shells without unset; and this also
227
# works around shells that cannot unset nonexistent variables.
228
# Preserve -v and -x to the replacement shell.
231
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234
*v*x* | *x*v* ) as_opts=-vx ;;
239
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242
if test x$as_have_required = xno; then :
243
$as_echo "$0: This script requires a shell more modern than all"
244
$as_echo "$0: the shells that I found on your system."
245
if test x${ZSH_VERSION+set} = xset ; then
246
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
249
$as_echo "$0: Please tell bug-autoconf@gnu.org and
250
$0: googletestframework@googlegroups.com about your system,
251
$0: including any error possibly output before this
252
$0: message. Then install a modern shell, or manually run
253
$0: the script under such a shell if you do have one."
259
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Unset more variables known to interfere with behavior of common tools.
262
CLICOLOR_FORCE= GREP_OPTIONS=
263
unset CLICOLOR_FORCE GREP_OPTIONS
265
## --------------------- ##
266
## M4sh Shell Functions. ##
267
## --------------------- ##
270
# Portably unset VAR.
273
{ eval $1=; unset $1;}
277
# as_fn_set_status STATUS
278
# -----------------------
279
# Set $? to STATUS, without forking.
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297
# Create "$as_dir" as a directory, including parents if necessary.
302
-*) as_dir=./$as_dir;;
304
test -d "$as_dir" || eval $as_mkdir_p || {
308
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311
as_dirs="'$as_qdir' $as_dirs"
312
as_dir=`$as_dirname -- "$as_dir" ||
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314
X"$as_dir" : 'X\(//\)[^/]' \| \
315
X"$as_dir" : 'X\(//\)$' \| \
316
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317
$as_echo X"$as_dir" |
318
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335
test -d "$as_dir" && break
337
test -z "$as_dirs" || eval "mkdir $as_dirs"
338
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342
# as_fn_append VAR VALUE
343
# ----------------------
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
345
# advantage of any shell optimizations that allow amortized linear growth over
346
# repeated appends, instead of the typical quadratic growth present in naive
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349
eval 'as_fn_append ()
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
364
# must be portable across $(()) and expr.
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373
as_val=`expr "$@" || test $? -eq 1`
378
# as_fn_error STATUS ERROR [LINENO LOG_FD]
379
# ----------------------------------------
380
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382
# script with STATUS, using 1 if that was 0.
385
as_status=$1; test $as_status -eq 0 && as_status=1
387
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390
$as_echo "$as_me: error: $2" >&2
391
as_fn_exit $as_status
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
395
test "X`expr 00001 : '.*\(...\)'`" = X001; then
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413
as_me=`$as_basename -- "$0" ||
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415
X"$0" : 'X\(//\)$' \| \
416
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418
sed '/^.*\/\([^/][^/]*\)\/*$/{
432
# Avoid depending upon Character Ranges.
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436
as_cr_digits='0123456789'
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
440
as_lineno_1=$LINENO as_lineno_1a=$LINENO
441
as_lineno_2=$LINENO as_lineno_2a=$LINENO
442
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460
chmod +x "$as_me.lineno" ||
461
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
# Don't try to exec as it changes $[0], causing all sort of problems
464
# (the dirname of $[0] is not the place where we might find the
465
# original and so on. Autoconf is especially sensitive to this).
467
# Exit status is that of the last command.
471
ECHO_C= ECHO_N= ECHO_T=
472
case `echo -n x` in #(((((
474
case `echo 'xy\c'` in
475
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
477
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
489
mkdir conf$$.dir 2>/dev/null
491
if (echo >conf$$.file) 2>/dev/null; then
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500
elif ln conf$$.file conf$$ 2>/dev/null; then
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
rmdir conf$$.dir 2>/dev/null
511
if mkdir -p . 2>/dev/null; then
512
as_mkdir_p='mkdir -p "$as_dir"'
514
test -d ./-p && rmdir ./-p
518
if test -x / >/dev/null 2>&1; then
521
if ls -dL / >/dev/null 2>&1; then
528
if test -d "$1"; then
534
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
???[sx]*):;;*)false;;esac;fi
539
as_executable_p=$as_test_x
541
# Sed expression to map a string onto a valid CPP name.
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
# Sed expression to map a string onto a valid variable name.
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
SHELL=${CONFIG_SHELL-/bin/sh}
550
test -n "$DJDIR" || exec 7<&0 </dev/null
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555
# so uname gets run too.
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
ac_default_prefix=/usr/local
563
ac_config_libobj_dir=.
570
# Identity of this package.
571
PACKAGE_NAME='Google C++ Testing Framework'
572
PACKAGE_TARNAME='gtest'
573
PACKAGE_VERSION='1.5.0'
574
PACKAGE_STRING='Google C++ Testing Framework 1.5.0'
575
PACKAGE_BUGREPORT='googletestframework@googlegroups.com'
578
ac_unique_file="./COPYING"
579
# Factoring default headers for most tests.
580
ac_includes_default="\
582
#ifdef HAVE_SYS_TYPES_H
583
# include <sys/types.h>
585
#ifdef HAVE_SYS_STAT_H
586
# include <sys/stat.h>
592
# ifdef HAVE_STDLIB_H
597
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602
#ifdef HAVE_STRINGS_H
603
# include <strings.h>
605
#ifdef HAVE_INTTYPES_H
606
# include <inttypes.h>
615
ac_subst_vars='am__EXEEXT_FALSE
690
INSTALL_STRIP_PROGRAM
732
program_transform_name
745
enable_option_checking
746
enable_dependency_tracking
756
ac_precious_vars='build_alias
771
# Initialize some variables set by options.
773
ac_init_version=false
774
ac_unrecognized_opts=
776
# The variables have the same names as the options, with
777
# dashes changed to underlines.
785
program_transform_name=s,x,x,
793
# Installation directory options.
794
# These are left unexpanded so users can "make install exec_prefix=/foo"
795
# and all the variables that are supposed to be based on exec_prefix
796
# by default will actually change.
797
# Use braces instead of parens because sh, perl, etc. also accept them.
798
# (The list follows the same order as the GNU Coding Standards.)
799
bindir='${exec_prefix}/bin'
800
sbindir='${exec_prefix}/sbin'
801
libexecdir='${exec_prefix}/libexec'
802
datarootdir='${prefix}/share'
803
datadir='${datarootdir}'
804
sysconfdir='${prefix}/etc'
805
sharedstatedir='${prefix}/com'
806
localstatedir='${prefix}/var'
807
includedir='${prefix}/include'
808
oldincludedir='/usr/include'
809
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810
infodir='${datarootdir}/info'
815
libdir='${exec_prefix}/lib'
816
localedir='${datarootdir}/locale'
817
mandir='${datarootdir}/man'
823
# If the previous option needs an argument, assign it.
824
if test -n "$ac_prev"; then
825
eval $ac_prev=\$ac_option
831
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836
# Accept the important Cygnus configure options, so we can diagnose typos.
838
case $ac_dashdash$ac_option in
842
-bindir | --bindir | --bindi | --bind | --bin | --bi)
844
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847
-build | --build | --buil | --bui | --bu)
848
ac_prev=build_alias ;;
849
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
850
build_alias=$ac_optarg ;;
852
-cache-file | --cache-file | --cache-fil | --cache-fi \
853
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854
ac_prev=cache_file ;;
855
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857
cache_file=$ac_optarg ;;
860
cache_file=config.cache ;;
862
-datadir | --datadir | --datadi | --datad)
864
-datadir=* | --datadir=* | --datadi=* | --datad=*)
865
datadir=$ac_optarg ;;
867
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868
| --dataroo | --dataro | --datar)
869
ac_prev=datarootdir ;;
870
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872
datarootdir=$ac_optarg ;;
874
-disable-* | --disable-*)
875
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876
# Reject names that are not valid shell variable names.
877
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878
as_fn_error $? "invalid feature name: $ac_useropt"
879
ac_useropt_orig=$ac_useropt
880
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881
case $ac_user_opts in
885
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886
ac_unrecognized_sep=', ';;
888
eval enable_$ac_useropt=no ;;
890
-docdir | --docdir | --docdi | --doc | --do)
892
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900
-enable-* | --enable-*)
901
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902
# Reject names that are not valid shell variable names.
903
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904
as_fn_error $? "invalid feature name: $ac_useropt"
905
ac_useropt_orig=$ac_useropt
906
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907
case $ac_user_opts in
911
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912
ac_unrecognized_sep=', ';;
914
eval enable_$ac_useropt=\$ac_optarg ;;
916
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918
| --exec | --exe | --ex)
919
ac_prev=exec_prefix ;;
920
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922
| --exec=* | --exe=* | --ex=*)
923
exec_prefix=$ac_optarg ;;
925
-gas | --gas | --ga | --g)
926
# Obsolete; use --with-gas.
929
-help | --help | --hel | --he | -h)
931
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932
ac_init_help=recursive ;;
933
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934
ac_init_help=short ;;
936
-host | --host | --hos | --ho)
937
ac_prev=host_alias ;;
938
-host=* | --host=* | --hos=* | --ho=*)
939
host_alias=$ac_optarg ;;
941
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945
htmldir=$ac_optarg ;;
947
-includedir | --includedir | --includedi | --included | --include \
948
| --includ | --inclu | --incl | --inc)
949
ac_prev=includedir ;;
950
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951
| --includ=* | --inclu=* | --incl=* | --inc=*)
952
includedir=$ac_optarg ;;
954
-infodir | --infodir | --infodi | --infod | --info | --inf)
956
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957
infodir=$ac_optarg ;;
959
-libdir | --libdir | --libdi | --libd)
961
-libdir=* | --libdir=* | --libdi=* | --libd=*)
964
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965
| --libexe | --libex | --libe)
966
ac_prev=libexecdir ;;
967
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968
| --libexe=* | --libex=* | --libe=*)
969
libexecdir=$ac_optarg ;;
971
-localedir | --localedir | --localedi | --localed | --locale)
973
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974
localedir=$ac_optarg ;;
976
-localstatedir | --localstatedir | --localstatedi | --localstated \
977
| --localstate | --localstat | --localsta | --localst | --locals)
978
ac_prev=localstatedir ;;
979
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981
localstatedir=$ac_optarg ;;
983
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989
# Obsolete; use --without-fp.
992
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
993
| --no-cr | --no-c | -n)
996
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
997
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002
| --oldin | --oldi | --old | --ol | --o)
1003
ac_prev=oldincludedir ;;
1004
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007
oldincludedir=$ac_optarg ;;
1009
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012
prefix=$ac_optarg ;;
1014
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1015
| --program-pre | --program-pr | --program-p)
1016
ac_prev=program_prefix ;;
1017
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1018
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019
program_prefix=$ac_optarg ;;
1021
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1022
| --program-suf | --program-su | --program-s)
1023
ac_prev=program_suffix ;;
1024
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1025
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026
program_suffix=$ac_optarg ;;
1028
-program-transform-name | --program-transform-name \
1029
| --program-transform-nam | --program-transform-na \
1030
| --program-transform-n | --program-transform- \
1031
| --program-transform | --program-transfor \
1032
| --program-transfo | --program-transf \
1033
| --program-trans | --program-tran \
1034
| --progr-tra | --program-tr | --program-t)
1035
ac_prev=program_transform_name ;;
1036
-program-transform-name=* | --program-transform-name=* \
1037
| --program-transform-nam=* | --program-transform-na=* \
1038
| --program-transform-n=* | --program-transform-=* \
1039
| --program-transform=* | --program-transfor=* \
1040
| --program-transfo=* | --program-transf=* \
1041
| --program-trans=* | --program-tran=* \
1042
| --progr-tra=* | --program-tr=* | --program-t=*)
1043
program_transform_name=$ac_optarg ;;
1045
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048
pdfdir=$ac_optarg ;;
1050
-psdir | --psdir | --psdi | --psd | --ps)
1052
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056
| -silent | --silent | --silen | --sile | --sil)
1059
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063
sbindir=$ac_optarg ;;
1065
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1066
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067
| --sharedst | --shareds | --shared | --share | --shar \
1069
ac_prev=sharedstatedir ;;
1070
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074
sharedstatedir=$ac_optarg ;;
1076
-site | --site | --sit)
1078
-site=* | --site=* | --sit=*)
1081
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084
srcdir=$ac_optarg ;;
1086
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087
| --syscon | --sysco | --sysc | --sys | --sy)
1088
ac_prev=sysconfdir ;;
1089
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091
sysconfdir=$ac_optarg ;;
1093
-target | --target | --targe | --targ | --tar | --ta | --t)
1094
ac_prev=target_alias ;;
1095
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096
target_alias=$ac_optarg ;;
1098
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1101
-version | --version | --versio | --versi | --vers | -V)
1102
ac_init_version=: ;;
1105
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106
# Reject names that are not valid shell variable names.
1107
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108
as_fn_error $? "invalid package name: $ac_useropt"
1109
ac_useropt_orig=$ac_useropt
1110
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111
case $ac_user_opts in
1115
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116
ac_unrecognized_sep=', ';;
1118
eval with_$ac_useropt=\$ac_optarg ;;
1120
-without-* | --without-*)
1121
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122
# Reject names that are not valid shell variable names.
1123
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124
as_fn_error $? "invalid package name: $ac_useropt"
1125
ac_useropt_orig=$ac_useropt
1126
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127
case $ac_user_opts in
1131
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132
ac_unrecognized_sep=', ';;
1134
eval with_$ac_useropt=no ;;
1137
# Obsolete; use --with-x.
1140
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141
| --x-incl | --x-inc | --x-in | --x-i)
1142
ac_prev=x_includes ;;
1143
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145
x_includes=$ac_optarg ;;
1147
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1148
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149
ac_prev=x_libraries ;;
1150
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152
x_libraries=$ac_optarg ;;
1154
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1155
Try \`$0 --help' for more information"
1159
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160
# Reject names that are not valid shell variable names.
1161
case $ac_envvar in #(
1162
'' | [0-9]* | *[!_$as_cr_alnum]* )
1163
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165
eval $ac_envvar=\$ac_optarg
1166
export $ac_envvar ;;
1169
# FIXME: should be removed in autoconf 3.0.
1170
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179
if test -n "$ac_prev"; then
1180
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181
as_fn_error $? "missing argument to $ac_option"
1184
if test -n "$ac_unrecognized_opts"; then
1185
case $enable_option_checking in
1187
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192
# Check all directory arguments for consistency.
1193
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194
datadir sysconfdir sharedstatedir localstatedir includedir \
1195
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196
libdir localedir mandir
1198
eval ac_val=\$$ac_var
1199
# Remove trailing slashes.
1202
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203
eval $ac_var=\$ac_val;;
1205
# Be sure to have absolute directory names.
1207
[\\/$]* | ?:[\\/]* ) continue;;
1208
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213
# There might be people who depend on the old broken behavior: `$host'
1214
# used to hold the argument of --host etc.
1215
# FIXME: To remove some day.
1218
target=$target_alias
1220
# FIXME: To remove some day.
1221
if test "x$host_alias" != x; then
1222
if test "x$build_alias" = x; then
1223
cross_compiling=maybe
1224
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225
If a cross compiler is detected then cross compile mode will be used" >&2
1226
elif test "x$build_alias" != "x$host_alias"; then
1232
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
test "$silent" = yes && exec 6>/dev/null
1237
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238
ac_ls_di=`ls -di .` &&
1239
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240
as_fn_error $? "working directory cannot be determined"
1241
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242
as_fn_error $? "pwd does not report name of working directory"
1245
# Find the source files, if location was not specified.
1246
if test -z "$srcdir"; then
1247
ac_srcdir_defaulted=yes
1248
# Try the directory containing this script, then the parent directory.
1249
ac_confdir=`$as_dirname -- "$as_myself" ||
1250
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251
X"$as_myself" : 'X\(//\)[^/]' \| \
1252
X"$as_myself" : 'X\(//\)$' \| \
1253
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254
$as_echo X"$as_myself" |
1255
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273
if test ! -r "$srcdir/$ac_unique_file"; then
1277
ac_srcdir_defaulted=no
1279
if test ! -r "$srcdir/$ac_unique_file"; then
1280
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1283
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1287
# When building in place, set srcdir=.
1288
if test "$ac_abs_confdir" = "$ac_pwd"; then
1291
# Remove unnecessary trailing slashes from srcdir.
1292
# Double slashes in file names in object file debugging info
1293
# mess up M-x gdb in Emacs.
1295
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297
for ac_var in $ac_precious_vars; do
1298
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299
eval ac_env_${ac_var}_value=\$${ac_var}
1300
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305
# Report the --help message.
1307
if test "$ac_init_help" = "long"; then
1308
# Omit some internal or obsolete options to make the list less imposing.
1309
# This message is too long to be a string in the A/UX 3.1 sh.
1311
\`configure' configures Google C++ Testing Framework 1.5.0 to adapt to many kinds of systems.
1313
Usage: $0 [OPTION]... [VAR=VALUE]...
1315
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316
VAR=VALUE. See below for descriptions of some of the useful variables.
1318
Defaults for the options are specified in brackets.
1321
-h, --help display this help and exit
1322
--help=short display options specific to this package
1323
--help=recursive display the short help of all the included packages
1324
-V, --version display version information and exit
1325
-q, --quiet, --silent do not print \`checking ...' messages
1326
--cache-file=FILE cache test results in FILE [disabled]
1327
-C, --config-cache alias for \`--cache-file=config.cache'
1328
-n, --no-create do not create output files
1329
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1331
Installation directories:
1332
--prefix=PREFIX install architecture-independent files in PREFIX
1333
[$ac_default_prefix]
1334
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337
By default, \`make install' will install all the files in
1338
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340
for instance \`--prefix=\$HOME'.
1342
For better control, use the options below.
1344
Fine tuning of the installation directories:
1345
--bindir=DIR user executables [EPREFIX/bin]
1346
--sbindir=DIR system admin executables [EPREFIX/sbin]
1347
--libexecdir=DIR program executables [EPREFIX/libexec]
1348
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351
--libdir=DIR object code libraries [EPREFIX/lib]
1352
--includedir=DIR C header files [PREFIX/include]
1353
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1354
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356
--infodir=DIR info documentation [DATAROOTDIR/info]
1357
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358
--mandir=DIR man documentation [DATAROOTDIR/man]
1359
--docdir=DIR documentation root [DATAROOTDIR/doc/gtest]
1360
--htmldir=DIR html documentation [DOCDIR]
1361
--dvidir=DIR dvi documentation [DOCDIR]
1362
--pdfdir=DIR pdf documentation [DOCDIR]
1363
--psdir=DIR ps documentation [DOCDIR]
1369
--program-prefix=PREFIX prepend PREFIX to installed program names
1370
--program-suffix=SUFFIX append SUFFIX to installed program names
1371
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1374
--build=BUILD configure for building on BUILD [guessed]
1375
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1379
if test -n "$ac_init_help"; then
1380
case $ac_init_help in
1381
short | recursive ) echo "Configuration of Google C++ Testing Framework 1.5.0:";;
1386
--disable-option-checking ignore unrecognized --enable/--with options
1387
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389
--disable-dependency-tracking speeds up one-time build
1390
--enable-dependency-tracking do not reject slow dependency extractors
1391
--enable-shared[=PKGS] build shared libraries [default=yes]
1392
--enable-static[=PKGS] build static libraries [default=yes]
1393
--enable-fast-install[=PKGS]
1394
optimize for fast installation [default=yes]
1395
--disable-libtool-lock avoid locking (might break parallel builds)
1398
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1399
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1400
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1402
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1403
--with-sysroot=DIR Search for dependent libraries within DIR
1404
(or the compiler's sysroot if not specified).
1405
--with-pthreads use pthreads (default is yes)
1407
Some influential environment variables:
1408
CC C compiler command
1409
CFLAGS C compiler flags
1410
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1411
nonstandard directory <lib dir>
1412
LIBS libraries to pass to the linker, e.g. -l<library>
1413
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1414
you have headers in a nonstandard directory <include dir>
1415
CXX C++ compiler command
1416
CXXFLAGS C++ compiler flags
1418
CXXCPP C++ preprocessor
1420
Use these variables to override the choices made by `configure' or to help
1421
it to find libraries and programs with nonstandard names/locations.
1423
Report bugs to <googletestframework@googlegroups.com>.
1428
if test "$ac_init_help" = "recursive"; then
1429
# If there are subdirs, report their specific --help.
1430
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431
test -d "$ac_dir" ||
1432
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440
# A ".." for each directory in $ac_dir_suffix.
1441
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442
case $ac_top_builddir_sub in
1443
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1447
ac_abs_top_builddir=$ac_pwd
1448
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449
# for backward compatibility:
1450
ac_top_builddir=$ac_top_build_prefix
1453
.) # We are building in place.
1455
ac_top_srcdir=$ac_top_builddir_sub
1456
ac_abs_top_srcdir=$ac_pwd ;;
1457
[\\/]* | ?:[\\/]* ) # Absolute name.
1458
ac_srcdir=$srcdir$ac_dir_suffix;
1459
ac_top_srcdir=$srcdir
1460
ac_abs_top_srcdir=$srcdir ;;
1462
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463
ac_top_srcdir=$ac_top_build_prefix$srcdir
1464
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468
cd "$ac_dir" || { ac_status=$?; continue; }
1469
# Check for guested configure.
1470
if test -f "$ac_srcdir/configure.gnu"; then
1472
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473
elif test -f "$ac_srcdir/configure"; then
1475
$SHELL "$ac_srcdir/configure" --help=recursive
1477
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479
cd "$ac_pwd" || { ac_status=$?; break; }
1483
test -n "$ac_init_help" && exit $ac_status
1484
if $ac_init_version; then
1486
Google C++ Testing Framework configure 1.5.0
1487
generated by GNU Autoconf 2.68
1489
Copyright (C) 2010 Free Software Foundation, Inc.
1490
This configure script is free software; the Free Software Foundation
1491
gives unlimited permission to copy, distribute and modify it.
1496
## ------------------------ ##
1497
## Autoconf initialization. ##
1498
## ------------------------ ##
1500
# ac_fn_c_try_compile LINENO
1501
# --------------------------
1502
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503
ac_fn_c_try_compile ()
1505
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506
rm -f conftest.$ac_objext
1507
if { { ac_try="$ac_compile"
1509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510
*) ac_try_echo=$ac_try;;
1512
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513
$as_echo "$ac_try_echo"; } >&5
1514
(eval "$ac_compile") 2>conftest.err
1516
if test -s conftest.err; then
1517
grep -v '^ *+' conftest.err >conftest.er1
1518
cat conftest.er1 >&5
1519
mv -f conftest.er1 conftest.err
1521
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522
test $ac_status = 0; } && {
1523
test -z "$ac_c_werror_flag" ||
1524
test ! -s conftest.err
1525
} && test -s conftest.$ac_objext; then :
1528
$as_echo "$as_me: failed program was:" >&5
1529
sed 's/^/| /' conftest.$ac_ext >&5
1533
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534
as_fn_set_status $ac_retval
1536
} # ac_fn_c_try_compile
1538
# ac_fn_cxx_try_compile LINENO
1539
# ----------------------------
1540
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541
ac_fn_cxx_try_compile ()
1543
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544
rm -f conftest.$ac_objext
1545
if { { ac_try="$ac_compile"
1547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548
*) ac_try_echo=$ac_try;;
1550
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551
$as_echo "$ac_try_echo"; } >&5
1552
(eval "$ac_compile") 2>conftest.err
1554
if test -s conftest.err; then
1555
grep -v '^ *+' conftest.err >conftest.er1
1556
cat conftest.er1 >&5
1557
mv -f conftest.er1 conftest.err
1559
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560
test $ac_status = 0; } && {
1561
test -z "$ac_cxx_werror_flag" ||
1562
test ! -s conftest.err
1563
} && test -s conftest.$ac_objext; then :
1566
$as_echo "$as_me: failed program was:" >&5
1567
sed 's/^/| /' conftest.$ac_ext >&5
1571
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572
as_fn_set_status $ac_retval
1574
} # ac_fn_cxx_try_compile
1576
# ac_fn_c_try_link LINENO
1577
# -----------------------
1578
# Try to link conftest.$ac_ext, and return whether this succeeded.
1581
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582
rm -f conftest.$ac_objext conftest$ac_exeext
1583
if { { ac_try="$ac_link"
1585
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586
*) ac_try_echo=$ac_try;;
1588
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589
$as_echo "$ac_try_echo"; } >&5
1590
(eval "$ac_link") 2>conftest.err
1592
if test -s conftest.err; then
1593
grep -v '^ *+' conftest.err >conftest.er1
1594
cat conftest.er1 >&5
1595
mv -f conftest.er1 conftest.err
1597
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598
test $ac_status = 0; } && {
1599
test -z "$ac_c_werror_flag" ||
1600
test ! -s conftest.err
1601
} && test -s conftest$ac_exeext && {
1602
test "$cross_compiling" = yes ||
1603
$as_test_x conftest$ac_exeext
1607
$as_echo "$as_me: failed program was:" >&5
1608
sed 's/^/| /' conftest.$ac_ext >&5
1612
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1613
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1614
# interfere with the next link command; also delete a directory that is
1615
# left behind by Apple's compiler. We do this before executing the actions.
1616
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1617
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618
as_fn_set_status $ac_retval
1620
} # ac_fn_c_try_link
1622
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1623
# -------------------------------------------------------
1624
# Tests whether HEADER exists and can be compiled using the include files in
1625
# INCLUDES, setting the cache variable VAR accordingly.
1626
ac_fn_c_check_header_compile ()
1628
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630
$as_echo_n "checking for $2... " >&6; }
1631
if eval \${$3+:} false; then :
1632
$as_echo_n "(cached) " >&6
1634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635
/* end confdefs.h. */
1639
if ac_fn_c_try_compile "$LINENO"; then :
1644
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648
$as_echo "$ac_res" >&6; }
1649
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
} # ac_fn_c_check_header_compile
1653
# ac_fn_c_try_cpp LINENO
1654
# ----------------------
1655
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659
if { { ac_try="$ac_cpp conftest.$ac_ext"
1661
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662
*) ac_try_echo=$ac_try;;
1664
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665
$as_echo "$ac_try_echo"; } >&5
1666
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668
if test -s conftest.err; then
1669
grep -v '^ *+' conftest.err >conftest.er1
1670
cat conftest.er1 >&5
1671
mv -f conftest.er1 conftest.err
1673
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674
test $ac_status = 0; } > conftest.i && {
1675
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676
test ! -s conftest.err
1680
$as_echo "$as_me: failed program was:" >&5
1681
sed 's/^/| /' conftest.$ac_ext >&5
1685
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
as_fn_set_status $ac_retval
1690
# ac_fn_c_try_run LINENO
1691
# ----------------------
1692
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693
# that executables *can* be run.
1696
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697
if { { ac_try="$ac_link"
1699
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700
*) ac_try_echo=$ac_try;;
1702
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703
$as_echo "$ac_try_echo"; } >&5
1704
(eval "$ac_link") 2>&5
1706
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708
{ { case "(($ac_try" in
1709
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710
*) ac_try_echo=$ac_try;;
1712
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713
$as_echo "$ac_try_echo"; } >&5
1714
(eval "$ac_try") 2>&5
1716
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717
test $ac_status = 0; }; }; then :
1720
$as_echo "$as_me: program exited with status $ac_status" >&5
1721
$as_echo "$as_me: failed program was:" >&5
1722
sed 's/^/| /' conftest.$ac_ext >&5
1724
ac_retval=$ac_status
1726
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728
as_fn_set_status $ac_retval
1732
# ac_fn_c_check_func LINENO FUNC VAR
1733
# ----------------------------------
1734
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1735
ac_fn_c_check_func ()
1737
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739
$as_echo_n "checking for $2... " >&6; }
1740
if eval \${$3+:} false; then :
1741
$as_echo_n "(cached) " >&6
1743
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744
/* end confdefs.h. */
1745
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1746
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1747
#define $2 innocuous_$2
1749
/* System header to define __stub macros and hopefully few prototypes,
1750
which can conflict with char $2 (); below.
1751
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1752
<limits.h> exists even on freestanding compilers. */
1755
# include <limits.h>
1757
# include <assert.h>
1762
/* Override any GCC internal prototype to avoid an error.
1763
Use char because int might match the return type of a GCC
1764
builtin and then its argument prototype would still apply. */
1769
/* The GNU C library defines this for functions which it implements
1770
to always fail with ENOSYS. Some functions are actually named
1771
something starting with __ and the normal name is an alias. */
1772
#if defined __stub_$2 || defined __stub___$2
1784
if ac_fn_c_try_link "$LINENO"; then :
1789
rm -f core conftest.err conftest.$ac_objext \
1790
conftest$ac_exeext conftest.$ac_ext
1793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794
$as_echo "$ac_res" >&6; }
1795
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
} # ac_fn_c_check_func
1799
# ac_fn_cxx_try_cpp LINENO
1800
# ------------------------
1801
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802
ac_fn_cxx_try_cpp ()
1804
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805
if { { ac_try="$ac_cpp conftest.$ac_ext"
1807
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808
*) ac_try_echo=$ac_try;;
1810
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811
$as_echo "$ac_try_echo"; } >&5
1812
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814
if test -s conftest.err; then
1815
grep -v '^ *+' conftest.err >conftest.er1
1816
cat conftest.er1 >&5
1817
mv -f conftest.er1 conftest.err
1819
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820
test $ac_status = 0; } > conftest.i && {
1821
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1822
test ! -s conftest.err
1826
$as_echo "$as_me: failed program was:" >&5
1827
sed 's/^/| /' conftest.$ac_ext >&5
1831
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
as_fn_set_status $ac_retval
1834
} # ac_fn_cxx_try_cpp
1836
# ac_fn_cxx_try_link LINENO
1837
# -------------------------
1838
# Try to link conftest.$ac_ext, and return whether this succeeded.
1839
ac_fn_cxx_try_link ()
1841
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842
rm -f conftest.$ac_objext conftest$ac_exeext
1843
if { { ac_try="$ac_link"
1845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846
*) ac_try_echo=$ac_try;;
1848
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849
$as_echo "$ac_try_echo"; } >&5
1850
(eval "$ac_link") 2>conftest.err
1852
if test -s conftest.err; then
1853
grep -v '^ *+' conftest.err >conftest.er1
1854
cat conftest.er1 >&5
1855
mv -f conftest.er1 conftest.err
1857
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858
test $ac_status = 0; } && {
1859
test -z "$ac_cxx_werror_flag" ||
1860
test ! -s conftest.err
1861
} && test -s conftest$ac_exeext && {
1862
test "$cross_compiling" = yes ||
1863
$as_test_x conftest$ac_exeext
1867
$as_echo "$as_me: failed program was:" >&5
1868
sed 's/^/| /' conftest.$ac_ext >&5
1872
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1873
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1874
# interfere with the next link command; also delete a directory that is
1875
# left behind by Apple's compiler. We do this before executing the actions.
1876
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
as_fn_set_status $ac_retval
1880
} # ac_fn_cxx_try_link
1881
cat >config.log <<_ACEOF
1882
This file contains any messages produced by compilers while
1883
running configure, to aid debugging if configure makes a mistake.
1885
It was created by Google C++ Testing Framework $as_me 1.5.0, which was
1886
generated by GNU Autoconf 2.68. Invocation command line was
1898
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1899
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1900
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1901
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1902
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1905
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1907
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1908
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1909
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1910
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1911
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1912
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1913
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921
test -z "$as_dir" && as_dir=.
1922
$as_echo "PATH: $as_dir"
1938
# Keep a trace of the command line.
1939
# Strip out --no-create and --no-recursion so they do not pile up.
1940
# Strip out --silent because we don't want to record it for future runs.
1941
# Also quote any args containing shell meta-characters.
1942
# Make two passes to allow for proper duplicate-argument suppression.
1946
ac_must_keep_next=false
1952
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1953
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1954
| -silent | --silent | --silen | --sile | --sil)
1957
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1962
as_fn_append ac_configure_args1 " '$ac_arg'"
1963
if test $ac_must_keep_next = true; then
1964
ac_must_keep_next=false # Got value, back to normal.
1967
*=* | --config-cache | -C | -disable-* | --disable-* \
1968
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1969
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1970
| -with-* | --with-* | -without-* | --without-* | --x)
1971
case "$ac_configure_args0 " in
1972
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975
-* ) ac_must_keep_next=true ;;
1978
as_fn_append ac_configure_args " '$ac_arg'"
1983
{ ac_configure_args0=; unset ac_configure_args0;}
1984
{ ac_configure_args1=; unset ac_configure_args1;}
1986
# When interrupted or exit'd, cleanup temporary files, and complete
1987
# config.log. We remove comments because anyway the quotes in there
1988
# would cause problems or look ugly.
1989
# WARNING: Use '\'' to represent an apostrophe within the trap.
1990
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1991
trap 'exit_status=$?
1992
# Save into config.log some information that might help in debugging.
1996
$as_echo "## ---------------- ##
1997
## Cache variables. ##
1998
## ---------------- ##"
2000
# The following way of writing the cache mishandles newlines in values,
2002
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003
eval ac_val=\$$ac_var
2007
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011
_ | IFS | as_nl) ;; #(
2012
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013
*) { eval $ac_var=; unset $ac_var;} ;;
2018
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019
*${as_nl}ac_space=\ *)
2021
"s/'\''/'\''\\\\'\'''\''/g;
2022
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2032
$as_echo "## ----------------- ##
2033
## Output variables. ##
2034
## ----------------- ##"
2036
for ac_var in $ac_subst_vars
2038
eval ac_val=\$$ac_var
2040
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042
$as_echo "$ac_var='\''$ac_val'\''"
2046
if test -n "$ac_subst_files"; then
2047
$as_echo "## ------------------- ##
2048
## File substitutions. ##
2049
## ------------------- ##"
2051
for ac_var in $ac_subst_files
2053
eval ac_val=\$$ac_var
2055
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057
$as_echo "$ac_var='\''$ac_val'\''"
2062
if test -s confdefs.h; then
2063
$as_echo "## ----------- ##
2070
test "$ac_signal" != 0 &&
2071
$as_echo "$as_me: caught signal $ac_signal"
2072
$as_echo "$as_me: exit $exit_status"
2074
rm -f core *.core core.conftest.* &&
2075
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2078
for ac_signal in 1 2 13 15; do
2079
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2084
rm -f -r conftest* confdefs.h
2086
$as_echo "/* confdefs.h */" > confdefs.h
2088
# Predefined preprocessor variables.
2090
cat >>confdefs.h <<_ACEOF
2091
#define PACKAGE_NAME "$PACKAGE_NAME"
2094
cat >>confdefs.h <<_ACEOF
2095
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2098
cat >>confdefs.h <<_ACEOF
2099
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2102
cat >>confdefs.h <<_ACEOF
2103
#define PACKAGE_STRING "$PACKAGE_STRING"
2106
cat >>confdefs.h <<_ACEOF
2107
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2110
cat >>confdefs.h <<_ACEOF
2111
#define PACKAGE_URL "$PACKAGE_URL"
2115
# Let the site file select an alternate cache file if it wants to.
2116
# Prefer an explicitly selected file to automatically selected ones.
2119
if test -n "$CONFIG_SITE"; then
2120
# We do not want a PATH search for config.site.
2121
case $CONFIG_SITE in #((
2122
-*) ac_site_file1=./$CONFIG_SITE;;
2123
*/*) ac_site_file1=$CONFIG_SITE;;
2124
*) ac_site_file1=./$CONFIG_SITE;;
2126
elif test "x$prefix" != xNONE; then
2127
ac_site_file1=$prefix/share/config.site
2128
ac_site_file2=$prefix/etc/config.site
2130
ac_site_file1=$ac_default_prefix/share/config.site
2131
ac_site_file2=$ac_default_prefix/etc/config.site
2133
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135
test "x$ac_site_file" = xNONE && continue
2136
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2137
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2138
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2139
sed 's/^/| /' "$ac_site_file" >&5
2141
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143
as_fn_error $? "failed to load site script $ac_site_file
2144
See \`config.log' for more details" "$LINENO" 5; }
2148
if test -r "$cache_file"; then
2149
# Some versions of bash will fail to source /dev/null (special files
2150
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2151
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2152
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153
$as_echo "$as_me: loading cache $cache_file" >&6;}
2155
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2156
*) . "./$cache_file";;
2160
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161
$as_echo "$as_me: creating cache $cache_file" >&6;}
2165
# Check that the precious variables saved in the cache have kept the same
2167
ac_cache_corrupted=false
2168
for ac_var in $ac_precious_vars; do
2169
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170
eval ac_new_set=\$ac_env_${ac_var}_set
2171
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172
eval ac_new_val=\$ac_env_${ac_var}_value
2173
case $ac_old_set,$ac_new_set in
2175
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177
ac_cache_corrupted=: ;;
2179
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181
ac_cache_corrupted=: ;;
2184
if test "x$ac_old_val" != "x$ac_new_val"; then
2185
# differences in whitespace do not lead to failure.
2186
ac_old_val_w=`echo x $ac_old_val`
2187
ac_new_val_w=`echo x $ac_new_val`
2188
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191
ac_cache_corrupted=:
2193
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195
eval $ac_var=\$ac_old_val
2197
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2203
# Pass precious variables to config.status.
2204
if test "$ac_new_set" = set; then
2206
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207
*) ac_arg=$ac_var=$ac_new_val ;;
2209
case " $ac_configure_args " in
2210
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2211
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2215
if $ac_cache_corrupted; then
2216
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222
## -------------------- ##
2223
## Main body of script. ##
2224
## -------------------- ##
2227
ac_cpp='$CPP $CPPFLAGS'
2228
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
# Provide various options to initialize the Autoconf and configure processes.
2238
for ac_dir in build-aux "$srcdir"/build-aux; do
2239
if test -f "$ac_dir/install-sh"; then
2241
ac_install_sh="$ac_aux_dir/install-sh -c"
2243
elif test -f "$ac_dir/install.sh"; then
2245
ac_install_sh="$ac_aux_dir/install.sh -c"
2247
elif test -f "$ac_dir/shtool"; then
2249
ac_install_sh="$ac_aux_dir/shtool install -c"
2253
if test -z "$ac_aux_dir"; then
2254
as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2257
# These three variables are undocumented and unsupported,
2258
# and are intended to be withdrawn in a future Autoconf release.
2259
# They can cause serious problems if a builder's source tree is in a directory
2260
# whose full name contains unusual characters.
2261
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2262
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2263
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2266
ac_config_headers="$ac_config_headers build-aux/config.h"
2268
ac_config_files="$ac_config_files Makefile"
2270
ac_config_files="$ac_config_files scripts/gtest-config"
2273
# Initialize Automake with various options. We require at least v1.9, prevent
2274
# pedantic complaints about package files, and enable various distribution
2276
am__api_version='1.11'
2278
# Find a good install program. We prefer a C program (faster),
2279
# so one script is as good as another. But avoid the broken or
2280
# incompatible versions:
2281
# SysV /etc/install, /usr/sbin/install
2282
# SunOS /usr/etc/install
2283
# IRIX /sbin/install
2285
# AmigaOS /C/install, which installs bootblocks on floppy discs
2286
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2287
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2288
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2289
# OS/2's system install, which has a completely different semantic
2290
# ./install, which can be erroneously created by make from ./install.sh.
2291
# Reject install programs that cannot install multiple files.
2292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2293
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2294
if test -z "$INSTALL"; then
2295
if ${ac_cv_path_install+:} false; then :
2296
$as_echo_n "(cached) " >&6
2298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302
test -z "$as_dir" && as_dir=.
2303
# Account for people who put trailing slashes in PATH elements.
2304
case $as_dir/ in #((
2305
./ | .// | /[cC]/* | \
2306
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2307
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2310
# OSF1 and SCO ODT 3.0 have their own names for install.
2311
# Don't use installbsd from OSF since it installs stuff as root
2313
for ac_prog in ginstall scoinst install; do
2314
for ac_exec_ext in '' $ac_executable_extensions; do
2315
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2316
if test $ac_prog = install &&
2317
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2318
# AIX install. It has an incompatible calling convention.
2320
elif test $ac_prog = install &&
2321
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2322
# program-specific install script used by HP pwplus--don't use.
2325
rm -rf conftest.one conftest.two conftest.dir
2326
echo one > conftest.one
2327
echo two > conftest.two
2329
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2330
test -s conftest.one && test -s conftest.two &&
2331
test -s conftest.dir/conftest.one &&
2332
test -s conftest.dir/conftest.two
2334
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2347
rm -rf conftest.one conftest.two conftest.dir
2350
if test "${ac_cv_path_install+set}" = set; then
2351
INSTALL=$ac_cv_path_install
2353
# As a last resort, use the slow shell script. Don't cache a
2354
# value for INSTALL within a source directory, because that will
2355
# break other packages using the cache if that directory is
2356
# removed, or if the value is a relative name.
2357
INSTALL=$ac_install_sh
2360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2361
$as_echo "$INSTALL" >&6; }
2363
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2364
# It thinks the first close brace ends the variable substitution.
2365
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2367
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2369
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2372
$as_echo_n "checking whether build environment is sane... " >&6; }
2375
echo timestamp > conftest.file
2376
# Reject unsafe characters in $srcdir or the absolute working directory
2377
# name. Accept space and tab only in the latter.
2381
*[\\\"\#\$\&\'\`$am_lf]*)
2382
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2385
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2386
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2389
# Do `set' in a subshell so we don't clobber the current shell's
2390
# arguments. Must try -L first in case configure is actually a
2391
# symlink; some systems play weird games with the mod time of symlinks
2392
# (eg FreeBSD returns the mod time of the symlink's containing
2395
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2396
if test "$*" = "X"; then
2398
set X `ls -t "$srcdir/configure" conftest.file`
2401
if test "$*" != "X $srcdir/configure conftest.file" \
2402
&& test "$*" != "X conftest.file $srcdir/configure"; then
2404
# If neither matched, then we have a broken ls. This can happen
2405
# if, for instance, CONFIG_SHELL is bash and it inherits a
2406
# broken ls alias from the environment. This has actually
2407
# happened. Such a system could not be considered "sane".
2408
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2409
alias in your environment" "$LINENO" 5
2412
test "$2" = conftest.file
2418
as_fn_error $? "newly created file is older than distributed files!
2419
Check your system clock" "$LINENO" 5
2421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2422
$as_echo "yes" >&6; }
2423
test "$program_prefix" != NONE &&
2424
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2425
# Use a double $ so make ignores it.
2426
test "$program_suffix" != NONE &&
2427
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2428
# Double any \ or $.
2429
# By default was `s,x,x', remove it if useless.
2430
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2431
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2433
# expand $ac_aux_dir to an absolute path
2434
am_aux_dir=`cd $ac_aux_dir && pwd`
2436
if test x"${MISSING+set}" != xset; then
2439
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2441
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2444
# Use eval to expand $SHELL
2445
if eval "$MISSING --run true"; then
2446
am_missing_run="$MISSING --run "
2449
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2450
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2453
if test x"${install_sh}" != xset; then
2456
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2458
install_sh="\${SHELL} $am_aux_dir/install-sh"
2462
# Installed binaries are usually stripped using `strip' when the user
2463
# run `make install-strip'. However `strip' might not be the right
2464
# tool to use in cross-compilation environments, therefore Automake
2465
# will honor the `STRIP' environment variable to overrule this program.
2466
if test "$cross_compiling" != no; then
2467
if test -n "$ac_tool_prefix"; then
2468
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469
set dummy ${ac_tool_prefix}strip; ac_word=$2
2470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471
$as_echo_n "checking for $ac_word... " >&6; }
2472
if ${ac_cv_prog_STRIP+:} false; then :
2473
$as_echo_n "(cached) " >&6
2475
if test -n "$STRIP"; then
2476
ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
2486
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495
STRIP=$ac_cv_prog_STRIP
2496
if test -n "$STRIP"; then
2497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2498
$as_echo "$STRIP" >&6; }
2500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501
$as_echo "no" >&6; }
2506
if test -z "$ac_cv_prog_STRIP"; then
2508
# Extract the first word of "strip", so it can be a program name with args.
2509
set dummy strip; ac_word=$2
2510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511
$as_echo_n "checking for $ac_word... " >&6; }
2512
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2513
$as_echo_n "(cached) " >&6
2515
if test -n "$ac_ct_STRIP"; then
2516
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522
test -z "$as_dir" && as_dir=.
2523
for ac_exec_ext in '' $ac_executable_extensions; do
2524
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525
ac_cv_prog_ac_ct_STRIP="strip"
2526
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536
if test -n "$ac_ct_STRIP"; then
2537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2538
$as_echo "$ac_ct_STRIP" >&6; }
2540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541
$as_echo "no" >&6; }
2544
if test "x$ac_ct_STRIP" = x; then
2547
case $cross_compiling:$ac_tool_warned in
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551
ac_tool_warned=yes ;;
2556
STRIP="$ac_cv_prog_STRIP"
2560
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2563
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2564
if test -z "$MKDIR_P"; then
2565
if ${ac_cv_path_mkdir+:} false; then :
2566
$as_echo_n "(cached) " >&6
2568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2572
test -z "$as_dir" && as_dir=.
2573
for ac_prog in mkdir gmkdir; do
2574
for ac_exec_ext in '' $ac_executable_extensions; do
2575
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2576
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2577
'mkdir (GNU coreutils) '* | \
2578
'mkdir (coreutils) '* | \
2579
'mkdir (fileutils) '4.1*)
2580
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2590
test -d ./--version && rmdir ./--version
2591
if test "${ac_cv_path_mkdir+set}" = set; then
2592
MKDIR_P="$ac_cv_path_mkdir -p"
2594
# As a last resort, use the slow shell script. Don't cache a
2595
# value for MKDIR_P within a source directory, because that will
2596
# break other packages using the cache if that directory is
2597
# removed, or if the value is a relative name.
2598
MKDIR_P="$ac_install_sh -d"
2601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2602
$as_echo "$MKDIR_P" >&6; }
2606
[\\/$]* | ?:[\\/]*) ;;
2607
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2610
for ac_prog in gawk mawk nawk awk
2612
# Extract the first word of "$ac_prog", so it can be a program name with args.
2613
set dummy $ac_prog; ac_word=$2
2614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615
$as_echo_n "checking for $ac_word... " >&6; }
2616
if ${ac_cv_prog_AWK+:} false; then :
2617
$as_echo_n "(cached) " >&6
2619
if test -n "$AWK"; then
2620
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626
test -z "$as_dir" && as_dir=.
2627
for ac_exec_ext in '' $ac_executable_extensions; do
2628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629
ac_cv_prog_AWK="$ac_prog"
2630
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640
if test -n "$AWK"; then
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642
$as_echo "$AWK" >&6; }
2644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645
$as_echo "no" >&6; }
2649
test -n "$AWK" && break
2652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2655
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657
$as_echo_n "(cached) " >&6
2659
cat >conftest.make <<\_ACEOF
2662
@echo '@@@%%%=$(MAKE)=@@@%%%'
2664
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2665
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2667
eval ac_cv_prog_make_${ac_make}_set=yes;;
2669
eval ac_cv_prog_make_${ac_make}_set=no;;
2673
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675
$as_echo "yes" >&6; }
2678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679
$as_echo "no" >&6; }
2680
SET_MAKE="MAKE=${MAKE-make}"
2683
rm -rf .tst 2>/dev/null
2684
mkdir .tst 2>/dev/null
2685
if test -d .tst; then
2690
rmdir .tst 2>/dev/null
2692
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2693
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2694
# is not polluted with repeated "-I."
2695
am__isrc=' -I$(srcdir)'
2696
# test to see if srcdir already configured
2697
if test -f $srcdir/config.status; then
2698
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2702
# test whether we have cygpath
2703
if test -z "$CYGPATH_W"; then
2704
if (cygpath --version) >/dev/null 2>/dev/null; then
2705
CYGPATH_W='cygpath -w'
2712
# Define the identity of the package.
2717
cat >>confdefs.h <<_ACEOF
2718
#define PACKAGE "$PACKAGE"
2722
cat >>confdefs.h <<_ACEOF
2723
#define VERSION "$VERSION"
2726
# Some tools Automake needs.
2728
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2731
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2734
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2737
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2740
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2742
# We need awk for the "check" target. The system "awk" is bad on
2744
# Always define AMTAR for backward compatibility. Yes, it's still used
2745
# in the wild :-( We should find a proper way to deprecate it ...
2748
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2755
# Check for programs used in building Google Test.
2757
ac_cpp='$CPP $CPPFLAGS'
2758
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
if test -n "$ac_tool_prefix"; then
2762
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765
$as_echo_n "checking for $ac_word... " >&6; }
2766
if ${ac_cv_prog_CC+:} false; then :
2767
$as_echo_n "(cached) " >&6
2769
if test -n "$CC"; then
2770
ac_cv_prog_CC="$CC" # Let the user override the test.
2772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776
test -z "$as_dir" && as_dir=.
2777
for ac_exec_ext in '' $ac_executable_extensions; do
2778
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2780
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790
if test -n "$CC"; then
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792
$as_echo "$CC" >&6; }
2794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795
$as_echo "no" >&6; }
2800
if test -z "$ac_cv_prog_CC"; then
2802
# Extract the first word of "gcc", so it can be a program name with args.
2803
set dummy gcc; ac_word=$2
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805
$as_echo_n "checking for $ac_word... " >&6; }
2806
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2807
$as_echo_n "(cached) " >&6
2809
if test -n "$ac_ct_CC"; then
2810
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816
test -z "$as_dir" && as_dir=.
2817
for ac_exec_ext in '' $ac_executable_extensions; do
2818
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819
ac_cv_prog_ac_ct_CC="gcc"
2820
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830
if test -n "$ac_ct_CC"; then
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2832
$as_echo "$ac_ct_CC" >&6; }
2834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835
$as_echo "no" >&6; }
2838
if test "x$ac_ct_CC" = x; then
2841
case $cross_compiling:$ac_tool_warned in
2843
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2844
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2845
ac_tool_warned=yes ;;
2853
if test -z "$CC"; then
2854
if test -n "$ac_tool_prefix"; then
2855
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2856
set dummy ${ac_tool_prefix}cc; ac_word=$2
2857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858
$as_echo_n "checking for $ac_word... " >&6; }
2859
if ${ac_cv_prog_CC+:} false; then :
2860
$as_echo_n "(cached) " >&6
2862
if test -n "$CC"; then
2863
ac_cv_prog_CC="$CC" # Let the user override the test.
2865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869
test -z "$as_dir" && as_dir=.
2870
for ac_exec_ext in '' $ac_executable_extensions; do
2871
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872
ac_cv_prog_CC="${ac_tool_prefix}cc"
2873
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883
if test -n "$CC"; then
2884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885
$as_echo "$CC" >&6; }
2887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888
$as_echo "no" >&6; }
2894
if test -z "$CC"; then
2895
# Extract the first word of "cc", so it can be a program name with args.
2896
set dummy cc; ac_word=$2
2897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898
$as_echo_n "checking for $ac_word... " >&6; }
2899
if ${ac_cv_prog_CC+:} false; then :
2900
$as_echo_n "(cached) " >&6
2902
if test -n "$CC"; then
2903
ac_cv_prog_CC="$CC" # Let the user override the test.
2906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910
test -z "$as_dir" && as_dir=.
2911
for ac_exec_ext in '' $ac_executable_extensions; do
2912
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914
ac_prog_rejected=yes
2918
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925
if test $ac_prog_rejected = yes; then
2926
# We found a bogon in the path, so make sure we never use it.
2927
set dummy $ac_cv_prog_CC
2929
if test $# != 0; then
2930
# We chose a different compiler from the bogus one.
2931
# However, it has the same basename, so the bogon will be chosen
2932
# first if we set CC to just the basename; use the full file name.
2934
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2940
if test -n "$CC"; then
2941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942
$as_echo "$CC" >&6; }
2944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945
$as_echo "no" >&6; }
2950
if test -z "$CC"; then
2951
if test -n "$ac_tool_prefix"; then
2952
for ac_prog in cl.exe
2954
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957
$as_echo_n "checking for $ac_word... " >&6; }
2958
if ${ac_cv_prog_CC+:} false; then :
2959
$as_echo_n "(cached) " >&6
2961
if test -n "$CC"; then
2962
ac_cv_prog_CC="$CC" # Let the user override the test.
2964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968
test -z "$as_dir" && as_dir=.
2969
for ac_exec_ext in '' $ac_executable_extensions; do
2970
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2972
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982
if test -n "$CC"; then
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984
$as_echo "$CC" >&6; }
2986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987
$as_echo "no" >&6; }
2991
test -n "$CC" && break
2994
if test -z "$CC"; then
2996
for ac_prog in cl.exe
2998
# Extract the first word of "$ac_prog", so it can be a program name with args.
2999
set dummy $ac_prog; ac_word=$2
3000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001
$as_echo_n "checking for $ac_word... " >&6; }
3002
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3003
$as_echo_n "(cached) " >&6
3005
if test -n "$ac_ct_CC"; then
3006
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012
test -z "$as_dir" && as_dir=.
3013
for ac_exec_ext in '' $ac_executable_extensions; do
3014
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015
ac_cv_prog_ac_ct_CC="$ac_prog"
3016
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026
if test -n "$ac_ct_CC"; then
3027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028
$as_echo "$ac_ct_CC" >&6; }
3030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031
$as_echo "no" >&6; }
3035
test -n "$ac_ct_CC" && break
3038
if test "x$ac_ct_CC" = x; then
3041
case $cross_compiling:$ac_tool_warned in
3043
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045
ac_tool_warned=yes ;;
3054
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056
as_fn_error $? "no acceptable C compiler found in \$PATH
3057
See \`config.log' for more details" "$LINENO" 5; }
3059
# Provide some information about the compiler.
3060
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3063
for ac_option in --version -v -V -qversion; do
3064
{ { ac_try="$ac_compiler $ac_option >&5"
3066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067
*) ac_try_echo=$ac_try;;
3069
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070
$as_echo "$ac_try_echo"; } >&5
3071
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3073
if test -s conftest.err; then
3075
... rest of stderr output deleted ...
3076
10q' conftest.err >conftest.er1
3077
cat conftest.er1 >&5
3079
rm -f conftest.er1 conftest.err
3080
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081
test $ac_status = 0; }
3084
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085
/* end confdefs.h. */
3095
ac_clean_files_save=$ac_clean_files
3096
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3097
# Try to create an executable without -o first, disregard a.out.
3098
# It will help us diagnose broken compilers, and finding out an intuition
3100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3101
$as_echo_n "checking whether the C compiler works... " >&6; }
3102
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3104
# The possible output files:
3105
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108
for ac_file in $ac_files
3111
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3112
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117
if { { ac_try="$ac_link_default"
3119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120
*) ac_try_echo=$ac_try;;
3122
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123
$as_echo "$ac_try_echo"; } >&5
3124
(eval "$ac_link_default") 2>&5
3126
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3127
test $ac_status = 0; }; then :
3128
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3129
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3130
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3131
# so that the user can short-circuit this test for compilers unknown to
3133
for ac_file in $ac_files ''
3135
test -f "$ac_file" || continue
3137
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3140
# We found the default executable, but exeext='' is most
3144
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3146
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3148
# We set ac_cv_exeext here because the later test for it is not
3149
# safe: cross compilers may not add the suffix if given an `-o'
3150
# argument, so we may need to know it at that point already.
3151
# Even if this section looks crufty: it has the advantage of
3158
test "$ac_cv_exeext" = no && ac_cv_exeext=
3163
if test -z "$ac_file"; then :
3164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165
$as_echo "no" >&6; }
3166
$as_echo "$as_me: failed program was:" >&5
3167
sed 's/^/| /' conftest.$ac_ext >&5
3169
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171
as_fn_error 77 "C compiler cannot create executables
3172
See \`config.log' for more details" "$LINENO" 5; }
3174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175
$as_echo "yes" >&6; }
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178
$as_echo_n "checking for C compiler default output file name... " >&6; }
3179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3180
$as_echo "$ac_file" >&6; }
3181
ac_exeext=$ac_cv_exeext
3183
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3184
ac_clean_files=$ac_clean_files_save
3185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3186
$as_echo_n "checking for suffix of executables... " >&6; }
3187
if { { ac_try="$ac_link"
3189
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190
*) ac_try_echo=$ac_try;;
3192
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193
$as_echo "$ac_try_echo"; } >&5
3194
(eval "$ac_link") 2>&5
3196
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197
test $ac_status = 0; }; then :
3198
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3199
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200
# work properly (i.e., refer to `conftest.exe'), while it won't with
3202
for ac_file in conftest.exe conftest conftest.*; do
3203
test -f "$ac_file" || continue
3205
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3215
See \`config.log' for more details" "$LINENO" 5; }
3217
rm -f conftest conftest$ac_cv_exeext
3218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3219
$as_echo "$ac_cv_exeext" >&6; }
3221
rm -f conftest.$ac_ext
3222
EXEEXT=$ac_cv_exeext
3224
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225
/* end confdefs.h. */
3230
FILE *f = fopen ("conftest.out", "w");
3231
return ferror (f) || fclose (f) != 0;
3237
ac_clean_files="$ac_clean_files conftest.out"
3238
# Check that the compiler produces executables we can run. If not, either
3239
# the compiler is broken, or we cross compile.
3240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3241
$as_echo_n "checking whether we are cross compiling... " >&6; }
3242
if test "$cross_compiling" != yes; then
3243
{ { ac_try="$ac_link"
3245
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246
*) ac_try_echo=$ac_try;;
3248
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249
$as_echo "$ac_try_echo"; } >&5
3250
(eval "$ac_link") 2>&5
3252
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253
test $ac_status = 0; }
3254
if { ac_try='./conftest$ac_cv_exeext'
3255
{ { case "(($ac_try" in
3256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257
*) ac_try_echo=$ac_try;;
3259
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260
$as_echo "$ac_try_echo"; } >&5
3261
(eval "$ac_try") 2>&5
3263
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264
test $ac_status = 0; }; }; then
3267
if test "$cross_compiling" = maybe; then
3270
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272
as_fn_error $? "cannot run C compiled programs.
3273
If you meant to cross compile, use \`--host'.
3274
See \`config.log' for more details" "$LINENO" 5; }
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279
$as_echo "$cross_compiling" >&6; }
3281
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3282
ac_clean_files=$ac_clean_files_save
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3284
$as_echo_n "checking for suffix of object files... " >&6; }
3285
if ${ac_cv_objext+:} false; then :
3286
$as_echo_n "(cached) " >&6
3288
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289
/* end confdefs.h. */
3299
rm -f conftest.o conftest.obj
3300
if { { ac_try="$ac_compile"
3302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303
*) ac_try_echo=$ac_try;;
3305
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306
$as_echo "$ac_try_echo"; } >&5
3307
(eval "$ac_compile") 2>&5
3309
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310
test $ac_status = 0; }; then :
3311
for ac_file in conftest.o conftest.obj conftest.*; do
3312
test -f "$ac_file" || continue;
3314
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3315
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320
$as_echo "$as_me: failed program was:" >&5
3321
sed 's/^/| /' conftest.$ac_ext >&5
3323
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325
as_fn_error $? "cannot compute suffix of object files: cannot compile
3326
See \`config.log' for more details" "$LINENO" 5; }
3328
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3331
$as_echo "$ac_cv_objext" >&6; }
3332
OBJEXT=$ac_cv_objext
3334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3335
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3336
if ${ac_cv_c_compiler_gnu+:} false; then :
3337
$as_echo_n "(cached) " >&6
3339
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340
/* end confdefs.h. */
3353
if ac_fn_c_try_compile "$LINENO"; then :
3358
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3363
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3364
if test $ac_compiler_gnu = yes; then
3369
ac_test_CFLAGS=${CFLAGS+set}
3370
ac_save_CFLAGS=$CFLAGS
3371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3372
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3373
if ${ac_cv_prog_cc_g+:} false; then :
3374
$as_echo_n "(cached) " >&6
3376
ac_save_c_werror_flag=$ac_c_werror_flag
3377
ac_c_werror_flag=yes
3380
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381
/* end confdefs.h. */
3391
if ac_fn_c_try_compile "$LINENO"; then :
3395
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396
/* end confdefs.h. */
3406
if ac_fn_c_try_compile "$LINENO"; then :
3409
ac_c_werror_flag=$ac_save_c_werror_flag
3411
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412
/* end confdefs.h. */
3422
if ac_fn_c_try_compile "$LINENO"; then :
3425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430
ac_c_werror_flag=$ac_save_c_werror_flag
3432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3433
$as_echo "$ac_cv_prog_cc_g" >&6; }
3434
if test "$ac_test_CFLAGS" = set; then
3435
CFLAGS=$ac_save_CFLAGS
3436
elif test $ac_cv_prog_cc_g = yes; then
3437
if test "$GCC" = yes; then
3443
if test "$GCC" = yes; then
3449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3450
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3451
if ${ac_cv_prog_cc_c89+:} false; then :
3452
$as_echo_n "(cached) " >&6
3454
ac_cv_prog_cc_c89=no
3456
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457
/* end confdefs.h. */
3460
#include <sys/types.h>
3461
#include <sys/stat.h>
3462
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3463
struct buf { int x; };
3464
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3465
static char *e (p, i)
3471
static char *f (char * (*g) (char **, int), char **p, ...)
3476
s = g (p, va_arg (v,int));
3481
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3482
function prototypes and stuff, but not '\xHH' hex character constants.
3483
These don't provoke an error unfortunately, instead are silently treated
3484
as 'x'. The following induces an error, until -std is added to get
3485
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3486
array size at least. It's necessary to write '\x00'==0 to get something
3487
that's true only with -std. */
3488
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3490
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3491
inside strings and character constants. */
3493
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3495
int test (int i, double x);
3496
struct s1 {int (*f) (int a);};
3497
struct s2 {int (*f) (double a);};
3498
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3504
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3509
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3510
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3512
CC="$ac_save_CC $ac_arg"
3513
if ac_fn_c_try_compile "$LINENO"; then :
3514
ac_cv_prog_cc_c89=$ac_arg
3516
rm -f core conftest.err conftest.$ac_objext
3517
test "x$ac_cv_prog_cc_c89" != "xno" && break
3519
rm -f conftest.$ac_ext
3524
case "x$ac_cv_prog_cc_c89" in
3526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3527
$as_echo "none needed" >&6; } ;;
3529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3530
$as_echo "unsupported" >&6; } ;;
3532
CC="$CC $ac_cv_prog_cc_c89"
3533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3534
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3536
if test "x$ac_cv_prog_cc_c89" != xno; then :
3541
ac_cpp='$CPP $CPPFLAGS'
3542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3545
DEPDIR="${am__leading_dot}deps"
3547
ac_config_commands="$ac_config_commands depfiles"
3550
am_make=${MAKE-make}
3551
cat > confinc << 'END'
3553
@echo this is the am__doit target
3556
# If we don't find an include directive, just comment out the code.
3557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3558
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3562
# First try GNU make style include.
3563
echo "include confinc" > confmf
3564
# Ignore all kinds of additional output from `make'.
3565
case `$am_make -s -f confmf 2> /dev/null` in #(
3566
*the\ am__doit\ target*)
3572
# Now try BSD make style include.
3573
if test "$am__include" = "#"; then
3574
echo '.include "confinc"' > confmf
3575
case `$am_make -s -f confmf 2> /dev/null` in #(
3576
*the\ am__doit\ target*)
3577
am__include=.include
3585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3586
$as_echo "$_am_result" >&6; }
3587
rm -f confinc confmf
3589
# Check whether --enable-dependency-tracking was given.
3590
if test "${enable_dependency_tracking+set}" = set; then :
3591
enableval=$enable_dependency_tracking;
3594
if test "x$enable_dependency_tracking" != xno; then
3595
am_depcomp="$ac_aux_dir/depcomp"
3599
if test "x$enable_dependency_tracking" != xno; then
3609
depcc="$CC" am_compiler_list=
3611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3612
$as_echo_n "checking dependency style of $depcc... " >&6; }
3613
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3614
$as_echo_n "(cached) " >&6
3616
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3617
# We make a subdir and do the tests there. Otherwise we can end up
3618
# making bogus files that we don't know about and never remove. For
3619
# instance it was reported that on HP-UX the gcc test will end up
3620
# making a dummy file named `D' -- because `-MD' means `put the output
3624
# Copy depcomp to subdir because otherwise we won't find it if we're
3625
# using a relative directory.
3626
cp "$am_depcomp" conftest.dir
3628
# We will build objects and dependencies in a subdirectory because
3629
# it helps to detect inapplicable dependency modes. For instance
3630
# both Tru64's cc and ICC support -MD to output dependencies as a
3631
# side effect of compilation, but ICC will put the dependencies in
3632
# the current directory while Tru64 will put them in the object
3636
am_cv_CC_dependencies_compiler_type=none
3637
if test "$am_compiler_list" = ""; then
3638
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641
case " $depcc " in #(
3642
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3645
for depmode in $am_compiler_list; do
3646
# Setup a source with many dependencies, because some compilers
3647
# like to wrap large dependency lists on column 80 (with \), and
3648
# we should not choose a depcomp mode which is confused by this.
3650
# We need to recreate these files for each test, as the compiler may
3651
# overwrite some of them when testing with obscure command lines.
3652
# This happens at least with the AIX C compiler.
3654
for i in 1 2 3 4 5 6; do
3655
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3656
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3657
# Solaris 8's {/usr,}/bin/sh.
3658
touch sub/conftst$i.h
3660
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3662
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3663
# mode. It turns out that the SunPro C++ compiler does not properly
3664
# handle `-M -o', and we need to detect this. Also, some Intel
3665
# versions had trouble with output in subdirs
3666
am__obj=sub/conftest.${OBJEXT-o}
3667
am__minus_obj="-o $am__obj"
3670
# This depmode causes a compiler race in universal mode.
3671
test "$am__universal" = false || continue
3674
# after this tag, mechanisms are not by side-effect, so they'll
3675
# only be used when explicitly requested
3676
if test "x$enable_dependency_tracking" = xyes; then
3682
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3683
# This compiler won't grok `-c -o', but also, the minuso test has
3684
# not run yet. These depmodes are late enough in the game, and
3685
# so weak that their functioning should not be impacted.
3686
am__obj=conftest.${OBJEXT-o}
3691
if depmode=$depmode \
3692
source=sub/conftest.c object=$am__obj \
3693
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3694
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3695
>/dev/null 2>conftest.err &&
3696
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3697
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3698
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3699
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3700
# icc doesn't choke on unknown options, it will just issue warnings
3701
# or remarks (even with -Werror). So we grep stderr for any message
3702
# that says an option was ignored or not supported.
3703
# When given -MP, icc 7.0 and 7.1 complain thusly:
3704
# icc: Command line warning: ignoring option '-M'; no argument required
3705
# The diagnosis changed in icc 8.0:
3706
# icc: Command line remark: option '-MP' not supported
3707
if (grep 'ignoring option' conftest.err ||
3708
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3709
am_cv_CC_dependencies_compiler_type=$depmode
3718
am_cv_CC_dependencies_compiler_type=none
3722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3723
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3724
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3727
test "x$enable_dependency_tracking" != xno \
3728
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3730
am__fastdepCC_FALSE='#'
3732
am__fastdepCC_TRUE='#'
3733
am__fastdepCC_FALSE=
3738
ac_cpp='$CXXCPP $CPPFLAGS'
3739
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3742
if test -z "$CXX"; then
3743
if test -n "$CCC"; then
3746
if test -n "$ac_tool_prefix"; then
3747
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3749
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3750
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752
$as_echo_n "checking for $ac_word... " >&6; }
3753
if ${ac_cv_prog_CXX+:} false; then :
3754
$as_echo_n "(cached) " >&6
3756
if test -n "$CXX"; then
3757
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763
test -z "$as_dir" && as_dir=.
3764
for ac_exec_ext in '' $ac_executable_extensions; do
3765
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3767
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777
if test -n "$CXX"; then
3778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3779
$as_echo "$CXX" >&6; }
3781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782
$as_echo "no" >&6; }
3786
test -n "$CXX" && break
3789
if test -z "$CXX"; then
3791
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3793
# Extract the first word of "$ac_prog", so it can be a program name with args.
3794
set dummy $ac_prog; ac_word=$2
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796
$as_echo_n "checking for $ac_word... " >&6; }
3797
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3798
$as_echo_n "(cached) " >&6
3800
if test -n "$ac_ct_CXX"; then
3801
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807
test -z "$as_dir" && as_dir=.
3808
for ac_exec_ext in '' $ac_executable_extensions; do
3809
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810
ac_cv_prog_ac_ct_CXX="$ac_prog"
3811
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3821
if test -n "$ac_ct_CXX"; then
3822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3823
$as_echo "$ac_ct_CXX" >&6; }
3825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826
$as_echo "no" >&6; }
3830
test -n "$ac_ct_CXX" && break
3833
if test "x$ac_ct_CXX" = x; then
3836
case $cross_compiling:$ac_tool_warned in
3838
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840
ac_tool_warned=yes ;;
3848
# Provide some information about the compiler.
3849
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3852
for ac_option in --version -v -V -qversion; do
3853
{ { ac_try="$ac_compiler $ac_option >&5"
3855
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856
*) ac_try_echo=$ac_try;;
3858
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859
$as_echo "$ac_try_echo"; } >&5
3860
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3862
if test -s conftest.err; then
3864
... rest of stderr output deleted ...
3865
10q' conftest.err >conftest.er1
3866
cat conftest.er1 >&5
3868
rm -f conftest.er1 conftest.err
3869
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870
test $ac_status = 0; }
3873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3874
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3875
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3876
$as_echo_n "(cached) " >&6
3878
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879
/* end confdefs.h. */
3892
if ac_fn_cxx_try_compile "$LINENO"; then :
3897
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3902
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3903
if test $ac_compiler_gnu = yes; then
3908
ac_test_CXXFLAGS=${CXXFLAGS+set}
3909
ac_save_CXXFLAGS=$CXXFLAGS
3910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3911
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3912
if ${ac_cv_prog_cxx_g+:} false; then :
3913
$as_echo_n "(cached) " >&6
3915
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3916
ac_cxx_werror_flag=yes
3919
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920
/* end confdefs.h. */
3930
if ac_fn_cxx_try_compile "$LINENO"; then :
3931
ac_cv_prog_cxx_g=yes
3934
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935
/* end confdefs.h. */
3945
if ac_fn_cxx_try_compile "$LINENO"; then :
3948
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3950
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951
/* end confdefs.h. */
3961
if ac_fn_cxx_try_compile "$LINENO"; then :
3962
ac_cv_prog_cxx_g=yes
3964
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3972
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3973
if test "$ac_test_CXXFLAGS" = set; then
3974
CXXFLAGS=$ac_save_CXXFLAGS
3975
elif test $ac_cv_prog_cxx_g = yes; then
3976
if test "$GXX" = yes; then
3982
if test "$GXX" = yes; then
3989
ac_cpp='$CPP $CPPFLAGS'
3990
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
depcc="$CXX" am_compiler_list=
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3997
$as_echo_n "checking dependency style of $depcc... " >&6; }
3998
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3999
$as_echo_n "(cached) " >&6
4001
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4002
# We make a subdir and do the tests there. Otherwise we can end up
4003
# making bogus files that we don't know about and never remove. For
4004
# instance it was reported that on HP-UX the gcc test will end up
4005
# making a dummy file named `D' -- because `-MD' means `put the output
4009
# Copy depcomp to subdir because otherwise we won't find it if we're
4010
# using a relative directory.
4011
cp "$am_depcomp" conftest.dir
4013
# We will build objects and dependencies in a subdirectory because
4014
# it helps to detect inapplicable dependency modes. For instance
4015
# both Tru64's cc and ICC support -MD to output dependencies as a
4016
# side effect of compilation, but ICC will put the dependencies in
4017
# the current directory while Tru64 will put them in the object
4021
am_cv_CXX_dependencies_compiler_type=none
4022
if test "$am_compiler_list" = ""; then
4023
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4026
case " $depcc " in #(
4027
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4030
for depmode in $am_compiler_list; do
4031
# Setup a source with many dependencies, because some compilers
4032
# like to wrap large dependency lists on column 80 (with \), and
4033
# we should not choose a depcomp mode which is confused by this.
4035
# We need to recreate these files for each test, as the compiler may
4036
# overwrite some of them when testing with obscure command lines.
4037
# This happens at least with the AIX C compiler.
4039
for i in 1 2 3 4 5 6; do
4040
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4041
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4042
# Solaris 8's {/usr,}/bin/sh.
4043
touch sub/conftst$i.h
4045
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4048
# mode. It turns out that the SunPro C++ compiler does not properly
4049
# handle `-M -o', and we need to detect this. Also, some Intel
4050
# versions had trouble with output in subdirs
4051
am__obj=sub/conftest.${OBJEXT-o}
4052
am__minus_obj="-o $am__obj"
4055
# This depmode causes a compiler race in universal mode.
4056
test "$am__universal" = false || continue
4059
# after this tag, mechanisms are not by side-effect, so they'll
4060
# only be used when explicitly requested
4061
if test "x$enable_dependency_tracking" = xyes; then
4067
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4068
# This compiler won't grok `-c -o', but also, the minuso test has
4069
# not run yet. These depmodes are late enough in the game, and
4070
# so weak that their functioning should not be impacted.
4071
am__obj=conftest.${OBJEXT-o}
4076
if depmode=$depmode \
4077
source=sub/conftest.c object=$am__obj \
4078
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4079
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4080
>/dev/null 2>conftest.err &&
4081
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4082
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4083
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4084
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4085
# icc doesn't choke on unknown options, it will just issue warnings
4086
# or remarks (even with -Werror). So we grep stderr for any message
4087
# that says an option was ignored or not supported.
4088
# When given -MP, icc 7.0 and 7.1 complain thusly:
4089
# icc: Command line warning: ignoring option '-M'; no argument required
4090
# The diagnosis changed in icc 8.0:
4091
# icc: Command line remark: option '-MP' not supported
4092
if (grep 'ignoring option' conftest.err ||
4093
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4094
am_cv_CXX_dependencies_compiler_type=$depmode
4103
am_cv_CXX_dependencies_compiler_type=none
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4108
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4109
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4112
test "x$enable_dependency_tracking" != xno \
4113
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4114
am__fastdepCXX_TRUE=
4115
am__fastdepCXX_FALSE='#'
4117
am__fastdepCXX_TRUE='#'
4118
am__fastdepCXX_FALSE=
4123
ac_cpp='$CXXCPP $CPPFLAGS'
4124
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4130
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4131
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4136
macro_version='2.4.2'
4137
macro_revision='1.3337'
4151
ltmain="$ac_aux_dir/ltmain.sh"
4153
# Make sure we can run config.sub.
4154
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4155
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4158
$as_echo_n "checking build system type... " >&6; }
4159
if ${ac_cv_build+:} false; then :
4160
$as_echo_n "(cached) " >&6
4162
ac_build_alias=$build_alias
4163
test "x$ac_build_alias" = x &&
4164
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4165
test "x$ac_build_alias" = x &&
4166
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4167
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4168
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4172
$as_echo "$ac_cv_build" >&6; }
4173
case $ac_cv_build in
4175
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4178
ac_save_IFS=$IFS; IFS='-'
4184
# Remember, the first character of IFS is used to create $*,
4185
# except with old shells:
4188
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4192
$as_echo_n "checking host system type... " >&6; }
4193
if ${ac_cv_host+:} false; then :
4194
$as_echo_n "(cached) " >&6
4196
if test "x$host_alias" = x; then
4197
ac_cv_host=$ac_cv_build
4199
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4200
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4205
$as_echo "$ac_cv_host" >&6; }
4208
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4211
ac_save_IFS=$IFS; IFS='-'
4217
# Remember, the first character of IFS is used to create $*,
4218
# except with old shells:
4221
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4224
# Backslashify metacharacters that are still active within
4225
# double-quoted strings.
4226
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4228
# Same as above, but do not quote variable references.
4229
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4231
# Sed substitution to delay expansion of an escaped shell variable in a
4232
# double_quote_subst'ed string.
4233
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4235
# Sed substitution to delay expansion of an escaped single quote.
4236
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4238
# Sed substitution to avoid accidental globbing in evaled expressions
4239
no_glob_subst='s/\*/\\\*/g'
4241
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4242
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4243
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4245
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4246
$as_echo_n "checking how to print strings... " >&6; }
4247
# Test print first, because it will be a builtin if present.
4248
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4249
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4251
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4254
# Use this function as a fallback that always works.
4255
func_fallback_echo ()
4257
eval 'cat <<_LTECHO_EOF
4261
ECHO='func_fallback_echo'
4264
# func_echo_all arg...
4265
# Invoke $ECHO with all args, space-separated.
4272
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4273
$as_echo "printf" >&6; } ;;
4274
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4275
$as_echo "print -r" >&6; } ;;
4276
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4277
$as_echo "cat" >&6; } ;;
4293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4294
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4295
if ${ac_cv_path_SED+:} false; then :
4296
$as_echo_n "(cached) " >&6
4298
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4299
for ac_i in 1 2 3 4 5 6 7; do
4300
ac_script="$ac_script$as_nl$ac_script"
4302
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4303
{ ac_script=; unset ac_script;}
4304
if test -z "$SED"; then
4305
ac_path_SED_found=false
4306
# Loop through the user's path and test for each of PROGNAME-LIST
4307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311
test -z "$as_dir" && as_dir=.
4312
for ac_prog in sed gsed; do
4313
for ac_exec_ext in '' $ac_executable_extensions; do
4314
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4315
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4316
# Check for GNU ac_path_SED and select it if it is found.
4317
# Check for GNU $ac_path_SED
4318
case `"$ac_path_SED" --version 2>&1` in
4320
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4323
$as_echo_n 0123456789 >"conftest.in"
4326
cat "conftest.in" "conftest.in" >"conftest.tmp"
4327
mv "conftest.tmp" "conftest.in"
4328
cp "conftest.in" "conftest.nl"
4329
$as_echo '' >> "conftest.nl"
4330
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332
as_fn_arith $ac_count + 1 && ac_count=$as_val
4333
if test $ac_count -gt ${ac_path_SED_max-0}; then
4334
# Best one so far, save it but keep looking for a better one
4335
ac_cv_path_SED="$ac_path_SED"
4336
ac_path_SED_max=$ac_count
4338
# 10*(2^10) chars as input seems more than enough
4339
test $ac_count -gt 10 && break
4341
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344
$ac_path_SED_found && break 3
4349
if test -z "$ac_cv_path_SED"; then
4350
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4358
$as_echo "$ac_cv_path_SED" >&6; }
4359
SED="$ac_cv_path_SED"
4362
test -z "$SED" && SED=sed
4363
Xsed="$SED -e 1s/^X//"
4375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4376
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4377
if ${ac_cv_path_GREP+:} false; then :
4378
$as_echo_n "(cached) " >&6
4380
if test -z "$GREP"; then
4381
ac_path_GREP_found=false
4382
# Loop through the user's path and test for each of PROGNAME-LIST
4383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4387
test -z "$as_dir" && as_dir=.
4388
for ac_prog in grep ggrep; do
4389
for ac_exec_ext in '' $ac_executable_extensions; do
4390
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4391
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4392
# Check for GNU ac_path_GREP and select it if it is found.
4393
# Check for GNU $ac_path_GREP
4394
case `"$ac_path_GREP" --version 2>&1` in
4396
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4399
$as_echo_n 0123456789 >"conftest.in"
4402
cat "conftest.in" "conftest.in" >"conftest.tmp"
4403
mv "conftest.tmp" "conftest.in"
4404
cp "conftest.in" "conftest.nl"
4405
$as_echo 'GREP' >> "conftest.nl"
4406
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408
as_fn_arith $ac_count + 1 && ac_count=$as_val
4409
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4410
# Best one so far, save it but keep looking for a better one
4411
ac_cv_path_GREP="$ac_path_GREP"
4412
ac_path_GREP_max=$ac_count
4414
# 10*(2^10) chars as input seems more than enough
4415
test $ac_count -gt 10 && break
4417
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4420
$ac_path_GREP_found && break 3
4425
if test -z "$ac_cv_path_GREP"; then
4426
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4429
ac_cv_path_GREP=$GREP
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4434
$as_echo "$ac_cv_path_GREP" >&6; }
4435
GREP="$ac_cv_path_GREP"
4438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4439
$as_echo_n "checking for egrep... " >&6; }
4440
if ${ac_cv_path_EGREP+:} false; then :
4441
$as_echo_n "(cached) " >&6
4443
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4444
then ac_cv_path_EGREP="$GREP -E"
4446
if test -z "$EGREP"; then
4447
ac_path_EGREP_found=false
4448
# Loop through the user's path and test for each of PROGNAME-LIST
4449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453
test -z "$as_dir" && as_dir=.
4454
for ac_prog in egrep; do
4455
for ac_exec_ext in '' $ac_executable_extensions; do
4456
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4457
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4458
# Check for GNU ac_path_EGREP and select it if it is found.
4459
# Check for GNU $ac_path_EGREP
4460
case `"$ac_path_EGREP" --version 2>&1` in
4462
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4465
$as_echo_n 0123456789 >"conftest.in"
4468
cat "conftest.in" "conftest.in" >"conftest.tmp"
4469
mv "conftest.tmp" "conftest.in"
4470
cp "conftest.in" "conftest.nl"
4471
$as_echo 'EGREP' >> "conftest.nl"
4472
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474
as_fn_arith $ac_count + 1 && ac_count=$as_val
4475
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4476
# Best one so far, save it but keep looking for a better one
4477
ac_cv_path_EGREP="$ac_path_EGREP"
4478
ac_path_EGREP_max=$ac_count
4480
# 10*(2^10) chars as input seems more than enough
4481
test $ac_count -gt 10 && break
4483
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4486
$ac_path_EGREP_found && break 3
4491
if test -z "$ac_cv_path_EGREP"; then
4492
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4495
ac_cv_path_EGREP=$EGREP
4500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4501
$as_echo "$ac_cv_path_EGREP" >&6; }
4502
EGREP="$ac_cv_path_EGREP"
4505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4506
$as_echo_n "checking for fgrep... " >&6; }
4507
if ${ac_cv_path_FGREP+:} false; then :
4508
$as_echo_n "(cached) " >&6
4510
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4511
then ac_cv_path_FGREP="$GREP -F"
4513
if test -z "$FGREP"; then
4514
ac_path_FGREP_found=false
4515
# Loop through the user's path and test for each of PROGNAME-LIST
4516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520
test -z "$as_dir" && as_dir=.
4521
for ac_prog in fgrep; do
4522
for ac_exec_ext in '' $ac_executable_extensions; do
4523
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4524
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4525
# Check for GNU ac_path_FGREP and select it if it is found.
4526
# Check for GNU $ac_path_FGREP
4527
case `"$ac_path_FGREP" --version 2>&1` in
4529
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4532
$as_echo_n 0123456789 >"conftest.in"
4535
cat "conftest.in" "conftest.in" >"conftest.tmp"
4536
mv "conftest.tmp" "conftest.in"
4537
cp "conftest.in" "conftest.nl"
4538
$as_echo 'FGREP' >> "conftest.nl"
4539
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541
as_fn_arith $ac_count + 1 && ac_count=$as_val
4542
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4543
# Best one so far, save it but keep looking for a better one
4544
ac_cv_path_FGREP="$ac_path_FGREP"
4545
ac_path_FGREP_max=$ac_count
4547
# 10*(2^10) chars as input seems more than enough
4548
test $ac_count -gt 10 && break
4550
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553
$ac_path_FGREP_found && break 3
4558
if test -z "$ac_cv_path_FGREP"; then
4559
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562
ac_cv_path_FGREP=$FGREP
4567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4568
$as_echo "$ac_cv_path_FGREP" >&6; }
4569
FGREP="$ac_cv_path_FGREP"
4572
test -z "$GREP" && GREP=grep
4592
# Check whether --with-gnu-ld was given.
4593
if test "${with_gnu_ld+set}" = set; then :
4594
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4600
if test "$GCC" = yes; then
4601
# Check if gcc -print-prog-name=ld gives a path.
4602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4603
$as_echo_n "checking for ld used by $CC... " >&6; }
4606
# gcc leaves a trailing carriage return which upsets mingw
4607
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4609
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4612
# Accept absolute paths.
4614
re_direlt='/[^/][^/]*/\.\./'
4615
# Canonicalize the pathname of ld
4616
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4617
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4618
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4620
test -z "$LD" && LD="$ac_prog"
4623
# If it fails, then pretend we aren't using GCC.
4627
# If it is relative, then search for the first ld in PATH.
4631
elif test "$with_gnu_ld" = yes; then
4632
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4633
$as_echo_n "checking for GNU ld... " >&6; }
4635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4636
$as_echo_n "checking for non-GNU ld... " >&6; }
4638
if ${lt_cv_path_LD+:} false; then :
4639
$as_echo_n "(cached) " >&6
4641
if test -z "$LD"; then
4642
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4643
for ac_dir in $PATH; do
4645
test -z "$ac_dir" && ac_dir=.
4646
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4647
lt_cv_path_LD="$ac_dir/$ac_prog"
4648
# Check to see if the program is GNU ld. I'd rather use --version,
4649
# but apparently some variants of GNU ld only accept -v.
4650
# Break only if it was the GNU/non-GNU ld that we prefer.
4651
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4652
*GNU* | *'with BFD'*)
4653
test "$with_gnu_ld" != no && break
4656
test "$with_gnu_ld" != yes && break
4663
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4668
if test -n "$LD"; then
4669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4670
$as_echo "$LD" >&6; }
4672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673
$as_echo "no" >&6; }
4675
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4677
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4678
if ${lt_cv_prog_gnu_ld+:} false; then :
4679
$as_echo_n "(cached) " >&6
4681
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4682
case `$LD -v 2>&1 </dev/null` in
4683
*GNU* | *'with BFD'*)
4684
lt_cv_prog_gnu_ld=yes
4687
lt_cv_prog_gnu_ld=no
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4692
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4693
with_gnu_ld=$lt_cv_prog_gnu_ld
4703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4704
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4705
if ${lt_cv_path_NM+:} false; then :
4706
$as_echo_n "(cached) " >&6
4708
if test -n "$NM"; then
4709
# Let the user override the test.
4712
lt_nm_to_check="${ac_tool_prefix}nm"
4713
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4714
lt_nm_to_check="$lt_nm_to_check nm"
4716
for lt_tmp_nm in $lt_nm_to_check; do
4717
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4718
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4720
test -z "$ac_dir" && ac_dir=.
4721
tmp_nm="$ac_dir/$lt_tmp_nm"
4722
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4723
# Check to see if the nm accepts a BSD-compat flag.
4724
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4725
# nm: unknown option "B" ignored
4726
# Tru64's nm complains that /dev/null is an invalid object file
4727
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4728
*/dev/null* | *'Invalid file or object type'*)
4729
lt_cv_path_NM="$tmp_nm -B"
4733
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4735
lt_cv_path_NM="$tmp_nm -p"
4739
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4740
continue # so that we can try to find one that supports BSD flags
4749
: ${lt_cv_path_NM=no}
4752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4753
$as_echo "$lt_cv_path_NM" >&6; }
4754
if test "$lt_cv_path_NM" != "no"; then
4757
# Didn't find any BSD compatible name lister, look for dumpbin.
4758
if test -n "$DUMPBIN"; then :
4759
# Let the user override the test.
4761
if test -n "$ac_tool_prefix"; then
4762
for ac_prog in dumpbin "link -dump"
4764
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4765
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767
$as_echo_n "checking for $ac_word... " >&6; }
4768
if ${ac_cv_prog_DUMPBIN+:} false; then :
4769
$as_echo_n "(cached) " >&6
4771
if test -n "$DUMPBIN"; then
4772
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4774
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778
test -z "$as_dir" && as_dir=.
4779
for ac_exec_ext in '' $ac_executable_extensions; do
4780
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4782
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791
DUMPBIN=$ac_cv_prog_DUMPBIN
4792
if test -n "$DUMPBIN"; then
4793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4794
$as_echo "$DUMPBIN" >&6; }
4796
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797
$as_echo "no" >&6; }
4801
test -n "$DUMPBIN" && break
4804
if test -z "$DUMPBIN"; then
4805
ac_ct_DUMPBIN=$DUMPBIN
4806
for ac_prog in dumpbin "link -dump"
4808
# Extract the first word of "$ac_prog", so it can be a program name with args.
4809
set dummy $ac_prog; ac_word=$2
4810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811
$as_echo_n "checking for $ac_word... " >&6; }
4812
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4813
$as_echo_n "(cached) " >&6
4815
if test -n "$ac_ct_DUMPBIN"; then
4816
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822
test -z "$as_dir" && as_dir=.
4823
for ac_exec_ext in '' $ac_executable_extensions; do
4824
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4826
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4836
if test -n "$ac_ct_DUMPBIN"; then
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4838
$as_echo "$ac_ct_DUMPBIN" >&6; }
4840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841
$as_echo "no" >&6; }
4845
test -n "$ac_ct_DUMPBIN" && break
4848
if test "x$ac_ct_DUMPBIN" = x; then
4851
case $cross_compiling:$ac_tool_warned in
4853
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855
ac_tool_warned=yes ;;
4857
DUMPBIN=$ac_ct_DUMPBIN
4861
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4863
DUMPBIN="$DUMPBIN -symbols"
4871
if test "$DUMPBIN" != ":"; then
4875
test -z "$NM" && NM=nm
4882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4883
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4884
if ${lt_cv_nm_interface+:} false; then :
4885
$as_echo_n "(cached) " >&6
4887
lt_cv_nm_interface="BSD nm"
4888
echo "int some_variable = 0;" > conftest.$ac_ext
4889
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4890
(eval "$ac_compile" 2>conftest.err)
4891
cat conftest.err >&5
4892
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4893
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4894
cat conftest.err >&5
4895
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4896
cat conftest.out >&5
4897
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4898
lt_cv_nm_interface="MS dumpbin"
4902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4903
$as_echo "$lt_cv_nm_interface" >&6; }
4905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4906
$as_echo_n "checking whether ln -s works... " >&6; }
4908
if test "$LN_S" = "ln -s"; then
4909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4910
$as_echo "yes" >&6; }
4912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4913
$as_echo "no, using $LN_S" >&6; }
4916
# find the maximum length of command line arguments
4917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4918
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4919
if ${lt_cv_sys_max_cmd_len+:} false; then :
4920
$as_echo_n "(cached) " >&6
4927
# On DJGPP, this test can blow up pretty badly due to problems in libc
4928
# (any single argument exceeding 2000 bytes causes a buffer overrun
4929
# during glob expansion). Even if it were fixed, the result of this
4930
# check would be larger than it should be.
4931
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4935
# Under GNU Hurd, this test is not required because there is
4936
# no limit to the length of command line arguments.
4937
# Libtool will interpret -1 as no limit whatsoever
4938
lt_cv_sys_max_cmd_len=-1;
4941
cygwin* | mingw* | cegcc*)
4942
# On Win9x/ME, this test blows up -- it succeeds, but takes
4943
# about 5 minutes as the teststring grows exponentially.
4944
# Worse, since 9x/ME are not pre-emptively multitasking,
4945
# you end up with a "frozen" computer, even though with patience
4946
# the test eventually succeeds (with a max line length of 256k).
4947
# Instead, let's just punt: use the minimum linelength reported by
4948
# all of the supported platforms: 8192 (on NT/2K/XP).
4949
lt_cv_sys_max_cmd_len=8192;
4953
# On MiNT this can take a long time and run out of memory.
4954
lt_cv_sys_max_cmd_len=8192;
4958
# On AmigaOS with pdksh, this test takes hours, literally.
4959
# So we just punt and use a minimum line length of 8192.
4960
lt_cv_sys_max_cmd_len=8192;
4963
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4964
# This has been around since 386BSD, at least. Likely further.
4965
if test -x /sbin/sysctl; then
4966
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4967
elif test -x /usr/sbin/sysctl; then
4968
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4970
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4972
# And add a safety zone
4973
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4974
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4978
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4979
lt_cv_sys_max_cmd_len=196608
4983
# The test takes a long time on OS/2.
4984
lt_cv_sys_max_cmd_len=8192
4988
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4989
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4990
# nice to cause kernel panics so lets avoid the loop below.
4991
# First set a reasonable default.
4992
lt_cv_sys_max_cmd_len=16384
4994
if test -x /sbin/sysconfig; then
4995
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4996
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5001
lt_cv_sys_max_cmd_len=102400
5003
sysv5* | sco5v6* | sysv4.2uw2*)
5004
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5005
if test -n "$kargmax"; then
5006
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5008
lt_cv_sys_max_cmd_len=32768
5012
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5013
if test -n "$lt_cv_sys_max_cmd_len"; then
5014
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5015
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5017
# Make teststring a little bigger before we do anything with it.
5018
# a 1K string should be a reasonable start.
5019
for i in 1 2 3 4 5 6 7 8 ; do
5020
teststring=$teststring$teststring
5022
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5023
# If test is not a shell built-in, we'll probably end up computing a
5024
# maximum length that is only half of the actual maximum length, but
5026
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5027
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
5028
test $i != 17 # 1/2 MB should be enough
5031
teststring=$teststring$teststring
5033
# Only check the string length outside the loop.
5034
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5036
# Add a significant safety factor because C++ compilers can tack on
5037
# massive amounts of additional arguments before passing them to the
5038
# linker. It appears as though 1/2 is a usable value.
5039
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5046
if test -n $lt_cv_sys_max_cmd_len ; then
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5048
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5051
$as_echo "none" >&6; }
5053
max_cmd_len=$lt_cv_sys_max_cmd_len
5064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5065
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5066
# Try some XSI features
5069
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5071
&& eval 'test $(( 1 + 1 )) -eq 2 \
5072
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5075
$as_echo "$xsi_shell" >&6; }
5078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5079
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5081
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5083
&& lt_shell_append=yes
5084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5085
$as_echo "$lt_shell_append" >&6; }
5088
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5098
# test EBCDIC or ASCII
5099
case `echo X|tr X '\101'` in
5100
A) # ASCII based system
5101
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5102
lt_SP2NL='tr \040 \012'
5103
lt_NL2SP='tr \015\012 \040\040'
5105
*) # EBCDIC based system
5106
lt_SP2NL='tr \100 \n'
5107
lt_NL2SP='tr \r\n \100\100'
5119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5120
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5121
if ${lt_cv_to_host_file_cmd+:} false; then :
5122
$as_echo_n "(cached) " >&6
5127
*-*-mingw* ) # actually msys
5128
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5131
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5133
* ) # otherwise, assume *nix
5134
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5140
*-*-mingw* ) # actually msys
5141
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5144
lt_cv_to_host_file_cmd=func_convert_file_noop
5146
* ) # otherwise, assume *nix
5147
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5151
* ) # unhandled hosts (and "normal" native builds)
5152
lt_cv_to_host_file_cmd=func_convert_file_noop
5158
to_host_file_cmd=$lt_cv_to_host_file_cmd
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5160
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5167
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5168
if ${lt_cv_to_tool_file_cmd+:} false; then :
5169
$as_echo_n "(cached) " >&6
5171
#assume ordinary cross tools, or native build.
5172
lt_cv_to_tool_file_cmd=func_convert_file_noop
5176
*-*-mingw* ) # actually msys
5177
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5185
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5187
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5194
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5195
if ${lt_cv_ld_reload_flag+:} false; then :
5196
$as_echo_n "(cached) " >&6
5198
lt_cv_ld_reload_flag='-r'
5200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5201
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5202
reload_flag=$lt_cv_ld_reload_flag
5203
case $reload_flag in
5205
*) reload_flag=" $reload_flag" ;;
5207
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5209
cygwin* | mingw* | pw32* | cegcc*)
5210
if test "$GCC" != yes; then
5215
if test "$GCC" = yes; then
5216
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5218
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5231
if test -n "$ac_tool_prefix"; then
5232
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5233
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235
$as_echo_n "checking for $ac_word... " >&6; }
5236
if ${ac_cv_prog_OBJDUMP+:} false; then :
5237
$as_echo_n "(cached) " >&6
5239
if test -n "$OBJDUMP"; then
5240
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246
test -z "$as_dir" && as_dir=.
5247
for ac_exec_ext in '' $ac_executable_extensions; do
5248
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5250
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259
OBJDUMP=$ac_cv_prog_OBJDUMP
5260
if test -n "$OBJDUMP"; then
5261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5262
$as_echo "$OBJDUMP" >&6; }
5264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265
$as_echo "no" >&6; }
5270
if test -z "$ac_cv_prog_OBJDUMP"; then
5271
ac_ct_OBJDUMP=$OBJDUMP
5272
# Extract the first word of "objdump", so it can be a program name with args.
5273
set dummy objdump; ac_word=$2
5274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275
$as_echo_n "checking for $ac_word... " >&6; }
5276
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5277
$as_echo_n "(cached) " >&6
5279
if test -n "$ac_ct_OBJDUMP"; then
5280
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286
test -z "$as_dir" && as_dir=.
5287
for ac_exec_ext in '' $ac_executable_extensions; do
5288
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5290
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5300
if test -n "$ac_ct_OBJDUMP"; then
5301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5302
$as_echo "$ac_ct_OBJDUMP" >&6; }
5304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305
$as_echo "no" >&6; }
5308
if test "x$ac_ct_OBJDUMP" = x; then
5311
case $cross_compiling:$ac_tool_warned in
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5314
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315
ac_tool_warned=yes ;;
5317
OBJDUMP=$ac_ct_OBJDUMP
5320
OBJDUMP="$ac_cv_prog_OBJDUMP"
5323
test -z "$OBJDUMP" && OBJDUMP=objdump
5333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5334
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5335
if ${lt_cv_deplibs_check_method+:} false; then :
5336
$as_echo_n "(cached) " >&6
5338
lt_cv_file_magic_cmd='$MAGIC_CMD'
5339
lt_cv_file_magic_test_file=
5340
lt_cv_deplibs_check_method='unknown'
5341
# Need to set the preceding variable on all platforms that support
5342
# interlibrary dependencies.
5343
# 'none' -- dependencies not supported.
5344
# `unknown' -- same as none, but documents that we really don't know.
5345
# 'pass_all' -- all dependencies passed with no checks.
5346
# 'test_compile' -- check by making test program.
5347
# 'file_magic [[regex]]' -- check by looking for files in library path
5348
# which responds to the $file_magic_cmd with a given extended regex.
5349
# If you have `file' or equivalent on your system and you're not sure
5350
# whether `pass_all' will *always* work, you probably want this one.
5354
lt_cv_deplibs_check_method=pass_all
5358
lt_cv_deplibs_check_method=pass_all
5362
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5363
lt_cv_file_magic_cmd='/usr/bin/file -L'
5364
lt_cv_file_magic_test_file=/shlib/libc.so
5368
# func_win32_libid is a shell function defined in ltmain.sh
5369
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5370
lt_cv_file_magic_cmd='func_win32_libid'
5374
# Base MSYS/MinGW do not provide the 'file' command needed by
5375
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5376
# unless we find 'file', for example because we are cross-compiling.
5377
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5378
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5379
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5380
lt_cv_file_magic_cmd='func_win32_libid'
5382
# Keep this pattern in sync with the one in func_win32_libid.
5383
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5384
lt_cv_file_magic_cmd='$OBJDUMP -f'
5389
# use the weaker test based on 'objdump'. See mingw*.
5390
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5391
lt_cv_file_magic_cmd='$OBJDUMP -f'
5394
darwin* | rhapsody*)
5395
lt_cv_deplibs_check_method=pass_all
5398
freebsd* | dragonfly*)
5399
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5402
# Not sure whether the presence of OpenBSD here was a mistake.
5403
# Let's accept both of them until this is cleared up.
5404
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5405
lt_cv_file_magic_cmd=/usr/bin/file
5406
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5410
lt_cv_deplibs_check_method=pass_all
5415
lt_cv_deplibs_check_method=pass_all
5419
lt_cv_deplibs_check_method=pass_all
5422
hpux10.20* | hpux11*)
5423
lt_cv_file_magic_cmd=/usr/bin/file
5426
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5427
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5430
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5431
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5434
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5435
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5441
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5442
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5445
irix5* | irix6* | nonstopux*)
5447
*-32|*"-32 ") libmagic=32-bit;;
5448
*-n32|*"-n32 ") libmagic=N32;;
5449
*-64|*"-64 ") libmagic=64-bit;;
5450
*) libmagic=never-match;;
5452
lt_cv_deplibs_check_method=pass_all
5455
# This must be glibc/ELF.
5456
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5457
lt_cv_deplibs_check_method=pass_all
5460
netbsd* | netbsdelf*-gnu)
5461
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5462
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5464
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5469
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5470
lt_cv_file_magic_cmd=/usr/bin/file
5471
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5475
lt_cv_deplibs_check_method=pass_all
5479
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5480
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5482
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5486
osf3* | osf4* | osf5*)
5487
lt_cv_deplibs_check_method=pass_all
5491
lt_cv_deplibs_check_method=pass_all
5495
lt_cv_deplibs_check_method=pass_all
5498
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5499
lt_cv_deplibs_check_method=pass_all
5503
case $host_vendor in
5505
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]'
5506
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5509
lt_cv_deplibs_check_method=pass_all
5512
lt_cv_file_magic_cmd='/bin/file'
5513
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5516
lt_cv_file_magic_cmd='/bin/file'
5517
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5518
lt_cv_file_magic_test_file=/lib/libc.so
5521
lt_cv_deplibs_check_method=pass_all
5524
lt_cv_deplibs_check_method=pass_all
5530
lt_cv_deplibs_check_method=pass_all
5535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5536
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5540
if test "$build" = "$host"; then
5543
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5546
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5552
file_magic_cmd=$lt_cv_file_magic_cmd
5553
deplibs_check_method=$lt_cv_deplibs_check_method
5554
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5577
if test -n "$ac_tool_prefix"; then
5578
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5579
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581
$as_echo_n "checking for $ac_word... " >&6; }
5582
if ${ac_cv_prog_DLLTOOL+:} false; then :
5583
$as_echo_n "(cached) " >&6
5585
if test -n "$DLLTOOL"; then
5586
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592
test -z "$as_dir" && as_dir=.
5593
for ac_exec_ext in '' $ac_executable_extensions; do
5594
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5596
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605
DLLTOOL=$ac_cv_prog_DLLTOOL
5606
if test -n "$DLLTOOL"; then
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5608
$as_echo "$DLLTOOL" >&6; }
5610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611
$as_echo "no" >&6; }
5616
if test -z "$ac_cv_prog_DLLTOOL"; then
5617
ac_ct_DLLTOOL=$DLLTOOL
5618
# Extract the first word of "dlltool", so it can be a program name with args.
5619
set dummy dlltool; ac_word=$2
5620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621
$as_echo_n "checking for $ac_word... " >&6; }
5622
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5623
$as_echo_n "(cached) " >&6
5625
if test -n "$ac_ct_DLLTOOL"; then
5626
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632
test -z "$as_dir" && as_dir=.
5633
for ac_exec_ext in '' $ac_executable_extensions; do
5634
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5636
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5646
if test -n "$ac_ct_DLLTOOL"; then
5647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5648
$as_echo "$ac_ct_DLLTOOL" >&6; }
5650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651
$as_echo "no" >&6; }
5654
if test "x$ac_ct_DLLTOOL" = x; then
5657
case $cross_compiling:$ac_tool_warned in
5659
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661
ac_tool_warned=yes ;;
5663
DLLTOOL=$ac_ct_DLLTOOL
5666
DLLTOOL="$ac_cv_prog_DLLTOOL"
5669
test -z "$DLLTOOL" && DLLTOOL=dlltool
5680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5681
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5682
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5683
$as_echo_n "(cached) " >&6
5685
lt_cv_sharedlib_from_linklib_cmd='unknown'
5688
cygwin* | mingw* | pw32* | cegcc*)
5689
# two different shell functions defined in ltmain.sh
5690
# decide which to use based on capabilities of $DLLTOOL
5691
case `$DLLTOOL --help 2>&1` in
5692
*--identify-strict*)
5693
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5696
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5701
# fallback: assume linklib IS sharedlib
5702
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5708
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5709
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5710
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5719
if test -n "$ac_tool_prefix"; then
5722
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5723
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725
$as_echo_n "checking for $ac_word... " >&6; }
5726
if ${ac_cv_prog_AR+:} false; then :
5727
$as_echo_n "(cached) " >&6
5729
if test -n "$AR"; then
5730
ac_cv_prog_AR="$AR" # Let the user override the test.
5732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736
test -z "$as_dir" && as_dir=.
5737
for ac_exec_ext in '' $ac_executable_extensions; do
5738
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5740
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750
if test -n "$AR"; then
5751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5752
$as_echo "$AR" >&6; }
5754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755
$as_echo "no" >&6; }
5759
test -n "$AR" && break
5762
if test -z "$AR"; then
5766
# Extract the first word of "$ac_prog", so it can be a program name with args.
5767
set dummy $ac_prog; ac_word=$2
5768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769
$as_echo_n "checking for $ac_word... " >&6; }
5770
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5771
$as_echo_n "(cached) " >&6
5773
if test -n "$ac_ct_AR"; then
5774
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780
test -z "$as_dir" && as_dir=.
5781
for ac_exec_ext in '' $ac_executable_extensions; do
5782
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783
ac_cv_prog_ac_ct_AR="$ac_prog"
5784
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5794
if test -n "$ac_ct_AR"; then
5795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5796
$as_echo "$ac_ct_AR" >&6; }
5798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799
$as_echo "no" >&6; }
5803
test -n "$ac_ct_AR" && break
5806
if test "x$ac_ct_AR" = x; then
5809
case $cross_compiling:$ac_tool_warned in
5811
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813
ac_tool_warned=yes ;;
5832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5833
$as_echo_n "checking for archiver @FILE support... " >&6; }
5834
if ${lt_cv_ar_at_file+:} false; then :
5835
$as_echo_n "(cached) " >&6
5838
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839
/* end confdefs.h. */
5849
if ac_fn_cxx_try_compile "$LINENO"; then :
5850
echo conftest.$ac_objext > conftest.lst
5851
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5852
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5853
(eval $lt_ar_try) 2>&5
5855
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856
test $ac_status = 0; }
5857
if test "$ac_status" -eq 0; then
5858
# Ensure the archiver fails upon bogus file names.
5859
rm -f conftest.$ac_objext libconftest.a
5860
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5861
(eval $lt_ar_try) 2>&5
5863
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5864
test $ac_status = 0; }
5865
if test "$ac_status" -ne 0; then
5869
rm -f conftest.* libconftest.a
5872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5876
$as_echo "$lt_cv_ar_at_file" >&6; }
5878
if test "x$lt_cv_ar_at_file" = xno; then
5881
archiver_list_spec=$lt_cv_ar_at_file
5890
if test -n "$ac_tool_prefix"; then
5891
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5892
set dummy ${ac_tool_prefix}strip; ac_word=$2
5893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894
$as_echo_n "checking for $ac_word... " >&6; }
5895
if ${ac_cv_prog_STRIP+:} false; then :
5896
$as_echo_n "(cached) " >&6
5898
if test -n "$STRIP"; then
5899
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905
test -z "$as_dir" && as_dir=.
5906
for ac_exec_ext in '' $ac_executable_extensions; do
5907
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5909
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918
STRIP=$ac_cv_prog_STRIP
5919
if test -n "$STRIP"; then
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5921
$as_echo "$STRIP" >&6; }
5923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924
$as_echo "no" >&6; }
5929
if test -z "$ac_cv_prog_STRIP"; then
5931
# Extract the first word of "strip", so it can be a program name with args.
5932
set dummy strip; ac_word=$2
5933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934
$as_echo_n "checking for $ac_word... " >&6; }
5935
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5936
$as_echo_n "(cached) " >&6
5938
if test -n "$ac_ct_STRIP"; then
5939
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945
test -z "$as_dir" && as_dir=.
5946
for ac_exec_ext in '' $ac_executable_extensions; do
5947
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5948
ac_cv_prog_ac_ct_STRIP="strip"
5949
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5959
if test -n "$ac_ct_STRIP"; then
5960
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5961
$as_echo "$ac_ct_STRIP" >&6; }
5963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964
$as_echo "no" >&6; }
5967
if test "x$ac_ct_STRIP" = x; then
5970
case $cross_compiling:$ac_tool_warned in
5972
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974
ac_tool_warned=yes ;;
5979
STRIP="$ac_cv_prog_STRIP"
5982
test -z "$STRIP" && STRIP=:
5989
if test -n "$ac_tool_prefix"; then
5990
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5991
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5993
$as_echo_n "checking for $ac_word... " >&6; }
5994
if ${ac_cv_prog_RANLIB+:} false; then :
5995
$as_echo_n "(cached) " >&6
5997
if test -n "$RANLIB"; then
5998
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004
test -z "$as_dir" && as_dir=.
6005
for ac_exec_ext in '' $ac_executable_extensions; do
6006
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6008
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017
RANLIB=$ac_cv_prog_RANLIB
6018
if test -n "$RANLIB"; then
6019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6020
$as_echo "$RANLIB" >&6; }
6022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023
$as_echo "no" >&6; }
6028
if test -z "$ac_cv_prog_RANLIB"; then
6029
ac_ct_RANLIB=$RANLIB
6030
# Extract the first word of "ranlib", so it can be a program name with args.
6031
set dummy ranlib; ac_word=$2
6032
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033
$as_echo_n "checking for $ac_word... " >&6; }
6034
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6035
$as_echo_n "(cached) " >&6
6037
if test -n "$ac_ct_RANLIB"; then
6038
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044
test -z "$as_dir" && as_dir=.
6045
for ac_exec_ext in '' $ac_executable_extensions; do
6046
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047
ac_cv_prog_ac_ct_RANLIB="ranlib"
6048
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6058
if test -n "$ac_ct_RANLIB"; then
6059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6060
$as_echo "$ac_ct_RANLIB" >&6; }
6062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063
$as_echo "no" >&6; }
6066
if test "x$ac_ct_RANLIB" = x; then
6069
case $cross_compiling:$ac_tool_warned in
6071
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6072
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6073
ac_tool_warned=yes ;;
6075
RANLIB=$ac_ct_RANLIB
6078
RANLIB="$ac_cv_prog_RANLIB"
6081
test -z "$RANLIB" && RANLIB=:
6088
# Determine commands to create old-style static archives.
6089
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6090
old_postinstall_cmds='chmod 644 $oldlib'
6091
old_postuninstall_cmds=
6093
if test -n "$RANLIB"; then
6096
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6099
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6102
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6107
lock_old_archive_extraction=yes ;;
6109
lock_old_archive_extraction=no ;;
6150
# If no C compiler was specified, use CC.
6153
# If no C compiler flags were specified, use CFLAGS.
6154
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6156
# Allow CC to be a program name with arguments.
6160
# Check for command to grab the raw symbol name followed by C symbol from nm.
6161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6162
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6163
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6164
$as_echo_n "(cached) " >&6
6167
# These are sane defaults that work on at least a few old systems.
6168
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6170
# Character class describing NM global symbol codes.
6171
symcode='[BCDEGRST]'
6173
# Regexp to match symbols that can be accessed directly from C.
6174
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6176
# Define system-specific variables.
6181
cygwin* | mingw* | pw32* | cegcc*)
6182
symcode='[ABCDGISTW]'
6185
if test "$host_cpu" = ia64; then
6186
symcode='[ABCDEGRST]'
6190
symcode='[BCDEGRST]'
6193
symcode='[BCDEGQRST]'
6204
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6212
# If we're using GNU nm, then use its standard symbol codes.
6213
case `$NM -V 2>&1` in
6214
*GNU* | *'with BFD'*)
6215
symcode='[ABCDGIRSTW]' ;;
6218
# Transform an extracted symbol line into a proper C declaration.
6219
# Some systems (esp. on ia64) link data and code symbols differently,
6220
# so use this general approach.
6221
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6223
# Transform an extracted symbol line into symbol name and symbol address
6224
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6225
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6227
# Handle CRLF in mingw tool chain
6231
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6235
# Try without a prefix underscore, then with it.
6236
for ac_symprfx in "" "_"; do
6238
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6239
symxfrm="\\1 $ac_symprfx\\2 \\2"
6241
# Write the raw and C identifiers.
6242
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6243
# Fake it for dumpbin and say T for any non-static function
6244
# and D for any global variable.
6245
# Also find C++ and __fastcall symbols from MSVC++,
6246
# which start with @ or ?.
6247
lt_cv_sys_global_symbol_pipe="$AWK '"\
6248
" {last_section=section; section=\$ 3};"\
6249
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6250
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6251
" \$ 0!~/External *\|/{next};"\
6252
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6253
" {if(hide[section]) next};"\
6254
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6255
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6256
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6257
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6258
" ' prfx=^$ac_symprfx"
6260
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6262
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6264
# Check to see that the pipe works correctly.
6268
cat > conftest.$ac_ext <<_LT_EOF
6273
void nm_test_func(void);
6274
void nm_test_func(void){}
6278
int main(){nm_test_var='a';nm_test_func();return(0);}
6281
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6282
(eval $ac_compile) 2>&5
6284
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285
test $ac_status = 0; }; then
6286
# Now try to grab the symbols.
6288
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6289
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6291
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292
test $ac_status = 0; } && test -s "$nlist"; then
6293
# Try sorting and uniquifying the output.
6294
if sort "$nlist" | uniq > "$nlist"T; then
6295
mv -f "$nlist"T "$nlist"
6300
# Make sure that we snagged all the symbols we need.
6301
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6302
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6303
cat <<_LT_EOF > conftest.$ac_ext
6304
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6305
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6306
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6307
relocations are performed -- see ld's documentation on pseudo-relocs. */
6308
# define LT_DLSYM_CONST
6309
#elif defined(__osf__)
6310
/* This system does not cope well with relocations in const data. */
6311
# define LT_DLSYM_CONST
6313
# define LT_DLSYM_CONST const
6321
# Now generate the symbol file.
6322
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6324
cat <<_LT_EOF >> conftest.$ac_ext
6326
/* The mapping between symbol names and symbols. */
6327
LT_DLSYM_CONST struct {
6331
lt__PROGRAM__LTX_preloaded_symbols[] =
6333
{ "@PROGRAM@", (void *) 0 },
6335
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6336
cat <<\_LT_EOF >> conftest.$ac_ext
6340
/* This works around a problem in FreeBSD linker */
6341
#ifdef FREEBSD_WORKAROUND
6342
static const void *lt_preloaded_setup() {
6343
return lt__PROGRAM__LTX_preloaded_symbols;
6351
# Now try linking the two files.
6352
mv conftest.$ac_objext conftstm.$ac_objext
6353
lt_globsym_save_LIBS=$LIBS
6354
lt_globsym_save_CFLAGS=$CFLAGS
6355
LIBS="conftstm.$ac_objext"
6356
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6357
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6358
(eval $ac_link) 2>&5
6360
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6364
LIBS=$lt_globsym_save_LIBS
6365
CFLAGS=$lt_globsym_save_CFLAGS
6367
echo "cannot find nm_test_func in $nlist" >&5
6370
echo "cannot find nm_test_var in $nlist" >&5
6373
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6376
echo "$progname: failed program was:" >&5
6377
cat conftest.$ac_ext >&5
6379
rm -rf conftest* conftst*
6381
# Do not use the global_symbol_pipe unless it works.
6382
if test "$pipe_works" = yes; then
6385
lt_cv_sys_global_symbol_pipe=
6391
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6392
lt_cv_sys_global_symbol_to_cdecl=
6394
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6396
$as_echo "failed" >&6; }
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6399
$as_echo "ok" >&6; }
6402
# Response file support.
6403
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6404
nm_file_list_spec='@'
6405
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6406
nm_file_list_spec='@'
6435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6436
$as_echo_n "checking for sysroot... " >&6; }
6438
# Check whether --with-sysroot was given.
6439
if test "${with_sysroot+set}" = set; then :
6440
withval=$with_sysroot;
6447
case ${with_sysroot} in #(
6449
if test "$GCC" = yes; then
6450
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6454
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6459
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6460
$as_echo "${with_sysroot}" >&6; }
6461
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6466
$as_echo "${lt_sysroot:-no}" >&6; }
6473
# Check whether --enable-libtool-lock was given.
6474
if test "${enable_libtool_lock+set}" = set; then :
6475
enableval=$enable_libtool_lock;
6478
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6480
# Some flags need to be propagated to the compiler or linker for good
6484
# Find out which ABI we are using.
6485
echo 'int i;' > conftest.$ac_ext
6486
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6487
(eval $ac_compile) 2>&5
6489
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6490
test $ac_status = 0; }; then
6491
case `/usr/bin/file conftest.$ac_objext` in
6503
# Find out which ABI we are using.
6504
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6505
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506
(eval $ac_compile) 2>&5
6508
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509
test $ac_status = 0; }; then
6510
if test "$lt_cv_prog_gnu_ld" = yes; then
6511
case `/usr/bin/file conftest.$ac_objext` in
6513
LD="${LD-ld} -melf32bsmip"
6516
LD="${LD-ld} -melf32bmipn32"
6519
LD="${LD-ld} -melf64bmip"
6523
case `/usr/bin/file conftest.$ac_objext` in
6539
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6540
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6541
# Find out which ABI we are using.
6542
echo 'int i;' > conftest.$ac_ext
6543
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544
(eval $ac_compile) 2>&5
6546
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547
test $ac_status = 0; }; then
6548
case `/usr/bin/file conftest.o` in
6551
x86_64-*kfreebsd*-gnu)
6552
LD="${LD-ld} -m elf_i386_fbsd"
6555
LD="${LD-ld} -m elf_i386"
6557
ppc64-*linux*|powerpc64-*linux*)
6558
LD="${LD-ld} -m elf32ppclinux"
6561
LD="${LD-ld} -m elf_s390"
6564
LD="${LD-ld} -m elf32_sparc"
6570
x86_64-*kfreebsd*-gnu)
6571
LD="${LD-ld} -m elf_x86_64_fbsd"
6574
LD="${LD-ld} -m elf_x86_64"
6576
ppc*-*linux*|powerpc*-*linux*)
6577
LD="${LD-ld} -m elf64ppc"
6579
s390*-*linux*|s390*-*tpf*)
6580
LD="${LD-ld} -m elf64_s390"
6583
LD="${LD-ld} -m elf64_sparc"
6593
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6594
SAVE_CFLAGS="$CFLAGS"
6595
CFLAGS="$CFLAGS -belf"
6596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6597
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6598
if ${lt_cv_cc_needs_belf+:} false; then :
6599
$as_echo_n "(cached) " >&6
6602
ac_cpp='$CPP $CPPFLAGS'
6603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608
/* end confdefs.h. */
6618
if ac_fn_c_try_link "$LINENO"; then :
6619
lt_cv_cc_needs_belf=yes
6621
lt_cv_cc_needs_belf=no
6623
rm -f core conftest.err conftest.$ac_objext \
6624
conftest$ac_exeext conftest.$ac_ext
6626
ac_cpp='$CPP $CPPFLAGS'
6627
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6633
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6634
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6635
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6636
CFLAGS="$SAVE_CFLAGS"
6640
# Find out which ABI we are using.
6641
echo 'int i;' > conftest.$ac_ext
6642
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6643
(eval $ac_compile) 2>&5
6645
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646
test $ac_status = 0; }; then
6647
case `/usr/bin/file conftest.o` in
6649
case $lt_cv_prog_gnu_ld in
6653
LD="${LD-ld} -m elf_x86_64"
6656
LD="${LD-ld} -m elf64_sparc"
6659
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6660
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6665
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6677
need_locks="$enable_libtool_lock"
6679
if test -n "$ac_tool_prefix"; then
6680
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6681
set dummy ${ac_tool_prefix}mt; ac_word=$2
6682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683
$as_echo_n "checking for $ac_word... " >&6; }
6684
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6685
$as_echo_n "(cached) " >&6
6687
if test -n "$MANIFEST_TOOL"; then
6688
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6690
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694
test -z "$as_dir" && as_dir=.
6695
for ac_exec_ext in '' $ac_executable_extensions; do
6696
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6698
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6708
if test -n "$MANIFEST_TOOL"; then
6709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6710
$as_echo "$MANIFEST_TOOL" >&6; }
6712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713
$as_echo "no" >&6; }
6718
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6719
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6720
# Extract the first word of "mt", so it can be a program name with args.
6721
set dummy mt; ac_word=$2
6722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723
$as_echo_n "checking for $ac_word... " >&6; }
6724
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6725
$as_echo_n "(cached) " >&6
6727
if test -n "$ac_ct_MANIFEST_TOOL"; then
6728
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734
test -z "$as_dir" && as_dir=.
6735
for ac_exec_ext in '' $ac_executable_extensions; do
6736
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6738
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6748
if test -n "$ac_ct_MANIFEST_TOOL"; then
6749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6750
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753
$as_echo "no" >&6; }
6756
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6759
case $cross_compiling:$ac_tool_warned in
6761
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763
ac_tool_warned=yes ;;
6765
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6768
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6771
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6773
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6774
if ${lt_cv_path_mainfest_tool+:} false; then :
6775
$as_echo_n "(cached) " >&6
6777
lt_cv_path_mainfest_tool=no
6778
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6779
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6780
cat conftest.err >&5
6781
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6782
lt_cv_path_mainfest_tool=yes
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6787
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6788
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6798
rhapsody* | darwin*)
6799
if test -n "$ac_tool_prefix"; then
6800
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6801
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803
$as_echo_n "checking for $ac_word... " >&6; }
6804
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6805
$as_echo_n "(cached) " >&6
6807
if test -n "$DSYMUTIL"; then
6808
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814
test -z "$as_dir" && as_dir=.
6815
for ac_exec_ext in '' $ac_executable_extensions; do
6816
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6818
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6828
if test -n "$DSYMUTIL"; then
6829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6830
$as_echo "$DSYMUTIL" >&6; }
6832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833
$as_echo "no" >&6; }
6838
if test -z "$ac_cv_prog_DSYMUTIL"; then
6839
ac_ct_DSYMUTIL=$DSYMUTIL
6840
# Extract the first word of "dsymutil", so it can be a program name with args.
6841
set dummy dsymutil; ac_word=$2
6842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843
$as_echo_n "checking for $ac_word... " >&6; }
6844
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6845
$as_echo_n "(cached) " >&6
6847
if test -n "$ac_ct_DSYMUTIL"; then
6848
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854
test -z "$as_dir" && as_dir=.
6855
for ac_exec_ext in '' $ac_executable_extensions; do
6856
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6858
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6868
if test -n "$ac_ct_DSYMUTIL"; then
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6870
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873
$as_echo "no" >&6; }
6876
if test "x$ac_ct_DSYMUTIL" = x; then
6879
case $cross_compiling:$ac_tool_warned in
6881
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883
ac_tool_warned=yes ;;
6885
DSYMUTIL=$ac_ct_DSYMUTIL
6888
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6891
if test -n "$ac_tool_prefix"; then
6892
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6893
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895
$as_echo_n "checking for $ac_word... " >&6; }
6896
if ${ac_cv_prog_NMEDIT+:} false; then :
6897
$as_echo_n "(cached) " >&6
6899
if test -n "$NMEDIT"; then
6900
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906
test -z "$as_dir" && as_dir=.
6907
for ac_exec_ext in '' $ac_executable_extensions; do
6908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6910
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919
NMEDIT=$ac_cv_prog_NMEDIT
6920
if test -n "$NMEDIT"; then
6921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6922
$as_echo "$NMEDIT" >&6; }
6924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925
$as_echo "no" >&6; }
6930
if test -z "$ac_cv_prog_NMEDIT"; then
6931
ac_ct_NMEDIT=$NMEDIT
6932
# Extract the first word of "nmedit", so it can be a program name with args.
6933
set dummy nmedit; ac_word=$2
6934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935
$as_echo_n "checking for $ac_word... " >&6; }
6936
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6937
$as_echo_n "(cached) " >&6
6939
if test -n "$ac_ct_NMEDIT"; then
6940
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946
test -z "$as_dir" && as_dir=.
6947
for ac_exec_ext in '' $ac_executable_extensions; do
6948
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6950
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6960
if test -n "$ac_ct_NMEDIT"; then
6961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6962
$as_echo "$ac_ct_NMEDIT" >&6; }
6964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965
$as_echo "no" >&6; }
6968
if test "x$ac_ct_NMEDIT" = x; then
6971
case $cross_compiling:$ac_tool_warned in
6973
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975
ac_tool_warned=yes ;;
6977
NMEDIT=$ac_ct_NMEDIT
6980
NMEDIT="$ac_cv_prog_NMEDIT"
6983
if test -n "$ac_tool_prefix"; then
6984
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6985
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987
$as_echo_n "checking for $ac_word... " >&6; }
6988
if ${ac_cv_prog_LIPO+:} false; then :
6989
$as_echo_n "(cached) " >&6
6991
if test -n "$LIPO"; then
6992
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6994
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998
test -z "$as_dir" && as_dir=.
6999
for ac_exec_ext in '' $ac_executable_extensions; do
7000
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7002
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011
LIPO=$ac_cv_prog_LIPO
7012
if test -n "$LIPO"; then
7013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7014
$as_echo "$LIPO" >&6; }
7016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017
$as_echo "no" >&6; }
7022
if test -z "$ac_cv_prog_LIPO"; then
7024
# Extract the first word of "lipo", so it can be a program name with args.
7025
set dummy lipo; ac_word=$2
7026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027
$as_echo_n "checking for $ac_word... " >&6; }
7028
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7029
$as_echo_n "(cached) " >&6
7031
if test -n "$ac_ct_LIPO"; then
7032
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038
test -z "$as_dir" && as_dir=.
7039
for ac_exec_ext in '' $ac_executable_extensions; do
7040
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041
ac_cv_prog_ac_ct_LIPO="lipo"
7042
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7052
if test -n "$ac_ct_LIPO"; then
7053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7054
$as_echo "$ac_ct_LIPO" >&6; }
7056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057
$as_echo "no" >&6; }
7060
if test "x$ac_ct_LIPO" = x; then
7063
case $cross_compiling:$ac_tool_warned in
7065
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067
ac_tool_warned=yes ;;
7072
LIPO="$ac_cv_prog_LIPO"
7075
if test -n "$ac_tool_prefix"; then
7076
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7077
set dummy ${ac_tool_prefix}otool; ac_word=$2
7078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079
$as_echo_n "checking for $ac_word... " >&6; }
7080
if ${ac_cv_prog_OTOOL+:} false; then :
7081
$as_echo_n "(cached) " >&6
7083
if test -n "$OTOOL"; then
7084
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090
test -z "$as_dir" && as_dir=.
7091
for ac_exec_ext in '' $ac_executable_extensions; do
7092
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7094
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103
OTOOL=$ac_cv_prog_OTOOL
7104
if test -n "$OTOOL"; then
7105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7106
$as_echo "$OTOOL" >&6; }
7108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109
$as_echo "no" >&6; }
7114
if test -z "$ac_cv_prog_OTOOL"; then
7116
# Extract the first word of "otool", so it can be a program name with args.
7117
set dummy otool; ac_word=$2
7118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119
$as_echo_n "checking for $ac_word... " >&6; }
7120
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7121
$as_echo_n "(cached) " >&6
7123
if test -n "$ac_ct_OTOOL"; then
7124
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130
test -z "$as_dir" && as_dir=.
7131
for ac_exec_ext in '' $ac_executable_extensions; do
7132
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133
ac_cv_prog_ac_ct_OTOOL="otool"
7134
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7144
if test -n "$ac_ct_OTOOL"; then
7145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7146
$as_echo "$ac_ct_OTOOL" >&6; }
7148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149
$as_echo "no" >&6; }
7152
if test "x$ac_ct_OTOOL" = x; then
7155
case $cross_compiling:$ac_tool_warned in
7157
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159
ac_tool_warned=yes ;;
7164
OTOOL="$ac_cv_prog_OTOOL"
7167
if test -n "$ac_tool_prefix"; then
7168
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7169
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171
$as_echo_n "checking for $ac_word... " >&6; }
7172
if ${ac_cv_prog_OTOOL64+:} false; then :
7173
$as_echo_n "(cached) " >&6
7175
if test -n "$OTOOL64"; then
7176
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182
test -z "$as_dir" && as_dir=.
7183
for ac_exec_ext in '' $ac_executable_extensions; do
7184
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7186
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195
OTOOL64=$ac_cv_prog_OTOOL64
7196
if test -n "$OTOOL64"; then
7197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7198
$as_echo "$OTOOL64" >&6; }
7200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201
$as_echo "no" >&6; }
7206
if test -z "$ac_cv_prog_OTOOL64"; then
7207
ac_ct_OTOOL64=$OTOOL64
7208
# Extract the first word of "otool64", so it can be a program name with args.
7209
set dummy otool64; ac_word=$2
7210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211
$as_echo_n "checking for $ac_word... " >&6; }
7212
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7213
$as_echo_n "(cached) " >&6
7215
if test -n "$ac_ct_OTOOL64"; then
7216
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222
test -z "$as_dir" && as_dir=.
7223
for ac_exec_ext in '' $ac_executable_extensions; do
7224
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225
ac_cv_prog_ac_ct_OTOOL64="otool64"
7226
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7236
if test -n "$ac_ct_OTOOL64"; then
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7238
$as_echo "$ac_ct_OTOOL64" >&6; }
7240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241
$as_echo "no" >&6; }
7244
if test "x$ac_ct_OTOOL64" = x; then
7247
case $cross_compiling:$ac_tool_warned in
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251
ac_tool_warned=yes ;;
7253
OTOOL64=$ac_ct_OTOOL64
7256
OTOOL64="$ac_cv_prog_OTOOL64"
7285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7286
$as_echo_n "checking for -single_module linker flag... " >&6; }
7287
if ${lt_cv_apple_cc_single_mod+:} false; then :
7288
$as_echo_n "(cached) " >&6
7290
lt_cv_apple_cc_single_mod=no
7291
if test -z "${LT_MULTI_MODULE}"; then
7292
# By default we will add the -single_module flag. You can override
7293
# by either setting the environment variable LT_MULTI_MODULE
7294
# non-empty at configure time, or by adding -multi_module to the
7296
rm -rf libconftest.dylib*
7297
echo "int foo(void){return 1;}" > conftest.c
7298
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7299
-dynamiclib -Wl,-single_module conftest.c" >&5
7300
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7301
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7303
# If there is a non-empty error log, and "single_module"
7304
# appears in it, assume the flag caused a linker warning
7305
if test -s conftest.err && $GREP single_module conftest.err; then
7306
cat conftest.err >&5
7307
# Otherwise, if the output was created with a 0 exit code from
7308
# the compiler, it worked.
7309
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7310
lt_cv_apple_cc_single_mod=yes
7312
cat conftest.err >&5
7314
rm -rf libconftest.dylib*
7318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7319
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7322
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7323
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7324
$as_echo_n "(cached) " >&6
7326
lt_cv_ld_exported_symbols_list=no
7327
save_LDFLAGS=$LDFLAGS
7328
echo "_main" > conftest.sym
7329
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7330
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331
/* end confdefs.h. */
7341
if ac_fn_c_try_link "$LINENO"; then :
7342
lt_cv_ld_exported_symbols_list=yes
7344
lt_cv_ld_exported_symbols_list=no
7346
rm -f core conftest.err conftest.$ac_objext \
7347
conftest$ac_exeext conftest.$ac_ext
7348
LDFLAGS="$save_LDFLAGS"
7351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7352
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7355
$as_echo_n "checking for -force_load linker flag... " >&6; }
7356
if ${lt_cv_ld_force_load+:} false; then :
7357
$as_echo_n "(cached) " >&6
7359
lt_cv_ld_force_load=no
7360
cat > conftest.c << _LT_EOF
7361
int forced_loaded() { return 2;}
7363
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7364
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7365
echo "$AR cru libconftest.a conftest.o" >&5
7366
$AR cru libconftest.a conftest.o 2>&5
7367
echo "$RANLIB libconftest.a" >&5
7368
$RANLIB libconftest.a 2>&5
7369
cat > conftest.c << _LT_EOF
7370
int main() { return 0;}
7372
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7373
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7375
if test -s conftest.err && $GREP force_load conftest.err; then
7376
cat conftest.err >&5
7377
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7378
lt_cv_ld_force_load=yes
7380
cat conftest.err >&5
7382
rm -f conftest.err libconftest.a conftest conftest.c
7383
rm -rf conftest.dSYM
7386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7387
$as_echo "$lt_cv_ld_force_load" >&6; }
7389
rhapsody* | darwin1.[012])
7390
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7392
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7393
darwin*) # darwin 5.x on
7394
# if running on 10.5 or later, the deployment target defaults
7395
# to the OS version, if on x86, and 10.4, the deployment
7396
# target defaults to 10.4. Don't you love it?
7397
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7398
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7399
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7401
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7403
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7407
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7408
_lt_dar_single_mod='$single_module'
7410
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7411
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7413
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7415
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7416
_lt_dsymutil='~$DSYMUTIL $lib || :'
7424
ac_cpp='$CPP $CPPFLAGS'
7425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7429
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7430
# On Suns, sometimes $CPP names a directory.
7431
if test -n "$CPP" && test -d "$CPP"; then
7434
if test -z "$CPP"; then
7435
if ${ac_cv_prog_CPP+:} false; then :
7436
$as_echo_n "(cached) " >&6
7438
# Double quotes because CPP needs to be expanded
7439
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7442
for ac_c_preproc_warn_flag in '' yes
7444
# Use a header file that comes with gcc, so configuring glibc
7445
# with a fresh cross-compiler works.
7446
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7447
# <limits.h> exists even on freestanding compilers.
7448
# On the NeXT, cc -E runs the code through the compiler's parser,
7449
# not just through cpp. "Syntax error" is here to catch this case.
7450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451
/* end confdefs.h. */
7453
# include <limits.h>
7455
# include <assert.h>
7459
if ac_fn_c_try_cpp "$LINENO"; then :
7462
# Broken: fails on valid input.
7465
rm -f conftest.err conftest.i conftest.$ac_ext
7467
# OK, works on sane cases. Now check whether nonexistent headers
7468
# can be detected and how.
7469
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470
/* end confdefs.h. */
7471
#include <ac_nonexistent.h>
7473
if ac_fn_c_try_cpp "$LINENO"; then :
7474
# Broken: success on invalid input.
7477
# Passes both tests.
7481
rm -f conftest.err conftest.i conftest.$ac_ext
7484
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7485
rm -f conftest.i conftest.err conftest.$ac_ext
7486
if $ac_preproc_ok; then :
7498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7499
$as_echo "$CPP" >&6; }
7501
for ac_c_preproc_warn_flag in '' yes
7503
# Use a header file that comes with gcc, so configuring glibc
7504
# with a fresh cross-compiler works.
7505
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7506
# <limits.h> exists even on freestanding compilers.
7507
# On the NeXT, cc -E runs the code through the compiler's parser,
7508
# not just through cpp. "Syntax error" is here to catch this case.
7509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510
/* end confdefs.h. */
7512
# include <limits.h>
7514
# include <assert.h>
7518
if ac_fn_c_try_cpp "$LINENO"; then :
7521
# Broken: fails on valid input.
7524
rm -f conftest.err conftest.i conftest.$ac_ext
7526
# OK, works on sane cases. Now check whether nonexistent headers
7527
# can be detected and how.
7528
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529
/* end confdefs.h. */
7530
#include <ac_nonexistent.h>
7532
if ac_fn_c_try_cpp "$LINENO"; then :
7533
# Broken: success on invalid input.
7536
# Passes both tests.
7540
rm -f conftest.err conftest.i conftest.$ac_ext
7543
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7544
rm -f conftest.i conftest.err conftest.$ac_ext
7545
if $ac_preproc_ok; then :
7548
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7549
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7550
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7551
See \`config.log' for more details" "$LINENO" 5; }
7555
ac_cpp='$CPP $CPPFLAGS'
7556
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7562
$as_echo_n "checking for ANSI C header files... " >&6; }
7563
if ${ac_cv_header_stdc+:} false; then :
7564
$as_echo_n "(cached) " >&6
7566
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567
/* end confdefs.h. */
7581
if ac_fn_c_try_compile "$LINENO"; then :
7582
ac_cv_header_stdc=yes
7584
ac_cv_header_stdc=no
7586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588
if test $ac_cv_header_stdc = yes; then
7589
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7590
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591
/* end confdefs.h. */
7595
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596
$EGREP "memchr" >/dev/null 2>&1; then :
7599
ac_cv_header_stdc=no
7605
if test $ac_cv_header_stdc = yes; then
7606
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608
/* end confdefs.h. */
7612
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7613
$EGREP "free" >/dev/null 2>&1; then :
7616
ac_cv_header_stdc=no
7622
if test $ac_cv_header_stdc = yes; then
7623
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7624
if test "$cross_compiling" = yes; then :
7627
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628
/* end confdefs.h. */
7631
#if ((' ' & 0x0FF) == 0x020)
7632
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7633
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7635
# define ISLOWER(c) \
7636
(('a' <= (c) && (c) <= 'i') \
7637
|| ('j' <= (c) && (c) <= 'r') \
7638
|| ('s' <= (c) && (c) <= 'z'))
7639
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7642
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7647
for (i = 0; i < 256; i++)
7648
if (XOR (islower (i), ISLOWER (i))
7649
|| toupper (i) != TOUPPER (i))
7654
if ac_fn_c_try_run "$LINENO"; then :
7657
ac_cv_header_stdc=no
7659
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7660
conftest.$ac_objext conftest.beam conftest.$ac_ext
7665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7666
$as_echo "$ac_cv_header_stdc" >&6; }
7667
if test $ac_cv_header_stdc = yes; then
7669
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7673
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7674
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7675
inttypes.h stdint.h unistd.h
7677
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7680
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7681
cat >>confdefs.h <<_ACEOF
7682
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690
for ac_header in dlfcn.h
7692
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7694
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7695
cat >>confdefs.h <<_ACEOF
7696
#define HAVE_DLFCN_H 1
7705
func_stripname_cnf ()
7708
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
7709
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7711
} # func_stripname_cnf
7727
# Check whether --enable-shared was given.
7728
if test "${enable_shared+set}" = set; then :
7729
enableval=$enable_shared; p=${PACKAGE-default}
7731
yes) enable_shared=yes ;;
7732
no) enable_shared=no ;;
7735
# Look at the argument we got. We use all the common list separators.
7736
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7737
for pkg in $enableval; do
7739
if test "X$pkg" = "X$p"; then
7758
# Check whether --enable-static was given.
7759
if test "${enable_static+set}" = set; then :
7760
enableval=$enable_static; p=${PACKAGE-default}
7762
yes) enable_static=yes ;;
7763
no) enable_static=no ;;
7766
# Look at the argument we got. We use all the common list separators.
7767
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7768
for pkg in $enableval; do
7770
if test "X$pkg" = "X$p"; then
7790
# Check whether --with-pic was given.
7791
if test "${with_pic+set}" = set; then :
7792
withval=$with_pic; lt_p=${PACKAGE-default}
7794
yes|no) pic_mode=$withval ;;
7797
# Look at the argument we got. We use all the common list separators.
7798
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7799
for lt_pkg in $withval; do
7801
if test "X$lt_pkg" = "X$lt_p"; then
7813
test -z "$pic_mode" && pic_mode=default
7821
# Check whether --enable-fast-install was given.
7822
if test "${enable_fast_install+set}" = set; then :
7823
enableval=$enable_fast_install; p=${PACKAGE-default}
7825
yes) enable_fast_install=yes ;;
7826
no) enable_fast_install=no ;;
7828
enable_fast_install=no
7829
# Look at the argument we got. We use all the common list separators.
7830
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7831
for pkg in $enableval; do
7833
if test "X$pkg" = "X$p"; then
7834
enable_fast_install=yes
7841
enable_fast_install=yes
7854
# This can be used to rebuild libtool when needed
7855
LIBTOOL_DEPS="$ltmain"
7857
# Always use our own libtool.
7858
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7889
test -z "$LN_S" && LN_S="ln -s"
7904
if test -n "${ZSH_VERSION+set}" ; then
7905
setopt NO_GLOB_SUBST
7908
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7909
$as_echo_n "checking for objdir... " >&6; }
7910
if ${lt_cv_objdir+:} false; then :
7911
$as_echo_n "(cached) " >&6
7913
rm -f .libs 2>/dev/null
7914
mkdir .libs 2>/dev/null
7915
if test -d .libs; then
7918
# MS-DOS does not allow filenames that begin with a dot.
7921
rmdir .libs 2>/dev/null
7923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7924
$as_echo "$lt_cv_objdir" >&6; }
7925
objdir=$lt_cv_objdir
7931
cat >>confdefs.h <<_ACEOF
7932
#define LT_OBJDIR "$lt_cv_objdir/"
7940
# AIX sometimes has problems with the GCC collect2 program. For some
7941
# reason, if we set the COLLECT_NAMES environment variable, the problems
7942
# vanish in a puff of smoke.
7943
if test "X${COLLECT_NAMES+set}" != Xset; then
7945
export COLLECT_NAMES
7952
can_build_shared=yes
7954
# All known linkers require a `.a' archive for static linking (except MSVC,
7955
# which needs '.lib').
7958
with_gnu_ld="$lt_cv_prog_gnu_ld"
7961
old_CFLAGS="$CFLAGS"
7963
# Set sane defaults for various variables
7964
test -z "$CC" && CC=cc
7965
test -z "$LTCC" && LTCC=$CC
7966
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7967
test -z "$LD" && LD=ld
7968
test -z "$ac_objext" && ac_objext=o
7970
for cc_temp in $compiler""; do
7972
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7973
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7978
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7981
# Only perform the check for file, if the check method requires it
7982
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7983
case $deplibs_check_method in
7985
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7987
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7988
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7989
$as_echo_n "(cached) " >&6
7993
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7996
lt_save_MAGIC_CMD="$MAGIC_CMD"
7997
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7998
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7999
for ac_dir in $ac_dummy; do
8001
test -z "$ac_dir" && ac_dir=.
8002
if test -f $ac_dir/${ac_tool_prefix}file; then
8003
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8004
if test -n "$file_magic_test_file"; then
8005
case $deplibs_check_method in
8007
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8008
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8010
$EGREP "$file_magic_regex" > /dev/null; then
8015
*** Warning: the command libtool uses to detect shared libraries,
8016
*** $file_magic_cmd, produces output that libtool cannot recognize.
8017
*** The result is that libtool may fail to recognize shared libraries
8018
*** as such. This will affect the creation of libtool libraries that
8019
*** depend on shared libraries, but programs linked with such libtool
8020
*** libraries will work regardless of this problem. Nevertheless, you
8021
*** may want to report the problem to your system manager and/or to
8022
*** bug-libtool@gnu.org
8032
MAGIC_CMD="$lt_save_MAGIC_CMD"
8037
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8038
if test -n "$MAGIC_CMD"; then
8039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8040
$as_echo "$MAGIC_CMD" >&6; }
8042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043
$as_echo "no" >&6; }
8050
if test -z "$lt_cv_path_MAGIC_CMD"; then
8051
if test -n "$ac_tool_prefix"; then
8052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8053
$as_echo_n "checking for file... " >&6; }
8054
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8055
$as_echo_n "(cached) " >&6
8059
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8062
lt_save_MAGIC_CMD="$MAGIC_CMD"
8063
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8064
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8065
for ac_dir in $ac_dummy; do
8067
test -z "$ac_dir" && ac_dir=.
8068
if test -f $ac_dir/file; then
8069
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8070
if test -n "$file_magic_test_file"; then
8071
case $deplibs_check_method in
8073
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8074
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8075
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8076
$EGREP "$file_magic_regex" > /dev/null; then
8081
*** Warning: the command libtool uses to detect shared libraries,
8082
*** $file_magic_cmd, produces output that libtool cannot recognize.
8083
*** The result is that libtool may fail to recognize shared libraries
8084
*** as such. This will affect the creation of libtool libraries that
8085
*** depend on shared libraries, but programs linked with such libtool
8086
*** libraries will work regardless of this problem. Nevertheless, you
8087
*** may want to report the problem to your system manager and/or to
8088
*** bug-libtool@gnu.org
8098
MAGIC_CMD="$lt_save_MAGIC_CMD"
8103
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8104
if test -n "$MAGIC_CMD"; then
8105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8106
$as_echo "$MAGIC_CMD" >&6; }
8108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109
$as_echo "no" >&6; }
8122
# Use C for the default configuration in the libtool script
8126
ac_cpp='$CPP $CPPFLAGS'
8127
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8128
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8129
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8132
# Source file extension for C test sources.
8135
# Object file extension for compiled C test sources.
8139
# Code to be used in simple compile tests
8140
lt_simple_compile_test_code="int some_variable = 0;"
8142
# Code to be used in simple link tests
8143
lt_simple_link_test_code='int main(){return(0);}'
8151
# If no C compiler was specified, use CC.
8154
# If no C compiler flags were specified, use CFLAGS.
8155
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8157
# Allow CC to be a program name with arguments.
8160
# Save the default compiler, since it gets overwritten when the other
8161
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8162
compiler_DEFAULT=$CC
8164
# save warnings/boilerplate of simple test code
8165
ac_outfile=conftest.$ac_objext
8166
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8167
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8168
_lt_compiler_boilerplate=`cat conftest.err`
8171
ac_outfile=conftest.$ac_objext
8172
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8173
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8174
_lt_linker_boilerplate=`cat conftest.err`
8178
if test -n "$compiler"; then
8180
lt_prog_compiler_no_builtin_flag=
8182
if test "$GCC" = yes; then
8183
case $cc_basename in
8185
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8187
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8191
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8192
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8193
$as_echo_n "(cached) " >&6
8195
lt_cv_prog_compiler_rtti_exceptions=no
8196
ac_outfile=conftest.$ac_objext
8197
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8198
lt_compiler_flag="-fno-rtti -fno-exceptions"
8199
# Insert the option either (1) after the last *FLAGS variable, or
8200
# (2) before a word containing "conftest.", or (3) at the end.
8201
# Note that $ac_compile itself does not contain backslashes and begins
8202
# with a dollar sign (not a hyphen), so the echo should work correctly.
8203
# The option is referenced via a variable to avoid confusing sed.
8204
lt_compile=`echo "$ac_compile" | $SED \
8205
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8206
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207
-e 's:$: $lt_compiler_flag:'`
8208
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8209
(eval "$lt_compile" 2>conftest.err)
8211
cat conftest.err >&5
8212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213
if (exit $ac_status) && test -s "$ac_outfile"; then
8214
# The compiler can only warn and ignore the option if not recognized
8215
# So say no if there are warnings other than the usual output.
8216
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8217
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8218
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8219
lt_cv_prog_compiler_rtti_exceptions=yes
8225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8226
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8228
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8229
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8241
lt_prog_compiler_wl=
8242
lt_prog_compiler_pic=
8243
lt_prog_compiler_static=
8246
if test "$GCC" = yes; then
8247
lt_prog_compiler_wl='-Wl,'
8248
lt_prog_compiler_static='-static'
8252
# All AIX code is PIC.
8253
if test "$host_cpu" = ia64; then
8254
# AIX 5 now supports IA64 processor
8255
lt_prog_compiler_static='-Bstatic'
8262
# see comment about AmigaOS4 .so support
8263
lt_prog_compiler_pic='-fPIC'
8266
# FIXME: we need at least 68020 code to build shared libraries, but
8267
# adding the `-m68020' flag to GCC prevents building anything better,
8269
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8274
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8275
# PIC is the default for these OSes.
8278
mingw* | cygwin* | pw32* | os2* | cegcc*)
8279
# This hack is so that the source file can tell whether it is being
8280
# built for inclusion in a dll (and should export symbols for example).
8281
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8282
# (--disable-auto-import) libraries
8283
lt_prog_compiler_pic='-DDLL_EXPORT'
8286
darwin* | rhapsody*)
8287
# PIC is the default on this platform
8288
# Common symbols not allowed in MH_DYLIB files
8289
lt_prog_compiler_pic='-fno-common'
8293
# PIC is the default for Haiku.
8294
# The "-static" flag exists, but is broken.
8295
lt_prog_compiler_static=
8299
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8300
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8301
# sets the default TLS model and affects inlining.
8307
lt_prog_compiler_pic='-fPIC'
8313
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8314
# Instead, we relocate shared libraries at runtime.
8318
# Just because we use GCC doesn't mean we suddenly get shared libraries
8319
# on systems that don't support them.
8320
lt_prog_compiler_can_build_shared=no
8325
# QNX uses GNU C++, but need to define -shared option too, otherwise
8327
lt_prog_compiler_pic='-fPIC -shared'
8331
if test -d /usr/nec; then
8332
lt_prog_compiler_pic=-Kconform_pic
8337
lt_prog_compiler_pic='-fPIC'
8341
case $cc_basename in
8342
nvcc*) # Cuda Compiler Driver 2.2
8343
lt_prog_compiler_wl='-Xlinker '
8344
if test -n "$lt_prog_compiler_pic"; then
8345
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8350
# PORTME Check for flag to pass linker flags through the system compiler.
8353
lt_prog_compiler_wl='-Wl,'
8354
if test "$host_cpu" = ia64; then
8355
# AIX 5 now supports IA64 processor
8356
lt_prog_compiler_static='-Bstatic'
8358
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8362
mingw* | cygwin* | pw32* | os2* | cegcc*)
8363
# This hack is so that the source file can tell whether it is being
8364
# built for inclusion in a dll (and should export symbols for example).
8365
lt_prog_compiler_pic='-DDLL_EXPORT'
8368
hpux9* | hpux10* | hpux11*)
8369
lt_prog_compiler_wl='-Wl,'
8370
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8377
lt_prog_compiler_pic='+Z'
8380
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8381
lt_prog_compiler_static='${wl}-a ${wl}archive'
8384
irix5* | irix6* | nonstopux*)
8385
lt_prog_compiler_wl='-Wl,'
8386
# PIC (with -KPIC) is the default.
8387
lt_prog_compiler_static='-non_shared'
8390
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8391
case $cc_basename in
8392
# old Intel for x86_64 which still supported -KPIC.
8394
lt_prog_compiler_wl='-Wl,'
8395
lt_prog_compiler_pic='-KPIC'
8396
lt_prog_compiler_static='-static'
8398
# icc used to be incompatible with GCC.
8399
# ICC 10 doesn't accept -KPIC any more.
8401
lt_prog_compiler_wl='-Wl,'
8402
lt_prog_compiler_pic='-fPIC'
8403
lt_prog_compiler_static='-static'
8405
# Lahey Fortran 8.1.
8407
lt_prog_compiler_wl='-Wl,'
8408
lt_prog_compiler_pic='--shared'
8409
lt_prog_compiler_static='--static'
8412
# NAG Fortran compiler
8413
lt_prog_compiler_wl='-Wl,-Wl,,'
8414
lt_prog_compiler_pic='-PIC'
8415
lt_prog_compiler_static='-Bstatic'
8417
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8418
# Portland Group compilers (*not* the Pentium gcc compiler,
8419
# which looks to be a dead project)
8420
lt_prog_compiler_wl='-Wl,'
8421
lt_prog_compiler_pic='-fpic'
8422
lt_prog_compiler_static='-Bstatic'
8425
lt_prog_compiler_wl='-Wl,'
8426
# All Alpha code is PIC.
8427
lt_prog_compiler_static='-non_shared'
8429
xl* | bgxl* | bgf* | mpixl*)
8430
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8431
lt_prog_compiler_wl='-Wl,'
8432
lt_prog_compiler_pic='-qpic'
8433
lt_prog_compiler_static='-qstaticlink'
8436
case `$CC -V 2>&1 | sed 5q` in
8437
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8438
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8439
lt_prog_compiler_pic='-KPIC'
8440
lt_prog_compiler_static='-Bstatic'
8441
lt_prog_compiler_wl=''
8443
*Sun\ F* | *Sun*Fortran*)
8444
lt_prog_compiler_pic='-KPIC'
8445
lt_prog_compiler_static='-Bstatic'
8446
lt_prog_compiler_wl='-Qoption ld '
8450
lt_prog_compiler_pic='-KPIC'
8451
lt_prog_compiler_static='-Bstatic'
8452
lt_prog_compiler_wl='-Wl,'
8454
*Intel*\ [CF]*Compiler*)
8455
lt_prog_compiler_wl='-Wl,'
8456
lt_prog_compiler_pic='-fPIC'
8457
lt_prog_compiler_static='-static'
8460
lt_prog_compiler_wl='-Wl,'
8461
lt_prog_compiler_pic='-fpic'
8462
lt_prog_compiler_static='-Bstatic'
8470
lt_prog_compiler_pic='-KPIC'
8471
lt_prog_compiler_static='-Bstatic'
8475
# QNX uses GNU C++, but need to define -shared option too, otherwise
8477
lt_prog_compiler_pic='-fPIC -shared'
8480
osf3* | osf4* | osf5*)
8481
lt_prog_compiler_wl='-Wl,'
8482
# All OSF/1 code is PIC.
8483
lt_prog_compiler_static='-non_shared'
8487
lt_prog_compiler_static='-non_shared'
8491
lt_prog_compiler_pic='-KPIC'
8492
lt_prog_compiler_static='-Bstatic'
8493
case $cc_basename in
8494
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8495
lt_prog_compiler_wl='-Qoption ld ';;
8497
lt_prog_compiler_wl='-Wl,';;
8502
lt_prog_compiler_wl='-Qoption ld '
8503
lt_prog_compiler_pic='-PIC'
8504
lt_prog_compiler_static='-Bstatic'
8507
sysv4 | sysv4.2uw2* | sysv4.3*)
8508
lt_prog_compiler_wl='-Wl,'
8509
lt_prog_compiler_pic='-KPIC'
8510
lt_prog_compiler_static='-Bstatic'
8514
if test -d /usr/nec ;then
8515
lt_prog_compiler_pic='-Kconform_pic'
8516
lt_prog_compiler_static='-Bstatic'
8520
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8521
lt_prog_compiler_wl='-Wl,'
8522
lt_prog_compiler_pic='-KPIC'
8523
lt_prog_compiler_static='-Bstatic'
8527
lt_prog_compiler_wl='-Wl,'
8528
lt_prog_compiler_can_build_shared=no
8532
lt_prog_compiler_pic='-pic'
8533
lt_prog_compiler_static='-Bstatic'
8537
lt_prog_compiler_can_build_shared=no
8543
# For platforms which do not support PIC, -DPIC is meaningless:
8545
lt_prog_compiler_pic=
8548
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8553
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8554
if ${lt_cv_prog_compiler_pic+:} false; then :
8555
$as_echo_n "(cached) " >&6
8557
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8560
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8561
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8564
# Check to make sure the PIC flag actually works.
8566
if test -n "$lt_prog_compiler_pic"; then
8567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8568
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8569
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8570
$as_echo_n "(cached) " >&6
8572
lt_cv_prog_compiler_pic_works=no
8573
ac_outfile=conftest.$ac_objext
8574
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8575
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8576
# Insert the option either (1) after the last *FLAGS variable, or
8577
# (2) before a word containing "conftest.", or (3) at the end.
8578
# Note that $ac_compile itself does not contain backslashes and begins
8579
# with a dollar sign (not a hyphen), so the echo should work correctly.
8580
# The option is referenced via a variable to avoid confusing sed.
8581
lt_compile=`echo "$ac_compile" | $SED \
8582
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8583
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8584
-e 's:$: $lt_compiler_flag:'`
8585
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8586
(eval "$lt_compile" 2>conftest.err)
8588
cat conftest.err >&5
8589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590
if (exit $ac_status) && test -s "$ac_outfile"; then
8591
# The compiler can only warn and ignore the option if not recognized
8592
# So say no if there are warnings other than the usual output.
8593
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8594
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8595
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8596
lt_cv_prog_compiler_pic_works=yes
8602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8603
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8605
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8606
case $lt_prog_compiler_pic in
8608
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8611
lt_prog_compiler_pic=
8612
lt_prog_compiler_can_build_shared=no
8628
# Check to make sure the static flag actually works.
8630
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8632
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8633
if ${lt_cv_prog_compiler_static_works+:} false; then :
8634
$as_echo_n "(cached) " >&6
8636
lt_cv_prog_compiler_static_works=no
8637
save_LDFLAGS="$LDFLAGS"
8638
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8639
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8640
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8641
# The linker can only warn and ignore the option if not recognized
8642
# So say no if there are warnings
8643
if test -s conftest.err; then
8644
# Append any errors to the config.log.
8645
cat conftest.err 1>&5
8646
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8647
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8648
if diff conftest.exp conftest.er2 >/dev/null; then
8649
lt_cv_prog_compiler_static_works=yes
8652
lt_cv_prog_compiler_static_works=yes
8656
LDFLAGS="$save_LDFLAGS"
8659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8660
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8662
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8665
lt_prog_compiler_static=
8674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8675
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8676
if ${lt_cv_prog_compiler_c_o+:} false; then :
8677
$as_echo_n "(cached) " >&6
8679
lt_cv_prog_compiler_c_o=no
8680
$RM -r conftest 2>/dev/null
8684
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8686
lt_compiler_flag="-o out/conftest2.$ac_objext"
8687
# Insert the option either (1) after the last *FLAGS variable, or
8688
# (2) before a word containing "conftest.", or (3) at the end.
8689
# Note that $ac_compile itself does not contain backslashes and begins
8690
# with a dollar sign (not a hyphen), so the echo should work correctly.
8691
lt_compile=`echo "$ac_compile" | $SED \
8692
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694
-e 's:$: $lt_compiler_flag:'`
8695
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8696
(eval "$lt_compile" 2>out/conftest.err)
8698
cat out/conftest.err >&5
8699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8702
# The compiler can only warn and ignore the option if not recognized
8703
# So say no if there are warnings
8704
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8705
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8706
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8707
lt_cv_prog_compiler_c_o=yes
8712
# SGI C++ compiler will create directory out/ii_files/ for
8713
# template instantiation
8714
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8715
$RM out/* && rmdir out
8721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8722
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8730
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8731
if ${lt_cv_prog_compiler_c_o+:} false; then :
8732
$as_echo_n "(cached) " >&6
8734
lt_cv_prog_compiler_c_o=no
8735
$RM -r conftest 2>/dev/null
8739
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8741
lt_compiler_flag="-o out/conftest2.$ac_objext"
8742
# Insert the option either (1) after the last *FLAGS variable, or
8743
# (2) before a word containing "conftest.", or (3) at the end.
8744
# Note that $ac_compile itself does not contain backslashes and begins
8745
# with a dollar sign (not a hyphen), so the echo should work correctly.
8746
lt_compile=`echo "$ac_compile" | $SED \
8747
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749
-e 's:$: $lt_compiler_flag:'`
8750
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751
(eval "$lt_compile" 2>out/conftest.err)
8753
cat out/conftest.err >&5
8754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8757
# The compiler can only warn and ignore the option if not recognized
8758
# So say no if there are warnings
8759
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8760
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8761
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8762
lt_cv_prog_compiler_c_o=yes
8767
# SGI C++ compiler will create directory out/ii_files/ for
8768
# template instantiation
8769
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8770
$RM out/* && rmdir out
8776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8777
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8782
hard_links="nottested"
8783
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8784
# do not overwrite the value of need_locks provided by the user
8785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8786
$as_echo_n "checking if we can lock with hard links... " >&6; }
8789
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8791
ln conftest.a conftest.b 2>&5 || hard_links=no
8792
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8794
$as_echo "$hard_links" >&6; }
8795
if test "$hard_links" = no; then
8796
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8797
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8810
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8813
allow_undefined_flag=
8814
always_export_symbols=no
8816
archive_expsym_cmds=
8817
compiler_needs_object=no
8818
enable_shared_with_static_runtimes=no
8819
export_dynamic_flag_spec=
8820
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8821
hardcode_automatic=no
8823
hardcode_direct_absolute=no
8824
hardcode_libdir_flag_spec=
8825
hardcode_libdir_separator=
8827
hardcode_shlibpath_var=unsupported
8829
link_all_deplibs=unknown
8832
old_archive_from_new_cmds=
8833
old_archive_from_expsyms_cmds=
8834
thread_safe_flag_spec=
8835
whole_archive_flag_spec=
8836
# include_expsyms should be a list of space-separated symbols to be *always*
8837
# included in the symbol list
8839
# exclude_expsyms can be an extended regexp of symbols to exclude
8840
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8841
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8842
# as well as any symbol that contains `d'.
8843
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8844
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8845
# platforms (ab)use it in PIC code, but their linkers get confused if
8846
# the symbol is explicitly referenced. Since portable code cannot
8847
# rely on this symbol name, it's probably fine to never include it in
8848
# preloaded symbol tables.
8849
# Exclude shared library initialization/finalization symbols.
8850
extract_expsyms_cmds=
8853
cygwin* | mingw* | pw32* | cegcc*)
8854
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8855
# When not using gcc, we currently assume that we are using
8856
# Microsoft Visual C++.
8857
if test "$GCC" != yes; then
8862
# we just hope/assume this is gcc and not c89 (= MSVC++)
8868
linux* | k*bsd*-gnu | gnu*)
8875
# On some targets, GNU ld is compatible enough with the native linker
8876
# that we're better off using the native interface for both.
8877
lt_use_gnu_ld_interface=no
8878
if test "$with_gnu_ld" = yes; then
8881
# The AIX port of GNU ld has always aspired to compatibility
8882
# with the native linker. However, as the warning in the GNU ld
8883
# block says, versions before 2.19.5* couldn't really create working
8884
# shared libraries, regardless of the interface used.
8885
case `$LD -v 2>&1` in
8886
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8887
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8888
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8890
lt_use_gnu_ld_interface=yes
8895
lt_use_gnu_ld_interface=yes
8900
if test "$lt_use_gnu_ld_interface" = yes; then
8901
# If archive_cmds runs LD, not CC, wlarc should be empty
8904
# Set some defaults for GNU ld with shared library support. These
8905
# are reset later if shared libraries are not supported. Putting them
8906
# here allows them to be overridden if necessary.
8907
runpath_var=LD_RUN_PATH
8908
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909
export_dynamic_flag_spec='${wl}--export-dynamic'
8910
# ancient GNU ld didn't support --whole-archive et. al.
8911
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8912
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8914
whole_archive_flag_spec=
8916
supports_anon_versioning=no
8917
case `$LD -v 2>&1` in
8918
*GNU\ gold*) supports_anon_versioning=yes ;;
8919
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8920
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8921
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8922
*\ 2.11.*) ;; # other 2.11 versions
8923
*) supports_anon_versioning=yes ;;
8926
# See if GNU ld supports shared libraries.
8929
# On AIX/PPC, the GNU linker is very broken
8930
if test "$host_cpu" != ia64; then
8934
*** Warning: the GNU linker, at least up to release 2.19, is reported
8935
*** to be unable to reliably create shared libraries on AIX.
8936
*** Therefore, libtool is disabling shared libraries support. If you
8937
*** really care for shared libraries, you may want to install binutils
8938
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8939
*** You will then need to restart the configuration process.
8948
# see comment about AmigaOS4 .so support
8949
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950
archive_expsym_cmds=''
8953
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)'
8954
hardcode_libdir_flag_spec='-L$libdir'
8955
hardcode_minus_L=yes
8961
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962
allow_undefined_flag=unsupported
8963
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8964
# support --undefined. This deserves some investigation. FIXME
8965
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971
cygwin* | mingw* | pw32* | cegcc*)
8972
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8973
# as there is no search path for DLLs.
8974
hardcode_libdir_flag_spec='-L$libdir'
8975
export_dynamic_flag_spec='${wl}--export-all-symbols'
8976
allow_undefined_flag=unsupported
8977
always_export_symbols=no
8978
enable_shared_with_static_runtimes=yes
8979
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8980
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8982
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8983
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8984
# If the export-symbols file already is a .def file (1st line
8985
# is EXPORTS), use it as is; otherwise, prepend...
8986
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8987
cp $export_symbols $output_objdir/$soname.def;
8989
echo EXPORTS > $output_objdir/$soname.def;
8990
cat $export_symbols >> $output_objdir/$soname.def;
8992
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8999
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000
link_all_deplibs=yes
9005
hardcode_shlibpath_var=no
9006
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9007
export_dynamic_flag_spec='${wl}-E'
9008
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9009
# Instead, shared libraries are loaded at an image base (0x10000000 by
9010
# default) and relocated if they conflict, which is a slow very memory
9011
# consuming and fragmenting process. To avoid this, we pick a random,
9012
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9013
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9014
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9015
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'
9018
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9020
if test "$host_os" = linux-dietlibc; then
9021
case $cc_basename in
9022
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9025
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9026
&& test "$tmp_diet" = no
9028
tmp_addflag=' $pic_flag'
9029
tmp_sharedflag='-shared'
9030
case $cc_basename,$host_cpu in
9031
pgcc*) # Portland Group C compiler
9032
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9033
tmp_addflag=' $pic_flag'
9035
pgf77* | pgf90* | pgf95* | pgfortran*)
9036
# Portland Group f77 and f90 compilers
9037
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9038
tmp_addflag=' $pic_flag -Mnomain' ;;
9039
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9040
tmp_addflag=' -i_dynamic' ;;
9041
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9042
tmp_addflag=' -i_dynamic -nofor_main' ;;
9043
ifc* | ifort*) # Intel Fortran compiler
9044
tmp_addflag=' -nofor_main' ;;
9045
lf95*) # Lahey Fortran 8.1
9046
whole_archive_flag_spec=
9047
tmp_sharedflag='--shared' ;;
9048
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9049
tmp_sharedflag='-qmkshrobj'
9051
nvcc*) # Cuda Compiler Driver 2.2
9052
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9053
compiler_needs_object=yes
9056
case `$CC -V 2>&1 | sed 5q` in
9057
*Sun\ C*) # Sun C 5.9
9058
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9059
compiler_needs_object=yes
9060
tmp_sharedflag='-G' ;;
9061
*Sun\ F*) # Sun Fortran 8.3
9062
tmp_sharedflag='-G' ;;
9064
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066
if test "x$supports_anon_versioning" = xyes; then
9067
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9068
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9069
echo "local: *; };" >> $output_objdir/$libname.ver~
9070
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9073
case $cc_basename in
9074
xlf* | bgf* | bgxlf* | mpixlf*)
9075
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9076
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9077
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9079
if test "x$supports_anon_versioning" = xyes; then
9080
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9081
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9082
echo "local: *; };" >> $output_objdir/$libname.ver~
9083
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9092
netbsd* | netbsdelf*-gnu)
9093
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9094
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9097
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9103
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9107
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9108
*** create shared libraries on Solaris systems. Therefore, libtool
9109
*** is disabling shared libraries support. We urge you to upgrade GNU
9110
*** binutils to release 2.9.1 or newer. Another option is to modify
9111
*** your PATH or compiler configuration so that the native linker is
9112
*** used, and then restart.
9115
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9116
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9124
case `$LD -v 2>&1` in
9125
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9129
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9130
*** reliably create shared libraries on SCO systems. Therefore, libtool
9131
*** is disabling shared libraries support. We urge you to upgrade GNU
9132
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9133
*** your PATH or compiler configuration so that the native linker is
9134
*** used, and then restart.
9139
# For security reasons, it is highly recommended that you always
9140
# use absolute paths for naming shared libraries, and exclude the
9141
# DT_RUNPATH tag from executables and libraries. But doing so
9142
# requires that you compile everything twice, which is a pain.
9143
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9144
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9155
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9158
hardcode_shlibpath_var=no
9162
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9163
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9171
if test "$ld_shlibs" = no; then
9173
hardcode_libdir_flag_spec=
9174
export_dynamic_flag_spec=
9175
whole_archive_flag_spec=
9178
# PORTME fill in a description of your system's linker (not GNU ld)
9181
allow_undefined_flag=unsupported
9182
always_export_symbols=yes
9183
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'
9184
# Note: this linker hardcodes the directories in LIBPATH if there
9185
# are no directories specified by -L.
9186
hardcode_minus_L=yes
9187
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9188
# Neither direct hardcoding nor static linking is supported with a
9190
hardcode_direct=unsupported
9195
if test "$host_cpu" = ia64; then
9196
# On IA64, the linker does run time linking by default, so we don't
9197
# have to do anything special.
9198
aix_use_runtimelinking=no
9199
exp_sym_flag='-Bexport'
9202
# If we're using GNU nm, then we don't want the "-C" option.
9203
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9204
# Also, AIX nm treats weak defined symbols like other global
9205
# defined symbols, whereas GNU nm marks them as "W".
9206
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9207
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9209
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'
9211
aix_use_runtimelinking=no
9213
# Test if we are trying to use run time linking or normal
9214
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9215
# need to do runtime linking.
9216
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9217
for ld_flag in $LDFLAGS; do
9218
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9219
aix_use_runtimelinking=yes
9226
exp_sym_flag='-bexport'
9227
no_entry_flag='-bnoentry'
9230
# When large executables or shared objects are built, AIX ld can
9231
# have problems creating the table of contents. If linking a library
9232
# or program results in "error TOC overflow" add -mminimal-toc to
9233
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9234
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9238
hardcode_direct_absolute=yes
9239
hardcode_libdir_separator=':'
9240
link_all_deplibs=yes
9241
file_list_spec='${wl}-f,'
9243
if test "$GCC" = yes; then
9244
case $host_os in aix4.[012]|aix4.[012].*)
9245
# We only want to do this on AIX 4.2 and lower, the check
9246
# below for broken collect2 doesn't work under 4.3+
9247
collect2name=`${CC} -print-prog-name=collect2`
9248
if test -f "$collect2name" &&
9249
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9251
# We have reworked collect2
9254
# We have old collect2
9255
hardcode_direct=unsupported
9256
# It fails to find uninstalled libraries when the uninstalled
9257
# path is not listed in the libpath. Setting hardcode_minus_L
9258
# to unsupported forces relinking
9259
hardcode_minus_L=yes
9260
hardcode_libdir_flag_spec='-L$libdir'
9261
hardcode_libdir_separator=
9265
shared_flag='-shared'
9266
if test "$aix_use_runtimelinking" = yes; then
9267
shared_flag="$shared_flag "'${wl}-G'
9272
if test "$host_cpu" = ia64; then
9273
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9274
# chokes on -Wl,-G. The following line is correct:
9277
if test "$aix_use_runtimelinking" = yes; then
9278
shared_flag='${wl}-G'
9280
shared_flag='${wl}-bM:SRE'
9285
export_dynamic_flag_spec='${wl}-bexpall'
9286
# It seems that -bexpall does not export symbols beginning with
9287
# underscore (_), so it is better to generate a list of symbols to export.
9288
always_export_symbols=yes
9289
if test "$aix_use_runtimelinking" = yes; then
9290
# Warning - without using the other runtime loading flags (-brtl),
9291
# -berok will link without error, but may produce a broken library.
9292
allow_undefined_flag='-berok'
9293
# Determine the default libpath from the value encoded in an
9295
if test "${lt_cv_aix_libpath+set}" = set; then
9296
aix_libpath=$lt_cv_aix_libpath
9298
if ${lt_cv_aix_libpath_+:} false; then :
9299
$as_echo_n "(cached) " >&6
9301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302
/* end confdefs.h. */
9312
if ac_fn_c_try_link "$LINENO"; then :
9314
lt_aix_libpath_sed='
9315
/Import File Strings/,/^$/ {
9317
s/^0 *\([^ ]*\) *$/\1/
9321
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9322
# Check for a 64-bit object if we didn't find anything.
9323
if test -z "$lt_cv_aix_libpath_"; then
9324
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327
rm -f core conftest.err conftest.$ac_objext \
9328
conftest$ac_exeext conftest.$ac_ext
9329
if test -z "$lt_cv_aix_libpath_"; then
9330
lt_cv_aix_libpath_="/usr/lib:/lib"
9335
aix_libpath=$lt_cv_aix_libpath_
9338
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9339
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9341
if test "$host_cpu" = ia64; then
9342
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9343
allow_undefined_flag="-z nodefs"
9344
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"
9346
# Determine the default libpath from the value encoded in an
9348
if test "${lt_cv_aix_libpath+set}" = set; then
9349
aix_libpath=$lt_cv_aix_libpath
9351
if ${lt_cv_aix_libpath_+:} false; then :
9352
$as_echo_n "(cached) " >&6
9354
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355
/* end confdefs.h. */
9365
if ac_fn_c_try_link "$LINENO"; then :
9367
lt_aix_libpath_sed='
9368
/Import File Strings/,/^$/ {
9370
s/^0 *\([^ ]*\) *$/\1/
9374
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9375
# Check for a 64-bit object if we didn't find anything.
9376
if test -z "$lt_cv_aix_libpath_"; then
9377
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380
rm -f core conftest.err conftest.$ac_objext \
9381
conftest$ac_exeext conftest.$ac_ext
9382
if test -z "$lt_cv_aix_libpath_"; then
9383
lt_cv_aix_libpath_="/usr/lib:/lib"
9388
aix_libpath=$lt_cv_aix_libpath_
9391
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9392
# Warning - without using the other run time loading flags,
9393
# -berok will link without error, but may produce a broken library.
9394
no_undefined_flag=' ${wl}-bernotok'
9395
allow_undefined_flag=' ${wl}-berok'
9396
if test "$with_gnu_ld" = yes; then
9397
# We only use this code for GNU lds that support --whole-archive.
9398
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9400
# Exported symbols can be pulled into shared objects from archives
9401
whole_archive_flag_spec='$convenience'
9403
archive_cmds_need_lc=yes
9404
# This is similar to how AIX traditionally builds its shared libraries.
9405
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'
9413
# see comment about AmigaOS4 .so support
9414
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415
archive_expsym_cmds=''
9418
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)'
9419
hardcode_libdir_flag_spec='-L$libdir'
9420
hardcode_minus_L=yes
9426
export_dynamic_flag_spec=-rdynamic
9429
cygwin* | mingw* | pw32* | cegcc*)
9430
# When not using gcc, we currently assume that we are using
9431
# Microsoft Visual C++.
9432
# hardcode_libdir_flag_spec is actually meaningless, as there is
9433
# no search path for DLLs.
9434
case $cc_basename in
9437
hardcode_libdir_flag_spec=' '
9438
allow_undefined_flag=unsupported
9439
always_export_symbols=yes
9441
# Tell ltmain to make .lib files, not .a files.
9443
# Tell ltmain to make .dll files, not .so files.
9445
# FIXME: Setting linknames here is a bad hack.
9446
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9447
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9448
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9450
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9452
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9454
# The linker will not automatically build a static lib if we build a DLL.
9455
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9456
enable_shared_with_static_runtimes=yes
9457
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9458
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9460
old_postinstall_cmds='chmod 644 $oldlib'
9461
postlink_cmds='lt_outputfile="@OUTPUT@"~
9462
lt_tool_outputfile="@TOOL_OUTPUT@"~
9463
case $lt_outputfile in
9466
lt_outputfile="$lt_outputfile.exe"
9467
lt_tool_outputfile="$lt_tool_outputfile.exe"
9470
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9471
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9472
$RM "$lt_outputfile.manifest";
9476
# Assume MSVC wrapper
9477
hardcode_libdir_flag_spec=' '
9478
allow_undefined_flag=unsupported
9479
# Tell ltmain to make .lib files, not .a files.
9481
# Tell ltmain to make .dll files, not .so files.
9483
# FIXME: Setting linknames here is a bad hack.
9484
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9485
# The linker will automatically build a .lib file if we build a DLL.
9486
old_archive_from_new_cmds='true'
9487
# FIXME: Should let the user specify the lib program.
9488
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9489
enable_shared_with_static_runtimes=yes
9494
darwin* | rhapsody*)
9497
archive_cmds_need_lc=no
9499
hardcode_automatic=yes
9500
hardcode_shlibpath_var=unsupported
9501
if test "$lt_cv_ld_force_load" = "yes"; then
9502
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9505
whole_archive_flag_spec=''
9507
link_all_deplibs=yes
9508
allow_undefined_flag="$_lt_dar_allow_undefined"
9509
case $cc_basename in
9510
ifort*) _lt_dar_can_shared=yes ;;
9511
*) _lt_dar_can_shared=$GCC ;;
9513
if test "$_lt_dar_can_shared" = "yes"; then
9514
output_verbose_link_cmd=func_echo_all
9515
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9516
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9517
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}"
9518
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}"
9527
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528
hardcode_libdir_flag_spec='-L$libdir'
9529
hardcode_shlibpath_var=no
9532
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9533
# support. Future versions do this automatically, but an explicit c++rt0.o
9534
# does not break anything, and helps significantly (at the cost of a little
9537
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9538
hardcode_libdir_flag_spec='-R$libdir'
9540
hardcode_shlibpath_var=no
9543
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9545
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9547
hardcode_minus_L=yes
9548
hardcode_shlibpath_var=no
9551
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9552
freebsd* | dragonfly*)
9553
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9554
hardcode_libdir_flag_spec='-R$libdir'
9556
hardcode_shlibpath_var=no
9560
if test "$GCC" = yes; then
9561
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9563
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'
9565
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9566
hardcode_libdir_separator=:
9569
# hardcode_minus_L: Not really in the search PATH,
9570
# but as the default location of the library.
9571
hardcode_minus_L=yes
9572
export_dynamic_flag_spec='${wl}-E'
9576
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9577
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9579
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9581
if test "$with_gnu_ld" = no; then
9582
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9583
hardcode_libdir_separator=:
9585
hardcode_direct_absolute=yes
9586
export_dynamic_flag_spec='${wl}-E'
9587
# hardcode_minus_L: Not really in the search PATH,
9588
# but as the default location of the library.
9589
hardcode_minus_L=yes
9594
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9597
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9603
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9609
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9612
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9616
# Older versions of the 11.00 compiler do not understand -b yet
9617
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9619
$as_echo_n "checking if $CC understands -b... " >&6; }
9620
if ${lt_cv_prog_compiler__b+:} false; then :
9621
$as_echo_n "(cached) " >&6
9623
lt_cv_prog_compiler__b=no
9624
save_LDFLAGS="$LDFLAGS"
9625
LDFLAGS="$LDFLAGS -b"
9626
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9627
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9628
# The linker can only warn and ignore the option if not recognized
9629
# So say no if there are warnings
9630
if test -s conftest.err; then
9631
# Append any errors to the config.log.
9632
cat conftest.err 1>&5
9633
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9634
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9635
if diff conftest.exp conftest.er2 >/dev/null; then
9636
lt_cv_prog_compiler__b=yes
9639
lt_cv_prog_compiler__b=yes
9643
LDFLAGS="$save_LDFLAGS"
9646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9647
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9649
if test x"$lt_cv_prog_compiler__b" = xyes; then
9650
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9652
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9658
if test "$with_gnu_ld" = no; then
9659
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9660
hardcode_libdir_separator=:
9665
hardcode_shlibpath_var=no
9669
hardcode_direct_absolute=yes
9670
export_dynamic_flag_spec='${wl}-E'
9672
# hardcode_minus_L: Not really in the search PATH,
9673
# but as the default location of the library.
9674
hardcode_minus_L=yes
9680
irix5* | irix6* | nonstopux*)
9681
if test "$GCC" = yes; then
9682
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9683
# Try to use the -exported_symbol ld option, if it does not
9684
# work, assume that -exports_file does not work either and
9685
# implicitly export all symbols.
9686
# This should be the same for all languages, so no per-tag cache variable.
9687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9688
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9689
if ${lt_cv_irix_exported_symbol+:} false; then :
9690
$as_echo_n "(cached) " >&6
9692
save_LDFLAGS="$LDFLAGS"
9693
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9694
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695
/* end confdefs.h. */
9696
int foo (void) { return 0; }
9698
if ac_fn_c_try_link "$LINENO"; then :
9699
lt_cv_irix_exported_symbol=yes
9701
lt_cv_irix_exported_symbol=no
9703
rm -f core conftest.err conftest.$ac_objext \
9704
conftest$ac_exeext conftest.$ac_ext
9705
LDFLAGS="$save_LDFLAGS"
9707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9708
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9709
if test "$lt_cv_irix_exported_symbol" = yes; then
9710
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9713
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9714
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9716
archive_cmds_need_lc='no'
9717
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9718
hardcode_libdir_separator=:
9720
link_all_deplibs=yes
9723
netbsd* | netbsdelf*-gnu)
9724
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9725
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9727
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9729
hardcode_libdir_flag_spec='-R$libdir'
9731
hardcode_shlibpath_var=no
9735
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9738
hardcode_libdir_separator=:
9739
hardcode_shlibpath_var=no
9746
if test -f /usr/libexec/ld.so; then
9748
hardcode_shlibpath_var=no
9749
hardcode_direct_absolute=yes
9750
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9751
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9752
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9753
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9754
export_dynamic_flag_spec='${wl}-E'
9757
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9758
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9759
hardcode_libdir_flag_spec='-R$libdir'
9762
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9763
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9773
hardcode_libdir_flag_spec='-L$libdir'
9774
hardcode_minus_L=yes
9775
allow_undefined_flag=unsupported
9776
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'
9777
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9781
if test "$GCC" = yes; then
9782
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9783
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9785
allow_undefined_flag=' -expect_unresolved \*'
9786
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9788
archive_cmds_need_lc='no'
9789
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9790
hardcode_libdir_separator=:
9793
osf4* | osf5*) # as osf3* with the addition of -msym flag
9794
if test "$GCC" = yes; then
9795
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9796
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9797
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9799
allow_undefined_flag=' -expect_unresolved \*'
9800
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9801
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9802
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9804
# Both c and cxx compiler support -rpath directly
9805
hardcode_libdir_flag_spec='-rpath $libdir'
9807
archive_cmds_need_lc='no'
9808
hardcode_libdir_separator=:
9812
no_undefined_flag=' -z defs'
9813
if test "$GCC" = yes; then
9815
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9816
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9817
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9819
case `$CC -V 2>&1` in
9822
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9824
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9828
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9829
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9830
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9834
hardcode_libdir_flag_spec='-R$libdir'
9835
hardcode_shlibpath_var=no
9837
solaris2.[0-5] | solaris2.[0-5].*) ;;
9839
# The compiler driver will combine and reorder linker options,
9840
# but understands `-z linker_flag'. GCC discards it without `$wl',
9841
# but is careful enough not to reorder.
9842
# Supported since Solaris 2.6 (maybe 2.5.1?)
9843
if test "$GCC" = yes; then
9844
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9846
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9850
link_all_deplibs=yes
9854
if test "x$host_vendor" = xsequent; then
9855
# Use $CC to link under sequent, because it throws in some extra .o
9856
# files that make .init and .fini sections work.
9857
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9859
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9861
hardcode_libdir_flag_spec='-L$libdir'
9863
hardcode_minus_L=yes
9864
hardcode_shlibpath_var=no
9868
case $host_vendor in
9870
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871
hardcode_direct=yes # is this really true???
9874
## LD is ld it makes a PLAMLIB
9875
## CC just makes a GrossModule.
9876
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9877
reload_cmds='$CC -r -o $output$reload_objs'
9881
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9882
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9885
runpath_var='LD_RUN_PATH'
9886
hardcode_shlibpath_var=no
9890
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891
hardcode_shlibpath_var=no
9892
export_dynamic_flag_spec='-Bexport'
9896
if test -d /usr/nec; then
9897
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9898
hardcode_shlibpath_var=no
9899
runpath_var=LD_RUN_PATH
9900
hardcode_runpath_var=yes
9905
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9906
no_undefined_flag='${wl}-z,text'
9907
archive_cmds_need_lc=no
9908
hardcode_shlibpath_var=no
9909
runpath_var='LD_RUN_PATH'
9911
if test "$GCC" = yes; then
9912
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9915
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920
sysv5* | sco3.2v5* | sco5v6*)
9921
# Note: We can NOT use -z defs as we might desire, because we do not
9922
# link with -lc, and that would cause any symbols used from libc to
9923
# always be unresolved, which means just about no library would
9924
# ever link correctly. If we're not using GNU ld we use -z text
9925
# though, which does catch some bad symbols but isn't as heavy-handed
9927
no_undefined_flag='${wl}-z,text'
9928
allow_undefined_flag='${wl}-z,nodefs'
9929
archive_cmds_need_lc=no
9930
hardcode_shlibpath_var=no
9931
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9932
hardcode_libdir_separator=':'
9933
link_all_deplibs=yes
9934
export_dynamic_flag_spec='${wl}-Bexport'
9935
runpath_var='LD_RUN_PATH'
9937
if test "$GCC" = yes; then
9938
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9941
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9942
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948
hardcode_libdir_flag_spec='-L$libdir'
9949
hardcode_shlibpath_var=no
9957
if test x$host_vendor = xsni; then
9959
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9960
export_dynamic_flag_spec='${wl}-Blargedynsym'
9966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9967
$as_echo "$ld_shlibs" >&6; }
9968
test "$ld_shlibs" = no && can_build_shared=no
9970
with_gnu_ld=$with_gnu_ld
9987
# Do we need to explicitly link libc?
9989
case "x$archive_cmds_need_lc" in
9991
# Assume -lc should be added
9992
archive_cmds_need_lc=yes
9994
if test "$enable_shared" = yes && test "$GCC" = yes; then
9995
case $archive_cmds in
9997
# FIXME: we may have to deal with multi-command sequences.
10000
# Test whether the compiler implicitly links with -lc since on some
10001
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10002
# to ld, don't add -lc before -lgcc.
10003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10004
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10005
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10006
$as_echo_n "(cached) " >&6
10009
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10011
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10012
(eval $ac_compile) 2>&5
10014
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10015
test $ac_status = 0; } 2>conftest.err; then
10018
libobjs=conftest.$ac_objext
10020
wl=$lt_prog_compiler_wl
10021
pic_flag=$lt_prog_compiler_pic
10027
lt_save_allow_undefined_flag=$allow_undefined_flag
10028
allow_undefined_flag=
10029
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10030
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10032
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10033
test $ac_status = 0; }
10035
lt_cv_archive_cmds_need_lc=no
10037
lt_cv_archive_cmds_need_lc=yes
10039
allow_undefined_flag=$lt_save_allow_undefined_flag
10041
cat conftest.err 1>&5
10046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10047
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10048
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10207
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10209
if test "$GCC" = yes; then
10211
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10212
*) lt_awk_arg="/^libraries:/" ;;
10215
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10216
*) lt_sed_strip_eq="s,=/,/,g" ;;
10218
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10219
case $lt_search_path_spec in
10221
# if the path contains ";" then we assume it to be the separator
10222
# otherwise default to the standard path separator (i.e. ":") - it is
10223
# assumed that no part of a normal pathname contains ";" but that should
10224
# okay in the real world where ";" in dirpaths is itself problematic.
10225
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10228
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10231
# Ok, now we have the path, separated by spaces, we can step through it
10232
# and add multilib dir if necessary.
10233
lt_tmp_lt_search_path_spec=
10234
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10235
for lt_sys_path in $lt_search_path_spec; do
10236
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10237
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10239
test -d "$lt_sys_path" && \
10240
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10243
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10244
BEGIN {RS=" "; FS="/|\n";} {
10247
for (lt_i = NF; lt_i > 0; lt_i--) {
10248
if ($lt_i != "" && $lt_i != ".") {
10249
if ($lt_i == "..") {
10252
if (lt_count == 0) {
10253
lt_foo="/" $lt_i lt_foo;
10260
if (lt_foo != "") { lt_freq[lt_foo]++; }
10261
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10263
# AWK program above erroneously prepends '/' to C:/dos/paths
10266
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10267
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10269
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10271
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10273
library_names_spec=
10274
libname_spec='lib$name'
10278
postuninstall_cmds=
10282
shlibpath_overrides_runpath=unknown
10284
dynamic_linker="$host_os ld.so"
10285
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10286
need_lib_prefix=unknown
10287
hardcode_into_libs=no
10289
# when you set need_version to no, make sure it does not cause -set_version
10290
# flags to be left without arguments
10291
need_version=unknown
10295
version_type=linux # correct to gnu/linux during the next big refactor
10296
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10297
shlibpath_var=LIBPATH
10299
# AIX 3 has no versioning support, so we append a major version to the name.
10300
soname_spec='${libname}${release}${shared_ext}$major'
10304
version_type=linux # correct to gnu/linux during the next big refactor
10307
hardcode_into_libs=yes
10308
if test "$host_cpu" = ia64; then
10309
# AIX 5 supports IA64
10310
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10311
shlibpath_var=LD_LIBRARY_PATH
10313
# With GCC up to 2.95.x, collect2 would create an import file
10314
# for dependence libraries. The import file would start with
10315
# the line `#! .'. This would cause the generated library to
10316
# depend on `.', always an invalid library. This was fixed in
10317
# development snapshots of GCC prior to 3.0.
10319
aix4 | aix4.[01] | aix4.[01].*)
10320
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10322
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10325
can_build_shared=no
10329
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10330
# soname into executable. Probably we can add versioning support to
10331
# collect2, so additional links can be useful in future.
10332
if test "$aix_use_runtimelinking" = yes; then
10333
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10334
# instead of lib<name>.a to let people know that these are not
10335
# typical AIX shared libraries.
10336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338
# We preserve .a as extension for shared libraries through AIX4.2
10339
# and later when we are not doing run time linking.
10340
library_names_spec='${libname}${release}.a $libname.a'
10341
soname_spec='${libname}${release}${shared_ext}$major'
10343
shlibpath_var=LIBPATH
10350
# Since July 2007 AmigaOS4 officially supports .so libraries.
10351
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355
library_names_spec='$libname.ixlibrary $libname.a'
10356
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10357
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10363
library_names_spec='${libname}${shared_ext}'
10364
dynamic_linker="$host_os ld.so"
10365
shlibpath_var=LIBRARY_PATH
10369
version_type=linux # correct to gnu/linux during the next big refactor
10371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372
soname_spec='${libname}${release}${shared_ext}$major'
10373
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10374
shlibpath_var=LD_LIBRARY_PATH
10375
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10376
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10377
# the default ld.so.conf also contains /usr/contrib/lib and
10378
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10379
# libtool to hard-code these into programs
10382
cygwin* | mingw* | pw32* | cegcc*)
10383
version_type=windows
10388
case $GCC,$cc_basename in
10391
library_names_spec='$libname.dll.a'
10392
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10393
postinstall_cmds='base_file=`basename \${file}`~
10394
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10395
dldir=$destdir/`dirname \$dlpath`~
10396
test -d \$dldir || mkdir -p \$dldir~
10397
$install_prog $dir/$dlname \$dldir/$dlname~
10398
chmod a+x \$dldir/$dlname~
10399
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10400
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10402
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10403
dlpath=$dir/\$dldll~
10405
shlibpath_overrides_runpath=yes
10409
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10410
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10415
# MinGW DLLs use traditional 'lib' prefix
10416
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10419
# pw32 DLLs use 'pw' prefix rather than 'lib'
10420
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10423
dynamic_linker='Win32 ld.exe'
10428
libname_spec='$name'
10429
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10430
library_names_spec='${libname}.dll.lib'
10434
sys_lib_search_path_spec=
10437
for lt_path in $LIB
10440
# Let DOS variable expansion print the short 8.3 style file name.
10441
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10442
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10445
# Convert to MSYS style.
10446
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10449
# Convert to unix form, then to dos form, then back to unix form
10450
# but this time dos style (no spaces!) so that the unix form looks
10451
# like /cygdrive/c/PROGRA~1:/cygdr...
10452
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10453
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10454
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10457
sys_lib_search_path_spec="$LIB"
10458
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10459
# It is most probably a Windows format PATH.
10460
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10462
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10464
# FIXME: find the short name or the path components, as spaces are
10465
# common. (e.g. "Program Files" -> "PROGRA~1")
10469
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10470
postinstall_cmds='base_file=`basename \${file}`~
10471
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10472
dldir=$destdir/`dirname \$dlpath`~
10473
test -d \$dldir || mkdir -p \$dldir~
10474
$install_prog $dir/$dlname \$dldir/$dlname'
10475
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10476
dlpath=$dir/\$dldll~
10478
shlibpath_overrides_runpath=yes
10479
dynamic_linker='Win32 link.exe'
10483
# Assume MSVC wrapper
10484
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10485
dynamic_linker='Win32 ld.exe'
10488
# FIXME: first we should search . and the directory the executable is in
10492
darwin* | rhapsody*)
10493
dynamic_linker="$host_os dyld"
10494
version_type=darwin
10497
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10498
soname_spec='${libname}${release}${major}$shared_ext'
10499
shlibpath_overrides_runpath=yes
10500
shlibpath_var=DYLD_LIBRARY_PATH
10501
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10503
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10504
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10508
version_type=linux # correct to gnu/linux during the next big refactor
10511
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10512
soname_spec='${libname}${release}${shared_ext}$major'
10513
shlibpath_var=LD_LIBRARY_PATH
10516
freebsd* | dragonfly*)
10517
# DragonFly does not have aout. When/if they implement a new
10518
# versioning mechanism, adjust this.
10519
if test -x /usr/bin/objformat; then
10520
objformat=`/usr/bin/objformat`
10523
freebsd[23].*) objformat=aout ;;
10524
*) objformat=elf ;;
10527
version_type=freebsd-$objformat
10528
case $version_type in
10530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10535
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10539
shlibpath_var=LD_LIBRARY_PATH
10542
shlibpath_overrides_runpath=yes
10544
freebsd3.[01]* | freebsdelf3.[01]*)
10545
shlibpath_overrides_runpath=yes
10546
hardcode_into_libs=yes
10548
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10549
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10550
shlibpath_overrides_runpath=no
10551
hardcode_into_libs=yes
10553
*) # from 4.6 on, and DragonFly
10554
shlibpath_overrides_runpath=yes
10555
hardcode_into_libs=yes
10561
version_type=linux # correct to gnu/linux during the next big refactor
10564
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10565
soname_spec='${libname}${release}${shared_ext}$major'
10566
shlibpath_var=LD_LIBRARY_PATH
10567
shlibpath_overrides_runpath=no
10568
hardcode_into_libs=yes
10572
version_type=linux # correct to gnu/linux during the next big refactor
10575
dynamic_linker="$host_os runtime_loader"
10576
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10577
soname_spec='${libname}${release}${shared_ext}$major'
10578
shlibpath_var=LIBRARY_PATH
10579
shlibpath_overrides_runpath=yes
10580
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10581
hardcode_into_libs=yes
10584
hpux9* | hpux10* | hpux11*)
10585
# Give a soname corresponding to the major version so that dld.sl refuses to
10586
# link against other versions.
10593
hardcode_into_libs=yes
10594
dynamic_linker="$host_os dld.so"
10595
shlibpath_var=LD_LIBRARY_PATH
10596
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10597
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598
soname_spec='${libname}${release}${shared_ext}$major'
10599
if test "X$HPUX_IA64_MODE" = X32; then
10600
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10602
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10604
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10608
hardcode_into_libs=yes
10609
dynamic_linker="$host_os dld.sl"
10610
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10611
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10612
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613
soname_spec='${libname}${release}${shared_ext}$major'
10614
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10615
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10619
dynamic_linker="$host_os dld.sl"
10620
shlibpath_var=SHLIB_PATH
10621
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623
soname_spec='${libname}${release}${shared_ext}$major'
10626
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10627
postinstall_cmds='chmod 555 $lib'
10628
# or fails outright, so override atomically:
10629
install_override_mode=555
10633
version_type=linux # correct to gnu/linux during the next big refactor
10636
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10637
soname_spec='${libname}${release}${shared_ext}$major'
10638
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10639
shlibpath_var=LD_LIBRARY_PATH
10640
shlibpath_overrides_runpath=no
10641
hardcode_into_libs=yes
10644
irix5* | irix6* | nonstopux*)
10646
nonstopux*) version_type=nonstopux ;;
10648
if test "$lt_cv_prog_gnu_ld" = yes; then
10649
version_type=linux # correct to gnu/linux during the next big refactor
10656
soname_spec='${libname}${release}${shared_ext}$major'
10657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10659
irix5* | nonstopux*)
10660
libsuff= shlibsuff=
10663
case $LD in # libtool.m4 will add one of these switches to LD
10664
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10665
libsuff= shlibsuff= libmagic=32-bit;;
10666
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10667
libsuff=32 shlibsuff=N32 libmagic=N32;;
10668
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10669
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10670
*) libsuff= shlibsuff= libmagic=never-match;;
10674
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10675
shlibpath_overrides_runpath=no
10676
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10677
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10678
hardcode_into_libs=yes
10681
# No shared lib support for Linux oldld, aout, or coff.
10682
linux*oldld* | linux*aout* | linux*coff*)
10686
# This must be glibc/ELF.
10687
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10688
version_type=linux # correct to gnu/linux during the next big refactor
10691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692
soname_spec='${libname}${release}${shared_ext}$major'
10693
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10694
shlibpath_var=LD_LIBRARY_PATH
10695
shlibpath_overrides_runpath=no
10697
# Some binutils ld are patched to set DT_RUNPATH
10698
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10699
$as_echo_n "(cached) " >&6
10701
lt_cv_shlibpath_overrides_runpath=no
10702
save_LDFLAGS=$LDFLAGS
10703
save_libdir=$libdir
10704
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10705
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707
/* end confdefs.h. */
10717
if ac_fn_c_try_link "$LINENO"; then :
10718
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10719
lt_cv_shlibpath_overrides_runpath=yes
10722
rm -f core conftest.err conftest.$ac_objext \
10723
conftest$ac_exeext conftest.$ac_ext
10724
LDFLAGS=$save_LDFLAGS
10725
libdir=$save_libdir
10729
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10731
# This implies no fast_install, which is unacceptable.
10732
# Some rework will be needed to allow for fast_install
10733
# before this can be enabled.
10734
hardcode_into_libs=yes
10736
# Append ld.so.conf contents to the search path
10737
if test -f /etc/ld.so.conf; then
10738
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10739
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10742
# We used to test for /lib/ld.so.1 and disable shared libraries on
10743
# powerpc, because MkLinux only supported shared libraries with the
10744
# GNU dynamic linker. Since this was broken with cross compilers,
10745
# most powerpc-linux boxes support dynamic linking these days and
10746
# people can always --disable-shared, the test was removed, and we
10747
# assume the GNU/Linux dynamic linker is in use.
10748
dynamic_linker='GNU/Linux ld.so'
10755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10756
soname_spec='${libname}${release}${shared_ext}$major'
10757
shlibpath_var=LD_LIBRARY_PATH
10758
shlibpath_overrides_runpath=no
10759
hardcode_into_libs=yes
10760
dynamic_linker='NetBSD ld.elf_so'
10767
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10769
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10770
dynamic_linker='NetBSD (a.out) ld.so'
10772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10773
soname_spec='${libname}${release}${shared_ext}$major'
10774
dynamic_linker='NetBSD ld.elf_so'
10776
shlibpath_var=LD_LIBRARY_PATH
10777
shlibpath_overrides_runpath=yes
10778
hardcode_into_libs=yes
10782
version_type=linux # correct to gnu/linux during the next big refactor
10783
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784
shlibpath_var=LD_LIBRARY_PATH
10785
shlibpath_overrides_runpath=yes
10792
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793
soname_spec='${libname}${release}${shared_ext}$major'
10794
shlibpath_var=LD_LIBRARY_PATH
10795
shlibpath_overrides_runpath=no
10796
hardcode_into_libs=yes
10797
dynamic_linker='ldqnx.so'
10802
sys_lib_dlsearch_path_spec="/usr/lib"
10804
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10806
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10807
*) need_version=no ;;
10809
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10810
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10811
shlibpath_var=LD_LIBRARY_PATH
10812
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10814
openbsd2.[89] | openbsd2.[89].*)
10815
shlibpath_overrides_runpath=no
10818
shlibpath_overrides_runpath=yes
10822
shlibpath_overrides_runpath=yes
10827
libname_spec='$name'
10830
library_names_spec='$libname${shared_ext} $libname.a'
10831
dynamic_linker='OS/2 ld.exe'
10832
shlibpath_var=LIBPATH
10835
osf3* | osf4* | osf5*)
10839
soname_spec='${libname}${release}${shared_ext}$major'
10840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841
shlibpath_var=LD_LIBRARY_PATH
10842
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10843
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10851
version_type=linux # correct to gnu/linux during the next big refactor
10854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855
soname_spec='${libname}${release}${shared_ext}$major'
10856
shlibpath_var=LD_LIBRARY_PATH
10857
shlibpath_overrides_runpath=yes
10858
hardcode_into_libs=yes
10859
# ldd complains unless libraries are executable
10860
postinstall_cmds='chmod +x $lib'
10865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10866
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10867
shlibpath_var=LD_LIBRARY_PATH
10868
shlibpath_overrides_runpath=yes
10869
if test "$with_gnu_ld" = yes; then
10876
version_type=linux # correct to gnu/linux during the next big refactor
10877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878
soname_spec='${libname}${release}${shared_ext}$major'
10879
shlibpath_var=LD_LIBRARY_PATH
10880
case $host_vendor in
10882
shlibpath_overrides_runpath=no
10884
runpath_var=LD_RUN_PATH
10892
shlibpath_overrides_runpath=no
10893
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10899
if test -d /usr/nec ;then
10900
version_type=linux # correct to gnu/linux during the next big refactor
10901
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10902
soname_spec='$libname${shared_ext}.$major'
10903
shlibpath_var=LD_LIBRARY_PATH
10907
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10908
version_type=freebsd-elf
10911
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10912
soname_spec='${libname}${release}${shared_ext}$major'
10913
shlibpath_var=LD_LIBRARY_PATH
10914
shlibpath_overrides_runpath=yes
10915
hardcode_into_libs=yes
10916
if test "$with_gnu_ld" = yes; then
10917
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10919
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10922
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10926
sys_lib_dlsearch_path_spec='/usr/lib'
10930
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10931
version_type=linux # correct to gnu/linux during the next big refactor
10934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935
shlibpath_var=LD_LIBRARY_PATH
10936
shlibpath_overrides_runpath=no
10937
hardcode_into_libs=yes
10941
version_type=linux # correct to gnu/linux during the next big refactor
10942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943
soname_spec='${libname}${release}${shared_ext}$major'
10944
shlibpath_var=LD_LIBRARY_PATH
10951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10952
$as_echo "$dynamic_linker" >&6; }
10953
test "$dynamic_linker" = no && can_build_shared=no
10955
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10956
if test "$GCC" = yes; then
10957
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10960
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10961
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10963
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10964
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11059
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11061
if test -n "$hardcode_libdir_flag_spec" ||
11062
test -n "$runpath_var" ||
11063
test "X$hardcode_automatic" = "Xyes" ; then
11065
# We can hardcode non-existent directories.
11066
if test "$hardcode_direct" != no &&
11067
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11068
# have to relink, otherwise we might link with an installed library
11069
# when we should be linking with a yet-to-be-installed one
11070
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11071
test "$hardcode_minus_L" != no; then
11072
# Linking always hardcodes the temporary library directory.
11073
hardcode_action=relink
11075
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11076
hardcode_action=immediate
11079
# We cannot hardcode anything, or else we can only hardcode existing
11081
hardcode_action=unsupported
11083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11084
$as_echo "$hardcode_action" >&6; }
11086
if test "$hardcode_action" = relink ||
11087
test "$inherit_rpath" = yes; then
11088
# Fast installation is not supported
11089
enable_fast_install=no
11090
elif test "$shlibpath_overrides_runpath" = yes ||
11091
test "$enable_shared" = no; then
11092
# Fast installation is not necessary
11093
enable_fast_install=needless
11101
if test "x$enable_dlopen" != xyes; then
11102
enable_dlopen=unknown
11103
enable_dlopen_self=unknown
11104
enable_dlopen_self_static=unknown
11111
lt_cv_dlopen="load_add_on"
11113
lt_cv_dlopen_self=yes
11116
mingw* | pw32* | cegcc*)
11117
lt_cv_dlopen="LoadLibrary"
11122
lt_cv_dlopen="dlopen"
11127
# if libdl is installed we need to link against it
11128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11129
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11130
if ${ac_cv_lib_dl_dlopen+:} false; then :
11131
$as_echo_n "(cached) " >&6
11133
ac_check_lib_save_LIBS=$LIBS
11135
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136
/* end confdefs.h. */
11138
/* Override any GCC internal prototype to avoid an error.
11139
Use char because int might match the return type of a GCC
11140
builtin and then its argument prototype would still apply. */
11153
if ac_fn_c_try_link "$LINENO"; then :
11154
ac_cv_lib_dl_dlopen=yes
11156
ac_cv_lib_dl_dlopen=no
11158
rm -f core conftest.err conftest.$ac_objext \
11159
conftest$ac_exeext conftest.$ac_ext
11160
LIBS=$ac_check_lib_save_LIBS
11162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11163
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11164
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11165
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11168
lt_cv_dlopen="dyld"
11170
lt_cv_dlopen_self=yes
11177
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11178
if test "x$ac_cv_func_shl_load" = xyes; then :
11179
lt_cv_dlopen="shl_load"
11181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11182
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11183
if ${ac_cv_lib_dld_shl_load+:} false; then :
11184
$as_echo_n "(cached) " >&6
11186
ac_check_lib_save_LIBS=$LIBS
11188
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189
/* end confdefs.h. */
11191
/* Override any GCC internal prototype to avoid an error.
11192
Use char because int might match the return type of a GCC
11193
builtin and then its argument prototype would still apply. */
11201
return shl_load ();
11206
if ac_fn_c_try_link "$LINENO"; then :
11207
ac_cv_lib_dld_shl_load=yes
11209
ac_cv_lib_dld_shl_load=no
11211
rm -f core conftest.err conftest.$ac_objext \
11212
conftest$ac_exeext conftest.$ac_ext
11213
LIBS=$ac_check_lib_save_LIBS
11215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11216
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11217
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11218
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11220
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11221
if test "x$ac_cv_func_dlopen" = xyes; then :
11222
lt_cv_dlopen="dlopen"
11224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11225
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11226
if ${ac_cv_lib_dl_dlopen+:} false; then :
11227
$as_echo_n "(cached) " >&6
11229
ac_check_lib_save_LIBS=$LIBS
11231
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232
/* end confdefs.h. */
11234
/* Override any GCC internal prototype to avoid an error.
11235
Use char because int might match the return type of a GCC
11236
builtin and then its argument prototype would still apply. */
11249
if ac_fn_c_try_link "$LINENO"; then :
11250
ac_cv_lib_dl_dlopen=yes
11252
ac_cv_lib_dl_dlopen=no
11254
rm -f core conftest.err conftest.$ac_objext \
11255
conftest$ac_exeext conftest.$ac_ext
11256
LIBS=$ac_check_lib_save_LIBS
11258
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11259
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11260
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11261
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11264
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11265
if ${ac_cv_lib_svld_dlopen+:} false; then :
11266
$as_echo_n "(cached) " >&6
11268
ac_check_lib_save_LIBS=$LIBS
11269
LIBS="-lsvld $LIBS"
11270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271
/* end confdefs.h. */
11273
/* Override any GCC internal prototype to avoid an error.
11274
Use char because int might match the return type of a GCC
11275
builtin and then its argument prototype would still apply. */
11288
if ac_fn_c_try_link "$LINENO"; then :
11289
ac_cv_lib_svld_dlopen=yes
11291
ac_cv_lib_svld_dlopen=no
11293
rm -f core conftest.err conftest.$ac_objext \
11294
conftest$ac_exeext conftest.$ac_ext
11295
LIBS=$ac_check_lib_save_LIBS
11297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11298
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11299
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11300
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11303
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11304
if ${ac_cv_lib_dld_dld_link+:} false; then :
11305
$as_echo_n "(cached) " >&6
11307
ac_check_lib_save_LIBS=$LIBS
11309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310
/* end confdefs.h. */
11312
/* Override any GCC internal prototype to avoid an error.
11313
Use char because int might match the return type of a GCC
11314
builtin and then its argument prototype would still apply. */
11322
return dld_link ();
11327
if ac_fn_c_try_link "$LINENO"; then :
11328
ac_cv_lib_dld_dld_link=yes
11330
ac_cv_lib_dld_dld_link=no
11332
rm -f core conftest.err conftest.$ac_objext \
11333
conftest$ac_exeext conftest.$ac_ext
11334
LIBS=$ac_check_lib_save_LIBS
11336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11337
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11338
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11339
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11360
if test "x$lt_cv_dlopen" != xno; then
11366
case $lt_cv_dlopen in
11368
save_CPPFLAGS="$CPPFLAGS"
11369
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11371
save_LDFLAGS="$LDFLAGS"
11372
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11375
LIBS="$lt_cv_dlopen_libs $LIBS"
11377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11378
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11379
if ${lt_cv_dlopen_self+:} false; then :
11380
$as_echo_n "(cached) " >&6
11382
if test "$cross_compiling" = yes; then :
11383
lt_cv_dlopen_self=cross
11385
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11386
lt_status=$lt_dlunknown
11387
cat > conftest.$ac_ext <<_LT_EOF
11388
#line $LINENO "configure"
11389
#include "confdefs.h"
11398
# define LT_DLGLOBAL RTLD_GLOBAL
11401
# define LT_DLGLOBAL DL_GLOBAL
11403
# define LT_DLGLOBAL 0
11407
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11408
find out it does not work in some platform. */
11409
#ifndef LT_DLLAZY_OR_NOW
11411
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11414
# define LT_DLLAZY_OR_NOW DL_LAZY
11417
# define LT_DLLAZY_OR_NOW RTLD_NOW
11420
# define LT_DLLAZY_OR_NOW DL_NOW
11422
# define LT_DLLAZY_OR_NOW 0
11429
/* When -fvisbility=hidden is used, assume the code has been annotated
11430
correspondingly for the symbols needed. */
11431
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11432
int fnord () __attribute__((visibility("default")));
11435
int fnord () { return 42; }
11438
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11439
int status = $lt_dlunknown;
11443
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11446
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11447
else puts (dlerror ());
11449
/* dlclose (self); */
11457
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11458
(eval $ac_link) 2>&5
11460
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11461
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11462
(./conftest; exit; ) >&5 2>/dev/null
11464
case x$lt_status in
11465
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11466
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11467
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11470
# compilation failed
11471
lt_cv_dlopen_self=no
11478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11479
$as_echo "$lt_cv_dlopen_self" >&6; }
11481
if test "x$lt_cv_dlopen_self" = xyes; then
11482
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11484
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11485
if ${lt_cv_dlopen_self_static+:} false; then :
11486
$as_echo_n "(cached) " >&6
11488
if test "$cross_compiling" = yes; then :
11489
lt_cv_dlopen_self_static=cross
11491
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11492
lt_status=$lt_dlunknown
11493
cat > conftest.$ac_ext <<_LT_EOF
11494
#line $LINENO "configure"
11495
#include "confdefs.h"
11504
# define LT_DLGLOBAL RTLD_GLOBAL
11507
# define LT_DLGLOBAL DL_GLOBAL
11509
# define LT_DLGLOBAL 0
11513
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11514
find out it does not work in some platform. */
11515
#ifndef LT_DLLAZY_OR_NOW
11517
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11520
# define LT_DLLAZY_OR_NOW DL_LAZY
11523
# define LT_DLLAZY_OR_NOW RTLD_NOW
11526
# define LT_DLLAZY_OR_NOW DL_NOW
11528
# define LT_DLLAZY_OR_NOW 0
11535
/* When -fvisbility=hidden is used, assume the code has been annotated
11536
correspondingly for the symbols needed. */
11537
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11538
int fnord () __attribute__((visibility("default")));
11541
int fnord () { return 42; }
11544
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11545
int status = $lt_dlunknown;
11549
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11552
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11553
else puts (dlerror ());
11555
/* dlclose (self); */
11563
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11564
(eval $ac_link) 2>&5
11566
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11568
(./conftest; exit; ) >&5 2>/dev/null
11570
case x$lt_status in
11571
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11572
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11573
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11576
# compilation failed
11577
lt_cv_dlopen_self_static=no
11584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11585
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11588
CPPFLAGS="$save_CPPFLAGS"
11589
LDFLAGS="$save_LDFLAGS"
11594
case $lt_cv_dlopen_self in
11595
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11596
*) enable_dlopen_self=unknown ;;
11599
case $lt_cv_dlopen_self_static in
11600
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11601
*) enable_dlopen_self_static=unknown ;;
11623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11624
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11625
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11626
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11627
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11629
$as_echo "yes" >&6; }
11631
# FIXME - insert some real tests, host_os isn't really good enough
11634
if test -n "$STRIP" ; then
11635
striplib="$STRIP -x"
11636
old_striplib="$STRIP -S"
11637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638
$as_echo "yes" >&6; }
11640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641
$as_echo "no" >&6; }
11645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646
$as_echo "no" >&6; }
11662
# Report which library types will actually be built
11663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11664
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11666
$as_echo "$can_build_shared" >&6; }
11668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11669
$as_echo_n "checking whether to build shared libraries... " >&6; }
11670
test "$can_build_shared" = "no" && enable_shared=no
11672
# On AIX, shared libraries and static libraries use the same namespace, and
11673
# are all built from PIC.
11676
test "$enable_shared" = yes && enable_static=no
11677
if test -n "$RANLIB"; then
11678
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11679
postinstall_cmds='$RANLIB $lib'
11684
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11685
test "$enable_shared" = yes && enable_static=no
11689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11690
$as_echo "$enable_shared" >&6; }
11692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11693
$as_echo_n "checking whether to build static libraries... " >&6; }
11694
# Make sure either enable_shared or enable_static is yes.
11695
test "$enable_shared" = yes || enable_static=yes
11696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11697
$as_echo "$enable_static" >&6; }
11704
ac_cpp='$CXXCPP $CPPFLAGS'
11705
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11706
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11707
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11711
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11712
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11713
(test "X$CXX" != "Xg++"))) ; then
11715
ac_cpp='$CXXCPP $CPPFLAGS'
11716
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11720
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11721
if test -z "$CXXCPP"; then
11722
if ${ac_cv_prog_CXXCPP+:} false; then :
11723
$as_echo_n "(cached) " >&6
11725
# Double quotes because CXXCPP needs to be expanded
11726
for CXXCPP in "$CXX -E" "/lib/cpp"
11728
ac_preproc_ok=false
11729
for ac_cxx_preproc_warn_flag in '' yes
11731
# Use a header file that comes with gcc, so configuring glibc
11732
# with a fresh cross-compiler works.
11733
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11734
# <limits.h> exists even on freestanding compilers.
11735
# On the NeXT, cc -E runs the code through the compiler's parser,
11736
# not just through cpp. "Syntax error" is here to catch this case.
11737
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738
/* end confdefs.h. */
11740
# include <limits.h>
11742
# include <assert.h>
11746
if ac_fn_cxx_try_cpp "$LINENO"; then :
11749
# Broken: fails on valid input.
11752
rm -f conftest.err conftest.i conftest.$ac_ext
11754
# OK, works on sane cases. Now check whether nonexistent headers
11755
# can be detected and how.
11756
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757
/* end confdefs.h. */
11758
#include <ac_nonexistent.h>
11760
if ac_fn_cxx_try_cpp "$LINENO"; then :
11761
# Broken: success on invalid input.
11764
# Passes both tests.
11768
rm -f conftest.err conftest.i conftest.$ac_ext
11771
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11772
rm -f conftest.i conftest.err conftest.$ac_ext
11773
if $ac_preproc_ok; then :
11778
ac_cv_prog_CXXCPP=$CXXCPP
11781
CXXCPP=$ac_cv_prog_CXXCPP
11783
ac_cv_prog_CXXCPP=$CXXCPP
11785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11786
$as_echo "$CXXCPP" >&6; }
11787
ac_preproc_ok=false
11788
for ac_cxx_preproc_warn_flag in '' yes
11790
# Use a header file that comes with gcc, so configuring glibc
11791
# with a fresh cross-compiler works.
11792
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11793
# <limits.h> exists even on freestanding compilers.
11794
# On the NeXT, cc -E runs the code through the compiler's parser,
11795
# not just through cpp. "Syntax error" is here to catch this case.
11796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797
/* end confdefs.h. */
11799
# include <limits.h>
11801
# include <assert.h>
11805
if ac_fn_cxx_try_cpp "$LINENO"; then :
11808
# Broken: fails on valid input.
11811
rm -f conftest.err conftest.i conftest.$ac_ext
11813
# OK, works on sane cases. Now check whether nonexistent headers
11814
# can be detected and how.
11815
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816
/* end confdefs.h. */
11817
#include <ac_nonexistent.h>
11819
if ac_fn_cxx_try_cpp "$LINENO"; then :
11820
# Broken: success on invalid input.
11823
# Passes both tests.
11827
rm -f conftest.err conftest.i conftest.$ac_ext
11830
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11831
rm -f conftest.i conftest.err conftest.$ac_ext
11832
if $ac_preproc_ok; then :
11835
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11836
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11837
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11838
See \`config.log' for more details" "$LINENO" 5; }
11842
ac_cpp='$CXXCPP $CPPFLAGS'
11843
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11844
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11845
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11848
_lt_caught_CXX_error=yes
11852
ac_cpp='$CXXCPP $CPPFLAGS'
11853
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11857
archive_cmds_need_lc_CXX=no
11858
allow_undefined_flag_CXX=
11859
always_export_symbols_CXX=no
11860
archive_expsym_cmds_CXX=
11861
compiler_needs_object_CXX=no
11862
export_dynamic_flag_spec_CXX=
11863
hardcode_direct_CXX=no
11864
hardcode_direct_absolute_CXX=no
11865
hardcode_libdir_flag_spec_CXX=
11866
hardcode_libdir_separator_CXX=
11867
hardcode_minus_L_CXX=no
11868
hardcode_shlibpath_var_CXX=unsupported
11869
hardcode_automatic_CXX=no
11870
inherit_rpath_CXX=no
11872
module_expsym_cmds_CXX=
11873
link_all_deplibs_CXX=unknown
11874
old_archive_cmds_CXX=$old_archive_cmds
11875
reload_flag_CXX=$reload_flag
11876
reload_cmds_CXX=$reload_cmds
11877
no_undefined_flag_CXX=
11878
whole_archive_flag_spec_CXX=
11879
enable_shared_with_static_runtimes_CXX=no
11881
# Source file extension for C++ test sources.
11884
# Object file extension for compiled C++ test sources.
11888
# No sense in running all these tests if we already determined that
11889
# the CXX compiler isn't working. Some variables (like enable_shared)
11890
# are currently assumed to apply to all compilers on this platform,
11891
# and will be corrupted by setting them based on a non-working compiler.
11892
if test "$_lt_caught_CXX_error" != yes; then
11893
# Code to be used in simple compile tests
11894
lt_simple_compile_test_code="int some_variable = 0;"
11896
# Code to be used in simple link tests
11897
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11899
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11906
# If no C compiler was specified, use CC.
11909
# If no C compiler flags were specified, use CFLAGS.
11910
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11912
# Allow CC to be a program name with arguments.
11916
# save warnings/boilerplate of simple test code
11917
ac_outfile=conftest.$ac_objext
11918
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11919
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11920
_lt_compiler_boilerplate=`cat conftest.err`
11923
ac_outfile=conftest.$ac_objext
11924
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11925
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11926
_lt_linker_boilerplate=`cat conftest.err`
11930
# Allow CC to be a program name with arguments.
11932
lt_save_CFLAGS=$CFLAGS
11936
lt_save_with_gnu_ld=$with_gnu_ld
11937
lt_save_path_LD=$lt_cv_path_LD
11938
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11939
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11941
$as_unset lt_cv_prog_gnu_ld
11943
if test -n "${lt_cv_path_LDCXX+set}"; then
11944
lt_cv_path_LD=$lt_cv_path_LDCXX
11946
$as_unset lt_cv_path_LD
11948
test -z "${LDCXX+set}" || LD=$LDCXX
11953
for cc_temp in $compiler""; do
11955
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11956
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11961
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11964
if test -n "$compiler"; then
11965
# We don't want -fno-exception when compiling C++ code, so set the
11966
# no_builtin_flag separately
11967
if test "$GXX" = yes; then
11968
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11970
lt_prog_compiler_no_builtin_flag_CXX=
11973
if test "$GXX" = yes; then
11974
# Set up default GNU C++ configuration
11978
# Check whether --with-gnu-ld was given.
11979
if test "${with_gnu_ld+set}" = set; then :
11980
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11986
if test "$GCC" = yes; then
11987
# Check if gcc -print-prog-name=ld gives a path.
11988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11989
$as_echo_n "checking for ld used by $CC... " >&6; }
11992
# gcc leaves a trailing carriage return which upsets mingw
11993
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11995
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11998
# Accept absolute paths.
12000
re_direlt='/[^/][^/]*/\.\./'
12001
# Canonicalize the pathname of ld
12002
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12003
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12004
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12006
test -z "$LD" && LD="$ac_prog"
12009
# If it fails, then pretend we aren't using GCC.
12013
# If it is relative, then search for the first ld in PATH.
12014
with_gnu_ld=unknown
12017
elif test "$with_gnu_ld" = yes; then
12018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12019
$as_echo_n "checking for GNU ld... " >&6; }
12021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12022
$as_echo_n "checking for non-GNU ld... " >&6; }
12024
if ${lt_cv_path_LD+:} false; then :
12025
$as_echo_n "(cached) " >&6
12027
if test -z "$LD"; then
12028
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12029
for ac_dir in $PATH; do
12031
test -z "$ac_dir" && ac_dir=.
12032
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12033
lt_cv_path_LD="$ac_dir/$ac_prog"
12034
# Check to see if the program is GNU ld. I'd rather use --version,
12035
# but apparently some variants of GNU ld only accept -v.
12036
# Break only if it was the GNU/non-GNU ld that we prefer.
12037
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12038
*GNU* | *'with BFD'*)
12039
test "$with_gnu_ld" != no && break
12042
test "$with_gnu_ld" != yes && break
12049
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12053
LD="$lt_cv_path_LD"
12054
if test -n "$LD"; then
12055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12056
$as_echo "$LD" >&6; }
12058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059
$as_echo "no" >&6; }
12061
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12063
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12064
if ${lt_cv_prog_gnu_ld+:} false; then :
12065
$as_echo_n "(cached) " >&6
12067
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12068
case `$LD -v 2>&1 </dev/null` in
12069
*GNU* | *'with BFD'*)
12070
lt_cv_prog_gnu_ld=yes
12073
lt_cv_prog_gnu_ld=no
12077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12078
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12079
with_gnu_ld=$lt_cv_prog_gnu_ld
12087
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12088
# archiving commands below assume that GNU ld is being used.
12089
if test "$with_gnu_ld" = yes; then
12090
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12091
archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12093
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12094
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12096
# If archive_cmds runs LD, not CC, wlarc should be empty
12097
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12098
# investigate it a little bit more. (MM)
12101
# ancient GNU ld didn't support --whole-archive et. al.
12102
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12103
$GREP 'no-whole-archive' > /dev/null; then
12104
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12106
whole_archive_flag_spec_CXX=
12112
# A generic and very simple default shared library creation
12113
# command for GNU C++ for the case where it uses the native
12114
# linker, instead of GNU ld. If possible, this setting should
12115
# overridden to take advantage of the native linker features on
12116
# the platform it is being used on.
12117
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12120
# Commands to make compiler produce verbose output that lists
12121
# what "hidden" libraries, object files and flags are used when
12122
# linking a shared library.
12123
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12131
# PORTME: fill in a description of your system's C++ link characteristics
12132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12133
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12137
# FIXME: insert proper C++ library support
12141
if test "$host_cpu" = ia64; then
12142
# On IA64, the linker does run time linking by default, so we don't
12143
# have to do anything special.
12144
aix_use_runtimelinking=no
12145
exp_sym_flag='-Bexport'
12148
aix_use_runtimelinking=no
12150
# Test if we are trying to use run time linking or normal
12151
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12152
# need to do runtime linking.
12153
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12154
for ld_flag in $LDFLAGS; do
12157
aix_use_runtimelinking=yes
12165
exp_sym_flag='-bexport'
12166
no_entry_flag='-bnoentry'
12169
# When large executables or shared objects are built, AIX ld can
12170
# have problems creating the table of contents. If linking a library
12171
# or program results in "error TOC overflow" add -mminimal-toc to
12172
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12173
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12175
archive_cmds_CXX=''
12176
hardcode_direct_CXX=yes
12177
hardcode_direct_absolute_CXX=yes
12178
hardcode_libdir_separator_CXX=':'
12179
link_all_deplibs_CXX=yes
12180
file_list_spec_CXX='${wl}-f,'
12182
if test "$GXX" = yes; then
12183
case $host_os in aix4.[012]|aix4.[012].*)
12184
# We only want to do this on AIX 4.2 and lower, the check
12185
# below for broken collect2 doesn't work under 4.3+
12186
collect2name=`${CC} -print-prog-name=collect2`
12187
if test -f "$collect2name" &&
12188
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12190
# We have reworked collect2
12193
# We have old collect2
12194
hardcode_direct_CXX=unsupported
12195
# It fails to find uninstalled libraries when the uninstalled
12196
# path is not listed in the libpath. Setting hardcode_minus_L
12197
# to unsupported forces relinking
12198
hardcode_minus_L_CXX=yes
12199
hardcode_libdir_flag_spec_CXX='-L$libdir'
12200
hardcode_libdir_separator_CXX=
12203
shared_flag='-shared'
12204
if test "$aix_use_runtimelinking" = yes; then
12205
shared_flag="$shared_flag "'${wl}-G'
12209
if test "$host_cpu" = ia64; then
12210
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12211
# chokes on -Wl,-G. The following line is correct:
12214
if test "$aix_use_runtimelinking" = yes; then
12215
shared_flag='${wl}-G'
12217
shared_flag='${wl}-bM:SRE'
12222
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12223
# It seems that -bexpall does not export symbols beginning with
12224
# underscore (_), so it is better to generate a list of symbols to
12226
always_export_symbols_CXX=yes
12227
if test "$aix_use_runtimelinking" = yes; then
12228
# Warning - without using the other runtime loading flags (-brtl),
12229
# -berok will link without error, but may produce a broken library.
12230
allow_undefined_flag_CXX='-berok'
12231
# Determine the default libpath from the value encoded in an empty
12233
if test "${lt_cv_aix_libpath+set}" = set; then
12234
aix_libpath=$lt_cv_aix_libpath
12236
if ${lt_cv_aix_libpath__CXX+:} false; then :
12237
$as_echo_n "(cached) " >&6
12239
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240
/* end confdefs.h. */
12250
if ac_fn_cxx_try_link "$LINENO"; then :
12252
lt_aix_libpath_sed='
12253
/Import File Strings/,/^$/ {
12255
s/^0 *\([^ ]*\) *$/\1/
12259
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12260
# Check for a 64-bit object if we didn't find anything.
12261
if test -z "$lt_cv_aix_libpath__CXX"; then
12262
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12265
rm -f core conftest.err conftest.$ac_objext \
12266
conftest$ac_exeext conftest.$ac_ext
12267
if test -z "$lt_cv_aix_libpath__CXX"; then
12268
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12273
aix_libpath=$lt_cv_aix_libpath__CXX
12276
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12278
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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12280
if test "$host_cpu" = ia64; then
12281
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12282
allow_undefined_flag_CXX="-z nodefs"
12283
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"
12285
# Determine the default libpath from the value encoded in an
12286
# empty executable.
12287
if test "${lt_cv_aix_libpath+set}" = set; then
12288
aix_libpath=$lt_cv_aix_libpath
12290
if ${lt_cv_aix_libpath__CXX+:} false; then :
12291
$as_echo_n "(cached) " >&6
12293
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294
/* end confdefs.h. */
12304
if ac_fn_cxx_try_link "$LINENO"; then :
12306
lt_aix_libpath_sed='
12307
/Import File Strings/,/^$/ {
12309
s/^0 *\([^ ]*\) *$/\1/
12313
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12314
# Check for a 64-bit object if we didn't find anything.
12315
if test -z "$lt_cv_aix_libpath__CXX"; then
12316
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12319
rm -f core conftest.err conftest.$ac_objext \
12320
conftest$ac_exeext conftest.$ac_ext
12321
if test -z "$lt_cv_aix_libpath__CXX"; then
12322
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12327
aix_libpath=$lt_cv_aix_libpath__CXX
12330
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12331
# Warning - without using the other run time loading flags,
12332
# -berok will link without error, but may produce a broken library.
12333
no_undefined_flag_CXX=' ${wl}-bernotok'
12334
allow_undefined_flag_CXX=' ${wl}-berok'
12335
if test "$with_gnu_ld" = yes; then
12336
# We only use this code for GNU lds that support --whole-archive.
12337
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12339
# Exported symbols can be pulled into shared objects from archives
12340
whole_archive_flag_spec_CXX='$convenience'
12342
archive_cmds_need_lc_CXX=yes
12343
# This is similar to how AIX traditionally builds its shared
12345
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'
12351
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12352
allow_undefined_flag_CXX=unsupported
12353
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12354
# support --undefined. This deserves some investigation. FIXME
12355
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12362
case $cc_basename in
12364
# FIXME: insert proper C++ library support
12370
cygwin* | mingw* | pw32* | cegcc*)
12371
case $GXX,$cc_basename in
12374
# hardcode_libdir_flag_spec is actually meaningless, as there is
12375
# no search path for DLLs.
12376
hardcode_libdir_flag_spec_CXX=' '
12377
allow_undefined_flag_CXX=unsupported
12378
always_export_symbols_CXX=yes
12379
file_list_spec_CXX='@'
12380
# Tell ltmain to make .lib files, not .a files.
12382
# Tell ltmain to make .dll files, not .so files.
12384
# FIXME: Setting linknames here is a bad hack.
12385
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12386
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12387
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12389
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12391
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12393
# The linker will not automatically build a static lib if we build a DLL.
12394
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12395
enable_shared_with_static_runtimes_CXX=yes
12397
old_postinstall_cmds_CXX='chmod 644 $oldlib'
12398
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12399
lt_tool_outputfile="@TOOL_OUTPUT@"~
12400
case $lt_outputfile in
12403
lt_outputfile="$lt_outputfile.exe"
12404
lt_tool_outputfile="$lt_tool_outputfile.exe"
12407
func_to_tool_file "$lt_outputfile"~
12408
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12409
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12410
$RM "$lt_outputfile.manifest";
12415
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12416
# as there is no search path for DLLs.
12417
hardcode_libdir_flag_spec_CXX='-L$libdir'
12418
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12419
allow_undefined_flag_CXX=unsupported
12420
always_export_symbols_CXX=no
12421
enable_shared_with_static_runtimes_CXX=yes
12423
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12424
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'
12425
# If the export-symbols file already is a .def file (1st line
12426
# is EXPORTS), use it as is; otherwise, prepend...
12427
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12428
cp $export_symbols $output_objdir/$soname.def;
12430
echo EXPORTS > $output_objdir/$soname.def;
12431
cat $export_symbols >> $output_objdir/$soname.def;
12433
$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'
12440
darwin* | rhapsody*)
12443
archive_cmds_need_lc_CXX=no
12444
hardcode_direct_CXX=no
12445
hardcode_automatic_CXX=yes
12446
hardcode_shlibpath_var_CXX=unsupported
12447
if test "$lt_cv_ld_force_load" = "yes"; then
12448
whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12451
whole_archive_flag_spec_CXX=''
12453
link_all_deplibs_CXX=yes
12454
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12455
case $cc_basename in
12456
ifort*) _lt_dar_can_shared=yes ;;
12457
*) _lt_dar_can_shared=$GCC ;;
12459
if test "$_lt_dar_can_shared" = "yes"; then
12460
output_verbose_link_cmd=func_echo_all
12461
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}"
12462
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12463
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}"
12464
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}"
12465
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12466
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}"
12467
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}"
12477
case $cc_basename in
12479
# FIXME: insert proper C++ library support
12483
# Green Hills C++ Compiler
12484
# FIXME: insert proper C++ library support
12488
# FIXME: insert proper C++ library support
12495
# C++ shared libraries reported to be fairly broken before
12501
archive_cmds_need_lc_CXX=no
12504
freebsd* | dragonfly*)
12505
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12514
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12515
link_all_deplibs_CXX=yes
12519
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12520
hardcode_libdir_separator_CXX=:
12521
export_dynamic_flag_spec_CXX='${wl}-E'
12522
hardcode_direct_CXX=yes
12523
hardcode_minus_L_CXX=yes # Not in the search PATH,
12524
# but as the default
12525
# location of the library.
12527
case $cc_basename in
12529
# FIXME: insert proper C++ library support
12533
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'
12534
# Commands to make compiler produce verbose output that lists
12535
# what "hidden" libraries, object files and flags are used when
12536
# linking a shared library.
12538
# There doesn't appear to be a way to prevent this compiler from
12539
# explicitly linking system object files so we need to strip them
12540
# from the output so that they don't get included in the library
12542
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12545
if test "$GXX" = yes; then
12546
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12548
# FIXME: insert proper C++ library support
12556
if test $with_gnu_ld = no; then
12557
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12558
hardcode_libdir_separator_CXX=:
12564
export_dynamic_flag_spec_CXX='${wl}-E'
12570
hardcode_direct_CXX=no
12571
hardcode_shlibpath_var_CXX=no
12574
hardcode_direct_CXX=yes
12575
hardcode_direct_absolute_CXX=yes
12576
hardcode_minus_L_CXX=yes # Not in the search PATH,
12577
# but as the default
12578
# location of the library.
12582
case $cc_basename in
12584
# FIXME: insert proper C++ library support
12590
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12593
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12596
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12599
# Commands to make compiler produce verbose output that lists
12600
# what "hidden" libraries, object files and flags are used when
12601
# linking a shared library.
12603
# There doesn't appear to be a way to prevent this compiler from
12604
# explicitly linking system object files so we need to strip them
12605
# from the output so that they don't get included in the library
12607
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; func_echo_all "$list"'
12610
if test "$GXX" = yes; then
12611
if test $with_gnu_ld = no; then
12614
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12617
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12620
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12625
# FIXME: insert proper C++ library support
12633
hardcode_direct_CXX=no
12634
hardcode_shlibpath_var_CXX=no
12635
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12636
export_dynamic_flag_spec_CXX='${wl}-E'
12637
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12638
# Instead, shared libraries are loaded at an image base (0x10000000 by
12639
# default) and relocated if they conflict, which is a slow very memory
12640
# consuming and fragmenting process. To avoid this, we pick a random,
12641
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12642
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12643
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'
12644
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'
12647
case $cc_basename in
12650
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12652
# Archives containing C++ object files must be created using
12653
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12654
# necessary to make sure instantiated templates are included
12656
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12659
if test "$GXX" = yes; then
12660
if test "$with_gnu_ld" = no; then
12661
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12663
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12666
link_all_deplibs_CXX=yes
12669
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12670
hardcode_libdir_separator_CXX=:
12671
inherit_rpath_CXX=yes
12674
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12675
case $cc_basename in
12677
# Kuck and Associates, Inc. (KAI) C++ Compiler
12679
# KCC will only create a shared library if the output file
12680
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12681
# to its proper name (with version) after linking.
12682
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'
12683
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'
12684
# Commands to make compiler produce verbose output that lists
12685
# what "hidden" libraries, object files and flags are used when
12686
# linking a shared library.
12688
# There doesn't appear to be a way to prevent this compiler from
12689
# explicitly linking system object files so we need to strip them
12690
# from the output so that they don't get included in the library
12692
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; func_echo_all "$list"'
12694
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12695
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12697
# Archives containing C++ object files must be created using
12698
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12699
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12704
# version 8.0 and above of icpc choke on multiply defined symbols
12705
# if we add $predep_objects and $postdep_objects, however 7.1 and
12706
# earlier do not add the objects themselves.
12707
case `$CC -V 2>&1` in
12709
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12710
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'
12712
*) # Version 8.0 or newer
12715
ia64*) tmp_idyn=' -i_dynamic';;
12717
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12718
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'
12721
archive_cmds_need_lc_CXX=no
12722
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12723
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12724
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12727
# Portland Group C++ compiler
12729
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12730
prelink_cmds_CXX='tpldir=Template.dir~
12732
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12733
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12734
old_archive_cmds_CXX='tpldir=Template.dir~
12736
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12737
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12739
archive_cmds_CXX='tpldir=Template.dir~
12741
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12742
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12743
archive_expsym_cmds_CXX='tpldir=Template.dir~
12745
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12746
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12748
*) # Version 6 and above use weak symbols
12749
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12750
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'
12754
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12755
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12756
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12760
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12761
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'
12763
runpath_var=LD_RUN_PATH
12764
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12765
hardcode_libdir_separator_CXX=:
12767
# Commands to make compiler produce verbose output that lists
12768
# what "hidden" libraries, object files and flags are used when
12769
# linking a shared library.
12771
# There doesn't appear to be a way to prevent this compiler from
12772
# explicitly linking system object files so we need to strip them
12773
# from the output so that they don't get included in the library
12775
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
12777
xl* | mpixl* | bgxl*)
12778
# IBM XL 8.0 on PPC, with GNU ld
12779
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12780
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12781
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12782
if test "x$supports_anon_versioning" = xyes; then
12783
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12784
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12785
echo "local: *; };" >> $output_objdir/$libname.ver~
12786
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12790
case `$CC -V 2>&1 | sed 5q` in
12793
no_undefined_flag_CXX=' -zdefs'
12794
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12795
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'
12796
hardcode_libdir_flag_spec_CXX='-R$libdir'
12797
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12798
compiler_needs_object_CXX=yes
12800
# Not sure whether something based on
12801
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12803
output_verbose_link_cmd='func_echo_all'
12805
# Archives containing C++ object files must be created using
12806
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12807
# necessary to make sure instantiated templates are included
12809
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12817
# FIXME: insert proper C++ library support
12822
# FIXME: insert proper C++ library support
12827
case $cc_basename in
12829
# FIXME: insert proper C++ library support
12833
# FIXME: insert proper C++ library support
12840
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12841
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12843
hardcode_libdir_flag_spec_CXX='-R$libdir'
12844
hardcode_direct_CXX=yes
12845
hardcode_shlibpath_var_CXX=no
12847
# Workaround some broken pre-1.5 toolchains
12848
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12856
# C++ shared libraries are fairly broken
12861
if test -f /usr/libexec/ld.so; then
12862
hardcode_direct_CXX=yes
12863
hardcode_shlibpath_var_CXX=no
12864
hardcode_direct_absolute_CXX=yes
12865
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12866
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12867
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12868
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12869
export_dynamic_flag_spec_CXX='${wl}-E'
12870
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12872
output_verbose_link_cmd=func_echo_all
12878
osf3* | osf4* | osf5*)
12879
case $cc_basename in
12881
# Kuck and Associates, Inc. (KAI) C++ Compiler
12883
# KCC will only create a shared library if the output file
12884
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12885
# to its proper name (with version) after linking.
12886
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'
12888
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12889
hardcode_libdir_separator_CXX=:
12891
# Archives containing C++ object files must be created using
12892
# the KAI C++ compiler.
12894
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12895
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12899
# Rational C++ 2.4.1
12900
# FIXME: insert proper C++ library support
12906
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12907
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12908
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12911
allow_undefined_flag_CXX=' -expect_unresolved \*'
12912
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12913
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12914
echo "-hidden">> $lib.exp~
12915
$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~
12917
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12921
hardcode_libdir_separator_CXX=:
12923
# Commands to make compiler produce verbose output that lists
12924
# what "hidden" libraries, object files and flags are used when
12925
# linking a shared library.
12927
# There doesn't appear to be a way to prevent this compiler from
12928
# explicitly linking system object files so we need to strip them
12929
# from the output so that they don't get included in the library
12931
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
12934
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12935
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12938
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12941
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12945
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12946
hardcode_libdir_separator_CXX=:
12948
# Commands to make compiler produce verbose output that lists
12949
# what "hidden" libraries, object files and flags are used when
12950
# linking a shared library.
12951
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12954
# FIXME: insert proper C++ library support
12962
# FIXME: insert proper C++ library support
12967
case $cc_basename in
12970
# FIXME: insert proper C++ library support
12975
# FIXME: insert proper C++ library support
12979
# FIXME: insert proper C++ library support
12986
case $cc_basename in
12988
# Sun C++ 4.2, 5.x and Centerline C++
12989
archive_cmds_need_lc_CXX=yes
12990
no_undefined_flag_CXX=' -zdefs'
12991
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12992
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12993
$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'
12995
hardcode_libdir_flag_spec_CXX='-R$libdir'
12996
hardcode_shlibpath_var_CXX=no
12998
solaris2.[0-5] | solaris2.[0-5].*) ;;
13000
# The compiler driver will combine and reorder linker options,
13001
# but understands `-z linker_flag'.
13002
# Supported since Solaris 2.6 (maybe 2.5.1?)
13003
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13006
link_all_deplibs_CXX=yes
13008
output_verbose_link_cmd='func_echo_all'
13010
# Archives containing C++ object files must be created using
13011
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13012
# necessary to make sure instantiated templates are included
13014
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13017
# Green Hills C++ Compiler
13018
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13020
# The C++ compiler must be used to create the archive.
13021
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13024
# GNU C++ compiler with Solaris linker
13025
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13026
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13027
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13028
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13029
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13030
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13032
# Commands to make compiler produce verbose output that lists
13033
# what "hidden" libraries, object files and flags are used when
13034
# linking a shared library.
13035
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13037
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13039
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13040
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13041
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13043
# Commands to make compiler produce verbose output that lists
13044
# what "hidden" libraries, object files and flags are used when
13045
# linking a shared library.
13046
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13049
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13051
solaris2.[0-5] | solaris2.[0-5].*) ;;
13053
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13061
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13062
no_undefined_flag_CXX='${wl}-z,text'
13063
archive_cmds_need_lc_CXX=no
13064
hardcode_shlibpath_var_CXX=no
13065
runpath_var='LD_RUN_PATH'
13067
case $cc_basename in
13069
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079
sysv5* | sco3.2v5* | sco5v6*)
13080
# Note: We can NOT use -z defs as we might desire, because we do not
13081
# link with -lc, and that would cause any symbols used from libc to
13082
# always be unresolved, which means just about no library would
13083
# ever link correctly. If we're not using GNU ld we use -z text
13084
# though, which does catch some bad symbols but isn't as heavy-handed
13086
no_undefined_flag_CXX='${wl}-z,text'
13087
allow_undefined_flag_CXX='${wl}-z,nodefs'
13088
archive_cmds_need_lc_CXX=no
13089
hardcode_shlibpath_var_CXX=no
13090
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13091
hardcode_libdir_separator_CXX=':'
13092
link_all_deplibs_CXX=yes
13093
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13094
runpath_var='LD_RUN_PATH'
13096
case $cc_basename in
13098
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13101
'"$old_archive_cmds_CXX"
13102
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13103
'"$reload_cmds_CXX"
13106
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13113
case $cc_basename in
13115
# NonStop-UX NCC 3.20
13116
# FIXME: insert proper C++ library support
13120
# FIXME: insert proper C++ library support
13127
# FIXME: insert proper C++ library support
13132
# FIXME: insert proper C++ library support
13137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13138
$as_echo "$ld_shlibs_CXX" >&6; }
13139
test "$ld_shlibs_CXX" = no && can_build_shared=no
13145
## There is no encapsulation within the following macros, do not change
13146
## the running order or otherwise move them around unless you know exactly
13147
## what you are doing...
13148
# Dependencies to place before and after the object being linked:
13149
predep_objects_CXX=
13150
postdep_objects_CXX=
13153
compiler_lib_search_path_CXX=
13155
cat > conftest.$ac_ext <<_LT_EOF
13159
Foo (void) { a = 0; }
13166
_lt_libdeps_save_CFLAGS=$CFLAGS
13167
case "$CC $CFLAGS " in #(
13168
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13169
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13170
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13173
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13174
(eval $ac_compile) 2>&5
13176
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13177
test $ac_status = 0; }; then
13178
# Parse the compiler output and extract the necessary
13179
# objects, libraries and library flags.
13181
# Sentinel used to keep track of whether or not we are before
13182
# the conftest object file.
13183
pre_test_object_deps_done=no
13185
for p in `eval "$output_verbose_link_cmd"`; do
13186
case ${prev}${p} in
13189
# Some compilers place space between "-{L,R}" and the path.
13190
# Remove the space.
13191
if test $p = "-L" ||
13192
test $p = "-R"; then
13197
# Expand the sysroot to ease extracting the directories later.
13198
if test -z "$prev"; then
13200
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13201
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13202
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13206
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13208
if test "$pre_test_object_deps_done" = no; then
13211
# Internal compiler library paths should come after those
13212
# provided the user. The postdeps already come after the
13213
# user supplied libs so there is no need to process them.
13214
if test -z "$compiler_lib_search_path_CXX"; then
13215
compiler_lib_search_path_CXX="${prev}${p}"
13217
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13220
# The "-l" case would never come before the object being
13221
# linked, so don't bother handling this case.
13224
if test -z "$postdeps_CXX"; then
13225
postdeps_CXX="${prev}${p}"
13227
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13233
*.lto.$objext) ;; # Ignore GCC LTO objects
13235
# This assumes that the test object file only shows up
13236
# once in the compiler output.
13237
if test "$p" = "conftest.$objext"; then
13238
pre_test_object_deps_done=yes
13242
if test "$pre_test_object_deps_done" = no; then
13243
if test -z "$predep_objects_CXX"; then
13244
predep_objects_CXX="$p"
13246
predep_objects_CXX="$predep_objects_CXX $p"
13249
if test -z "$postdep_objects_CXX"; then
13250
postdep_objects_CXX="$p"
13252
postdep_objects_CXX="$postdep_objects_CXX $p"
13257
*) ;; # Ignore the rest.
13265
echo "libtool.m4: error: problem compiling CXX test program"
13268
$RM -f confest.$objext
13269
CFLAGS=$_lt_libdeps_save_CFLAGS
13271
# PORTME: override above test on systems where it is broken
13274
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13275
# hack all around it, let's just trust "g++" to DTRT.
13276
predep_objects_CXX=
13277
postdep_objects_CXX=
13282
case `$CC -V 2>&1 | sed 5q` in
13286
# The more standards-conforming stlport4 library is
13287
# incompatible with the Cstd library. Avoid specifying
13288
# it if it's in CXXFLAGS. Ignore libCrun as
13289
# -library=stlport4 depends on it.
13290
case " $CXX $CXXFLAGS " in
13291
*" -library=stlport4 "*)
13292
solaris_use_stlport4=yes
13296
if test "$solaris_use_stlport4" != yes; then
13297
postdeps_CXX='-library=Cstd -library=Crun'
13304
case $cc_basename in
13306
# The more standards-conforming stlport4 library is
13307
# incompatible with the Cstd library. Avoid specifying
13308
# it if it's in CXXFLAGS. Ignore libCrun as
13309
# -library=stlport4 depends on it.
13310
case " $CXX $CXXFLAGS " in
13311
*" -library=stlport4 "*)
13312
solaris_use_stlport4=yes
13316
# Adding this requires a known-good setup of shared libraries for
13317
# Sun compiler versions before 5.6, else PIC objects from an old
13318
# archive will be linked into the output, leading to subtle bugs.
13319
if test "$solaris_use_stlport4" != yes; then
13320
postdeps_CXX='-library=Cstd -library=Crun'
13328
case " $postdeps_CXX " in
13329
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13331
compiler_lib_search_dirs_CXX=
13332
if test -n "${compiler_lib_search_path_CXX}"; then
13333
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13366
lt_prog_compiler_wl_CXX=
13367
lt_prog_compiler_pic_CXX=
13368
lt_prog_compiler_static_CXX=
13371
# C++ specific cases for pic, static, wl, etc.
13372
if test "$GXX" = yes; then
13373
lt_prog_compiler_wl_CXX='-Wl,'
13374
lt_prog_compiler_static_CXX='-static'
13378
# All AIX code is PIC.
13379
if test "$host_cpu" = ia64; then
13380
# AIX 5 now supports IA64 processor
13381
lt_prog_compiler_static_CXX='-Bstatic'
13388
# see comment about AmigaOS4 .so support
13389
lt_prog_compiler_pic_CXX='-fPIC'
13392
# FIXME: we need at least 68020 code to build shared libraries, but
13393
# adding the `-m68020' flag to GCC prevents building anything better,
13395
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13400
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13401
# PIC is the default for these OSes.
13403
mingw* | cygwin* | os2* | pw32* | cegcc*)
13404
# This hack is so that the source file can tell whether it is being
13405
# built for inclusion in a dll (and should export symbols for example).
13406
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13407
# (--disable-auto-import) libraries
13408
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13410
darwin* | rhapsody*)
13411
# PIC is the default on this platform
13412
# Common symbols not allowed in MH_DYLIB files
13413
lt_prog_compiler_pic_CXX='-fno-common'
13416
# DJGPP does not support shared libraries at all
13417
lt_prog_compiler_pic_CXX=
13420
# PIC is the default for Haiku.
13421
# The "-static" flag exists, but is broken.
13422
lt_prog_compiler_static_CXX=
13425
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13426
# Instead, we relocate shared libraries at runtime.
13429
if test -d /usr/nec; then
13430
lt_prog_compiler_pic_CXX=-Kconform_pic
13434
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13435
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13436
# sets the default TLS model and affects inlining.
13441
lt_prog_compiler_pic_CXX='-fPIC'
13446
# QNX uses GNU C++, but need to define -shared option too, otherwise
13447
# it will coredump.
13448
lt_prog_compiler_pic_CXX='-fPIC -shared'
13451
lt_prog_compiler_pic_CXX='-fPIC'
13457
# All AIX code is PIC.
13458
if test "$host_cpu" = ia64; then
13459
# AIX 5 now supports IA64 processor
13460
lt_prog_compiler_static_CXX='-Bstatic'
13462
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13466
case $cc_basename in
13468
# Green Hills C++ Compiler
13469
# _LT_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"
13473
mingw* | cygwin* | os2* | pw32* | cegcc*)
13474
# This hack is so that the source file can tell whether it is being
13475
# built for inclusion in a dll (and should export symbols for example).
13476
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13479
case $cc_basename in
13481
lt_prog_compiler_pic_CXX='-KPIC'
13484
# Green Hills C++ Compiler
13485
lt_prog_compiler_pic_CXX='-pic'
13491
freebsd* | dragonfly*)
13492
# FreeBSD uses GNU C++
13494
hpux9* | hpux10* | hpux11*)
13495
case $cc_basename in
13497
lt_prog_compiler_wl_CXX='-Wl,'
13498
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13499
if test "$host_cpu" != ia64; then
13500
lt_prog_compiler_pic_CXX='+Z'
13504
lt_prog_compiler_wl_CXX='-Wl,'
13505
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13511
lt_prog_compiler_pic_CXX='+Z'
13520
# This is c89, which is MS Visual C++ (no shared libs)
13521
# Anyone wants to do a port?
13523
irix5* | irix6* | nonstopux*)
13524
case $cc_basename in
13526
lt_prog_compiler_wl_CXX='-Wl,'
13527
lt_prog_compiler_static_CXX='-non_shared'
13528
# CC pic flag -KPIC is the default.
13534
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13535
case $cc_basename in
13538
lt_prog_compiler_wl_CXX='--backend -Wl,'
13539
lt_prog_compiler_pic_CXX='-fPIC'
13542
# old Intel C++ for x86_64 which still supported -KPIC.
13543
lt_prog_compiler_wl_CXX='-Wl,'
13544
lt_prog_compiler_pic_CXX='-KPIC'
13545
lt_prog_compiler_static_CXX='-static'
13548
# Intel C++, used to be incompatible with GCC.
13549
# ICC 10 doesn't accept -KPIC any more.
13550
lt_prog_compiler_wl_CXX='-Wl,'
13551
lt_prog_compiler_pic_CXX='-fPIC'
13552
lt_prog_compiler_static_CXX='-static'
13555
# Portland Group C++ compiler
13556
lt_prog_compiler_wl_CXX='-Wl,'
13557
lt_prog_compiler_pic_CXX='-fpic'
13558
lt_prog_compiler_static_CXX='-Bstatic'
13562
# Make sure the PIC flag is empty. It appears that all Alpha
13563
# Linux and Compaq Tru64 Unix objects are PIC.
13564
lt_prog_compiler_pic_CXX=
13565
lt_prog_compiler_static_CXX='-non_shared'
13567
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13568
# IBM XL 8.0, 9.0 on PPC and BlueGene
13569
lt_prog_compiler_wl_CXX='-Wl,'
13570
lt_prog_compiler_pic_CXX='-qpic'
13571
lt_prog_compiler_static_CXX='-qstaticlink'
13574
case `$CC -V 2>&1 | sed 5q` in
13577
lt_prog_compiler_pic_CXX='-KPIC'
13578
lt_prog_compiler_static_CXX='-Bstatic'
13579
lt_prog_compiler_wl_CXX='-Qoption ld '
13590
case $cc_basename in
13592
lt_prog_compiler_pic_CXX='-W c,exportall'
13598
netbsd* | netbsdelf*-gnu)
13601
# QNX uses GNU C++, but need to define -shared option too, otherwise
13602
# it will coredump.
13603
lt_prog_compiler_pic_CXX='-fPIC -shared'
13605
osf3* | osf4* | osf5*)
13606
case $cc_basename in
13608
lt_prog_compiler_wl_CXX='--backend -Wl,'
13611
# Rational C++ 2.4.1
13612
lt_prog_compiler_pic_CXX='-pic'
13615
# Digital/Compaq C++
13616
lt_prog_compiler_wl_CXX='-Wl,'
13617
# Make sure the PIC flag is empty. It appears that all Alpha
13618
# Linux and Compaq Tru64 Unix objects are PIC.
13619
lt_prog_compiler_pic_CXX=
13620
lt_prog_compiler_static_CXX='-non_shared'
13629
case $cc_basename in
13631
# Sun C++ 4.2, 5.x and Centerline C++
13632
lt_prog_compiler_pic_CXX='-KPIC'
13633
lt_prog_compiler_static_CXX='-Bstatic'
13634
lt_prog_compiler_wl_CXX='-Qoption ld '
13637
# Green Hills C++ Compiler
13638
lt_prog_compiler_pic_CXX='-PIC'
13645
case $cc_basename in
13648
lt_prog_compiler_pic_CXX='-pic'
13649
lt_prog_compiler_static_CXX='-Bstatic'
13653
lt_prog_compiler_pic_CXX='-pic'
13659
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13660
case $cc_basename in
13662
lt_prog_compiler_wl_CXX='-Wl,'
13663
lt_prog_compiler_pic_CXX='-KPIC'
13664
lt_prog_compiler_static_CXX='-Bstatic'
13669
case $cc_basename in
13671
# NonStop-UX NCC 3.20
13672
lt_prog_compiler_pic_CXX='-KPIC'
13681
lt_prog_compiler_can_build_shared_CXX=no
13687
# For platforms which do not support PIC, -DPIC is meaningless:
13689
lt_prog_compiler_pic_CXX=
13692
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13697
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13698
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
13699
$as_echo_n "(cached) " >&6
13701
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
13703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
13704
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
13705
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
13708
# Check to make sure the PIC flag actually works.
13710
if test -n "$lt_prog_compiler_pic_CXX"; then
13711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13712
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13713
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13714
$as_echo_n "(cached) " >&6
13716
lt_cv_prog_compiler_pic_works_CXX=no
13717
ac_outfile=conftest.$ac_objext
13718
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13719
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13720
# Insert the option either (1) after the last *FLAGS variable, or
13721
# (2) before a word containing "conftest.", or (3) at the end.
13722
# Note that $ac_compile itself does not contain backslashes and begins
13723
# with a dollar sign (not a hyphen), so the echo should work correctly.
13724
# The option is referenced via a variable to avoid confusing sed.
13725
lt_compile=`echo "$ac_compile" | $SED \
13726
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13727
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13728
-e 's:$: $lt_compiler_flag:'`
13729
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13730
(eval "$lt_compile" 2>conftest.err)
13732
cat conftest.err >&5
13733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734
if (exit $ac_status) && test -s "$ac_outfile"; then
13735
# The compiler can only warn and ignore the option if not recognized
13736
# So say no if there are warnings other than the usual output.
13737
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13738
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13739
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13740
lt_cv_prog_compiler_pic_works_CXX=yes
13746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13747
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13749
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13750
case $lt_prog_compiler_pic_CXX in
13752
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13755
lt_prog_compiler_pic_CXX=
13756
lt_prog_compiler_can_build_shared_CXX=no
13766
# Check to make sure the static flag actually works.
13768
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13770
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13771
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13772
$as_echo_n "(cached) " >&6
13774
lt_cv_prog_compiler_static_works_CXX=no
13775
save_LDFLAGS="$LDFLAGS"
13776
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13777
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13778
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13779
# The linker can only warn and ignore the option if not recognized
13780
# So say no if there are warnings
13781
if test -s conftest.err; then
13782
# Append any errors to the config.log.
13783
cat conftest.err 1>&5
13784
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13785
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13786
if diff conftest.exp conftest.er2 >/dev/null; then
13787
lt_cv_prog_compiler_static_works_CXX=yes
13790
lt_cv_prog_compiler_static_works_CXX=yes
13794
LDFLAGS="$save_LDFLAGS"
13797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13798
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13800
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13803
lt_prog_compiler_static_CXX=
13809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13810
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13811
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13812
$as_echo_n "(cached) " >&6
13814
lt_cv_prog_compiler_c_o_CXX=no
13815
$RM -r conftest 2>/dev/null
13819
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13821
lt_compiler_flag="-o out/conftest2.$ac_objext"
13822
# Insert the option either (1) after the last *FLAGS variable, or
13823
# (2) before a word containing "conftest.", or (3) at the end.
13824
# Note that $ac_compile itself does not contain backslashes and begins
13825
# with a dollar sign (not a hyphen), so the echo should work correctly.
13826
lt_compile=`echo "$ac_compile" | $SED \
13827
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13828
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13829
-e 's:$: $lt_compiler_flag:'`
13830
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13831
(eval "$lt_compile" 2>out/conftest.err)
13833
cat out/conftest.err >&5
13834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13837
# The compiler can only warn and ignore the option if not recognized
13838
# So say no if there are warnings
13839
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13840
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13841
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13842
lt_cv_prog_compiler_c_o_CXX=yes
13847
# SGI C++ compiler will create directory out/ii_files/ for
13848
# template instantiation
13849
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13850
$RM out/* && rmdir out
13856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13857
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13862
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13863
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13864
$as_echo_n "(cached) " >&6
13866
lt_cv_prog_compiler_c_o_CXX=no
13867
$RM -r conftest 2>/dev/null
13871
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13873
lt_compiler_flag="-o out/conftest2.$ac_objext"
13874
# Insert the option either (1) after the last *FLAGS variable, or
13875
# (2) before a word containing "conftest.", or (3) at the end.
13876
# Note that $ac_compile itself does not contain backslashes and begins
13877
# with a dollar sign (not a hyphen), so the echo should work correctly.
13878
lt_compile=`echo "$ac_compile" | $SED \
13879
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13880
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13881
-e 's:$: $lt_compiler_flag:'`
13882
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13883
(eval "$lt_compile" 2>out/conftest.err)
13885
cat out/conftest.err >&5
13886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13889
# The compiler can only warn and ignore the option if not recognized
13890
# So say no if there are warnings
13891
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13892
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13893
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13894
lt_cv_prog_compiler_c_o_CXX=yes
13899
# SGI C++ compiler will create directory out/ii_files/ for
13900
# template instantiation
13901
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13902
$RM out/* && rmdir out
13908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13909
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13914
hard_links="nottested"
13915
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13916
# do not overwrite the value of need_locks provided by the user
13917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13918
$as_echo_n "checking if we can lock with hard links... " >&6; }
13921
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13923
ln conftest.a conftest.b 2>&5 || hard_links=no
13924
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13926
$as_echo "$hard_links" >&6; }
13927
if test "$hard_links" = no; then
13928
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13929
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13939
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13941
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13942
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13945
# If we're using GNU nm, then we don't want the "-C" option.
13946
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13947
# Also, AIX nm treats weak defined symbols like other global defined
13948
# symbols, whereas GNU nm marks them as "W".
13949
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13950
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13952
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'
13956
export_symbols_cmds_CXX="$ltdll_cmds"
13958
cygwin* | mingw* | cegcc*)
13959
case $cc_basename in
13961
exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13964
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13965
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13969
linux* | k*bsd*-gnu | gnu*)
13970
link_all_deplibs_CXX=no
13973
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13978
$as_echo "$ld_shlibs_CXX" >&6; }
13979
test "$ld_shlibs_CXX" = no && can_build_shared=no
13981
with_gnu_ld_CXX=$with_gnu_ld
13989
# Do we need to explicitly link libc?
13991
case "x$archive_cmds_need_lc_CXX" in
13993
# Assume -lc should be added
13994
archive_cmds_need_lc_CXX=yes
13996
if test "$enable_shared" = yes && test "$GCC" = yes; then
13997
case $archive_cmds_CXX in
13999
# FIXME: we may have to deal with multi-command sequences.
14002
# Test whether the compiler implicitly links with -lc since on some
14003
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14004
# to ld, don't add -lc before -lgcc.
14005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14006
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14007
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14008
$as_echo_n "(cached) " >&6
14011
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14013
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14014
(eval $ac_compile) 2>&5
14016
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017
test $ac_status = 0; } 2>conftest.err; then
14020
libobjs=conftest.$ac_objext
14022
wl=$lt_prog_compiler_wl_CXX
14023
pic_flag=$lt_prog_compiler_pic_CXX
14029
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14030
allow_undefined_flag_CXX=
14031
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14032
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14034
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035
test $ac_status = 0; }
14037
lt_cv_archive_cmds_need_lc_CXX=no
14039
lt_cv_archive_cmds_need_lc_CXX=yes
14041
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14043
cat conftest.err 1>&5
14048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14049
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14050
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14119
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14121
library_names_spec=
14122
libname_spec='lib$name'
14126
postuninstall_cmds=
14130
shlibpath_overrides_runpath=unknown
14132
dynamic_linker="$host_os ld.so"
14133
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14134
need_lib_prefix=unknown
14135
hardcode_into_libs=no
14137
# when you set need_version to no, make sure it does not cause -set_version
14138
# flags to be left without arguments
14139
need_version=unknown
14143
version_type=linux # correct to gnu/linux during the next big refactor
14144
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14145
shlibpath_var=LIBPATH
14147
# AIX 3 has no versioning support, so we append a major version to the name.
14148
soname_spec='${libname}${release}${shared_ext}$major'
14152
version_type=linux # correct to gnu/linux during the next big refactor
14155
hardcode_into_libs=yes
14156
if test "$host_cpu" = ia64; then
14157
# AIX 5 supports IA64
14158
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14159
shlibpath_var=LD_LIBRARY_PATH
14161
# With GCC up to 2.95.x, collect2 would create an import file
14162
# for dependence libraries. The import file would start with
14163
# the line `#! .'. This would cause the generated library to
14164
# depend on `.', always an invalid library. This was fixed in
14165
# development snapshots of GCC prior to 3.0.
14167
aix4 | aix4.[01] | aix4.[01].*)
14168
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14170
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14173
can_build_shared=no
14177
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14178
# soname into executable. Probably we can add versioning support to
14179
# collect2, so additional links can be useful in future.
14180
if test "$aix_use_runtimelinking" = yes; then
14181
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14182
# instead of lib<name>.a to let people know that these are not
14183
# typical AIX shared libraries.
14184
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186
# We preserve .a as extension for shared libraries through AIX4.2
14187
# and later when we are not doing run time linking.
14188
library_names_spec='${libname}${release}.a $libname.a'
14189
soname_spec='${libname}${release}${shared_ext}$major'
14191
shlibpath_var=LIBPATH
14198
# Since July 2007 AmigaOS4 officially supports .so libraries.
14199
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14200
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14203
library_names_spec='$libname.ixlibrary $libname.a'
14204
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14205
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14211
library_names_spec='${libname}${shared_ext}'
14212
dynamic_linker="$host_os ld.so"
14213
shlibpath_var=LIBRARY_PATH
14217
version_type=linux # correct to gnu/linux during the next big refactor
14219
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14220
soname_spec='${libname}${release}${shared_ext}$major'
14221
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14222
shlibpath_var=LD_LIBRARY_PATH
14223
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14224
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14225
# the default ld.so.conf also contains /usr/contrib/lib and
14226
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14227
# libtool to hard-code these into programs
14230
cygwin* | mingw* | pw32* | cegcc*)
14231
version_type=windows
14236
case $GCC,$cc_basename in
14239
library_names_spec='$libname.dll.a'
14240
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14241
postinstall_cmds='base_file=`basename \${file}`~
14242
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14243
dldir=$destdir/`dirname \$dlpath`~
14244
test -d \$dldir || mkdir -p \$dldir~
14245
$install_prog $dir/$dlname \$dldir/$dlname~
14246
chmod a+x \$dldir/$dlname~
14247
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14248
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14250
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14251
dlpath=$dir/\$dldll~
14253
shlibpath_overrides_runpath=yes
14257
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14258
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14262
# MinGW DLLs use traditional 'lib' prefix
14263
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14266
# pw32 DLLs use 'pw' prefix rather than 'lib'
14267
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14270
dynamic_linker='Win32 ld.exe'
14275
libname_spec='$name'
14276
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14277
library_names_spec='${libname}.dll.lib'
14281
sys_lib_search_path_spec=
14284
for lt_path in $LIB
14287
# Let DOS variable expansion print the short 8.3 style file name.
14288
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14289
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14292
# Convert to MSYS style.
14293
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14296
# Convert to unix form, then to dos form, then back to unix form
14297
# but this time dos style (no spaces!) so that the unix form looks
14298
# like /cygdrive/c/PROGRA~1:/cygdr...
14299
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14300
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14301
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14304
sys_lib_search_path_spec="$LIB"
14305
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14306
# It is most probably a Windows format PATH.
14307
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14309
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14311
# FIXME: find the short name or the path components, as spaces are
14312
# common. (e.g. "Program Files" -> "PROGRA~1")
14316
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14317
postinstall_cmds='base_file=`basename \${file}`~
14318
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14319
dldir=$destdir/`dirname \$dlpath`~
14320
test -d \$dldir || mkdir -p \$dldir~
14321
$install_prog $dir/$dlname \$dldir/$dlname'
14322
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14323
dlpath=$dir/\$dldll~
14325
shlibpath_overrides_runpath=yes
14326
dynamic_linker='Win32 link.exe'
14330
# Assume MSVC wrapper
14331
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14332
dynamic_linker='Win32 ld.exe'
14335
# FIXME: first we should search . and the directory the executable is in
14339
darwin* | rhapsody*)
14340
dynamic_linker="$host_os dyld"
14341
version_type=darwin
14344
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14345
soname_spec='${libname}${release}${major}$shared_ext'
14346
shlibpath_overrides_runpath=yes
14347
shlibpath_var=DYLD_LIBRARY_PATH
14348
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14350
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14354
version_type=linux # correct to gnu/linux during the next big refactor
14357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14358
soname_spec='${libname}${release}${shared_ext}$major'
14359
shlibpath_var=LD_LIBRARY_PATH
14362
freebsd* | dragonfly*)
14363
# DragonFly does not have aout. When/if they implement a new
14364
# versioning mechanism, adjust this.
14365
if test -x /usr/bin/objformat; then
14366
objformat=`/usr/bin/objformat`
14369
freebsd[23].*) objformat=aout ;;
14370
*) objformat=elf ;;
14373
version_type=freebsd-$objformat
14374
case $version_type in
14376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14381
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14385
shlibpath_var=LD_LIBRARY_PATH
14388
shlibpath_overrides_runpath=yes
14390
freebsd3.[01]* | freebsdelf3.[01]*)
14391
shlibpath_overrides_runpath=yes
14392
hardcode_into_libs=yes
14394
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14395
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14396
shlibpath_overrides_runpath=no
14397
hardcode_into_libs=yes
14399
*) # from 4.6 on, and DragonFly
14400
shlibpath_overrides_runpath=yes
14401
hardcode_into_libs=yes
14407
version_type=linux # correct to gnu/linux during the next big refactor
14410
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14411
soname_spec='${libname}${release}${shared_ext}$major'
14412
shlibpath_var=LD_LIBRARY_PATH
14413
shlibpath_overrides_runpath=no
14414
hardcode_into_libs=yes
14418
version_type=linux # correct to gnu/linux during the next big refactor
14421
dynamic_linker="$host_os runtime_loader"
14422
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14423
soname_spec='${libname}${release}${shared_ext}$major'
14424
shlibpath_var=LIBRARY_PATH
14425
shlibpath_overrides_runpath=yes
14426
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14427
hardcode_into_libs=yes
14430
hpux9* | hpux10* | hpux11*)
14431
# Give a soname corresponding to the major version so that dld.sl refuses to
14432
# link against other versions.
14439
hardcode_into_libs=yes
14440
dynamic_linker="$host_os dld.so"
14441
shlibpath_var=LD_LIBRARY_PATH
14442
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14443
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444
soname_spec='${libname}${release}${shared_ext}$major'
14445
if test "X$HPUX_IA64_MODE" = X32; then
14446
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14448
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14450
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14454
hardcode_into_libs=yes
14455
dynamic_linker="$host_os dld.sl"
14456
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14457
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14458
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14459
soname_spec='${libname}${release}${shared_ext}$major'
14460
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14461
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14465
dynamic_linker="$host_os dld.sl"
14466
shlibpath_var=SHLIB_PATH
14467
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14468
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469
soname_spec='${libname}${release}${shared_ext}$major'
14472
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14473
postinstall_cmds='chmod 555 $lib'
14474
# or fails outright, so override atomically:
14475
install_override_mode=555
14479
version_type=linux # correct to gnu/linux during the next big refactor
14482
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14483
soname_spec='${libname}${release}${shared_ext}$major'
14484
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14485
shlibpath_var=LD_LIBRARY_PATH
14486
shlibpath_overrides_runpath=no
14487
hardcode_into_libs=yes
14490
irix5* | irix6* | nonstopux*)
14492
nonstopux*) version_type=nonstopux ;;
14494
if test "$lt_cv_prog_gnu_ld" = yes; then
14495
version_type=linux # correct to gnu/linux during the next big refactor
14502
soname_spec='${libname}${release}${shared_ext}$major'
14503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14505
irix5* | nonstopux*)
14506
libsuff= shlibsuff=
14509
case $LD in # libtool.m4 will add one of these switches to LD
14510
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14511
libsuff= shlibsuff= libmagic=32-bit;;
14512
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14513
libsuff=32 shlibsuff=N32 libmagic=N32;;
14514
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14515
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14516
*) libsuff= shlibsuff= libmagic=never-match;;
14520
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14521
shlibpath_overrides_runpath=no
14522
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14523
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14524
hardcode_into_libs=yes
14527
# No shared lib support for Linux oldld, aout, or coff.
14528
linux*oldld* | linux*aout* | linux*coff*)
14532
# This must be glibc/ELF.
14533
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14534
version_type=linux # correct to gnu/linux during the next big refactor
14537
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538
soname_spec='${libname}${release}${shared_ext}$major'
14539
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14540
shlibpath_var=LD_LIBRARY_PATH
14541
shlibpath_overrides_runpath=no
14543
# Some binutils ld are patched to set DT_RUNPATH
14544
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14545
$as_echo_n "(cached) " >&6
14547
lt_cv_shlibpath_overrides_runpath=no
14548
save_LDFLAGS=$LDFLAGS
14549
save_libdir=$libdir
14550
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14551
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553
/* end confdefs.h. */
14563
if ac_fn_cxx_try_link "$LINENO"; then :
14564
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14565
lt_cv_shlibpath_overrides_runpath=yes
14568
rm -f core conftest.err conftest.$ac_objext \
14569
conftest$ac_exeext conftest.$ac_ext
14570
LDFLAGS=$save_LDFLAGS
14571
libdir=$save_libdir
14575
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14577
# This implies no fast_install, which is unacceptable.
14578
# Some rework will be needed to allow for fast_install
14579
# before this can be enabled.
14580
hardcode_into_libs=yes
14582
# Append ld.so.conf contents to the search path
14583
if test -f /etc/ld.so.conf; then
14584
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14585
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14588
# We used to test for /lib/ld.so.1 and disable shared libraries on
14589
# powerpc, because MkLinux only supported shared libraries with the
14590
# GNU dynamic linker. Since this was broken with cross compilers,
14591
# most powerpc-linux boxes support dynamic linking these days and
14592
# people can always --disable-shared, the test was removed, and we
14593
# assume the GNU/Linux dynamic linker is in use.
14594
dynamic_linker='GNU/Linux ld.so'
14601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14602
soname_spec='${libname}${release}${shared_ext}$major'
14603
shlibpath_var=LD_LIBRARY_PATH
14604
shlibpath_overrides_runpath=no
14605
hardcode_into_libs=yes
14606
dynamic_linker='NetBSD ld.elf_so'
14613
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14615
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14616
dynamic_linker='NetBSD (a.out) ld.so'
14618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14619
soname_spec='${libname}${release}${shared_ext}$major'
14620
dynamic_linker='NetBSD ld.elf_so'
14622
shlibpath_var=LD_LIBRARY_PATH
14623
shlibpath_overrides_runpath=yes
14624
hardcode_into_libs=yes
14628
version_type=linux # correct to gnu/linux during the next big refactor
14629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630
shlibpath_var=LD_LIBRARY_PATH
14631
shlibpath_overrides_runpath=yes
14638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639
soname_spec='${libname}${release}${shared_ext}$major'
14640
shlibpath_var=LD_LIBRARY_PATH
14641
shlibpath_overrides_runpath=no
14642
hardcode_into_libs=yes
14643
dynamic_linker='ldqnx.so'
14648
sys_lib_dlsearch_path_spec="/usr/lib"
14650
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14652
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14653
*) need_version=no ;;
14655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657
shlibpath_var=LD_LIBRARY_PATH
14658
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14660
openbsd2.[89] | openbsd2.[89].*)
14661
shlibpath_overrides_runpath=no
14664
shlibpath_overrides_runpath=yes
14668
shlibpath_overrides_runpath=yes
14673
libname_spec='$name'
14676
library_names_spec='$libname${shared_ext} $libname.a'
14677
dynamic_linker='OS/2 ld.exe'
14678
shlibpath_var=LIBPATH
14681
osf3* | osf4* | osf5*)
14685
soname_spec='${libname}${release}${shared_ext}$major'
14686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687
shlibpath_var=LD_LIBRARY_PATH
14688
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14689
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14697
version_type=linux # correct to gnu/linux during the next big refactor
14700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701
soname_spec='${libname}${release}${shared_ext}$major'
14702
shlibpath_var=LD_LIBRARY_PATH
14703
shlibpath_overrides_runpath=yes
14704
hardcode_into_libs=yes
14705
# ldd complains unless libraries are executable
14706
postinstall_cmds='chmod +x $lib'
14711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14712
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14713
shlibpath_var=LD_LIBRARY_PATH
14714
shlibpath_overrides_runpath=yes
14715
if test "$with_gnu_ld" = yes; then
14722
version_type=linux # correct to gnu/linux during the next big refactor
14723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724
soname_spec='${libname}${release}${shared_ext}$major'
14725
shlibpath_var=LD_LIBRARY_PATH
14726
case $host_vendor in
14728
shlibpath_overrides_runpath=no
14730
runpath_var=LD_RUN_PATH
14738
shlibpath_overrides_runpath=no
14739
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14745
if test -d /usr/nec ;then
14746
version_type=linux # correct to gnu/linux during the next big refactor
14747
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14748
soname_spec='$libname${shared_ext}.$major'
14749
shlibpath_var=LD_LIBRARY_PATH
14753
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14754
version_type=freebsd-elf
14757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14758
soname_spec='${libname}${release}${shared_ext}$major'
14759
shlibpath_var=LD_LIBRARY_PATH
14760
shlibpath_overrides_runpath=yes
14761
hardcode_into_libs=yes
14762
if test "$with_gnu_ld" = yes; then
14763
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14765
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14768
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14772
sys_lib_dlsearch_path_spec='/usr/lib'
14776
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14777
version_type=linux # correct to gnu/linux during the next big refactor
14780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14781
shlibpath_var=LD_LIBRARY_PATH
14782
shlibpath_overrides_runpath=no
14783
hardcode_into_libs=yes
14787
version_type=linux # correct to gnu/linux during the next big refactor
14788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789
soname_spec='${libname}${release}${shared_ext}$major'
14790
shlibpath_var=LD_LIBRARY_PATH
14797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14798
$as_echo "$dynamic_linker" >&6; }
14799
test "$dynamic_linker" = no && can_build_shared=no
14801
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14802
if test "$GCC" = yes; then
14803
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14806
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14807
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14809
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14810
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14851
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14852
hardcode_action_CXX=
14853
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14854
test -n "$runpath_var_CXX" ||
14855
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14857
# We can hardcode non-existent directories.
14858
if test "$hardcode_direct_CXX" != no &&
14859
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14860
# have to relink, otherwise we might link with an installed library
14861
# when we should be linking with a yet-to-be-installed one
14862
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14863
test "$hardcode_minus_L_CXX" != no; then
14864
# Linking always hardcodes the temporary library directory.
14865
hardcode_action_CXX=relink
14867
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14868
hardcode_action_CXX=immediate
14871
# We cannot hardcode anything, or else we can only hardcode existing
14873
hardcode_action_CXX=unsupported
14875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14876
$as_echo "$hardcode_action_CXX" >&6; }
14878
if test "$hardcode_action_CXX" = relink ||
14879
test "$inherit_rpath_CXX" = yes; then
14880
# Fast installation is not supported
14881
enable_fast_install=no
14882
elif test "$shlibpath_overrides_runpath" = yes ||
14883
test "$enable_shared" = no; then
14884
# Fast installation is not necessary
14885
enable_fast_install=needless
14894
fi # test -n "$compiler"
14897
CFLAGS=$lt_save_CFLAGS
14901
with_gnu_ld=$lt_save_with_gnu_ld
14902
lt_cv_path_LDCXX=$lt_cv_path_LD
14903
lt_cv_path_LD=$lt_save_path_LD
14904
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14905
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14906
fi # test "$_lt_caught_CXX_error" != yes
14909
ac_cpp='$CXXCPP $CPPFLAGS'
14910
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14911
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14912
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14928
ac_config_commands="$ac_config_commands libtool"
14933
# Only expand once:
14937
# TODO(chandlerc@google.com): Currently we aren't running the Python tests
14938
# against the interpreter detected by AM_PATH_PYTHON, and so we condition
14939
# HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
14940
# version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
14942
PYTHON= # We *do not* allow the user to specify a python interpreter
14943
# Extract the first word of "python", so it can be a program name with args.
14944
set dummy python; ac_word=$2
14945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14946
$as_echo_n "checking for $ac_word... " >&6; }
14947
if ${ac_cv_path_PYTHON+:} false; then :
14948
$as_echo_n "(cached) " >&6
14952
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14955
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956
for as_dir in $PATH
14959
test -z "$as_dir" && as_dir=.
14960
for ac_exec_ext in '' $ac_executable_extensions; do
14961
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14962
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14963
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14970
test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
14974
PYTHON=$ac_cv_path_PYTHON
14975
if test -n "$PYTHON"; then
14976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14977
$as_echo "$PYTHON" >&6; }
14979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14980
$as_echo "no" >&6; }
14984
if test "$PYTHON" != ":"; then :
14986
# split strings by '.' and convert to numeric. Append some zeros
14987
# because we need at least 4 digits for the hex conversion.
14988
# map returns an iterator in Python 3.0 and a list in 2.x
14989
minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
14991
# xrange is not present in Python 3.0 and range returns an iterator
14992
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14993
sys.exit(sys.hexversion < minverhex)"
14994
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14995
($PYTHON -c "$prog") >&5 2>&5
14997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998
(exit $ac_status); }; then :
15004
if test "$PYTHON" != ":"; then
15006
HAVE_PYTHON_FALSE='#'
15008
HAVE_PYTHON_TRUE='#'
15013
# Configure pthreads.
15015
# Check whether --with-pthreads was given.
15016
if test "${with_pthreads+set}" = set; then :
15017
withval=$with_pthreads; with_pthreads=$withval
15019
with_pthreads=check
15024
if test "x$with_pthreads" != "xno"; then :
15029
ac_cpp='$CPP $CPPFLAGS'
15030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15036
# We used to check for pthread.h first, but this fails if pthread.h
15037
# requires special compiler flags (e.g. on True64 or Sequent).
15038
# It gets checked for in the link test anyway.
15040
# First of all, check if the user has set any of the PTHREAD_LIBS,
15041
# etcetera environment variables, and if threads linking works using
15043
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15044
save_CFLAGS="$CFLAGS"
15045
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15047
LIBS="$PTHREAD_LIBS $LIBS"
15048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15049
$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15050
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051
/* end confdefs.h. */
15053
/* Override any GCC internal prototype to avoid an error.
15054
Use char because int might match the return type of a GCC
15055
builtin and then its argument prototype would still apply. */
15059
char pthread_join ();
15063
return pthread_join ();
15068
if ac_fn_c_try_link "$LINENO"; then :
15071
rm -f core conftest.err conftest.$ac_objext \
15072
conftest$ac_exeext conftest.$ac_ext
15073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15074
$as_echo "$acx_pthread_ok" >&6; }
15075
if test x"$acx_pthread_ok" = xno; then
15080
CFLAGS="$save_CFLAGS"
15083
# We must check for the threads library under a number of different
15084
# names; the ordering is very important because some systems
15085
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15086
# libraries is broken (non-POSIX).
15088
# Create a list of thread flags to try. Items starting with a "-" are
15089
# C compiler flags, and other items are library names, except for "none"
15090
# which indicates that we try without any flags at all, and "pthread-config"
15091
# which is a program returning the flags for the Pth emulation library.
15093
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15095
# The ordering *is* (sometimes) important. Some notes on the
15096
# individual items follow:
15098
# pthreads: AIX (must check this before -lpthread)
15099
# none: in case threads are in libc; should be tried before -Kthread and
15100
# other compiler flags to prevent continual compiler warnings
15101
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15102
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15103
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15104
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15105
# -pthreads: Solaris/gcc
15106
# -mthreads: Mingw32/gcc, Lynx/gcc
15107
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15108
# doesn't hurt to check since this sometimes defines pthreads too;
15109
# also defines -D_REENTRANT)
15110
# ... -mt is also the pthreads flag for HP/aCC
15111
# pthread: Linux, etcetera
15112
# --thread-safe: KAI C++
15113
# pthread-config: use pthread-config program (for GNU Pth library)
15115
case "${host_cpu}-${host_os}" in
15118
# On Solaris (at least, for some versions), libc contains stubbed
15119
# (non-functional) versions of the pthreads routines, so link-based
15120
# tests will erroneously succeed. (We need to link with -pthreads/-mt/
15121
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15122
# a function called by this macro, so we could check for that, but
15123
# who knows whether they'll stub that too in a future libc.) So,
15124
# we'll just look for -pthreads and -lpthread first:
15126
acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15130
if test x"$acx_pthread_ok" = xno; then
15131
for flag in $acx_pthread_flags; do
15135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15136
$as_echo_n "checking whether pthreads work without any flags... " >&6; }
15140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15141
$as_echo_n "checking whether pthreads work with $flag... " >&6; }
15142
PTHREAD_CFLAGS="$flag"
15146
# Extract the first word of "pthread-config", so it can be a program name with args.
15147
set dummy pthread-config; ac_word=$2
15148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15149
$as_echo_n "checking for $ac_word... " >&6; }
15150
if ${ac_cv_prog_acx_pthread_config+:} false; then :
15151
$as_echo_n "(cached) " >&6
15153
if test -n "$acx_pthread_config"; then
15154
ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157
for as_dir in $PATH
15160
test -z "$as_dir" && as_dir=.
15161
for ac_exec_ext in '' $ac_executable_extensions; do
15162
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15163
ac_cv_prog_acx_pthread_config="yes"
15164
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15171
test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15174
acx_pthread_config=$ac_cv_prog_acx_pthread_config
15175
if test -n "$acx_pthread_config"; then
15176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15177
$as_echo "$acx_pthread_config" >&6; }
15179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15180
$as_echo "no" >&6; }
15184
if test x"$acx_pthread_config" = xno; then continue; fi
15185
PTHREAD_CFLAGS="`pthread-config --cflags`"
15186
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15191
$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15192
PTHREAD_LIBS="-l$flag"
15197
save_CFLAGS="$CFLAGS"
15198
LIBS="$PTHREAD_LIBS $LIBS"
15199
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15201
# Check for various functions. We must include pthread.h,
15202
# since some functions may be macros. (On the Sequent, we
15203
# need a special flag -Kthread to make this header compile.)
15204
# We check for pthread_join because it is in -lpthread on IRIX
15205
# while pthread_create is in libc. We check for pthread_attr_init
15206
# due to DEC craziness with -lpthreads. We check for
15207
# pthread_cleanup_push because it is one of the few pthread
15208
# functions on Solaris that doesn't have a non-functional libc stub.
15209
# We try pthread_create on general principles.
15210
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211
/* end confdefs.h. */
15212
#include <pthread.h>
15216
pthread_t th; pthread_join(th, 0);
15217
pthread_attr_init(0); pthread_cleanup_push(0, 0);
15218
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15223
if ac_fn_c_try_link "$LINENO"; then :
15226
rm -f core conftest.err conftest.$ac_objext \
15227
conftest$ac_exeext conftest.$ac_ext
15230
CFLAGS="$save_CFLAGS"
15232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15233
$as_echo "$acx_pthread_ok" >&6; }
15234
if test "x$acx_pthread_ok" = xyes; then
15243
# Various other checks:
15244
if test "x$acx_pthread_ok" = xyes; then
15246
LIBS="$PTHREAD_LIBS $LIBS"
15247
save_CFLAGS="$CFLAGS"
15248
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15250
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15252
$as_echo_n "checking for joinable pthread attribute... " >&6; }
15254
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256
/* end confdefs.h. */
15257
#include <pthread.h>
15261
int attr=$attr; return attr;
15266
if ac_fn_c_try_link "$LINENO"; then :
15267
attr_name=$attr; break
15269
rm -f core conftest.err conftest.$ac_objext \
15270
conftest$ac_exeext conftest.$ac_ext
15272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15273
$as_echo "$attr_name" >&6; }
15274
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15276
cat >>confdefs.h <<_ACEOF
15277
#define PTHREAD_CREATE_JOINABLE $attr_name
15282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15283
$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15285
case "${host_cpu}-${host_os}" in
15286
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15287
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15290
$as_echo "${flag}" >&6; }
15291
if test "x$flag" != xno; then
15292
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15296
CFLAGS="$save_CFLAGS"
15297
# More AIX lossage: must compile with xlc_r or cc_r
15298
if test x"$GCC" != xyes; then
15299
for ac_prog in xlc_r cc_r
15301
# Extract the first word of "$ac_prog", so it can be a program name with args.
15302
set dummy $ac_prog; ac_word=$2
15303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15304
$as_echo_n "checking for $ac_word... " >&6; }
15305
if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15306
$as_echo_n "(cached) " >&6
15308
if test -n "$PTHREAD_CC"; then
15309
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312
for as_dir in $PATH
15315
test -z "$as_dir" && as_dir=.
15316
for ac_exec_ext in '' $ac_executable_extensions; do
15317
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15318
ac_cv_prog_PTHREAD_CC="$ac_prog"
15319
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15328
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15329
if test -n "$PTHREAD_CC"; then
15330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15331
$as_echo "$PTHREAD_CC" >&6; }
15333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334
$as_echo "no" >&6; }
15338
test -n "$PTHREAD_CC" && break
15340
test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15346
# The next part tries to detect GCC inconsistency with -shared on some
15347
# architectures and systems. The problem is that in certain
15348
# configurations, when -shared is specified, GCC "forgets" to
15349
# internally use various flags which are still necessary.
15352
# Prepare the flags
15354
save_CFLAGS="$CFLAGS"
15358
# Try with the flags determined by the earlier checks.
15360
# -Wl,-z,defs forces link-time symbol resolution, so that the
15361
# linking checks with -shared actually have any value
15363
# FIXME: -fPIC is required for -shared on many architectures,
15364
# so we specify it here, but the right way would probably be to
15365
# properly detect whether it is actually required.
15366
CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
15367
LIBS="$PTHREAD_LIBS $LIBS"
15370
# In order not to create several levels of indentation, we test
15371
# the value of "$done" until we find the cure or run out of ideas.
15374
# First, make sure the CFLAGS we added are actually accepted by our
15375
# compiler. If not (and OS X's ld, for instance, does not accept -z),
15376
# then we can't do this test.
15377
if test x"$done" = xno; then
15378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
15379
$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
15380
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381
/* end confdefs.h. */
15391
if ac_fn_c_try_link "$LINENO"; then :
15396
rm -f core conftest.err conftest.$ac_objext \
15397
conftest$ac_exeext conftest.$ac_ext
15399
if test "x$done" = xyes ; then
15400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15401
$as_echo "no" >&6; }
15403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15404
$as_echo "yes" >&6; }
15408
if test x"$done" = xno; then
15409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
15410
$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
15411
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412
/* end confdefs.h. */
15413
#include <pthread.h>
15417
pthread_t th; pthread_join(th, 0);
15418
pthread_attr_init(0); pthread_cleanup_push(0, 0);
15419
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15424
if ac_fn_c_try_link "$LINENO"; then :
15427
rm -f core conftest.err conftest.$ac_objext \
15428
conftest$ac_exeext conftest.$ac_ext
15430
if test "x$done" = xyes; then
15431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15432
$as_echo "yes" >&6; }
15434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435
$as_echo "no" >&6; }
15440
# Linux gcc on some architectures such as mips/mipsel forgets
15443
if test x"$done" = xno; then
15444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
15445
$as_echo_n "checking whether -lpthread fixes that... " >&6; }
15446
LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
15447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448
/* end confdefs.h. */
15449
#include <pthread.h>
15453
pthread_t th; pthread_join(th, 0);
15454
pthread_attr_init(0); pthread_cleanup_push(0, 0);
15455
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15460
if ac_fn_c_try_link "$LINENO"; then :
15463
rm -f core conftest.err conftest.$ac_objext \
15464
conftest$ac_exeext conftest.$ac_ext
15466
if test "x$done" = xyes; then
15467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15468
$as_echo "yes" >&6; }
15469
PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
15471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15472
$as_echo "no" >&6; }
15476
# FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
15478
if test x"$done" = xno; then
15479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
15480
$as_echo_n "checking whether -lc_r fixes that... " >&6; }
15481
LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
15482
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483
/* end confdefs.h. */
15484
#include <pthread.h>
15488
pthread_t th; pthread_join(th, 0);
15489
pthread_attr_init(0); pthread_cleanup_push(0, 0);
15490
pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15495
if ac_fn_c_try_link "$LINENO"; then :
15498
rm -f core conftest.err conftest.$ac_objext \
15499
conftest$ac_exeext conftest.$ac_ext
15501
if test "x$done" = xyes; then
15502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15503
$as_echo "yes" >&6; }
15504
PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
15506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15507
$as_echo "no" >&6; }
15510
if test x"$done" = xno; then
15511
# OK, we have run out of ideas
15512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
15513
$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
15515
# so it's not safe to assume that we may use pthreads
15519
CFLAGS="$save_CFLAGS"
15530
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15531
if test x"$acx_pthread_ok" = xyes; then
15533
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15538
if test "x$with_pthreads" != "xcheck"; then :
15539
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15540
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15541
as_fn_error $? "--with-pthreads was specified, but unable to be used
15542
See \`config.log' for more details" "$LINENO" 5; }
15546
ac_cpp='$CXXCPP $CPPFLAGS'
15547
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15548
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15549
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15552
have_pthreads="$acx_pthread_ok"
15554
if test "x$have_pthreads" == "xyes"; then
15555
HAVE_PTHREADS_TRUE=
15556
HAVE_PTHREADS_FALSE='#'
15558
HAVE_PTHREADS_TRUE='#'
15559
HAVE_PTHREADS_FALSE=
15565
# TODO(chandlerc@google.com) Check for the necessary system headers.
15567
# TODO(chandlerc@google.com) Check the types, structures, and other compiler
15568
# and architecture characteristics.
15570
# Output the generated files. No further autoconf macros may be used.
15571
cat >confcache <<\_ACEOF
15572
# This file is a shell script that caches the results of configure
15573
# tests run on this system so they can be shared between configure
15574
# scripts and configure runs, see configure's option --config-cache.
15575
# It is not useful on other systems. If it contains results you don't
15576
# want to keep, you may remove or edit it.
15578
# config.status only pays attention to the cache file if you give it
15579
# the --recheck option to rerun configure.
15581
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15582
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15583
# following values.
15587
# The following way of writing the cache mishandles newlines in values,
15588
# but we know of no workaround that is simple, portable, and efficient.
15589
# So, we kill variables containing newlines.
15590
# Ultrix sh set writes to stderr and can't be redirected directly,
15591
# and sets the high bit in the cache file unless we assign to the vars.
15593
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15594
eval ac_val=\$$ac_var
15598
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15599
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15602
_ | IFS | as_nl) ;; #(
15603
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15604
*) { eval $ac_var=; unset $ac_var;} ;;
15610
case $as_nl`(ac_space=' '; set) 2>&1` in #(
15611
*${as_nl}ac_space=\ *)
15612
# `set' does not quote correctly, so add quotes: double-quote
15613
# substitution turns \\\\ into \\, and sed turns \\ into \.
15616
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15619
# `set' quotes correctly as required by POSIX, so do not add quotes.
15620
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15629
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15631
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15633
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15634
if test -w "$cache_file"; then
15635
if test "x$cache_file" != "x/dev/null"; then
15636
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15637
$as_echo "$as_me: updating cache $cache_file" >&6;}
15638
if test ! -f "$cache_file" || test -h "$cache_file"; then
15639
cat confcache >"$cache_file"
15641
case $cache_file in #(
15643
mv -f confcache "$cache_file"$$ &&
15644
mv -f "$cache_file"$$ "$cache_file" ;; #(
15646
mv -f confcache "$cache_file" ;;
15651
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15652
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15657
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15658
# Let make expand exec_prefix.
15659
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15661
DEFS=-DHAVE_CONFIG_H
15666
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15667
# 1. Remove the extension, and $U if already installed.
15668
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15669
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15670
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15671
# will be set to the directory where LIBOBJS objects are built.
15672
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15673
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15675
LIBOBJS=$ac_libobjs
15677
LTLIBOBJS=$ac_ltlibobjs
15680
if test -n "$EXEEXT"; then
15682
am__EXEEXT_FALSE='#'
15684
am__EXEEXT_TRUE='#'
15688
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15689
as_fn_error $? "conditional \"AMDEP\" was never defined.
15690
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15692
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15693
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15694
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15696
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15697
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15698
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15700
if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15701
as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
15702
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15704
if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
15705
as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined.
15706
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15709
: "${CONFIG_STATUS=./config.status}"
15711
ac_clean_files_save=$ac_clean_files
15712
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15713
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15714
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15716
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15718
# Generated by $as_me.
15719
# Run this file to recreate the current configuration.
15720
# Compiler output produced by configure, useful for debugging
15721
# configure, is in config.log if it exists.
15724
ac_cs_recheck=false
15727
SHELL=\${CONFIG_SHELL-$SHELL}
15730
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15731
## -------------------- ##
15732
## M4sh Initialization. ##
15733
## -------------------- ##
15735
# Be more Bourne compatible
15736
DUALCASE=1; export DUALCASE # for MKS sh
15737
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15740
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15741
# is contrary to our usage. Disable this feature.
15742
alias -g '${1+"$@"}'='"$@"'
15743
setopt NO_GLOB_SUBST
15745
case `(set -o) 2>/dev/null` in #(
15757
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15758
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15759
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15760
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15761
# Prefer a ksh shell builtin over an external printf program on Solaris,
15762
# but without wasting forks for bash or zsh.
15763
if test -z "$BASH_VERSION$ZSH_VERSION" \
15764
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15765
as_echo='print -r --'
15766
as_echo_n='print -rn --'
15767
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15768
as_echo='printf %s\n'
15769
as_echo_n='printf %s'
15771
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15772
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15773
as_echo_n='/usr/ucb/echo -n'
15775
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15776
as_echo_n_body='eval
15780
expr "X$arg" : "X\\(.*\\)$as_nl";
15781
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15783
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15785
export as_echo_n_body
15786
as_echo_n='sh -c $as_echo_n_body as_echo'
15788
export as_echo_body
15789
as_echo='sh -c $as_echo_body as_echo'
15792
# The user is always right.
15793
if test "${PATH_SEPARATOR+set}" != set; then
15795
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15796
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15803
# We need space, tab and new line, in precisely that order. Quoting is
15804
# there to prevent editors from complaining about space-tab.
15805
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15806
# splitting by setting IFS to empty value.)
15809
# Find who we are. Look in the path if we contain no directory separator.
15812
*[\\/]* ) as_myself=$0 ;;
15813
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814
for as_dir in $PATH
15817
test -z "$as_dir" && as_dir=.
15818
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15824
# We did not find ourselves, most probably we were run as `sh COMMAND'
15825
# in which case we are not to be found in the path.
15826
if test "x$as_myself" = x; then
15829
if test ! -f "$as_myself"; then
15830
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15834
# Unset variables that we do not need and which cause bugs (e.g. in
15835
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15836
# suppresses any "Segmentation fault" message there. '((' could
15837
# trigger a bug in pdksh 5.2.14.
15838
for as_var in BASH_ENV ENV MAIL MAILPATH
15839
do eval test x\${$as_var+set} = xset \
15840
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15853
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15856
# as_fn_error STATUS ERROR [LINENO LOG_FD]
15857
# ----------------------------------------
15858
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15859
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15860
# script with STATUS, using 1 if that was 0.
15863
as_status=$1; test $as_status -eq 0 && as_status=1
15865
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15866
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15868
$as_echo "$as_me: error: $2" >&2
15869
as_fn_exit $as_status
15873
# as_fn_set_status STATUS
15874
# -----------------------
15875
# Set $? to STATUS, without forking.
15876
as_fn_set_status ()
15879
} # as_fn_set_status
15881
# as_fn_exit STATUS
15882
# -----------------
15883
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15887
as_fn_set_status $1
15893
# Portably unset VAR.
15896
{ eval $1=; unset $1;}
15898
as_unset=as_fn_unset
15899
# as_fn_append VAR VALUE
15900
# ----------------------
15901
# Append the text in VALUE to the end of the definition contained in VAR. Take
15902
# advantage of any shell optimizations that allow amortized linear growth over
15903
# repeated appends, instead of the typical quadratic growth present in naive
15905
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15906
eval 'as_fn_append ()
15917
# as_fn_arith ARG...
15918
# ------------------
15919
# Perform arithmetic evaluation on the ARGs, and store the result in the
15920
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15921
# must be portable across $(()) and expr.
15922
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15923
eval 'as_fn_arith ()
15930
as_val=`expr "$@" || test $? -eq 1`
15935
if expr a : '\(a\)' >/dev/null 2>&1 &&
15936
test "X`expr 00001 : '.*\(...\)'`" = X001; then
15942
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15943
as_basename=basename
15948
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15954
as_me=`$as_basename -- "$0" ||
15955
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15956
X"$0" : 'X\(//\)$' \| \
15957
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15959
sed '/^.*\/\([^/][^/]*\)\/*$/{
15973
# Avoid depending upon Character Ranges.
15974
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15975
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15976
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15977
as_cr_digits='0123456789'
15978
as_cr_alnum=$as_cr_Letters$as_cr_digits
15980
ECHO_C= ECHO_N= ECHO_T=
15981
case `echo -n x` in #(((((
15983
case `echo 'xy\c'` in
15984
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
15986
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15993
rm -f conf$$ conf$$.exe conf$$.file
15994
if test -d conf$$.dir; then
15995
rm -f conf$$.dir/conf$$.file
15998
mkdir conf$$.dir 2>/dev/null
16000
if (echo >conf$$.file) 2>/dev/null; then
16001
if ln -s conf$$.file conf$$ 2>/dev/null; then
16003
# ... but there are two gotchas:
16004
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16005
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16006
# In both cases, we have to default to `cp -p'.
16007
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16009
elif ln conf$$.file conf$$ 2>/dev/null; then
16017
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16018
rmdir conf$$.dir 2>/dev/null
16023
# Create "$as_dir" as a directory, including parents if necessary.
16028
-*) as_dir=./$as_dir;;
16030
test -d "$as_dir" || eval $as_mkdir_p || {
16034
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16035
*) as_qdir=$as_dir;;
16037
as_dirs="'$as_qdir' $as_dirs"
16038
as_dir=`$as_dirname -- "$as_dir" ||
16039
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040
X"$as_dir" : 'X\(//\)[^/]' \| \
16041
X"$as_dir" : 'X\(//\)$' \| \
16042
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16043
$as_echo X"$as_dir" |
16044
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16048
/^X\(\/\/\)[^/].*/{
16061
test -d "$as_dir" && break
16063
test -z "$as_dirs" || eval "mkdir $as_dirs"
16064
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16068
if mkdir -p . 2>/dev/null; then
16069
as_mkdir_p='mkdir -p "$as_dir"'
16071
test -d ./-p && rmdir ./-p
16075
if test -x / >/dev/null 2>&1; then
16076
as_test_x='test -x'
16078
if ls -dL / >/dev/null 2>&1; then
16085
if test -d "$1"; then
16091
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16092
???[sx]*):;;*)false;;esac;fi
16096
as_executable_p=$as_test_x
16098
# Sed expression to map a string onto a valid CPP name.
16099
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16101
# Sed expression to map a string onto a valid variable name.
16102
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16106
## ----------------------------------- ##
16107
## Main body of $CONFIG_STATUS script. ##
16108
## ----------------------------------- ##
16110
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16112
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16113
# Save the log message, to keep $0 and so on meaningful, and to
16114
# report actual input values of CONFIG_FILES etc. instead of their
16115
# values after options handling.
16117
This file was extended by Google C++ Testing Framework $as_me 1.5.0, which was
16118
generated by GNU Autoconf 2.68. Invocation command line was
16120
CONFIG_FILES = $CONFIG_FILES
16121
CONFIG_HEADERS = $CONFIG_HEADERS
16122
CONFIG_LINKS = $CONFIG_LINKS
16123
CONFIG_COMMANDS = $CONFIG_COMMANDS
16126
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16131
case $ac_config_files in *"
16132
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16135
case $ac_config_headers in *"
16136
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16140
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16141
# Files that config.status was made for.
16142
config_files="$ac_config_files"
16143
config_headers="$ac_config_headers"
16144
config_commands="$ac_config_commands"
16148
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16150
\`$as_me' instantiates files and other configuration actions
16151
from templates according to the current configuration. Unless the files
16152
and actions are specified as TAGs, all are instantiated by default.
16154
Usage: $0 [OPTION]... [TAG]...
16156
-h, --help print this help, then exit
16157
-V, --version print version number and configuration settings, then exit
16158
--config print configuration, then exit
16159
-q, --quiet, --silent
16160
do not print progress messages
16161
-d, --debug don't remove temporary files
16162
--recheck update $as_me by reconfiguring in the same conditions
16163
--file=FILE[:TEMPLATE]
16164
instantiate the configuration file FILE
16165
--header=FILE[:TEMPLATE]
16166
instantiate the configuration header FILE
16168
Configuration files:
16171
Configuration headers:
16174
Configuration commands:
16177
Report bugs to <googletestframework@googlegroups.com>."
16180
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16181
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16183
Google C++ Testing Framework config.status 1.5.0
16184
configured by $0, generated by GNU Autoconf 2.68,
16185
with options \\"\$ac_cs_config\\"
16187
Copyright (C) 2010 Free Software Foundation, Inc.
16188
This config.status script is free software; the Free Software Foundation
16189
gives unlimited permission to copy, distribute and modify it."
16196
test -n "\$AWK" || AWK=awk
16199
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200
# The default lists apply if the user does not specify any file.
16206
ac_option=`expr "X$1" : 'X\([^=]*\)='`
16207
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16211
ac_option=`expr "X$1" : 'X\([^=]*\)='`
16223
# Handling of the options.
16224
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16226
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16227
$as_echo "$ac_cs_version"; exit ;;
16228
--config | --confi | --conf | --con | --co | --c )
16229
$as_echo "$ac_cs_config"; exit ;;
16230
--debug | --debu | --deb | --de | --d | -d )
16232
--file | --fil | --fi | --f )
16235
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16236
'') as_fn_error $? "missing file argument" ;;
16238
as_fn_append CONFIG_FILES " '$ac_optarg'"
16239
ac_need_defaults=false;;
16240
--header | --heade | --head | --hea )
16243
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16245
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16246
ac_need_defaults=false;;
16248
# Conflict between --help and --header
16249
as_fn_error $? "ambiguous option: \`$1'
16250
Try \`$0 --help' for more information.";;
16251
--help | --hel | -h )
16252
$as_echo "$ac_cs_usage"; exit ;;
16253
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
16254
| -silent | --silent | --silen | --sile | --sil | --si | --s)
16257
# This is an error.
16258
-*) as_fn_error $? "unrecognized option: \`$1'
16259
Try \`$0 --help' for more information." ;;
16261
*) as_fn_append ac_config_targets " $1"
16262
ac_need_defaults=false ;;
16268
ac_configure_extra_args=
16270
if $ac_cs_silent; then
16272
ac_configure_extra_args="$ac_configure_extra_args --silent"
16276
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16277
if \$ac_cs_recheck; then
16278
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16280
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16281
CONFIG_SHELL='$SHELL'
16282
export CONFIG_SHELL
16287
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16291
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16292
## Running $as_me. ##
16298
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16302
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16305
# The HP-UX ksh and POSIX shell print the target directory to stdout
16306
# if CDPATH is set.
16307
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16309
sed_quote_subst='$sed_quote_subst'
16310
double_quote_subst='$double_quote_subst'
16311
delay_variable_subst='$delay_variable_subst'
16312
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16313
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16314
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16315
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16316
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16317
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16318
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16319
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16320
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16321
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16322
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16323
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16324
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16325
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16326
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16327
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16328
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16329
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16330
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16331
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16332
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16333
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16334
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16335
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16336
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16337
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16338
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16339
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16340
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16341
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16342
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16343
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16344
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16345
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16346
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16347
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16348
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16349
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16350
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16351
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16352
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16353
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16354
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16355
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16356
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16357
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16358
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16359
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16360
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16361
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16362
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16363
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16364
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16365
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16366
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16367
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16368
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16369
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16370
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16371
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16372
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16373
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16374
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16375
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16376
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16377
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16378
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16379
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16380
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16381
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16382
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16383
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16384
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16385
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16386
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16387
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16388
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16389
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16390
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16391
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16392
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16393
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16394
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16395
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16396
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16397
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16398
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16399
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16400
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16401
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16402
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16403
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16404
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16405
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16406
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16407
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16408
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16409
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16410
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16411
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16412
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16413
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16414
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16415
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16416
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16417
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16418
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16419
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16420
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16421
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16422
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16423
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16424
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16425
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16426
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16427
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16428
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16429
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16430
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16431
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16432
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16433
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16434
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16435
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16436
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16437
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16438
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16439
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16440
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16441
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16442
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16443
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16444
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16445
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16446
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16447
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16448
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16449
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16450
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16451
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16452
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16453
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16454
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16455
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16456
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16457
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16458
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16459
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16460
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16461
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16462
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16463
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16464
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16465
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16466
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16467
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16468
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16469
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16470
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16471
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16472
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16473
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16474
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16475
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16476
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16477
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16478
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16479
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16480
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16481
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16482
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16483
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16484
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16485
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16486
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16487
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16488
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16489
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16490
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16491
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16492
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16493
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16494
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16495
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16498
LTCFLAGS='$LTCFLAGS'
16499
compiler='$compiler_DEFAULT'
16501
# A function that is used when there is no print builtin or printf.
16502
func_fallback_echo ()
16504
eval 'cat <<_LTECHO_EOF
16509
# Quote evaled strings.
16524
deplibs_check_method \
16529
sharedlib_from_linklib_cmd \
16532
archiver_list_spec \
16538
lt_cv_sys_global_symbol_pipe \
16539
lt_cv_sys_global_symbol_to_cdecl \
16540
lt_cv_sys_global_symbol_to_c_name_address \
16541
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16542
nm_file_list_spec \
16543
lt_prog_compiler_no_builtin_flag \
16544
lt_prog_compiler_pic \
16545
lt_prog_compiler_wl \
16546
lt_prog_compiler_static \
16547
lt_cv_prog_compiler_c_o \
16556
export_dynamic_flag_spec \
16557
whole_archive_flag_spec \
16558
compiler_needs_object \
16560
allow_undefined_flag \
16561
no_undefined_flag \
16562
hardcode_libdir_flag_spec \
16563
hardcode_libdir_separator \
16567
variables_saved_for_relink \
16569
library_names_spec \
16571
install_override_mode \
16575
compiler_lib_search_dirs \
16580
compiler_lib_search_path \
16584
lt_prog_compiler_no_builtin_flag_CXX \
16585
lt_prog_compiler_pic_CXX \
16586
lt_prog_compiler_wl_CXX \
16587
lt_prog_compiler_static_CXX \
16588
lt_cv_prog_compiler_c_o_CXX \
16589
export_dynamic_flag_spec_CXX \
16590
whole_archive_flag_spec_CXX \
16591
compiler_needs_object_CXX \
16593
allow_undefined_flag_CXX \
16594
no_undefined_flag_CXX \
16595
hardcode_libdir_flag_spec_CXX \
16596
hardcode_libdir_separator_CXX \
16597
exclude_expsyms_CXX \
16598
include_expsyms_CXX \
16599
file_list_spec_CXX \
16600
compiler_lib_search_dirs_CXX \
16601
predep_objects_CXX \
16602
postdep_objects_CXX \
16605
compiler_lib_search_path_CXX; do
16606
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16607
*[\\\\\\\`\\"\\\$]*)
16608
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16611
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16616
# Double-quote double-evaled strings.
16617
for var in reload_cmds \
16618
old_postinstall_cmds \
16619
old_postuninstall_cmds \
16621
extract_expsyms_cmds \
16622
old_archive_from_new_cmds \
16623
old_archive_from_expsyms_cmds \
16625
archive_expsym_cmds \
16627
module_expsym_cmds \
16628
export_symbols_cmds \
16632
postuninstall_cmds \
16634
sys_lib_search_path_spec \
16635
sys_lib_dlsearch_path_spec \
16637
old_archive_cmds_CXX \
16638
old_archive_from_new_cmds_CXX \
16639
old_archive_from_expsyms_cmds_CXX \
16641
archive_expsym_cmds_CXX \
16643
module_expsym_cmds_CXX \
16644
export_symbols_cmds_CXX \
16646
postlink_cmds_CXX; do
16647
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16648
*[\\\\\\\`\\"\\\$]*)
16649
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16652
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16657
ac_aux_dir='$ac_aux_dir'
16658
xsi_shell='$xsi_shell'
16659
lt_shell_append='$lt_shell_append'
16661
# See if we are running on zsh, and set the options which allow our
16662
# commands through without removal of \ escapes INIT.
16663
if test -n "\${ZSH_VERSION+set}" ; then
16664
setopt NO_GLOB_SUBST
16670
TIMESTAMP='$TIMESTAMP'
16681
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16683
# Handling of arguments.
16684
for ac_config_target in $ac_config_targets
16686
case $ac_config_target in
16687
"build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
16688
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16689
"scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
16690
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16691
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16693
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16698
# If the user did not use the arguments to specify the items to instantiate,
16699
# then the envvar interface is used. Set only those that are not.
16700
# We use the long form for the default assignment because of an extremely
16701
# bizarre bug on SunOS 4.1.3.
16702
if $ac_need_defaults; then
16703
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16704
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16705
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16708
# Have a temporary directory for convenience. Make it in the build tree
16709
# simply because there is no reason against having it here, and in addition,
16710
# creating and moving files from /tmp can sometimes cause problems.
16711
# Hook for its removal unless debugging.
16712
# Note that there is a small window in which the directory will not be cleaned:
16713
# after its creation but before its name has been assigned to `$tmp'.
16717
trap 'exit_status=$?
16718
: "${ac_tmp:=$tmp}"
16719
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16721
trap 'as_fn_exit 1' 1 2 13 15
16723
# Create a (secure) tmp directory for tmp files.
16726
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16730
tmp=./conf$$-$RANDOM
16731
(umask 077 && mkdir "$tmp")
16732
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16735
# Set up the scripts for CONFIG_FILES section.
16736
# No need to generate them if there are no CONFIG_FILES.
16737
# This happens for instance with `./config.status config.h'.
16738
if test -n "$CONFIG_FILES"; then
16741
ac_cr=`echo X | tr X '\015'`
16742
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16743
# But we know of no other shell where ac_cr would be empty at this
16744
# point, so we can use a bashism as a fallback.
16745
if test "x$ac_cr" = x; then
16746
eval ac_cr=\$\'\\r\'
16748
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16749
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16752
ac_cs_awk_cr=$ac_cr
16755
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16760
echo "cat >conf$$subs.awk <<_ACEOF" &&
16761
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16763
} >conf$$subs.sh ||
16764
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16765
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16767
for ac_last_try in false false false false false :; do
16768
. ./conf$$subs.sh ||
16769
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16771
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16772
if test $ac_delim_n = $ac_delim_num; then
16774
elif $ac_last_try; then
16775
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16777
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16780
rm -f conf$$subs.sh
16782
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16783
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16787
s/^/S["/; s/!.*/"]=/
16797
s/\(.\{148\}\)..*/\1/
16799
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16804
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16811
s/\(.\{148\}\)..*/\1/
16813
s/["\\]/\\&/g; s/^/"/; s/$/"/
16817
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16822
' <conf$$subs.awk | sed '
16827
' >>$CONFIG_STATUS || ac_write_fail=1
16828
rm -f conf$$subs.awk
16829
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16832
for (key in S) S_is_set[key] = 1
16838
nfields = split(line, field, "@")
16840
len = length(field[1])
16841
for (i = 2; i < nfields; i++) {
16843
keylen = length(key)
16844
if (S_is_set[key]) {
16846
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16847
len += length(value) + length(field[++i])
16858
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16859
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16860
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16863
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16864
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16867
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16868
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16869
# trailing colons and then remove the whole line if VPATH becomes empty
16870
# (actually we leave an empty line to preserve line numbers).
16871
if test "x$srcdir" = x.; then
16872
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16890
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16891
fi # test -n "$CONFIG_FILES"
16893
# Set up the scripts for CONFIG_HEADERS section.
16894
# No need to generate them if there are no CONFIG_HEADERS.
16895
# This happens for instance with `./config.status Makefile'.
16896
if test -n "$CONFIG_HEADERS"; then
16897
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16901
# Transform confdefs.h into an awk script `defines.awk', embedded as
16902
# here-document in config.status, that substitutes the proper values into
16903
# config.h.in to produce config.h.
16905
# Create a delimiter string that does not exist in confdefs.h, to ease
16906
# handling of long lines.
16908
for ac_last_try in false false :; do
16909
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16910
if test -z "$ac_tt"; then
16912
elif $ac_last_try; then
16913
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16915
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16919
# For the awk script, D is an array of macro values keyed by name,
16920
# likewise P contains macro parameters if any. Preserve backslash
16921
# newline sequences.
16923
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16925
s/.\{148\}/&'"$ac_delim"'/g
16928
s/^[ ]*#[ ]*define[ ][ ]*/ /
16935
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16937
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16941
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16942
D["\1"]=" \3\\\\\\n"\\/p
16944
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16949
s/.\{148\}/&'"$ac_delim"'/g
16954
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16957
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16959
' <confdefs.h | sed '
16960
s/'"$ac_delim"'/"\\\
16961
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16963
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16964
for (key in D) D_is_set[key] = 1
16967
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16969
split(line, arg, " ")
16970
if (arg[1] == "#") {
16974
defundef = substr(arg[1], 2)
16977
split(mac1, mac2, "(") #)
16979
prefix = substr(line, 1, index(line, defundef) - 1)
16980
if (D_is_set[macro]) {
16981
# Preserve the white space surrounding the "#".
16982
print prefix "define", macro P[macro] D[macro]
16985
# Replace #undef with comments. This is necessary, for example,
16986
# in the case of _POSIX_SOURCE, which is predefined and required
16987
# on some systems where configure will not decide to define it.
16988
if (defundef == "undef") {
16989
print "/*", prefix defundef, macro, "*/"
16997
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16998
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16999
fi # test -n "$CONFIG_HEADERS"
17002
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17007
:[FHLC]) ac_mode=$ac_tag; continue;;
17009
case $ac_mode$ac_tag in
17011
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17012
:[FH]-) ac_tag=-:-;;
17013
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17030
-) ac_f="$ac_tmp/stdin";;
17031
*) # Look for the file first in the build tree, then in the source tree
17032
# (if the path is not absolute). The absolute path cannot be DOS-style,
17033
# because $ac_f cannot contain `:'.
17037
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17039
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17041
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17042
as_fn_append ac_file_inputs " '$ac_f'"
17045
# Let's still pretend it is `configure' which instantiates (i.e., don't
17046
# use $as_me), people would be surprised to read:
17047
# /* config.h. Generated by config.status. */
17048
configure_input='Generated from '`
17049
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17051
if test x"$ac_file" != x-; then
17052
configure_input="$ac_file. $configure_input"
17053
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17054
$as_echo "$as_me: creating $ac_file" >&6;}
17056
# Neutralize special characters interpreted by sed in replacement strings.
17057
case $configure_input in #(
17058
*\&* | *\|* | *\\* )
17059
ac_sed_conf_input=`$as_echo "$configure_input" |
17060
sed 's/[\\\\&|]/\\\\&/g'`;; #(
17061
*) ac_sed_conf_input=$configure_input;;
17065
*:-:* | *:-) cat >"$ac_tmp/stdin" \
17066
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17071
ac_dir=`$as_dirname -- "$ac_file" ||
17072
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17073
X"$ac_file" : 'X\(//\)[^/]' \| \
17074
X"$ac_file" : 'X\(//\)$' \| \
17075
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17076
$as_echo X"$ac_file" |
17077
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17081
/^X\(\/\/\)[^/].*/{
17094
as_dir="$ac_dir"; as_fn_mkdir_p
17098
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17100
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17101
# A ".." for each directory in $ac_dir_suffix.
17102
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17103
case $ac_top_builddir_sub in
17104
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17105
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17108
ac_abs_top_builddir=$ac_pwd
17109
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17110
# for backward compatibility:
17111
ac_top_builddir=$ac_top_build_prefix
17114
.) # We are building in place.
17116
ac_top_srcdir=$ac_top_builddir_sub
17117
ac_abs_top_srcdir=$ac_pwd ;;
17118
[\\/]* | ?:[\\/]* ) # Absolute name.
17119
ac_srcdir=$srcdir$ac_dir_suffix;
17120
ac_top_srcdir=$srcdir
17121
ac_abs_top_srcdir=$srcdir ;;
17122
*) # Relative name.
17123
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17124
ac_top_srcdir=$ac_top_build_prefix$srcdir
17125
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17127
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17137
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17138
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17140
ac_MKDIR_P=$MKDIR_P
17142
[\\/$]* | ?:[\\/]* ) ;;
17143
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17147
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17148
# If the template does not know about datarootdir, expand it.
17149
# FIXME: This hack should be removed a few years after 2.60.
17150
ac_datarootdir_hack=; ac_datarootdir_seen=
17161
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17162
*datarootdir*) ac_datarootdir_seen=yes;;
17163
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17164
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17165
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17167
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17168
ac_datarootdir_hack='
17169
s&@datadir@&$datadir&g
17170
s&@docdir@&$docdir&g
17171
s&@infodir@&$infodir&g
17172
s&@localedir@&$localedir&g
17173
s&@mandir@&$mandir&g
17174
s&\\\${datarootdir}&$datarootdir&g' ;;
17178
# Neutralize VPATH when `$srcdir' = `.'.
17179
# Shell code in configure.ac might set extrasub.
17180
# FIXME: do we really want to maintain this feature?
17181
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17182
ac_sed_extra="$ac_vpsub
17185
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17187
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17188
s|@configure_input@|$ac_sed_conf_input|;t t
17189
s&@top_builddir@&$ac_top_builddir_sub&;t t
17190
s&@top_build_prefix@&$ac_top_build_prefix&;t t
17191
s&@srcdir@&$ac_srcdir&;t t
17192
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17193
s&@top_srcdir@&$ac_top_srcdir&;t t
17194
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17195
s&@builddir@&$ac_builddir&;t t
17196
s&@abs_builddir@&$ac_abs_builddir&;t t
17197
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17198
s&@INSTALL@&$ac_INSTALL&;t t
17199
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17200
$ac_datarootdir_hack
17202
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17203
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17205
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17206
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17207
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17208
"$ac_tmp/out"`; test -z "$ac_out"; } &&
17209
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17210
which seems to be undefined. Please make sure it is defined" >&5
17211
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17212
which seems to be undefined. Please make sure it is defined" >&2;}
17214
rm -f "$ac_tmp/stdin"
17216
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17217
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17219
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17225
if test x"$ac_file" != x-; then
17227
$as_echo "/* $configure_input */" \
17228
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17229
} >"$ac_tmp/config.h" \
17230
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17231
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17232
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17233
$as_echo "$as_me: $ac_file is unchanged" >&6;}
17236
mv "$ac_tmp/config.h" "$ac_file" \
17237
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17240
$as_echo "/* $configure_input */" \
17241
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17242
|| as_fn_error $? "could not create -" "$LINENO" 5
17244
# Compute "$ac_file"'s index in $config_headers.
17247
for _am_header in $config_headers :; do
17248
case $_am_header in
17249
$_am_arg | $_am_arg:* )
17252
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
17255
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17256
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17257
X"$_am_arg" : 'X\(//\)[^/]' \| \
17258
X"$_am_arg" : 'X\(//\)$' \| \
17259
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17260
$as_echo X"$_am_arg" |
17261
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17265
/^X\(\/\/\)[^/].*/{
17277
s/.*/./; q'`/stamp-h$_am_stamp_count
17280
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17281
$as_echo "$as_me: executing $ac_file commands" >&6;}
17286
case $ac_file$ac_mode in
17287
"scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
17288
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17289
# Autoconf 2.62 quotes --file arguments for eval, but not when files
17290
# are listed without --file. Let's play safe and only enable the eval
17291
# if we detect the quoting.
17292
case $CONFIG_FILES in
17293
*\'*) eval set x "$CONFIG_FILES" ;;
17294
*) set x $CONFIG_FILES ;;
17299
# Strip MF so we end up with the name of the file.
17300
mf=`echo "$mf" | sed -e 's/:.*$//'`
17301
# Check whether this is an Automake generated Makefile or not.
17302
# We used to match only the files named `Makefile.in', but
17303
# some people rename them; so instead we look at the file content.
17304
# Grep'ing the first line is not enough: some people post-process
17305
# each Makefile.in and add a new line on top of each file to say so.
17306
# Grep'ing the whole file is not good either: AIX grep has a line
17307
# limit of 2048, but all sed's we know have understand at least 4000.
17308
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17309
dirpart=`$as_dirname -- "$mf" ||
17310
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17311
X"$mf" : 'X\(//\)[^/]' \| \
17312
X"$mf" : 'X\(//\)$' \| \
17313
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17315
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17319
/^X\(\/\/\)[^/].*/{
17335
# Extract the definition of DEPDIR, am__include, and am__quote
17336
# from the Makefile without running `make'.
17337
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17338
test -z "$DEPDIR" && continue
17339
am__include=`sed -n 's/^am__include = //p' < "$mf"`
17340
test -z "am__include" && continue
17341
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17342
# When using ansi2knr, U may be empty or an underscore; expand it
17343
U=`sed -n 's/^U = //p' < "$mf"`
17344
# Find all dependency output files, they are included files with
17345
# $(DEPDIR) in their names. We invoke sed twice because it is the
17346
# simplest approach to changing $(DEPDIR) to its actual value in the
17348
for file in `sed -n "
17349
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17350
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17351
# Make sure the directory exists.
17352
test -f "$dirpart/$file" && continue
17353
fdir=`$as_dirname -- "$file" ||
17354
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17355
X"$file" : 'X\(//\)[^/]' \| \
17356
X"$file" : 'X\(//\)$' \| \
17357
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17358
$as_echo X"$file" |
17359
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17363
/^X\(\/\/\)[^/].*/{
17376
as_dir=$dirpart/$fdir; as_fn_mkdir_p
17377
# echo "creating $dirpart/$file"
17378
echo '# dummy' > "$dirpart/$file"
17385
# See if we are running on zsh, and set the options which allow our
17386
# commands through without removal of \ escapes.
17387
if test -n "${ZSH_VERSION+set}" ; then
17388
setopt NO_GLOB_SUBST
17391
cfgfile="${ofile}T"
17392
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17395
cat <<_LT_EOF >> "$cfgfile"
17398
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17399
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17400
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17401
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17403
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17404
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17406
# Written by Gordon Matzigkeit, 1996
17408
# This file is part of GNU Libtool.
17410
# GNU Libtool is free software; you can redistribute it and/or
17411
# modify it under the terms of the GNU General Public License as
17412
# published by the Free Software Foundation; either version 2 of
17413
# the License, or (at your option) any later version.
17415
# As a special exception to the GNU General Public License,
17416
# if you distribute this file as part of a program or library that
17417
# is built using GNU Libtool, you may include this file under the
17418
# same distribution terms that you use for the rest of that program.
17420
# GNU Libtool is distributed in the hope that it will be useful,
17421
# but WITHOUT ANY WARRANTY; without even the implied warranty of
17422
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17423
# GNU General Public License for more details.
17425
# You should have received a copy of the GNU General Public License
17426
# along with GNU Libtool; see the file COPYING. If not, a copy
17427
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17428
# obtained by writing to the Free Software Foundation, Inc.,
17429
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17432
# The names of the tagged configurations supported by this script.
17433
available_tags="CXX "
17435
# ### BEGIN LIBTOOL CONFIG
17437
# Which release of libtool.m4 was used?
17438
macro_version=$macro_version
17439
macro_revision=$macro_revision
17441
# Whether or not to build shared libraries.
17442
build_libtool_libs=$enable_shared
17444
# Whether or not to build static libraries.
17445
build_old_libs=$enable_static
17447
# What type of objects to build.
17450
# Whether or not to optimize for fast installation.
17451
fast_install=$enable_fast_install
17453
# Shell to use when invoking shell scripts.
17456
# An echo program that protects backslashes.
17459
# The PATH separator for the build system.
17460
PATH_SEPARATOR=$lt_PATH_SEPARATOR
17463
host_alias=$host_alias
17467
# The build system.
17468
build_alias=$build_alias
17472
# A sed program that does not truncate output.
17475
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17476
Xsed="\$SED -e 1s/^X//"
17478
# A grep program that handles long lines.
17484
# A literal string matcher.
17487
# A BSD- or MS-compatible name lister.
17490
# Whether we need soft or hard links.
17493
# What is the maximum length of a command?
17494
max_cmd_len=$max_cmd_len
17496
# Object file suffix (normally "o").
17499
# Executable file suffix (normally "").
17502
# whether the shell understands "unset".
17505
# turn spaces into newlines.
17508
# turn newlines into spaces.
17511
# convert \$build file names to \$host format.
17512
to_host_file_cmd=$lt_cv_to_host_file_cmd
17514
# convert \$build files to toolchain format.
17515
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17517
# An object symbol dumper.
17518
OBJDUMP=$lt_OBJDUMP
17520
# Method to check whether dependent libraries are shared objects.
17521
deplibs_check_method=$lt_deplibs_check_method
17523
# Command to use when deplibs_check_method = "file_magic".
17524
file_magic_cmd=$lt_file_magic_cmd
17526
# How to find potential files when deplibs_check_method = "file_magic".
17527
file_magic_glob=$lt_file_magic_glob
17529
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17530
want_nocaseglob=$lt_want_nocaseglob
17532
# DLL creation program.
17533
DLLTOOL=$lt_DLLTOOL
17535
# Command to associate shared and link libraries.
17536
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17541
# Flags to create an archive.
17542
AR_FLAGS=$lt_AR_FLAGS
17544
# How to feed a file listing to the archiver.
17545
archiver_list_spec=$lt_archiver_list_spec
17547
# A symbol stripping program.
17550
# Commands used to install an old-style archive.
17552
old_postinstall_cmds=$lt_old_postinstall_cmds
17553
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17555
# Whether to use a lock for old archive extraction.
17556
lock_old_archive_extraction=$lock_old_archive_extraction
17561
# LTCC compiler flags.
17562
LTCFLAGS=$lt_CFLAGS
17564
# Take the output of nm and produce a listing of raw symbols and C names.
17565
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17567
# Transform the output of nm in a proper C declaration.
17568
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17570
# Transform the output of nm in a C name address pair.
17571
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17573
# Transform the output of nm in a C name address pair when lib prefix is needed.
17574
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17576
# Specify filename containing input files for \$NM.
17577
nm_file_list_spec=$lt_nm_file_list_spec
17579
# The root where to search for dependent libraries,and in which our libraries should be installed.
17580
lt_sysroot=$lt_sysroot
17582
# The name of the directory that contains temporary libtool files.
17585
# Used to examine libraries when file_magic_cmd begins with "file".
17586
MAGIC_CMD=$MAGIC_CMD
17588
# Must we lock files when doing compilation?
17589
need_locks=$lt_need_locks
17592
MANIFEST_TOOL=$lt_MANIFEST_TOOL
17594
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17595
DSYMUTIL=$lt_DSYMUTIL
17597
# Tool to change global to local symbols on Mac OS X.
17600
# Tool to manipulate fat objects and archives on Mac OS X.
17603
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17606
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17607
OTOOL64=$lt_OTOOL64
17609
# Old archive suffix (normally "a").
17612
# Shared library suffix (normally ".so").
17613
shrext_cmds=$lt_shrext_cmds
17615
# The commands to extract the exported symbol list from a shared archive.
17616
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17618
# Variables whose values should be saved in libtool wrapper scripts and
17619
# restored at link time.
17620
variables_saved_for_relink=$lt_variables_saved_for_relink
17622
# Do we need the "lib" prefix for modules?
17623
need_lib_prefix=$need_lib_prefix
17625
# Do we need a version for libraries?
17626
need_version=$need_version
17628
# Library versioning type.
17629
version_type=$version_type
17631
# Shared library runtime path variable.
17632
runpath_var=$runpath_var
17634
# Shared library path variable.
17635
shlibpath_var=$shlibpath_var
17637
# Is shlibpath searched before the hard-coded library search path?
17638
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17640
# Format of library name prefix.
17641
libname_spec=$lt_libname_spec
17643
# List of archive names. First name is the real one, the rest are links.
17644
# The last name is the one that the linker finds with -lNAME
17645
library_names_spec=$lt_library_names_spec
17647
# The coded name of the library, if different from the real name.
17648
soname_spec=$lt_soname_spec
17650
# Permission mode override for installation of shared libraries.
17651
install_override_mode=$lt_install_override_mode
17653
# Command to use after installation of a shared archive.
17654
postinstall_cmds=$lt_postinstall_cmds
17656
# Command to use after uninstallation of a shared archive.
17657
postuninstall_cmds=$lt_postuninstall_cmds
17659
# Commands used to finish a libtool library installation in a directory.
17660
finish_cmds=$lt_finish_cmds
17662
# As "finish_cmds", except a single script fragment to be evaled but
17664
finish_eval=$lt_finish_eval
17666
# Whether we should hardcode library paths into libraries.
17667
hardcode_into_libs=$hardcode_into_libs
17669
# Compile-time system search path for libraries.
17670
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17672
# Run-time system search path for libraries.
17673
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17675
# Whether dlopen is supported.
17676
dlopen_support=$enable_dlopen
17678
# Whether dlopen of programs is supported.
17679
dlopen_self=$enable_dlopen_self
17681
# Whether dlopen of statically linked programs is supported.
17682
dlopen_self_static=$enable_dlopen_self_static
17684
# Commands to strip libraries.
17685
old_striplib=$lt_old_striplib
17686
striplib=$lt_striplib
17689
# The linker used to build libraries.
17692
# How to create reloadable object files.
17693
reload_flag=$lt_reload_flag
17694
reload_cmds=$lt_reload_cmds
17696
# Commands used to build an old-style archive.
17697
old_archive_cmds=$lt_old_archive_cmds
17699
# A language specific compiler.
17702
# Is the compiler the GNU compiler?
17705
# Compiler flag to turn off builtin functions.
17706
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17708
# Additional compiler flags for building library objects.
17709
pic_flag=$lt_lt_prog_compiler_pic
17711
# How to pass a linker flag through the compiler.
17712
wl=$lt_lt_prog_compiler_wl
17714
# Compiler flag to prevent dynamic linking.
17715
link_static_flag=$lt_lt_prog_compiler_static
17717
# Does compiler simultaneously support -c and -o options?
17718
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17720
# Whether or not to add -lc for building shared libraries.
17721
build_libtool_need_lc=$archive_cmds_need_lc
17723
# Whether or not to disallow shared libs when runtime libs are static.
17724
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17726
# Compiler flag to allow reflexive dlopens.
17727
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17729
# Compiler flag to generate shared objects directly from archives.
17730
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17732
# Whether the compiler copes with passing no objects directly.
17733
compiler_needs_object=$lt_compiler_needs_object
17735
# Create an old-style archive from a shared archive.
17736
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17738
# Create a temporary old-style archive to link instead of a shared archive.
17739
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17741
# Commands used to build a shared archive.
17742
archive_cmds=$lt_archive_cmds
17743
archive_expsym_cmds=$lt_archive_expsym_cmds
17745
# Commands used to build a loadable module if different from building
17746
# a shared archive.
17747
module_cmds=$lt_module_cmds
17748
module_expsym_cmds=$lt_module_expsym_cmds
17750
# Whether we are building with GNU ld or not.
17751
with_gnu_ld=$lt_with_gnu_ld
17753
# Flag that allows shared libraries with undefined symbols to be built.
17754
allow_undefined_flag=$lt_allow_undefined_flag
17756
# Flag that enforces no undefined symbols.
17757
no_undefined_flag=$lt_no_undefined_flag
17759
# Flag to hardcode \$libdir into a binary during linking.
17760
# This must work even if \$libdir does not exist
17761
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17763
# Whether we need a single "-rpath" flag with a separated argument.
17764
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17766
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17767
# DIR into the resulting binary.
17768
hardcode_direct=$hardcode_direct
17770
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17771
# DIR into the resulting binary and the resulting library dependency is
17772
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17773
# library is relocated.
17774
hardcode_direct_absolute=$hardcode_direct_absolute
17776
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17777
# into the resulting binary.
17778
hardcode_minus_L=$hardcode_minus_L
17780
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17781
# into the resulting binary.
17782
hardcode_shlibpath_var=$hardcode_shlibpath_var
17784
# Set to "yes" if building a shared library automatically hardcodes DIR
17785
# into the library and all subsequent libraries and executables linked
17787
hardcode_automatic=$hardcode_automatic
17789
# Set to yes if linker adds runtime paths of dependent libraries
17790
# to runtime path list.
17791
inherit_rpath=$inherit_rpath
17793
# Whether libtool must link a program against all its dependency libraries.
17794
link_all_deplibs=$link_all_deplibs
17796
# Set to "yes" if exported symbols are required.
17797
always_export_symbols=$always_export_symbols
17799
# The commands to list exported symbols.
17800
export_symbols_cmds=$lt_export_symbols_cmds
17802
# Symbols that should not be listed in the preloaded symbols.
17803
exclude_expsyms=$lt_exclude_expsyms
17805
# Symbols that must always be exported.
17806
include_expsyms=$lt_include_expsyms
17808
# Commands necessary for linking programs (against libraries) with templates.
17809
prelink_cmds=$lt_prelink_cmds
17811
# Commands necessary for finishing linking programs.
17812
postlink_cmds=$lt_postlink_cmds
17814
# Specify filename containing input files.
17815
file_list_spec=$lt_file_list_spec
17817
# How to hardcode a shared library path into an executable.
17818
hardcode_action=$hardcode_action
17820
# The directories searched by this compiler when creating a shared library.
17821
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17823
# Dependencies to place before and after the objects being linked to
17824
# create a shared library.
17825
predep_objects=$lt_predep_objects
17826
postdep_objects=$lt_postdep_objects
17827
predeps=$lt_predeps
17828
postdeps=$lt_postdeps
17830
# The library search path used internally by the compiler when linking
17831
# a shared library.
17832
compiler_lib_search_path=$lt_compiler_lib_search_path
17834
# ### END LIBTOOL CONFIG
17840
cat <<\_LT_EOF >> "$cfgfile"
17841
# AIX sometimes has problems with the GCC collect2 program. For some
17842
# reason, if we set the COLLECT_NAMES environment variable, the problems
17843
# vanish in a puff of smoke.
17844
if test "X${COLLECT_NAMES+set}" != Xset; then
17846
export COLLECT_NAMES
17853
ltmain="$ac_aux_dir/ltmain.sh"
17856
# We use sed instead of cat because bash on DJGPP gets confused if
17857
# if finds mixed CR/LF and LF-only lines. Since sed operates in
17858
# text mode, it properly converts lines to CR/LF. This bash problem
17859
# is reportedly fixed, but why not run on old versions too?
17860
sed '$q' "$ltmain" >> "$cfgfile" \
17861
|| (rm -f "$cfgfile"; exit 1)
17863
if test x"$xsi_shell" = xyes; then
17864
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17868
\ */*) func_dirname_result="${1%/*}${2}" ;;\
17869
\ * ) func_dirname_result="${3}" ;;\
17871
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17872
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17873
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17874
test 0 -eq $? || _lt_function_replace_fail=:
17877
sed -e '/^func_basename ()$/,/^} # func_basename /c\
17880
\ func_basename_result="${1##*/}"\
17881
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17882
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17883
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17884
test 0 -eq $? || _lt_function_replace_fail=:
17887
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17888
func_dirname_and_basename ()\
17891
\ */*) func_dirname_result="${1%/*}${2}" ;;\
17892
\ * ) func_dirname_result="${3}" ;;\
17894
\ func_basename_result="${1##*/}"\
17895
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17896
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17897
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17898
test 0 -eq $? || _lt_function_replace_fail=:
17901
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17904
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17905
\ # positional parameters, so assign one to ordinary parameter first.\
17906
\ func_stripname_result=${3}\
17907
\ func_stripname_result=${func_stripname_result#"${1}"}\
17908
\ func_stripname_result=${func_stripname_result%"${2}"}\
17909
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17910
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17911
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17912
test 0 -eq $? || _lt_function_replace_fail=:
17915
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17916
func_split_long_opt ()\
17918
\ func_split_long_opt_name=${1%%=*}\
17919
\ func_split_long_opt_arg=${1#*=}\
17920
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17921
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17922
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17923
test 0 -eq $? || _lt_function_replace_fail=:
17926
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17927
func_split_short_opt ()\
17929
\ func_split_short_opt_arg=${1#??}\
17930
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17931
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17932
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17933
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17934
test 0 -eq $? || _lt_function_replace_fail=:
17937
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17941
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17942
\ *) func_lo2o_result=${1} ;;\
17944
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17945
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17946
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17947
test 0 -eq $? || _lt_function_replace_fail=:
17950
sed -e '/^func_xform ()$/,/^} # func_xform /c\
17953
func_xform_result=${1%.*}.lo\
17954
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17955
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17956
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17957
test 0 -eq $? || _lt_function_replace_fail=:
17960
sed -e '/^func_arith ()$/,/^} # func_arith /c\
17963
func_arith_result=$(( $* ))\
17964
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17965
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17966
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17967
test 0 -eq $? || _lt_function_replace_fail=:
17970
sed -e '/^func_len ()$/,/^} # func_len /c\
17973
func_len_result=${#1}\
17974
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17975
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17976
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17977
test 0 -eq $? || _lt_function_replace_fail=:
17981
if test x"$lt_shell_append" = xyes; then
17982
sed -e '/^func_append ()$/,/^} # func_append /c\
17985
eval "${1}+=\\${2}"\
17986
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17987
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17988
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17989
test 0 -eq $? || _lt_function_replace_fail=:
17992
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17993
func_append_quoted ()\
17995
\ func_quote_for_eval "${2}"\
17996
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17997
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17998
&& mv -f "$cfgfile.tmp" "$cfgfile" \
17999
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18000
test 0 -eq $? || _lt_function_replace_fail=:
18003
# Save a `func_append' function call where possible by direct use of '+='
18004
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18005
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18006
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18007
test 0 -eq $? || _lt_function_replace_fail=:
18009
# Save a `func_append' function call even when '+=' is not available
18010
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18011
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18012
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18013
test 0 -eq $? || _lt_function_replace_fail=:
18016
if test x"$_lt_function_replace_fail" = x":"; then
18017
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18018
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18022
mv -f "$cfgfile" "$ofile" ||
18023
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18027
cat <<_LT_EOF >> "$ofile"
18029
# ### BEGIN LIBTOOL TAG CONFIG: CXX
18031
# The linker used to build libraries.
18034
# How to create reloadable object files.
18035
reload_flag=$lt_reload_flag_CXX
18036
reload_cmds=$lt_reload_cmds_CXX
18038
# Commands used to build an old-style archive.
18039
old_archive_cmds=$lt_old_archive_cmds_CXX
18041
# A language specific compiler.
18042
CC=$lt_compiler_CXX
18044
# Is the compiler the GNU compiler?
18047
# Compiler flag to turn off builtin functions.
18048
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18050
# Additional compiler flags for building library objects.
18051
pic_flag=$lt_lt_prog_compiler_pic_CXX
18053
# How to pass a linker flag through the compiler.
18054
wl=$lt_lt_prog_compiler_wl_CXX
18056
# Compiler flag to prevent dynamic linking.
18057
link_static_flag=$lt_lt_prog_compiler_static_CXX
18059
# Does compiler simultaneously support -c and -o options?
18060
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18062
# Whether or not to add -lc for building shared libraries.
18063
build_libtool_need_lc=$archive_cmds_need_lc_CXX
18065
# Whether or not to disallow shared libs when runtime libs are static.
18066
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18068
# Compiler flag to allow reflexive dlopens.
18069
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18071
# Compiler flag to generate shared objects directly from archives.
18072
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18074
# Whether the compiler copes with passing no objects directly.
18075
compiler_needs_object=$lt_compiler_needs_object_CXX
18077
# Create an old-style archive from a shared archive.
18078
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18080
# Create a temporary old-style archive to link instead of a shared archive.
18081
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18083
# Commands used to build a shared archive.
18084
archive_cmds=$lt_archive_cmds_CXX
18085
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18087
# Commands used to build a loadable module if different from building
18088
# a shared archive.
18089
module_cmds=$lt_module_cmds_CXX
18090
module_expsym_cmds=$lt_module_expsym_cmds_CXX
18092
# Whether we are building with GNU ld or not.
18093
with_gnu_ld=$lt_with_gnu_ld_CXX
18095
# Flag that allows shared libraries with undefined symbols to be built.
18096
allow_undefined_flag=$lt_allow_undefined_flag_CXX
18098
# Flag that enforces no undefined symbols.
18099
no_undefined_flag=$lt_no_undefined_flag_CXX
18101
# Flag to hardcode \$libdir into a binary during linking.
18102
# This must work even if \$libdir does not exist
18103
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18105
# Whether we need a single "-rpath" flag with a separated argument.
18106
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18108
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18109
# DIR into the resulting binary.
18110
hardcode_direct=$hardcode_direct_CXX
18112
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18113
# DIR into the resulting binary and the resulting library dependency is
18114
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18115
# library is relocated.
18116
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18118
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18119
# into the resulting binary.
18120
hardcode_minus_L=$hardcode_minus_L_CXX
18122
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18123
# into the resulting binary.
18124
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18126
# Set to "yes" if building a shared library automatically hardcodes DIR
18127
# into the library and all subsequent libraries and executables linked
18129
hardcode_automatic=$hardcode_automatic_CXX
18131
# Set to yes if linker adds runtime paths of dependent libraries
18132
# to runtime path list.
18133
inherit_rpath=$inherit_rpath_CXX
18135
# Whether libtool must link a program against all its dependency libraries.
18136
link_all_deplibs=$link_all_deplibs_CXX
18138
# Set to "yes" if exported symbols are required.
18139
always_export_symbols=$always_export_symbols_CXX
18141
# The commands to list exported symbols.
18142
export_symbols_cmds=$lt_export_symbols_cmds_CXX
18144
# Symbols that should not be listed in the preloaded symbols.
18145
exclude_expsyms=$lt_exclude_expsyms_CXX
18147
# Symbols that must always be exported.
18148
include_expsyms=$lt_include_expsyms_CXX
18150
# Commands necessary for linking programs (against libraries) with templates.
18151
prelink_cmds=$lt_prelink_cmds_CXX
18153
# Commands necessary for finishing linking programs.
18154
postlink_cmds=$lt_postlink_cmds_CXX
18156
# Specify filename containing input files.
18157
file_list_spec=$lt_file_list_spec_CXX
18159
# How to hardcode a shared library path into an executable.
18160
hardcode_action=$hardcode_action_CXX
18162
# The directories searched by this compiler when creating a shared library.
18163
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18165
# Dependencies to place before and after the objects being linked to
18166
# create a shared library.
18167
predep_objects=$lt_predep_objects_CXX
18168
postdep_objects=$lt_postdep_objects_CXX
18169
predeps=$lt_predeps_CXX
18170
postdeps=$lt_postdeps_CXX
18172
# The library search path used internally by the compiler when linking
18173
# a shared library.
18174
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18176
# ### END LIBTOOL TAG CONFIG: CXX
18187
ac_clean_files=$ac_clean_files_save
18189
test $ac_write_fail = 0 ||
18190
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18193
# configure is writing to config.log, and then calls config.status.
18194
# config.status does its own redirection, appending to config.log.
18195
# Unfortunately, on DOS this fails, as config.log is still kept open
18196
# by configure, so config.status won't be able to write to it; its
18197
# output is simply discarded. So we exec the FD to /dev/null,
18198
# effectively closing config.log, so it can be properly (re)opened and
18199
# appended to by config.status. When coming back to configure, we
18200
# need to make the FD available again.
18201
if test "$no_create" != yes; then
18203
ac_config_status_args=
18204
test "$silent" = yes &&
18205
ac_config_status_args="$ac_config_status_args --quiet"
18207
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18209
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
18210
# would make configure fail if this is the last instruction.
18211
$ac_cs_success || as_fn_exit 1
18213
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18214
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18215
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}