2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for debtags 1.12.2.
5
# Report bugs to <enrico@debian.org>.
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in #(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
test \$(( 1 + 1 )) = 2 || exit 1
203
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207
PATH=/empty FPATH=/empty; export PATH FPATH
208
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and enrico@debian.org
278
$0: about your system, including any error possibly output
279
$0: before this message. Then install a modern shell, or
280
$0: manually run the script under such a shell if you do
287
SHELL=${CONFIG_SHELL-/bin/sh}
289
# Unset more variables known to interfere with behavior of common tools.
290
CLICOLOR_FORCE= GREP_OPTIONS=
291
unset CLICOLOR_FORCE GREP_OPTIONS
293
## --------------------- ##
294
## M4sh Shell Functions. ##
295
## --------------------- ##
298
# Portably unset VAR.
301
{ eval $1=; unset $1;}
305
# as_fn_set_status STATUS
306
# -----------------------
307
# Set $? to STATUS, without forking.
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325
# Create "$as_dir" as a directory, including parents if necessary.
330
-*) as_dir=./$as_dir;;
332
test -d "$as_dir" || eval $as_mkdir_p || {
336
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339
as_dirs="'$as_qdir' $as_dirs"
340
as_dir=`$as_dirname -- "$as_dir" ||
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342
X"$as_dir" : 'X\(//\)[^/]' \| \
343
X"$as_dir" : 'X\(//\)$' \| \
344
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345
$as_echo X"$as_dir" |
346
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363
test -d "$as_dir" && break
365
test -z "$as_dirs" || eval "mkdir $as_dirs"
366
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371
# as_fn_executable_p FILE
372
# -----------------------
373
# Test if FILE is an executable regular file.
374
as_fn_executable_p ()
376
test -f "$1" && test -x "$1"
377
} # as_fn_executable_p
378
# as_fn_append VAR VALUE
379
# ----------------------
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
381
# advantage of any shell optimizations that allow amortized linear growth over
382
# repeated appends, instead of the typical quadratic growth present in naive
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385
eval 'as_fn_append ()
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
400
# must be portable across $(()) and expr.
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409
as_val=`expr "$@" || test $? -eq 1`
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
415
# ----------------------------------------
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418
# script with STATUS, using 1 if that was 0.
421
as_status=$1; test $as_status -eq 0 && as_status=1
423
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426
$as_echo "$as_me: error: $2" >&2
427
as_fn_exit $as_status
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
431
test "X`expr 00001 : '.*\(...\)'`" = X001; then
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449
as_me=`$as_basename -- "$0" ||
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451
X"$0" : 'X\(//\)$' \| \
452
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454
sed '/^.*\/\([^/][^/]*\)\/*$/{
468
# Avoid depending upon Character Ranges.
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472
as_cr_digits='0123456789'
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
476
as_lineno_1=$LINENO as_lineno_1a=$LINENO
477
as_lineno_2=$LINENO as_lineno_2a=$LINENO
478
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496
chmod +x "$as_me.lineno" ||
497
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500
# already done that, so ensure we don't try to do so again and fall
501
# in an infinite loop. This has already happened in practice.
502
_as_can_reexec=no; export _as_can_reexec
503
# Don't try to exec as it changes $[0], causing all sort of problems
504
# (the dirname of $[0] is not the place where we might find the
505
# original and so on. Autoconf is especially sensitive to this).
507
# Exit status is that of the last command.
511
ECHO_C= ECHO_N= ECHO_T=
512
case `echo -n x` in #(((((
514
case `echo 'xy\c'` in
515
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
517
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524
rm -f conf$$ conf$$.exe conf$$.file
525
if test -d conf$$.dir; then
526
rm -f conf$$.dir/conf$$.file
529
mkdir conf$$.dir 2>/dev/null
531
if (echo >conf$$.file) 2>/dev/null; then
532
if ln -s conf$$.file conf$$ 2>/dev/null; then
534
# ... but there are two gotchas:
535
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537
# In both cases, we have to default to `cp -pR'.
538
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540
elif ln conf$$.file conf$$ 2>/dev/null; then
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549
rmdir conf$$.dir 2>/dev/null
551
if mkdir -p . 2>/dev/null; then
552
as_mkdir_p='mkdir -p "$as_dir"'
554
test -d ./-p && rmdir ./-p
559
as_executable_p=as_fn_executable_p
561
# Sed expression to map a string onto a valid CPP name.
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
# Sed expression to map a string onto a valid variable name.
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
SHELL=${CONFIG_SHELL-/bin/sh}
570
test -n "$DJDIR" || exec 7<&0 </dev/null
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575
# so uname gets run too.
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
ac_default_prefix=/usr/local
583
ac_config_libobj_dir=.
590
# Identity of this package.
591
PACKAGE_NAME='debtags'
592
PACKAGE_TARNAME='debtags'
593
PACKAGE_VERSION='1.12.2'
594
PACKAGE_STRING='debtags 1.12.2'
595
PACKAGE_BUGREPORT='enrico@debian.org'
598
ac_unique_file="configure.ac"
599
# Factoring default headers for most tests.
600
ac_includes_default="\
602
#ifdef HAVE_SYS_TYPES_H
603
# include <sys/types.h>
605
#ifdef HAVE_SYS_STAT_H
606
# include <sys/stat.h>
612
# ifdef HAVE_STDLIB_H
617
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622
#ifdef HAVE_STRINGS_H
623
# include <strings.h>
625
#ifdef HAVE_INTTYPES_H
626
# include <inttypes.h>
635
ac_subst_vars='am__EXEEXT_FALSE
720
INSTALL_STRIP_PROGRAM
762
program_transform_name
775
enable_option_checking
778
enable_dependency_tracking
787
ac_precious_vars='build_alias
810
# Initialize some variables set by options.
812
ac_init_version=false
813
ac_unrecognized_opts=
815
# The variables have the same names as the options, with
816
# dashes changed to underlines.
824
program_transform_name=s,x,x,
832
# Installation directory options.
833
# These are left unexpanded so users can "make install exec_prefix=/foo"
834
# and all the variables that are supposed to be based on exec_prefix
835
# by default will actually change.
836
# Use braces instead of parens because sh, perl, etc. also accept them.
837
# (The list follows the same order as the GNU Coding Standards.)
838
bindir='${exec_prefix}/bin'
839
sbindir='${exec_prefix}/sbin'
840
libexecdir='${exec_prefix}/libexec'
841
datarootdir='${prefix}/share'
842
datadir='${datarootdir}'
843
sysconfdir='${prefix}/etc'
844
sharedstatedir='${prefix}/com'
845
localstatedir='${prefix}/var'
846
includedir='${prefix}/include'
847
oldincludedir='/usr/include'
848
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849
infodir='${datarootdir}/info'
854
libdir='${exec_prefix}/lib'
855
localedir='${datarootdir}/locale'
856
mandir='${datarootdir}/man'
862
# If the previous option needs an argument, assign it.
863
if test -n "$ac_prev"; then
864
eval $ac_prev=\$ac_option
870
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875
# Accept the important Cygnus configure options, so we can diagnose typos.
877
case $ac_dashdash$ac_option in
881
-bindir | --bindir | --bindi | --bind | --bin | --bi)
883
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886
-build | --build | --buil | --bui | --bu)
887
ac_prev=build_alias ;;
888
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
889
build_alias=$ac_optarg ;;
891
-cache-file | --cache-file | --cache-fil | --cache-fi \
892
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893
ac_prev=cache_file ;;
894
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896
cache_file=$ac_optarg ;;
899
cache_file=config.cache ;;
901
-datadir | --datadir | --datadi | --datad)
903
-datadir=* | --datadir=* | --datadi=* | --datad=*)
904
datadir=$ac_optarg ;;
906
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907
| --dataroo | --dataro | --datar)
908
ac_prev=datarootdir ;;
909
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911
datarootdir=$ac_optarg ;;
913
-disable-* | --disable-*)
914
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915
# Reject names that are not valid shell variable names.
916
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917
as_fn_error $? "invalid feature name: $ac_useropt"
918
ac_useropt_orig=$ac_useropt
919
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920
case $ac_user_opts in
924
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925
ac_unrecognized_sep=', ';;
927
eval enable_$ac_useropt=no ;;
929
-docdir | --docdir | --docdi | --doc | --do)
931
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939
-enable-* | --enable-*)
940
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941
# Reject names that are not valid shell variable names.
942
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943
as_fn_error $? "invalid feature name: $ac_useropt"
944
ac_useropt_orig=$ac_useropt
945
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946
case $ac_user_opts in
950
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951
ac_unrecognized_sep=', ';;
953
eval enable_$ac_useropt=\$ac_optarg ;;
955
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957
| --exec | --exe | --ex)
958
ac_prev=exec_prefix ;;
959
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961
| --exec=* | --exe=* | --ex=*)
962
exec_prefix=$ac_optarg ;;
964
-gas | --gas | --ga | --g)
965
# Obsolete; use --with-gas.
968
-help | --help | --hel | --he | -h)
970
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971
ac_init_help=recursive ;;
972
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973
ac_init_help=short ;;
975
-host | --host | --hos | --ho)
976
ac_prev=host_alias ;;
977
-host=* | --host=* | --hos=* | --ho=*)
978
host_alias=$ac_optarg ;;
980
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984
htmldir=$ac_optarg ;;
986
-includedir | --includedir | --includedi | --included | --include \
987
| --includ | --inclu | --incl | --inc)
988
ac_prev=includedir ;;
989
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990
| --includ=* | --inclu=* | --incl=* | --inc=*)
991
includedir=$ac_optarg ;;
993
-infodir | --infodir | --infodi | --infod | --info | --inf)
995
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996
infodir=$ac_optarg ;;
998
-libdir | --libdir | --libdi | --libd)
1000
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1001
libdir=$ac_optarg ;;
1003
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004
| --libexe | --libex | --libe)
1005
ac_prev=libexecdir ;;
1006
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007
| --libexe=* | --libex=* | --libe=*)
1008
libexecdir=$ac_optarg ;;
1010
-localedir | --localedir | --localedi | --localed | --locale)
1011
ac_prev=localedir ;;
1012
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013
localedir=$ac_optarg ;;
1015
-localstatedir | --localstatedir | --localstatedi | --localstated \
1016
| --localstate | --localstat | --localsta | --localst | --locals)
1017
ac_prev=localstatedir ;;
1018
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020
localstatedir=$ac_optarg ;;
1022
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025
mandir=$ac_optarg ;;
1027
-nfp | --nfp | --nf)
1028
# Obsolete; use --without-fp.
1031
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032
| --no-cr | --no-c | -n)
1035
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041
| --oldin | --oldi | --old | --ol | --o)
1042
ac_prev=oldincludedir ;;
1043
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046
oldincludedir=$ac_optarg ;;
1048
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051
prefix=$ac_optarg ;;
1053
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1054
| --program-pre | --program-pr | --program-p)
1055
ac_prev=program_prefix ;;
1056
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1057
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058
program_prefix=$ac_optarg ;;
1060
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1061
| --program-suf | --program-su | --program-s)
1062
ac_prev=program_suffix ;;
1063
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1064
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065
program_suffix=$ac_optarg ;;
1067
-program-transform-name | --program-transform-name \
1068
| --program-transform-nam | --program-transform-na \
1069
| --program-transform-n | --program-transform- \
1070
| --program-transform | --program-transfor \
1071
| --program-transfo | --program-transf \
1072
| --program-trans | --program-tran \
1073
| --progr-tra | --program-tr | --program-t)
1074
ac_prev=program_transform_name ;;
1075
-program-transform-name=* | --program-transform-name=* \
1076
| --program-transform-nam=* | --program-transform-na=* \
1077
| --program-transform-n=* | --program-transform-=* \
1078
| --program-transform=* | --program-transfor=* \
1079
| --program-transfo=* | --program-transf=* \
1080
| --program-trans=* | --program-tran=* \
1081
| --progr-tra=* | --program-tr=* | --program-t=*)
1082
program_transform_name=$ac_optarg ;;
1084
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087
pdfdir=$ac_optarg ;;
1089
-psdir | --psdir | --psdi | --psd | --ps)
1091
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095
| -silent | --silent | --silen | --sile | --sil)
1098
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102
sbindir=$ac_optarg ;;
1104
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1105
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106
| --sharedst | --shareds | --shared | --share | --shar \
1108
ac_prev=sharedstatedir ;;
1109
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113
sharedstatedir=$ac_optarg ;;
1115
-site | --site | --sit)
1117
-site=* | --site=* | --sit=*)
1120
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123
srcdir=$ac_optarg ;;
1125
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126
| --syscon | --sysco | --sysc | --sys | --sy)
1127
ac_prev=sysconfdir ;;
1128
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130
sysconfdir=$ac_optarg ;;
1132
-target | --target | --targe | --targ | --tar | --ta | --t)
1133
ac_prev=target_alias ;;
1134
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135
target_alias=$ac_optarg ;;
1137
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1140
-version | --version | --versio | --versi | --vers | -V)
1141
ac_init_version=: ;;
1144
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145
# Reject names that are not valid shell variable names.
1146
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147
as_fn_error $? "invalid package name: $ac_useropt"
1148
ac_useropt_orig=$ac_useropt
1149
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150
case $ac_user_opts in
1154
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155
ac_unrecognized_sep=', ';;
1157
eval with_$ac_useropt=\$ac_optarg ;;
1159
-without-* | --without-*)
1160
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161
# Reject names that are not valid shell variable names.
1162
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163
as_fn_error $? "invalid package name: $ac_useropt"
1164
ac_useropt_orig=$ac_useropt
1165
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166
case $ac_user_opts in
1170
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171
ac_unrecognized_sep=', ';;
1173
eval with_$ac_useropt=no ;;
1176
# Obsolete; use --with-x.
1179
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180
| --x-incl | --x-inc | --x-in | --x-i)
1181
ac_prev=x_includes ;;
1182
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184
x_includes=$ac_optarg ;;
1186
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1187
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188
ac_prev=x_libraries ;;
1189
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191
x_libraries=$ac_optarg ;;
1193
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1194
Try \`$0 --help' for more information"
1198
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199
# Reject names that are not valid shell variable names.
1200
case $ac_envvar in #(
1201
'' | [0-9]* | *[!_$as_cr_alnum]* )
1202
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204
eval $ac_envvar=\$ac_optarg
1205
export $ac_envvar ;;
1208
# FIXME: should be removed in autoconf 3.0.
1209
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218
if test -n "$ac_prev"; then
1219
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220
as_fn_error $? "missing argument to $ac_option"
1223
if test -n "$ac_unrecognized_opts"; then
1224
case $enable_option_checking in
1226
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231
# Check all directory arguments for consistency.
1232
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233
datadir sysconfdir sharedstatedir localstatedir includedir \
1234
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235
libdir localedir mandir
1237
eval ac_val=\$$ac_var
1238
# Remove trailing slashes.
1241
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242
eval $ac_var=\$ac_val;;
1244
# Be sure to have absolute directory names.
1246
[\\/$]* | ?:[\\/]* ) continue;;
1247
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252
# There might be people who depend on the old broken behavior: `$host'
1253
# used to hold the argument of --host etc.
1254
# FIXME: To remove some day.
1257
target=$target_alias
1259
# FIXME: To remove some day.
1260
if test "x$host_alias" != x; then
1261
if test "x$build_alias" = x; then
1262
cross_compiling=maybe
1263
elif test "x$build_alias" != "x$host_alias"; then
1269
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
test "$silent" = yes && exec 6>/dev/null
1274
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275
ac_ls_di=`ls -di .` &&
1276
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277
as_fn_error $? "working directory cannot be determined"
1278
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279
as_fn_error $? "pwd does not report name of working directory"
1282
# Find the source files, if location was not specified.
1283
if test -z "$srcdir"; then
1284
ac_srcdir_defaulted=yes
1285
# Try the directory containing this script, then the parent directory.
1286
ac_confdir=`$as_dirname -- "$as_myself" ||
1287
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288
X"$as_myself" : 'X\(//\)[^/]' \| \
1289
X"$as_myself" : 'X\(//\)$' \| \
1290
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291
$as_echo X"$as_myself" |
1292
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310
if test ! -r "$srcdir/$ac_unique_file"; then
1314
ac_srcdir_defaulted=no
1316
if test ! -r "$srcdir/$ac_unique_file"; then
1317
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324
# When building in place, set srcdir=.
1325
if test "$ac_abs_confdir" = "$ac_pwd"; then
1328
# Remove unnecessary trailing slashes from srcdir.
1329
# Double slashes in file names in object file debugging info
1330
# mess up M-x gdb in Emacs.
1332
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334
for ac_var in $ac_precious_vars; do
1335
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336
eval ac_env_${ac_var}_value=\$${ac_var}
1337
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342
# Report the --help message.
1344
if test "$ac_init_help" = "long"; then
1345
# Omit some internal or obsolete options to make the list less imposing.
1346
# This message is too long to be a string in the A/UX 3.1 sh.
1348
\`configure' configures debtags 1.12.2 to adapt to many kinds of systems.
1350
Usage: $0 [OPTION]... [VAR=VALUE]...
1352
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353
VAR=VALUE. See below for descriptions of some of the useful variables.
1355
Defaults for the options are specified in brackets.
1358
-h, --help display this help and exit
1359
--help=short display options specific to this package
1360
--help=recursive display the short help of all the included packages
1361
-V, --version display version information and exit
1362
-q, --quiet, --silent do not print \`checking ...' messages
1363
--cache-file=FILE cache test results in FILE [disabled]
1364
-C, --config-cache alias for \`--cache-file=config.cache'
1365
-n, --no-create do not create output files
1366
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1368
Installation directories:
1369
--prefix=PREFIX install architecture-independent files in PREFIX
1370
[$ac_default_prefix]
1371
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374
By default, \`make install' will install all the files in
1375
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377
for instance \`--prefix=\$HOME'.
1379
For better control, use the options below.
1381
Fine tuning of the installation directories:
1382
--bindir=DIR user executables [EPREFIX/bin]
1383
--sbindir=DIR system admin executables [EPREFIX/sbin]
1384
--libexecdir=DIR program executables [EPREFIX/libexec]
1385
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388
--libdir=DIR object code libraries [EPREFIX/lib]
1389
--includedir=DIR C header files [PREFIX/include]
1390
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1391
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393
--infodir=DIR info documentation [DATAROOTDIR/info]
1394
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395
--mandir=DIR man documentation [DATAROOTDIR/man]
1396
--docdir=DIR documentation root [DATAROOTDIR/doc/debtags]
1397
--htmldir=DIR html documentation [DOCDIR]
1398
--dvidir=DIR dvi documentation [DOCDIR]
1399
--pdfdir=DIR pdf documentation [DOCDIR]
1400
--psdir=DIR ps documentation [DOCDIR]
1406
--program-prefix=PREFIX prepend PREFIX to installed program names
1407
--program-suffix=SUFFIX append SUFFIX to installed program names
1408
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411
--build=BUILD configure for building on BUILD [guessed]
1412
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1416
if test -n "$ac_init_help"; then
1417
case $ac_init_help in
1418
short | recursive ) echo "Configuration of debtags 1.12.2:";;
1423
--disable-option-checking ignore unrecognized --enable/--with options
1424
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426
--enable-silent-rules less verbose build output (undo: "make V=1")
1427
--disable-silent-rules verbose build output (undo: "make V=0")
1428
--enable-docs Turn on generation of documentation
1429
--enable-dependency-tracking
1430
do not reject slow dependency extractors
1431
--disable-dependency-tracking
1432
speeds up one-time build
1433
--enable-shared[=PKGS] build shared libraries [default=yes]
1434
--enable-static[=PKGS] build static libraries [default=yes]
1435
--enable-fast-install[=PKGS]
1436
optimize for fast installation [default=yes]
1437
--disable-libtool-lock avoid locking (might break parallel builds)
1440
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1444
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445
--with-sysroot=DIR Search for dependent libraries within DIR
1446
(or the compiler's sysroot if not specified).
1448
Some influential environment variables:
1449
CXX C++ compiler command
1450
CXXFLAGS C++ compiler flags
1451
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452
nonstandard directory <lib dir>
1453
LIBS libraries to pass to the linker, e.g. -l<library>
1454
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455
you have headers in a nonstandard directory <include dir>
1456
CXXCPP C++ preprocessor
1457
CC C compiler command
1458
CFLAGS C compiler flags
1459
PKG_CONFIG path to pkg-config utility
1461
directories to add to pkg-config's search path
1463
path overriding pkg-config's built-in search path
1465
C compiler flags for LIBWIBBLE, overriding pkg-config
1467
linker flags for LIBWIBBLE, overriding pkg-config
1469
C compiler flags for LIBTAGCOLL, overriding pkg-config
1471
linker flags for LIBTAGCOLL, overriding pkg-config
1473
C compiler flags for LIBEPT, overriding pkg-config
1474
LIBEPT_LIBS linker flags for LIBEPT, overriding pkg-config
1476
Use these variables to override the choices made by `configure' or to help
1477
it to find libraries and programs with nonstandard names/locations.
1479
Report bugs to <enrico@debian.org>.
1484
if test "$ac_init_help" = "recursive"; then
1485
# If there are subdirs, report their specific --help.
1486
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487
test -d "$ac_dir" ||
1488
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496
# A ".." for each directory in $ac_dir_suffix.
1497
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498
case $ac_top_builddir_sub in
1499
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503
ac_abs_top_builddir=$ac_pwd
1504
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505
# for backward compatibility:
1506
ac_top_builddir=$ac_top_build_prefix
1509
.) # We are building in place.
1511
ac_top_srcdir=$ac_top_builddir_sub
1512
ac_abs_top_srcdir=$ac_pwd ;;
1513
[\\/]* | ?:[\\/]* ) # Absolute name.
1514
ac_srcdir=$srcdir$ac_dir_suffix;
1515
ac_top_srcdir=$srcdir
1516
ac_abs_top_srcdir=$srcdir ;;
1518
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519
ac_top_srcdir=$ac_top_build_prefix$srcdir
1520
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
cd "$ac_dir" || { ac_status=$?; continue; }
1525
# Check for guested configure.
1526
if test -f "$ac_srcdir/configure.gnu"; then
1528
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529
elif test -f "$ac_srcdir/configure"; then
1531
$SHELL "$ac_srcdir/configure" --help=recursive
1533
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535
cd "$ac_pwd" || { ac_status=$?; break; }
1539
test -n "$ac_init_help" && exit $ac_status
1540
if $ac_init_version; then
1542
debtags configure 1.12.2
1543
generated by GNU Autoconf 2.69
1545
Copyright (C) 2012 Free Software Foundation, Inc.
1546
This configure script is free software; the Free Software Foundation
1547
gives unlimited permission to copy, distribute and modify it.
1552
## ------------------------ ##
1553
## Autoconf initialization. ##
1554
## ------------------------ ##
1556
# ac_fn_cxx_try_compile LINENO
1557
# ----------------------------
1558
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559
ac_fn_cxx_try_compile ()
1561
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562
rm -f conftest.$ac_objext
1563
if { { ac_try="$ac_compile"
1565
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566
*) ac_try_echo=$ac_try;;
1568
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569
$as_echo "$ac_try_echo"; } >&5
1570
(eval "$ac_compile") 2>conftest.err
1572
if test -s conftest.err; then
1573
grep -v '^ *+' conftest.err >conftest.er1
1574
cat conftest.er1 >&5
1575
mv -f conftest.er1 conftest.err
1577
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578
test $ac_status = 0; } && {
1579
test -z "$ac_cxx_werror_flag" ||
1580
test ! -s conftest.err
1581
} && test -s conftest.$ac_objext; then :
1584
$as_echo "$as_me: failed program was:" >&5
1585
sed 's/^/| /' conftest.$ac_ext >&5
1589
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
as_fn_set_status $ac_retval
1592
} # ac_fn_cxx_try_compile
1594
# ac_fn_cxx_try_cpp LINENO
1595
# ------------------------
1596
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597
ac_fn_cxx_try_cpp ()
1599
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600
if { { ac_try="$ac_cpp conftest.$ac_ext"
1602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603
*) ac_try_echo=$ac_try;;
1605
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606
$as_echo "$ac_try_echo"; } >&5
1607
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609
if test -s conftest.err; then
1610
grep -v '^ *+' conftest.err >conftest.er1
1611
cat conftest.er1 >&5
1612
mv -f conftest.er1 conftest.err
1614
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615
test $ac_status = 0; } > conftest.i && {
1616
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1617
test ! -s conftest.err
1621
$as_echo "$as_me: failed program was:" >&5
1622
sed 's/^/| /' conftest.$ac_ext >&5
1626
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
as_fn_set_status $ac_retval
1629
} # ac_fn_cxx_try_cpp
1631
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1632
# ---------------------------------------------------------
1633
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1634
# the include files in INCLUDES and setting the cache variable VAR
1636
ac_fn_cxx_check_header_mongrel ()
1638
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639
if eval \${$3+:} false; then :
1640
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641
$as_echo_n "checking for $2... " >&6; }
1642
if eval \${$3+:} false; then :
1643
$as_echo_n "(cached) " >&6
1646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647
$as_echo "$ac_res" >&6; }
1649
# Is the header compilable?
1650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1651
$as_echo_n "checking $2 usability... " >&6; }
1652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653
/* end confdefs.h. */
1657
if ac_fn_cxx_try_compile "$LINENO"; then :
1658
ac_header_compiler=yes
1660
ac_header_compiler=no
1662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1664
$as_echo "$ac_header_compiler" >&6; }
1666
# Is the header present?
1667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1668
$as_echo_n "checking $2 presence... " >&6; }
1669
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670
/* end confdefs.h. */
1673
if ac_fn_cxx_try_cpp "$LINENO"; then :
1674
ac_header_preproc=yes
1676
ac_header_preproc=no
1678
rm -f conftest.err conftest.i conftest.$ac_ext
1679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1680
$as_echo "$ac_header_preproc" >&6; }
1682
# So? What about this header?
1683
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1685
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1686
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1687
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1688
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1692
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1693
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1694
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1695
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1696
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1697
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1698
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1699
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1700
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701
( $as_echo "## -------------------------------- ##
1702
## Report this to enrico@debian.org ##
1703
## -------------------------------- ##"
1704
) | sed "s/^/$as_me: WARNING: /" >&2
1707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708
$as_echo_n "checking for $2... " >&6; }
1709
if eval \${$3+:} false; then :
1710
$as_echo_n "(cached) " >&6
1712
eval "$3=\$ac_header_compiler"
1715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716
$as_echo "$ac_res" >&6; }
1718
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
} # ac_fn_cxx_check_header_mongrel
1722
# ac_fn_cxx_try_run LINENO
1723
# ------------------------
1724
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725
# that executables *can* be run.
1726
ac_fn_cxx_try_run ()
1728
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729
if { { ac_try="$ac_link"
1731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732
*) ac_try_echo=$ac_try;;
1734
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735
$as_echo "$ac_try_echo"; } >&5
1736
(eval "$ac_link") 2>&5
1738
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740
{ { case "(($ac_try" in
1741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742
*) ac_try_echo=$ac_try;;
1744
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745
$as_echo "$ac_try_echo"; } >&5
1746
(eval "$ac_try") 2>&5
1748
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749
test $ac_status = 0; }; }; then :
1752
$as_echo "$as_me: program exited with status $ac_status" >&5
1753
$as_echo "$as_me: failed program was:" >&5
1754
sed 's/^/| /' conftest.$ac_ext >&5
1756
ac_retval=$ac_status
1758
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
as_fn_set_status $ac_retval
1762
} # ac_fn_cxx_try_run
1764
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1765
# ---------------------------------------------------------
1766
# Tests whether HEADER exists and can be compiled using the include files in
1767
# INCLUDES, setting the cache variable VAR accordingly.
1768
ac_fn_cxx_check_header_compile ()
1770
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772
$as_echo_n "checking for $2... " >&6; }
1773
if eval \${$3+:} false; then :
1774
$as_echo_n "(cached) " >&6
1776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777
/* end confdefs.h. */
1781
if ac_fn_cxx_try_compile "$LINENO"; then :
1786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790
$as_echo "$ac_res" >&6; }
1791
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
} # ac_fn_cxx_check_header_compile
1795
# ac_fn_c_try_compile LINENO
1796
# --------------------------
1797
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798
ac_fn_c_try_compile ()
1800
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801
rm -f conftest.$ac_objext
1802
if { { ac_try="$ac_compile"
1804
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805
*) ac_try_echo=$ac_try;;
1807
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808
$as_echo "$ac_try_echo"; } >&5
1809
(eval "$ac_compile") 2>conftest.err
1811
if test -s conftest.err; then
1812
grep -v '^ *+' conftest.err >conftest.er1
1813
cat conftest.er1 >&5
1814
mv -f conftest.er1 conftest.err
1816
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817
test $ac_status = 0; } && {
1818
test -z "$ac_c_werror_flag" ||
1819
test ! -s conftest.err
1820
} && test -s conftest.$ac_objext; then :
1823
$as_echo "$as_me: failed program was:" >&5
1824
sed 's/^/| /' conftest.$ac_ext >&5
1828
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
as_fn_set_status $ac_retval
1831
} # ac_fn_c_try_compile
1833
# ac_fn_c_try_link LINENO
1834
# -----------------------
1835
# Try to link conftest.$ac_ext, and return whether this succeeded.
1838
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839
rm -f conftest.$ac_objext conftest$ac_exeext
1840
if { { ac_try="$ac_link"
1842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843
*) ac_try_echo=$ac_try;;
1845
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846
$as_echo "$ac_try_echo"; } >&5
1847
(eval "$ac_link") 2>conftest.err
1849
if test -s conftest.err; then
1850
grep -v '^ *+' conftest.err >conftest.er1
1851
cat conftest.er1 >&5
1852
mv -f conftest.er1 conftest.err
1854
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855
test $ac_status = 0; } && {
1856
test -z "$ac_c_werror_flag" ||
1857
test ! -s conftest.err
1858
} && test -s conftest$ac_exeext && {
1859
test "$cross_compiling" = yes ||
1860
test -x conftest$ac_exeext
1864
$as_echo "$as_me: failed program was:" >&5
1865
sed 's/^/| /' conftest.$ac_ext >&5
1869
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871
# interfere with the next link command; also delete a directory that is
1872
# left behind by Apple's compiler. We do this before executing the actions.
1873
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
as_fn_set_status $ac_retval
1877
} # ac_fn_c_try_link
1879
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880
# -------------------------------------------------------
1881
# Tests whether HEADER exists and can be compiled using the include files in
1882
# INCLUDES, setting the cache variable VAR accordingly.
1883
ac_fn_c_check_header_compile ()
1885
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887
$as_echo_n "checking for $2... " >&6; }
1888
if eval \${$3+:} false; then :
1889
$as_echo_n "(cached) " >&6
1891
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892
/* end confdefs.h. */
1896
if ac_fn_c_try_compile "$LINENO"; then :
1901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905
$as_echo "$ac_res" >&6; }
1906
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908
} # ac_fn_c_check_header_compile
1910
# ac_fn_c_check_func LINENO FUNC VAR
1911
# ----------------------------------
1912
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1913
ac_fn_c_check_func ()
1915
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917
$as_echo_n "checking for $2... " >&6; }
1918
if eval \${$3+:} false; then :
1919
$as_echo_n "(cached) " >&6
1921
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922
/* end confdefs.h. */
1923
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1925
#define $2 innocuous_$2
1927
/* System header to define __stub macros and hopefully few prototypes,
1928
which can conflict with char $2 (); below.
1929
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1930
<limits.h> exists even on freestanding compilers. */
1933
# include <limits.h>
1935
# include <assert.h>
1940
/* Override any GCC internal prototype to avoid an error.
1941
Use char because int might match the return type of a GCC
1942
builtin and then its argument prototype would still apply. */
1947
/* The GNU C library defines this for functions which it implements
1948
to always fail with ENOSYS. Some functions are actually named
1949
something starting with __ and the normal name is an alias. */
1950
#if defined __stub_$2 || defined __stub___$2
1962
if ac_fn_c_try_link "$LINENO"; then :
1967
rm -f core conftest.err conftest.$ac_objext \
1968
conftest$ac_exeext conftest.$ac_ext
1971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972
$as_echo "$ac_res" >&6; }
1973
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
} # ac_fn_c_check_func
1977
# ac_fn_cxx_try_link LINENO
1978
# -------------------------
1979
# Try to link conftest.$ac_ext, and return whether this succeeded.
1980
ac_fn_cxx_try_link ()
1982
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983
rm -f conftest.$ac_objext conftest$ac_exeext
1984
if { { ac_try="$ac_link"
1986
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987
*) ac_try_echo=$ac_try;;
1989
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990
$as_echo "$ac_try_echo"; } >&5
1991
(eval "$ac_link") 2>conftest.err
1993
if test -s conftest.err; then
1994
grep -v '^ *+' conftest.err >conftest.er1
1995
cat conftest.er1 >&5
1996
mv -f conftest.er1 conftest.err
1998
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999
test $ac_status = 0; } && {
2000
test -z "$ac_cxx_werror_flag" ||
2001
test ! -s conftest.err
2002
} && test -s conftest$ac_exeext && {
2003
test "$cross_compiling" = yes ||
2004
test -x conftest$ac_exeext
2008
$as_echo "$as_me: failed program was:" >&5
2009
sed 's/^/| /' conftest.$ac_ext >&5
2013
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015
# interfere with the next link command; also delete a directory that is
2016
# left behind by Apple's compiler. We do this before executing the actions.
2017
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019
as_fn_set_status $ac_retval
2021
} # ac_fn_cxx_try_link
2022
cat >config.log <<_ACEOF
2023
This file contains any messages produced by compilers while
2024
running configure, to aid debugging if configure makes a mistake.
2026
It was created by debtags $as_me 1.12.2, which was
2027
generated by GNU Autoconf 2.69. Invocation command line was
2039
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2040
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2041
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2042
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2043
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2046
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2048
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2049
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2050
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2051
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2052
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2053
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2054
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2058
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062
test -z "$as_dir" && as_dir=.
2063
$as_echo "PATH: $as_dir"
2079
# Keep a trace of the command line.
2080
# Strip out --no-create and --no-recursion so they do not pile up.
2081
# Strip out --silent because we don't want to record it for future runs.
2082
# Also quote any args containing shell meta-characters.
2083
# Make two passes to allow for proper duplicate-argument suppression.
2087
ac_must_keep_next=false
2093
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095
| -silent | --silent | --silen | --sile | --sil)
2098
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2101
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103
as_fn_append ac_configure_args1 " '$ac_arg'"
2104
if test $ac_must_keep_next = true; then
2105
ac_must_keep_next=false # Got value, back to normal.
2108
*=* | --config-cache | -C | -disable-* | --disable-* \
2109
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111
| -with-* | --with-* | -without-* | --without-* | --x)
2112
case "$ac_configure_args0 " in
2113
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2116
-* ) ac_must_keep_next=true ;;
2119
as_fn_append ac_configure_args " '$ac_arg'"
2124
{ ac_configure_args0=; unset ac_configure_args0;}
2125
{ ac_configure_args1=; unset ac_configure_args1;}
2127
# When interrupted or exit'd, cleanup temporary files, and complete
2128
# config.log. We remove comments because anyway the quotes in there
2129
# would cause problems or look ugly.
2130
# WARNING: Use '\'' to represent an apostrophe within the trap.
2131
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132
trap 'exit_status=$?
2133
# Save into config.log some information that might help in debugging.
2137
$as_echo "## ---------------- ##
2138
## Cache variables. ##
2139
## ---------------- ##"
2141
# The following way of writing the cache mishandles newlines in values,
2143
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144
eval ac_val=\$$ac_var
2148
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2152
_ | IFS | as_nl) ;; #(
2153
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154
*) { eval $ac_var=; unset $ac_var;} ;;
2159
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160
*${as_nl}ac_space=\ *)
2162
"s/'\''/'\''\\\\'\'''\''/g;
2163
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2166
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173
$as_echo "## ----------------- ##
2174
## Output variables. ##
2175
## ----------------- ##"
2177
for ac_var in $ac_subst_vars
2179
eval ac_val=\$$ac_var
2181
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183
$as_echo "$ac_var='\''$ac_val'\''"
2187
if test -n "$ac_subst_files"; then
2188
$as_echo "## ------------------- ##
2189
## File substitutions. ##
2190
## ------------------- ##"
2192
for ac_var in $ac_subst_files
2194
eval ac_val=\$$ac_var
2196
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2198
$as_echo "$ac_var='\''$ac_val'\''"
2203
if test -s confdefs.h; then
2204
$as_echo "## ----------- ##
2211
test "$ac_signal" != 0 &&
2212
$as_echo "$as_me: caught signal $ac_signal"
2213
$as_echo "$as_me: exit $exit_status"
2215
rm -f core *.core core.conftest.* &&
2216
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2219
for ac_signal in 1 2 13 15; do
2220
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2224
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2225
rm -f -r conftest* confdefs.h
2227
$as_echo "/* confdefs.h */" > confdefs.h
2229
# Predefined preprocessor variables.
2231
cat >>confdefs.h <<_ACEOF
2232
#define PACKAGE_NAME "$PACKAGE_NAME"
2235
cat >>confdefs.h <<_ACEOF
2236
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2239
cat >>confdefs.h <<_ACEOF
2240
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2243
cat >>confdefs.h <<_ACEOF
2244
#define PACKAGE_STRING "$PACKAGE_STRING"
2247
cat >>confdefs.h <<_ACEOF
2248
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2251
cat >>confdefs.h <<_ACEOF
2252
#define PACKAGE_URL "$PACKAGE_URL"
2256
# Let the site file select an alternate cache file if it wants to.
2257
# Prefer an explicitly selected file to automatically selected ones.
2260
if test -n "$CONFIG_SITE"; then
2261
# We do not want a PATH search for config.site.
2262
case $CONFIG_SITE in #((
2263
-*) ac_site_file1=./$CONFIG_SITE;;
2264
*/*) ac_site_file1=$CONFIG_SITE;;
2265
*) ac_site_file1=./$CONFIG_SITE;;
2267
elif test "x$prefix" != xNONE; then
2268
ac_site_file1=$prefix/share/config.site
2269
ac_site_file2=$prefix/etc/config.site
2271
ac_site_file1=$ac_default_prefix/share/config.site
2272
ac_site_file2=$ac_default_prefix/etc/config.site
2274
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276
test "x$ac_site_file" = xNONE && continue
2277
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280
sed 's/^/| /' "$ac_site_file" >&5
2282
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284
as_fn_error $? "failed to load site script $ac_site_file
2285
See \`config.log' for more details" "$LINENO" 5; }
2289
if test -r "$cache_file"; then
2290
# Some versions of bash will fail to source /dev/null (special files
2291
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2292
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2293
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294
$as_echo "$as_me: loading cache $cache_file" >&6;}
2296
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2297
*) . "./$cache_file";;
2301
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302
$as_echo "$as_me: creating cache $cache_file" >&6;}
2306
# Check that the precious variables saved in the cache have kept the same
2308
ac_cache_corrupted=false
2309
for ac_var in $ac_precious_vars; do
2310
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311
eval ac_new_set=\$ac_env_${ac_var}_set
2312
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313
eval ac_new_val=\$ac_env_${ac_var}_value
2314
case $ac_old_set,$ac_new_set in
2316
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318
ac_cache_corrupted=: ;;
2320
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322
ac_cache_corrupted=: ;;
2325
if test "x$ac_old_val" != "x$ac_new_val"; then
2326
# differences in whitespace do not lead to failure.
2327
ac_old_val_w=`echo x $ac_old_val`
2328
ac_new_val_w=`echo x $ac_new_val`
2329
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332
ac_cache_corrupted=:
2334
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336
eval $ac_var=\$ac_old_val
2338
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2339
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2341
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2344
# Pass precious variables to config.status.
2345
if test "$ac_new_set" = set; then
2347
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348
*) ac_arg=$ac_var=$ac_new_val ;;
2350
case " $ac_configure_args " in
2351
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2356
if $ac_cache_corrupted; then
2357
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2363
## -------------------- ##
2364
## Main body of script. ##
2365
## -------------------- ##
2368
ac_cpp='$CPP $CPPFLAGS'
2369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
ac_config_headers="$ac_config_headers config.h"
2377
am__api_version='1.14'
2380
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2381
if test -f "$ac_dir/install-sh"; then
2383
ac_install_sh="$ac_aux_dir/install-sh -c"
2385
elif test -f "$ac_dir/install.sh"; then
2387
ac_install_sh="$ac_aux_dir/install.sh -c"
2389
elif test -f "$ac_dir/shtool"; then
2391
ac_install_sh="$ac_aux_dir/shtool install -c"
2395
if test -z "$ac_aux_dir"; then
2396
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2399
# These three variables are undocumented and unsupported,
2400
# and are intended to be withdrawn in a future Autoconf release.
2401
# They can cause serious problems if a builder's source tree is in a directory
2402
# whose full name contains unusual characters.
2403
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2404
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2405
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2408
# Find a good install program. We prefer a C program (faster),
2409
# so one script is as good as another. But avoid the broken or
2410
# incompatible versions:
2411
# SysV /etc/install, /usr/sbin/install
2412
# SunOS /usr/etc/install
2413
# IRIX /sbin/install
2415
# AmigaOS /C/install, which installs bootblocks on floppy discs
2416
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2417
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2418
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2419
# OS/2's system install, which has a completely different semantic
2420
# ./install, which can be erroneously created by make from ./install.sh.
2421
# Reject install programs that cannot install multiple files.
2422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2423
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2424
if test -z "$INSTALL"; then
2425
if ${ac_cv_path_install+:} false; then :
2426
$as_echo_n "(cached) " >&6
2428
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432
test -z "$as_dir" && as_dir=.
2433
# Account for people who put trailing slashes in PATH elements.
2434
case $as_dir/ in #((
2435
./ | .// | /[cC]/* | \
2436
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2437
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2440
# OSF1 and SCO ODT 3.0 have their own names for install.
2441
# Don't use installbsd from OSF since it installs stuff as root
2443
for ac_prog in ginstall scoinst install; do
2444
for ac_exec_ext in '' $ac_executable_extensions; do
2445
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2446
if test $ac_prog = install &&
2447
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448
# AIX install. It has an incompatible calling convention.
2450
elif test $ac_prog = install &&
2451
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452
# program-specific install script used by HP pwplus--don't use.
2455
rm -rf conftest.one conftest.two conftest.dir
2456
echo one > conftest.one
2457
echo two > conftest.two
2459
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2460
test -s conftest.one && test -s conftest.two &&
2461
test -s conftest.dir/conftest.one &&
2462
test -s conftest.dir/conftest.two
2464
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2477
rm -rf conftest.one conftest.two conftest.dir
2480
if test "${ac_cv_path_install+set}" = set; then
2481
INSTALL=$ac_cv_path_install
2483
# As a last resort, use the slow shell script. Don't cache a
2484
# value for INSTALL within a source directory, because that will
2485
# break other packages using the cache if that directory is
2486
# removed, or if the value is a relative name.
2487
INSTALL=$ac_install_sh
2490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2491
$as_echo "$INSTALL" >&6; }
2493
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2494
# It thinks the first close brace ends the variable substitution.
2495
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2497
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2499
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2502
$as_echo_n "checking whether build environment is sane... " >&6; }
2503
# Reject unsafe characters in $srcdir or the absolute working directory
2504
# name. Accept space and tab only in the latter.
2508
*[\\\"\#\$\&\'\`$am_lf]*)
2509
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2512
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2513
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2516
# Do 'set' in a subshell so we don't clobber the current shell's
2517
# arguments. Must try -L first in case configure is actually a
2518
# symlink; some systems play weird games with the mod time of symlinks
2519
# (eg FreeBSD returns the mod time of the symlink's containing
2523
for am_try in 1 2; do
2524
echo "timestamp, slept: $am_has_slept" > conftest.file
2525
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2526
if test "$*" = "X"; then
2528
set X `ls -t "$srcdir/configure" conftest.file`
2530
if test "$*" != "X $srcdir/configure conftest.file" \
2531
&& test "$*" != "X conftest.file $srcdir/configure"; then
2533
# If neither matched, then we have a broken ls. This can happen
2534
# if, for instance, CONFIG_SHELL is bash and it inherits a
2535
# broken ls alias from the environment. This has actually
2536
# happened. Such a system could not be considered "sane".
2537
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2538
alias in your environment" "$LINENO" 5
2540
if test "$2" = conftest.file || test $am_try -eq 2; then
2547
test "$2" = conftest.file
2553
as_fn_error $? "newly created file is older than distributed files!
2554
Check your system clock" "$LINENO" 5
2556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557
$as_echo "yes" >&6; }
2558
# If we didn't sleep, we still need to ensure time stamps of config.status and
2559
# generated files are strictly newer.
2561
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2568
test "$program_prefix" != NONE &&
2569
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2570
# Use a double $ so make ignores it.
2571
test "$program_suffix" != NONE &&
2572
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2573
# Double any \ or $.
2574
# By default was `s,x,x', remove it if useless.
2575
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2576
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2578
# expand $ac_aux_dir to an absolute path
2579
am_aux_dir=`cd $ac_aux_dir && pwd`
2581
if test x"${MISSING+set}" != xset; then
2584
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2586
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2589
# Use eval to expand $SHELL
2590
if eval "$MISSING --is-lightweight"; then
2591
am_missing_run="$MISSING "
2594
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2595
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2598
if test x"${install_sh}" != xset; then
2601
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2603
install_sh="\${SHELL} $am_aux_dir/install-sh"
2607
# Installed binaries are usually stripped using 'strip' when the user
2608
# run "make install-strip". However 'strip' might not be the right
2609
# tool to use in cross-compilation environments, therefore Automake
2610
# will honor the 'STRIP' environment variable to overrule this program.
2611
if test "$cross_compiling" != no; then
2612
if test -n "$ac_tool_prefix"; then
2613
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2614
set dummy ${ac_tool_prefix}strip; ac_word=$2
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616
$as_echo_n "checking for $ac_word... " >&6; }
2617
if ${ac_cv_prog_STRIP+:} false; then :
2618
$as_echo_n "(cached) " >&6
2620
if test -n "$STRIP"; then
2621
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627
test -z "$as_dir" && as_dir=.
2628
for ac_exec_ext in '' $ac_executable_extensions; do
2629
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2631
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640
STRIP=$ac_cv_prog_STRIP
2641
if test -n "$STRIP"; then
2642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2643
$as_echo "$STRIP" >&6; }
2645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646
$as_echo "no" >&6; }
2651
if test -z "$ac_cv_prog_STRIP"; then
2653
# Extract the first word of "strip", so it can be a program name with args.
2654
set dummy strip; ac_word=$2
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656
$as_echo_n "checking for $ac_word... " >&6; }
2657
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2658
$as_echo_n "(cached) " >&6
2660
if test -n "$ac_ct_STRIP"; then
2661
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667
test -z "$as_dir" && as_dir=.
2668
for ac_exec_ext in '' $ac_executable_extensions; do
2669
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670
ac_cv_prog_ac_ct_STRIP="strip"
2671
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2681
if test -n "$ac_ct_STRIP"; then
2682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2683
$as_echo "$ac_ct_STRIP" >&6; }
2685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686
$as_echo "no" >&6; }
2689
if test "x$ac_ct_STRIP" = x; then
2692
case $cross_compiling:$ac_tool_warned in
2694
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696
ac_tool_warned=yes ;;
2701
STRIP="$ac_cv_prog_STRIP"
2705
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2708
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2709
if test -z "$MKDIR_P"; then
2710
if ${ac_cv_path_mkdir+:} false; then :
2711
$as_echo_n "(cached) " >&6
2713
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2717
test -z "$as_dir" && as_dir=.
2718
for ac_prog in mkdir gmkdir; do
2719
for ac_exec_ext in '' $ac_executable_extensions; do
2720
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2721
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2722
'mkdir (GNU coreutils) '* | \
2723
'mkdir (coreutils) '* | \
2724
'mkdir (fileutils) '4.1*)
2725
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735
test -d ./--version && rmdir ./--version
2736
if test "${ac_cv_path_mkdir+set}" = set; then
2737
MKDIR_P="$ac_cv_path_mkdir -p"
2739
# As a last resort, use the slow shell script. Don't cache a
2740
# value for MKDIR_P within a source directory, because that will
2741
# break other packages using the cache if that directory is
2742
# removed, or if the value is a relative name.
2743
MKDIR_P="$ac_install_sh -d"
2746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2747
$as_echo "$MKDIR_P" >&6; }
2749
for ac_prog in gawk mawk nawk awk
2751
# Extract the first word of "$ac_prog", so it can be a program name with args.
2752
set dummy $ac_prog; ac_word=$2
2753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754
$as_echo_n "checking for $ac_word... " >&6; }
2755
if ${ac_cv_prog_AWK+:} false; then :
2756
$as_echo_n "(cached) " >&6
2758
if test -n "$AWK"; then
2759
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765
test -z "$as_dir" && as_dir=.
2766
for ac_exec_ext in '' $ac_executable_extensions; do
2767
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768
ac_cv_prog_AWK="$ac_prog"
2769
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779
if test -n "$AWK"; then
2780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2781
$as_echo "$AWK" >&6; }
2783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784
$as_echo "no" >&6; }
2788
test -n "$AWK" && break
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2792
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2794
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2795
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2796
$as_echo_n "(cached) " >&6
2798
cat >conftest.make <<\_ACEOF
2801
@echo '@@@%%%=$(MAKE)=@@@%%%'
2803
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2804
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2806
eval ac_cv_prog_make_${ac_make}_set=yes;;
2808
eval ac_cv_prog_make_${ac_make}_set=no;;
2812
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814
$as_echo "yes" >&6; }
2817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818
$as_echo "no" >&6; }
2819
SET_MAKE="MAKE=${MAKE-make}"
2822
rm -rf .tst 2>/dev/null
2823
mkdir .tst 2>/dev/null
2824
if test -d .tst; then
2829
rmdir .tst 2>/dev/null
2831
# Check whether --enable-silent-rules was given.
2832
if test "${enable_silent_rules+set}" = set; then :
2833
enableval=$enable_silent_rules;
2836
case $enable_silent_rules in # (((
2837
yes) AM_DEFAULT_VERBOSITY=0;;
2838
no) AM_DEFAULT_VERBOSITY=1;;
2839
*) AM_DEFAULT_VERBOSITY=1;;
2841
am_make=${MAKE-make}
2842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2843
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2844
if ${am_cv_make_support_nested_variables+:} false; then :
2845
$as_echo_n "(cached) " >&6
2847
if $as_echo 'TRUE=$(BAR$(V))
2853
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2854
am_cv_make_support_nested_variables=yes
2856
am_cv_make_support_nested_variables=no
2859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2860
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2861
if test $am_cv_make_support_nested_variables = yes; then
2863
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2865
AM_V=$AM_DEFAULT_VERBOSITY
2866
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2870
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872
# is not polluted with repeated "-I."
2873
am__isrc=' -I$(srcdir)'
2874
# test to see if srcdir already configured
2875
if test -f $srcdir/config.status; then
2876
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2880
# test whether we have cygpath
2881
if test -z "$CYGPATH_W"; then
2882
if (cygpath --version) >/dev/null 2>/dev/null; then
2883
CYGPATH_W='cygpath -w'
2890
# Define the identity of the package.
2895
cat >>confdefs.h <<_ACEOF
2896
#define PACKAGE "$PACKAGE"
2900
cat >>confdefs.h <<_ACEOF
2901
#define VERSION "$VERSION"
2904
# Some tools Automake needs.
2906
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2909
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2912
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2915
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2918
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2920
# For better backward compatibility. To be removed once Automake 1.9.x
2921
# dies out for good. For more background, see:
2922
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2923
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2924
mkdir_p='$(MKDIR_P)'
2926
# We need awk for the "check" target. The system "awk" is bad on
2928
# Always define AMTAR for backward compatibility. Yes, it's still used
2929
# in the wild :-( We should find a proper way to deprecate it ...
2933
# We'll loop over all known methods to create a tar archive until one works.
2934
_am_tools='gnutar pax cpio none'
2936
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2943
# POSIX will say in a future version that running "rm -f" with no argument
2944
# is OK; and we want to be able to make that assumption in our Makefile
2945
# recipes. So use an aggressive probe to check that the usage we want is
2946
# actually supported "in the wild" to an acceptable degree.
2947
# See automake bug#10828.
2948
# To make any issue more visible, cause the running configure to be aborted
2949
# by default if the 'rm' program in use doesn't match our expectations; the
2950
# user can still override this though.
2951
if rm -f && rm -fr && rm -rf; then : OK; else
2955
Your 'rm' program seems unable to run without file operands specified
2956
on the command line, even when the '-f' option is present. This is contrary
2957
to the behaviour of most rm programs out there, and not conforming with
2958
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2960
Please tell bug-automake@gnu.org about your system, including the value
2961
of your $PATH and any error possibly output before this message. This
2962
can help us improve future automake versions.
2965
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2966
echo 'Configuration will proceed anyway, since you have set the' >&2
2967
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2971
Aborting the configuration process, to ensure you take notice of the issue.
2973
You can download and install GNU coreutils to get an 'rm' implementation
2974
that behaves properly: <http://www.gnu.org/software/coreutils/>.
2976
If you want to complete the configuration process using your problematic
2977
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2978
to "yes", and re-run configure.
2981
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2986
# Check whether --enable-docs was given.
2987
if test "${enable_docs+set}" = set; then :
2988
enableval=$enable_docs; case "${enableval}" in
2991
*) as_fn_error $? "bad value ${enableval} for --enable-docs" "$LINENO" 5 ;;
2997
if test x$swig = xtrue; then
3006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3007
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3009
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3010
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3011
$as_echo_n "(cached) " >&6
3013
cat >conftest.make <<\_ACEOF
3016
@echo '@@@%%%=$(MAKE)=@@@%%%'
3018
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3019
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3021
eval ac_cv_prog_make_${ac_make}_set=yes;;
3023
eval ac_cv_prog_make_${ac_make}_set=no;;
3027
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029
$as_echo "yes" >&6; }
3032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033
$as_echo "no" >&6; }
3034
SET_MAKE="MAKE=${MAKE-make}"
3039
ac_cpp='$CXXCPP $CPPFLAGS'
3040
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3045
DEPDIR="${am__leading_dot}deps"
3047
ac_config_commands="$ac_config_commands depfiles"
3050
am_make=${MAKE-make}
3051
cat > confinc << 'END'
3053
@echo this is the am__doit target
3056
# If we don't find an include directive, just comment out the code.
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3058
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3062
# First try GNU make style include.
3063
echo "include confinc" > confmf
3064
# Ignore all kinds of additional output from 'make'.
3065
case `$am_make -s -f confmf 2> /dev/null` in #(
3066
*the\ am__doit\ target*)
3072
# Now try BSD make style include.
3073
if test "$am__include" = "#"; then
3074
echo '.include "confinc"' > confmf
3075
case `$am_make -s -f confmf 2> /dev/null` in #(
3076
*the\ am__doit\ target*)
3077
am__include=.include
3085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3086
$as_echo "$_am_result" >&6; }
3087
rm -f confinc confmf
3089
# Check whether --enable-dependency-tracking was given.
3090
if test "${enable_dependency_tracking+set}" = set; then :
3091
enableval=$enable_dependency_tracking;
3094
if test "x$enable_dependency_tracking" != xno; then
3095
am_depcomp="$ac_aux_dir/depcomp"
3099
if test "x$enable_dependency_tracking" != xno; then
3109
ac_cpp='$CXXCPP $CPPFLAGS'
3110
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3113
if test -z "$CXX"; then
3114
if test -n "$CCC"; then
3117
if test -n "$ac_tool_prefix"; then
3118
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3120
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123
$as_echo_n "checking for $ac_word... " >&6; }
3124
if ${ac_cv_prog_CXX+:} false; then :
3125
$as_echo_n "(cached) " >&6
3127
if test -n "$CXX"; then
3128
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134
test -z "$as_dir" && as_dir=.
3135
for ac_exec_ext in '' $ac_executable_extensions; do
3136
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3138
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148
if test -n "$CXX"; then
3149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3150
$as_echo "$CXX" >&6; }
3152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153
$as_echo "no" >&6; }
3157
test -n "$CXX" && break
3160
if test -z "$CXX"; then
3162
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3164
# Extract the first word of "$ac_prog", so it can be a program name with args.
3165
set dummy $ac_prog; ac_word=$2
3166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167
$as_echo_n "checking for $ac_word... " >&6; }
3168
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3169
$as_echo_n "(cached) " >&6
3171
if test -n "$ac_ct_CXX"; then
3172
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178
test -z "$as_dir" && as_dir=.
3179
for ac_exec_ext in '' $ac_executable_extensions; do
3180
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181
ac_cv_prog_ac_ct_CXX="$ac_prog"
3182
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3192
if test -n "$ac_ct_CXX"; then
3193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3194
$as_echo "$ac_ct_CXX" >&6; }
3196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197
$as_echo "no" >&6; }
3201
test -n "$ac_ct_CXX" && break
3204
if test "x$ac_ct_CXX" = x; then
3207
case $cross_compiling:$ac_tool_warned in
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211
ac_tool_warned=yes ;;
3219
# Provide some information about the compiler.
3220
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3223
for ac_option in --version -v -V -qversion; do
3224
{ { ac_try="$ac_compiler $ac_option >&5"
3226
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227
*) ac_try_echo=$ac_try;;
3229
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230
$as_echo "$ac_try_echo"; } >&5
3231
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3233
if test -s conftest.err; then
3235
... rest of stderr output deleted ...
3236
10q' conftest.err >conftest.er1
3237
cat conftest.er1 >&5
3239
rm -f conftest.er1 conftest.err
3240
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241
test $ac_status = 0; }
3244
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245
/* end confdefs.h. */
3255
ac_clean_files_save=$ac_clean_files
3256
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3257
# Try to create an executable without -o first, disregard a.out.
3258
# It will help us diagnose broken compilers, and finding out an intuition
3260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3261
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3262
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264
# The possible output files:
3265
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3268
for ac_file in $ac_files
3271
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3277
if { { ac_try="$ac_link_default"
3279
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280
*) ac_try_echo=$ac_try;;
3282
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283
$as_echo "$ac_try_echo"; } >&5
3284
(eval "$ac_link_default") 2>&5
3286
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287
test $ac_status = 0; }; then :
3288
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3291
# so that the user can short-circuit this test for compilers unknown to
3293
for ac_file in $ac_files ''
3295
test -f "$ac_file" || continue
3297
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3300
# We found the default executable, but exeext='' is most
3304
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3306
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308
# We set ac_cv_exeext here because the later test for it is not
3309
# safe: cross compilers may not add the suffix if given an `-o'
3310
# argument, so we may need to know it at that point already.
3311
# Even if this section looks crufty: it has the advantage of
3318
test "$ac_cv_exeext" = no && ac_cv_exeext=
3323
if test -z "$ac_file"; then :
3324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325
$as_echo "no" >&6; }
3326
$as_echo "$as_me: failed program was:" >&5
3327
sed 's/^/| /' conftest.$ac_ext >&5
3329
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331
as_fn_error 77 "C++ compiler cannot create executables
3332
See \`config.log' for more details" "$LINENO" 5; }
3334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335
$as_echo "yes" >&6; }
3337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3338
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3340
$as_echo "$ac_file" >&6; }
3341
ac_exeext=$ac_cv_exeext
3343
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3344
ac_clean_files=$ac_clean_files_save
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3346
$as_echo_n "checking for suffix of executables... " >&6; }
3347
if { { ac_try="$ac_link"
3349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350
*) ac_try_echo=$ac_try;;
3352
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353
$as_echo "$ac_try_echo"; } >&5
3354
(eval "$ac_link") 2>&5
3356
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357
test $ac_status = 0; }; then :
3358
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3359
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3360
# work properly (i.e., refer to `conftest.exe'), while it won't with
3362
for ac_file in conftest.exe conftest conftest.*; do
3363
test -f "$ac_file" || continue
3365
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3375
See \`config.log' for more details" "$LINENO" 5; }
3377
rm -f conftest conftest$ac_cv_exeext
3378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3379
$as_echo "$ac_cv_exeext" >&6; }
3381
rm -f conftest.$ac_ext
3382
EXEEXT=$ac_cv_exeext
3384
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385
/* end confdefs.h. */
3390
FILE *f = fopen ("conftest.out", "w");
3391
return ferror (f) || fclose (f) != 0;
3397
ac_clean_files="$ac_clean_files conftest.out"
3398
# Check that the compiler produces executables we can run. If not, either
3399
# the compiler is broken, or we cross compile.
3400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401
$as_echo_n "checking whether we are cross compiling... " >&6; }
3402
if test "$cross_compiling" != yes; then
3403
{ { ac_try="$ac_link"
3405
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406
*) ac_try_echo=$ac_try;;
3408
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409
$as_echo "$ac_try_echo"; } >&5
3410
(eval "$ac_link") 2>&5
3412
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413
test $ac_status = 0; }
3414
if { ac_try='./conftest$ac_cv_exeext'
3415
{ { case "(($ac_try" in
3416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417
*) ac_try_echo=$ac_try;;
3419
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420
$as_echo "$ac_try_echo"; } >&5
3421
(eval "$ac_try") 2>&5
3423
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424
test $ac_status = 0; }; }; then
3427
if test "$cross_compiling" = maybe; then
3430
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432
as_fn_error $? "cannot run C++ compiled programs.
3433
If you meant to cross compile, use \`--host'.
3434
See \`config.log' for more details" "$LINENO" 5; }
3438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439
$as_echo "$cross_compiling" >&6; }
3441
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3442
ac_clean_files=$ac_clean_files_save
3443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444
$as_echo_n "checking for suffix of object files... " >&6; }
3445
if ${ac_cv_objext+:} false; then :
3446
$as_echo_n "(cached) " >&6
3448
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449
/* end confdefs.h. */
3459
rm -f conftest.o conftest.obj
3460
if { { ac_try="$ac_compile"
3462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463
*) ac_try_echo=$ac_try;;
3465
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466
$as_echo "$ac_try_echo"; } >&5
3467
(eval "$ac_compile") 2>&5
3469
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470
test $ac_status = 0; }; then :
3471
for ac_file in conftest.o conftest.obj conftest.*; do
3472
test -f "$ac_file" || continue;
3474
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3475
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3480
$as_echo "$as_me: failed program was:" >&5
3481
sed 's/^/| /' conftest.$ac_ext >&5
3483
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485
as_fn_error $? "cannot compute suffix of object files: cannot compile
3486
See \`config.log' for more details" "$LINENO" 5; }
3488
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3491
$as_echo "$ac_cv_objext" >&6; }
3492
OBJEXT=$ac_cv_objext
3494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3495
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3496
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3497
$as_echo_n "(cached) " >&6
3499
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500
/* end confdefs.h. */
3513
if ac_fn_cxx_try_compile "$LINENO"; then :
3518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3523
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3524
if test $ac_compiler_gnu = yes; then
3529
ac_test_CXXFLAGS=${CXXFLAGS+set}
3530
ac_save_CXXFLAGS=$CXXFLAGS
3531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3532
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3533
if ${ac_cv_prog_cxx_g+:} false; then :
3534
$as_echo_n "(cached) " >&6
3536
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3537
ac_cxx_werror_flag=yes
3540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541
/* end confdefs.h. */
3551
if ac_fn_cxx_try_compile "$LINENO"; then :
3552
ac_cv_prog_cxx_g=yes
3555
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556
/* end confdefs.h. */
3566
if ac_fn_cxx_try_compile "$LINENO"; then :
3569
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572
/* end confdefs.h. */
3582
if ac_fn_cxx_try_compile "$LINENO"; then :
3583
ac_cv_prog_cxx_g=yes
3585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3593
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3594
if test "$ac_test_CXXFLAGS" = set; then
3595
CXXFLAGS=$ac_save_CXXFLAGS
3596
elif test $ac_cv_prog_cxx_g = yes; then
3597
if test "$GXX" = yes; then
3603
if test "$GXX" = yes; then
3610
ac_cpp='$CXXCPP $CPPFLAGS'
3611
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3615
depcc="$CXX" am_compiler_list=
3617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3618
$as_echo_n "checking dependency style of $depcc... " >&6; }
3619
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3620
$as_echo_n "(cached) " >&6
3622
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3623
# We make a subdir and do the tests there. Otherwise we can end up
3624
# making bogus files that we don't know about and never remove. For
3625
# instance it was reported that on HP-UX the gcc test will end up
3626
# making a dummy file named 'D' -- because '-MD' means "put the output
3630
# Copy depcomp to subdir because otherwise we won't find it if we're
3631
# using a relative directory.
3632
cp "$am_depcomp" conftest.dir
3634
# We will build objects and dependencies in a subdirectory because
3635
# it helps to detect inapplicable dependency modes. For instance
3636
# both Tru64's cc and ICC support -MD to output dependencies as a
3637
# side effect of compilation, but ICC will put the dependencies in
3638
# the current directory while Tru64 will put them in the object
3642
am_cv_CXX_dependencies_compiler_type=none
3643
if test "$am_compiler_list" = ""; then
3644
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3647
case " $depcc " in #(
3648
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3651
for depmode in $am_compiler_list; do
3652
# Setup a source with many dependencies, because some compilers
3653
# like to wrap large dependency lists on column 80 (with \), and
3654
# we should not choose a depcomp mode which is confused by this.
3656
# We need to recreate these files for each test, as the compiler may
3657
# overwrite some of them when testing with obscure command lines.
3658
# This happens at least with the AIX C compiler.
3660
for i in 1 2 3 4 5 6; do
3661
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3662
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3663
# Solaris 10 /bin/sh.
3664
echo '/* dummy */' > sub/conftst$i.h
3666
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3668
# We check with '-c' and '-o' for the sake of the "dashmstdout"
3669
# mode. It turns out that the SunPro C++ compiler does not properly
3670
# handle '-M -o', and we need to detect this. Also, some Intel
3671
# versions had trouble with output in subdirs.
3672
am__obj=sub/conftest.${OBJEXT-o}
3673
am__minus_obj="-o $am__obj"
3676
# This depmode causes a compiler race in universal mode.
3677
test "$am__universal" = false || continue
3680
# After this tag, mechanisms are not by side-effect, so they'll
3681
# only be used when explicitly requested.
3682
if test "x$enable_dependency_tracking" = xyes; then
3688
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3689
# This compiler won't grok '-c -o', but also, the minuso test has
3690
# not run yet. These depmodes are late enough in the game, and
3691
# so weak that their functioning should not be impacted.
3692
am__obj=conftest.${OBJEXT-o}
3697
if depmode=$depmode \
3698
source=sub/conftest.c object=$am__obj \
3699
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3700
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3701
>/dev/null 2>conftest.err &&
3702
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3703
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3704
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3705
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3706
# icc doesn't choke on unknown options, it will just issue warnings
3707
# or remarks (even with -Werror). So we grep stderr for any message
3708
# that says an option was ignored or not supported.
3709
# When given -MP, icc 7.0 and 7.1 complain thusly:
3710
# icc: Command line warning: ignoring option '-M'; no argument required
3711
# The diagnosis changed in icc 8.0:
3712
# icc: Command line remark: option '-MP' not supported
3713
if (grep 'ignoring option' conftest.err ||
3714
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3715
am_cv_CXX_dependencies_compiler_type=$depmode
3724
am_cv_CXX_dependencies_compiler_type=none
3728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3729
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3730
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3733
test "x$enable_dependency_tracking" != xno \
3734
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3735
am__fastdepCXX_TRUE=
3736
am__fastdepCXX_FALSE='#'
3738
am__fastdepCXX_TRUE='#'
3739
am__fastdepCXX_FALSE=
3745
ac_cpp='$CXXCPP $CPPFLAGS'
3746
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3750
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3751
if test -z "$CXXCPP"; then
3752
if ${ac_cv_prog_CXXCPP+:} false; then :
3753
$as_echo_n "(cached) " >&6
3755
# Double quotes because CXXCPP needs to be expanded
3756
for CXXCPP in "$CXX -E" "/lib/cpp"
3759
for ac_cxx_preproc_warn_flag in '' yes
3761
# Use a header file that comes with gcc, so configuring glibc
3762
# with a fresh cross-compiler works.
3763
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3764
# <limits.h> exists even on freestanding compilers.
3765
# On the NeXT, cc -E runs the code through the compiler's parser,
3766
# not just through cpp. "Syntax error" is here to catch this case.
3767
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768
/* end confdefs.h. */
3770
# include <limits.h>
3772
# include <assert.h>
3776
if ac_fn_cxx_try_cpp "$LINENO"; then :
3779
# Broken: fails on valid input.
3782
rm -f conftest.err conftest.i conftest.$ac_ext
3784
# OK, works on sane cases. Now check whether nonexistent headers
3785
# can be detected and how.
3786
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787
/* end confdefs.h. */
3788
#include <ac_nonexistent.h>
3790
if ac_fn_cxx_try_cpp "$LINENO"; then :
3791
# Broken: success on invalid input.
3794
# Passes both tests.
3798
rm -f conftest.err conftest.i conftest.$ac_ext
3801
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802
rm -f conftest.i conftest.err conftest.$ac_ext
3803
if $ac_preproc_ok; then :
3808
ac_cv_prog_CXXCPP=$CXXCPP
3811
CXXCPP=$ac_cv_prog_CXXCPP
3813
ac_cv_prog_CXXCPP=$CXXCPP
3815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3816
$as_echo "$CXXCPP" >&6; }
3818
for ac_cxx_preproc_warn_flag in '' yes
3820
# Use a header file that comes with gcc, so configuring glibc
3821
# with a fresh cross-compiler works.
3822
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3823
# <limits.h> exists even on freestanding compilers.
3824
# On the NeXT, cc -E runs the code through the compiler's parser,
3825
# not just through cpp. "Syntax error" is here to catch this case.
3826
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827
/* end confdefs.h. */
3829
# include <limits.h>
3831
# include <assert.h>
3835
if ac_fn_cxx_try_cpp "$LINENO"; then :
3838
# Broken: fails on valid input.
3841
rm -f conftest.err conftest.i conftest.$ac_ext
3843
# OK, works on sane cases. Now check whether nonexistent headers
3844
# can be detected and how.
3845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846
/* end confdefs.h. */
3847
#include <ac_nonexistent.h>
3849
if ac_fn_cxx_try_cpp "$LINENO"; then :
3850
# Broken: success on invalid input.
3853
# Passes both tests.
3857
rm -f conftest.err conftest.i conftest.$ac_ext
3860
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861
rm -f conftest.i conftest.err conftest.$ac_ext
3862
if $ac_preproc_ok; then :
3865
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3868
See \`config.log' for more details" "$LINENO" 5; }
3872
ac_cpp='$CXXCPP $CPPFLAGS'
3873
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3879
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3880
if ${ac_cv_path_GREP+:} false; then :
3881
$as_echo_n "(cached) " >&6
3883
if test -z "$GREP"; then
3884
ac_path_GREP_found=false
3885
# Loop through the user's path and test for each of PROGNAME-LIST
3886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890
test -z "$as_dir" && as_dir=.
3891
for ac_prog in grep ggrep; do
3892
for ac_exec_ext in '' $ac_executable_extensions; do
3893
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894
as_fn_executable_p "$ac_path_GREP" || continue
3895
# Check for GNU ac_path_GREP and select it if it is found.
3896
# Check for GNU $ac_path_GREP
3897
case `"$ac_path_GREP" --version 2>&1` in
3899
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3902
$as_echo_n 0123456789 >"conftest.in"
3905
cat "conftest.in" "conftest.in" >"conftest.tmp"
3906
mv "conftest.tmp" "conftest.in"
3907
cp "conftest.in" "conftest.nl"
3908
$as_echo 'GREP' >> "conftest.nl"
3909
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911
as_fn_arith $ac_count + 1 && ac_count=$as_val
3912
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913
# Best one so far, save it but keep looking for a better one
3914
ac_cv_path_GREP="$ac_path_GREP"
3915
ac_path_GREP_max=$ac_count
3917
# 10*(2^10) chars as input seems more than enough
3918
test $ac_count -gt 10 && break
3920
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923
$ac_path_GREP_found && break 3
3928
if test -z "$ac_cv_path_GREP"; then
3929
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3932
ac_cv_path_GREP=$GREP
3936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3937
$as_echo "$ac_cv_path_GREP" >&6; }
3938
GREP="$ac_cv_path_GREP"
3941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3942
$as_echo_n "checking for egrep... " >&6; }
3943
if ${ac_cv_path_EGREP+:} false; then :
3944
$as_echo_n "(cached) " >&6
3946
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3947
then ac_cv_path_EGREP="$GREP -E"
3949
if test -z "$EGREP"; then
3950
ac_path_EGREP_found=false
3951
# Loop through the user's path and test for each of PROGNAME-LIST
3952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956
test -z "$as_dir" && as_dir=.
3957
for ac_prog in egrep; do
3958
for ac_exec_ext in '' $ac_executable_extensions; do
3959
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3960
as_fn_executable_p "$ac_path_EGREP" || continue
3961
# Check for GNU ac_path_EGREP and select it if it is found.
3962
# Check for GNU $ac_path_EGREP
3963
case `"$ac_path_EGREP" --version 2>&1` in
3965
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968
$as_echo_n 0123456789 >"conftest.in"
3971
cat "conftest.in" "conftest.in" >"conftest.tmp"
3972
mv "conftest.tmp" "conftest.in"
3973
cp "conftest.in" "conftest.nl"
3974
$as_echo 'EGREP' >> "conftest.nl"
3975
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3976
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3977
as_fn_arith $ac_count + 1 && ac_count=$as_val
3978
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3979
# Best one so far, save it but keep looking for a better one
3980
ac_cv_path_EGREP="$ac_path_EGREP"
3981
ac_path_EGREP_max=$ac_count
3983
# 10*(2^10) chars as input seems more than enough
3984
test $ac_count -gt 10 && break
3986
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989
$ac_path_EGREP_found && break 3
3994
if test -z "$ac_cv_path_EGREP"; then
3995
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3998
ac_cv_path_EGREP=$EGREP
4003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4004
$as_echo "$ac_cv_path_EGREP" >&6; }
4005
EGREP="$ac_cv_path_EGREP"
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4009
$as_echo_n "checking for ANSI C header files... " >&6; }
4010
if ${ac_cv_header_stdc+:} false; then :
4011
$as_echo_n "(cached) " >&6
4013
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014
/* end confdefs.h. */
4028
if ac_fn_cxx_try_compile "$LINENO"; then :
4029
ac_cv_header_stdc=yes
4031
ac_cv_header_stdc=no
4033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035
if test $ac_cv_header_stdc = yes; then
4036
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038
/* end confdefs.h. */
4042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4043
$EGREP "memchr" >/dev/null 2>&1; then :
4046
ac_cv_header_stdc=no
4052
if test $ac_cv_header_stdc = yes; then
4053
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055
/* end confdefs.h. */
4059
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060
$EGREP "free" >/dev/null 2>&1; then :
4063
ac_cv_header_stdc=no
4069
if test $ac_cv_header_stdc = yes; then
4070
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4071
if test "$cross_compiling" = yes; then :
4074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075
/* end confdefs.h. */
4078
#if ((' ' & 0x0FF) == 0x020)
4079
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4080
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4082
# define ISLOWER(c) \
4083
(('a' <= (c) && (c) <= 'i') \
4084
|| ('j' <= (c) && (c) <= 'r') \
4085
|| ('s' <= (c) && (c) <= 'z'))
4086
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4089
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4094
for (i = 0; i < 256; i++)
4095
if (XOR (islower (i), ISLOWER (i))
4096
|| toupper (i) != TOUPPER (i))
4101
if ac_fn_cxx_try_run "$LINENO"; then :
4104
ac_cv_header_stdc=no
4106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4107
conftest.$ac_objext conftest.beam conftest.$ac_ext
4112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4113
$as_echo "$ac_cv_header_stdc" >&6; }
4114
if test $ac_cv_header_stdc = yes; then
4116
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4120
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4121
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4122
inttypes.h stdint.h unistd.h
4124
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4125
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4127
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4128
cat >>confdefs.h <<_ACEOF
4129
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4138
ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4139
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4146
if test "$MINIX" = yes; then
4148
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4151
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4154
$as_echo "#define _MINIX 1" >>confdefs.h
4159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4160
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4161
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4162
$as_echo_n "(cached) " >&6
4164
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165
/* end confdefs.h. */
4167
# define __EXTENSIONS__ 1
4168
$ac_includes_default
4177
if ac_fn_cxx_try_compile "$LINENO"; then :
4178
ac_cv_safe_to_define___extensions__=yes
4180
ac_cv_safe_to_define___extensions__=no
4182
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4185
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4186
test $ac_cv_safe_to_define___extensions__ = yes &&
4187
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4189
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4191
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4193
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4195
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4200
ac_cpp='$CXXCPP $CPPFLAGS'
4201
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4204
if test -z "$CXX"; then
4205
if test -n "$CCC"; then
4208
if test -n "$ac_tool_prefix"; then
4209
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4211
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4212
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214
$as_echo_n "checking for $ac_word... " >&6; }
4215
if ${ac_cv_prog_CXX+:} false; then :
4216
$as_echo_n "(cached) " >&6
4218
if test -n "$CXX"; then
4219
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225
test -z "$as_dir" && as_dir=.
4226
for ac_exec_ext in '' $ac_executable_extensions; do
4227
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4229
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239
if test -n "$CXX"; then
4240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4241
$as_echo "$CXX" >&6; }
4243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244
$as_echo "no" >&6; }
4248
test -n "$CXX" && break
4251
if test -z "$CXX"; then
4253
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4255
# Extract the first word of "$ac_prog", so it can be a program name with args.
4256
set dummy $ac_prog; ac_word=$2
4257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258
$as_echo_n "checking for $ac_word... " >&6; }
4259
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4260
$as_echo_n "(cached) " >&6
4262
if test -n "$ac_ct_CXX"; then
4263
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269
test -z "$as_dir" && as_dir=.
4270
for ac_exec_ext in '' $ac_executable_extensions; do
4271
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272
ac_cv_prog_ac_ct_CXX="$ac_prog"
4273
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4283
if test -n "$ac_ct_CXX"; then
4284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4285
$as_echo "$ac_ct_CXX" >&6; }
4287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288
$as_echo "no" >&6; }
4292
test -n "$ac_ct_CXX" && break
4295
if test "x$ac_ct_CXX" = x; then
4298
case $cross_compiling:$ac_tool_warned in
4300
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4301
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4302
ac_tool_warned=yes ;;
4310
# Provide some information about the compiler.
4311
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4314
for ac_option in --version -v -V -qversion; do
4315
{ { ac_try="$ac_compiler $ac_option >&5"
4317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318
*) ac_try_echo=$ac_try;;
4320
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321
$as_echo "$ac_try_echo"; } >&5
4322
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4324
if test -s conftest.err; then
4326
... rest of stderr output deleted ...
4327
10q' conftest.err >conftest.er1
4328
cat conftest.er1 >&5
4330
rm -f conftest.er1 conftest.err
4331
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332
test $ac_status = 0; }
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4336
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4337
if ${ac_cv_cxx_compiler_gnu+:} false; then :
4338
$as_echo_n "(cached) " >&6
4340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341
/* end confdefs.h. */
4354
if ac_fn_cxx_try_compile "$LINENO"; then :
4359
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4364
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4365
if test $ac_compiler_gnu = yes; then
4370
ac_test_CXXFLAGS=${CXXFLAGS+set}
4371
ac_save_CXXFLAGS=$CXXFLAGS
4372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4373
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4374
if ${ac_cv_prog_cxx_g+:} false; then :
4375
$as_echo_n "(cached) " >&6
4377
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4378
ac_cxx_werror_flag=yes
4381
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382
/* end confdefs.h. */
4392
if ac_fn_cxx_try_compile "$LINENO"; then :
4393
ac_cv_prog_cxx_g=yes
4396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397
/* end confdefs.h. */
4407
if ac_fn_cxx_try_compile "$LINENO"; then :
4410
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4412
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413
/* end confdefs.h. */
4423
if ac_fn_cxx_try_compile "$LINENO"; then :
4424
ac_cv_prog_cxx_g=yes
4426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4434
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4435
if test "$ac_test_CXXFLAGS" = set; then
4436
CXXFLAGS=$ac_save_CXXFLAGS
4437
elif test $ac_cv_prog_cxx_g = yes; then
4438
if test "$GXX" = yes; then
4444
if test "$GXX" = yes; then
4451
ac_cpp='$CXXCPP $CPPFLAGS'
4452
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4456
depcc="$CXX" am_compiler_list=
4458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459
$as_echo_n "checking dependency style of $depcc... " >&6; }
4460
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4461
$as_echo_n "(cached) " >&6
4463
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4464
# We make a subdir and do the tests there. Otherwise we can end up
4465
# making bogus files that we don't know about and never remove. For
4466
# instance it was reported that on HP-UX the gcc test will end up
4467
# making a dummy file named 'D' -- because '-MD' means "put the output
4471
# Copy depcomp to subdir because otherwise we won't find it if we're
4472
# using a relative directory.
4473
cp "$am_depcomp" conftest.dir
4475
# We will build objects and dependencies in a subdirectory because
4476
# it helps to detect inapplicable dependency modes. For instance
4477
# both Tru64's cc and ICC support -MD to output dependencies as a
4478
# side effect of compilation, but ICC will put the dependencies in
4479
# the current directory while Tru64 will put them in the object
4483
am_cv_CXX_dependencies_compiler_type=none
4484
if test "$am_compiler_list" = ""; then
4485
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4488
case " $depcc " in #(
4489
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4492
for depmode in $am_compiler_list; do
4493
# Setup a source with many dependencies, because some compilers
4494
# like to wrap large dependency lists on column 80 (with \), and
4495
# we should not choose a depcomp mode which is confused by this.
4497
# We need to recreate these files for each test, as the compiler may
4498
# overwrite some of them when testing with obscure command lines.
4499
# This happens at least with the AIX C compiler.
4501
for i in 1 2 3 4 5 6; do
4502
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4503
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4504
# Solaris 10 /bin/sh.
4505
echo '/* dummy */' > sub/conftst$i.h
4507
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
# We check with '-c' and '-o' for the sake of the "dashmstdout"
4510
# mode. It turns out that the SunPro C++ compiler does not properly
4511
# handle '-M -o', and we need to detect this. Also, some Intel
4512
# versions had trouble with output in subdirs.
4513
am__obj=sub/conftest.${OBJEXT-o}
4514
am__minus_obj="-o $am__obj"
4517
# This depmode causes a compiler race in universal mode.
4518
test "$am__universal" = false || continue
4521
# After this tag, mechanisms are not by side-effect, so they'll
4522
# only be used when explicitly requested.
4523
if test "x$enable_dependency_tracking" = xyes; then
4529
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4530
# This compiler won't grok '-c -o', but also, the minuso test has
4531
# not run yet. These depmodes are late enough in the game, and
4532
# so weak that their functioning should not be impacted.
4533
am__obj=conftest.${OBJEXT-o}
4538
if depmode=$depmode \
4539
source=sub/conftest.c object=$am__obj \
4540
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4541
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4542
>/dev/null 2>conftest.err &&
4543
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4544
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4545
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4546
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4547
# icc doesn't choke on unknown options, it will just issue warnings
4548
# or remarks (even with -Werror). So we grep stderr for any message
4549
# that says an option was ignored or not supported.
4550
# When given -MP, icc 7.0 and 7.1 complain thusly:
4551
# icc: Command line warning: ignoring option '-M'; no argument required
4552
# The diagnosis changed in icc 8.0:
4553
# icc: Command line remark: option '-MP' not supported
4554
if (grep 'ignoring option' conftest.err ||
4555
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4556
am_cv_CXX_dependencies_compiler_type=$depmode
4565
am_cv_CXX_dependencies_compiler_type=none
4569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4570
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4571
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4574
test "x$enable_dependency_tracking" != xno \
4575
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4576
am__fastdepCXX_TRUE=
4577
am__fastdepCXX_FALSE='#'
4579
am__fastdepCXX_TRUE='#'
4580
am__fastdepCXX_FALSE=
4585
ac_cpp='$CXXCPP $CPPFLAGS'
4586
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4590
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4591
if test -z "$CXXCPP"; then
4592
if ${ac_cv_prog_CXXCPP+:} false; then :
4593
$as_echo_n "(cached) " >&6
4595
# Double quotes because CXXCPP needs to be expanded
4596
for CXXCPP in "$CXX -E" "/lib/cpp"
4599
for ac_cxx_preproc_warn_flag in '' yes
4601
# Use a header file that comes with gcc, so configuring glibc
4602
# with a fresh cross-compiler works.
4603
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4604
# <limits.h> exists even on freestanding compilers.
4605
# On the NeXT, cc -E runs the code through the compiler's parser,
4606
# not just through cpp. "Syntax error" is here to catch this case.
4607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608
/* end confdefs.h. */
4610
# include <limits.h>
4612
# include <assert.h>
4616
if ac_fn_cxx_try_cpp "$LINENO"; then :
4619
# Broken: fails on valid input.
4622
rm -f conftest.err conftest.i conftest.$ac_ext
4624
# OK, works on sane cases. Now check whether nonexistent headers
4625
# can be detected and how.
4626
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627
/* end confdefs.h. */
4628
#include <ac_nonexistent.h>
4630
if ac_fn_cxx_try_cpp "$LINENO"; then :
4631
# Broken: success on invalid input.
4634
# Passes both tests.
4638
rm -f conftest.err conftest.i conftest.$ac_ext
4641
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642
rm -f conftest.i conftest.err conftest.$ac_ext
4643
if $ac_preproc_ok; then :
4648
ac_cv_prog_CXXCPP=$CXXCPP
4651
CXXCPP=$ac_cv_prog_CXXCPP
4653
ac_cv_prog_CXXCPP=$CXXCPP
4655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4656
$as_echo "$CXXCPP" >&6; }
4658
for ac_cxx_preproc_warn_flag in '' yes
4660
# Use a header file that comes with gcc, so configuring glibc
4661
# with a fresh cross-compiler works.
4662
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4663
# <limits.h> exists even on freestanding compilers.
4664
# On the NeXT, cc -E runs the code through the compiler's parser,
4665
# not just through cpp. "Syntax error" is here to catch this case.
4666
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667
/* end confdefs.h. */
4669
# include <limits.h>
4671
# include <assert.h>
4675
if ac_fn_cxx_try_cpp "$LINENO"; then :
4678
# Broken: fails on valid input.
4681
rm -f conftest.err conftest.i conftest.$ac_ext
4683
# OK, works on sane cases. Now check whether nonexistent headers
4684
# can be detected and how.
4685
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686
/* end confdefs.h. */
4687
#include <ac_nonexistent.h>
4689
if ac_fn_cxx_try_cpp "$LINENO"; then :
4690
# Broken: success on invalid input.
4693
# Passes both tests.
4697
rm -f conftest.err conftest.i conftest.$ac_ext
4700
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4701
rm -f conftest.i conftest.err conftest.$ac_ext
4702
if $ac_preproc_ok; then :
4705
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4706
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4707
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4708
See \`config.log' for more details" "$LINENO" 5; }
4712
ac_cpp='$CXXCPP $CPPFLAGS'
4713
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4718
ac_cpp='$CPP $CPPFLAGS'
4719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722
if test -n "$ac_tool_prefix"; then
4723
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4724
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726
$as_echo_n "checking for $ac_word... " >&6; }
4727
if ${ac_cv_prog_CC+:} false; then :
4728
$as_echo_n "(cached) " >&6
4730
if test -n "$CC"; then
4731
ac_cv_prog_CC="$CC" # Let the user override the test.
4733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737
test -z "$as_dir" && as_dir=.
4738
for ac_exec_ext in '' $ac_executable_extensions; do
4739
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4741
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751
if test -n "$CC"; then
4752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753
$as_echo "$CC" >&6; }
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756
$as_echo "no" >&6; }
4761
if test -z "$ac_cv_prog_CC"; then
4763
# Extract the first word of "gcc", so it can be a program name with args.
4764
set dummy gcc; ac_word=$2
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766
$as_echo_n "checking for $ac_word... " >&6; }
4767
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4768
$as_echo_n "(cached) " >&6
4770
if test -n "$ac_ct_CC"; then
4771
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777
test -z "$as_dir" && as_dir=.
4778
for ac_exec_ext in '' $ac_executable_extensions; do
4779
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780
ac_cv_prog_ac_ct_CC="gcc"
4781
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4791
if test -n "$ac_ct_CC"; then
4792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793
$as_echo "$ac_ct_CC" >&6; }
4795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796
$as_echo "no" >&6; }
4799
if test "x$ac_ct_CC" = x; then
4802
case $cross_compiling:$ac_tool_warned in
4804
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806
ac_tool_warned=yes ;;
4814
if test -z "$CC"; then
4815
if test -n "$ac_tool_prefix"; then
4816
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4817
set dummy ${ac_tool_prefix}cc; ac_word=$2
4818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819
$as_echo_n "checking for $ac_word... " >&6; }
4820
if ${ac_cv_prog_CC+:} false; then :
4821
$as_echo_n "(cached) " >&6
4823
if test -n "$CC"; then
4824
ac_cv_prog_CC="$CC" # Let the user override the test.
4826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830
test -z "$as_dir" && as_dir=.
4831
for ac_exec_ext in '' $ac_executable_extensions; do
4832
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833
ac_cv_prog_CC="${ac_tool_prefix}cc"
4834
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844
if test -n "$CC"; then
4845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4846
$as_echo "$CC" >&6; }
4848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849
$as_echo "no" >&6; }
4855
if test -z "$CC"; then
4856
# Extract the first word of "cc", so it can be a program name with args.
4857
set dummy cc; ac_word=$2
4858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859
$as_echo_n "checking for $ac_word... " >&6; }
4860
if ${ac_cv_prog_CC+:} false; then :
4861
$as_echo_n "(cached) " >&6
4863
if test -n "$CC"; then
4864
ac_cv_prog_CC="$CC" # Let the user override the test.
4867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871
test -z "$as_dir" && as_dir=.
4872
for ac_exec_ext in '' $ac_executable_extensions; do
4873
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4875
ac_prog_rejected=yes
4879
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4886
if test $ac_prog_rejected = yes; then
4887
# We found a bogon in the path, so make sure we never use it.
4888
set dummy $ac_cv_prog_CC
4890
if test $# != 0; then
4891
# We chose a different compiler from the bogus one.
4892
# However, it has the same basename, so the bogon will be chosen
4893
# first if we set CC to just the basename; use the full file name.
4895
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4901
if test -n "$CC"; then
4902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4903
$as_echo "$CC" >&6; }
4905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906
$as_echo "no" >&6; }
4911
if test -z "$CC"; then
4912
if test -n "$ac_tool_prefix"; then
4913
for ac_prog in cl.exe
4915
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4916
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918
$as_echo_n "checking for $ac_word... " >&6; }
4919
if ${ac_cv_prog_CC+:} false; then :
4920
$as_echo_n "(cached) " >&6
4922
if test -n "$CC"; then
4923
ac_cv_prog_CC="$CC" # Let the user override the test.
4925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929
test -z "$as_dir" && as_dir=.
4930
for ac_exec_ext in '' $ac_executable_extensions; do
4931
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4932
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4933
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943
if test -n "$CC"; then
4944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4945
$as_echo "$CC" >&6; }
4947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948
$as_echo "no" >&6; }
4952
test -n "$CC" && break
4955
if test -z "$CC"; then
4957
for ac_prog in cl.exe
4959
# Extract the first word of "$ac_prog", so it can be a program name with args.
4960
set dummy $ac_prog; ac_word=$2
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962
$as_echo_n "checking for $ac_word... " >&6; }
4963
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4964
$as_echo_n "(cached) " >&6
4966
if test -n "$ac_ct_CC"; then
4967
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4969
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973
test -z "$as_dir" && as_dir=.
4974
for ac_exec_ext in '' $ac_executable_extensions; do
4975
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976
ac_cv_prog_ac_ct_CC="$ac_prog"
4977
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4987
if test -n "$ac_ct_CC"; then
4988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4989
$as_echo "$ac_ct_CC" >&6; }
4991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992
$as_echo "no" >&6; }
4996
test -n "$ac_ct_CC" && break
4999
if test "x$ac_ct_CC" = x; then
5002
case $cross_compiling:$ac_tool_warned in
5004
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006
ac_tool_warned=yes ;;
5015
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5016
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5017
as_fn_error $? "no acceptable C compiler found in \$PATH
5018
See \`config.log' for more details" "$LINENO" 5; }
5020
# Provide some information about the compiler.
5021
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5024
for ac_option in --version -v -V -qversion; do
5025
{ { ac_try="$ac_compiler $ac_option >&5"
5027
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028
*) ac_try_echo=$ac_try;;
5030
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5031
$as_echo "$ac_try_echo"; } >&5
5032
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
5034
if test -s conftest.err; then
5036
... rest of stderr output deleted ...
5037
10q' conftest.err >conftest.er1
5038
cat conftest.er1 >&5
5040
rm -f conftest.er1 conftest.err
5041
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042
test $ac_status = 0; }
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5046
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5047
if ${ac_cv_c_compiler_gnu+:} false; then :
5048
$as_echo_n "(cached) " >&6
5050
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051
/* end confdefs.h. */
5064
if ac_fn_c_try_compile "$LINENO"; then :
5069
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5074
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5075
if test $ac_compiler_gnu = yes; then
5080
ac_test_CFLAGS=${CFLAGS+set}
5081
ac_save_CFLAGS=$CFLAGS
5082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5083
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5084
if ${ac_cv_prog_cc_g+:} false; then :
5085
$as_echo_n "(cached) " >&6
5087
ac_save_c_werror_flag=$ac_c_werror_flag
5088
ac_c_werror_flag=yes
5091
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092
/* end confdefs.h. */
5102
if ac_fn_c_try_compile "$LINENO"; then :
5106
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107
/* end confdefs.h. */
5117
if ac_fn_c_try_compile "$LINENO"; then :
5120
ac_c_werror_flag=$ac_save_c_werror_flag
5122
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123
/* end confdefs.h. */
5133
if ac_fn_c_try_compile "$LINENO"; then :
5136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141
ac_c_werror_flag=$ac_save_c_werror_flag
5143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5144
$as_echo "$ac_cv_prog_cc_g" >&6; }
5145
if test "$ac_test_CFLAGS" = set; then
5146
CFLAGS=$ac_save_CFLAGS
5147
elif test $ac_cv_prog_cc_g = yes; then
5148
if test "$GCC" = yes; then
5154
if test "$GCC" = yes; then
5160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5161
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5162
if ${ac_cv_prog_cc_c89+:} false; then :
5163
$as_echo_n "(cached) " >&6
5165
ac_cv_prog_cc_c89=no
5167
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168
/* end confdefs.h. */
5172
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5173
struct buf { int x; };
5174
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5175
static char *e (p, i)
5181
static char *f (char * (*g) (char **, int), char **p, ...)
5186
s = g (p, va_arg (v,int));
5191
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5192
function prototypes and stuff, but not '\xHH' hex character constants.
5193
These don't provoke an error unfortunately, instead are silently treated
5194
as 'x'. The following induces an error, until -std is added to get
5195
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5196
array size at least. It's necessary to write '\x00'==0 to get something
5197
that's true only with -std. */
5198
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5200
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5201
inside strings and character constants. */
5203
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5205
int test (int i, double x);
5206
struct s1 {int (*f) (int a);};
5207
struct s2 {int (*f) (double a);};
5208
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5214
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5219
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5220
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5222
CC="$ac_save_CC $ac_arg"
5223
if ac_fn_c_try_compile "$LINENO"; then :
5224
ac_cv_prog_cc_c89=$ac_arg
5226
rm -f core conftest.err conftest.$ac_objext
5227
test "x$ac_cv_prog_cc_c89" != "xno" && break
5229
rm -f conftest.$ac_ext
5234
case "x$ac_cv_prog_cc_c89" in
5236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5237
$as_echo "none needed" >&6; } ;;
5239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5240
$as_echo "unsupported" >&6; } ;;
5242
CC="$CC $ac_cv_prog_cc_c89"
5243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5244
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5246
if test "x$ac_cv_prog_cc_c89" != xno; then :
5251
ac_cpp='$CXXCPP $CPPFLAGS'
5252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257
ac_cpp='$CPP $CPPFLAGS'
5258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5262
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5263
if ${am_cv_prog_cc_c_o+:} false; then :
5264
$as_echo_n "(cached) " >&6
5266
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267
/* end confdefs.h. */
5277
# Make sure it works both with $CC and with simple cc.
5278
# Following AC_PROG_CC_C_O, we do the test twice because some
5279
# compilers refuse to overwrite an existing .o file with -o,
5280
# though they will create one.
5281
am_cv_prog_cc_c_o=yes
5283
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5284
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287
(exit $ac_status); } \
5288
&& test -f conftest2.$ac_objext; then
5291
am_cv_prog_cc_c_o=no
5295
rm -f core conftest*
5298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5299
$as_echo "$am_cv_prog_cc_c_o" >&6; }
5300
if test "$am_cv_prog_cc_c_o" != yes; then
5301
# Losing compiler, so override with the script.
5302
# FIXME: It is wrong to rewrite CC.
5303
# But if we don't then we get into trouble of one sort or another.
5304
# A longer-term fix would be to have automake use am__CC in this case,
5305
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5306
CC="$am_aux_dir/compile $CC"
5309
ac_cpp='$CXXCPP $CPPFLAGS'
5310
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5315
depcc="$CC" am_compiler_list=
5317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5318
$as_echo_n "checking dependency style of $depcc... " >&6; }
5319
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5320
$as_echo_n "(cached) " >&6
5322
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5323
# We make a subdir and do the tests there. Otherwise we can end up
5324
# making bogus files that we don't know about and never remove. For
5325
# instance it was reported that on HP-UX the gcc test will end up
5326
# making a dummy file named 'D' -- because '-MD' means "put the output
5330
# Copy depcomp to subdir because otherwise we won't find it if we're
5331
# using a relative directory.
5332
cp "$am_depcomp" conftest.dir
5334
# We will build objects and dependencies in a subdirectory because
5335
# it helps to detect inapplicable dependency modes. For instance
5336
# both Tru64's cc and ICC support -MD to output dependencies as a
5337
# side effect of compilation, but ICC will put the dependencies in
5338
# the current directory while Tru64 will put them in the object
5342
am_cv_CC_dependencies_compiler_type=none
5343
if test "$am_compiler_list" = ""; then
5344
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5347
case " $depcc " in #(
5348
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5351
for depmode in $am_compiler_list; do
5352
# Setup a source with many dependencies, because some compilers
5353
# like to wrap large dependency lists on column 80 (with \), and
5354
# we should not choose a depcomp mode which is confused by this.
5356
# We need to recreate these files for each test, as the compiler may
5357
# overwrite some of them when testing with obscure command lines.
5358
# This happens at least with the AIX C compiler.
5360
for i in 1 2 3 4 5 6; do
5361
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5362
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5363
# Solaris 10 /bin/sh.
5364
echo '/* dummy */' > sub/conftst$i.h
5366
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5368
# We check with '-c' and '-o' for the sake of the "dashmstdout"
5369
# mode. It turns out that the SunPro C++ compiler does not properly
5370
# handle '-M -o', and we need to detect this. Also, some Intel
5371
# versions had trouble with output in subdirs.
5372
am__obj=sub/conftest.${OBJEXT-o}
5373
am__minus_obj="-o $am__obj"
5376
# This depmode causes a compiler race in universal mode.
5377
test "$am__universal" = false || continue
5380
# After this tag, mechanisms are not by side-effect, so they'll
5381
# only be used when explicitly requested.
5382
if test "x$enable_dependency_tracking" = xyes; then
5388
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5389
# This compiler won't grok '-c -o', but also, the minuso test has
5390
# not run yet. These depmodes are late enough in the game, and
5391
# so weak that their functioning should not be impacted.
5392
am__obj=conftest.${OBJEXT-o}
5397
if depmode=$depmode \
5398
source=sub/conftest.c object=$am__obj \
5399
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5400
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5401
>/dev/null 2>conftest.err &&
5402
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5403
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5404
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5405
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5406
# icc doesn't choke on unknown options, it will just issue warnings
5407
# or remarks (even with -Werror). So we grep stderr for any message
5408
# that says an option was ignored or not supported.
5409
# When given -MP, icc 7.0 and 7.1 complain thusly:
5410
# icc: Command line warning: ignoring option '-M'; no argument required
5411
# The diagnosis changed in icc 8.0:
5412
# icc: Command line remark: option '-MP' not supported
5413
if (grep 'ignoring option' conftest.err ||
5414
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5415
am_cv_CC_dependencies_compiler_type=$depmode
5424
am_cv_CC_dependencies_compiler_type=none
5428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5429
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5430
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5433
test "x$enable_dependency_tracking" != xno \
5434
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5436
am__fastdepCC_FALSE='#'
5438
am__fastdepCC_TRUE='#'
5439
am__fastdepCC_FALSE=
5443
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5446
$as_echo_n "checking for ANSI C header files... " >&6; }
5447
if ${ac_cv_header_stdc+:} false; then :
5448
$as_echo_n "(cached) " >&6
5450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451
/* end confdefs.h. */
5465
if ac_fn_cxx_try_compile "$LINENO"; then :
5466
ac_cv_header_stdc=yes
5468
ac_cv_header_stdc=no
5470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472
if test $ac_cv_header_stdc = yes; then
5473
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475
/* end confdefs.h. */
5479
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480
$EGREP "memchr" >/dev/null 2>&1; then :
5483
ac_cv_header_stdc=no
5489
if test $ac_cv_header_stdc = yes; then
5490
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492
/* end confdefs.h. */
5496
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497
$EGREP "free" >/dev/null 2>&1; then :
5500
ac_cv_header_stdc=no
5506
if test $ac_cv_header_stdc = yes; then
5507
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5508
if test "$cross_compiling" = yes; then :
5511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512
/* end confdefs.h. */
5515
#if ((' ' & 0x0FF) == 0x020)
5516
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5517
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5519
# define ISLOWER(c) \
5520
(('a' <= (c) && (c) <= 'i') \
5521
|| ('j' <= (c) && (c) <= 'r') \
5522
|| ('s' <= (c) && (c) <= 'z'))
5523
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5526
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5531
for (i = 0; i < 256; i++)
5532
if (XOR (islower (i), ISLOWER (i))
5533
|| toupper (i) != TOUPPER (i))
5538
if ac_fn_cxx_try_run "$LINENO"; then :
5541
ac_cv_header_stdc=no
5543
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5544
conftest.$ac_objext conftest.beam conftest.$ac_ext
5549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5550
$as_echo "$ac_cv_header_stdc" >&6; }
5551
if test $ac_cv_header_stdc = yes; then
5553
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5561
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5566
macro_version='2.4.2'
5567
macro_revision='1.3337'
5581
ltmain="$ac_aux_dir/ltmain.sh"
5583
# Make sure we can run config.sub.
5584
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5585
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5588
$as_echo_n "checking build system type... " >&6; }
5589
if ${ac_cv_build+:} false; then :
5590
$as_echo_n "(cached) " >&6
5592
ac_build_alias=$build_alias
5593
test "x$ac_build_alias" = x &&
5594
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5595
test "x$ac_build_alias" = x &&
5596
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5597
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5598
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5602
$as_echo "$ac_cv_build" >&6; }
5603
case $ac_cv_build in
5605
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5608
ac_save_IFS=$IFS; IFS='-'
5614
# Remember, the first character of IFS is used to create $*,
5615
# except with old shells:
5618
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5622
$as_echo_n "checking host system type... " >&6; }
5623
if ${ac_cv_host+:} false; then :
5624
$as_echo_n "(cached) " >&6
5626
if test "x$host_alias" = x; then
5627
ac_cv_host=$ac_cv_build
5629
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5630
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5635
$as_echo "$ac_cv_host" >&6; }
5638
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5641
ac_save_IFS=$IFS; IFS='-'
5647
# Remember, the first character of IFS is used to create $*,
5648
# except with old shells:
5651
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5654
# Backslashify metacharacters that are still active within
5655
# double-quoted strings.
5656
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5658
# Same as above, but do not quote variable references.
5659
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5661
# Sed substitution to delay expansion of an escaped shell variable in a
5662
# double_quote_subst'ed string.
5663
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5665
# Sed substitution to delay expansion of an escaped single quote.
5666
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5668
# Sed substitution to avoid accidental globbing in evaled expressions
5669
no_glob_subst='s/\*/\\\*/g'
5671
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5672
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5673
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5676
$as_echo_n "checking how to print strings... " >&6; }
5677
# Test print first, because it will be a builtin if present.
5678
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5679
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5681
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5684
# Use this function as a fallback that always works.
5685
func_fallback_echo ()
5687
eval 'cat <<_LTECHO_EOF
5691
ECHO='func_fallback_echo'
5694
# func_echo_all arg...
5695
# Invoke $ECHO with all args, space-separated.
5702
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5703
$as_echo "printf" >&6; } ;;
5704
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5705
$as_echo "print -r" >&6; } ;;
5706
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5707
$as_echo "cat" >&6; } ;;
5723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5724
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5725
if ${ac_cv_path_SED+:} false; then :
5726
$as_echo_n "(cached) " >&6
5728
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5729
for ac_i in 1 2 3 4 5 6 7; do
5730
ac_script="$ac_script$as_nl$ac_script"
5732
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5733
{ ac_script=; unset ac_script;}
5734
if test -z "$SED"; then
5735
ac_path_SED_found=false
5736
# Loop through the user's path and test for each of PROGNAME-LIST
5737
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741
test -z "$as_dir" && as_dir=.
5742
for ac_prog in sed gsed; do
5743
for ac_exec_ext in '' $ac_executable_extensions; do
5744
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5745
as_fn_executable_p "$ac_path_SED" || continue
5746
# Check for GNU ac_path_SED and select it if it is found.
5747
# Check for GNU $ac_path_SED
5748
case `"$ac_path_SED" --version 2>&1` in
5750
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5753
$as_echo_n 0123456789 >"conftest.in"
5756
cat "conftest.in" "conftest.in" >"conftest.tmp"
5757
mv "conftest.tmp" "conftest.in"
5758
cp "conftest.in" "conftest.nl"
5759
$as_echo '' >> "conftest.nl"
5760
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5761
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5762
as_fn_arith $ac_count + 1 && ac_count=$as_val
5763
if test $ac_count -gt ${ac_path_SED_max-0}; then
5764
# Best one so far, save it but keep looking for a better one
5765
ac_cv_path_SED="$ac_path_SED"
5766
ac_path_SED_max=$ac_count
5768
# 10*(2^10) chars as input seems more than enough
5769
test $ac_count -gt 10 && break
5771
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5774
$ac_path_SED_found && break 3
5779
if test -z "$ac_cv_path_SED"; then
5780
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5788
$as_echo "$ac_cv_path_SED" >&6; }
5789
SED="$ac_cv_path_SED"
5792
test -z "$SED" && SED=sed
5793
Xsed="$SED -e 1s/^X//"
5805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5806
$as_echo_n "checking for fgrep... " >&6; }
5807
if ${ac_cv_path_FGREP+:} false; then :
5808
$as_echo_n "(cached) " >&6
5810
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5811
then ac_cv_path_FGREP="$GREP -F"
5813
if test -z "$FGREP"; then
5814
ac_path_FGREP_found=false
5815
# Loop through the user's path and test for each of PROGNAME-LIST
5816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5820
test -z "$as_dir" && as_dir=.
5821
for ac_prog in fgrep; do
5822
for ac_exec_ext in '' $ac_executable_extensions; do
5823
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5824
as_fn_executable_p "$ac_path_FGREP" || continue
5825
# Check for GNU ac_path_FGREP and select it if it is found.
5826
# Check for GNU $ac_path_FGREP
5827
case `"$ac_path_FGREP" --version 2>&1` in
5829
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5832
$as_echo_n 0123456789 >"conftest.in"
5835
cat "conftest.in" "conftest.in" >"conftest.tmp"
5836
mv "conftest.tmp" "conftest.in"
5837
cp "conftest.in" "conftest.nl"
5838
$as_echo 'FGREP' >> "conftest.nl"
5839
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5840
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5841
as_fn_arith $ac_count + 1 && ac_count=$as_val
5842
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5843
# Best one so far, save it but keep looking for a better one
5844
ac_cv_path_FGREP="$ac_path_FGREP"
5845
ac_path_FGREP_max=$ac_count
5847
# 10*(2^10) chars as input seems more than enough
5848
test $ac_count -gt 10 && break
5850
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5853
$ac_path_FGREP_found && break 3
5858
if test -z "$ac_cv_path_FGREP"; then
5859
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5862
ac_cv_path_FGREP=$FGREP
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5868
$as_echo "$ac_cv_path_FGREP" >&6; }
5869
FGREP="$ac_cv_path_FGREP"
5872
test -z "$GREP" && GREP=grep
5892
# Check whether --with-gnu-ld was given.
5893
if test "${with_gnu_ld+set}" = set; then :
5894
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5900
if test "$GCC" = yes; then
5901
# Check if gcc -print-prog-name=ld gives a path.
5902
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5903
$as_echo_n "checking for ld used by $CC... " >&6; }
5906
# gcc leaves a trailing carriage return which upsets mingw
5907
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5909
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5912
# Accept absolute paths.
5914
re_direlt='/[^/][^/]*/\.\./'
5915
# Canonicalize the pathname of ld
5916
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5917
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5918
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5920
test -z "$LD" && LD="$ac_prog"
5923
# If it fails, then pretend we aren't using GCC.
5927
# If it is relative, then search for the first ld in PATH.
5931
elif test "$with_gnu_ld" = yes; then
5932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5933
$as_echo_n "checking for GNU ld... " >&6; }
5935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5936
$as_echo_n "checking for non-GNU ld... " >&6; }
5938
if ${lt_cv_path_LD+:} false; then :
5939
$as_echo_n "(cached) " >&6
5941
if test -z "$LD"; then
5942
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5943
for ac_dir in $PATH; do
5945
test -z "$ac_dir" && ac_dir=.
5946
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5947
lt_cv_path_LD="$ac_dir/$ac_prog"
5948
# Check to see if the program is GNU ld. I'd rather use --version,
5949
# but apparently some variants of GNU ld only accept -v.
5950
# Break only if it was the GNU/non-GNU ld that we prefer.
5951
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5952
*GNU* | *'with BFD'*)
5953
test "$with_gnu_ld" != no && break
5956
test "$with_gnu_ld" != yes && break
5963
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5968
if test -n "$LD"; then
5969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5970
$as_echo "$LD" >&6; }
5972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973
$as_echo "no" >&6; }
5975
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5977
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5978
if ${lt_cv_prog_gnu_ld+:} false; then :
5979
$as_echo_n "(cached) " >&6
5981
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5982
case `$LD -v 2>&1 </dev/null` in
5983
*GNU* | *'with BFD'*)
5984
lt_cv_prog_gnu_ld=yes
5987
lt_cv_prog_gnu_ld=no
5991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5992
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5993
with_gnu_ld=$lt_cv_prog_gnu_ld
6003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6004
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6005
if ${lt_cv_path_NM+:} false; then :
6006
$as_echo_n "(cached) " >&6
6008
if test -n "$NM"; then
6009
# Let the user override the test.
6012
lt_nm_to_check="${ac_tool_prefix}nm"
6013
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6014
lt_nm_to_check="$lt_nm_to_check nm"
6016
for lt_tmp_nm in $lt_nm_to_check; do
6017
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6018
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6020
test -z "$ac_dir" && ac_dir=.
6021
tmp_nm="$ac_dir/$lt_tmp_nm"
6022
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6023
# Check to see if the nm accepts a BSD-compat flag.
6024
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6025
# nm: unknown option "B" ignored
6026
# Tru64's nm complains that /dev/null is an invalid object file
6027
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6028
*/dev/null* | *'Invalid file or object type'*)
6029
lt_cv_path_NM="$tmp_nm -B"
6033
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6035
lt_cv_path_NM="$tmp_nm -p"
6039
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6040
continue # so that we can try to find one that supports BSD flags
6049
: ${lt_cv_path_NM=no}
6052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6053
$as_echo "$lt_cv_path_NM" >&6; }
6054
if test "$lt_cv_path_NM" != "no"; then
6057
# Didn't find any BSD compatible name lister, look for dumpbin.
6058
if test -n "$DUMPBIN"; then :
6059
# Let the user override the test.
6061
if test -n "$ac_tool_prefix"; then
6062
for ac_prog in dumpbin "link -dump"
6064
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6065
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067
$as_echo_n "checking for $ac_word... " >&6; }
6068
if ${ac_cv_prog_DUMPBIN+:} false; then :
6069
$as_echo_n "(cached) " >&6
6071
if test -n "$DUMPBIN"; then
6072
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078
test -z "$as_dir" && as_dir=.
6079
for ac_exec_ext in '' $ac_executable_extensions; do
6080
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6082
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091
DUMPBIN=$ac_cv_prog_DUMPBIN
6092
if test -n "$DUMPBIN"; then
6093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6094
$as_echo "$DUMPBIN" >&6; }
6096
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097
$as_echo "no" >&6; }
6101
test -n "$DUMPBIN" && break
6104
if test -z "$DUMPBIN"; then
6105
ac_ct_DUMPBIN=$DUMPBIN
6106
for ac_prog in dumpbin "link -dump"
6108
# Extract the first word of "$ac_prog", so it can be a program name with args.
6109
set dummy $ac_prog; ac_word=$2
6110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111
$as_echo_n "checking for $ac_word... " >&6; }
6112
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6113
$as_echo_n "(cached) " >&6
6115
if test -n "$ac_ct_DUMPBIN"; then
6116
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122
test -z "$as_dir" && as_dir=.
6123
for ac_exec_ext in '' $ac_executable_extensions; do
6124
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6126
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6136
if test -n "$ac_ct_DUMPBIN"; then
6137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6138
$as_echo "$ac_ct_DUMPBIN" >&6; }
6140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141
$as_echo "no" >&6; }
6145
test -n "$ac_ct_DUMPBIN" && break
6148
if test "x$ac_ct_DUMPBIN" = x; then
6151
case $cross_compiling:$ac_tool_warned in
6153
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155
ac_tool_warned=yes ;;
6157
DUMPBIN=$ac_ct_DUMPBIN
6161
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6163
DUMPBIN="$DUMPBIN -symbols"
6171
if test "$DUMPBIN" != ":"; then
6175
test -z "$NM" && NM=nm
6182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6183
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6184
if ${lt_cv_nm_interface+:} false; then :
6185
$as_echo_n "(cached) " >&6
6187
lt_cv_nm_interface="BSD nm"
6188
echo "int some_variable = 0;" > conftest.$ac_ext
6189
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6190
(eval "$ac_compile" 2>conftest.err)
6191
cat conftest.err >&5
6192
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6193
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6194
cat conftest.err >&5
6195
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
6196
cat conftest.out >&5
6197
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6198
lt_cv_nm_interface="MS dumpbin"
6202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6203
$as_echo "$lt_cv_nm_interface" >&6; }
6205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6206
$as_echo_n "checking whether ln -s works... " >&6; }
6208
if test "$LN_S" = "ln -s"; then
6209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6210
$as_echo "yes" >&6; }
6212
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6213
$as_echo "no, using $LN_S" >&6; }
6216
# find the maximum length of command line arguments
6217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6218
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6219
if ${lt_cv_sys_max_cmd_len+:} false; then :
6220
$as_echo_n "(cached) " >&6
6227
# On DJGPP, this test can blow up pretty badly due to problems in libc
6228
# (any single argument exceeding 2000 bytes causes a buffer overrun
6229
# during glob expansion). Even if it were fixed, the result of this
6230
# check would be larger than it should be.
6231
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6235
# Under GNU Hurd, this test is not required because there is
6236
# no limit to the length of command line arguments.
6237
# Libtool will interpret -1 as no limit whatsoever
6238
lt_cv_sys_max_cmd_len=-1;
6241
cygwin* | mingw* | cegcc*)
6242
# On Win9x/ME, this test blows up -- it succeeds, but takes
6243
# about 5 minutes as the teststring grows exponentially.
6244
# Worse, since 9x/ME are not pre-emptively multitasking,
6245
# you end up with a "frozen" computer, even though with patience
6246
# the test eventually succeeds (with a max line length of 256k).
6247
# Instead, let's just punt: use the minimum linelength reported by
6248
# all of the supported platforms: 8192 (on NT/2K/XP).
6249
lt_cv_sys_max_cmd_len=8192;
6253
# On MiNT this can take a long time and run out of memory.
6254
lt_cv_sys_max_cmd_len=8192;
6258
# On AmigaOS with pdksh, this test takes hours, literally.
6259
# So we just punt and use a minimum line length of 8192.
6260
lt_cv_sys_max_cmd_len=8192;
6263
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6264
# This has been around since 386BSD, at least. Likely further.
6265
if test -x /sbin/sysctl; then
6266
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6267
elif test -x /usr/sbin/sysctl; then
6268
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6270
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6272
# And add a safety zone
6273
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6278
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6279
lt_cv_sys_max_cmd_len=196608
6283
# The test takes a long time on OS/2.
6284
lt_cv_sys_max_cmd_len=8192
6288
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6289
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6290
# nice to cause kernel panics so lets avoid the loop below.
6291
# First set a reasonable default.
6292
lt_cv_sys_max_cmd_len=16384
6294
if test -x /sbin/sysconfig; then
6295
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6296
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6301
lt_cv_sys_max_cmd_len=102400
6303
sysv5* | sco5v6* | sysv4.2uw2*)
6304
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6305
if test -n "$kargmax"; then
6306
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6308
lt_cv_sys_max_cmd_len=32768
6312
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6313
if test -n "$lt_cv_sys_max_cmd_len" && \
6314
test undefined != "$lt_cv_sys_max_cmd_len"; then
6315
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6316
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6318
# Make teststring a little bigger before we do anything with it.
6319
# a 1K string should be a reasonable start.
6320
for i in 1 2 3 4 5 6 7 8 ; do
6321
teststring=$teststring$teststring
6323
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6324
# If test is not a shell built-in, we'll probably end up computing a
6325
# maximum length that is only half of the actual maximum length, but
6327
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6328
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
6329
test $i != 17 # 1/2 MB should be enough
6332
teststring=$teststring$teststring
6334
# Only check the string length outside the loop.
6335
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6337
# Add a significant safety factor because C++ compilers can tack on
6338
# massive amounts of additional arguments before passing them to the
6339
# linker. It appears as though 1/2 is a usable value.
6340
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6347
if test -n $lt_cv_sys_max_cmd_len ; then
6348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6349
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6352
$as_echo "none" >&6; }
6354
max_cmd_len=$lt_cv_sys_max_cmd_len
6365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6366
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6367
# Try some XSI features
6370
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6372
&& eval 'test $(( 1 + 1 )) -eq 2 \
6373
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6376
$as_echo "$xsi_shell" >&6; }
6379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6380
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6382
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6384
&& lt_shell_append=yes
6385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6386
$as_echo "$lt_shell_append" >&6; }
6389
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6399
# test EBCDIC or ASCII
6400
case `echo X|tr X '\101'` in
6401
A) # ASCII based system
6402
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6403
lt_SP2NL='tr \040 \012'
6404
lt_NL2SP='tr \015\012 \040\040'
6406
*) # EBCDIC based system
6407
lt_SP2NL='tr \100 \n'
6408
lt_NL2SP='tr \r\n \100\100'
6420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6421
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6422
if ${lt_cv_to_host_file_cmd+:} false; then :
6423
$as_echo_n "(cached) " >&6
6428
*-*-mingw* ) # actually msys
6429
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6432
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6434
* ) # otherwise, assume *nix
6435
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6441
*-*-mingw* ) # actually msys
6442
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6445
lt_cv_to_host_file_cmd=func_convert_file_noop
6447
* ) # otherwise, assume *nix
6448
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6452
* ) # unhandled hosts (and "normal" native builds)
6453
lt_cv_to_host_file_cmd=func_convert_file_noop
6459
to_host_file_cmd=$lt_cv_to_host_file_cmd
6460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6461
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6468
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6469
if ${lt_cv_to_tool_file_cmd+:} false; then :
6470
$as_echo_n "(cached) " >&6
6472
#assume ordinary cross tools, or native build.
6473
lt_cv_to_tool_file_cmd=func_convert_file_noop
6477
*-*-mingw* ) # actually msys
6478
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6486
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6488
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6495
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6496
if ${lt_cv_ld_reload_flag+:} false; then :
6497
$as_echo_n "(cached) " >&6
6499
lt_cv_ld_reload_flag='-r'
6501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6502
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6503
reload_flag=$lt_cv_ld_reload_flag
6504
case $reload_flag in
6506
*) reload_flag=" $reload_flag" ;;
6508
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6510
cygwin* | mingw* | pw32* | cegcc*)
6511
if test "$GCC" != yes; then
6516
if test "$GCC" = yes; then
6517
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6519
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6532
if test -n "$ac_tool_prefix"; then
6533
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6534
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536
$as_echo_n "checking for $ac_word... " >&6; }
6537
if ${ac_cv_prog_OBJDUMP+:} false; then :
6538
$as_echo_n "(cached) " >&6
6540
if test -n "$OBJDUMP"; then
6541
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547
test -z "$as_dir" && as_dir=.
6548
for ac_exec_ext in '' $ac_executable_extensions; do
6549
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6551
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560
OBJDUMP=$ac_cv_prog_OBJDUMP
6561
if test -n "$OBJDUMP"; then
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6563
$as_echo "$OBJDUMP" >&6; }
6565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566
$as_echo "no" >&6; }
6571
if test -z "$ac_cv_prog_OBJDUMP"; then
6572
ac_ct_OBJDUMP=$OBJDUMP
6573
# Extract the first word of "objdump", so it can be a program name with args.
6574
set dummy objdump; ac_word=$2
6575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576
$as_echo_n "checking for $ac_word... " >&6; }
6577
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6578
$as_echo_n "(cached) " >&6
6580
if test -n "$ac_ct_OBJDUMP"; then
6581
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587
test -z "$as_dir" && as_dir=.
6588
for ac_exec_ext in '' $ac_executable_extensions; do
6589
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6591
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6601
if test -n "$ac_ct_OBJDUMP"; then
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6603
$as_echo "$ac_ct_OBJDUMP" >&6; }
6605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606
$as_echo "no" >&6; }
6609
if test "x$ac_ct_OBJDUMP" = x; then
6612
case $cross_compiling:$ac_tool_warned in
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616
ac_tool_warned=yes ;;
6618
OBJDUMP=$ac_ct_OBJDUMP
6621
OBJDUMP="$ac_cv_prog_OBJDUMP"
6624
test -z "$OBJDUMP" && OBJDUMP=objdump
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6635
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6636
if ${lt_cv_deplibs_check_method+:} false; then :
6637
$as_echo_n "(cached) " >&6
6639
lt_cv_file_magic_cmd='$MAGIC_CMD'
6640
lt_cv_file_magic_test_file=
6641
lt_cv_deplibs_check_method='unknown'
6642
# Need to set the preceding variable on all platforms that support
6643
# interlibrary dependencies.
6644
# 'none' -- dependencies not supported.
6645
# `unknown' -- same as none, but documents that we really don't know.
6646
# 'pass_all' -- all dependencies passed with no checks.
6647
# 'test_compile' -- check by making test program.
6648
# 'file_magic [[regex]]' -- check by looking for files in library path
6649
# which responds to the $file_magic_cmd with a given extended regex.
6650
# If you have `file' or equivalent on your system and you're not sure
6651
# whether `pass_all' will *always* work, you probably want this one.
6655
lt_cv_deplibs_check_method=pass_all
6659
lt_cv_deplibs_check_method=pass_all
6663
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6664
lt_cv_file_magic_cmd='/usr/bin/file -L'
6665
lt_cv_file_magic_test_file=/shlib/libc.so
6669
# func_win32_libid is a shell function defined in ltmain.sh
6670
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6671
lt_cv_file_magic_cmd='func_win32_libid'
6675
# Base MSYS/MinGW do not provide the 'file' command needed by
6676
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6677
# unless we find 'file', for example because we are cross-compiling.
6678
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6679
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6680
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6681
lt_cv_file_magic_cmd='func_win32_libid'
6683
# Keep this pattern in sync with the one in func_win32_libid.
6684
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6685
lt_cv_file_magic_cmd='$OBJDUMP -f'
6690
# use the weaker test based on 'objdump'. See mingw*.
6691
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6692
lt_cv_file_magic_cmd='$OBJDUMP -f'
6695
darwin* | rhapsody*)
6696
lt_cv_deplibs_check_method=pass_all
6699
freebsd* | dragonfly*)
6700
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6703
# Not sure whether the presence of OpenBSD here was a mistake.
6704
# Let's accept both of them until this is cleared up.
6705
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6706
lt_cv_file_magic_cmd=/usr/bin/file
6707
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6711
lt_cv_deplibs_check_method=pass_all
6716
lt_cv_deplibs_check_method=pass_all
6719
hpux10.20* | hpux11*)
6720
lt_cv_file_magic_cmd=/usr/bin/file
6723
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6724
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6727
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]'
6728
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6731
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6732
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6738
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6739
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6742
irix5* | irix6* | nonstopux*)
6744
*-32|*"-32 ") libmagic=32-bit;;
6745
*-n32|*"-n32 ") libmagic=N32;;
6746
*-64|*"-64 ") libmagic=64-bit;;
6747
*) libmagic=never-match;;
6749
lt_cv_deplibs_check_method=pass_all
6752
# This must be glibc/ELF.
6753
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6754
lt_cv_deplibs_check_method=pass_all
6757
netbsd* | netbsdelf*-gnu)
6758
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6759
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6761
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6766
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6767
lt_cv_file_magic_cmd=/usr/bin/file
6768
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6772
lt_cv_deplibs_check_method=pass_all
6776
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6777
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6779
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6783
osf3* | osf4* | osf5*)
6784
lt_cv_deplibs_check_method=pass_all
6788
lt_cv_deplibs_check_method=pass_all
6792
lt_cv_deplibs_check_method=pass_all
6795
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6796
lt_cv_deplibs_check_method=pass_all
6800
case $host_vendor in
6802
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]'
6803
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6806
lt_cv_deplibs_check_method=pass_all
6809
lt_cv_file_magic_cmd='/bin/file'
6810
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6813
lt_cv_file_magic_cmd='/bin/file'
6814
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6815
lt_cv_file_magic_test_file=/lib/libc.so
6818
lt_cv_deplibs_check_method=pass_all
6821
lt_cv_deplibs_check_method=pass_all
6827
lt_cv_deplibs_check_method=pass_all
6832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6833
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6837
if test "$build" = "$host"; then
6840
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6843
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6849
file_magic_cmd=$lt_cv_file_magic_cmd
6850
deplibs_check_method=$lt_cv_deplibs_check_method
6851
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6874
if test -n "$ac_tool_prefix"; then
6875
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6876
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6877
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878
$as_echo_n "checking for $ac_word... " >&6; }
6879
if ${ac_cv_prog_DLLTOOL+:} false; then :
6880
$as_echo_n "(cached) " >&6
6882
if test -n "$DLLTOOL"; then
6883
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889
test -z "$as_dir" && as_dir=.
6890
for ac_exec_ext in '' $ac_executable_extensions; do
6891
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6893
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902
DLLTOOL=$ac_cv_prog_DLLTOOL
6903
if test -n "$DLLTOOL"; then
6904
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6905
$as_echo "$DLLTOOL" >&6; }
6907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908
$as_echo "no" >&6; }
6913
if test -z "$ac_cv_prog_DLLTOOL"; then
6914
ac_ct_DLLTOOL=$DLLTOOL
6915
# Extract the first word of "dlltool", so it can be a program name with args.
6916
set dummy dlltool; ac_word=$2
6917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918
$as_echo_n "checking for $ac_word... " >&6; }
6919
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6920
$as_echo_n "(cached) " >&6
6922
if test -n "$ac_ct_DLLTOOL"; then
6923
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929
test -z "$as_dir" && as_dir=.
6930
for ac_exec_ext in '' $ac_executable_extensions; do
6931
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6932
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6933
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6943
if test -n "$ac_ct_DLLTOOL"; then
6944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6945
$as_echo "$ac_ct_DLLTOOL" >&6; }
6947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948
$as_echo "no" >&6; }
6951
if test "x$ac_ct_DLLTOOL" = x; then
6954
case $cross_compiling:$ac_tool_warned in
6956
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6957
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958
ac_tool_warned=yes ;;
6960
DLLTOOL=$ac_ct_DLLTOOL
6963
DLLTOOL="$ac_cv_prog_DLLTOOL"
6966
test -z "$DLLTOOL" && DLLTOOL=dlltool
6977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6978
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6979
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6980
$as_echo_n "(cached) " >&6
6982
lt_cv_sharedlib_from_linklib_cmd='unknown'
6985
cygwin* | mingw* | pw32* | cegcc*)
6986
# two different shell functions defined in ltmain.sh
6987
# decide which to use based on capabilities of $DLLTOOL
6988
case `$DLLTOOL --help 2>&1` in
6989
*--identify-strict*)
6990
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6993
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6998
# fallback: assume linklib IS sharedlib
6999
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7005
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7006
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7007
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7015
if test -n "$ac_tool_prefix"; then
7018
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7019
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021
$as_echo_n "checking for $ac_word... " >&6; }
7022
if ${ac_cv_prog_AR+:} false; then :
7023
$as_echo_n "(cached) " >&6
7025
if test -n "$AR"; then
7026
ac_cv_prog_AR="$AR" # Let the user override the test.
7028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032
test -z "$as_dir" && as_dir=.
7033
for ac_exec_ext in '' $ac_executable_extensions; do
7034
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7036
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046
if test -n "$AR"; then
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7048
$as_echo "$AR" >&6; }
7050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051
$as_echo "no" >&6; }
7055
test -n "$AR" && break
7058
if test -z "$AR"; then
7062
# Extract the first word of "$ac_prog", so it can be a program name with args.
7063
set dummy $ac_prog; ac_word=$2
7064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065
$as_echo_n "checking for $ac_word... " >&6; }
7066
if ${ac_cv_prog_ac_ct_AR+:} false; then :
7067
$as_echo_n "(cached) " >&6
7069
if test -n "$ac_ct_AR"; then
7070
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076
test -z "$as_dir" && as_dir=.
7077
for ac_exec_ext in '' $ac_executable_extensions; do
7078
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079
ac_cv_prog_ac_ct_AR="$ac_prog"
7080
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7090
if test -n "$ac_ct_AR"; then
7091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7092
$as_echo "$ac_ct_AR" >&6; }
7094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095
$as_echo "no" >&6; }
7099
test -n "$ac_ct_AR" && break
7102
if test "x$ac_ct_AR" = x; then
7105
case $cross_compiling:$ac_tool_warned in
7107
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109
ac_tool_warned=yes ;;
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7129
$as_echo_n "checking for archiver @FILE support... " >&6; }
7130
if ${lt_cv_ar_at_file+:} false; then :
7131
$as_echo_n "(cached) " >&6
7134
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135
/* end confdefs.h. */
7145
if ac_fn_cxx_try_compile "$LINENO"; then :
7146
echo conftest.$ac_objext > conftest.lst
7147
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7148
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7149
(eval $lt_ar_try) 2>&5
7151
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152
test $ac_status = 0; }
7153
if test "$ac_status" -eq 0; then
7154
# Ensure the archiver fails upon bogus file names.
7155
rm -f conftest.$ac_objext libconftest.a
7156
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7157
(eval $lt_ar_try) 2>&5
7159
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160
test $ac_status = 0; }
7161
if test "$ac_status" -ne 0; then
7165
rm -f conftest.* libconftest.a
7168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7172
$as_echo "$lt_cv_ar_at_file" >&6; }
7174
if test "x$lt_cv_ar_at_file" = xno; then
7177
archiver_list_spec=$lt_cv_ar_at_file
7186
if test -n "$ac_tool_prefix"; then
7187
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7188
set dummy ${ac_tool_prefix}strip; ac_word=$2
7189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190
$as_echo_n "checking for $ac_word... " >&6; }
7191
if ${ac_cv_prog_STRIP+:} false; then :
7192
$as_echo_n "(cached) " >&6
7194
if test -n "$STRIP"; then
7195
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201
test -z "$as_dir" && as_dir=.
7202
for ac_exec_ext in '' $ac_executable_extensions; do
7203
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7205
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214
STRIP=$ac_cv_prog_STRIP
7215
if test -n "$STRIP"; then
7216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7217
$as_echo "$STRIP" >&6; }
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220
$as_echo "no" >&6; }
7225
if test -z "$ac_cv_prog_STRIP"; then
7227
# Extract the first word of "strip", so it can be a program name with args.
7228
set dummy strip; ac_word=$2
7229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230
$as_echo_n "checking for $ac_word... " >&6; }
7231
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7232
$as_echo_n "(cached) " >&6
7234
if test -n "$ac_ct_STRIP"; then
7235
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241
test -z "$as_dir" && as_dir=.
7242
for ac_exec_ext in '' $ac_executable_extensions; do
7243
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244
ac_cv_prog_ac_ct_STRIP="strip"
7245
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7255
if test -n "$ac_ct_STRIP"; then
7256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7257
$as_echo "$ac_ct_STRIP" >&6; }
7259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260
$as_echo "no" >&6; }
7263
if test "x$ac_ct_STRIP" = x; then
7266
case $cross_compiling:$ac_tool_warned in
7268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270
ac_tool_warned=yes ;;
7275
STRIP="$ac_cv_prog_STRIP"
7278
test -z "$STRIP" && STRIP=:
7285
if test -n "$ac_tool_prefix"; then
7286
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7287
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7289
$as_echo_n "checking for $ac_word... " >&6; }
7290
if ${ac_cv_prog_RANLIB+:} false; then :
7291
$as_echo_n "(cached) " >&6
7293
if test -n "$RANLIB"; then
7294
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300
test -z "$as_dir" && as_dir=.
7301
for ac_exec_ext in '' $ac_executable_extensions; do
7302
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7304
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313
RANLIB=$ac_cv_prog_RANLIB
7314
if test -n "$RANLIB"; then
7315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7316
$as_echo "$RANLIB" >&6; }
7318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319
$as_echo "no" >&6; }
7324
if test -z "$ac_cv_prog_RANLIB"; then
7325
ac_ct_RANLIB=$RANLIB
7326
# Extract the first word of "ranlib", so it can be a program name with args.
7327
set dummy ranlib; ac_word=$2
7328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329
$as_echo_n "checking for $ac_word... " >&6; }
7330
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7331
$as_echo_n "(cached) " >&6
7333
if test -n "$ac_ct_RANLIB"; then
7334
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340
test -z "$as_dir" && as_dir=.
7341
for ac_exec_ext in '' $ac_executable_extensions; do
7342
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343
ac_cv_prog_ac_ct_RANLIB="ranlib"
7344
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7354
if test -n "$ac_ct_RANLIB"; then
7355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7356
$as_echo "$ac_ct_RANLIB" >&6; }
7358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359
$as_echo "no" >&6; }
7362
if test "x$ac_ct_RANLIB" = x; then
7365
case $cross_compiling:$ac_tool_warned in
7367
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369
ac_tool_warned=yes ;;
7371
RANLIB=$ac_ct_RANLIB
7374
RANLIB="$ac_cv_prog_RANLIB"
7377
test -z "$RANLIB" && RANLIB=:
7384
# Determine commands to create old-style static archives.
7385
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7386
old_postinstall_cmds='chmod 644 $oldlib'
7387
old_postuninstall_cmds=
7389
if test -n "$RANLIB"; then
7392
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7395
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7398
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7403
lock_old_archive_extraction=yes ;;
7405
lock_old_archive_extraction=no ;;
7446
# If no C compiler was specified, use CC.
7449
# If no C compiler flags were specified, use CFLAGS.
7450
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7452
# Allow CC to be a program name with arguments.
7456
# Check for command to grab the raw symbol name followed by C symbol from nm.
7457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7458
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7459
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7460
$as_echo_n "(cached) " >&6
7463
# These are sane defaults that work on at least a few old systems.
7464
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7466
# Character class describing NM global symbol codes.
7467
symcode='[BCDEGRST]'
7469
# Regexp to match symbols that can be accessed directly from C.
7470
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7472
# Define system-specific variables.
7477
cygwin* | mingw* | pw32* | cegcc*)
7478
symcode='[ABCDGISTW]'
7481
if test "$host_cpu" = ia64; then
7482
symcode='[ABCDEGRST]'
7486
symcode='[BCDEGRST]'
7489
symcode='[BCDEGQRST]'
7500
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7508
# If we're using GNU nm, then use its standard symbol codes.
7509
case `$NM -V 2>&1` in
7510
*GNU* | *'with BFD'*)
7511
symcode='[ABCDGIRSTW]' ;;
7514
# Transform an extracted symbol line into a proper C declaration.
7515
# Some systems (esp. on ia64) link data and code symbols differently,
7516
# so use this general approach.
7517
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519
# Transform an extracted symbol line into symbol name and symbol address
7520
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7521
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'"
7523
# Handle CRLF in mingw tool chain
7527
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7531
# Try without a prefix underscore, then with it.
7532
for ac_symprfx in "" "_"; do
7534
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7535
symxfrm="\\1 $ac_symprfx\\2 \\2"
7537
# Write the raw and C identifiers.
7538
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7539
# Fake it for dumpbin and say T for any non-static function
7540
# and D for any global variable.
7541
# Also find C++ and __fastcall symbols from MSVC++,
7542
# which start with @ or ?.
7543
lt_cv_sys_global_symbol_pipe="$AWK '"\
7544
" {last_section=section; section=\$ 3};"\
7545
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7546
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7547
" \$ 0!~/External *\|/{next};"\
7548
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7549
" {if(hide[section]) next};"\
7550
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7551
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7552
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7553
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7554
" ' prfx=^$ac_symprfx"
7556
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7558
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7560
# Check to see that the pipe works correctly.
7564
cat > conftest.$ac_ext <<_LT_EOF
7569
void nm_test_func(void);
7570
void nm_test_func(void){}
7574
int main(){nm_test_var='a';nm_test_func();return(0);}
7577
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7578
(eval $ac_compile) 2>&5
7580
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581
test $ac_status = 0; }; then
7582
# Now try to grab the symbols.
7584
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7585
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7587
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588
test $ac_status = 0; } && test -s "$nlist"; then
7589
# Try sorting and uniquifying the output.
7590
if sort "$nlist" | uniq > "$nlist"T; then
7591
mv -f "$nlist"T "$nlist"
7596
# Make sure that we snagged all the symbols we need.
7597
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7598
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7599
cat <<_LT_EOF > conftest.$ac_ext
7600
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7601
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7602
/* DATA imports from DLLs on WIN32 con't be const, because runtime
7603
relocations are performed -- see ld's documentation on pseudo-relocs. */
7604
# define LT_DLSYM_CONST
7605
#elif defined(__osf__)
7606
/* This system does not cope well with relocations in const data. */
7607
# define LT_DLSYM_CONST
7609
# define LT_DLSYM_CONST const
7617
# Now generate the symbol file.
7618
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7620
cat <<_LT_EOF >> conftest.$ac_ext
7622
/* The mapping between symbol names and symbols. */
7623
LT_DLSYM_CONST struct {
7627
lt__PROGRAM__LTX_preloaded_symbols[] =
7629
{ "@PROGRAM@", (void *) 0 },
7631
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7632
cat <<\_LT_EOF >> conftest.$ac_ext
7636
/* This works around a problem in FreeBSD linker */
7637
#ifdef FREEBSD_WORKAROUND
7638
static const void *lt_preloaded_setup() {
7639
return lt__PROGRAM__LTX_preloaded_symbols;
7647
# Now try linking the two files.
7648
mv conftest.$ac_objext conftstm.$ac_objext
7649
lt_globsym_save_LIBS=$LIBS
7650
lt_globsym_save_CFLAGS=$CFLAGS
7651
LIBS="conftstm.$ac_objext"
7652
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7653
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7654
(eval $ac_link) 2>&5
7656
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7660
LIBS=$lt_globsym_save_LIBS
7661
CFLAGS=$lt_globsym_save_CFLAGS
7663
echo "cannot find nm_test_func in $nlist" >&5
7666
echo "cannot find nm_test_var in $nlist" >&5
7669
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7672
echo "$progname: failed program was:" >&5
7673
cat conftest.$ac_ext >&5
7675
rm -rf conftest* conftst*
7677
# Do not use the global_symbol_pipe unless it works.
7678
if test "$pipe_works" = yes; then
7681
lt_cv_sys_global_symbol_pipe=
7687
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7688
lt_cv_sys_global_symbol_to_cdecl=
7690
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7692
$as_echo "failed" >&6; }
7694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7695
$as_echo "ok" >&6; }
7698
# Response file support.
7699
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7700
nm_file_list_spec='@'
7701
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7702
nm_file_list_spec='@'
7731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7732
$as_echo_n "checking for sysroot... " >&6; }
7734
# Check whether --with-sysroot was given.
7735
if test "${with_sysroot+set}" = set; then :
7736
withval=$with_sysroot;
7743
case ${with_sysroot} in #(
7745
if test "$GCC" = yes; then
7746
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7750
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7756
$as_echo "${with_sysroot}" >&6; }
7757
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7762
$as_echo "${lt_sysroot:-no}" >&6; }
7769
# Check whether --enable-libtool-lock was given.
7770
if test "${enable_libtool_lock+set}" = set; then :
7771
enableval=$enable_libtool_lock;
7774
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7776
# Some flags need to be propagated to the compiler or linker for good
7780
# Find out which ABI we are using.
7781
echo 'int i;' > conftest.$ac_ext
7782
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7783
(eval $ac_compile) 2>&5
7785
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786
test $ac_status = 0; }; then
7787
case `/usr/bin/file conftest.$ac_objext` in
7799
# Find out which ABI we are using.
7800
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7801
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802
(eval $ac_compile) 2>&5
7804
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805
test $ac_status = 0; }; then
7806
if test "$lt_cv_prog_gnu_ld" = yes; then
7807
case `/usr/bin/file conftest.$ac_objext` in
7809
LD="${LD-ld} -melf32bsmip"
7812
LD="${LD-ld} -melf32bmipn32"
7815
LD="${LD-ld} -melf64bmip"
7819
case `/usr/bin/file conftest.$ac_objext` in
7835
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7836
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7837
# Find out which ABI we are using.
7838
echo 'int i;' > conftest.$ac_ext
7839
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7840
(eval $ac_compile) 2>&5
7842
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843
test $ac_status = 0; }; then
7844
case `/usr/bin/file conftest.o` in
7847
x86_64-*kfreebsd*-gnu)
7848
LD="${LD-ld} -m elf_i386_fbsd"
7851
case `/usr/bin/file conftest.o` in
7853
LD="${LD-ld} -m elf32_x86_64"
7856
LD="${LD-ld} -m elf_i386"
7861
LD="${LD-ld} -m elf32lppclinux"
7864
LD="${LD-ld} -m elf32ppclinux"
7867
LD="${LD-ld} -m elf_s390"
7870
LD="${LD-ld} -m elf32_sparc"
7876
x86_64-*kfreebsd*-gnu)
7877
LD="${LD-ld} -m elf_x86_64_fbsd"
7880
LD="${LD-ld} -m elf_x86_64"
7883
LD="${LD-ld} -m elf64lppc"
7886
LD="${LD-ld} -m elf64ppc"
7888
s390*-*linux*|s390*-*tpf*)
7889
LD="${LD-ld} -m elf64_s390"
7892
LD="${LD-ld} -m elf64_sparc"
7902
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7903
SAVE_CFLAGS="$CFLAGS"
7904
CFLAGS="$CFLAGS -belf"
7905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7906
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7907
if ${lt_cv_cc_needs_belf+:} false; then :
7908
$as_echo_n "(cached) " >&6
7911
ac_cpp='$CPP $CPPFLAGS'
7912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917
/* end confdefs.h. */
7927
if ac_fn_c_try_link "$LINENO"; then :
7928
lt_cv_cc_needs_belf=yes
7930
lt_cv_cc_needs_belf=no
7932
rm -f core conftest.err conftest.$ac_objext \
7933
conftest$ac_exeext conftest.$ac_ext
7935
ac_cpp='$CPP $CPPFLAGS'
7936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7942
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7943
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7944
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7945
CFLAGS="$SAVE_CFLAGS"
7949
# Find out which ABI we are using.
7950
echo 'int i;' > conftest.$ac_ext
7951
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7952
(eval $ac_compile) 2>&5
7954
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955
test $ac_status = 0; }; then
7956
case `/usr/bin/file conftest.o` in
7958
case $lt_cv_prog_gnu_ld in
7962
LD="${LD-ld} -m elf_x86_64"
7965
LD="${LD-ld} -m elf64_sparc"
7968
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7969
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7974
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7986
need_locks="$enable_libtool_lock"
7988
if test -n "$ac_tool_prefix"; then
7989
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7990
set dummy ${ac_tool_prefix}mt; ac_word=$2
7991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992
$as_echo_n "checking for $ac_word... " >&6; }
7993
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7994
$as_echo_n "(cached) " >&6
7996
if test -n "$MANIFEST_TOOL"; then
7997
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003
test -z "$as_dir" && as_dir=.
8004
for ac_exec_ext in '' $ac_executable_extensions; do
8005
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8007
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8017
if test -n "$MANIFEST_TOOL"; then
8018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8019
$as_echo "$MANIFEST_TOOL" >&6; }
8021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022
$as_echo "no" >&6; }
8027
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8028
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8029
# Extract the first word of "mt", so it can be a program name with args.
8030
set dummy mt; ac_word=$2
8031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032
$as_echo_n "checking for $ac_word... " >&6; }
8033
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8034
$as_echo_n "(cached) " >&6
8036
if test -n "$ac_ct_MANIFEST_TOOL"; then
8037
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043
test -z "$as_dir" && as_dir=.
8044
for ac_exec_ext in '' $ac_executable_extensions; do
8045
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8047
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8057
if test -n "$ac_ct_MANIFEST_TOOL"; then
8058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8059
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062
$as_echo "no" >&6; }
8065
if test "x$ac_ct_MANIFEST_TOOL" = x; then
8068
case $cross_compiling:$ac_tool_warned in
8070
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072
ac_tool_warned=yes ;;
8074
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8077
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8080
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8082
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8083
if ${lt_cv_path_mainfest_tool+:} false; then :
8084
$as_echo_n "(cached) " >&6
8086
lt_cv_path_mainfest_tool=no
8087
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8088
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8089
cat conftest.err >&5
8090
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8091
lt_cv_path_mainfest_tool=yes
8095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8096
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8097
if test "x$lt_cv_path_mainfest_tool" != xyes; then
8107
rhapsody* | darwin*)
8108
if test -n "$ac_tool_prefix"; then
8109
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8110
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112
$as_echo_n "checking for $ac_word... " >&6; }
8113
if ${ac_cv_prog_DSYMUTIL+:} false; then :
8114
$as_echo_n "(cached) " >&6
8116
if test -n "$DSYMUTIL"; then
8117
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123
test -z "$as_dir" && as_dir=.
8124
for ac_exec_ext in '' $ac_executable_extensions; do
8125
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8127
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8137
if test -n "$DSYMUTIL"; then
8138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8139
$as_echo "$DSYMUTIL" >&6; }
8141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142
$as_echo "no" >&6; }
8147
if test -z "$ac_cv_prog_DSYMUTIL"; then
8148
ac_ct_DSYMUTIL=$DSYMUTIL
8149
# Extract the first word of "dsymutil", so it can be a program name with args.
8150
set dummy dsymutil; ac_word=$2
8151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152
$as_echo_n "checking for $ac_word... " >&6; }
8153
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8154
$as_echo_n "(cached) " >&6
8156
if test -n "$ac_ct_DSYMUTIL"; then
8157
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163
test -z "$as_dir" && as_dir=.
8164
for ac_exec_ext in '' $ac_executable_extensions; do
8165
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8167
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8177
if test -n "$ac_ct_DSYMUTIL"; then
8178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8179
$as_echo "$ac_ct_DSYMUTIL" >&6; }
8181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182
$as_echo "no" >&6; }
8185
if test "x$ac_ct_DSYMUTIL" = x; then
8188
case $cross_compiling:$ac_tool_warned in
8190
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8191
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8192
ac_tool_warned=yes ;;
8194
DSYMUTIL=$ac_ct_DSYMUTIL
8197
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8200
if test -n "$ac_tool_prefix"; then
8201
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8202
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204
$as_echo_n "checking for $ac_word... " >&6; }
8205
if ${ac_cv_prog_NMEDIT+:} false; then :
8206
$as_echo_n "(cached) " >&6
8208
if test -n "$NMEDIT"; then
8209
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215
test -z "$as_dir" && as_dir=.
8216
for ac_exec_ext in '' $ac_executable_extensions; do
8217
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8219
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228
NMEDIT=$ac_cv_prog_NMEDIT
8229
if test -n "$NMEDIT"; then
8230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8231
$as_echo "$NMEDIT" >&6; }
8233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234
$as_echo "no" >&6; }
8239
if test -z "$ac_cv_prog_NMEDIT"; then
8240
ac_ct_NMEDIT=$NMEDIT
8241
# Extract the first word of "nmedit", so it can be a program name with args.
8242
set dummy nmedit; ac_word=$2
8243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244
$as_echo_n "checking for $ac_word... " >&6; }
8245
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8246
$as_echo_n "(cached) " >&6
8248
if test -n "$ac_ct_NMEDIT"; then
8249
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255
test -z "$as_dir" && as_dir=.
8256
for ac_exec_ext in '' $ac_executable_extensions; do
8257
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258
ac_cv_prog_ac_ct_NMEDIT="nmedit"
8259
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8269
if test -n "$ac_ct_NMEDIT"; then
8270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8271
$as_echo "$ac_ct_NMEDIT" >&6; }
8273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274
$as_echo "no" >&6; }
8277
if test "x$ac_ct_NMEDIT" = x; then
8280
case $cross_compiling:$ac_tool_warned in
8282
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8283
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8284
ac_tool_warned=yes ;;
8286
NMEDIT=$ac_ct_NMEDIT
8289
NMEDIT="$ac_cv_prog_NMEDIT"
8292
if test -n "$ac_tool_prefix"; then
8293
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8294
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296
$as_echo_n "checking for $ac_word... " >&6; }
8297
if ${ac_cv_prog_LIPO+:} false; then :
8298
$as_echo_n "(cached) " >&6
8300
if test -n "$LIPO"; then
8301
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307
test -z "$as_dir" && as_dir=.
8308
for ac_exec_ext in '' $ac_executable_extensions; do
8309
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8311
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320
LIPO=$ac_cv_prog_LIPO
8321
if test -n "$LIPO"; then
8322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8323
$as_echo "$LIPO" >&6; }
8325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326
$as_echo "no" >&6; }
8331
if test -z "$ac_cv_prog_LIPO"; then
8333
# Extract the first word of "lipo", so it can be a program name with args.
8334
set dummy lipo; ac_word=$2
8335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336
$as_echo_n "checking for $ac_word... " >&6; }
8337
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8338
$as_echo_n "(cached) " >&6
8340
if test -n "$ac_ct_LIPO"; then
8341
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347
test -z "$as_dir" && as_dir=.
8348
for ac_exec_ext in '' $ac_executable_extensions; do
8349
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350
ac_cv_prog_ac_ct_LIPO="lipo"
8351
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8361
if test -n "$ac_ct_LIPO"; then
8362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8363
$as_echo "$ac_ct_LIPO" >&6; }
8365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366
$as_echo "no" >&6; }
8369
if test "x$ac_ct_LIPO" = x; then
8372
case $cross_compiling:$ac_tool_warned in
8374
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8375
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8376
ac_tool_warned=yes ;;
8381
LIPO="$ac_cv_prog_LIPO"
8384
if test -n "$ac_tool_prefix"; then
8385
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8386
set dummy ${ac_tool_prefix}otool; ac_word=$2
8387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388
$as_echo_n "checking for $ac_word... " >&6; }
8389
if ${ac_cv_prog_OTOOL+:} false; then :
8390
$as_echo_n "(cached) " >&6
8392
if test -n "$OTOOL"; then
8393
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399
test -z "$as_dir" && as_dir=.
8400
for ac_exec_ext in '' $ac_executable_extensions; do
8401
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8403
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412
OTOOL=$ac_cv_prog_OTOOL
8413
if test -n "$OTOOL"; then
8414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8415
$as_echo "$OTOOL" >&6; }
8417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418
$as_echo "no" >&6; }
8423
if test -z "$ac_cv_prog_OTOOL"; then
8425
# Extract the first word of "otool", so it can be a program name with args.
8426
set dummy otool; ac_word=$2
8427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428
$as_echo_n "checking for $ac_word... " >&6; }
8429
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8430
$as_echo_n "(cached) " >&6
8432
if test -n "$ac_ct_OTOOL"; then
8433
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439
test -z "$as_dir" && as_dir=.
8440
for ac_exec_ext in '' $ac_executable_extensions; do
8441
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442
ac_cv_prog_ac_ct_OTOOL="otool"
8443
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8453
if test -n "$ac_ct_OTOOL"; then
8454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8455
$as_echo "$ac_ct_OTOOL" >&6; }
8457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458
$as_echo "no" >&6; }
8461
if test "x$ac_ct_OTOOL" = x; then
8464
case $cross_compiling:$ac_tool_warned in
8466
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468
ac_tool_warned=yes ;;
8473
OTOOL="$ac_cv_prog_OTOOL"
8476
if test -n "$ac_tool_prefix"; then
8477
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8478
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480
$as_echo_n "checking for $ac_word... " >&6; }
8481
if ${ac_cv_prog_OTOOL64+:} false; then :
8482
$as_echo_n "(cached) " >&6
8484
if test -n "$OTOOL64"; then
8485
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491
test -z "$as_dir" && as_dir=.
8492
for ac_exec_ext in '' $ac_executable_extensions; do
8493
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8495
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504
OTOOL64=$ac_cv_prog_OTOOL64
8505
if test -n "$OTOOL64"; then
8506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8507
$as_echo "$OTOOL64" >&6; }
8509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510
$as_echo "no" >&6; }
8515
if test -z "$ac_cv_prog_OTOOL64"; then
8516
ac_ct_OTOOL64=$OTOOL64
8517
# Extract the first word of "otool64", so it can be a program name with args.
8518
set dummy otool64; ac_word=$2
8519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520
$as_echo_n "checking for $ac_word... " >&6; }
8521
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8522
$as_echo_n "(cached) " >&6
8524
if test -n "$ac_ct_OTOOL64"; then
8525
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531
test -z "$as_dir" && as_dir=.
8532
for ac_exec_ext in '' $ac_executable_extensions; do
8533
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534
ac_cv_prog_ac_ct_OTOOL64="otool64"
8535
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8545
if test -n "$ac_ct_OTOOL64"; then
8546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8547
$as_echo "$ac_ct_OTOOL64" >&6; }
8549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550
$as_echo "no" >&6; }
8553
if test "x$ac_ct_OTOOL64" = x; then
8556
case $cross_compiling:$ac_tool_warned in
8558
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8559
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8560
ac_tool_warned=yes ;;
8562
OTOOL64=$ac_ct_OTOOL64
8565
OTOOL64="$ac_cv_prog_OTOOL64"
8594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8595
$as_echo_n "checking for -single_module linker flag... " >&6; }
8596
if ${lt_cv_apple_cc_single_mod+:} false; then :
8597
$as_echo_n "(cached) " >&6
8599
lt_cv_apple_cc_single_mod=no
8600
if test -z "${LT_MULTI_MODULE}"; then
8601
# By default we will add the -single_module flag. You can override
8602
# by either setting the environment variable LT_MULTI_MODULE
8603
# non-empty at configure time, or by adding -multi_module to the
8605
rm -rf libconftest.dylib*
8606
echo "int foo(void){return 1;}" > conftest.c
8607
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8608
-dynamiclib -Wl,-single_module conftest.c" >&5
8609
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8610
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8612
# If there is a non-empty error log, and "single_module"
8613
# appears in it, assume the flag caused a linker warning
8614
if test -s conftest.err && $GREP single_module conftest.err; then
8615
cat conftest.err >&5
8616
# Otherwise, if the output was created with a 0 exit code from
8617
# the compiler, it worked.
8618
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8619
lt_cv_apple_cc_single_mod=yes
8621
cat conftest.err >&5
8623
rm -rf libconftest.dylib*
8627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8628
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8631
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8632
if ${lt_cv_ld_exported_symbols_list+:} false; then :
8633
$as_echo_n "(cached) " >&6
8635
lt_cv_ld_exported_symbols_list=no
8636
save_LDFLAGS=$LDFLAGS
8637
echo "_main" > conftest.sym
8638
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640
/* end confdefs.h. */
8650
if ac_fn_c_try_link "$LINENO"; then :
8651
lt_cv_ld_exported_symbols_list=yes
8653
lt_cv_ld_exported_symbols_list=no
8655
rm -f core conftest.err conftest.$ac_objext \
8656
conftest$ac_exeext conftest.$ac_ext
8657
LDFLAGS="$save_LDFLAGS"
8660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8661
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8663
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8664
$as_echo_n "checking for -force_load linker flag... " >&6; }
8665
if ${lt_cv_ld_force_load+:} false; then :
8666
$as_echo_n "(cached) " >&6
8668
lt_cv_ld_force_load=no
8669
cat > conftest.c << _LT_EOF
8670
int forced_loaded() { return 2;}
8672
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8673
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8674
echo "$AR cru libconftest.a conftest.o" >&5
8675
$AR cru libconftest.a conftest.o 2>&5
8676
echo "$RANLIB libconftest.a" >&5
8677
$RANLIB libconftest.a 2>&5
8678
cat > conftest.c << _LT_EOF
8679
int main() { return 0;}
8681
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8682
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8684
if test -s conftest.err && $GREP force_load conftest.err; then
8685
cat conftest.err >&5
8686
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8687
lt_cv_ld_force_load=yes
8689
cat conftest.err >&5
8691
rm -f conftest.err libconftest.a conftest conftest.c
8692
rm -rf conftest.dSYM
8695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8696
$as_echo "$lt_cv_ld_force_load" >&6; }
8698
rhapsody* | darwin1.[012])
8699
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8701
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8702
darwin*) # darwin 5.x on
8703
# if running on 10.5 or later, the deployment target defaults
8704
# to the OS version, if on x86, and 10.4, the deployment
8705
# target defaults to 10.4. Don't you love it?
8706
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8707
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8708
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8710
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8712
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8716
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8717
_lt_dar_single_mod='$single_module'
8719
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8720
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8722
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8724
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8725
_lt_dsymutil='~$DSYMUTIL $lib || :'
8732
for ac_header in dlfcn.h
8734
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8736
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8737
cat >>confdefs.h <<_ACEOF
8738
#define HAVE_DLFCN_H 1
8747
func_stripname_cnf ()
8750
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8751
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8753
} # func_stripname_cnf
8769
# Check whether --enable-shared was given.
8770
if test "${enable_shared+set}" = set; then :
8771
enableval=$enable_shared; p=${PACKAGE-default}
8773
yes) enable_shared=yes ;;
8774
no) enable_shared=no ;;
8777
# Look at the argument we got. We use all the common list separators.
8778
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8779
for pkg in $enableval; do
8781
if test "X$pkg" = "X$p"; then
8800
# Check whether --enable-static was given.
8801
if test "${enable_static+set}" = set; then :
8802
enableval=$enable_static; p=${PACKAGE-default}
8804
yes) enable_static=yes ;;
8805
no) enable_static=no ;;
8808
# Look at the argument we got. We use all the common list separators.
8809
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8810
for pkg in $enableval; do
8812
if test "X$pkg" = "X$p"; then
8832
# Check whether --with-pic was given.
8833
if test "${with_pic+set}" = set; then :
8834
withval=$with_pic; lt_p=${PACKAGE-default}
8836
yes|no) pic_mode=$withval ;;
8839
# Look at the argument we got. We use all the common list separators.
8840
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8841
for lt_pkg in $withval; do
8843
if test "X$lt_pkg" = "X$lt_p"; then
8855
test -z "$pic_mode" && pic_mode=default
8863
# Check whether --enable-fast-install was given.
8864
if test "${enable_fast_install+set}" = set; then :
8865
enableval=$enable_fast_install; p=${PACKAGE-default}
8867
yes) enable_fast_install=yes ;;
8868
no) enable_fast_install=no ;;
8870
enable_fast_install=no
8871
# Look at the argument we got. We use all the common list separators.
8872
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8873
for pkg in $enableval; do
8875
if test "X$pkg" = "X$p"; then
8876
enable_fast_install=yes
8883
enable_fast_install=yes
8896
# This can be used to rebuild libtool when needed
8897
LIBTOOL_DEPS="$ltmain"
8899
# Always use our own libtool.
8900
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8931
test -z "$LN_S" && LN_S="ln -s"
8946
if test -n "${ZSH_VERSION+set}" ; then
8947
setopt NO_GLOB_SUBST
8950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8951
$as_echo_n "checking for objdir... " >&6; }
8952
if ${lt_cv_objdir+:} false; then :
8953
$as_echo_n "(cached) " >&6
8955
rm -f .libs 2>/dev/null
8956
mkdir .libs 2>/dev/null
8957
if test -d .libs; then
8960
# MS-DOS does not allow filenames that begin with a dot.
8963
rmdir .libs 2>/dev/null
8965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8966
$as_echo "$lt_cv_objdir" >&6; }
8967
objdir=$lt_cv_objdir
8973
cat >>confdefs.h <<_ACEOF
8974
#define LT_OBJDIR "$lt_cv_objdir/"
8982
# AIX sometimes has problems with the GCC collect2 program. For some
8983
# reason, if we set the COLLECT_NAMES environment variable, the problems
8984
# vanish in a puff of smoke.
8985
if test "X${COLLECT_NAMES+set}" != Xset; then
8987
export COLLECT_NAMES
8994
can_build_shared=yes
8996
# All known linkers require a `.a' archive for static linking (except MSVC,
8997
# which needs '.lib').
9000
with_gnu_ld="$lt_cv_prog_gnu_ld"
9003
old_CFLAGS="$CFLAGS"
9005
# Set sane defaults for various variables
9006
test -z "$CC" && CC=cc
9007
test -z "$LTCC" && LTCC=$CC
9008
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9009
test -z "$LD" && LD=ld
9010
test -z "$ac_objext" && ac_objext=o
9012
for cc_temp in $compiler""; do
9014
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9015
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9020
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9023
# Only perform the check for file, if the check method requires it
9024
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9025
case $deplibs_check_method in
9027
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9029
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9030
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9031
$as_echo_n "(cached) " >&6
9035
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9038
lt_save_MAGIC_CMD="$MAGIC_CMD"
9039
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9040
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9041
for ac_dir in $ac_dummy; do
9043
test -z "$ac_dir" && ac_dir=.
9044
if test -f $ac_dir/${ac_tool_prefix}file; then
9045
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9046
if test -n "$file_magic_test_file"; then
9047
case $deplibs_check_method in
9049
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9050
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9051
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9052
$EGREP "$file_magic_regex" > /dev/null; then
9057
*** Warning: the command libtool uses to detect shared libraries,
9058
*** $file_magic_cmd, produces output that libtool cannot recognize.
9059
*** The result is that libtool may fail to recognize shared libraries
9060
*** as such. This will affect the creation of libtool libraries that
9061
*** depend on shared libraries, but programs linked with such libtool
9062
*** libraries will work regardless of this problem. Nevertheless, you
9063
*** may want to report the problem to your system manager and/or to
9064
*** bug-libtool@gnu.org
9074
MAGIC_CMD="$lt_save_MAGIC_CMD"
9079
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9080
if test -n "$MAGIC_CMD"; then
9081
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9082
$as_echo "$MAGIC_CMD" >&6; }
9084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085
$as_echo "no" >&6; }
9092
if test -z "$lt_cv_path_MAGIC_CMD"; then
9093
if test -n "$ac_tool_prefix"; then
9094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9095
$as_echo_n "checking for file... " >&6; }
9096
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9097
$as_echo_n "(cached) " >&6
9101
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9104
lt_save_MAGIC_CMD="$MAGIC_CMD"
9105
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9106
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9107
for ac_dir in $ac_dummy; do
9109
test -z "$ac_dir" && ac_dir=.
9110
if test -f $ac_dir/file; then
9111
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9112
if test -n "$file_magic_test_file"; then
9113
case $deplibs_check_method in
9115
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9116
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9117
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9118
$EGREP "$file_magic_regex" > /dev/null; then
9123
*** Warning: the command libtool uses to detect shared libraries,
9124
*** $file_magic_cmd, produces output that libtool cannot recognize.
9125
*** The result is that libtool may fail to recognize shared libraries
9126
*** as such. This will affect the creation of libtool libraries that
9127
*** depend on shared libraries, but programs linked with such libtool
9128
*** libraries will work regardless of this problem. Nevertheless, you
9129
*** may want to report the problem to your system manager and/or to
9130
*** bug-libtool@gnu.org
9140
MAGIC_CMD="$lt_save_MAGIC_CMD"
9145
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9146
if test -n "$MAGIC_CMD"; then
9147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9148
$as_echo "$MAGIC_CMD" >&6; }
9150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151
$as_echo "no" >&6; }
9164
# Use C for the default configuration in the libtool script
9168
ac_cpp='$CPP $CPPFLAGS'
9169
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9170
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9171
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9174
# Source file extension for C test sources.
9177
# Object file extension for compiled C test sources.
9181
# Code to be used in simple compile tests
9182
lt_simple_compile_test_code="int some_variable = 0;"
9184
# Code to be used in simple link tests
9185
lt_simple_link_test_code='int main(){return(0);}'
9193
# If no C compiler was specified, use CC.
9196
# If no C compiler flags were specified, use CFLAGS.
9197
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9199
# Allow CC to be a program name with arguments.
9202
# Save the default compiler, since it gets overwritten when the other
9203
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9204
compiler_DEFAULT=$CC
9206
# save warnings/boilerplate of simple test code
9207
ac_outfile=conftest.$ac_objext
9208
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9209
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9210
_lt_compiler_boilerplate=`cat conftest.err`
9213
ac_outfile=conftest.$ac_objext
9214
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9215
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9216
_lt_linker_boilerplate=`cat conftest.err`
9220
if test -n "$compiler"; then
9222
lt_prog_compiler_no_builtin_flag=
9224
if test "$GCC" = yes; then
9225
case $cc_basename in
9227
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9229
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9233
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9234
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9235
$as_echo_n "(cached) " >&6
9237
lt_cv_prog_compiler_rtti_exceptions=no
9238
ac_outfile=conftest.$ac_objext
9239
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9240
lt_compiler_flag="-fno-rtti -fno-exceptions"
9241
# Insert the option either (1) after the last *FLAGS variable, or
9242
# (2) before a word containing "conftest.", or (3) at the end.
9243
# Note that $ac_compile itself does not contain backslashes and begins
9244
# with a dollar sign (not a hyphen), so the echo should work correctly.
9245
# The option is referenced via a variable to avoid confusing sed.
9246
lt_compile=`echo "$ac_compile" | $SED \
9247
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9248
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9249
-e 's:$: $lt_compiler_flag:'`
9250
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9251
(eval "$lt_compile" 2>conftest.err)
9253
cat conftest.err >&5
9254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255
if (exit $ac_status) && test -s "$ac_outfile"; then
9256
# The compiler can only warn and ignore the option if not recognized
9257
# So say no if there are warnings other than the usual output.
9258
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9259
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9260
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9261
lt_cv_prog_compiler_rtti_exceptions=yes
9267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9268
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9270
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9271
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9283
lt_prog_compiler_wl=
9284
lt_prog_compiler_pic=
9285
lt_prog_compiler_static=
9288
if test "$GCC" = yes; then
9289
lt_prog_compiler_wl='-Wl,'
9290
lt_prog_compiler_static='-static'
9294
# All AIX code is PIC.
9295
if test "$host_cpu" = ia64; then
9296
# AIX 5 now supports IA64 processor
9297
lt_prog_compiler_static='-Bstatic'
9304
# see comment about AmigaOS4 .so support
9305
lt_prog_compiler_pic='-fPIC'
9308
# FIXME: we need at least 68020 code to build shared libraries, but
9309
# adding the `-m68020' flag to GCC prevents building anything better,
9311
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9316
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9317
# PIC is the default for these OSes.
9320
mingw* | cygwin* | pw32* | os2* | cegcc*)
9321
# This hack is so that the source file can tell whether it is being
9322
# built for inclusion in a dll (and should export symbols for example).
9323
# Although the cygwin gcc ignores -fPIC, still need this for old-style
9324
# (--disable-auto-import) libraries
9325
lt_prog_compiler_pic='-DDLL_EXPORT'
9328
darwin* | rhapsody*)
9329
# PIC is the default on this platform
9330
# Common symbols not allowed in MH_DYLIB files
9331
lt_prog_compiler_pic='-fno-common'
9335
# PIC is the default for Haiku.
9336
# The "-static" flag exists, but is broken.
9337
lt_prog_compiler_static=
9341
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9342
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9343
# sets the default TLS model and affects inlining.
9349
lt_prog_compiler_pic='-fPIC'
9355
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
9356
# Instead, we relocate shared libraries at runtime.
9360
# Just because we use GCC doesn't mean we suddenly get shared libraries
9361
# on systems that don't support them.
9362
lt_prog_compiler_can_build_shared=no
9367
# QNX uses GNU C++, but need to define -shared option too, otherwise
9369
lt_prog_compiler_pic='-fPIC -shared'
9373
if test -d /usr/nec; then
9374
lt_prog_compiler_pic=-Kconform_pic
9379
lt_prog_compiler_pic='-fPIC'
9383
case $cc_basename in
9384
nvcc*) # Cuda Compiler Driver 2.2
9385
lt_prog_compiler_wl='-Xlinker '
9386
if test -n "$lt_prog_compiler_pic"; then
9387
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9392
# PORTME Check for flag to pass linker flags through the system compiler.
9395
lt_prog_compiler_wl='-Wl,'
9396
if test "$host_cpu" = ia64; then
9397
# AIX 5 now supports IA64 processor
9398
lt_prog_compiler_static='-Bstatic'
9400
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9404
mingw* | cygwin* | pw32* | os2* | cegcc*)
9405
# This hack is so that the source file can tell whether it is being
9406
# built for inclusion in a dll (and should export symbols for example).
9407
lt_prog_compiler_pic='-DDLL_EXPORT'
9410
hpux9* | hpux10* | hpux11*)
9411
lt_prog_compiler_wl='-Wl,'
9412
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9419
lt_prog_compiler_pic='+Z'
9422
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9423
lt_prog_compiler_static='${wl}-a ${wl}archive'
9426
irix5* | irix6* | nonstopux*)
9427
lt_prog_compiler_wl='-Wl,'
9428
# PIC (with -KPIC) is the default.
9429
lt_prog_compiler_static='-non_shared'
9432
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9433
case $cc_basename in
9434
# old Intel for x86_64 which still supported -KPIC.
9436
lt_prog_compiler_wl='-Wl,'
9437
lt_prog_compiler_pic='-KPIC'
9438
lt_prog_compiler_static='-static'
9440
# icc used to be incompatible with GCC.
9441
# ICC 10 doesn't accept -KPIC any more.
9443
lt_prog_compiler_wl='-Wl,'
9444
lt_prog_compiler_pic='-fPIC'
9445
lt_prog_compiler_static='-static'
9447
# Lahey Fortran 8.1.
9449
lt_prog_compiler_wl='-Wl,'
9450
lt_prog_compiler_pic='--shared'
9451
lt_prog_compiler_static='--static'
9454
# NAG Fortran compiler
9455
lt_prog_compiler_wl='-Wl,-Wl,,'
9456
lt_prog_compiler_pic='-PIC'
9457
lt_prog_compiler_static='-Bstatic'
9459
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9460
# Portland Group compilers (*not* the Pentium gcc compiler,
9461
# which looks to be a dead project)
9462
lt_prog_compiler_wl='-Wl,'
9463
lt_prog_compiler_pic='-fpic'
9464
lt_prog_compiler_static='-Bstatic'
9467
lt_prog_compiler_wl='-Wl,'
9468
# All Alpha code is PIC.
9469
lt_prog_compiler_static='-non_shared'
9471
xl* | bgxl* | bgf* | mpixl*)
9472
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9473
lt_prog_compiler_wl='-Wl,'
9474
lt_prog_compiler_pic='-qpic'
9475
lt_prog_compiler_static='-qstaticlink'
9478
case `$CC -V 2>&1 | sed 5q` in
9479
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9480
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9481
lt_prog_compiler_pic='-KPIC'
9482
lt_prog_compiler_static='-Bstatic'
9483
lt_prog_compiler_wl=''
9485
*Sun\ F* | *Sun*Fortran*)
9486
lt_prog_compiler_pic='-KPIC'
9487
lt_prog_compiler_static='-Bstatic'
9488
lt_prog_compiler_wl='-Qoption ld '
9492
lt_prog_compiler_pic='-KPIC'
9493
lt_prog_compiler_static='-Bstatic'
9494
lt_prog_compiler_wl='-Wl,'
9496
*Intel*\ [CF]*Compiler*)
9497
lt_prog_compiler_wl='-Wl,'
9498
lt_prog_compiler_pic='-fPIC'
9499
lt_prog_compiler_static='-static'
9502
lt_prog_compiler_wl='-Wl,'
9503
lt_prog_compiler_pic='-fpic'
9504
lt_prog_compiler_static='-Bstatic'
9512
lt_prog_compiler_pic='-KPIC'
9513
lt_prog_compiler_static='-Bstatic'
9517
# QNX uses GNU C++, but need to define -shared option too, otherwise
9519
lt_prog_compiler_pic='-fPIC -shared'
9522
osf3* | osf4* | osf5*)
9523
lt_prog_compiler_wl='-Wl,'
9524
# All OSF/1 code is PIC.
9525
lt_prog_compiler_static='-non_shared'
9529
lt_prog_compiler_static='-non_shared'
9533
lt_prog_compiler_pic='-KPIC'
9534
lt_prog_compiler_static='-Bstatic'
9535
case $cc_basename in
9536
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9537
lt_prog_compiler_wl='-Qoption ld ';;
9539
lt_prog_compiler_wl='-Wl,';;
9544
lt_prog_compiler_wl='-Qoption ld '
9545
lt_prog_compiler_pic='-PIC'
9546
lt_prog_compiler_static='-Bstatic'
9549
sysv4 | sysv4.2uw2* | sysv4.3*)
9550
lt_prog_compiler_wl='-Wl,'
9551
lt_prog_compiler_pic='-KPIC'
9552
lt_prog_compiler_static='-Bstatic'
9556
if test -d /usr/nec ;then
9557
lt_prog_compiler_pic='-Kconform_pic'
9558
lt_prog_compiler_static='-Bstatic'
9562
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9563
lt_prog_compiler_wl='-Wl,'
9564
lt_prog_compiler_pic='-KPIC'
9565
lt_prog_compiler_static='-Bstatic'
9569
lt_prog_compiler_wl='-Wl,'
9570
lt_prog_compiler_can_build_shared=no
9574
lt_prog_compiler_pic='-pic'
9575
lt_prog_compiler_static='-Bstatic'
9579
lt_prog_compiler_can_build_shared=no
9585
# For platforms which do not support PIC, -DPIC is meaningless:
9587
lt_prog_compiler_pic=
9590
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9595
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9596
if ${lt_cv_prog_compiler_pic+:} false; then :
9597
$as_echo_n "(cached) " >&6
9599
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9602
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9603
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9606
# Check to make sure the PIC flag actually works.
9608
if test -n "$lt_prog_compiler_pic"; then
9609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9610
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9611
if ${lt_cv_prog_compiler_pic_works+:} false; then :
9612
$as_echo_n "(cached) " >&6
9614
lt_cv_prog_compiler_pic_works=no
9615
ac_outfile=conftest.$ac_objext
9616
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9617
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9618
# Insert the option either (1) after the last *FLAGS variable, or
9619
# (2) before a word containing "conftest.", or (3) at the end.
9620
# Note that $ac_compile itself does not contain backslashes and begins
9621
# with a dollar sign (not a hyphen), so the echo should work correctly.
9622
# The option is referenced via a variable to avoid confusing sed.
9623
lt_compile=`echo "$ac_compile" | $SED \
9624
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9625
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9626
-e 's:$: $lt_compiler_flag:'`
9627
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9628
(eval "$lt_compile" 2>conftest.err)
9630
cat conftest.err >&5
9631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632
if (exit $ac_status) && test -s "$ac_outfile"; then
9633
# The compiler can only warn and ignore the option if not recognized
9634
# So say no if there are warnings other than the usual output.
9635
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9636
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9637
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9638
lt_cv_prog_compiler_pic_works=yes
9644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9645
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9647
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9648
case $lt_prog_compiler_pic in
9650
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9653
lt_prog_compiler_pic=
9654
lt_prog_compiler_can_build_shared=no
9670
# Check to make sure the static flag actually works.
9672
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9674
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9675
if ${lt_cv_prog_compiler_static_works+:} false; then :
9676
$as_echo_n "(cached) " >&6
9678
lt_cv_prog_compiler_static_works=no
9679
save_LDFLAGS="$LDFLAGS"
9680
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9681
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9682
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9683
# The linker can only warn and ignore the option if not recognized
9684
# So say no if there are warnings
9685
if test -s conftest.err; then
9686
# Append any errors to the config.log.
9687
cat conftest.err 1>&5
9688
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9689
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9690
if diff conftest.exp conftest.er2 >/dev/null; then
9691
lt_cv_prog_compiler_static_works=yes
9694
lt_cv_prog_compiler_static_works=yes
9698
LDFLAGS="$save_LDFLAGS"
9701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9702
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9704
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9707
lt_prog_compiler_static=
9716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9717
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9718
if ${lt_cv_prog_compiler_c_o+:} false; then :
9719
$as_echo_n "(cached) " >&6
9721
lt_cv_prog_compiler_c_o=no
9722
$RM -r conftest 2>/dev/null
9726
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9728
lt_compiler_flag="-o out/conftest2.$ac_objext"
9729
# Insert the option either (1) after the last *FLAGS variable, or
9730
# (2) before a word containing "conftest.", or (3) at the end.
9731
# Note that $ac_compile itself does not contain backslashes and begins
9732
# with a dollar sign (not a hyphen), so the echo should work correctly.
9733
lt_compile=`echo "$ac_compile" | $SED \
9734
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9735
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9736
-e 's:$: $lt_compiler_flag:'`
9737
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9738
(eval "$lt_compile" 2>out/conftest.err)
9740
cat out/conftest.err >&5
9741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9744
# The compiler can only warn and ignore the option if not recognized
9745
# So say no if there are warnings
9746
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9747
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9748
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9749
lt_cv_prog_compiler_c_o=yes
9754
# SGI C++ compiler will create directory out/ii_files/ for
9755
# template instantiation
9756
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9757
$RM out/* && rmdir out
9763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9764
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9771
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9772
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9773
if ${lt_cv_prog_compiler_c_o+:} false; then :
9774
$as_echo_n "(cached) " >&6
9776
lt_cv_prog_compiler_c_o=no
9777
$RM -r conftest 2>/dev/null
9781
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9783
lt_compiler_flag="-o out/conftest2.$ac_objext"
9784
# Insert the option either (1) after the last *FLAGS variable, or
9785
# (2) before a word containing "conftest.", or (3) at the end.
9786
# Note that $ac_compile itself does not contain backslashes and begins
9787
# with a dollar sign (not a hyphen), so the echo should work correctly.
9788
lt_compile=`echo "$ac_compile" | $SED \
9789
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9790
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9791
-e 's:$: $lt_compiler_flag:'`
9792
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9793
(eval "$lt_compile" 2>out/conftest.err)
9795
cat out/conftest.err >&5
9796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9799
# The compiler can only warn and ignore the option if not recognized
9800
# So say no if there are warnings
9801
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9802
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9803
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9804
lt_cv_prog_compiler_c_o=yes
9809
# SGI C++ compiler will create directory out/ii_files/ for
9810
# template instantiation
9811
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9812
$RM out/* && rmdir out
9818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9819
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9824
hard_links="nottested"
9825
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9826
# do not overwrite the value of need_locks provided by the user
9827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9828
$as_echo_n "checking if we can lock with hard links... " >&6; }
9831
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9833
ln conftest.a conftest.b 2>&5 || hard_links=no
9834
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9836
$as_echo "$hard_links" >&6; }
9837
if test "$hard_links" = no; then
9838
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9839
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9852
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9855
allow_undefined_flag=
9856
always_export_symbols=no
9858
archive_expsym_cmds=
9859
compiler_needs_object=no
9860
enable_shared_with_static_runtimes=no
9861
export_dynamic_flag_spec=
9862
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9863
hardcode_automatic=no
9865
hardcode_direct_absolute=no
9866
hardcode_libdir_flag_spec=
9867
hardcode_libdir_separator=
9869
hardcode_shlibpath_var=unsupported
9871
link_all_deplibs=unknown
9874
old_archive_from_new_cmds=
9875
old_archive_from_expsyms_cmds=
9876
thread_safe_flag_spec=
9877
whole_archive_flag_spec=
9878
# include_expsyms should be a list of space-separated symbols to be *always*
9879
# included in the symbol list
9881
# exclude_expsyms can be an extended regexp of symbols to exclude
9882
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9883
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9884
# as well as any symbol that contains `d'.
9885
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9886
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9887
# platforms (ab)use it in PIC code, but their linkers get confused if
9888
# the symbol is explicitly referenced. Since portable code cannot
9889
# rely on this symbol name, it's probably fine to never include it in
9890
# preloaded symbol tables.
9891
# Exclude shared library initialization/finalization symbols.
9892
extract_expsyms_cmds=
9895
cygwin* | mingw* | pw32* | cegcc*)
9896
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9897
# When not using gcc, we currently assume that we are using
9898
# Microsoft Visual C++.
9899
if test "$GCC" != yes; then
9904
# we just hope/assume this is gcc and not c89 (= MSVC++)
9910
linux* | k*bsd*-gnu | gnu*)
9917
# On some targets, GNU ld is compatible enough with the native linker
9918
# that we're better off using the native interface for both.
9919
lt_use_gnu_ld_interface=no
9920
if test "$with_gnu_ld" = yes; then
9923
# The AIX port of GNU ld has always aspired to compatibility
9924
# with the native linker. However, as the warning in the GNU ld
9925
# block says, versions before 2.19.5* couldn't really create working
9926
# shared libraries, regardless of the interface used.
9927
case `$LD -v 2>&1` in
9928
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9929
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9930
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9932
lt_use_gnu_ld_interface=yes
9937
lt_use_gnu_ld_interface=yes
9942
if test "$lt_use_gnu_ld_interface" = yes; then
9943
# If archive_cmds runs LD, not CC, wlarc should be empty
9946
# Set some defaults for GNU ld with shared library support. These
9947
# are reset later if shared libraries are not supported. Putting them
9948
# here allows them to be overridden if necessary.
9949
runpath_var=LD_RUN_PATH
9950
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9951
export_dynamic_flag_spec='${wl}--export-dynamic'
9952
# ancient GNU ld didn't support --whole-archive et. al.
9953
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9954
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9956
whole_archive_flag_spec=
9958
supports_anon_versioning=no
9959
case `$LD -v 2>&1` in
9960
*GNU\ gold*) supports_anon_versioning=yes ;;
9961
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9962
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9963
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9964
*\ 2.11.*) ;; # other 2.11 versions
9965
*) supports_anon_versioning=yes ;;
9968
# See if GNU ld supports shared libraries.
9971
# On AIX/PPC, the GNU linker is very broken
9972
if test "$host_cpu" != ia64; then
9976
*** Warning: the GNU linker, at least up to release 2.19, is reported
9977
*** to be unable to reliably create shared libraries on AIX.
9978
*** Therefore, libtool is disabling shared libraries support. If you
9979
*** really care for shared libraries, you may want to install binutils
9980
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9981
*** You will then need to restart the configuration process.
9990
# see comment about AmigaOS4 .so support
9991
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992
archive_expsym_cmds=''
9995
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)'
9996
hardcode_libdir_flag_spec='-L$libdir'
9997
hardcode_minus_L=yes
10003
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10004
allow_undefined_flag=unsupported
10005
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10006
# support --undefined. This deserves some investigation. FIXME
10007
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013
cygwin* | mingw* | pw32* | cegcc*)
10014
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10015
# as there is no search path for DLLs.
10016
hardcode_libdir_flag_spec='-L$libdir'
10017
export_dynamic_flag_spec='${wl}--export-all-symbols'
10018
allow_undefined_flag=unsupported
10019
always_export_symbols=no
10020
enable_shared_with_static_runtimes=yes
10021
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'
10022
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10024
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10025
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10026
# If the export-symbols file already is a .def file (1st line
10027
# is EXPORTS), use it as is; otherwise, prepend...
10028
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10029
cp $export_symbols $output_objdir/$soname.def;
10031
echo EXPORTS > $output_objdir/$soname.def;
10032
cat $export_symbols >> $output_objdir/$soname.def;
10034
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10041
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10042
link_all_deplibs=yes
10047
hardcode_shlibpath_var=no
10048
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10049
export_dynamic_flag_spec='${wl}-E'
10050
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10051
# Instead, shared libraries are loaded at an image base (0x10000000 by
10052
# default) and relocated if they conflict, which is a slow very memory
10053
# consuming and fragmenting process. To avoid this, we pick a random,
10054
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10055
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10056
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10057
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'
10060
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10062
if test "$host_os" = linux-dietlibc; then
10063
case $cc_basename in
10064
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10067
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10068
&& test "$tmp_diet" = no
10070
tmp_addflag=' $pic_flag'
10071
tmp_sharedflag='-shared'
10072
case $cc_basename,$host_cpu in
10073
pgcc*) # Portland Group C compiler
10074
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'
10075
tmp_addflag=' $pic_flag'
10077
pgf77* | pgf90* | pgf95* | pgfortran*)
10078
# Portland Group f77 and f90 compilers
10079
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'
10080
tmp_addflag=' $pic_flag -Mnomain' ;;
10081
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10082
tmp_addflag=' -i_dynamic' ;;
10083
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10084
tmp_addflag=' -i_dynamic -nofor_main' ;;
10085
ifc* | ifort*) # Intel Fortran compiler
10086
tmp_addflag=' -nofor_main' ;;
10087
lf95*) # Lahey Fortran 8.1
10088
whole_archive_flag_spec=
10089
tmp_sharedflag='--shared' ;;
10090
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10091
tmp_sharedflag='-qmkshrobj'
10093
nvcc*) # Cuda Compiler Driver 2.2
10094
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'
10095
compiler_needs_object=yes
10098
case `$CC -V 2>&1 | sed 5q` in
10099
*Sun\ C*) # Sun C 5.9
10100
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'
10101
compiler_needs_object=yes
10102
tmp_sharedflag='-G' ;;
10103
*Sun\ F*) # Sun Fortran 8.3
10104
tmp_sharedflag='-G' ;;
10106
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10108
if test "x$supports_anon_versioning" = xyes; then
10109
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10110
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10111
echo "local: *; };" >> $output_objdir/$libname.ver~
10112
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10115
case $cc_basename in
10116
xlf* | bgf* | bgxlf* | mpixlf*)
10117
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10118
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10119
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10121
if test "x$supports_anon_versioning" = xyes; then
10122
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10123
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10124
echo "local: *; };" >> $output_objdir/$libname.ver~
10125
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10134
netbsd* | netbsdelf*-gnu)
10135
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10136
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10139
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10140
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10145
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10149
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10150
*** create shared libraries on Solaris systems. Therefore, libtool
10151
*** is disabling shared libraries support. We urge you to upgrade GNU
10152
*** binutils to release 2.9.1 or newer. Another option is to modify
10153
*** your PATH or compiler configuration so that the native linker is
10154
*** used, and then restart.
10157
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10158
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10165
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10166
case `$LD -v 2>&1` in
10167
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10171
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10172
*** reliably create shared libraries on SCO systems. Therefore, libtool
10173
*** is disabling shared libraries support. We urge you to upgrade GNU
10174
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10175
*** your PATH or compiler configuration so that the native linker is
10176
*** used, and then restart.
10181
# For security reasons, it is highly recommended that you always
10182
# use absolute paths for naming shared libraries, and exclude the
10183
# DT_RUNPATH tag from executables and libraries. But doing so
10184
# requires that you compile everything twice, which is a pain.
10185
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10187
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10188
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10197
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10199
hardcode_direct=yes
10200
hardcode_shlibpath_var=no
10204
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10205
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10213
if test "$ld_shlibs" = no; then
10215
hardcode_libdir_flag_spec=
10216
export_dynamic_flag_spec=
10217
whole_archive_flag_spec=
10220
# PORTME fill in a description of your system's linker (not GNU ld)
10223
allow_undefined_flag=unsupported
10224
always_export_symbols=yes
10225
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'
10226
# Note: this linker hardcodes the directories in LIBPATH if there
10227
# are no directories specified by -L.
10228
hardcode_minus_L=yes
10229
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10230
# Neither direct hardcoding nor static linking is supported with a
10232
hardcode_direct=unsupported
10237
if test "$host_cpu" = ia64; then
10238
# On IA64, the linker does run time linking by default, so we don't
10239
# have to do anything special.
10240
aix_use_runtimelinking=no
10241
exp_sym_flag='-Bexport'
10244
# If we're using GNU nm, then we don't want the "-C" option.
10245
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10246
# Also, AIX nm treats weak defined symbols like other global
10247
# defined symbols, whereas GNU nm marks them as "W".
10248
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10249
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'
10251
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'
10253
aix_use_runtimelinking=no
10255
# Test if we are trying to use run time linking or normal
10256
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10257
# need to do runtime linking.
10258
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10259
for ld_flag in $LDFLAGS; do
10260
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10261
aix_use_runtimelinking=yes
10268
exp_sym_flag='-bexport'
10269
no_entry_flag='-bnoentry'
10272
# When large executables or shared objects are built, AIX ld can
10273
# have problems creating the table of contents. If linking a library
10274
# or program results in "error TOC overflow" add -mminimal-toc to
10275
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10276
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10279
hardcode_direct=yes
10280
hardcode_direct_absolute=yes
10281
hardcode_libdir_separator=':'
10282
link_all_deplibs=yes
10283
file_list_spec='${wl}-f,'
10285
if test "$GCC" = yes; then
10286
case $host_os in aix4.[012]|aix4.[012].*)
10287
# We only want to do this on AIX 4.2 and lower, the check
10288
# below for broken collect2 doesn't work under 4.3+
10289
collect2name=`${CC} -print-prog-name=collect2`
10290
if test -f "$collect2name" &&
10291
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10293
# We have reworked collect2
10296
# We have old collect2
10297
hardcode_direct=unsupported
10298
# It fails to find uninstalled libraries when the uninstalled
10299
# path is not listed in the libpath. Setting hardcode_minus_L
10300
# to unsupported forces relinking
10301
hardcode_minus_L=yes
10302
hardcode_libdir_flag_spec='-L$libdir'
10303
hardcode_libdir_separator=
10307
shared_flag='-shared'
10308
if test "$aix_use_runtimelinking" = yes; then
10309
shared_flag="$shared_flag "'${wl}-G'
10311
link_all_deplibs=no
10314
if test "$host_cpu" = ia64; then
10315
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10316
# chokes on -Wl,-G. The following line is correct:
10319
if test "$aix_use_runtimelinking" = yes; then
10320
shared_flag='${wl}-G'
10322
shared_flag='${wl}-bM:SRE'
10327
export_dynamic_flag_spec='${wl}-bexpall'
10328
# It seems that -bexpall does not export symbols beginning with
10329
# underscore (_), so it is better to generate a list of symbols to export.
10330
always_export_symbols=yes
10331
if test "$aix_use_runtimelinking" = yes; then
10332
# Warning - without using the other runtime loading flags (-brtl),
10333
# -berok will link without error, but may produce a broken library.
10334
allow_undefined_flag='-berok'
10335
# Determine the default libpath from the value encoded in an
10336
# empty executable.
10337
if test "${lt_cv_aix_libpath+set}" = set; then
10338
aix_libpath=$lt_cv_aix_libpath
10340
if ${lt_cv_aix_libpath_+:} false; then :
10341
$as_echo_n "(cached) " >&6
10343
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344
/* end confdefs.h. */
10354
if ac_fn_c_try_link "$LINENO"; then :
10356
lt_aix_libpath_sed='
10357
/Import File Strings/,/^$/ {
10359
s/^0 *\([^ ]*\) *$/\1/
10363
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10364
# Check for a 64-bit object if we didn't find anything.
10365
if test -z "$lt_cv_aix_libpath_"; then
10366
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10369
rm -f core conftest.err conftest.$ac_objext \
10370
conftest$ac_exeext conftest.$ac_ext
10371
if test -z "$lt_cv_aix_libpath_"; then
10372
lt_cv_aix_libpath_="/usr/lib:/lib"
10377
aix_libpath=$lt_cv_aix_libpath_
10380
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10381
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"
10383
if test "$host_cpu" = ia64; then
10384
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10385
allow_undefined_flag="-z nodefs"
10386
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"
10388
# Determine the default libpath from the value encoded in an
10389
# empty executable.
10390
if test "${lt_cv_aix_libpath+set}" = set; then
10391
aix_libpath=$lt_cv_aix_libpath
10393
if ${lt_cv_aix_libpath_+:} false; then :
10394
$as_echo_n "(cached) " >&6
10396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397
/* end confdefs.h. */
10407
if ac_fn_c_try_link "$LINENO"; then :
10409
lt_aix_libpath_sed='
10410
/Import File Strings/,/^$/ {
10412
s/^0 *\([^ ]*\) *$/\1/
10416
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10417
# Check for a 64-bit object if we didn't find anything.
10418
if test -z "$lt_cv_aix_libpath_"; then
10419
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422
rm -f core conftest.err conftest.$ac_objext \
10423
conftest$ac_exeext conftest.$ac_ext
10424
if test -z "$lt_cv_aix_libpath_"; then
10425
lt_cv_aix_libpath_="/usr/lib:/lib"
10430
aix_libpath=$lt_cv_aix_libpath_
10433
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10434
# Warning - without using the other run time loading flags,
10435
# -berok will link without error, but may produce a broken library.
10436
no_undefined_flag=' ${wl}-bernotok'
10437
allow_undefined_flag=' ${wl}-berok'
10438
if test "$with_gnu_ld" = yes; then
10439
# We only use this code for GNU lds that support --whole-archive.
10440
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10442
# Exported symbols can be pulled into shared objects from archives
10443
whole_archive_flag_spec='$convenience'
10445
archive_cmds_need_lc=yes
10446
# This is similar to how AIX traditionally builds its shared libraries.
10447
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'
10455
# see comment about AmigaOS4 .so support
10456
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10457
archive_expsym_cmds=''
10460
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)'
10461
hardcode_libdir_flag_spec='-L$libdir'
10462
hardcode_minus_L=yes
10468
export_dynamic_flag_spec=-rdynamic
10471
cygwin* | mingw* | pw32* | cegcc*)
10472
# When not using gcc, we currently assume that we are using
10473
# Microsoft Visual C++.
10474
# hardcode_libdir_flag_spec is actually meaningless, as there is
10475
# no search path for DLLs.
10476
case $cc_basename in
10479
hardcode_libdir_flag_spec=' '
10480
allow_undefined_flag=unsupported
10481
always_export_symbols=yes
10483
# Tell ltmain to make .lib files, not .a files.
10485
# Tell ltmain to make .dll files, not .so files.
10487
# FIXME: Setting linknames here is a bad hack.
10488
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10489
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10490
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10492
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10494
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10496
# The linker will not automatically build a static lib if we build a DLL.
10497
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10498
enable_shared_with_static_runtimes=yes
10499
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10500
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10502
old_postinstall_cmds='chmod 644 $oldlib'
10503
postlink_cmds='lt_outputfile="@OUTPUT@"~
10504
lt_tool_outputfile="@TOOL_OUTPUT@"~
10505
case $lt_outputfile in
10508
lt_outputfile="$lt_outputfile.exe"
10509
lt_tool_outputfile="$lt_tool_outputfile.exe"
10512
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10513
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10514
$RM "$lt_outputfile.manifest";
10518
# Assume MSVC wrapper
10519
hardcode_libdir_flag_spec=' '
10520
allow_undefined_flag=unsupported
10521
# Tell ltmain to make .lib files, not .a files.
10523
# Tell ltmain to make .dll files, not .so files.
10525
# FIXME: Setting linknames here is a bad hack.
10526
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10527
# The linker will automatically build a .lib file if we build a DLL.
10528
old_archive_from_new_cmds='true'
10529
# FIXME: Should let the user specify the lib program.
10530
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10531
enable_shared_with_static_runtimes=yes
10536
darwin* | rhapsody*)
10539
archive_cmds_need_lc=no
10541
hardcode_automatic=yes
10542
hardcode_shlibpath_var=unsupported
10543
if test "$lt_cv_ld_force_load" = "yes"; then
10544
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\"`'
10547
whole_archive_flag_spec=''
10549
link_all_deplibs=yes
10550
allow_undefined_flag="$_lt_dar_allow_undefined"
10551
case $cc_basename in
10552
ifort*) _lt_dar_can_shared=yes ;;
10553
*) _lt_dar_can_shared=$GCC ;;
10555
if test "$_lt_dar_can_shared" = "yes"; then
10556
output_verbose_link_cmd=func_echo_all
10557
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10558
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10559
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}"
10560
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}"
10569
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10570
hardcode_libdir_flag_spec='-L$libdir'
10571
hardcode_shlibpath_var=no
10574
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10575
# support. Future versions do this automatically, but an explicit c++rt0.o
10576
# does not break anything, and helps significantly (at the cost of a little
10579
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10580
hardcode_libdir_flag_spec='-R$libdir'
10581
hardcode_direct=yes
10582
hardcode_shlibpath_var=no
10585
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10587
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10588
hardcode_direct=yes
10589
hardcode_minus_L=yes
10590
hardcode_shlibpath_var=no
10593
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10594
freebsd* | dragonfly*)
10595
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10596
hardcode_libdir_flag_spec='-R$libdir'
10597
hardcode_direct=yes
10598
hardcode_shlibpath_var=no
10602
if test "$GCC" = yes; then
10603
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'
10605
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'
10607
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10608
hardcode_libdir_separator=:
10609
hardcode_direct=yes
10611
# hardcode_minus_L: Not really in the search PATH,
10612
# but as the default location of the library.
10613
hardcode_minus_L=yes
10614
export_dynamic_flag_spec='${wl}-E'
10618
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10619
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10621
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10623
if test "$with_gnu_ld" = no; then
10624
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10625
hardcode_libdir_separator=:
10626
hardcode_direct=yes
10627
hardcode_direct_absolute=yes
10628
export_dynamic_flag_spec='${wl}-E'
10629
# hardcode_minus_L: Not really in the search PATH,
10630
# but as the default location of the library.
10631
hardcode_minus_L=yes
10636
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10639
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10642
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10645
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10651
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10654
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10658
# Older versions of the 11.00 compiler do not understand -b yet
10659
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10661
$as_echo_n "checking if $CC understands -b... " >&6; }
10662
if ${lt_cv_prog_compiler__b+:} false; then :
10663
$as_echo_n "(cached) " >&6
10665
lt_cv_prog_compiler__b=no
10666
save_LDFLAGS="$LDFLAGS"
10667
LDFLAGS="$LDFLAGS -b"
10668
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10669
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10670
# The linker can only warn and ignore the option if not recognized
10671
# So say no if there are warnings
10672
if test -s conftest.err; then
10673
# Append any errors to the config.log.
10674
cat conftest.err 1>&5
10675
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10676
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10677
if diff conftest.exp conftest.er2 >/dev/null; then
10678
lt_cv_prog_compiler__b=yes
10681
lt_cv_prog_compiler__b=yes
10685
LDFLAGS="$save_LDFLAGS"
10688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10689
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10691
if test x"$lt_cv_prog_compiler__b" = xyes; then
10692
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10694
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10700
if test "$with_gnu_ld" = no; then
10701
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10702
hardcode_libdir_separator=:
10707
hardcode_shlibpath_var=no
10710
hardcode_direct=yes
10711
hardcode_direct_absolute=yes
10712
export_dynamic_flag_spec='${wl}-E'
10714
# hardcode_minus_L: Not really in the search PATH,
10715
# but as the default location of the library.
10716
hardcode_minus_L=yes
10722
irix5* | irix6* | nonstopux*)
10723
if test "$GCC" = yes; then
10724
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'
10725
# Try to use the -exported_symbol ld option, if it does not
10726
# work, assume that -exports_file does not work either and
10727
# implicitly export all symbols.
10728
# This should be the same for all languages, so no per-tag cache variable.
10729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10730
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10731
if ${lt_cv_irix_exported_symbol+:} false; then :
10732
$as_echo_n "(cached) " >&6
10734
save_LDFLAGS="$LDFLAGS"
10735
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10736
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737
/* end confdefs.h. */
10738
int foo (void) { return 0; }
10740
if ac_fn_c_try_link "$LINENO"; then :
10741
lt_cv_irix_exported_symbol=yes
10743
lt_cv_irix_exported_symbol=no
10745
rm -f core conftest.err conftest.$ac_objext \
10746
conftest$ac_exeext conftest.$ac_ext
10747
LDFLAGS="$save_LDFLAGS"
10749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10750
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10751
if test "$lt_cv_irix_exported_symbol" = yes; then
10752
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'
10755
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'
10756
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'
10758
archive_cmds_need_lc='no'
10759
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10760
hardcode_libdir_separator=:
10762
link_all_deplibs=yes
10765
netbsd* | netbsdelf*-gnu)
10766
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10767
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10769
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10771
hardcode_libdir_flag_spec='-R$libdir'
10772
hardcode_direct=yes
10773
hardcode_shlibpath_var=no
10777
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778
hardcode_direct=yes
10779
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10780
hardcode_libdir_separator=:
10781
hardcode_shlibpath_var=no
10788
if test -f /usr/libexec/ld.so; then
10789
hardcode_direct=yes
10790
hardcode_shlibpath_var=no
10791
hardcode_direct_absolute=yes
10792
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10793
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10794
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10795
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10796
export_dynamic_flag_spec='${wl}-E'
10799
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10800
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10801
hardcode_libdir_flag_spec='-R$libdir'
10804
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10805
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10815
hardcode_libdir_flag_spec='-L$libdir'
10816
hardcode_minus_L=yes
10817
allow_undefined_flag=unsupported
10818
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'
10819
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10823
if test "$GCC" = yes; then
10824
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10825
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'
10827
allow_undefined_flag=' -expect_unresolved \*'
10828
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'
10830
archive_cmds_need_lc='no'
10831
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10832
hardcode_libdir_separator=:
10835
osf4* | osf5*) # as osf3* with the addition of -msym flag
10836
if test "$GCC" = yes; then
10837
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10838
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'
10839
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10841
allow_undefined_flag=' -expect_unresolved \*'
10842
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'
10843
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~
10844
$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'
10846
# Both c and cxx compiler support -rpath directly
10847
hardcode_libdir_flag_spec='-rpath $libdir'
10849
archive_cmds_need_lc='no'
10850
hardcode_libdir_separator=:
10854
no_undefined_flag=' -z defs'
10855
if test "$GCC" = yes; then
10857
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10858
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10859
$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'
10861
case `$CC -V 2>&1` in
10864
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10866
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10870
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10871
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10872
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10876
hardcode_libdir_flag_spec='-R$libdir'
10877
hardcode_shlibpath_var=no
10879
solaris2.[0-5] | solaris2.[0-5].*) ;;
10881
# The compiler driver will combine and reorder linker options,
10882
# but understands `-z linker_flag'. GCC discards it without `$wl',
10883
# but is careful enough not to reorder.
10884
# Supported since Solaris 2.6 (maybe 2.5.1?)
10885
if test "$GCC" = yes; then
10886
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10888
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10892
link_all_deplibs=yes
10896
if test "x$host_vendor" = xsequent; then
10897
# Use $CC to link under sequent, because it throws in some extra .o
10898
# files that make .init and .fini sections work.
10899
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10901
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10903
hardcode_libdir_flag_spec='-L$libdir'
10904
hardcode_direct=yes
10905
hardcode_minus_L=yes
10906
hardcode_shlibpath_var=no
10910
case $host_vendor in
10912
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913
hardcode_direct=yes # is this really true???
10916
## LD is ld it makes a PLAMLIB
10917
## CC just makes a GrossModule.
10918
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10919
reload_cmds='$CC -r -o $output$reload_objs'
10923
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10924
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10927
runpath_var='LD_RUN_PATH'
10928
hardcode_shlibpath_var=no
10932
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933
hardcode_shlibpath_var=no
10934
export_dynamic_flag_spec='-Bexport'
10938
if test -d /usr/nec; then
10939
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10940
hardcode_shlibpath_var=no
10941
runpath_var=LD_RUN_PATH
10942
hardcode_runpath_var=yes
10947
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10948
no_undefined_flag='${wl}-z,text'
10949
archive_cmds_need_lc=no
10950
hardcode_shlibpath_var=no
10951
runpath_var='LD_RUN_PATH'
10953
if test "$GCC" = yes; then
10954
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10957
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10962
sysv5* | sco3.2v5* | sco5v6*)
10963
# Note: We can NOT use -z defs as we might desire, because we do not
10964
# link with -lc, and that would cause any symbols used from libc to
10965
# always be unresolved, which means just about no library would
10966
# ever link correctly. If we're not using GNU ld we use -z text
10967
# though, which does catch some bad symbols but isn't as heavy-handed
10969
no_undefined_flag='${wl}-z,text'
10970
allow_undefined_flag='${wl}-z,nodefs'
10971
archive_cmds_need_lc=no
10972
hardcode_shlibpath_var=no
10973
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10974
hardcode_libdir_separator=':'
10975
link_all_deplibs=yes
10976
export_dynamic_flag_spec='${wl}-Bexport'
10977
runpath_var='LD_RUN_PATH'
10979
if test "$GCC" = yes; then
10980
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10981
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10983
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10984
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990
hardcode_libdir_flag_spec='-L$libdir'
10991
hardcode_shlibpath_var=no
10999
if test x$host_vendor = xsni; then
11001
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11002
export_dynamic_flag_spec='${wl}-Blargedynsym'
11008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11009
$as_echo "$ld_shlibs" >&6; }
11010
test "$ld_shlibs" = no && can_build_shared=no
11012
with_gnu_ld=$with_gnu_ld
11029
# Do we need to explicitly link libc?
11031
case "x$archive_cmds_need_lc" in
11033
# Assume -lc should be added
11034
archive_cmds_need_lc=yes
11036
if test "$enable_shared" = yes && test "$GCC" = yes; then
11037
case $archive_cmds in
11039
# FIXME: we may have to deal with multi-command sequences.
11042
# Test whether the compiler implicitly links with -lc since on some
11043
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11044
# to ld, don't add -lc before -lgcc.
11045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11046
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11047
if ${lt_cv_archive_cmds_need_lc+:} false; then :
11048
$as_echo_n "(cached) " >&6
11051
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11053
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11054
(eval $ac_compile) 2>&5
11056
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057
test $ac_status = 0; } 2>conftest.err; then
11060
libobjs=conftest.$ac_objext
11062
wl=$lt_prog_compiler_wl
11063
pic_flag=$lt_prog_compiler_pic
11069
lt_save_allow_undefined_flag=$allow_undefined_flag
11070
allow_undefined_flag=
11071
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11072
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11074
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11075
test $ac_status = 0; }
11077
lt_cv_archive_cmds_need_lc=no
11079
lt_cv_archive_cmds_need_lc=yes
11081
allow_undefined_flag=$lt_save_allow_undefined_flag
11083
cat conftest.err 1>&5
11088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11089
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11090
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11248
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11249
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11251
if test "$GCC" = yes; then
11253
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11254
*) lt_awk_arg="/^libraries:/" ;;
11257
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11258
*) lt_sed_strip_eq="s,=/,/,g" ;;
11260
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11261
case $lt_search_path_spec in
11263
# if the path contains ";" then we assume it to be the separator
11264
# otherwise default to the standard path separator (i.e. ":") - it is
11265
# assumed that no part of a normal pathname contains ";" but that should
11266
# okay in the real world where ";" in dirpaths is itself problematic.
11267
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11270
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11273
# Ok, now we have the path, separated by spaces, we can step through it
11274
# and add multilib dir if necessary.
11275
lt_tmp_lt_search_path_spec=
11276
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11277
for lt_sys_path in $lt_search_path_spec; do
11278
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11279
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11281
test -d "$lt_sys_path" && \
11282
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11285
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11286
BEGIN {RS=" "; FS="/|\n";} {
11289
for (lt_i = NF; lt_i > 0; lt_i--) {
11290
if ($lt_i != "" && $lt_i != ".") {
11291
if ($lt_i == "..") {
11294
if (lt_count == 0) {
11295
lt_foo="/" $lt_i lt_foo;
11302
if (lt_foo != "") { lt_freq[lt_foo]++; }
11303
if (lt_freq[lt_foo] == 1) { print lt_foo; }
11305
# AWK program above erroneously prepends '/' to C:/dos/paths
11308
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11309
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
11311
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11313
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11315
library_names_spec=
11316
libname_spec='lib$name'
11320
postuninstall_cmds=
11324
shlibpath_overrides_runpath=unknown
11326
dynamic_linker="$host_os ld.so"
11327
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11328
need_lib_prefix=unknown
11329
hardcode_into_libs=no
11331
# when you set need_version to no, make sure it does not cause -set_version
11332
# flags to be left without arguments
11333
need_version=unknown
11337
version_type=linux # correct to gnu/linux during the next big refactor
11338
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11339
shlibpath_var=LIBPATH
11341
# AIX 3 has no versioning support, so we append a major version to the name.
11342
soname_spec='${libname}${release}${shared_ext}$major'
11346
version_type=linux # correct to gnu/linux during the next big refactor
11349
hardcode_into_libs=yes
11350
if test "$host_cpu" = ia64; then
11351
# AIX 5 supports IA64
11352
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11353
shlibpath_var=LD_LIBRARY_PATH
11355
# With GCC up to 2.95.x, collect2 would create an import file
11356
# for dependence libraries. The import file would start with
11357
# the line `#! .'. This would cause the generated library to
11358
# depend on `.', always an invalid library. This was fixed in
11359
# development snapshots of GCC prior to 3.0.
11361
aix4 | aix4.[01] | aix4.[01].*)
11362
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11364
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11367
can_build_shared=no
11371
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11372
# soname into executable. Probably we can add versioning support to
11373
# collect2, so additional links can be useful in future.
11374
if test "$aix_use_runtimelinking" = yes; then
11375
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11376
# instead of lib<name>.a to let people know that these are not
11377
# typical AIX shared libraries.
11378
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380
# We preserve .a as extension for shared libraries through AIX4.2
11381
# and later when we are not doing run time linking.
11382
library_names_spec='${libname}${release}.a $libname.a'
11383
soname_spec='${libname}${release}${shared_ext}$major'
11385
shlibpath_var=LIBPATH
11392
# Since July 2007 AmigaOS4 officially supports .so libraries.
11393
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397
library_names_spec='$libname.ixlibrary $libname.a'
11398
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11399
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'
11405
library_names_spec='${libname}${shared_ext}'
11406
dynamic_linker="$host_os ld.so"
11407
shlibpath_var=LIBRARY_PATH
11411
version_type=linux # correct to gnu/linux during the next big refactor
11413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414
soname_spec='${libname}${release}${shared_ext}$major'
11415
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11416
shlibpath_var=LD_LIBRARY_PATH
11417
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11418
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11419
# the default ld.so.conf also contains /usr/contrib/lib and
11420
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11421
# libtool to hard-code these into programs
11424
cygwin* | mingw* | pw32* | cegcc*)
11425
version_type=windows
11430
case $GCC,$cc_basename in
11433
library_names_spec='$libname.dll.a'
11434
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11435
postinstall_cmds='base_file=`basename \${file}`~
11436
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11437
dldir=$destdir/`dirname \$dlpath`~
11438
test -d \$dldir || mkdir -p \$dldir~
11439
$install_prog $dir/$dlname \$dldir/$dlname~
11440
chmod a+x \$dldir/$dlname~
11441
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11442
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11444
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11445
dlpath=$dir/\$dldll~
11447
shlibpath_overrides_runpath=yes
11451
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11452
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11454
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11457
# MinGW DLLs use traditional 'lib' prefix
11458
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11461
# pw32 DLLs use 'pw' prefix rather than 'lib'
11462
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11465
dynamic_linker='Win32 ld.exe'
11470
libname_spec='$name'
11471
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11472
library_names_spec='${libname}.dll.lib'
11476
sys_lib_search_path_spec=
11479
for lt_path in $LIB
11482
# Let DOS variable expansion print the short 8.3 style file name.
11483
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11484
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11487
# Convert to MSYS style.
11488
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11491
# Convert to unix form, then to dos form, then back to unix form
11492
# but this time dos style (no spaces!) so that the unix form looks
11493
# like /cygdrive/c/PROGRA~1:/cygdr...
11494
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11495
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11496
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11499
sys_lib_search_path_spec="$LIB"
11500
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11501
# It is most probably a Windows format PATH.
11502
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11504
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11506
# FIXME: find the short name or the path components, as spaces are
11507
# common. (e.g. "Program Files" -> "PROGRA~1")
11511
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11512
postinstall_cmds='base_file=`basename \${file}`~
11513
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11514
dldir=$destdir/`dirname \$dlpath`~
11515
test -d \$dldir || mkdir -p \$dldir~
11516
$install_prog $dir/$dlname \$dldir/$dlname'
11517
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11518
dlpath=$dir/\$dldll~
11520
shlibpath_overrides_runpath=yes
11521
dynamic_linker='Win32 link.exe'
11525
# Assume MSVC wrapper
11526
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11527
dynamic_linker='Win32 ld.exe'
11530
# FIXME: first we should search . and the directory the executable is in
11534
darwin* | rhapsody*)
11535
dynamic_linker="$host_os dyld"
11536
version_type=darwin
11539
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11540
soname_spec='${libname}${release}${major}$shared_ext'
11541
shlibpath_overrides_runpath=yes
11542
shlibpath_var=DYLD_LIBRARY_PATH
11543
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11545
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11546
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11550
version_type=linux # correct to gnu/linux during the next big refactor
11553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11554
soname_spec='${libname}${release}${shared_ext}$major'
11555
shlibpath_var=LD_LIBRARY_PATH
11558
freebsd* | dragonfly*)
11559
# DragonFly does not have aout. When/if they implement a new
11560
# versioning mechanism, adjust this.
11561
if test -x /usr/bin/objformat; then
11562
objformat=`/usr/bin/objformat`
11565
freebsd[23].*) objformat=aout ;;
11566
*) objformat=elf ;;
11569
version_type=freebsd-$objformat
11570
case $version_type in
11572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11577
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11581
shlibpath_var=LD_LIBRARY_PATH
11584
shlibpath_overrides_runpath=yes
11586
freebsd3.[01]* | freebsdelf3.[01]*)
11587
shlibpath_overrides_runpath=yes
11588
hardcode_into_libs=yes
11590
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11591
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11592
shlibpath_overrides_runpath=no
11593
hardcode_into_libs=yes
11595
*) # from 4.6 on, and DragonFly
11596
shlibpath_overrides_runpath=yes
11597
hardcode_into_libs=yes
11603
version_type=linux # correct to gnu/linux during the next big refactor
11606
dynamic_linker="$host_os runtime_loader"
11607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11608
soname_spec='${libname}${release}${shared_ext}$major'
11609
shlibpath_var=LIBRARY_PATH
11610
shlibpath_overrides_runpath=yes
11611
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11612
hardcode_into_libs=yes
11615
hpux9* | hpux10* | hpux11*)
11616
# Give a soname corresponding to the major version so that dld.sl refuses to
11617
# link against other versions.
11624
hardcode_into_libs=yes
11625
dynamic_linker="$host_os dld.so"
11626
shlibpath_var=LD_LIBRARY_PATH
11627
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11628
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629
soname_spec='${libname}${release}${shared_ext}$major'
11630
if test "X$HPUX_IA64_MODE" = X32; then
11631
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11633
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11635
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11639
hardcode_into_libs=yes
11640
dynamic_linker="$host_os dld.sl"
11641
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11642
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11643
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644
soname_spec='${libname}${release}${shared_ext}$major'
11645
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11646
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11650
dynamic_linker="$host_os dld.sl"
11651
shlibpath_var=SHLIB_PATH
11652
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654
soname_spec='${libname}${release}${shared_ext}$major'
11657
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11658
postinstall_cmds='chmod 555 $lib'
11659
# or fails outright, so override atomically:
11660
install_override_mode=555
11664
version_type=linux # correct to gnu/linux during the next big refactor
11667
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11668
soname_spec='${libname}${release}${shared_ext}$major'
11669
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11670
shlibpath_var=LD_LIBRARY_PATH
11671
shlibpath_overrides_runpath=no
11672
hardcode_into_libs=yes
11675
irix5* | irix6* | nonstopux*)
11677
nonstopux*) version_type=nonstopux ;;
11679
if test "$lt_cv_prog_gnu_ld" = yes; then
11680
version_type=linux # correct to gnu/linux during the next big refactor
11687
soname_spec='${libname}${release}${shared_ext}$major'
11688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11690
irix5* | nonstopux*)
11691
libsuff= shlibsuff=
11694
case $LD in # libtool.m4 will add one of these switches to LD
11695
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11696
libsuff= shlibsuff= libmagic=32-bit;;
11697
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11698
libsuff=32 shlibsuff=N32 libmagic=N32;;
11699
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11700
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11701
*) libsuff= shlibsuff= libmagic=never-match;;
11705
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11706
shlibpath_overrides_runpath=no
11707
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11708
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11709
hardcode_into_libs=yes
11712
# No shared lib support for Linux oldld, aout, or coff.
11713
linux*oldld* | linux*aout* | linux*coff*)
11717
# This must be glibc/ELF.
11718
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11719
version_type=linux # correct to gnu/linux during the next big refactor
11722
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11723
soname_spec='${libname}${release}${shared_ext}$major'
11724
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11725
shlibpath_var=LD_LIBRARY_PATH
11726
shlibpath_overrides_runpath=no
11728
# Some binutils ld are patched to set DT_RUNPATH
11729
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11730
$as_echo_n "(cached) " >&6
11732
lt_cv_shlibpath_overrides_runpath=no
11733
save_LDFLAGS=$LDFLAGS
11734
save_libdir=$libdir
11735
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11736
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11737
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738
/* end confdefs.h. */
11748
if ac_fn_c_try_link "$LINENO"; then :
11749
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11750
lt_cv_shlibpath_overrides_runpath=yes
11753
rm -f core conftest.err conftest.$ac_objext \
11754
conftest$ac_exeext conftest.$ac_ext
11755
LDFLAGS=$save_LDFLAGS
11756
libdir=$save_libdir
11760
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11762
# This implies no fast_install, which is unacceptable.
11763
# Some rework will be needed to allow for fast_install
11764
# before this can be enabled.
11765
hardcode_into_libs=yes
11767
# Append ld.so.conf contents to the search path
11768
if test -f /etc/ld.so.conf; then
11769
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' ' '`
11770
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11773
# We used to test for /lib/ld.so.1 and disable shared libraries on
11774
# powerpc, because MkLinux only supported shared libraries with the
11775
# GNU dynamic linker. Since this was broken with cross compilers,
11776
# most powerpc-linux boxes support dynamic linking these days and
11777
# people can always --disable-shared, the test was removed, and we
11778
# assume the GNU/Linux dynamic linker is in use.
11779
dynamic_linker='GNU/Linux ld.so'
11786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11787
soname_spec='${libname}${release}${shared_ext}$major'
11788
shlibpath_var=LD_LIBRARY_PATH
11789
shlibpath_overrides_runpath=no
11790
hardcode_into_libs=yes
11791
dynamic_linker='NetBSD ld.elf_so'
11798
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11800
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11801
dynamic_linker='NetBSD (a.out) ld.so'
11803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11804
soname_spec='${libname}${release}${shared_ext}$major'
11805
dynamic_linker='NetBSD ld.elf_so'
11807
shlibpath_var=LD_LIBRARY_PATH
11808
shlibpath_overrides_runpath=yes
11809
hardcode_into_libs=yes
11813
version_type=linux # correct to gnu/linux during the next big refactor
11814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815
shlibpath_var=LD_LIBRARY_PATH
11816
shlibpath_overrides_runpath=yes
11823
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824
soname_spec='${libname}${release}${shared_ext}$major'
11825
shlibpath_var=LD_LIBRARY_PATH
11826
shlibpath_overrides_runpath=no
11827
hardcode_into_libs=yes
11828
dynamic_linker='ldqnx.so'
11833
sys_lib_dlsearch_path_spec="/usr/lib"
11835
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11837
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11838
*) need_version=no ;;
11840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11841
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11842
shlibpath_var=LD_LIBRARY_PATH
11843
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11845
openbsd2.[89] | openbsd2.[89].*)
11846
shlibpath_overrides_runpath=no
11849
shlibpath_overrides_runpath=yes
11853
shlibpath_overrides_runpath=yes
11858
libname_spec='$name'
11861
library_names_spec='$libname${shared_ext} $libname.a'
11862
dynamic_linker='OS/2 ld.exe'
11863
shlibpath_var=LIBPATH
11866
osf3* | osf4* | osf5*)
11870
soname_spec='${libname}${release}${shared_ext}$major'
11871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872
shlibpath_var=LD_LIBRARY_PATH
11873
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11874
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11882
version_type=linux # correct to gnu/linux during the next big refactor
11885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886
soname_spec='${libname}${release}${shared_ext}$major'
11887
shlibpath_var=LD_LIBRARY_PATH
11888
shlibpath_overrides_runpath=yes
11889
hardcode_into_libs=yes
11890
# ldd complains unless libraries are executable
11891
postinstall_cmds='chmod +x $lib'
11896
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11897
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11898
shlibpath_var=LD_LIBRARY_PATH
11899
shlibpath_overrides_runpath=yes
11900
if test "$with_gnu_ld" = yes; then
11907
version_type=linux # correct to gnu/linux during the next big refactor
11908
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909
soname_spec='${libname}${release}${shared_ext}$major'
11910
shlibpath_var=LD_LIBRARY_PATH
11911
case $host_vendor in
11913
shlibpath_overrides_runpath=no
11915
runpath_var=LD_RUN_PATH
11923
shlibpath_overrides_runpath=no
11924
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11930
if test -d /usr/nec ;then
11931
version_type=linux # correct to gnu/linux during the next big refactor
11932
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11933
soname_spec='$libname${shared_ext}.$major'
11934
shlibpath_var=LD_LIBRARY_PATH
11938
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11939
version_type=freebsd-elf
11942
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11943
soname_spec='${libname}${release}${shared_ext}$major'
11944
shlibpath_var=LD_LIBRARY_PATH
11945
shlibpath_overrides_runpath=yes
11946
hardcode_into_libs=yes
11947
if test "$with_gnu_ld" = yes; then
11948
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11950
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11953
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11957
sys_lib_dlsearch_path_spec='/usr/lib'
11961
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11962
version_type=linux # correct to gnu/linux during the next big refactor
11965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966
shlibpath_var=LD_LIBRARY_PATH
11967
shlibpath_overrides_runpath=no
11968
hardcode_into_libs=yes
11972
version_type=linux # correct to gnu/linux during the next big refactor
11973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974
soname_spec='${libname}${release}${shared_ext}$major'
11975
shlibpath_var=LD_LIBRARY_PATH
11982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11983
$as_echo "$dynamic_linker" >&6; }
11984
test "$dynamic_linker" = no && can_build_shared=no
11986
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11987
if test "$GCC" = yes; then
11988
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11991
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11992
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11994
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11995
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12090
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12092
if test -n "$hardcode_libdir_flag_spec" ||
12093
test -n "$runpath_var" ||
12094
test "X$hardcode_automatic" = "Xyes" ; then
12096
# We can hardcode non-existent directories.
12097
if test "$hardcode_direct" != no &&
12098
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12099
# have to relink, otherwise we might link with an installed library
12100
# when we should be linking with a yet-to-be-installed one
12101
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12102
test "$hardcode_minus_L" != no; then
12103
# Linking always hardcodes the temporary library directory.
12104
hardcode_action=relink
12106
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12107
hardcode_action=immediate
12110
# We cannot hardcode anything, or else we can only hardcode existing
12112
hardcode_action=unsupported
12114
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12115
$as_echo "$hardcode_action" >&6; }
12117
if test "$hardcode_action" = relink ||
12118
test "$inherit_rpath" = yes; then
12119
# Fast installation is not supported
12120
enable_fast_install=no
12121
elif test "$shlibpath_overrides_runpath" = yes ||
12122
test "$enable_shared" = no; then
12123
# Fast installation is not necessary
12124
enable_fast_install=needless
12132
if test "x$enable_dlopen" != xyes; then
12133
enable_dlopen=unknown
12134
enable_dlopen_self=unknown
12135
enable_dlopen_self_static=unknown
12142
lt_cv_dlopen="load_add_on"
12144
lt_cv_dlopen_self=yes
12147
mingw* | pw32* | cegcc*)
12148
lt_cv_dlopen="LoadLibrary"
12153
lt_cv_dlopen="dlopen"
12158
# if libdl is installed we need to link against it
12159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12160
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12161
if ${ac_cv_lib_dl_dlopen+:} false; then :
12162
$as_echo_n "(cached) " >&6
12164
ac_check_lib_save_LIBS=$LIBS
12166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167
/* end confdefs.h. */
12169
/* Override any GCC internal prototype to avoid an error.
12170
Use char because int might match the return type of a GCC
12171
builtin and then its argument prototype would still apply. */
12184
if ac_fn_c_try_link "$LINENO"; then :
12185
ac_cv_lib_dl_dlopen=yes
12187
ac_cv_lib_dl_dlopen=no
12189
rm -f core conftest.err conftest.$ac_objext \
12190
conftest$ac_exeext conftest.$ac_ext
12191
LIBS=$ac_check_lib_save_LIBS
12193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12194
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12195
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12196
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12199
lt_cv_dlopen="dyld"
12201
lt_cv_dlopen_self=yes
12208
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12209
if test "x$ac_cv_func_shl_load" = xyes; then :
12210
lt_cv_dlopen="shl_load"
12212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12213
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12214
if ${ac_cv_lib_dld_shl_load+:} false; then :
12215
$as_echo_n "(cached) " >&6
12217
ac_check_lib_save_LIBS=$LIBS
12219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220
/* end confdefs.h. */
12222
/* Override any GCC internal prototype to avoid an error.
12223
Use char because int might match the return type of a GCC
12224
builtin and then its argument prototype would still apply. */
12232
return shl_load ();
12237
if ac_fn_c_try_link "$LINENO"; then :
12238
ac_cv_lib_dld_shl_load=yes
12240
ac_cv_lib_dld_shl_load=no
12242
rm -f core conftest.err conftest.$ac_objext \
12243
conftest$ac_exeext conftest.$ac_ext
12244
LIBS=$ac_check_lib_save_LIBS
12246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12247
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12248
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12249
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12251
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12252
if test "x$ac_cv_func_dlopen" = xyes; then :
12253
lt_cv_dlopen="dlopen"
12255
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12256
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12257
if ${ac_cv_lib_dl_dlopen+:} false; then :
12258
$as_echo_n "(cached) " >&6
12260
ac_check_lib_save_LIBS=$LIBS
12262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263
/* end confdefs.h. */
12265
/* Override any GCC internal prototype to avoid an error.
12266
Use char because int might match the return type of a GCC
12267
builtin and then its argument prototype would still apply. */
12280
if ac_fn_c_try_link "$LINENO"; then :
12281
ac_cv_lib_dl_dlopen=yes
12283
ac_cv_lib_dl_dlopen=no
12285
rm -f core conftest.err conftest.$ac_objext \
12286
conftest$ac_exeext conftest.$ac_ext
12287
LIBS=$ac_check_lib_save_LIBS
12289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12290
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12291
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12292
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12295
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12296
if ${ac_cv_lib_svld_dlopen+:} false; then :
12297
$as_echo_n "(cached) " >&6
12299
ac_check_lib_save_LIBS=$LIBS
12300
LIBS="-lsvld $LIBS"
12301
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302
/* end confdefs.h. */
12304
/* Override any GCC internal prototype to avoid an error.
12305
Use char because int might match the return type of a GCC
12306
builtin and then its argument prototype would still apply. */
12319
if ac_fn_c_try_link "$LINENO"; then :
12320
ac_cv_lib_svld_dlopen=yes
12322
ac_cv_lib_svld_dlopen=no
12324
rm -f core conftest.err conftest.$ac_objext \
12325
conftest$ac_exeext conftest.$ac_ext
12326
LIBS=$ac_check_lib_save_LIBS
12328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12329
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12330
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12331
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12334
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12335
if ${ac_cv_lib_dld_dld_link+:} false; then :
12336
$as_echo_n "(cached) " >&6
12338
ac_check_lib_save_LIBS=$LIBS
12340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341
/* end confdefs.h. */
12343
/* Override any GCC internal prototype to avoid an error.
12344
Use char because int might match the return type of a GCC
12345
builtin and then its argument prototype would still apply. */
12353
return dld_link ();
12358
if ac_fn_c_try_link "$LINENO"; then :
12359
ac_cv_lib_dld_dld_link=yes
12361
ac_cv_lib_dld_dld_link=no
12363
rm -f core conftest.err conftest.$ac_objext \
12364
conftest$ac_exeext conftest.$ac_ext
12365
LIBS=$ac_check_lib_save_LIBS
12367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12368
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12369
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12370
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12391
if test "x$lt_cv_dlopen" != xno; then
12397
case $lt_cv_dlopen in
12399
save_CPPFLAGS="$CPPFLAGS"
12400
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12402
save_LDFLAGS="$LDFLAGS"
12403
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12406
LIBS="$lt_cv_dlopen_libs $LIBS"
12408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12409
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12410
if ${lt_cv_dlopen_self+:} false; then :
12411
$as_echo_n "(cached) " >&6
12413
if test "$cross_compiling" = yes; then :
12414
lt_cv_dlopen_self=cross
12416
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12417
lt_status=$lt_dlunknown
12418
cat > conftest.$ac_ext <<_LT_EOF
12419
#line $LINENO "configure"
12420
#include "confdefs.h"
12429
# define LT_DLGLOBAL RTLD_GLOBAL
12432
# define LT_DLGLOBAL DL_GLOBAL
12434
# define LT_DLGLOBAL 0
12438
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12439
find out it does not work in some platform. */
12440
#ifndef LT_DLLAZY_OR_NOW
12442
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12445
# define LT_DLLAZY_OR_NOW DL_LAZY
12448
# define LT_DLLAZY_OR_NOW RTLD_NOW
12451
# define LT_DLLAZY_OR_NOW DL_NOW
12453
# define LT_DLLAZY_OR_NOW 0
12460
/* When -fvisbility=hidden is used, assume the code has been annotated
12461
correspondingly for the symbols needed. */
12462
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12463
int fnord () __attribute__((visibility("default")));
12466
int fnord () { return 42; }
12469
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12470
int status = $lt_dlunknown;
12474
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12477
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12478
else puts (dlerror ());
12480
/* dlclose (self); */
12488
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12489
(eval $ac_link) 2>&5
12491
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12492
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12493
(./conftest; exit; ) >&5 2>/dev/null
12495
case x$lt_status in
12496
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12497
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12498
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12501
# compilation failed
12502
lt_cv_dlopen_self=no
12509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12510
$as_echo "$lt_cv_dlopen_self" >&6; }
12512
if test "x$lt_cv_dlopen_self" = xyes; then
12513
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12515
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12516
if ${lt_cv_dlopen_self_static+:} false; then :
12517
$as_echo_n "(cached) " >&6
12519
if test "$cross_compiling" = yes; then :
12520
lt_cv_dlopen_self_static=cross
12522
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12523
lt_status=$lt_dlunknown
12524
cat > conftest.$ac_ext <<_LT_EOF
12525
#line $LINENO "configure"
12526
#include "confdefs.h"
12535
# define LT_DLGLOBAL RTLD_GLOBAL
12538
# define LT_DLGLOBAL DL_GLOBAL
12540
# define LT_DLGLOBAL 0
12544
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12545
find out it does not work in some platform. */
12546
#ifndef LT_DLLAZY_OR_NOW
12548
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12551
# define LT_DLLAZY_OR_NOW DL_LAZY
12554
# define LT_DLLAZY_OR_NOW RTLD_NOW
12557
# define LT_DLLAZY_OR_NOW DL_NOW
12559
# define LT_DLLAZY_OR_NOW 0
12566
/* When -fvisbility=hidden is used, assume the code has been annotated
12567
correspondingly for the symbols needed. */
12568
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12569
int fnord () __attribute__((visibility("default")));
12572
int fnord () { return 42; }
12575
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12576
int status = $lt_dlunknown;
12580
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12583
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12584
else puts (dlerror ());
12586
/* dlclose (self); */
12594
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12595
(eval $ac_link) 2>&5
12597
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12598
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12599
(./conftest; exit; ) >&5 2>/dev/null
12601
case x$lt_status in
12602
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12603
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12604
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12607
# compilation failed
12608
lt_cv_dlopen_self_static=no
12615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12616
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12619
CPPFLAGS="$save_CPPFLAGS"
12620
LDFLAGS="$save_LDFLAGS"
12625
case $lt_cv_dlopen_self in
12626
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12627
*) enable_dlopen_self=unknown ;;
12630
case $lt_cv_dlopen_self_static in
12631
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12632
*) enable_dlopen_self_static=unknown ;;
12654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12655
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12656
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12657
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12658
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12660
$as_echo "yes" >&6; }
12662
# FIXME - insert some real tests, host_os isn't really good enough
12665
if test -n "$STRIP" ; then
12666
striplib="$STRIP -x"
12667
old_striplib="$STRIP -S"
12668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12669
$as_echo "yes" >&6; }
12671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672
$as_echo "no" >&6; }
12676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677
$as_echo "no" >&6; }
12693
# Report which library types will actually be built
12694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12695
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12697
$as_echo "$can_build_shared" >&6; }
12699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12700
$as_echo_n "checking whether to build shared libraries... " >&6; }
12701
test "$can_build_shared" = "no" && enable_shared=no
12703
# On AIX, shared libraries and static libraries use the same namespace, and
12704
# are all built from PIC.
12707
test "$enable_shared" = yes && enable_static=no
12708
if test -n "$RANLIB"; then
12709
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12710
postinstall_cmds='$RANLIB $lib'
12715
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12716
test "$enable_shared" = yes && enable_static=no
12720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12721
$as_echo "$enable_shared" >&6; }
12723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12724
$as_echo_n "checking whether to build static libraries... " >&6; }
12725
# Make sure either enable_shared or enable_static is yes.
12726
test "$enable_shared" = yes || enable_static=yes
12727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12728
$as_echo "$enable_static" >&6; }
12735
ac_cpp='$CXXCPP $CPPFLAGS'
12736
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12737
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12738
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12742
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12743
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12744
(test "X$CXX" != "Xg++"))) ; then
12746
ac_cpp='$CXXCPP $CPPFLAGS'
12747
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12748
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12749
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12751
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12752
if test -z "$CXXCPP"; then
12753
if ${ac_cv_prog_CXXCPP+:} false; then :
12754
$as_echo_n "(cached) " >&6
12756
# Double quotes because CXXCPP needs to be expanded
12757
for CXXCPP in "$CXX -E" "/lib/cpp"
12759
ac_preproc_ok=false
12760
for ac_cxx_preproc_warn_flag in '' yes
12762
# Use a header file that comes with gcc, so configuring glibc
12763
# with a fresh cross-compiler works.
12764
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12765
# <limits.h> exists even on freestanding compilers.
12766
# On the NeXT, cc -E runs the code through the compiler's parser,
12767
# not just through cpp. "Syntax error" is here to catch this case.
12768
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769
/* end confdefs.h. */
12771
# include <limits.h>
12773
# include <assert.h>
12777
if ac_fn_cxx_try_cpp "$LINENO"; then :
12780
# Broken: fails on valid input.
12783
rm -f conftest.err conftest.i conftest.$ac_ext
12785
# OK, works on sane cases. Now check whether nonexistent headers
12786
# can be detected and how.
12787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788
/* end confdefs.h. */
12789
#include <ac_nonexistent.h>
12791
if ac_fn_cxx_try_cpp "$LINENO"; then :
12792
# Broken: success on invalid input.
12795
# Passes both tests.
12799
rm -f conftest.err conftest.i conftest.$ac_ext
12802
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12803
rm -f conftest.i conftest.err conftest.$ac_ext
12804
if $ac_preproc_ok; then :
12809
ac_cv_prog_CXXCPP=$CXXCPP
12812
CXXCPP=$ac_cv_prog_CXXCPP
12814
ac_cv_prog_CXXCPP=$CXXCPP
12816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12817
$as_echo "$CXXCPP" >&6; }
12818
ac_preproc_ok=false
12819
for ac_cxx_preproc_warn_flag in '' yes
12821
# Use a header file that comes with gcc, so configuring glibc
12822
# with a fresh cross-compiler works.
12823
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12824
# <limits.h> exists even on freestanding compilers.
12825
# On the NeXT, cc -E runs the code through the compiler's parser,
12826
# not just through cpp. "Syntax error" is here to catch this case.
12827
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828
/* end confdefs.h. */
12830
# include <limits.h>
12832
# include <assert.h>
12836
if ac_fn_cxx_try_cpp "$LINENO"; then :
12839
# Broken: fails on valid input.
12842
rm -f conftest.err conftest.i conftest.$ac_ext
12844
# OK, works on sane cases. Now check whether nonexistent headers
12845
# can be detected and how.
12846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847
/* end confdefs.h. */
12848
#include <ac_nonexistent.h>
12850
if ac_fn_cxx_try_cpp "$LINENO"; then :
12851
# Broken: success on invalid input.
12854
# Passes both tests.
12858
rm -f conftest.err conftest.i conftest.$ac_ext
12861
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12862
rm -f conftest.i conftest.err conftest.$ac_ext
12863
if $ac_preproc_ok; then :
12866
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12867
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12868
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12869
See \`config.log' for more details" "$LINENO" 5; }
12873
ac_cpp='$CXXCPP $CPPFLAGS'
12874
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12879
_lt_caught_CXX_error=yes
12883
ac_cpp='$CXXCPP $CPPFLAGS'
12884
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12885
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12886
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12888
archive_cmds_need_lc_CXX=no
12889
allow_undefined_flag_CXX=
12890
always_export_symbols_CXX=no
12891
archive_expsym_cmds_CXX=
12892
compiler_needs_object_CXX=no
12893
export_dynamic_flag_spec_CXX=
12894
hardcode_direct_CXX=no
12895
hardcode_direct_absolute_CXX=no
12896
hardcode_libdir_flag_spec_CXX=
12897
hardcode_libdir_separator_CXX=
12898
hardcode_minus_L_CXX=no
12899
hardcode_shlibpath_var_CXX=unsupported
12900
hardcode_automatic_CXX=no
12901
inherit_rpath_CXX=no
12903
module_expsym_cmds_CXX=
12904
link_all_deplibs_CXX=unknown
12905
old_archive_cmds_CXX=$old_archive_cmds
12906
reload_flag_CXX=$reload_flag
12907
reload_cmds_CXX=$reload_cmds
12908
no_undefined_flag_CXX=
12909
whole_archive_flag_spec_CXX=
12910
enable_shared_with_static_runtimes_CXX=no
12912
# Source file extension for C++ test sources.
12915
# Object file extension for compiled C++ test sources.
12919
# No sense in running all these tests if we already determined that
12920
# the CXX compiler isn't working. Some variables (like enable_shared)
12921
# are currently assumed to apply to all compilers on this platform,
12922
# and will be corrupted by setting them based on a non-working compiler.
12923
if test "$_lt_caught_CXX_error" != yes; then
12924
# Code to be used in simple compile tests
12925
lt_simple_compile_test_code="int some_variable = 0;"
12927
# Code to be used in simple link tests
12928
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12930
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12937
# If no C compiler was specified, use CC.
12940
# If no C compiler flags were specified, use CFLAGS.
12941
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12943
# Allow CC to be a program name with arguments.
12947
# save warnings/boilerplate of simple test code
12948
ac_outfile=conftest.$ac_objext
12949
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12950
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12951
_lt_compiler_boilerplate=`cat conftest.err`
12954
ac_outfile=conftest.$ac_objext
12955
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12956
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12957
_lt_linker_boilerplate=`cat conftest.err`
12961
# Allow CC to be a program name with arguments.
12963
lt_save_CFLAGS=$CFLAGS
12967
lt_save_with_gnu_ld=$with_gnu_ld
12968
lt_save_path_LD=$lt_cv_path_LD
12969
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12970
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12972
$as_unset lt_cv_prog_gnu_ld
12974
if test -n "${lt_cv_path_LDCXX+set}"; then
12975
lt_cv_path_LD=$lt_cv_path_LDCXX
12977
$as_unset lt_cv_path_LD
12979
test -z "${LDCXX+set}" || LD=$LDCXX
12984
for cc_temp in $compiler""; do
12986
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12987
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12992
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12995
if test -n "$compiler"; then
12996
# We don't want -fno-exception when compiling C++ code, so set the
12997
# no_builtin_flag separately
12998
if test "$GXX" = yes; then
12999
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13001
lt_prog_compiler_no_builtin_flag_CXX=
13004
if test "$GXX" = yes; then
13005
# Set up default GNU C++ configuration
13009
# Check whether --with-gnu-ld was given.
13010
if test "${with_gnu_ld+set}" = set; then :
13011
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13017
if test "$GCC" = yes; then
13018
# Check if gcc -print-prog-name=ld gives a path.
13019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13020
$as_echo_n "checking for ld used by $CC... " >&6; }
13023
# gcc leaves a trailing carriage return which upsets mingw
13024
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13026
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13029
# Accept absolute paths.
13031
re_direlt='/[^/][^/]*/\.\./'
13032
# Canonicalize the pathname of ld
13033
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13034
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13035
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13037
test -z "$LD" && LD="$ac_prog"
13040
# If it fails, then pretend we aren't using GCC.
13044
# If it is relative, then search for the first ld in PATH.
13045
with_gnu_ld=unknown
13048
elif test "$with_gnu_ld" = yes; then
13049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13050
$as_echo_n "checking for GNU ld... " >&6; }
13052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13053
$as_echo_n "checking for non-GNU ld... " >&6; }
13055
if ${lt_cv_path_LD+:} false; then :
13056
$as_echo_n "(cached) " >&6
13058
if test -z "$LD"; then
13059
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13060
for ac_dir in $PATH; do
13062
test -z "$ac_dir" && ac_dir=.
13063
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13064
lt_cv_path_LD="$ac_dir/$ac_prog"
13065
# Check to see if the program is GNU ld. I'd rather use --version,
13066
# but apparently some variants of GNU ld only accept -v.
13067
# Break only if it was the GNU/non-GNU ld that we prefer.
13068
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13069
*GNU* | *'with BFD'*)
13070
test "$with_gnu_ld" != no && break
13073
test "$with_gnu_ld" != yes && break
13080
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13084
LD="$lt_cv_path_LD"
13085
if test -n "$LD"; then
13086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13087
$as_echo "$LD" >&6; }
13089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090
$as_echo "no" >&6; }
13092
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13094
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13095
if ${lt_cv_prog_gnu_ld+:} false; then :
13096
$as_echo_n "(cached) " >&6
13098
# I'd rather use --version here, but apparently some GNU lds only accept -v.
13099
case `$LD -v 2>&1 </dev/null` in
13100
*GNU* | *'with BFD'*)
13101
lt_cv_prog_gnu_ld=yes
13104
lt_cv_prog_gnu_ld=no
13108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13109
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13110
with_gnu_ld=$lt_cv_prog_gnu_ld
13118
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13119
# archiving commands below assume that GNU ld is being used.
13120
if test "$with_gnu_ld" = yes; then
13121
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122
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'
13124
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13125
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13127
# If archive_cmds runs LD, not CC, wlarc should be empty
13128
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13129
# investigate it a little bit more. (MM)
13132
# ancient GNU ld didn't support --whole-archive et. al.
13133
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13134
$GREP 'no-whole-archive' > /dev/null; then
13135
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13137
whole_archive_flag_spec_CXX=
13143
# A generic and very simple default shared library creation
13144
# command for GNU C++ for the case where it uses the native
13145
# linker, instead of GNU ld. If possible, this setting should
13146
# overridden to take advantage of the native linker features on
13147
# the platform it is being used on.
13148
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13151
# Commands to make compiler produce verbose output that lists
13152
# what "hidden" libraries, object files and flags are used when
13153
# linking a shared library.
13154
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13162
# PORTME: fill in a description of your system's C++ link characteristics
13163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13164
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13168
# FIXME: insert proper C++ library support
13172
if test "$host_cpu" = ia64; then
13173
# On IA64, the linker does run time linking by default, so we don't
13174
# have to do anything special.
13175
aix_use_runtimelinking=no
13176
exp_sym_flag='-Bexport'
13179
aix_use_runtimelinking=no
13181
# Test if we are trying to use run time linking or normal
13182
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13183
# need to do runtime linking.
13184
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13185
for ld_flag in $LDFLAGS; do
13188
aix_use_runtimelinking=yes
13196
exp_sym_flag='-bexport'
13197
no_entry_flag='-bnoentry'
13200
# When large executables or shared objects are built, AIX ld can
13201
# have problems creating the table of contents. If linking a library
13202
# or program results in "error TOC overflow" add -mminimal-toc to
13203
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13204
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13206
archive_cmds_CXX=''
13207
hardcode_direct_CXX=yes
13208
hardcode_direct_absolute_CXX=yes
13209
hardcode_libdir_separator_CXX=':'
13210
link_all_deplibs_CXX=yes
13211
file_list_spec_CXX='${wl}-f,'
13213
if test "$GXX" = yes; then
13214
case $host_os in aix4.[012]|aix4.[012].*)
13215
# We only want to do this on AIX 4.2 and lower, the check
13216
# below for broken collect2 doesn't work under 4.3+
13217
collect2name=`${CC} -print-prog-name=collect2`
13218
if test -f "$collect2name" &&
13219
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13221
# We have reworked collect2
13224
# We have old collect2
13225
hardcode_direct_CXX=unsupported
13226
# It fails to find uninstalled libraries when the uninstalled
13227
# path is not listed in the libpath. Setting hardcode_minus_L
13228
# to unsupported forces relinking
13229
hardcode_minus_L_CXX=yes
13230
hardcode_libdir_flag_spec_CXX='-L$libdir'
13231
hardcode_libdir_separator_CXX=
13234
shared_flag='-shared'
13235
if test "$aix_use_runtimelinking" = yes; then
13236
shared_flag="$shared_flag "'${wl}-G'
13240
if test "$host_cpu" = ia64; then
13241
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13242
# chokes on -Wl,-G. The following line is correct:
13245
if test "$aix_use_runtimelinking" = yes; then
13246
shared_flag='${wl}-G'
13248
shared_flag='${wl}-bM:SRE'
13253
export_dynamic_flag_spec_CXX='${wl}-bexpall'
13254
# It seems that -bexpall does not export symbols beginning with
13255
# underscore (_), so it is better to generate a list of symbols to
13257
always_export_symbols_CXX=yes
13258
if test "$aix_use_runtimelinking" = yes; then
13259
# Warning - without using the other runtime loading flags (-brtl),
13260
# -berok will link without error, but may produce a broken library.
13261
allow_undefined_flag_CXX='-berok'
13262
# Determine the default libpath from the value encoded in an empty
13264
if test "${lt_cv_aix_libpath+set}" = set; then
13265
aix_libpath=$lt_cv_aix_libpath
13267
if ${lt_cv_aix_libpath__CXX+:} false; then :
13268
$as_echo_n "(cached) " >&6
13270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271
/* end confdefs.h. */
13281
if ac_fn_cxx_try_link "$LINENO"; then :
13283
lt_aix_libpath_sed='
13284
/Import File Strings/,/^$/ {
13286
s/^0 *\([^ ]*\) *$/\1/
13290
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13291
# Check for a 64-bit object if we didn't find anything.
13292
if test -z "$lt_cv_aix_libpath__CXX"; then
13293
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13296
rm -f core conftest.err conftest.$ac_objext \
13297
conftest$ac_exeext conftest.$ac_ext
13298
if test -z "$lt_cv_aix_libpath__CXX"; then
13299
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13304
aix_libpath=$lt_cv_aix_libpath__CXX
13307
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13309
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"
13311
if test "$host_cpu" = ia64; then
13312
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13313
allow_undefined_flag_CXX="-z nodefs"
13314
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"
13316
# Determine the default libpath from the value encoded in an
13317
# empty executable.
13318
if test "${lt_cv_aix_libpath+set}" = set; then
13319
aix_libpath=$lt_cv_aix_libpath
13321
if ${lt_cv_aix_libpath__CXX+:} false; then :
13322
$as_echo_n "(cached) " >&6
13324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325
/* end confdefs.h. */
13335
if ac_fn_cxx_try_link "$LINENO"; then :
13337
lt_aix_libpath_sed='
13338
/Import File Strings/,/^$/ {
13340
s/^0 *\([^ ]*\) *$/\1/
13344
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13345
# Check for a 64-bit object if we didn't find anything.
13346
if test -z "$lt_cv_aix_libpath__CXX"; then
13347
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13350
rm -f core conftest.err conftest.$ac_objext \
13351
conftest$ac_exeext conftest.$ac_ext
13352
if test -z "$lt_cv_aix_libpath__CXX"; then
13353
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13358
aix_libpath=$lt_cv_aix_libpath__CXX
13361
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13362
# Warning - without using the other run time loading flags,
13363
# -berok will link without error, but may produce a broken library.
13364
no_undefined_flag_CXX=' ${wl}-bernotok'
13365
allow_undefined_flag_CXX=' ${wl}-berok'
13366
if test "$with_gnu_ld" = yes; then
13367
# We only use this code for GNU lds that support --whole-archive.
13368
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13370
# Exported symbols can be pulled into shared objects from archives
13371
whole_archive_flag_spec_CXX='$convenience'
13373
archive_cmds_need_lc_CXX=yes
13374
# This is similar to how AIX traditionally builds its shared
13376
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'
13382
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13383
allow_undefined_flag_CXX=unsupported
13384
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13385
# support --undefined. This deserves some investigation. FIXME
13386
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393
case $cc_basename in
13395
# FIXME: insert proper C++ library support
13401
cygwin* | mingw* | pw32* | cegcc*)
13402
case $GXX,$cc_basename in
13405
# hardcode_libdir_flag_spec is actually meaningless, as there is
13406
# no search path for DLLs.
13407
hardcode_libdir_flag_spec_CXX=' '
13408
allow_undefined_flag_CXX=unsupported
13409
always_export_symbols_CXX=yes
13410
file_list_spec_CXX='@'
13411
# Tell ltmain to make .lib files, not .a files.
13413
# Tell ltmain to make .dll files, not .so files.
13415
# FIXME: Setting linknames here is a bad hack.
13416
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13417
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13418
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13420
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13422
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13424
# The linker will not automatically build a static lib if we build a DLL.
13425
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13426
enable_shared_with_static_runtimes_CXX=yes
13428
old_postinstall_cmds_CXX='chmod 644 $oldlib'
13429
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13430
lt_tool_outputfile="@TOOL_OUTPUT@"~
13431
case $lt_outputfile in
13434
lt_outputfile="$lt_outputfile.exe"
13435
lt_tool_outputfile="$lt_tool_outputfile.exe"
13438
func_to_tool_file "$lt_outputfile"~
13439
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13440
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13441
$RM "$lt_outputfile.manifest";
13446
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13447
# as there is no search path for DLLs.
13448
hardcode_libdir_flag_spec_CXX='-L$libdir'
13449
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13450
allow_undefined_flag_CXX=unsupported
13451
always_export_symbols_CXX=no
13452
enable_shared_with_static_runtimes_CXX=yes
13454
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13455
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'
13456
# If the export-symbols file already is a .def file (1st line
13457
# is EXPORTS), use it as is; otherwise, prepend...
13458
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13459
cp $export_symbols $output_objdir/$soname.def;
13461
echo EXPORTS > $output_objdir/$soname.def;
13462
cat $export_symbols >> $output_objdir/$soname.def;
13464
$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'
13471
darwin* | rhapsody*)
13474
archive_cmds_need_lc_CXX=no
13475
hardcode_direct_CXX=no
13476
hardcode_automatic_CXX=yes
13477
hardcode_shlibpath_var_CXX=unsupported
13478
if test "$lt_cv_ld_force_load" = "yes"; then
13479
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\"`'
13482
whole_archive_flag_spec_CXX=''
13484
link_all_deplibs_CXX=yes
13485
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13486
case $cc_basename in
13487
ifort*) _lt_dar_can_shared=yes ;;
13488
*) _lt_dar_can_shared=$GCC ;;
13490
if test "$_lt_dar_can_shared" = "yes"; then
13491
output_verbose_link_cmd=func_echo_all
13492
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}"
13493
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13494
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}"
13495
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}"
13496
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13497
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}"
13498
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}"
13508
case $cc_basename in
13510
# FIXME: insert proper C++ library support
13514
# Green Hills C++ Compiler
13515
# FIXME: insert proper C++ library support
13519
# FIXME: insert proper C++ library support
13526
# C++ shared libraries reported to be fairly broken before
13532
archive_cmds_need_lc_CXX=no
13535
freebsd* | dragonfly*)
13536
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13542
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13543
link_all_deplibs_CXX=yes
13547
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13548
hardcode_libdir_separator_CXX=:
13549
export_dynamic_flag_spec_CXX='${wl}-E'
13550
hardcode_direct_CXX=yes
13551
hardcode_minus_L_CXX=yes # Not in the search PATH,
13552
# but as the default
13553
# location of the library.
13555
case $cc_basename in
13557
# FIXME: insert proper C++ library support
13561
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'
13562
# Commands to make compiler produce verbose output that lists
13563
# what "hidden" libraries, object files and flags are used when
13564
# linking a shared library.
13566
# There doesn't appear to be a way to prevent this compiler from
13567
# explicitly linking system object files so we need to strip them
13568
# from the output so that they don't get included in the library
13570
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"'
13573
if test "$GXX" = yes; then
13574
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'
13576
# FIXME: insert proper C++ library support
13584
if test $with_gnu_ld = no; then
13585
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13586
hardcode_libdir_separator_CXX=:
13592
export_dynamic_flag_spec_CXX='${wl}-E'
13598
hardcode_direct_CXX=no
13599
hardcode_shlibpath_var_CXX=no
13602
hardcode_direct_CXX=yes
13603
hardcode_direct_absolute_CXX=yes
13604
hardcode_minus_L_CXX=yes # Not in the search PATH,
13605
# but as the default
13606
# location of the library.
13610
case $cc_basename in
13612
# FIXME: insert proper C++ library support
13618
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13621
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13624
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13627
# Commands to make compiler produce verbose output that lists
13628
# what "hidden" libraries, object files and flags are used when
13629
# linking a shared library.
13631
# There doesn't appear to be a way to prevent this compiler from
13632
# explicitly linking system object files so we need to strip them
13633
# from the output so that they don't get included in the library
13635
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"'
13638
if test "$GXX" = yes; then
13639
if test $with_gnu_ld = no; then
13642
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13645
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13648
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'
13653
# FIXME: insert proper C++ library support
13661
hardcode_direct_CXX=no
13662
hardcode_shlibpath_var_CXX=no
13663
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13664
export_dynamic_flag_spec_CXX='${wl}-E'
13665
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13666
# Instead, shared libraries are loaded at an image base (0x10000000 by
13667
# default) and relocated if they conflict, which is a slow very memory
13668
# consuming and fragmenting process. To avoid this, we pick a random,
13669
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13670
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13671
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'
13672
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'
13675
case $cc_basename in
13678
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'
13680
# Archives containing C++ object files must be created using
13681
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13682
# necessary to make sure instantiated templates are included
13684
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13687
if test "$GXX" = yes; then
13688
if test "$with_gnu_ld" = no; then
13689
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'
13691
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'
13694
link_all_deplibs_CXX=yes
13697
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13698
hardcode_libdir_separator_CXX=:
13699
inherit_rpath_CXX=yes
13702
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13703
case $cc_basename in
13705
# Kuck and Associates, Inc. (KAI) C++ Compiler
13707
# KCC will only create a shared library if the output file
13708
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13709
# to its proper name (with version) after linking.
13710
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'
13711
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'
13712
# Commands to make compiler produce verbose output that lists
13713
# what "hidden" libraries, object files and flags are used when
13714
# linking a shared library.
13716
# There doesn't appear to be a way to prevent this compiler from
13717
# explicitly linking system object files so we need to strip them
13718
# from the output so that they don't get included in the library
13720
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"'
13722
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13723
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13725
# Archives containing C++ object files must be created using
13726
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13727
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13732
# version 8.0 and above of icpc choke on multiply defined symbols
13733
# if we add $predep_objects and $postdep_objects, however 7.1 and
13734
# earlier do not add the objects themselves.
13735
case `$CC -V 2>&1` in
13737
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13738
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'
13740
*) # Version 8.0 or newer
13743
ia64*) tmp_idyn=' -i_dynamic';;
13745
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13746
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'
13749
archive_cmds_need_lc_CXX=no
13750
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13751
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13752
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13755
# Portland Group C++ compiler
13757
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13758
prelink_cmds_CXX='tpldir=Template.dir~
13760
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13761
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13762
old_archive_cmds_CXX='tpldir=Template.dir~
13764
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13765
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13767
archive_cmds_CXX='tpldir=Template.dir~
13769
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13770
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13771
archive_expsym_cmds_CXX='tpldir=Template.dir~
13773
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13774
$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'
13776
*) # Version 6 and above use weak symbols
13777
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13778
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'
13782
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13783
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13784
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'
13788
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13789
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'
13791
runpath_var=LD_RUN_PATH
13792
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13793
hardcode_libdir_separator_CXX=:
13795
# Commands to make compiler produce verbose output that lists
13796
# what "hidden" libraries, object files and flags are used when
13797
# linking a shared library.
13799
# There doesn't appear to be a way to prevent this compiler from
13800
# explicitly linking system object files so we need to strip them
13801
# from the output so that they don't get included in the library
13803
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'
13805
xl* | mpixl* | bgxl*)
13806
# IBM XL 8.0 on PPC, with GNU ld
13807
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13808
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13809
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13810
if test "x$supports_anon_versioning" = xyes; then
13811
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13812
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13813
echo "local: *; };" >> $output_objdir/$libname.ver~
13814
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13818
case `$CC -V 2>&1 | sed 5q` in
13821
no_undefined_flag_CXX=' -zdefs'
13822
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13823
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'
13824
hardcode_libdir_flag_spec_CXX='-R$libdir'
13825
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'
13826
compiler_needs_object_CXX=yes
13828
# Not sure whether something based on
13829
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13831
output_verbose_link_cmd='func_echo_all'
13833
# Archives containing C++ object files must be created using
13834
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13835
# necessary to make sure instantiated templates are included
13837
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13845
# FIXME: insert proper C++ library support
13850
# FIXME: insert proper C++ library support
13855
case $cc_basename in
13857
# FIXME: insert proper C++ library support
13861
# FIXME: insert proper C++ library support
13868
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13869
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13871
hardcode_libdir_flag_spec_CXX='-R$libdir'
13872
hardcode_direct_CXX=yes
13873
hardcode_shlibpath_var_CXX=no
13875
# Workaround some broken pre-1.5 toolchains
13876
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13884
# C++ shared libraries are fairly broken
13889
if test -f /usr/libexec/ld.so; then
13890
hardcode_direct_CXX=yes
13891
hardcode_shlibpath_var_CXX=no
13892
hardcode_direct_absolute_CXX=yes
13893
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13894
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13895
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13896
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13897
export_dynamic_flag_spec_CXX='${wl}-E'
13898
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13900
output_verbose_link_cmd=func_echo_all
13906
osf3* | osf4* | osf5*)
13907
case $cc_basename in
13909
# Kuck and Associates, Inc. (KAI) C++ Compiler
13911
# KCC will only create a shared library if the output file
13912
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13913
# to its proper name (with version) after linking.
13914
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'
13916
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13917
hardcode_libdir_separator_CXX=:
13919
# Archives containing C++ object files must be created using
13920
# the KAI C++ compiler.
13922
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13923
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13927
# Rational C++ 2.4.1
13928
# FIXME: insert proper C++ library support
13934
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13935
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'
13936
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13939
allow_undefined_flag_CXX=' -expect_unresolved \*'
13940
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'
13941
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13942
echo "-hidden">> $lib.exp~
13943
$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~
13945
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13949
hardcode_libdir_separator_CXX=:
13951
# Commands to make compiler produce verbose output that lists
13952
# what "hidden" libraries, object files and flags are used when
13953
# linking a shared library.
13955
# There doesn't appear to be a way to prevent this compiler from
13956
# explicitly linking system object files so we need to strip them
13957
# from the output so that they don't get included in the library
13959
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"'
13962
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13963
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13966
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'
13969
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'
13973
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13974
hardcode_libdir_separator_CXX=:
13976
# Commands to make compiler produce verbose output that lists
13977
# what "hidden" libraries, object files and flags are used when
13978
# linking a shared library.
13979
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13982
# FIXME: insert proper C++ library support
13990
# FIXME: insert proper C++ library support
13995
case $cc_basename in
13998
# FIXME: insert proper C++ library support
14003
# FIXME: insert proper C++ library support
14007
# FIXME: insert proper C++ library support
14014
case $cc_basename in
14016
# Sun C++ 4.2, 5.x and Centerline C++
14017
archive_cmds_need_lc_CXX=yes
14018
no_undefined_flag_CXX=' -zdefs'
14019
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14020
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14021
$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'
14023
hardcode_libdir_flag_spec_CXX='-R$libdir'
14024
hardcode_shlibpath_var_CXX=no
14026
solaris2.[0-5] | solaris2.[0-5].*) ;;
14028
# The compiler driver will combine and reorder linker options,
14029
# but understands `-z linker_flag'.
14030
# Supported since Solaris 2.6 (maybe 2.5.1?)
14031
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14034
link_all_deplibs_CXX=yes
14036
output_verbose_link_cmd='func_echo_all'
14038
# Archives containing C++ object files must be created using
14039
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14040
# necessary to make sure instantiated templates are included
14042
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14045
# Green Hills C++ Compiler
14046
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14048
# The C++ compiler must be used to create the archive.
14049
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14052
# GNU C++ compiler with Solaris linker
14053
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14054
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14055
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14056
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14057
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14058
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14060
# Commands to make compiler produce verbose output that lists
14061
# what "hidden" libraries, object files and flags are used when
14062
# linking a shared library.
14063
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14065
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14067
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14068
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14069
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14071
# Commands to make compiler produce verbose output that lists
14072
# what "hidden" libraries, object files and flags are used when
14073
# linking a shared library.
14074
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14077
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14079
solaris2.[0-5] | solaris2.[0-5].*) ;;
14081
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14089
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14090
no_undefined_flag_CXX='${wl}-z,text'
14091
archive_cmds_need_lc_CXX=no
14092
hardcode_shlibpath_var_CXX=no
14093
runpath_var='LD_RUN_PATH'
14095
case $cc_basename in
14097
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14098
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14101
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14102
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14107
sysv5* | sco3.2v5* | sco5v6*)
14108
# Note: We can NOT use -z defs as we might desire, because we do not
14109
# link with -lc, and that would cause any symbols used from libc to
14110
# always be unresolved, which means just about no library would
14111
# ever link correctly. If we're not using GNU ld we use -z text
14112
# though, which does catch some bad symbols but isn't as heavy-handed
14114
no_undefined_flag_CXX='${wl}-z,text'
14115
allow_undefined_flag_CXX='${wl}-z,nodefs'
14116
archive_cmds_need_lc_CXX=no
14117
hardcode_shlibpath_var_CXX=no
14118
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14119
hardcode_libdir_separator_CXX=':'
14120
link_all_deplibs_CXX=yes
14121
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14122
runpath_var='LD_RUN_PATH'
14124
case $cc_basename in
14126
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14127
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14128
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14129
'"$old_archive_cmds_CXX"
14130
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14131
'"$reload_cmds_CXX"
14134
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14135
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14141
case $cc_basename in
14143
# NonStop-UX NCC 3.20
14144
# FIXME: insert proper C++ library support
14148
# FIXME: insert proper C++ library support
14155
# FIXME: insert proper C++ library support
14160
# FIXME: insert proper C++ library support
14165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14166
$as_echo "$ld_shlibs_CXX" >&6; }
14167
test "$ld_shlibs_CXX" = no && can_build_shared=no
14173
## There is no encapsulation within the following macros, do not change
14174
## the running order or otherwise move them around unless you know exactly
14175
## what you are doing...
14176
# Dependencies to place before and after the object being linked:
14177
predep_objects_CXX=
14178
postdep_objects_CXX=
14181
compiler_lib_search_path_CXX=
14183
cat > conftest.$ac_ext <<_LT_EOF
14187
Foo (void) { a = 0; }
14194
_lt_libdeps_save_CFLAGS=$CFLAGS
14195
case "$CC $CFLAGS " in #(
14196
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14197
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14198
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14201
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14202
(eval $ac_compile) 2>&5
14204
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14205
test $ac_status = 0; }; then
14206
# Parse the compiler output and extract the necessary
14207
# objects, libraries and library flags.
14209
# Sentinel used to keep track of whether or not we are before
14210
# the conftest object file.
14211
pre_test_object_deps_done=no
14213
for p in `eval "$output_verbose_link_cmd"`; do
14214
case ${prev}${p} in
14217
# Some compilers place space between "-{L,R}" and the path.
14218
# Remove the space.
14219
if test $p = "-L" ||
14220
test $p = "-R"; then
14225
# Expand the sysroot to ease extracting the directories later.
14226
if test -z "$prev"; then
14228
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14229
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14230
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14234
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14236
if test "$pre_test_object_deps_done" = no; then
14239
# Internal compiler library paths should come after those
14240
# provided the user. The postdeps already come after the
14241
# user supplied libs so there is no need to process them.
14242
if test -z "$compiler_lib_search_path_CXX"; then
14243
compiler_lib_search_path_CXX="${prev}${p}"
14245
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14248
# The "-l" case would never come before the object being
14249
# linked, so don't bother handling this case.
14252
if test -z "$postdeps_CXX"; then
14253
postdeps_CXX="${prev}${p}"
14255
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14261
*.lto.$objext) ;; # Ignore GCC LTO objects
14263
# This assumes that the test object file only shows up
14264
# once in the compiler output.
14265
if test "$p" = "conftest.$objext"; then
14266
pre_test_object_deps_done=yes
14270
if test "$pre_test_object_deps_done" = no; then
14271
if test -z "$predep_objects_CXX"; then
14272
predep_objects_CXX="$p"
14274
predep_objects_CXX="$predep_objects_CXX $p"
14277
if test -z "$postdep_objects_CXX"; then
14278
postdep_objects_CXX="$p"
14280
postdep_objects_CXX="$postdep_objects_CXX $p"
14285
*) ;; # Ignore the rest.
14293
echo "libtool.m4: error: problem compiling CXX test program"
14296
$RM -f confest.$objext
14297
CFLAGS=$_lt_libdeps_save_CFLAGS
14299
# PORTME: override above test on systems where it is broken
14302
# Interix 3.5 installs completely hosed .la files for C++, so rather than
14303
# hack all around it, let's just trust "g++" to DTRT.
14304
predep_objects_CXX=
14305
postdep_objects_CXX=
14310
case `$CC -V 2>&1 | sed 5q` in
14314
# The more standards-conforming stlport4 library is
14315
# incompatible with the Cstd library. Avoid specifying
14316
# it if it's in CXXFLAGS. Ignore libCrun as
14317
# -library=stlport4 depends on it.
14318
case " $CXX $CXXFLAGS " in
14319
*" -library=stlport4 "*)
14320
solaris_use_stlport4=yes
14324
if test "$solaris_use_stlport4" != yes; then
14325
postdeps_CXX='-library=Cstd -library=Crun'
14332
case $cc_basename in
14334
# The more standards-conforming stlport4 library is
14335
# incompatible with the Cstd library. Avoid specifying
14336
# it if it's in CXXFLAGS. Ignore libCrun as
14337
# -library=stlport4 depends on it.
14338
case " $CXX $CXXFLAGS " in
14339
*" -library=stlport4 "*)
14340
solaris_use_stlport4=yes
14344
# Adding this requires a known-good setup of shared libraries for
14345
# Sun compiler versions before 5.6, else PIC objects from an old
14346
# archive will be linked into the output, leading to subtle bugs.
14347
if test "$solaris_use_stlport4" != yes; then
14348
postdeps_CXX='-library=Cstd -library=Crun'
14356
case " $postdeps_CXX " in
14357
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14359
compiler_lib_search_dirs_CXX=
14360
if test -n "${compiler_lib_search_path_CXX}"; then
14361
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14394
lt_prog_compiler_wl_CXX=
14395
lt_prog_compiler_pic_CXX=
14396
lt_prog_compiler_static_CXX=
14399
# C++ specific cases for pic, static, wl, etc.
14400
if test "$GXX" = yes; then
14401
lt_prog_compiler_wl_CXX='-Wl,'
14402
lt_prog_compiler_static_CXX='-static'
14406
# All AIX code is PIC.
14407
if test "$host_cpu" = ia64; then
14408
# AIX 5 now supports IA64 processor
14409
lt_prog_compiler_static_CXX='-Bstatic'
14416
# see comment about AmigaOS4 .so support
14417
lt_prog_compiler_pic_CXX='-fPIC'
14420
# FIXME: we need at least 68020 code to build shared libraries, but
14421
# adding the `-m68020' flag to GCC prevents building anything better,
14423
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14428
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14429
# PIC is the default for these OSes.
14431
mingw* | cygwin* | os2* | pw32* | cegcc*)
14432
# This hack is so that the source file can tell whether it is being
14433
# built for inclusion in a dll (and should export symbols for example).
14434
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14435
# (--disable-auto-import) libraries
14436
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14438
darwin* | rhapsody*)
14439
# PIC is the default on this platform
14440
# Common symbols not allowed in MH_DYLIB files
14441
lt_prog_compiler_pic_CXX='-fno-common'
14444
# DJGPP does not support shared libraries at all
14445
lt_prog_compiler_pic_CXX=
14448
# PIC is the default for Haiku.
14449
# The "-static" flag exists, but is broken.
14450
lt_prog_compiler_static_CXX=
14453
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14454
# Instead, we relocate shared libraries at runtime.
14457
if test -d /usr/nec; then
14458
lt_prog_compiler_pic_CXX=-Kconform_pic
14462
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14463
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14464
# sets the default TLS model and affects inlining.
14469
lt_prog_compiler_pic_CXX='-fPIC'
14474
# QNX uses GNU C++, but need to define -shared option too, otherwise
14475
# it will coredump.
14476
lt_prog_compiler_pic_CXX='-fPIC -shared'
14479
lt_prog_compiler_pic_CXX='-fPIC'
14485
# All AIX code is PIC.
14486
if test "$host_cpu" = ia64; then
14487
# AIX 5 now supports IA64 processor
14488
lt_prog_compiler_static_CXX='-Bstatic'
14490
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14494
case $cc_basename in
14496
# Green Hills C++ Compiler
14497
# _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"
14501
mingw* | cygwin* | os2* | pw32* | cegcc*)
14502
# This hack is so that the source file can tell whether it is being
14503
# built for inclusion in a dll (and should export symbols for example).
14504
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14507
case $cc_basename in
14509
lt_prog_compiler_pic_CXX='-KPIC'
14512
# Green Hills C++ Compiler
14513
lt_prog_compiler_pic_CXX='-pic'
14519
freebsd* | dragonfly*)
14520
# FreeBSD uses GNU C++
14522
hpux9* | hpux10* | hpux11*)
14523
case $cc_basename in
14525
lt_prog_compiler_wl_CXX='-Wl,'
14526
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14527
if test "$host_cpu" != ia64; then
14528
lt_prog_compiler_pic_CXX='+Z'
14532
lt_prog_compiler_wl_CXX='-Wl,'
14533
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14539
lt_prog_compiler_pic_CXX='+Z'
14548
# This is c89, which is MS Visual C++ (no shared libs)
14549
# Anyone wants to do a port?
14551
irix5* | irix6* | nonstopux*)
14552
case $cc_basename in
14554
lt_prog_compiler_wl_CXX='-Wl,'
14555
lt_prog_compiler_static_CXX='-non_shared'
14556
# CC pic flag -KPIC is the default.
14562
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14563
case $cc_basename in
14566
lt_prog_compiler_wl_CXX='--backend -Wl,'
14567
lt_prog_compiler_pic_CXX='-fPIC'
14570
# old Intel C++ for x86_64 which still supported -KPIC.
14571
lt_prog_compiler_wl_CXX='-Wl,'
14572
lt_prog_compiler_pic_CXX='-KPIC'
14573
lt_prog_compiler_static_CXX='-static'
14576
# Intel C++, used to be incompatible with GCC.
14577
# ICC 10 doesn't accept -KPIC any more.
14578
lt_prog_compiler_wl_CXX='-Wl,'
14579
lt_prog_compiler_pic_CXX='-fPIC'
14580
lt_prog_compiler_static_CXX='-static'
14583
# Portland Group C++ compiler
14584
lt_prog_compiler_wl_CXX='-Wl,'
14585
lt_prog_compiler_pic_CXX='-fpic'
14586
lt_prog_compiler_static_CXX='-Bstatic'
14590
# Make sure the PIC flag is empty. It appears that all Alpha
14591
# Linux and Compaq Tru64 Unix objects are PIC.
14592
lt_prog_compiler_pic_CXX=
14593
lt_prog_compiler_static_CXX='-non_shared'
14595
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14596
# IBM XL 8.0, 9.0 on PPC and BlueGene
14597
lt_prog_compiler_wl_CXX='-Wl,'
14598
lt_prog_compiler_pic_CXX='-qpic'
14599
lt_prog_compiler_static_CXX='-qstaticlink'
14602
case `$CC -V 2>&1 | sed 5q` in
14605
lt_prog_compiler_pic_CXX='-KPIC'
14606
lt_prog_compiler_static_CXX='-Bstatic'
14607
lt_prog_compiler_wl_CXX='-Qoption ld '
14618
case $cc_basename in
14620
lt_prog_compiler_pic_CXX='-W c,exportall'
14626
netbsd* | netbsdelf*-gnu)
14629
# QNX uses GNU C++, but need to define -shared option too, otherwise
14630
# it will coredump.
14631
lt_prog_compiler_pic_CXX='-fPIC -shared'
14633
osf3* | osf4* | osf5*)
14634
case $cc_basename in
14636
lt_prog_compiler_wl_CXX='--backend -Wl,'
14639
# Rational C++ 2.4.1
14640
lt_prog_compiler_pic_CXX='-pic'
14643
# Digital/Compaq C++
14644
lt_prog_compiler_wl_CXX='-Wl,'
14645
# Make sure the PIC flag is empty. It appears that all Alpha
14646
# Linux and Compaq Tru64 Unix objects are PIC.
14647
lt_prog_compiler_pic_CXX=
14648
lt_prog_compiler_static_CXX='-non_shared'
14657
case $cc_basename in
14659
# Sun C++ 4.2, 5.x and Centerline C++
14660
lt_prog_compiler_pic_CXX='-KPIC'
14661
lt_prog_compiler_static_CXX='-Bstatic'
14662
lt_prog_compiler_wl_CXX='-Qoption ld '
14665
# Green Hills C++ Compiler
14666
lt_prog_compiler_pic_CXX='-PIC'
14673
case $cc_basename in
14676
lt_prog_compiler_pic_CXX='-pic'
14677
lt_prog_compiler_static_CXX='-Bstatic'
14681
lt_prog_compiler_pic_CXX='-pic'
14687
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14688
case $cc_basename in
14690
lt_prog_compiler_wl_CXX='-Wl,'
14691
lt_prog_compiler_pic_CXX='-KPIC'
14692
lt_prog_compiler_static_CXX='-Bstatic'
14697
case $cc_basename in
14699
# NonStop-UX NCC 3.20
14700
lt_prog_compiler_pic_CXX='-KPIC'
14709
lt_prog_compiler_can_build_shared_CXX=no
14715
# For platforms which do not support PIC, -DPIC is meaningless:
14717
lt_prog_compiler_pic_CXX=
14720
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14725
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14726
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14727
$as_echo_n "(cached) " >&6
14729
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14732
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14733
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14736
# Check to make sure the PIC flag actually works.
14738
if test -n "$lt_prog_compiler_pic_CXX"; then
14739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14740
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14741
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14742
$as_echo_n "(cached) " >&6
14744
lt_cv_prog_compiler_pic_works_CXX=no
14745
ac_outfile=conftest.$ac_objext
14746
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14747
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14748
# Insert the option either (1) after the last *FLAGS variable, or
14749
# (2) before a word containing "conftest.", or (3) at the end.
14750
# Note that $ac_compile itself does not contain backslashes and begins
14751
# with a dollar sign (not a hyphen), so the echo should work correctly.
14752
# The option is referenced via a variable to avoid confusing sed.
14753
lt_compile=`echo "$ac_compile" | $SED \
14754
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14755
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14756
-e 's:$: $lt_compiler_flag:'`
14757
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14758
(eval "$lt_compile" 2>conftest.err)
14760
cat conftest.err >&5
14761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762
if (exit $ac_status) && test -s "$ac_outfile"; then
14763
# The compiler can only warn and ignore the option if not recognized
14764
# So say no if there are warnings other than the usual output.
14765
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14766
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14767
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14768
lt_cv_prog_compiler_pic_works_CXX=yes
14774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14775
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14777
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14778
case $lt_prog_compiler_pic_CXX in
14780
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14783
lt_prog_compiler_pic_CXX=
14784
lt_prog_compiler_can_build_shared_CXX=no
14794
# Check to make sure the static flag actually works.
14796
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14798
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14799
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14800
$as_echo_n "(cached) " >&6
14802
lt_cv_prog_compiler_static_works_CXX=no
14803
save_LDFLAGS="$LDFLAGS"
14804
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14805
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14806
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14807
# The linker can only warn and ignore the option if not recognized
14808
# So say no if there are warnings
14809
if test -s conftest.err; then
14810
# Append any errors to the config.log.
14811
cat conftest.err 1>&5
14812
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14813
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14814
if diff conftest.exp conftest.er2 >/dev/null; then
14815
lt_cv_prog_compiler_static_works_CXX=yes
14818
lt_cv_prog_compiler_static_works_CXX=yes
14822
LDFLAGS="$save_LDFLAGS"
14825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14826
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14828
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14831
lt_prog_compiler_static_CXX=
14837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14838
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14839
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14840
$as_echo_n "(cached) " >&6
14842
lt_cv_prog_compiler_c_o_CXX=no
14843
$RM -r conftest 2>/dev/null
14847
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14849
lt_compiler_flag="-o out/conftest2.$ac_objext"
14850
# Insert the option either (1) after the last *FLAGS variable, or
14851
# (2) before a word containing "conftest.", or (3) at the end.
14852
# Note that $ac_compile itself does not contain backslashes and begins
14853
# with a dollar sign (not a hyphen), so the echo should work correctly.
14854
lt_compile=`echo "$ac_compile" | $SED \
14855
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14856
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14857
-e 's:$: $lt_compiler_flag:'`
14858
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14859
(eval "$lt_compile" 2>out/conftest.err)
14861
cat out/conftest.err >&5
14862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14865
# The compiler can only warn and ignore the option if not recognized
14866
# So say no if there are warnings
14867
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14868
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14869
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14870
lt_cv_prog_compiler_c_o_CXX=yes
14875
# SGI C++ compiler will create directory out/ii_files/ for
14876
# template instantiation
14877
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14878
$RM out/* && rmdir out
14884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14885
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14890
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14891
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14892
$as_echo_n "(cached) " >&6
14894
lt_cv_prog_compiler_c_o_CXX=no
14895
$RM -r conftest 2>/dev/null
14899
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14901
lt_compiler_flag="-o out/conftest2.$ac_objext"
14902
# Insert the option either (1) after the last *FLAGS variable, or
14903
# (2) before a word containing "conftest.", or (3) at the end.
14904
# Note that $ac_compile itself does not contain backslashes and begins
14905
# with a dollar sign (not a hyphen), so the echo should work correctly.
14906
lt_compile=`echo "$ac_compile" | $SED \
14907
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14908
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14909
-e 's:$: $lt_compiler_flag:'`
14910
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14911
(eval "$lt_compile" 2>out/conftest.err)
14913
cat out/conftest.err >&5
14914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14917
# The compiler can only warn and ignore the option if not recognized
14918
# So say no if there are warnings
14919
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14920
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14921
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14922
lt_cv_prog_compiler_c_o_CXX=yes
14927
# SGI C++ compiler will create directory out/ii_files/ for
14928
# template instantiation
14929
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14930
$RM out/* && rmdir out
14936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14937
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14942
hard_links="nottested"
14943
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14944
# do not overwrite the value of need_locks provided by the user
14945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14946
$as_echo_n "checking if we can lock with hard links... " >&6; }
14949
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14951
ln conftest.a conftest.b 2>&5 || hard_links=no
14952
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14954
$as_echo "$hard_links" >&6; }
14955
if test "$hard_links" = no; then
14956
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14957
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14967
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14969
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14970
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14973
# If we're using GNU nm, then we don't want the "-C" option.
14974
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14975
# Also, AIX nm treats weak defined symbols like other global defined
14976
# symbols, whereas GNU nm marks them as "W".
14977
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14978
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'
14980
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'
14984
export_symbols_cmds_CXX="$ltdll_cmds"
14986
cygwin* | mingw* | cegcc*)
14987
case $cc_basename in
14989
exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14992
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'
14993
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14997
linux* | k*bsd*-gnu | gnu*)
14998
link_all_deplibs_CXX=no
15001
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15006
$as_echo "$ld_shlibs_CXX" >&6; }
15007
test "$ld_shlibs_CXX" = no && can_build_shared=no
15009
with_gnu_ld_CXX=$with_gnu_ld
15017
# Do we need to explicitly link libc?
15019
case "x$archive_cmds_need_lc_CXX" in
15021
# Assume -lc should be added
15022
archive_cmds_need_lc_CXX=yes
15024
if test "$enable_shared" = yes && test "$GCC" = yes; then
15025
case $archive_cmds_CXX in
15027
# FIXME: we may have to deal with multi-command sequences.
15030
# Test whether the compiler implicitly links with -lc since on some
15031
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15032
# to ld, don't add -lc before -lgcc.
15033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15034
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15035
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15036
$as_echo_n "(cached) " >&6
15039
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15041
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15042
(eval $ac_compile) 2>&5
15044
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045
test $ac_status = 0; } 2>conftest.err; then
15048
libobjs=conftest.$ac_objext
15050
wl=$lt_prog_compiler_wl_CXX
15051
pic_flag=$lt_prog_compiler_pic_CXX
15057
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15058
allow_undefined_flag_CXX=
15059
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15060
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15062
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15063
test $ac_status = 0; }
15065
lt_cv_archive_cmds_need_lc_CXX=no
15067
lt_cv_archive_cmds_need_lc_CXX=yes
15069
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15071
cat conftest.err 1>&5
15076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15077
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15078
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15147
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15149
library_names_spec=
15150
libname_spec='lib$name'
15154
postuninstall_cmds=
15158
shlibpath_overrides_runpath=unknown
15160
dynamic_linker="$host_os ld.so"
15161
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15162
need_lib_prefix=unknown
15163
hardcode_into_libs=no
15165
# when you set need_version to no, make sure it does not cause -set_version
15166
# flags to be left without arguments
15167
need_version=unknown
15171
version_type=linux # correct to gnu/linux during the next big refactor
15172
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15173
shlibpath_var=LIBPATH
15175
# AIX 3 has no versioning support, so we append a major version to the name.
15176
soname_spec='${libname}${release}${shared_ext}$major'
15180
version_type=linux # correct to gnu/linux during the next big refactor
15183
hardcode_into_libs=yes
15184
if test "$host_cpu" = ia64; then
15185
# AIX 5 supports IA64
15186
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15187
shlibpath_var=LD_LIBRARY_PATH
15189
# With GCC up to 2.95.x, collect2 would create an import file
15190
# for dependence libraries. The import file would start with
15191
# the line `#! .'. This would cause the generated library to
15192
# depend on `.', always an invalid library. This was fixed in
15193
# development snapshots of GCC prior to 3.0.
15195
aix4 | aix4.[01] | aix4.[01].*)
15196
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15198
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15201
can_build_shared=no
15205
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15206
# soname into executable. Probably we can add versioning support to
15207
# collect2, so additional links can be useful in future.
15208
if test "$aix_use_runtimelinking" = yes; then
15209
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15210
# instead of lib<name>.a to let people know that these are not
15211
# typical AIX shared libraries.
15212
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214
# We preserve .a as extension for shared libraries through AIX4.2
15215
# and later when we are not doing run time linking.
15216
library_names_spec='${libname}${release}.a $libname.a'
15217
soname_spec='${libname}${release}${shared_ext}$major'
15219
shlibpath_var=LIBPATH
15226
# Since July 2007 AmigaOS4 officially supports .so libraries.
15227
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231
library_names_spec='$libname.ixlibrary $libname.a'
15232
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15233
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'
15239
library_names_spec='${libname}${shared_ext}'
15240
dynamic_linker="$host_os ld.so"
15241
shlibpath_var=LIBRARY_PATH
15245
version_type=linux # correct to gnu/linux during the next big refactor
15247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248
soname_spec='${libname}${release}${shared_ext}$major'
15249
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15250
shlibpath_var=LD_LIBRARY_PATH
15251
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15252
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15253
# the default ld.so.conf also contains /usr/contrib/lib and
15254
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15255
# libtool to hard-code these into programs
15258
cygwin* | mingw* | pw32* | cegcc*)
15259
version_type=windows
15264
case $GCC,$cc_basename in
15267
library_names_spec='$libname.dll.a'
15268
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15269
postinstall_cmds='base_file=`basename \${file}`~
15270
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15271
dldir=$destdir/`dirname \$dlpath`~
15272
test -d \$dldir || mkdir -p \$dldir~
15273
$install_prog $dir/$dlname \$dldir/$dlname~
15274
chmod a+x \$dldir/$dlname~
15275
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15276
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15278
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15279
dlpath=$dir/\$dldll~
15281
shlibpath_overrides_runpath=yes
15285
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15286
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15290
# MinGW DLLs use traditional 'lib' prefix
15291
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15294
# pw32 DLLs use 'pw' prefix rather than 'lib'
15295
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15298
dynamic_linker='Win32 ld.exe'
15303
libname_spec='$name'
15304
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15305
library_names_spec='${libname}.dll.lib'
15309
sys_lib_search_path_spec=
15312
for lt_path in $LIB
15315
# Let DOS variable expansion print the short 8.3 style file name.
15316
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15317
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15320
# Convert to MSYS style.
15321
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15324
# Convert to unix form, then to dos form, then back to unix form
15325
# but this time dos style (no spaces!) so that the unix form looks
15326
# like /cygdrive/c/PROGRA~1:/cygdr...
15327
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15328
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15329
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15332
sys_lib_search_path_spec="$LIB"
15333
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15334
# It is most probably a Windows format PATH.
15335
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15337
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15339
# FIXME: find the short name or the path components, as spaces are
15340
# common. (e.g. "Program Files" -> "PROGRA~1")
15344
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15345
postinstall_cmds='base_file=`basename \${file}`~
15346
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15347
dldir=$destdir/`dirname \$dlpath`~
15348
test -d \$dldir || mkdir -p \$dldir~
15349
$install_prog $dir/$dlname \$dldir/$dlname'
15350
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15351
dlpath=$dir/\$dldll~
15353
shlibpath_overrides_runpath=yes
15354
dynamic_linker='Win32 link.exe'
15358
# Assume MSVC wrapper
15359
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15360
dynamic_linker='Win32 ld.exe'
15363
# FIXME: first we should search . and the directory the executable is in
15367
darwin* | rhapsody*)
15368
dynamic_linker="$host_os dyld"
15369
version_type=darwin
15372
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15373
soname_spec='${libname}${release}${major}$shared_ext'
15374
shlibpath_overrides_runpath=yes
15375
shlibpath_var=DYLD_LIBRARY_PATH
15376
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15378
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15382
version_type=linux # correct to gnu/linux during the next big refactor
15385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15386
soname_spec='${libname}${release}${shared_ext}$major'
15387
shlibpath_var=LD_LIBRARY_PATH
15390
freebsd* | dragonfly*)
15391
# DragonFly does not have aout. When/if they implement a new
15392
# versioning mechanism, adjust this.
15393
if test -x /usr/bin/objformat; then
15394
objformat=`/usr/bin/objformat`
15397
freebsd[23].*) objformat=aout ;;
15398
*) objformat=elf ;;
15401
version_type=freebsd-$objformat
15402
case $version_type in
15404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15409
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15413
shlibpath_var=LD_LIBRARY_PATH
15416
shlibpath_overrides_runpath=yes
15418
freebsd3.[01]* | freebsdelf3.[01]*)
15419
shlibpath_overrides_runpath=yes
15420
hardcode_into_libs=yes
15422
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15423
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15424
shlibpath_overrides_runpath=no
15425
hardcode_into_libs=yes
15427
*) # from 4.6 on, and DragonFly
15428
shlibpath_overrides_runpath=yes
15429
hardcode_into_libs=yes
15435
version_type=linux # correct to gnu/linux during the next big refactor
15438
dynamic_linker="$host_os runtime_loader"
15439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15440
soname_spec='${libname}${release}${shared_ext}$major'
15441
shlibpath_var=LIBRARY_PATH
15442
shlibpath_overrides_runpath=yes
15443
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15444
hardcode_into_libs=yes
15447
hpux9* | hpux10* | hpux11*)
15448
# Give a soname corresponding to the major version so that dld.sl refuses to
15449
# link against other versions.
15456
hardcode_into_libs=yes
15457
dynamic_linker="$host_os dld.so"
15458
shlibpath_var=LD_LIBRARY_PATH
15459
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461
soname_spec='${libname}${release}${shared_ext}$major'
15462
if test "X$HPUX_IA64_MODE" = X32; then
15463
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15465
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15467
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15471
hardcode_into_libs=yes
15472
dynamic_linker="$host_os dld.sl"
15473
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15474
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15475
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476
soname_spec='${libname}${release}${shared_ext}$major'
15477
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15478
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15482
dynamic_linker="$host_os dld.sl"
15483
shlibpath_var=SHLIB_PATH
15484
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486
soname_spec='${libname}${release}${shared_ext}$major'
15489
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15490
postinstall_cmds='chmod 555 $lib'
15491
# or fails outright, so override atomically:
15492
install_override_mode=555
15496
version_type=linux # correct to gnu/linux during the next big refactor
15499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15500
soname_spec='${libname}${release}${shared_ext}$major'
15501
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15502
shlibpath_var=LD_LIBRARY_PATH
15503
shlibpath_overrides_runpath=no
15504
hardcode_into_libs=yes
15507
irix5* | irix6* | nonstopux*)
15509
nonstopux*) version_type=nonstopux ;;
15511
if test "$lt_cv_prog_gnu_ld" = yes; then
15512
version_type=linux # correct to gnu/linux during the next big refactor
15519
soname_spec='${libname}${release}${shared_ext}$major'
15520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15522
irix5* | nonstopux*)
15523
libsuff= shlibsuff=
15526
case $LD in # libtool.m4 will add one of these switches to LD
15527
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15528
libsuff= shlibsuff= libmagic=32-bit;;
15529
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15530
libsuff=32 shlibsuff=N32 libmagic=N32;;
15531
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15532
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15533
*) libsuff= shlibsuff= libmagic=never-match;;
15537
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15538
shlibpath_overrides_runpath=no
15539
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15540
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15541
hardcode_into_libs=yes
15544
# No shared lib support for Linux oldld, aout, or coff.
15545
linux*oldld* | linux*aout* | linux*coff*)
15549
# This must be glibc/ELF.
15550
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15551
version_type=linux # correct to gnu/linux during the next big refactor
15554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15555
soname_spec='${libname}${release}${shared_ext}$major'
15556
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15557
shlibpath_var=LD_LIBRARY_PATH
15558
shlibpath_overrides_runpath=no
15560
# Some binutils ld are patched to set DT_RUNPATH
15561
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15562
$as_echo_n "(cached) " >&6
15564
lt_cv_shlibpath_overrides_runpath=no
15565
save_LDFLAGS=$LDFLAGS
15566
save_libdir=$libdir
15567
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15568
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570
/* end confdefs.h. */
15580
if ac_fn_cxx_try_link "$LINENO"; then :
15581
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15582
lt_cv_shlibpath_overrides_runpath=yes
15585
rm -f core conftest.err conftest.$ac_objext \
15586
conftest$ac_exeext conftest.$ac_ext
15587
LDFLAGS=$save_LDFLAGS
15588
libdir=$save_libdir
15592
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15594
# This implies no fast_install, which is unacceptable.
15595
# Some rework will be needed to allow for fast_install
15596
# before this can be enabled.
15597
hardcode_into_libs=yes
15599
# Append ld.so.conf contents to the search path
15600
if test -f /etc/ld.so.conf; then
15601
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' ' '`
15602
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15605
# We used to test for /lib/ld.so.1 and disable shared libraries on
15606
# powerpc, because MkLinux only supported shared libraries with the
15607
# GNU dynamic linker. Since this was broken with cross compilers,
15608
# most powerpc-linux boxes support dynamic linking these days and
15609
# people can always --disable-shared, the test was removed, and we
15610
# assume the GNU/Linux dynamic linker is in use.
15611
dynamic_linker='GNU/Linux ld.so'
15618
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15619
soname_spec='${libname}${release}${shared_ext}$major'
15620
shlibpath_var=LD_LIBRARY_PATH
15621
shlibpath_overrides_runpath=no
15622
hardcode_into_libs=yes
15623
dynamic_linker='NetBSD ld.elf_so'
15630
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15632
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15633
dynamic_linker='NetBSD (a.out) ld.so'
15635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15636
soname_spec='${libname}${release}${shared_ext}$major'
15637
dynamic_linker='NetBSD ld.elf_so'
15639
shlibpath_var=LD_LIBRARY_PATH
15640
shlibpath_overrides_runpath=yes
15641
hardcode_into_libs=yes
15645
version_type=linux # correct to gnu/linux during the next big refactor
15646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647
shlibpath_var=LD_LIBRARY_PATH
15648
shlibpath_overrides_runpath=yes
15655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656
soname_spec='${libname}${release}${shared_ext}$major'
15657
shlibpath_var=LD_LIBRARY_PATH
15658
shlibpath_overrides_runpath=no
15659
hardcode_into_libs=yes
15660
dynamic_linker='ldqnx.so'
15665
sys_lib_dlsearch_path_spec="/usr/lib"
15667
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15669
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15670
*) need_version=no ;;
15672
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15674
shlibpath_var=LD_LIBRARY_PATH
15675
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15677
openbsd2.[89] | openbsd2.[89].*)
15678
shlibpath_overrides_runpath=no
15681
shlibpath_overrides_runpath=yes
15685
shlibpath_overrides_runpath=yes
15690
libname_spec='$name'
15693
library_names_spec='$libname${shared_ext} $libname.a'
15694
dynamic_linker='OS/2 ld.exe'
15695
shlibpath_var=LIBPATH
15698
osf3* | osf4* | osf5*)
15702
soname_spec='${libname}${release}${shared_ext}$major'
15703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704
shlibpath_var=LD_LIBRARY_PATH
15705
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15706
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15714
version_type=linux # correct to gnu/linux during the next big refactor
15717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718
soname_spec='${libname}${release}${shared_ext}$major'
15719
shlibpath_var=LD_LIBRARY_PATH
15720
shlibpath_overrides_runpath=yes
15721
hardcode_into_libs=yes
15722
# ldd complains unless libraries are executable
15723
postinstall_cmds='chmod +x $lib'
15728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15729
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15730
shlibpath_var=LD_LIBRARY_PATH
15731
shlibpath_overrides_runpath=yes
15732
if test "$with_gnu_ld" = yes; then
15739
version_type=linux # correct to gnu/linux during the next big refactor
15740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15741
soname_spec='${libname}${release}${shared_ext}$major'
15742
shlibpath_var=LD_LIBRARY_PATH
15743
case $host_vendor in
15745
shlibpath_overrides_runpath=no
15747
runpath_var=LD_RUN_PATH
15755
shlibpath_overrides_runpath=no
15756
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15762
if test -d /usr/nec ;then
15763
version_type=linux # correct to gnu/linux during the next big refactor
15764
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15765
soname_spec='$libname${shared_ext}.$major'
15766
shlibpath_var=LD_LIBRARY_PATH
15770
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15771
version_type=freebsd-elf
15774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15775
soname_spec='${libname}${release}${shared_ext}$major'
15776
shlibpath_var=LD_LIBRARY_PATH
15777
shlibpath_overrides_runpath=yes
15778
hardcode_into_libs=yes
15779
if test "$with_gnu_ld" = yes; then
15780
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15782
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15785
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15789
sys_lib_dlsearch_path_spec='/usr/lib'
15793
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15794
version_type=linux # correct to gnu/linux during the next big refactor
15797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15798
shlibpath_var=LD_LIBRARY_PATH
15799
shlibpath_overrides_runpath=no
15800
hardcode_into_libs=yes
15804
version_type=linux # correct to gnu/linux during the next big refactor
15805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806
soname_spec='${libname}${release}${shared_ext}$major'
15807
shlibpath_var=LD_LIBRARY_PATH
15814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15815
$as_echo "$dynamic_linker" >&6; }
15816
test "$dynamic_linker" = no && can_build_shared=no
15818
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15819
if test "$GCC" = yes; then
15820
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15823
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15824
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15826
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15827
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15868
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15869
hardcode_action_CXX=
15870
if test -n "$hardcode_libdir_flag_spec_CXX" ||
15871
test -n "$runpath_var_CXX" ||
15872
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15874
# We can hardcode non-existent directories.
15875
if test "$hardcode_direct_CXX" != no &&
15876
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15877
# have to relink, otherwise we might link with an installed library
15878
# when we should be linking with a yet-to-be-installed one
15879
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15880
test "$hardcode_minus_L_CXX" != no; then
15881
# Linking always hardcodes the temporary library directory.
15882
hardcode_action_CXX=relink
15884
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15885
hardcode_action_CXX=immediate
15888
# We cannot hardcode anything, or else we can only hardcode existing
15890
hardcode_action_CXX=unsupported
15892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15893
$as_echo "$hardcode_action_CXX" >&6; }
15895
if test "$hardcode_action_CXX" = relink ||
15896
test "$inherit_rpath_CXX" = yes; then
15897
# Fast installation is not supported
15898
enable_fast_install=no
15899
elif test "$shlibpath_overrides_runpath" = yes ||
15900
test "$enable_shared" = no; then
15901
# Fast installation is not necessary
15902
enable_fast_install=needless
15911
fi # test -n "$compiler"
15914
CFLAGS=$lt_save_CFLAGS
15918
with_gnu_ld=$lt_save_with_gnu_ld
15919
lt_cv_path_LDCXX=$lt_cv_path_LD
15920
lt_cv_path_LD=$lt_save_path_LD
15921
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15922
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15923
fi # test "$_lt_caught_CXX_error" != yes
15926
ac_cpp='$CXXCPP $CPPFLAGS'
15927
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15928
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15929
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15945
ac_config_commands="$ac_config_commands libtool"
15950
# Only expand once:
15961
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15962
if test -n "$ac_tool_prefix"; then
15963
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15964
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15966
$as_echo_n "checking for $ac_word... " >&6; }
15967
if ${ac_cv_path_PKG_CONFIG+:} false; then :
15968
$as_echo_n "(cached) " >&6
15970
case $PKG_CONFIG in
15972
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15976
for as_dir in $PATH
15979
test -z "$as_dir" && as_dir=.
15980
for ac_exec_ext in '' $ac_executable_extensions; do
15981
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15982
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15983
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15993
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15994
if test -n "$PKG_CONFIG"; then
15995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15996
$as_echo "$PKG_CONFIG" >&6; }
15998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999
$as_echo "no" >&6; }
16004
if test -z "$ac_cv_path_PKG_CONFIG"; then
16005
ac_pt_PKG_CONFIG=$PKG_CONFIG
16006
# Extract the first word of "pkg-config", so it can be a program name with args.
16007
set dummy pkg-config; ac_word=$2
16008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16009
$as_echo_n "checking for $ac_word... " >&6; }
16010
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16011
$as_echo_n "(cached) " >&6
16013
case $ac_pt_PKG_CONFIG in
16015
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16018
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16019
for as_dir in $PATH
16022
test -z "$as_dir" && as_dir=.
16023
for ac_exec_ext in '' $ac_executable_extensions; do
16024
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16025
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16026
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16036
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16037
if test -n "$ac_pt_PKG_CONFIG"; then
16038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16039
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16042
$as_echo "no" >&6; }
16045
if test "x$ac_pt_PKG_CONFIG" = x; then
16048
case $cross_compiling:$ac_tool_warned in
16050
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16051
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16052
ac_tool_warned=yes ;;
16054
PKG_CONFIG=$ac_pt_PKG_CONFIG
16057
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16061
if test -n "$PKG_CONFIG"; then
16062
_pkg_min_version=0.9.0
16063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16064
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16065
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16067
$as_echo "yes" >&6; }
16069
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16070
$as_echo "no" >&6; }
16076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBWIBBLE" >&5
16077
$as_echo_n "checking for LIBWIBBLE... " >&6; }
16079
if test -n "$LIBWIBBLE_CFLAGS"; then
16080
pkg_cv_LIBWIBBLE_CFLAGS="$LIBWIBBLE_CFLAGS"
16081
elif test -n "$PKG_CONFIG"; then
16082
if test -n "$PKG_CONFIG" && \
16083
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwibble\""; } >&5
16084
($PKG_CONFIG --exists --print-errors "libwibble") 2>&5
16086
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16087
test $ac_status = 0; }; then
16088
pkg_cv_LIBWIBBLE_CFLAGS=`$PKG_CONFIG --cflags "libwibble" 2>/dev/null`
16089
test "x$?" != "x0" && pkg_failed=yes
16096
if test -n "$LIBWIBBLE_LIBS"; then
16097
pkg_cv_LIBWIBBLE_LIBS="$LIBWIBBLE_LIBS"
16098
elif test -n "$PKG_CONFIG"; then
16099
if test -n "$PKG_CONFIG" && \
16100
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwibble\""; } >&5
16101
($PKG_CONFIG --exists --print-errors "libwibble") 2>&5
16103
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16104
test $ac_status = 0; }; then
16105
pkg_cv_LIBWIBBLE_LIBS=`$PKG_CONFIG --libs "libwibble" 2>/dev/null`
16106
test "x$?" != "x0" && pkg_failed=yes
16116
if test $pkg_failed = yes; then
16117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118
$as_echo "no" >&6; }
16120
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16121
_pkg_short_errors_supported=yes
16123
_pkg_short_errors_supported=no
16125
if test $_pkg_short_errors_supported = yes; then
16126
LIBWIBBLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwibble" 2>&1`
16128
LIBWIBBLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwibble" 2>&1`
16130
# Put the nasty error message in config.log where it belongs
16131
echo "$LIBWIBBLE_PKG_ERRORS" >&5
16133
as_fn_error $? "Package requirements (libwibble) were not met:
16135
$LIBWIBBLE_PKG_ERRORS
16137
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16138
installed software in a non-standard prefix.
16140
Alternatively, you may set the environment variables LIBWIBBLE_CFLAGS
16141
and LIBWIBBLE_LIBS to avoid the need to call pkg-config.
16142
See the pkg-config man page for more details." "$LINENO" 5
16143
elif test $pkg_failed = untried; then
16144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145
$as_echo "no" >&6; }
16146
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16147
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16148
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16149
is in your PATH or set the PKG_CONFIG environment variable to the full
16150
path to pkg-config.
16152
Alternatively, you may set the environment variables LIBWIBBLE_CFLAGS
16153
and LIBWIBBLE_LIBS to avoid the need to call pkg-config.
16154
See the pkg-config man page for more details.
16156
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16157
See \`config.log' for more details" "$LINENO" 5; }
16159
LIBWIBBLE_CFLAGS=$pkg_cv_LIBWIBBLE_CFLAGS
16160
LIBWIBBLE_LIBS=$pkg_cv_LIBWIBBLE_LIBS
16161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16162
$as_echo "yes" >&6; }
16170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTAGCOLL" >&5
16171
$as_echo_n "checking for LIBTAGCOLL... " >&6; }
16173
if test -n "$LIBTAGCOLL_CFLAGS"; then
16174
pkg_cv_LIBTAGCOLL_CFLAGS="$LIBTAGCOLL_CFLAGS"
16175
elif test -n "$PKG_CONFIG"; then
16176
if test -n "$PKG_CONFIG" && \
16177
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtagcoll2\""; } >&5
16178
($PKG_CONFIG --exists --print-errors "libtagcoll2") 2>&5
16180
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16181
test $ac_status = 0; }; then
16182
pkg_cv_LIBTAGCOLL_CFLAGS=`$PKG_CONFIG --cflags "libtagcoll2" 2>/dev/null`
16183
test "x$?" != "x0" && pkg_failed=yes
16190
if test -n "$LIBTAGCOLL_LIBS"; then
16191
pkg_cv_LIBTAGCOLL_LIBS="$LIBTAGCOLL_LIBS"
16192
elif test -n "$PKG_CONFIG"; then
16193
if test -n "$PKG_CONFIG" && \
16194
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtagcoll2\""; } >&5
16195
($PKG_CONFIG --exists --print-errors "libtagcoll2") 2>&5
16197
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16198
test $ac_status = 0; }; then
16199
pkg_cv_LIBTAGCOLL_LIBS=`$PKG_CONFIG --libs "libtagcoll2" 2>/dev/null`
16200
test "x$?" != "x0" && pkg_failed=yes
16210
if test $pkg_failed = yes; then
16211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16212
$as_echo "no" >&6; }
16214
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16215
_pkg_short_errors_supported=yes
16217
_pkg_short_errors_supported=no
16219
if test $_pkg_short_errors_supported = yes; then
16220
LIBTAGCOLL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtagcoll2" 2>&1`
16222
LIBTAGCOLL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtagcoll2" 2>&1`
16224
# Put the nasty error message in config.log where it belongs
16225
echo "$LIBTAGCOLL_PKG_ERRORS" >&5
16227
as_fn_error $? "Package requirements (libtagcoll2) were not met:
16229
$LIBTAGCOLL_PKG_ERRORS
16231
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16232
installed software in a non-standard prefix.
16234
Alternatively, you may set the environment variables LIBTAGCOLL_CFLAGS
16235
and LIBTAGCOLL_LIBS to avoid the need to call pkg-config.
16236
See the pkg-config man page for more details." "$LINENO" 5
16237
elif test $pkg_failed = untried; then
16238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16239
$as_echo "no" >&6; }
16240
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16241
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16242
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16243
is in your PATH or set the PKG_CONFIG environment variable to the full
16244
path to pkg-config.
16246
Alternatively, you may set the environment variables LIBTAGCOLL_CFLAGS
16247
and LIBTAGCOLL_LIBS to avoid the need to call pkg-config.
16248
See the pkg-config man page for more details.
16250
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16251
See \`config.log' for more details" "$LINENO" 5; }
16253
LIBTAGCOLL_CFLAGS=$pkg_cv_LIBTAGCOLL_CFLAGS
16254
LIBTAGCOLL_LIBS=$pkg_cv_LIBTAGCOLL_LIBS
16255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16256
$as_echo "yes" >&6; }
16264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEPT" >&5
16265
$as_echo_n "checking for LIBEPT... " >&6; }
16267
if test -n "$LIBEPT_CFLAGS"; then
16268
pkg_cv_LIBEPT_CFLAGS="$LIBEPT_CFLAGS"
16269
elif test -n "$PKG_CONFIG"; then
16270
if test -n "$PKG_CONFIG" && \
16271
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libept\""; } >&5
16272
($PKG_CONFIG --exists --print-errors "libept") 2>&5
16274
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16275
test $ac_status = 0; }; then
16276
pkg_cv_LIBEPT_CFLAGS=`$PKG_CONFIG --cflags "libept" 2>/dev/null`
16277
test "x$?" != "x0" && pkg_failed=yes
16284
if test -n "$LIBEPT_LIBS"; then
16285
pkg_cv_LIBEPT_LIBS="$LIBEPT_LIBS"
16286
elif test -n "$PKG_CONFIG"; then
16287
if test -n "$PKG_CONFIG" && \
16288
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libept\""; } >&5
16289
($PKG_CONFIG --exists --print-errors "libept") 2>&5
16291
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16292
test $ac_status = 0; }; then
16293
pkg_cv_LIBEPT_LIBS=`$PKG_CONFIG --libs "libept" 2>/dev/null`
16294
test "x$?" != "x0" && pkg_failed=yes
16304
if test $pkg_failed = yes; then
16305
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16306
$as_echo "no" >&6; }
16308
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16309
_pkg_short_errors_supported=yes
16311
_pkg_short_errors_supported=no
16313
if test $_pkg_short_errors_supported = yes; then
16314
LIBEPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libept" 2>&1`
16316
LIBEPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libept" 2>&1`
16318
# Put the nasty error message in config.log where it belongs
16319
echo "$LIBEPT_PKG_ERRORS" >&5
16321
as_fn_error $? "Package requirements (libept) were not met:
16325
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16326
installed software in a non-standard prefix.
16328
Alternatively, you may set the environment variables LIBEPT_CFLAGS
16329
and LIBEPT_LIBS to avoid the need to call pkg-config.
16330
See the pkg-config man page for more details." "$LINENO" 5
16331
elif test $pkg_failed = untried; then
16332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16333
$as_echo "no" >&6; }
16334
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16335
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16336
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16337
is in your PATH or set the PKG_CONFIG environment variable to the full
16338
path to pkg-config.
16340
Alternatively, you may set the environment variables LIBEPT_CFLAGS
16341
and LIBEPT_LIBS to avoid the need to call pkg-config.
16342
See the pkg-config man page for more details.
16344
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16345
See \`config.log' for more details" "$LINENO" 5; }
16347
LIBEPT_CFLAGS=$pkg_cv_LIBEPT_CFLAGS
16348
LIBEPT_LIBS=$pkg_cv_LIBEPT_LIBS
16349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16350
$as_echo "yes" >&6; }
16356
databasedir="$localstatedir/lib/$PACKAGE"
16359
pkgcachedir="$localstatedir/cache/$PACKAGE"
16362
confdir="$sysconfdir/$PACKAGE"
16365
bashcompdir="$sysconfdir/bash_completion.d"
16369
# Extract the first word of "apt-get", so it can be a program name with args.
16370
set dummy apt-get; ac_word=$2
16371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16372
$as_echo_n "checking for $ac_word... " >&6; }
16373
if ${ac_cv_path_APTGET+:} false; then :
16374
$as_echo_n "(cached) " >&6
16378
ac_cv_path_APTGET="$APTGET" # Let the user override the test with a path.
16381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16382
for as_dir in $PATH
16385
test -z "$as_dir" && as_dir=.
16386
for ac_exec_ext in '' $ac_executable_extensions; do
16387
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16388
ac_cv_path_APTGET="$as_dir/$ac_word$ac_exec_ext"
16389
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16396
test -z "$ac_cv_path_APTGET" && ac_cv_path_APTGET="/usr/bin/apt-get"
16400
APTGET=$ac_cv_path_APTGET
16401
if test -n "$APTGET"; then
16402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APTGET" >&5
16403
$as_echo "$APTGET" >&6; }
16405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406
$as_echo "no" >&6; }
16412
cat >>confdefs.h <<_ACEOF
16413
#define APTGET "$APTGET"
16418
#extra_warnings="-W -Wsystem-headers -Wfloat-equal -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wpadded -Wredundant-decls -Wunreachable-code -Winline -Wlong-long -Wdisabled-optimization"
16419
CXXFLAGS="$extra_warnings $CXXFLAGS"
16421
ac_config_files="$ac_config_files Makefile doc/Makefile"
16423
cat >confcache <<\_ACEOF
16424
# This file is a shell script that caches the results of configure
16425
# tests run on this system so they can be shared between configure
16426
# scripts and configure runs, see configure's option --config-cache.
16427
# It is not useful on other systems. If it contains results you don't
16428
# want to keep, you may remove or edit it.
16430
# config.status only pays attention to the cache file if you give it
16431
# the --recheck option to rerun configure.
16433
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16434
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16435
# following values.
16439
# The following way of writing the cache mishandles newlines in values,
16440
# but we know of no workaround that is simple, portable, and efficient.
16441
# So, we kill variables containing newlines.
16442
# Ultrix sh set writes to stderr and can't be redirected directly,
16443
# and sets the high bit in the cache file unless we assign to the vars.
16445
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16446
eval ac_val=\$$ac_var
16450
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16451
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16454
_ | IFS | as_nl) ;; #(
16455
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16456
*) { eval $ac_var=; unset $ac_var;} ;;
16462
case $as_nl`(ac_space=' '; set) 2>&1` in #(
16463
*${as_nl}ac_space=\ *)
16464
# `set' does not quote correctly, so add quotes: double-quote
16465
# substitution turns \\\\ into \\, and sed turns \\ into \.
16468
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16471
# `set' quotes correctly as required by POSIX, so do not add quotes.
16472
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16481
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16483
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16485
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16486
if test -w "$cache_file"; then
16487
if test "x$cache_file" != "x/dev/null"; then
16488
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16489
$as_echo "$as_me: updating cache $cache_file" >&6;}
16490
if test ! -f "$cache_file" || test -h "$cache_file"; then
16491
cat confcache >"$cache_file"
16493
case $cache_file in #(
16495
mv -f confcache "$cache_file"$$ &&
16496
mv -f "$cache_file"$$ "$cache_file" ;; #(
16498
mv -f confcache "$cache_file" ;;
16503
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16504
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16509
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16510
# Let make expand exec_prefix.
16511
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16513
DEFS=-DHAVE_CONFIG_H
16517
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16518
# 1. Remove the extension, and $U if already installed.
16519
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16520
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16521
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16522
# will be set to the directory where LIBOBJS objects are built.
16523
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16524
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16526
LIBOBJS=$ac_libobjs
16528
LTLIBOBJS=$ac_ltlibobjs
16531
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16532
$as_echo_n "checking that generated files are newer than configure... " >&6; }
16533
if test -n "$am_sleep_pid"; then
16534
# Hide warnings about reused PIDs.
16535
wait $am_sleep_pid 2>/dev/null
16537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16538
$as_echo "done" >&6; }
16539
if test -n "$EXEEXT"; then
16541
am__EXEEXT_FALSE='#'
16543
am__EXEEXT_TRUE='#'
16547
if test -z "${DO_DOCS_TRUE}" && test -z "${DO_DOCS_FALSE}"; then
16548
as_fn_error $? "conditional \"DO_DOCS\" was never defined.
16549
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16552
as_fn_error $? "conditional \"AMDEP\" was never defined.
16553
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16556
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16557
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16560
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16561
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16564
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16565
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568
: "${CONFIG_STATUS=./config.status}"
16570
ac_clean_files_save=$ac_clean_files
16571
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16572
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16573
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16575
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16577
# Generated by $as_me.
16578
# Run this file to recreate the current configuration.
16579
# Compiler output produced by configure, useful for debugging
16580
# configure, is in config.log if it exists.
16583
ac_cs_recheck=false
16586
SHELL=\${CONFIG_SHELL-$SHELL}
16589
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16590
## -------------------- ##
16591
## M4sh Initialization. ##
16592
## -------------------- ##
16594
# Be more Bourne compatible
16595
DUALCASE=1; export DUALCASE # for MKS sh
16596
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16599
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16600
# is contrary to our usage. Disable this feature.
16601
alias -g '${1+"$@"}'='"$@"'
16602
setopt NO_GLOB_SUBST
16604
case `(set -o) 2>/dev/null` in #(
16616
# Printing a long string crashes Solaris 7 /usr/bin/printf.
16617
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16618
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16619
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16620
# Prefer a ksh shell builtin over an external printf program on Solaris,
16621
# but without wasting forks for bash or zsh.
16622
if test -z "$BASH_VERSION$ZSH_VERSION" \
16623
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16624
as_echo='print -r --'
16625
as_echo_n='print -rn --'
16626
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16627
as_echo='printf %s\n'
16628
as_echo_n='printf %s'
16630
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16631
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16632
as_echo_n='/usr/ucb/echo -n'
16634
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16635
as_echo_n_body='eval
16639
expr "X$arg" : "X\\(.*\\)$as_nl";
16640
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16642
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16644
export as_echo_n_body
16645
as_echo_n='sh -c $as_echo_n_body as_echo'
16647
export as_echo_body
16648
as_echo='sh -c $as_echo_body as_echo'
16651
# The user is always right.
16652
if test "${PATH_SEPARATOR+set}" != set; then
16654
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16655
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16662
# We need space, tab and new line, in precisely that order. Quoting is
16663
# there to prevent editors from complaining about space-tab.
16664
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16665
# splitting by setting IFS to empty value.)
16668
# Find who we are. Look in the path if we contain no directory separator.
16671
*[\\/]* ) as_myself=$0 ;;
16672
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16673
for as_dir in $PATH
16676
test -z "$as_dir" && as_dir=.
16677
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16683
# We did not find ourselves, most probably we were run as `sh COMMAND'
16684
# in which case we are not to be found in the path.
16685
if test "x$as_myself" = x; then
16688
if test ! -f "$as_myself"; then
16689
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16693
# Unset variables that we do not need and which cause bugs (e.g. in
16694
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16695
# suppresses any "Segmentation fault" message there. '((' could
16696
# trigger a bug in pdksh 5.2.14.
16697
for as_var in BASH_ENV ENV MAIL MAILPATH
16698
do eval test x\${$as_var+set} = xset \
16699
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16712
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16715
# as_fn_error STATUS ERROR [LINENO LOG_FD]
16716
# ----------------------------------------
16717
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16718
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16719
# script with STATUS, using 1 if that was 0.
16722
as_status=$1; test $as_status -eq 0 && as_status=1
16724
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16725
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16727
$as_echo "$as_me: error: $2" >&2
16728
as_fn_exit $as_status
16732
# as_fn_set_status STATUS
16733
# -----------------------
16734
# Set $? to STATUS, without forking.
16735
as_fn_set_status ()
16738
} # as_fn_set_status
16740
# as_fn_exit STATUS
16741
# -----------------
16742
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16746
as_fn_set_status $1
16752
# Portably unset VAR.
16755
{ eval $1=; unset $1;}
16757
as_unset=as_fn_unset
16758
# as_fn_append VAR VALUE
16759
# ----------------------
16760
# Append the text in VALUE to the end of the definition contained in VAR. Take
16761
# advantage of any shell optimizations that allow amortized linear growth over
16762
# repeated appends, instead of the typical quadratic growth present in naive
16764
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16765
eval 'as_fn_append ()
16776
# as_fn_arith ARG...
16777
# ------------------
16778
# Perform arithmetic evaluation on the ARGs, and store the result in the
16779
# global $as_val. Take advantage of shells that can avoid forks. The arguments
16780
# must be portable across $(()) and expr.
16781
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16782
eval 'as_fn_arith ()
16789
as_val=`expr "$@" || test $? -eq 1`
16794
if expr a : '\(a\)' >/dev/null 2>&1 &&
16795
test "X`expr 00001 : '.*\(...\)'`" = X001; then
16801
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16802
as_basename=basename
16807
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16813
as_me=`$as_basename -- "$0" ||
16814
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16815
X"$0" : 'X\(//\)$' \| \
16816
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16818
sed '/^.*\/\([^/][^/]*\)\/*$/{
16832
# Avoid depending upon Character Ranges.
16833
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16834
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16835
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16836
as_cr_digits='0123456789'
16837
as_cr_alnum=$as_cr_Letters$as_cr_digits
16839
ECHO_C= ECHO_N= ECHO_T=
16840
case `echo -n x` in #(((((
16842
case `echo 'xy\c'` in
16843
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
16845
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16852
rm -f conf$$ conf$$.exe conf$$.file
16853
if test -d conf$$.dir; then
16854
rm -f conf$$.dir/conf$$.file
16857
mkdir conf$$.dir 2>/dev/null
16859
if (echo >conf$$.file) 2>/dev/null; then
16860
if ln -s conf$$.file conf$$ 2>/dev/null; then
16862
# ... but there are two gotchas:
16863
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16864
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16865
# In both cases, we have to default to `cp -pR'.
16866
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16868
elif ln conf$$.file conf$$ 2>/dev/null; then
16876
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16877
rmdir conf$$.dir 2>/dev/null
16882
# Create "$as_dir" as a directory, including parents if necessary.
16887
-*) as_dir=./$as_dir;;
16889
test -d "$as_dir" || eval $as_mkdir_p || {
16893
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16894
*) as_qdir=$as_dir;;
16896
as_dirs="'$as_qdir' $as_dirs"
16897
as_dir=`$as_dirname -- "$as_dir" ||
16898
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16899
X"$as_dir" : 'X\(//\)[^/]' \| \
16900
X"$as_dir" : 'X\(//\)$' \| \
16901
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16902
$as_echo X"$as_dir" |
16903
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16907
/^X\(\/\/\)[^/].*/{
16920
test -d "$as_dir" && break
16922
test -z "$as_dirs" || eval "mkdir $as_dirs"
16923
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16927
if mkdir -p . 2>/dev/null; then
16928
as_mkdir_p='mkdir -p "$as_dir"'
16930
test -d ./-p && rmdir ./-p
16935
# as_fn_executable_p FILE
16936
# -----------------------
16937
# Test if FILE is an executable regular file.
16938
as_fn_executable_p ()
16940
test -f "$1" && test -x "$1"
16941
} # as_fn_executable_p
16942
as_test_x='test -x'
16943
as_executable_p=as_fn_executable_p
16945
# Sed expression to map a string onto a valid CPP name.
16946
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16948
# Sed expression to map a string onto a valid variable name.
16949
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16953
## ----------------------------------- ##
16954
## Main body of $CONFIG_STATUS script. ##
16955
## ----------------------------------- ##
16957
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16959
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16960
# Save the log message, to keep $0 and so on meaningful, and to
16961
# report actual input values of CONFIG_FILES etc. instead of their
16962
# values after options handling.
16964
This file was extended by debtags $as_me 1.12.2, which was
16965
generated by GNU Autoconf 2.69. Invocation command line was
16967
CONFIG_FILES = $CONFIG_FILES
16968
CONFIG_HEADERS = $CONFIG_HEADERS
16969
CONFIG_LINKS = $CONFIG_LINKS
16970
CONFIG_COMMANDS = $CONFIG_COMMANDS
16973
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16978
case $ac_config_files in *"
16979
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16982
case $ac_config_headers in *"
16983
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16987
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16988
# Files that config.status was made for.
16989
config_files="$ac_config_files"
16990
config_headers="$ac_config_headers"
16991
config_commands="$ac_config_commands"
16995
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16997
\`$as_me' instantiates files and other configuration actions
16998
from templates according to the current configuration. Unless the files
16999
and actions are specified as TAGs, all are instantiated by default.
17001
Usage: $0 [OPTION]... [TAG]...
17003
-h, --help print this help, then exit
17004
-V, --version print version number and configuration settings, then exit
17005
--config print configuration, then exit
17006
-q, --quiet, --silent
17007
do not print progress messages
17008
-d, --debug don't remove temporary files
17009
--recheck update $as_me by reconfiguring in the same conditions
17010
--file=FILE[:TEMPLATE]
17011
instantiate the configuration file FILE
17012
--header=FILE[:TEMPLATE]
17013
instantiate the configuration header FILE
17015
Configuration files:
17018
Configuration headers:
17021
Configuration commands:
17024
Report bugs to <enrico@debian.org>."
17027
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17030
debtags config.status 1.12.2
17031
configured by $0, generated by GNU Autoconf 2.69,
17032
with options \\"\$ac_cs_config\\"
17034
Copyright (C) 2012 Free Software Foundation, Inc.
17035
This config.status script is free software; the Free Software Foundation
17036
gives unlimited permission to copy, distribute and modify it."
17043
test -n "\$AWK" || AWK=awk
17046
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17047
# The default lists apply if the user does not specify any file.
17053
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17054
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17058
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17070
# Handling of the options.
17071
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17073
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17074
$as_echo "$ac_cs_version"; exit ;;
17075
--config | --confi | --conf | --con | --co | --c )
17076
$as_echo "$ac_cs_config"; exit ;;
17077
--debug | --debu | --deb | --de | --d | -d )
17079
--file | --fil | --fi | --f )
17082
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17083
'') as_fn_error $? "missing file argument" ;;
17085
as_fn_append CONFIG_FILES " '$ac_optarg'"
17086
ac_need_defaults=false;;
17087
--header | --heade | --head | --hea )
17090
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17092
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17093
ac_need_defaults=false;;
17095
# Conflict between --help and --header
17096
as_fn_error $? "ambiguous option: \`$1'
17097
Try \`$0 --help' for more information.";;
17098
--help | --hel | -h )
17099
$as_echo "$ac_cs_usage"; exit ;;
17100
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
17101
| -silent | --silent | --silen | --sile | --sil | --si | --s)
17104
# This is an error.
17105
-*) as_fn_error $? "unrecognized option: \`$1'
17106
Try \`$0 --help' for more information." ;;
17108
*) as_fn_append ac_config_targets " $1"
17109
ac_need_defaults=false ;;
17115
ac_configure_extra_args=
17117
if $ac_cs_silent; then
17119
ac_configure_extra_args="$ac_configure_extra_args --silent"
17123
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17124
if \$ac_cs_recheck; then
17125
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17127
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17128
CONFIG_SHELL='$SHELL'
17129
export CONFIG_SHELL
17134
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17138
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17139
## Running $as_me. ##
17145
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17149
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17152
# The HP-UX ksh and POSIX shell print the target directory to stdout
17153
# if CDPATH is set.
17154
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17156
sed_quote_subst='$sed_quote_subst'
17157
double_quote_subst='$double_quote_subst'
17158
delay_variable_subst='$delay_variable_subst'
17159
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17160
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17161
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17162
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17163
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17164
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17165
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17166
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17167
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17168
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17169
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17170
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17171
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17172
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17173
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17174
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17175
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17176
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17177
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17178
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17179
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17180
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17181
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17182
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17183
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17184
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17185
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17186
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17187
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17188
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17189
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17190
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17191
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17192
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17193
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17194
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17195
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17196
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17197
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17198
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17199
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17200
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17201
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17202
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17203
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17204
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17205
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17206
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17207
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17208
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17209
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17210
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17211
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17212
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17213
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17214
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17215
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"`'
17216
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17217
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17218
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17219
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17220
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17221
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17222
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17223
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17224
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17225
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17226
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17227
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17228
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17229
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17230
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17231
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17232
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17233
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17234
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17235
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17236
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17237
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17238
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17239
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17240
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17241
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17242
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17243
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17244
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17245
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17246
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17247
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17248
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17249
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17250
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17251
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17252
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17253
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17254
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17255
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17256
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17257
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17258
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17259
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17260
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17261
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17262
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17263
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17264
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17265
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17266
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17267
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17268
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17269
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17270
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17271
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17272
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17273
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17274
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17275
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17276
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17277
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17278
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17279
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17280
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17281
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17282
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17283
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17284
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17285
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17286
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17287
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17288
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17289
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17290
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17291
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17292
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17293
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17294
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17295
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17296
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17297
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17298
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17299
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17300
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17301
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17302
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17303
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17304
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17305
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17306
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17307
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17308
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17309
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17310
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17311
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17312
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17313
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17314
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17315
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17316
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17317
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17318
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17319
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17320
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17321
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17322
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17323
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17324
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17325
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17326
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17327
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17328
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17329
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17330
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17331
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17332
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17333
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17334
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17335
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17336
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17337
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17338
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17339
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17340
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17341
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17342
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17345
LTCFLAGS='$LTCFLAGS'
17346
compiler='$compiler_DEFAULT'
17348
# A function that is used when there is no print builtin or printf.
17349
func_fallback_echo ()
17351
eval 'cat <<_LTECHO_EOF
17356
# Quote evaled strings.
17371
deplibs_check_method \
17376
sharedlib_from_linklib_cmd \
17379
archiver_list_spec \
17385
lt_cv_sys_global_symbol_pipe \
17386
lt_cv_sys_global_symbol_to_cdecl \
17387
lt_cv_sys_global_symbol_to_c_name_address \
17388
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17389
nm_file_list_spec \
17390
lt_prog_compiler_no_builtin_flag \
17391
lt_prog_compiler_pic \
17392
lt_prog_compiler_wl \
17393
lt_prog_compiler_static \
17394
lt_cv_prog_compiler_c_o \
17403
export_dynamic_flag_spec \
17404
whole_archive_flag_spec \
17405
compiler_needs_object \
17407
allow_undefined_flag \
17408
no_undefined_flag \
17409
hardcode_libdir_flag_spec \
17410
hardcode_libdir_separator \
17414
variables_saved_for_relink \
17416
library_names_spec \
17418
install_override_mode \
17422
compiler_lib_search_dirs \
17427
compiler_lib_search_path \
17431
lt_prog_compiler_no_builtin_flag_CXX \
17432
lt_prog_compiler_pic_CXX \
17433
lt_prog_compiler_wl_CXX \
17434
lt_prog_compiler_static_CXX \
17435
lt_cv_prog_compiler_c_o_CXX \
17436
export_dynamic_flag_spec_CXX \
17437
whole_archive_flag_spec_CXX \
17438
compiler_needs_object_CXX \
17440
allow_undefined_flag_CXX \
17441
no_undefined_flag_CXX \
17442
hardcode_libdir_flag_spec_CXX \
17443
hardcode_libdir_separator_CXX \
17444
exclude_expsyms_CXX \
17445
include_expsyms_CXX \
17446
file_list_spec_CXX \
17447
compiler_lib_search_dirs_CXX \
17448
predep_objects_CXX \
17449
postdep_objects_CXX \
17452
compiler_lib_search_path_CXX; do
17453
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17454
*[\\\\\\\`\\"\\\$]*)
17455
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17458
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17463
# Double-quote double-evaled strings.
17464
for var in reload_cmds \
17465
old_postinstall_cmds \
17466
old_postuninstall_cmds \
17468
extract_expsyms_cmds \
17469
old_archive_from_new_cmds \
17470
old_archive_from_expsyms_cmds \
17472
archive_expsym_cmds \
17474
module_expsym_cmds \
17475
export_symbols_cmds \
17479
postuninstall_cmds \
17481
sys_lib_search_path_spec \
17482
sys_lib_dlsearch_path_spec \
17484
old_archive_cmds_CXX \
17485
old_archive_from_new_cmds_CXX \
17486
old_archive_from_expsyms_cmds_CXX \
17488
archive_expsym_cmds_CXX \
17490
module_expsym_cmds_CXX \
17491
export_symbols_cmds_CXX \
17493
postlink_cmds_CXX; do
17494
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17495
*[\\\\\\\`\\"\\\$]*)
17496
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17499
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17504
ac_aux_dir='$ac_aux_dir'
17505
xsi_shell='$xsi_shell'
17506
lt_shell_append='$lt_shell_append'
17508
# See if we are running on zsh, and set the options which allow our
17509
# commands through without removal of \ escapes INIT.
17510
if test -n "\${ZSH_VERSION+set}" ; then
17511
setopt NO_GLOB_SUBST
17517
TIMESTAMP='$TIMESTAMP'
17528
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17530
# Handling of arguments.
17531
for ac_config_target in $ac_config_targets
17533
case $ac_config_target in
17534
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17535
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17536
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17537
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17538
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17540
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17545
# If the user did not use the arguments to specify the items to instantiate,
17546
# then the envvar interface is used. Set only those that are not.
17547
# We use the long form for the default assignment because of an extremely
17548
# bizarre bug on SunOS 4.1.3.
17549
if $ac_need_defaults; then
17550
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17551
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17552
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17555
# Have a temporary directory for convenience. Make it in the build tree
17556
# simply because there is no reason against having it here, and in addition,
17557
# creating and moving files from /tmp can sometimes cause problems.
17558
# Hook for its removal unless debugging.
17559
# Note that there is a small window in which the directory will not be cleaned:
17560
# after its creation but before its name has been assigned to `$tmp'.
17564
trap 'exit_status=$?
17565
: "${ac_tmp:=$tmp}"
17566
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17568
trap 'as_fn_exit 1' 1 2 13 15
17570
# Create a (secure) tmp directory for tmp files.
17573
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17577
tmp=./conf$$-$RANDOM
17578
(umask 077 && mkdir "$tmp")
17579
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17582
# Set up the scripts for CONFIG_FILES section.
17583
# No need to generate them if there are no CONFIG_FILES.
17584
# This happens for instance with `./config.status config.h'.
17585
if test -n "$CONFIG_FILES"; then
17588
ac_cr=`echo X | tr X '\015'`
17589
# On cygwin, bash can eat \r inside `` if the user requested igncr.
17590
# But we know of no other shell where ac_cr would be empty at this
17591
# point, so we can use a bashism as a fallback.
17592
if test "x$ac_cr" = x; then
17593
eval ac_cr=\$\'\\r\'
17595
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17596
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17599
ac_cs_awk_cr=$ac_cr
17602
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17607
echo "cat >conf$$subs.awk <<_ACEOF" &&
17608
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17610
} >conf$$subs.sh ||
17611
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17612
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17614
for ac_last_try in false false false false false :; do
17615
. ./conf$$subs.sh ||
17616
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17618
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17619
if test $ac_delim_n = $ac_delim_num; then
17621
elif $ac_last_try; then
17622
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17624
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17627
rm -f conf$$subs.sh
17629
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17630
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17634
s/^/S["/; s/!.*/"]=/
17644
s/\(.\{148\}\)..*/\1/
17646
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17651
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17658
s/\(.\{148\}\)..*/\1/
17660
s/["\\]/\\&/g; s/^/"/; s/$/"/
17664
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17669
' <conf$$subs.awk | sed '
17674
' >>$CONFIG_STATUS || ac_write_fail=1
17675
rm -f conf$$subs.awk
17676
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17678
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17679
for (key in S) S_is_set[key] = 1
17685
nfields = split(line, field, "@")
17687
len = length(field[1])
17688
for (i = 2; i < nfields; i++) {
17690
keylen = length(key)
17691
if (S_is_set[key]) {
17693
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17694
len += length(value) + length(field[++i])
17705
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17706
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17707
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17710
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17711
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17714
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17715
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17716
# trailing colons and then remove the whole line if VPATH becomes empty
17717
# (actually we leave an empty line to preserve line numbers).
17718
if test "x$srcdir" = x.; then
17719
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17737
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17738
fi # test -n "$CONFIG_FILES"
17740
# Set up the scripts for CONFIG_HEADERS section.
17741
# No need to generate them if there are no CONFIG_HEADERS.
17742
# This happens for instance with `./config.status Makefile'.
17743
if test -n "$CONFIG_HEADERS"; then
17744
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17748
# Transform confdefs.h into an awk script `defines.awk', embedded as
17749
# here-document in config.status, that substitutes the proper values into
17750
# config.h.in to produce config.h.
17752
# Create a delimiter string that does not exist in confdefs.h, to ease
17753
# handling of long lines.
17755
for ac_last_try in false false :; do
17756
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17757
if test -z "$ac_tt"; then
17759
elif $ac_last_try; then
17760
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17762
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17766
# For the awk script, D is an array of macro values keyed by name,
17767
# likewise P contains macro parameters if any. Preserve backslash
17768
# newline sequences.
17770
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17772
s/.\{148\}/&'"$ac_delim"'/g
17775
s/^[ ]*#[ ]*define[ ][ ]*/ /
17782
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17784
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17788
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17789
D["\1"]=" \3\\\\\\n"\\/p
17791
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17796
s/.\{148\}/&'"$ac_delim"'/g
17801
s/["\\]/\\&/g; s/^/"/; s/$/"/p
17804
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17806
' <confdefs.h | sed '
17807
s/'"$ac_delim"'/"\\\
17808
"/g' >>$CONFIG_STATUS || ac_write_fail=1
17810
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17811
for (key in D) D_is_set[key] = 1
17814
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17816
split(line, arg, " ")
17817
if (arg[1] == "#") {
17821
defundef = substr(arg[1], 2)
17824
split(mac1, mac2, "(") #)
17826
prefix = substr(line, 1, index(line, defundef) - 1)
17827
if (D_is_set[macro]) {
17828
# Preserve the white space surrounding the "#".
17829
print prefix "define", macro P[macro] D[macro]
17832
# Replace #undef with comments. This is necessary, for example,
17833
# in the case of _POSIX_SOURCE, which is predefined and required
17834
# on some systems where configure will not decide to define it.
17835
if (defundef == "undef") {
17836
print "/*", prefix defundef, macro, "*/"
17844
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17845
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17846
fi # test -n "$CONFIG_HEADERS"
17849
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17854
:[FHLC]) ac_mode=$ac_tag; continue;;
17856
case $ac_mode$ac_tag in
17858
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17859
:[FH]-) ac_tag=-:-;;
17860
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17877
-) ac_f="$ac_tmp/stdin";;
17878
*) # Look for the file first in the build tree, then in the source tree
17879
# (if the path is not absolute). The absolute path cannot be DOS-style,
17880
# because $ac_f cannot contain `:'.
17884
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17886
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17888
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17889
as_fn_append ac_file_inputs " '$ac_f'"
17892
# Let's still pretend it is `configure' which instantiates (i.e., don't
17893
# use $as_me), people would be surprised to read:
17894
# /* config.h. Generated by config.status. */
17895
configure_input='Generated from '`
17896
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17898
if test x"$ac_file" != x-; then
17899
configure_input="$ac_file. $configure_input"
17900
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17901
$as_echo "$as_me: creating $ac_file" >&6;}
17903
# Neutralize special characters interpreted by sed in replacement strings.
17904
case $configure_input in #(
17905
*\&* | *\|* | *\\* )
17906
ac_sed_conf_input=`$as_echo "$configure_input" |
17907
sed 's/[\\\\&|]/\\\\&/g'`;; #(
17908
*) ac_sed_conf_input=$configure_input;;
17912
*:-:* | *:-) cat >"$ac_tmp/stdin" \
17913
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17918
ac_dir=`$as_dirname -- "$ac_file" ||
17919
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17920
X"$ac_file" : 'X\(//\)[^/]' \| \
17921
X"$ac_file" : 'X\(//\)$' \| \
17922
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17923
$as_echo X"$ac_file" |
17924
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17928
/^X\(\/\/\)[^/].*/{
17941
as_dir="$ac_dir"; as_fn_mkdir_p
17945
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17947
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17948
# A ".." for each directory in $ac_dir_suffix.
17949
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17950
case $ac_top_builddir_sub in
17951
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17952
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17955
ac_abs_top_builddir=$ac_pwd
17956
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17957
# for backward compatibility:
17958
ac_top_builddir=$ac_top_build_prefix
17961
.) # We are building in place.
17963
ac_top_srcdir=$ac_top_builddir_sub
17964
ac_abs_top_srcdir=$ac_pwd ;;
17965
[\\/]* | ?:[\\/]* ) # Absolute name.
17966
ac_srcdir=$srcdir$ac_dir_suffix;
17967
ac_top_srcdir=$srcdir
17968
ac_abs_top_srcdir=$srcdir ;;
17969
*) # Relative name.
17970
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17971
ac_top_srcdir=$ac_top_build_prefix$srcdir
17972
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17974
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17984
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17985
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17987
ac_MKDIR_P=$MKDIR_P
17989
[\\/$]* | ?:[\\/]* ) ;;
17990
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17994
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17995
# If the template does not know about datarootdir, expand it.
17996
# FIXME: This hack should be removed a few years after 2.60.
17997
ac_datarootdir_hack=; ac_datarootdir_seen=
18008
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18009
*datarootdir*) ac_datarootdir_seen=yes;;
18010
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18011
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18012
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18014
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18015
ac_datarootdir_hack='
18016
s&@datadir@&$datadir&g
18017
s&@docdir@&$docdir&g
18018
s&@infodir@&$infodir&g
18019
s&@localedir@&$localedir&g
18020
s&@mandir@&$mandir&g
18021
s&\\\${datarootdir}&$datarootdir&g' ;;
18025
# Neutralize VPATH when `$srcdir' = `.'.
18026
# Shell code in configure.ac might set extrasub.
18027
# FIXME: do we really want to maintain this feature?
18028
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18029
ac_sed_extra="$ac_vpsub
18032
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18034
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18035
s|@configure_input@|$ac_sed_conf_input|;t t
18036
s&@top_builddir@&$ac_top_builddir_sub&;t t
18037
s&@top_build_prefix@&$ac_top_build_prefix&;t t
18038
s&@srcdir@&$ac_srcdir&;t t
18039
s&@abs_srcdir@&$ac_abs_srcdir&;t t
18040
s&@top_srcdir@&$ac_top_srcdir&;t t
18041
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18042
s&@builddir@&$ac_builddir&;t t
18043
s&@abs_builddir@&$ac_abs_builddir&;t t
18044
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18045
s&@INSTALL@&$ac_INSTALL&;t t
18046
s&@MKDIR_P@&$ac_MKDIR_P&;t t
18047
$ac_datarootdir_hack
18049
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18050
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18052
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18053
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18054
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18055
"$ac_tmp/out"`; test -z "$ac_out"; } &&
18056
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18057
which seems to be undefined. Please make sure it is defined" >&5
18058
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18059
which seems to be undefined. Please make sure it is defined" >&2;}
18061
rm -f "$ac_tmp/stdin"
18063
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18064
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18066
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18072
if test x"$ac_file" != x-; then
18074
$as_echo "/* $configure_input */" \
18075
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18076
} >"$ac_tmp/config.h" \
18077
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18078
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18079
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18080
$as_echo "$as_me: $ac_file is unchanged" >&6;}
18083
mv "$ac_tmp/config.h" "$ac_file" \
18084
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18087
$as_echo "/* $configure_input */" \
18088
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18089
|| as_fn_error $? "could not create -" "$LINENO" 5
18091
# Compute "$ac_file"'s index in $config_headers.
18094
for _am_header in $config_headers :; do
18095
case $_am_header in
18096
$_am_arg | $_am_arg:* )
18099
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
18102
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18103
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18104
X"$_am_arg" : 'X\(//\)[^/]' \| \
18105
X"$_am_arg" : 'X\(//\)$' \| \
18106
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18107
$as_echo X"$_am_arg" |
18108
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18112
/^X\(\/\/\)[^/].*/{
18124
s/.*/./; q'`/stamp-h$_am_stamp_count
18127
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18128
$as_echo "$as_me: executing $ac_file commands" >&6;}
18133
case $ac_file$ac_mode in
18134
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18135
# Older Autoconf quotes --file arguments for eval, but not when files
18136
# are listed without --file. Let's play safe and only enable the eval
18137
# if we detect the quoting.
18138
case $CONFIG_FILES in
18139
*\'*) eval set x "$CONFIG_FILES" ;;
18140
*) set x $CONFIG_FILES ;;
18145
# Strip MF so we end up with the name of the file.
18146
mf=`echo "$mf" | sed -e 's/:.*$//'`
18147
# Check whether this is an Automake generated Makefile or not.
18148
# We used to match only the files named 'Makefile.in', but
18149
# some people rename them; so instead we look at the file content.
18150
# Grep'ing the first line is not enough: some people post-process
18151
# each Makefile.in and add a new line on top of each file to say so.
18152
# Grep'ing the whole file is not good either: AIX grep has a line
18153
# limit of 2048, but all sed's we know have understand at least 4000.
18154
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18155
dirpart=`$as_dirname -- "$mf" ||
18156
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157
X"$mf" : 'X\(//\)[^/]' \| \
18158
X"$mf" : 'X\(//\)$' \| \
18159
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18161
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18165
/^X\(\/\/\)[^/].*/{
18181
# Extract the definition of DEPDIR, am__include, and am__quote
18182
# from the Makefile without running 'make'.
18183
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18184
test -z "$DEPDIR" && continue
18185
am__include=`sed -n 's/^am__include = //p' < "$mf"`
18186
test -z "$am__include" && continue
18187
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18188
# Find all dependency output files, they are included files with
18189
# $(DEPDIR) in their names. We invoke sed twice because it is the
18190
# simplest approach to changing $(DEPDIR) to its actual value in the
18192
for file in `sed -n "
18193
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18194
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18195
# Make sure the directory exists.
18196
test -f "$dirpart/$file" && continue
18197
fdir=`$as_dirname -- "$file" ||
18198
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18199
X"$file" : 'X\(//\)[^/]' \| \
18200
X"$file" : 'X\(//\)$' \| \
18201
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18202
$as_echo X"$file" |
18203
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18207
/^X\(\/\/\)[^/].*/{
18220
as_dir=$dirpart/$fdir; as_fn_mkdir_p
18221
# echo "creating $dirpart/$file"
18222
echo '# dummy' > "$dirpart/$file"
18229
# See if we are running on zsh, and set the options which allow our
18230
# commands through without removal of \ escapes.
18231
if test -n "${ZSH_VERSION+set}" ; then
18232
setopt NO_GLOB_SUBST
18235
cfgfile="${ofile}T"
18236
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18239
cat <<_LT_EOF >> "$cfgfile"
18242
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18243
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18244
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18245
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18247
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18248
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18250
# Written by Gordon Matzigkeit, 1996
18252
# This file is part of GNU Libtool.
18254
# GNU Libtool is free software; you can redistribute it and/or
18255
# modify it under the terms of the GNU General Public License as
18256
# published by the Free Software Foundation; either version 2 of
18257
# the License, or (at your option) any later version.
18259
# As a special exception to the GNU General Public License,
18260
# if you distribute this file as part of a program or library that
18261
# is built using GNU Libtool, you may include this file under the
18262
# same distribution terms that you use for the rest of that program.
18264
# GNU Libtool is distributed in the hope that it will be useful,
18265
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18266
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18267
# GNU General Public License for more details.
18269
# You should have received a copy of the GNU General Public License
18270
# along with GNU Libtool; see the file COPYING. If not, a copy
18271
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18272
# obtained by writing to the Free Software Foundation, Inc.,
18273
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18276
# The names of the tagged configurations supported by this script.
18277
available_tags="CXX "
18279
# ### BEGIN LIBTOOL CONFIG
18281
# Which release of libtool.m4 was used?
18282
macro_version=$macro_version
18283
macro_revision=$macro_revision
18285
# Whether or not to build shared libraries.
18286
build_libtool_libs=$enable_shared
18288
# Whether or not to build static libraries.
18289
build_old_libs=$enable_static
18291
# What type of objects to build.
18294
# Whether or not to optimize for fast installation.
18295
fast_install=$enable_fast_install
18297
# Shell to use when invoking shell scripts.
18300
# An echo program that protects backslashes.
18303
# The PATH separator for the build system.
18304
PATH_SEPARATOR=$lt_PATH_SEPARATOR
18307
host_alias=$host_alias
18311
# The build system.
18312
build_alias=$build_alias
18316
# A sed program that does not truncate output.
18319
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18320
Xsed="\$SED -e 1s/^X//"
18322
# A grep program that handles long lines.
18328
# A literal string matcher.
18331
# A BSD- or MS-compatible name lister.
18334
# Whether we need soft or hard links.
18337
# What is the maximum length of a command?
18338
max_cmd_len=$max_cmd_len
18340
# Object file suffix (normally "o").
18343
# Executable file suffix (normally "").
18346
# whether the shell understands "unset".
18349
# turn spaces into newlines.
18352
# turn newlines into spaces.
18355
# convert \$build file names to \$host format.
18356
to_host_file_cmd=$lt_cv_to_host_file_cmd
18358
# convert \$build files to toolchain format.
18359
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18361
# An object symbol dumper.
18362
OBJDUMP=$lt_OBJDUMP
18364
# Method to check whether dependent libraries are shared objects.
18365
deplibs_check_method=$lt_deplibs_check_method
18367
# Command to use when deplibs_check_method = "file_magic".
18368
file_magic_cmd=$lt_file_magic_cmd
18370
# How to find potential files when deplibs_check_method = "file_magic".
18371
file_magic_glob=$lt_file_magic_glob
18373
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18374
want_nocaseglob=$lt_want_nocaseglob
18376
# DLL creation program.
18377
DLLTOOL=$lt_DLLTOOL
18379
# Command to associate shared and link libraries.
18380
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18385
# Flags to create an archive.
18386
AR_FLAGS=$lt_AR_FLAGS
18388
# How to feed a file listing to the archiver.
18389
archiver_list_spec=$lt_archiver_list_spec
18391
# A symbol stripping program.
18394
# Commands used to install an old-style archive.
18396
old_postinstall_cmds=$lt_old_postinstall_cmds
18397
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18399
# Whether to use a lock for old archive extraction.
18400
lock_old_archive_extraction=$lock_old_archive_extraction
18405
# LTCC compiler flags.
18406
LTCFLAGS=$lt_CFLAGS
18408
# Take the output of nm and produce a listing of raw symbols and C names.
18409
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18411
# Transform the output of nm in a proper C declaration.
18412
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18414
# Transform the output of nm in a C name address pair.
18415
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18417
# Transform the output of nm in a C name address pair when lib prefix is needed.
18418
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18420
# Specify filename containing input files for \$NM.
18421
nm_file_list_spec=$lt_nm_file_list_spec
18423
# The root where to search for dependent libraries,and in which our libraries should be installed.
18424
lt_sysroot=$lt_sysroot
18426
# The name of the directory that contains temporary libtool files.
18429
# Used to examine libraries when file_magic_cmd begins with "file".
18430
MAGIC_CMD=$MAGIC_CMD
18432
# Must we lock files when doing compilation?
18433
need_locks=$lt_need_locks
18436
MANIFEST_TOOL=$lt_MANIFEST_TOOL
18438
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18439
DSYMUTIL=$lt_DSYMUTIL
18441
# Tool to change global to local symbols on Mac OS X.
18444
# Tool to manipulate fat objects and archives on Mac OS X.
18447
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18450
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18451
OTOOL64=$lt_OTOOL64
18453
# Old archive suffix (normally "a").
18456
# Shared library suffix (normally ".so").
18457
shrext_cmds=$lt_shrext_cmds
18459
# The commands to extract the exported symbol list from a shared archive.
18460
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18462
# Variables whose values should be saved in libtool wrapper scripts and
18463
# restored at link time.
18464
variables_saved_for_relink=$lt_variables_saved_for_relink
18466
# Do we need the "lib" prefix for modules?
18467
need_lib_prefix=$need_lib_prefix
18469
# Do we need a version for libraries?
18470
need_version=$need_version
18472
# Library versioning type.
18473
version_type=$version_type
18475
# Shared library runtime path variable.
18476
runpath_var=$runpath_var
18478
# Shared library path variable.
18479
shlibpath_var=$shlibpath_var
18481
# Is shlibpath searched before the hard-coded library search path?
18482
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18484
# Format of library name prefix.
18485
libname_spec=$lt_libname_spec
18487
# List of archive names. First name is the real one, the rest are links.
18488
# The last name is the one that the linker finds with -lNAME
18489
library_names_spec=$lt_library_names_spec
18491
# The coded name of the library, if different from the real name.
18492
soname_spec=$lt_soname_spec
18494
# Permission mode override for installation of shared libraries.
18495
install_override_mode=$lt_install_override_mode
18497
# Command to use after installation of a shared archive.
18498
postinstall_cmds=$lt_postinstall_cmds
18500
# Command to use after uninstallation of a shared archive.
18501
postuninstall_cmds=$lt_postuninstall_cmds
18503
# Commands used to finish a libtool library installation in a directory.
18504
finish_cmds=$lt_finish_cmds
18506
# As "finish_cmds", except a single script fragment to be evaled but
18508
finish_eval=$lt_finish_eval
18510
# Whether we should hardcode library paths into libraries.
18511
hardcode_into_libs=$hardcode_into_libs
18513
# Compile-time system search path for libraries.
18514
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18516
# Run-time system search path for libraries.
18517
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18519
# Whether dlopen is supported.
18520
dlopen_support=$enable_dlopen
18522
# Whether dlopen of programs is supported.
18523
dlopen_self=$enable_dlopen_self
18525
# Whether dlopen of statically linked programs is supported.
18526
dlopen_self_static=$enable_dlopen_self_static
18528
# Commands to strip libraries.
18529
old_striplib=$lt_old_striplib
18530
striplib=$lt_striplib
18533
# The linker used to build libraries.
18536
# How to create reloadable object files.
18537
reload_flag=$lt_reload_flag
18538
reload_cmds=$lt_reload_cmds
18540
# Commands used to build an old-style archive.
18541
old_archive_cmds=$lt_old_archive_cmds
18543
# A language specific compiler.
18546
# Is the compiler the GNU compiler?
18549
# Compiler flag to turn off builtin functions.
18550
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18552
# Additional compiler flags for building library objects.
18553
pic_flag=$lt_lt_prog_compiler_pic
18555
# How to pass a linker flag through the compiler.
18556
wl=$lt_lt_prog_compiler_wl
18558
# Compiler flag to prevent dynamic linking.
18559
link_static_flag=$lt_lt_prog_compiler_static
18561
# Does compiler simultaneously support -c and -o options?
18562
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18564
# Whether or not to add -lc for building shared libraries.
18565
build_libtool_need_lc=$archive_cmds_need_lc
18567
# Whether or not to disallow shared libs when runtime libs are static.
18568
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18570
# Compiler flag to allow reflexive dlopens.
18571
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18573
# Compiler flag to generate shared objects directly from archives.
18574
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18576
# Whether the compiler copes with passing no objects directly.
18577
compiler_needs_object=$lt_compiler_needs_object
18579
# Create an old-style archive from a shared archive.
18580
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18582
# Create a temporary old-style archive to link instead of a shared archive.
18583
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18585
# Commands used to build a shared archive.
18586
archive_cmds=$lt_archive_cmds
18587
archive_expsym_cmds=$lt_archive_expsym_cmds
18589
# Commands used to build a loadable module if different from building
18590
# a shared archive.
18591
module_cmds=$lt_module_cmds
18592
module_expsym_cmds=$lt_module_expsym_cmds
18594
# Whether we are building with GNU ld or not.
18595
with_gnu_ld=$lt_with_gnu_ld
18597
# Flag that allows shared libraries with undefined symbols to be built.
18598
allow_undefined_flag=$lt_allow_undefined_flag
18600
# Flag that enforces no undefined symbols.
18601
no_undefined_flag=$lt_no_undefined_flag
18603
# Flag to hardcode \$libdir into a binary during linking.
18604
# This must work even if \$libdir does not exist
18605
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18607
# Whether we need a single "-rpath" flag with a separated argument.
18608
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18610
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18611
# DIR into the resulting binary.
18612
hardcode_direct=$hardcode_direct
18614
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18615
# DIR into the resulting binary and the resulting library dependency is
18616
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18617
# library is relocated.
18618
hardcode_direct_absolute=$hardcode_direct_absolute
18620
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18621
# into the resulting binary.
18622
hardcode_minus_L=$hardcode_minus_L
18624
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18625
# into the resulting binary.
18626
hardcode_shlibpath_var=$hardcode_shlibpath_var
18628
# Set to "yes" if building a shared library automatically hardcodes DIR
18629
# into the library and all subsequent libraries and executables linked
18631
hardcode_automatic=$hardcode_automatic
18633
# Set to yes if linker adds runtime paths of dependent libraries
18634
# to runtime path list.
18635
inherit_rpath=$inherit_rpath
18637
# Whether libtool must link a program against all its dependency libraries.
18638
link_all_deplibs=$link_all_deplibs
18640
# Set to "yes" if exported symbols are required.
18641
always_export_symbols=$always_export_symbols
18643
# The commands to list exported symbols.
18644
export_symbols_cmds=$lt_export_symbols_cmds
18646
# Symbols that should not be listed in the preloaded symbols.
18647
exclude_expsyms=$lt_exclude_expsyms
18649
# Symbols that must always be exported.
18650
include_expsyms=$lt_include_expsyms
18652
# Commands necessary for linking programs (against libraries) with templates.
18653
prelink_cmds=$lt_prelink_cmds
18655
# Commands necessary for finishing linking programs.
18656
postlink_cmds=$lt_postlink_cmds
18658
# Specify filename containing input files.
18659
file_list_spec=$lt_file_list_spec
18661
# How to hardcode a shared library path into an executable.
18662
hardcode_action=$hardcode_action
18664
# The directories searched by this compiler when creating a shared library.
18665
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18667
# Dependencies to place before and after the objects being linked to
18668
# create a shared library.
18669
predep_objects=$lt_predep_objects
18670
postdep_objects=$lt_postdep_objects
18671
predeps=$lt_predeps
18672
postdeps=$lt_postdeps
18674
# The library search path used internally by the compiler when linking
18675
# a shared library.
18676
compiler_lib_search_path=$lt_compiler_lib_search_path
18678
# ### END LIBTOOL CONFIG
18684
cat <<\_LT_EOF >> "$cfgfile"
18685
# AIX sometimes has problems with the GCC collect2 program. For some
18686
# reason, if we set the COLLECT_NAMES environment variable, the problems
18687
# vanish in a puff of smoke.
18688
if test "X${COLLECT_NAMES+set}" != Xset; then
18690
export COLLECT_NAMES
18697
ltmain="$ac_aux_dir/ltmain.sh"
18700
# We use sed instead of cat because bash on DJGPP gets confused if
18701
# if finds mixed CR/LF and LF-only lines. Since sed operates in
18702
# text mode, it properly converts lines to CR/LF. This bash problem
18703
# is reportedly fixed, but why not run on old versions too?
18704
sed '$q' "$ltmain" >> "$cfgfile" \
18705
|| (rm -f "$cfgfile"; exit 1)
18707
if test x"$xsi_shell" = xyes; then
18708
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18712
\ */*) func_dirname_result="${1%/*}${2}" ;;\
18713
\ * ) func_dirname_result="${3}" ;;\
18715
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18716
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18717
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18718
test 0 -eq $? || _lt_function_replace_fail=:
18721
sed -e '/^func_basename ()$/,/^} # func_basename /c\
18724
\ func_basename_result="${1##*/}"\
18725
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18726
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18727
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18728
test 0 -eq $? || _lt_function_replace_fail=:
18731
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18732
func_dirname_and_basename ()\
18735
\ */*) func_dirname_result="${1%/*}${2}" ;;\
18736
\ * ) func_dirname_result="${3}" ;;\
18738
\ func_basename_result="${1##*/}"\
18739
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18740
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18741
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18742
test 0 -eq $? || _lt_function_replace_fail=:
18745
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18748
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18749
\ # positional parameters, so assign one to ordinary parameter first.\
18750
\ func_stripname_result=${3}\
18751
\ func_stripname_result=${func_stripname_result#"${1}"}\
18752
\ func_stripname_result=${func_stripname_result%"${2}"}\
18753
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18754
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18755
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18756
test 0 -eq $? || _lt_function_replace_fail=:
18759
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18760
func_split_long_opt ()\
18762
\ func_split_long_opt_name=${1%%=*}\
18763
\ func_split_long_opt_arg=${1#*=}\
18764
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18765
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18766
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18767
test 0 -eq $? || _lt_function_replace_fail=:
18770
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18771
func_split_short_opt ()\
18773
\ func_split_short_opt_arg=${1#??}\
18774
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18775
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18776
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18777
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18778
test 0 -eq $? || _lt_function_replace_fail=:
18781
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18785
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18786
\ *) func_lo2o_result=${1} ;;\
18788
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18789
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18790
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18791
test 0 -eq $? || _lt_function_replace_fail=:
18794
sed -e '/^func_xform ()$/,/^} # func_xform /c\
18797
func_xform_result=${1%.*}.lo\
18798
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18799
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18800
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18801
test 0 -eq $? || _lt_function_replace_fail=:
18804
sed -e '/^func_arith ()$/,/^} # func_arith /c\
18807
func_arith_result=$(( $* ))\
18808
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18809
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18810
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18811
test 0 -eq $? || _lt_function_replace_fail=:
18814
sed -e '/^func_len ()$/,/^} # func_len /c\
18817
func_len_result=${#1}\
18818
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18819
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18820
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18821
test 0 -eq $? || _lt_function_replace_fail=:
18825
if test x"$lt_shell_append" = xyes; then
18826
sed -e '/^func_append ()$/,/^} # func_append /c\
18829
eval "${1}+=\\${2}"\
18830
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18831
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18832
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18833
test 0 -eq $? || _lt_function_replace_fail=:
18836
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18837
func_append_quoted ()\
18839
\ func_quote_for_eval "${2}"\
18840
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18841
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18842
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18843
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18844
test 0 -eq $? || _lt_function_replace_fail=:
18847
# Save a `func_append' function call where possible by direct use of '+='
18848
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18849
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18850
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18851
test 0 -eq $? || _lt_function_replace_fail=:
18853
# Save a `func_append' function call even when '+=' is not available
18854
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18855
&& mv -f "$cfgfile.tmp" "$cfgfile" \
18856
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18857
test 0 -eq $? || _lt_function_replace_fail=:
18860
if test x"$_lt_function_replace_fail" = x":"; then
18861
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18862
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18866
mv -f "$cfgfile" "$ofile" ||
18867
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18871
cat <<_LT_EOF >> "$ofile"
18873
# ### BEGIN LIBTOOL TAG CONFIG: CXX
18875
# The linker used to build libraries.
18878
# How to create reloadable object files.
18879
reload_flag=$lt_reload_flag_CXX
18880
reload_cmds=$lt_reload_cmds_CXX
18882
# Commands used to build an old-style archive.
18883
old_archive_cmds=$lt_old_archive_cmds_CXX
18885
# A language specific compiler.
18886
CC=$lt_compiler_CXX
18888
# Is the compiler the GNU compiler?
18891
# Compiler flag to turn off builtin functions.
18892
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18894
# Additional compiler flags for building library objects.
18895
pic_flag=$lt_lt_prog_compiler_pic_CXX
18897
# How to pass a linker flag through the compiler.
18898
wl=$lt_lt_prog_compiler_wl_CXX
18900
# Compiler flag to prevent dynamic linking.
18901
link_static_flag=$lt_lt_prog_compiler_static_CXX
18903
# Does compiler simultaneously support -c and -o options?
18904
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18906
# Whether or not to add -lc for building shared libraries.
18907
build_libtool_need_lc=$archive_cmds_need_lc_CXX
18909
# Whether or not to disallow shared libs when runtime libs are static.
18910
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18912
# Compiler flag to allow reflexive dlopens.
18913
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18915
# Compiler flag to generate shared objects directly from archives.
18916
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18918
# Whether the compiler copes with passing no objects directly.
18919
compiler_needs_object=$lt_compiler_needs_object_CXX
18921
# Create an old-style archive from a shared archive.
18922
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18924
# Create a temporary old-style archive to link instead of a shared archive.
18925
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18927
# Commands used to build a shared archive.
18928
archive_cmds=$lt_archive_cmds_CXX
18929
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18931
# Commands used to build a loadable module if different from building
18932
# a shared archive.
18933
module_cmds=$lt_module_cmds_CXX
18934
module_expsym_cmds=$lt_module_expsym_cmds_CXX
18936
# Whether we are building with GNU ld or not.
18937
with_gnu_ld=$lt_with_gnu_ld_CXX
18939
# Flag that allows shared libraries with undefined symbols to be built.
18940
allow_undefined_flag=$lt_allow_undefined_flag_CXX
18942
# Flag that enforces no undefined symbols.
18943
no_undefined_flag=$lt_no_undefined_flag_CXX
18945
# Flag to hardcode \$libdir into a binary during linking.
18946
# This must work even if \$libdir does not exist
18947
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18949
# Whether we need a single "-rpath" flag with a separated argument.
18950
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18952
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18953
# DIR into the resulting binary.
18954
hardcode_direct=$hardcode_direct_CXX
18956
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18957
# DIR into the resulting binary and the resulting library dependency is
18958
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18959
# library is relocated.
18960
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18962
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18963
# into the resulting binary.
18964
hardcode_minus_L=$hardcode_minus_L_CXX
18966
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18967
# into the resulting binary.
18968
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18970
# Set to "yes" if building a shared library automatically hardcodes DIR
18971
# into the library and all subsequent libraries and executables linked
18973
hardcode_automatic=$hardcode_automatic_CXX
18975
# Set to yes if linker adds runtime paths of dependent libraries
18976
# to runtime path list.
18977
inherit_rpath=$inherit_rpath_CXX
18979
# Whether libtool must link a program against all its dependency libraries.
18980
link_all_deplibs=$link_all_deplibs_CXX
18982
# Set to "yes" if exported symbols are required.
18983
always_export_symbols=$always_export_symbols_CXX
18985
# The commands to list exported symbols.
18986
export_symbols_cmds=$lt_export_symbols_cmds_CXX
18988
# Symbols that should not be listed in the preloaded symbols.
18989
exclude_expsyms=$lt_exclude_expsyms_CXX
18991
# Symbols that must always be exported.
18992
include_expsyms=$lt_include_expsyms_CXX
18994
# Commands necessary for linking programs (against libraries) with templates.
18995
prelink_cmds=$lt_prelink_cmds_CXX
18997
# Commands necessary for finishing linking programs.
18998
postlink_cmds=$lt_postlink_cmds_CXX
19000
# Specify filename containing input files.
19001
file_list_spec=$lt_file_list_spec_CXX
19003
# How to hardcode a shared library path into an executable.
19004
hardcode_action=$hardcode_action_CXX
19006
# The directories searched by this compiler when creating a shared library.
19007
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19009
# Dependencies to place before and after the objects being linked to
19010
# create a shared library.
19011
predep_objects=$lt_predep_objects_CXX
19012
postdep_objects=$lt_postdep_objects_CXX
19013
predeps=$lt_predeps_CXX
19014
postdeps=$lt_postdeps_CXX
19016
# The library search path used internally by the compiler when linking
19017
# a shared library.
19018
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19020
# ### END LIBTOOL TAG CONFIG: CXX
19031
ac_clean_files=$ac_clean_files_save
19033
test $ac_write_fail = 0 ||
19034
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19037
# configure is writing to config.log, and then calls config.status.
19038
# config.status does its own redirection, appending to config.log.
19039
# Unfortunately, on DOS this fails, as config.log is still kept open
19040
# by configure, so config.status won't be able to write to it; its
19041
# output is simply discarded. So we exec the FD to /dev/null,
19042
# effectively closing config.log, so it can be properly (re)opened and
19043
# appended to by config.status. When coming back to configure, we
19044
# need to make the FD available again.
19045
if test "$no_create" != yes; then
19047
ac_config_status_args=
19048
test "$silent" = yes &&
19049
ac_config_status_args="$ac_config_status_args --quiet"
19051
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19053
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
19054
# would make configure fail if this is the last instruction.
19055
$ac_cs_success || as_fn_exit 1
19057
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19059
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}