2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.65 for sqlite3cc 0.1.0.
5
# Report bugs to <edam@waxworlds.org>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and edam@waxworlds.org
234
$0: about your system, including any error possibly output
235
$0: before this message. Then install a modern shell, or
236
$0: manually run the script under such a shell if you do
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
369
as_status=$?; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374
$as_echo "$as_me: error: $1" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
# Check that we are running under the correct shell.
534
SHELL=${CONFIG_SHELL-/bin/sh}
538
# Remove one level of quotation (which was required for Make).
539
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544
if test "X$1" = X--no-reexec; then
545
# Discard the --no-reexec flag, and continue.
547
elif test "X$1" = X--fallback-echo; then
548
# Avoid inline document here, it may be left over
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
# Yippee, $ECHO works!
554
# Restart under the correct shell.
555
exec $SHELL "$0" --no-reexec ${1+"$@"}
558
if test "X$1" = X--fallback-echo; then
559
# used as fallback echo
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
if test -z "$lt_ECHO"; then
572
if test "X${echo_test_string+set}" != Xset; then
573
# find a string as large as possible, as long as the shell can cope with it
574
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
test "X$echo_testing_string" = "X$echo_test_string"; then
589
# The Solaris, AIX, and Digital Unix default echo programs unquote
590
# backslashes. This makes it impossible to quote backslashes using
591
# echo "$something" | sed 's/\\/\\\\/g'
593
# So, first we look for a working echo in the user's PATH.
595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
for dir in $PATH /usr/ucb; do
598
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
test "X$echo_testing_string" = "X$echo_test_string"; then
608
if test "X$ECHO" = Xecho; then
609
# We didn't find a better echo, so look for alternatives.
610
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
test "X$echo_testing_string" = "X$echo_test_string"; then
613
# This shell has a builtin print -r that does the trick.
615
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
test "X$CONFIG_SHELL" != X/bin/ksh; then
617
# If we have ksh, try running configure again with it.
618
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
export ORIGINAL_CONFIG_SHELL
620
CONFIG_SHELL=/bin/ksh
622
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
test "X$echo_testing_string" = "X$echo_test_string"; then
631
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
test "X$echo_testing_string" = 'X\t' &&
633
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
635
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637
SHELL="$CONFIG_SHELL"
639
ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
test "X$echo_testing_string" = 'X\t' &&
642
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
test "X$echo_testing_string" = "X$echo_test_string"; then
644
ECHO="$CONFIG_SHELL $0 --fallback-echo"
646
# maybe with a smaller string...
649
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657
if test "$prev" != 'sed 50q "$0"'; then
658
echo_test_string=`eval $prev`
659
export echo_test_string
660
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662
# Oops. We lost completely, so just stick with echo.
671
# Copy echo and quote the copy suitably for passing to libtool from
672
# the Makefile, instead of quoting the original, which is used later.
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
test -n "$DJDIR" || exec 7<&0 </dev/null
685
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686
# so uname gets run too.
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
ac_default_prefix=/usr/local
694
ac_config_libobj_dir=.
701
# Identity of this package.
702
PACKAGE_NAME='sqlite3cc'
703
PACKAGE_TARNAME='sqlite3cc'
704
PACKAGE_VERSION='0.1.0'
705
PACKAGE_STRING='sqlite3cc 0.1.0'
706
PACKAGE_BUGREPORT='edam@waxworlds.org'
707
PACKAGE_URL='http://www.waxworlds.org/edam/software/sqlite3cc'
709
ac_unique_file="src/command.cc"
710
# Factoring default headers for most tests.
711
ac_includes_default="\
713
#ifdef HAVE_SYS_TYPES_H
714
# include <sys/types.h>
716
#ifdef HAVE_SYS_STAT_H
717
# include <sys/stat.h>
723
# ifdef HAVE_STDLIB_H
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733
#ifdef HAVE_STRINGS_H
734
# include <strings.h>
736
#ifdef HAVE_INTTYPES_H
737
# include <inttypes.h>
746
ac_subst_vars='am__EXEEXT_FALSE
809
INSTALL_STRIP_PROGRAM
824
LIBSQLITE3CC_INTERFACE
852
program_transform_name
865
enable_option_checking
870
enable_dependency_tracking
874
ac_precious_vars='build_alias
889
# Initialize some variables set by options.
891
ac_init_version=false
892
ac_unrecognized_opts=
894
# The variables have the same names as the options, with
895
# dashes changed to underlines.
903
program_transform_name=s,x,x,
911
# Installation directory options.
912
# These are left unexpanded so users can "make install exec_prefix=/foo"
913
# and all the variables that are supposed to be based on exec_prefix
914
# by default will actually change.
915
# Use braces instead of parens because sh, perl, etc. also accept them.
916
# (The list follows the same order as the GNU Coding Standards.)
917
bindir='${exec_prefix}/bin'
918
sbindir='${exec_prefix}/sbin'
919
libexecdir='${exec_prefix}/libexec'
920
datarootdir='${prefix}/share'
921
datadir='${datarootdir}'
922
sysconfdir='${prefix}/etc'
923
sharedstatedir='${prefix}/com'
924
localstatedir='${prefix}/var'
925
includedir='${prefix}/include'
926
oldincludedir='/usr/include'
927
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928
infodir='${datarootdir}/info'
933
libdir='${exec_prefix}/lib'
934
localedir='${datarootdir}/locale'
935
mandir='${datarootdir}/man'
941
# If the previous option needs an argument, assign it.
942
if test -n "$ac_prev"; then
943
eval $ac_prev=\$ac_option
949
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953
# Accept the important Cygnus configure options, so we can diagnose typos.
955
case $ac_dashdash$ac_option in
959
-bindir | --bindir | --bindi | --bind | --bin | --bi)
961
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964
-build | --build | --buil | --bui | --bu)
965
ac_prev=build_alias ;;
966
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
967
build_alias=$ac_optarg ;;
969
-cache-file | --cache-file | --cache-fil | --cache-fi \
970
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971
ac_prev=cache_file ;;
972
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974
cache_file=$ac_optarg ;;
977
cache_file=config.cache ;;
979
-datadir | --datadir | --datadi | --datad)
981
-datadir=* | --datadir=* | --datadi=* | --datad=*)
982
datadir=$ac_optarg ;;
984
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985
| --dataroo | --dataro | --datar)
986
ac_prev=datarootdir ;;
987
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989
datarootdir=$ac_optarg ;;
991
-disable-* | --disable-*)
992
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993
# Reject names that are not valid shell variable names.
994
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995
as_fn_error "invalid feature name: $ac_useropt"
996
ac_useropt_orig=$ac_useropt
997
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998
case $ac_user_opts in
1000
"enable_$ac_useropt"
1002
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003
ac_unrecognized_sep=', ';;
1005
eval enable_$ac_useropt=no ;;
1007
-docdir | --docdir | --docdi | --doc | --do)
1009
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010
docdir=$ac_optarg ;;
1012
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015
dvidir=$ac_optarg ;;
1017
-enable-* | --enable-*)
1018
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019
# Reject names that are not valid shell variable names.
1020
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021
as_fn_error "invalid feature name: $ac_useropt"
1022
ac_useropt_orig=$ac_useropt
1023
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024
case $ac_user_opts in
1026
"enable_$ac_useropt"
1028
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029
ac_unrecognized_sep=', ';;
1031
eval enable_$ac_useropt=\$ac_optarg ;;
1033
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035
| --exec | --exe | --ex)
1036
ac_prev=exec_prefix ;;
1037
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039
| --exec=* | --exe=* | --ex=*)
1040
exec_prefix=$ac_optarg ;;
1042
-gas | --gas | --ga | --g)
1043
# Obsolete; use --with-gas.
1046
-help | --help | --hel | --he | -h)
1047
ac_init_help=long ;;
1048
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049
ac_init_help=recursive ;;
1050
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051
ac_init_help=short ;;
1053
-host | --host | --hos | --ho)
1054
ac_prev=host_alias ;;
1055
-host=* | --host=* | --hos=* | --ho=*)
1056
host_alias=$ac_optarg ;;
1058
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062
htmldir=$ac_optarg ;;
1064
-includedir | --includedir | --includedi | --included | --include \
1065
| --includ | --inclu | --incl | --inc)
1066
ac_prev=includedir ;;
1067
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068
| --includ=* | --inclu=* | --incl=* | --inc=*)
1069
includedir=$ac_optarg ;;
1071
-infodir | --infodir | --infodi | --infod | --info | --inf)
1073
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074
infodir=$ac_optarg ;;
1076
-libdir | --libdir | --libdi | --libd)
1078
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1079
libdir=$ac_optarg ;;
1081
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082
| --libexe | --libex | --libe)
1083
ac_prev=libexecdir ;;
1084
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085
| --libexe=* | --libex=* | --libe=*)
1086
libexecdir=$ac_optarg ;;
1088
-localedir | --localedir | --localedi | --localed | --locale)
1089
ac_prev=localedir ;;
1090
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091
localedir=$ac_optarg ;;
1093
-localstatedir | --localstatedir | --localstatedi | --localstated \
1094
| --localstate | --localstat | --localsta | --localst | --locals)
1095
ac_prev=localstatedir ;;
1096
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098
localstatedir=$ac_optarg ;;
1100
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103
mandir=$ac_optarg ;;
1105
-nfp | --nfp | --nf)
1106
# Obsolete; use --without-fp.
1109
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110
| --no-cr | --no-c | -n)
1113
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119
| --oldin | --oldi | --old | --ol | --o)
1120
ac_prev=oldincludedir ;;
1121
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124
oldincludedir=$ac_optarg ;;
1126
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129
prefix=$ac_optarg ;;
1131
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1132
| --program-pre | --program-pr | --program-p)
1133
ac_prev=program_prefix ;;
1134
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1135
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136
program_prefix=$ac_optarg ;;
1138
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1139
| --program-suf | --program-su | --program-s)
1140
ac_prev=program_suffix ;;
1141
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1142
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143
program_suffix=$ac_optarg ;;
1145
-program-transform-name | --program-transform-name \
1146
| --program-transform-nam | --program-transform-na \
1147
| --program-transform-n | --program-transform- \
1148
| --program-transform | --program-transfor \
1149
| --program-transfo | --program-transf \
1150
| --program-trans | --program-tran \
1151
| --progr-tra | --program-tr | --program-t)
1152
ac_prev=program_transform_name ;;
1153
-program-transform-name=* | --program-transform-name=* \
1154
| --program-transform-nam=* | --program-transform-na=* \
1155
| --program-transform-n=* | --program-transform-=* \
1156
| --program-transform=* | --program-transfor=* \
1157
| --program-transfo=* | --program-transf=* \
1158
| --program-trans=* | --program-tran=* \
1159
| --progr-tra=* | --program-tr=* | --program-t=*)
1160
program_transform_name=$ac_optarg ;;
1162
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165
pdfdir=$ac_optarg ;;
1167
-psdir | --psdir | --psdi | --psd | --ps)
1169
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173
| -silent | --silent | --silen | --sile | --sil)
1176
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180
sbindir=$ac_optarg ;;
1182
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1183
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184
| --sharedst | --shareds | --shared | --share | --shar \
1186
ac_prev=sharedstatedir ;;
1187
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191
sharedstatedir=$ac_optarg ;;
1193
-site | --site | --sit)
1195
-site=* | --site=* | --sit=*)
1198
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201
srcdir=$ac_optarg ;;
1203
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204
| --syscon | --sysco | --sysc | --sys | --sy)
1205
ac_prev=sysconfdir ;;
1206
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208
sysconfdir=$ac_optarg ;;
1210
-target | --target | --targe | --targ | --tar | --ta | --t)
1211
ac_prev=target_alias ;;
1212
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213
target_alias=$ac_optarg ;;
1215
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1218
-version | --version | --versio | --versi | --vers | -V)
1219
ac_init_version=: ;;
1222
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223
# Reject names that are not valid shell variable names.
1224
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225
as_fn_error "invalid package name: $ac_useropt"
1226
ac_useropt_orig=$ac_useropt
1227
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228
case $ac_user_opts in
1232
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233
ac_unrecognized_sep=', ';;
1235
eval with_$ac_useropt=\$ac_optarg ;;
1237
-without-* | --without-*)
1238
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239
# Reject names that are not valid shell variable names.
1240
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241
as_fn_error "invalid package name: $ac_useropt"
1242
ac_useropt_orig=$ac_useropt
1243
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244
case $ac_user_opts in
1248
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249
ac_unrecognized_sep=', ';;
1251
eval with_$ac_useropt=no ;;
1254
# Obsolete; use --with-x.
1257
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258
| --x-incl | --x-inc | --x-in | --x-i)
1259
ac_prev=x_includes ;;
1260
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262
x_includes=$ac_optarg ;;
1264
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1265
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266
ac_prev=x_libraries ;;
1267
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269
x_libraries=$ac_optarg ;;
1271
-*) as_fn_error "unrecognized option: \`$ac_option'
1272
Try \`$0 --help' for more information."
1276
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277
# Reject names that are not valid shell variable names.
1278
case $ac_envvar in #(
1279
'' | [0-9]* | *[!_$as_cr_alnum]* )
1280
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1282
eval $ac_envvar=\$ac_optarg
1283
export $ac_envvar ;;
1286
# FIXME: should be removed in autoconf 3.0.
1287
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1296
if test -n "$ac_prev"; then
1297
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298
as_fn_error "missing argument to $ac_option"
1301
if test -n "$ac_unrecognized_opts"; then
1302
case $enable_option_checking in
1304
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1305
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309
# Check all directory arguments for consistency.
1310
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311
datadir sysconfdir sharedstatedir localstatedir includedir \
1312
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313
libdir localedir mandir
1315
eval ac_val=\$$ac_var
1316
# Remove trailing slashes.
1319
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320
eval $ac_var=\$ac_val;;
1322
# Be sure to have absolute directory names.
1324
[\\/$]* | ?:[\\/]* ) continue;;
1325
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1330
# There might be people who depend on the old broken behavior: `$host'
1331
# used to hold the argument of --host etc.
1332
# FIXME: To remove some day.
1335
target=$target_alias
1337
# FIXME: To remove some day.
1338
if test "x$host_alias" != x; then
1339
if test "x$build_alias" = x; then
1340
cross_compiling=maybe
1341
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342
If a cross compiler is detected then cross compile mode will be used." >&2
1343
elif test "x$build_alias" != "x$host_alias"; then
1349
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
test "$silent" = yes && exec 6>/dev/null
1354
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355
ac_ls_di=`ls -di .` &&
1356
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357
as_fn_error "working directory cannot be determined"
1358
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359
as_fn_error "pwd does not report name of working directory"
1362
# Find the source files, if location was not specified.
1363
if test -z "$srcdir"; then
1364
ac_srcdir_defaulted=yes
1365
# Try the directory containing this script, then the parent directory.
1366
ac_confdir=`$as_dirname -- "$as_myself" ||
1367
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368
X"$as_myself" : 'X\(//\)[^/]' \| \
1369
X"$as_myself" : 'X\(//\)$' \| \
1370
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371
$as_echo X"$as_myself" |
1372
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390
if test ! -r "$srcdir/$ac_unique_file"; then
1394
ac_srcdir_defaulted=no
1396
if test ! -r "$srcdir/$ac_unique_file"; then
1397
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1400
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1404
# When building in place, set srcdir=.
1405
if test "$ac_abs_confdir" = "$ac_pwd"; then
1408
# Remove unnecessary trailing slashes from srcdir.
1409
# Double slashes in file names in object file debugging info
1410
# mess up M-x gdb in Emacs.
1412
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414
for ac_var in $ac_precious_vars; do
1415
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416
eval ac_env_${ac_var}_value=\$${ac_var}
1417
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422
# Report the --help message.
1424
if test "$ac_init_help" = "long"; then
1425
# Omit some internal or obsolete options to make the list less imposing.
1426
# This message is too long to be a string in the A/UX 3.1 sh.
1428
\`configure' configures sqlite3cc 0.1.0 to adapt to many kinds of systems.
1430
Usage: $0 [OPTION]... [VAR=VALUE]...
1432
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433
VAR=VALUE. See below for descriptions of some of the useful variables.
1435
Defaults for the options are specified in brackets.
1438
-h, --help display this help and exit
1439
--help=short display options specific to this package
1440
--help=recursive display the short help of all the included packages
1441
-V, --version display version information and exit
1442
-q, --quiet, --silent do not print \`checking...' messages
1443
--cache-file=FILE cache test results in FILE [disabled]
1444
-C, --config-cache alias for \`--cache-file=config.cache'
1445
-n, --no-create do not create output files
1446
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1448
Installation directories:
1449
--prefix=PREFIX install architecture-independent files in PREFIX
1450
[$ac_default_prefix]
1451
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454
By default, \`make install' will install all the files in
1455
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457
for instance \`--prefix=\$HOME'.
1459
For better control, use the options below.
1461
Fine tuning of the installation directories:
1462
--bindir=DIR user executables [EPREFIX/bin]
1463
--sbindir=DIR system admin executables [EPREFIX/sbin]
1464
--libexecdir=DIR program executables [EPREFIX/libexec]
1465
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468
--libdir=DIR object code libraries [EPREFIX/lib]
1469
--includedir=DIR C header files [PREFIX/include]
1470
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1471
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473
--infodir=DIR info documentation [DATAROOTDIR/info]
1474
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475
--mandir=DIR man documentation [DATAROOTDIR/man]
1476
--docdir=DIR documentation root [DATAROOTDIR/doc/sqlite3cc]
1477
--htmldir=DIR html documentation [DOCDIR]
1478
--dvidir=DIR dvi documentation [DOCDIR]
1479
--pdfdir=DIR pdf documentation [DOCDIR]
1480
--psdir=DIR ps documentation [DOCDIR]
1486
--program-prefix=PREFIX prepend PREFIX to installed program names
1487
--program-suffix=SUFFIX append SUFFIX to installed program names
1488
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491
--build=BUILD configure for building on BUILD [guessed]
1492
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1496
if test -n "$ac_init_help"; then
1497
case $ac_init_help in
1498
short | recursive ) echo "Configuration of sqlite3cc 0.1.0:";;
1503
--disable-option-checking ignore unrecognized --enable/--with options
1504
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506
--enable-shared[=PKGS] build shared libraries [default=yes]
1507
--enable-static[=PKGS] build static libraries [default=yes]
1508
--enable-fast-install[=PKGS]
1509
optimize for fast installation [default=yes]
1510
--disable-dependency-tracking speeds up one-time build
1511
--enable-dependency-tracking do not reject slow dependency extractors
1512
--disable-libtool-lock avoid locking (might break parallel builds)
1515
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1516
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1517
--with-pic try to use only PIC/non-PIC objects [default=use
1519
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1521
Some influential environment variables:
1522
CC C compiler command
1523
CFLAGS C compiler flags
1524
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525
nonstandard directory <lib dir>
1526
LIBS libraries to pass to the linker, e.g. -l<library>
1527
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528
you have headers in a nonstandard directory <include dir>
1530
CXX C++ compiler command
1531
CXXFLAGS C++ compiler flags
1532
CXXCPP C++ preprocessor
1534
Use these variables to override the choices made by `configure' or to help
1535
it to find libraries and programs with nonstandard names/locations.
1537
Report bugs to <edam@waxworlds.org>.
1538
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>.
1543
if test "$ac_init_help" = "recursive"; then
1544
# If there are subdirs, report their specific --help.
1545
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546
test -d "$ac_dir" ||
1547
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555
# A ".." for each directory in $ac_dir_suffix.
1556
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557
case $ac_top_builddir_sub in
1558
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562
ac_abs_top_builddir=$ac_pwd
1563
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564
# for backward compatibility:
1565
ac_top_builddir=$ac_top_build_prefix
1568
.) # We are building in place.
1570
ac_top_srcdir=$ac_top_builddir_sub
1571
ac_abs_top_srcdir=$ac_pwd ;;
1572
[\\/]* | ?:[\\/]* ) # Absolute name.
1573
ac_srcdir=$srcdir$ac_dir_suffix;
1574
ac_top_srcdir=$srcdir
1575
ac_abs_top_srcdir=$srcdir ;;
1577
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578
ac_top_srcdir=$ac_top_build_prefix$srcdir
1579
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
cd "$ac_dir" || { ac_status=$?; continue; }
1584
# Check for guested configure.
1585
if test -f "$ac_srcdir/configure.gnu"; then
1587
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588
elif test -f "$ac_srcdir/configure"; then
1590
$SHELL "$ac_srcdir/configure" --help=recursive
1592
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594
cd "$ac_pwd" || { ac_status=$?; break; }
1598
test -n "$ac_init_help" && exit $ac_status
1599
if $ac_init_version; then
1601
sqlite3cc configure 0.1.0
1602
generated by GNU Autoconf 2.65
1604
Copyright (C) 2009 Free Software Foundation, Inc.
1605
This configure script is free software; the Free Software Foundation
1606
gives unlimited permission to copy, distribute and modify it.
1611
## ------------------------ ##
1612
## Autoconf initialization. ##
1613
## ------------------------ ##
1615
# ac_fn_c_try_compile LINENO
1616
# --------------------------
1617
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618
ac_fn_c_try_compile ()
1620
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621
rm -f conftest.$ac_objext
1622
if { { ac_try="$ac_compile"
1624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625
*) ac_try_echo=$ac_try;;
1627
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628
$as_echo "$ac_try_echo"; } >&5
1629
(eval "$ac_compile") 2>conftest.err
1631
if test -s conftest.err; then
1632
grep -v '^ *+' conftest.err >conftest.er1
1633
cat conftest.er1 >&5
1634
mv -f conftest.er1 conftest.err
1636
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637
test $ac_status = 0; } && {
1638
test -z "$ac_c_werror_flag" ||
1639
test ! -s conftest.err
1640
} && test -s conftest.$ac_objext; then :
1643
$as_echo "$as_me: failed program was:" >&5
1644
sed 's/^/| /' conftest.$ac_ext >&5
1648
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649
as_fn_set_status $ac_retval
1651
} # ac_fn_c_try_compile
1653
# ac_fn_c_try_link LINENO
1654
# -----------------------
1655
# Try to link conftest.$ac_ext, and return whether this succeeded.
1658
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659
rm -f conftest.$ac_objext conftest$ac_exeext
1660
if { { ac_try="$ac_link"
1662
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663
*) ac_try_echo=$ac_try;;
1665
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666
$as_echo "$ac_try_echo"; } >&5
1667
(eval "$ac_link") 2>conftest.err
1669
if test -s conftest.err; then
1670
grep -v '^ *+' conftest.err >conftest.er1
1671
cat conftest.er1 >&5
1672
mv -f conftest.er1 conftest.err
1674
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675
test $ac_status = 0; } && {
1676
test -z "$ac_c_werror_flag" ||
1677
test ! -s conftest.err
1678
} && test -s conftest$ac_exeext && {
1679
test "$cross_compiling" = yes ||
1680
$as_test_x conftest$ac_exeext
1684
$as_echo "$as_me: failed program was:" >&5
1685
sed 's/^/| /' conftest.$ac_ext >&5
1689
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691
# interfere with the next link command; also delete a directory that is
1692
# left behind by Apple's compiler. We do this before executing the actions.
1693
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695
as_fn_set_status $ac_retval
1697
} # ac_fn_c_try_link
1699
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700
# -------------------------------------------------------
1701
# Tests whether HEADER exists and can be compiled using the include files in
1702
# INCLUDES, setting the cache variable VAR accordingly.
1703
ac_fn_c_check_header_compile ()
1705
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707
$as_echo_n "checking for $2... " >&6; }
1708
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709
$as_echo_n "(cached) " >&6
1711
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712
/* end confdefs.h. */
1716
if ac_fn_c_try_compile "$LINENO"; then :
1721
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725
$as_echo "$ac_res" >&6; }
1726
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728
} # ac_fn_c_check_header_compile
1730
# ac_fn_c_try_cpp LINENO
1731
# ----------------------
1732
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736
if { { ac_try="$ac_cpp conftest.$ac_ext"
1738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739
*) ac_try_echo=$ac_try;;
1741
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742
$as_echo "$ac_try_echo"; } >&5
1743
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1745
if test -s conftest.err; then
1746
grep -v '^ *+' conftest.err >conftest.er1
1747
cat conftest.er1 >&5
1748
mv -f conftest.er1 conftest.err
1750
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751
test $ac_status = 0; } >/dev/null && {
1752
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753
test ! -s conftest.err
1757
$as_echo "$as_me: failed program was:" >&5
1758
sed 's/^/| /' conftest.$ac_ext >&5
1762
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763
as_fn_set_status $ac_retval
1767
# ac_fn_c_try_run LINENO
1768
# ----------------------
1769
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770
# that executables *can* be run.
1773
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774
if { { ac_try="$ac_link"
1776
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777
*) ac_try_echo=$ac_try;;
1779
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780
$as_echo "$ac_try_echo"; } >&5
1781
(eval "$ac_link") 2>&5
1783
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785
{ { case "(($ac_try" in
1786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787
*) ac_try_echo=$ac_try;;
1789
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790
$as_echo "$ac_try_echo"; } >&5
1791
(eval "$ac_try") 2>&5
1793
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794
test $ac_status = 0; }; }; then :
1797
$as_echo "$as_me: program exited with status $ac_status" >&5
1798
$as_echo "$as_me: failed program was:" >&5
1799
sed 's/^/| /' conftest.$ac_ext >&5
1801
ac_retval=$ac_status
1803
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805
as_fn_set_status $ac_retval
1809
# ac_fn_c_check_func LINENO FUNC VAR
1810
# ----------------------------------
1811
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1812
ac_fn_c_check_func ()
1814
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816
$as_echo_n "checking for $2... " >&6; }
1817
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818
$as_echo_n "(cached) " >&6
1820
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821
/* end confdefs.h. */
1822
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1824
#define $2 innocuous_$2
1826
/* System header to define __stub macros and hopefully few prototypes,
1827
which can conflict with char $2 (); below.
1828
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829
<limits.h> exists even on freestanding compilers. */
1832
# include <limits.h>
1834
# include <assert.h>
1839
/* Override any GCC internal prototype to avoid an error.
1840
Use char because int might match the return type of a GCC
1841
builtin and then its argument prototype would still apply. */
1846
/* The GNU C library defines this for functions which it implements
1847
to always fail with ENOSYS. Some functions are actually named
1848
something starting with __ and the normal name is an alias. */
1849
#if defined __stub_$2 || defined __stub___$2
1861
if ac_fn_c_try_link "$LINENO"; then :
1866
rm -f core conftest.err conftest.$ac_objext \
1867
conftest$ac_exeext conftest.$ac_ext
1870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871
$as_echo "$ac_res" >&6; }
1872
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
} # ac_fn_c_check_func
1876
# ac_fn_cxx_try_compile LINENO
1877
# ----------------------------
1878
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1879
ac_fn_cxx_try_compile ()
1881
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882
rm -f conftest.$ac_objext
1883
if { { ac_try="$ac_compile"
1885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886
*) ac_try_echo=$ac_try;;
1888
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889
$as_echo "$ac_try_echo"; } >&5
1890
(eval "$ac_compile") 2>conftest.err
1892
if test -s conftest.err; then
1893
grep -v '^ *+' conftest.err >conftest.er1
1894
cat conftest.er1 >&5
1895
mv -f conftest.er1 conftest.err
1897
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898
test $ac_status = 0; } && {
1899
test -z "$ac_cxx_werror_flag" ||
1900
test ! -s conftest.err
1901
} && test -s conftest.$ac_objext; then :
1904
$as_echo "$as_me: failed program was:" >&5
1905
sed 's/^/| /' conftest.$ac_ext >&5
1909
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910
as_fn_set_status $ac_retval
1912
} # ac_fn_cxx_try_compile
1914
# ac_fn_cxx_try_cpp LINENO
1915
# ------------------------
1916
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1917
ac_fn_cxx_try_cpp ()
1919
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920
if { { ac_try="$ac_cpp conftest.$ac_ext"
1922
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923
*) ac_try_echo=$ac_try;;
1925
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926
$as_echo "$ac_try_echo"; } >&5
1927
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1929
if test -s conftest.err; then
1930
grep -v '^ *+' conftest.err >conftest.er1
1931
cat conftest.er1 >&5
1932
mv -f conftest.er1 conftest.err
1934
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935
test $ac_status = 0; } >/dev/null && {
1936
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1937
test ! -s conftest.err
1941
$as_echo "$as_me: failed program was:" >&5
1942
sed 's/^/| /' conftest.$ac_ext >&5
1946
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947
as_fn_set_status $ac_retval
1949
} # ac_fn_cxx_try_cpp
1951
# ac_fn_cxx_try_link LINENO
1952
# -------------------------
1953
# Try to link conftest.$ac_ext, and return whether this succeeded.
1954
ac_fn_cxx_try_link ()
1956
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957
rm -f conftest.$ac_objext conftest$ac_exeext
1958
if { { ac_try="$ac_link"
1960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961
*) ac_try_echo=$ac_try;;
1963
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964
$as_echo "$ac_try_echo"; } >&5
1965
(eval "$ac_link") 2>conftest.err
1967
if test -s conftest.err; then
1968
grep -v '^ *+' conftest.err >conftest.er1
1969
cat conftest.er1 >&5
1970
mv -f conftest.er1 conftest.err
1972
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973
test $ac_status = 0; } && {
1974
test -z "$ac_cxx_werror_flag" ||
1975
test ! -s conftest.err
1976
} && test -s conftest$ac_exeext && {
1977
test "$cross_compiling" = yes ||
1978
$as_test_x conftest$ac_exeext
1982
$as_echo "$as_me: failed program was:" >&5
1983
sed 's/^/| /' conftest.$ac_ext >&5
1987
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1988
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1989
# interfere with the next link command; also delete a directory that is
1990
# left behind by Apple's compiler. We do this before executing the actions.
1991
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993
as_fn_set_status $ac_retval
1995
} # ac_fn_cxx_try_link
1997
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1998
# -------------------------------------------------------
1999
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2000
# the include files in INCLUDES and setting the cache variable VAR
2002
ac_fn_c_check_header_mongrel ()
2004
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007
$as_echo_n "checking for $2... " >&6; }
2008
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009
$as_echo_n "(cached) " >&6
2012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013
$as_echo "$ac_res" >&6; }
2015
# Is the header compilable?
2016
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2017
$as_echo_n "checking $2 usability... " >&6; }
2018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019
/* end confdefs.h. */
2023
if ac_fn_c_try_compile "$LINENO"; then :
2024
ac_header_compiler=yes
2026
ac_header_compiler=no
2028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2030
$as_echo "$ac_header_compiler" >&6; }
2032
# Is the header present?
2033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2034
$as_echo_n "checking $2 presence... " >&6; }
2035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036
/* end confdefs.h. */
2039
if ac_fn_c_try_cpp "$LINENO"; then :
2040
ac_header_preproc=yes
2042
ac_header_preproc=no
2044
rm -f conftest.err conftest.$ac_ext
2045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2046
$as_echo "$ac_header_preproc" >&6; }
2048
# So? What about this header?
2049
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2051
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2052
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2053
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2057
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2058
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2059
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2060
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2061
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2062
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2063
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2064
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2065
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068
## --------------------------------- ##
2069
## Report this to edam@waxworlds.org ##
2070
## --------------------------------- ##
2072
) | sed "s/^/$as_me: WARNING: /" >&2
2075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076
$as_echo_n "checking for $2... " >&6; }
2077
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078
$as_echo_n "(cached) " >&6
2080
eval "$3=\$ac_header_compiler"
2083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084
$as_echo "$ac_res" >&6; }
2086
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088
} # ac_fn_c_check_header_mongrel
2089
cat >config.log <<_ACEOF
2090
This file contains any messages produced by compilers while
2091
running configure, to aid debugging if configure makes a mistake.
2093
It was created by sqlite3cc $as_me 0.1.0, which was
2094
generated by GNU Autoconf 2.65. Invocation command line was
2106
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2107
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2108
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2109
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2110
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2112
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2113
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2115
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2116
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2117
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2118
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2119
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2120
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2121
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129
test -z "$as_dir" && as_dir=.
2130
$as_echo "PATH: $as_dir"
2146
# Keep a trace of the command line.
2147
# Strip out --no-create and --no-recursion so they do not pile up.
2148
# Strip out --silent because we don't want to record it for future runs.
2149
# Also quote any args containing shell meta-characters.
2150
# Make two passes to allow for proper duplicate-argument suppression.
2154
ac_must_keep_next=false
2160
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2161
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2162
| -silent | --silent | --silen | --sile | --sil)
2165
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2170
as_fn_append ac_configure_args1 " '$ac_arg'"
2171
if test $ac_must_keep_next = true; then
2172
ac_must_keep_next=false # Got value, back to normal.
2175
*=* | --config-cache | -C | -disable-* | --disable-* \
2176
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2177
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2178
| -with-* | --with-* | -without-* | --without-* | --x)
2179
case "$ac_configure_args0 " in
2180
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183
-* ) ac_must_keep_next=true ;;
2186
as_fn_append ac_configure_args " '$ac_arg'"
2191
{ ac_configure_args0=; unset ac_configure_args0;}
2192
{ ac_configure_args1=; unset ac_configure_args1;}
2194
# When interrupted or exit'd, cleanup temporary files, and complete
2195
# config.log. We remove comments because anyway the quotes in there
2196
# would cause problems or look ugly.
2197
# WARNING: Use '\'' to represent an apostrophe within the trap.
2198
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2199
trap 'exit_status=$?
2200
# Save into config.log some information that might help in debugging.
2205
## ---------------- ##
2206
## Cache variables. ##
2207
## ---------------- ##
2210
# The following way of writing the cache mishandles newlines in values,
2212
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2213
eval ac_val=\$$ac_var
2217
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2218
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221
_ | IFS | as_nl) ;; #(
2222
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2223
*) { eval $ac_var=; unset $ac_var;} ;;
2228
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2229
*${as_nl}ac_space=\ *)
2231
"s/'\''/'\''\\\\'\'''\''/g;
2232
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2243
## ----------------- ##
2244
## Output variables. ##
2245
## ----------------- ##
2248
for ac_var in $ac_subst_vars
2250
eval ac_val=\$$ac_var
2252
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254
$as_echo "$ac_var='\''$ac_val'\''"
2258
if test -n "$ac_subst_files"; then
2260
## ------------------- ##
2261
## File substitutions. ##
2262
## ------------------- ##
2265
for ac_var in $ac_subst_files
2267
eval ac_val=\$$ac_var
2269
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271
$as_echo "$ac_var='\''$ac_val'\''"
2276
if test -s confdefs.h; then
2286
test "$ac_signal" != 0 &&
2287
$as_echo "$as_me: caught signal $ac_signal"
2288
$as_echo "$as_me: exit $exit_status"
2290
rm -f core *.core core.conftest.* &&
2291
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2294
for ac_signal in 1 2 13 15; do
2295
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2300
rm -f -r conftest* confdefs.h
2302
$as_echo "/* confdefs.h */" > confdefs.h
2304
# Predefined preprocessor variables.
2306
cat >>confdefs.h <<_ACEOF
2307
#define PACKAGE_NAME "$PACKAGE_NAME"
2310
cat >>confdefs.h <<_ACEOF
2311
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2314
cat >>confdefs.h <<_ACEOF
2315
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2318
cat >>confdefs.h <<_ACEOF
2319
#define PACKAGE_STRING "$PACKAGE_STRING"
2322
cat >>confdefs.h <<_ACEOF
2323
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2326
cat >>confdefs.h <<_ACEOF
2327
#define PACKAGE_URL "$PACKAGE_URL"
2331
# Let the site file select an alternate cache file if it wants to.
2332
# Prefer an explicitly selected file to automatically selected ones.
2335
if test -n "$CONFIG_SITE"; then
2336
ac_site_file1=$CONFIG_SITE
2337
elif test "x$prefix" != xNONE; then
2338
ac_site_file1=$prefix/share/config.site
2339
ac_site_file2=$prefix/etc/config.site
2341
ac_site_file1=$ac_default_prefix/share/config.site
2342
ac_site_file2=$ac_default_prefix/etc/config.site
2344
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346
test "x$ac_site_file" = xNONE && continue
2347
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2348
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2350
sed 's/^/| /' "$ac_site_file" >&5
2355
if test -r "$cache_file"; then
2356
# Some versions of bash will fail to source /dev/null (special files
2357
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2358
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2359
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2360
$as_echo "$as_me: loading cache $cache_file" >&6;}
2362
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2363
*) . "./$cache_file";;
2367
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2368
$as_echo "$as_me: creating cache $cache_file" >&6;}
2372
# Check that the precious variables saved in the cache have kept the same
2374
ac_cache_corrupted=false
2375
for ac_var in $ac_precious_vars; do
2376
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2377
eval ac_new_set=\$ac_env_${ac_var}_set
2378
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2379
eval ac_new_val=\$ac_env_${ac_var}_value
2380
case $ac_old_set,$ac_new_set in
2382
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2383
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2384
ac_cache_corrupted=: ;;
2386
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2387
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2388
ac_cache_corrupted=: ;;
2391
if test "x$ac_old_val" != "x$ac_new_val"; then
2392
# differences in whitespace do not lead to failure.
2393
ac_old_val_w=`echo x $ac_old_val`
2394
ac_new_val_w=`echo x $ac_new_val`
2395
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2396
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2397
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2398
ac_cache_corrupted=:
2400
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2401
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2402
eval $ac_var=\$ac_old_val
2404
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2405
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2406
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2407
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2410
# Pass precious variables to config.status.
2411
if test "$ac_new_set" = set; then
2413
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2414
*) ac_arg=$ac_var=$ac_new_val ;;
2416
case " $ac_configure_args " in
2417
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2418
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2422
if $ac_cache_corrupted; then
2423
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2424
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2425
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2426
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2427
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2429
## -------------------- ##
2430
## Main body of script. ##
2431
## -------------------- ##
2434
ac_cpp='$CPP $CPPFLAGS'
2435
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440
LIBSQLITE3CC_INTERFACE=0:0:0
2443
for ac_dir in build-aux "$srcdir"/build-aux; do
2444
for ac_t in install-sh install.sh shtool; do
2445
if test -f "$ac_dir/$ac_t"; then
2447
ac_install_sh="$ac_aux_dir/$ac_t -c"
2452
if test -z "$ac_aux_dir"; then
2453
as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2456
# These three variables are undocumented and unsupported,
2457
# and are intended to be withdrawn in a future Autoconf release.
2458
# They can cause serious problems if a builder's source tree is in a directory
2459
# whose full name contains unusual characters.
2460
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2461
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2462
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2466
am__api_version='1.11'
2468
# Find a good install program. We prefer a C program (faster),
2469
# so one script is as good as another. But avoid the broken or
2470
# incompatible versions:
2471
# SysV /etc/install, /usr/sbin/install
2472
# SunOS /usr/etc/install
2473
# IRIX /sbin/install
2475
# AmigaOS /C/install, which installs bootblocks on floppy discs
2476
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2477
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2478
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2479
# OS/2's system install, which has a completely different semantic
2480
# ./install, which can be erroneously created by make from ./install.sh.
2481
# Reject install programs that cannot install multiple files.
2482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2483
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2484
if test -z "$INSTALL"; then
2485
if test "${ac_cv_path_install+set}" = set; then :
2486
$as_echo_n "(cached) " >&6
2488
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492
test -z "$as_dir" && as_dir=.
2493
# Account for people who put trailing slashes in PATH elements.
2494
case $as_dir/ in #((
2495
./ | .// | /[cC]/* | \
2496
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2497
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2500
# OSF1 and SCO ODT 3.0 have their own names for install.
2501
# Don't use installbsd from OSF since it installs stuff as root
2503
for ac_prog in ginstall scoinst install; do
2504
for ac_exec_ext in '' $ac_executable_extensions; do
2505
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2506
if test $ac_prog = install &&
2507
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508
# AIX install. It has an incompatible calling convention.
2510
elif test $ac_prog = install &&
2511
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512
# program-specific install script used by HP pwplus--don't use.
2515
rm -rf conftest.one conftest.two conftest.dir
2516
echo one > conftest.one
2517
echo two > conftest.two
2519
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2520
test -s conftest.one && test -s conftest.two &&
2521
test -s conftest.dir/conftest.one &&
2522
test -s conftest.dir/conftest.two
2524
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537
rm -rf conftest.one conftest.two conftest.dir
2540
if test "${ac_cv_path_install+set}" = set; then
2541
INSTALL=$ac_cv_path_install
2543
# As a last resort, use the slow shell script. Don't cache a
2544
# value for INSTALL within a source directory, because that will
2545
# break other packages using the cache if that directory is
2546
# removed, or if the value is a relative name.
2547
INSTALL=$ac_install_sh
2550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2551
$as_echo "$INSTALL" >&6; }
2553
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2554
# It thinks the first close brace ends the variable substitution.
2555
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2557
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2559
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2562
$as_echo_n "checking whether build environment is sane... " >&6; }
2565
echo timestamp > conftest.file
2566
# Reject unsafe characters in $srcdir or the absolute working directory
2567
# name. Accept space and tab only in the latter.
2571
*[\\\"\#\$\&\'\`$am_lf]*)
2572
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2575
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2576
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2579
# Do `set' in a subshell so we don't clobber the current shell's
2580
# arguments. Must try -L first in case configure is actually a
2581
# symlink; some systems play weird games with the mod time of symlinks
2582
# (eg FreeBSD returns the mod time of the symlink's containing
2585
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2586
if test "$*" = "X"; then
2588
set X `ls -t "$srcdir/configure" conftest.file`
2591
if test "$*" != "X $srcdir/configure conftest.file" \
2592
&& test "$*" != "X conftest.file $srcdir/configure"; then
2594
# If neither matched, then we have a broken ls. This can happen
2595
# if, for instance, CONFIG_SHELL is bash and it inherits a
2596
# broken ls alias from the environment. This has actually
2597
# happened. Such a system could not be considered "sane".
2598
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2599
alias in your environment" "$LINENO" 5
2602
test "$2" = conftest.file
2608
as_fn_error "newly created file is older than distributed files!
2609
Check your system clock" "$LINENO" 5
2611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612
$as_echo "yes" >&6; }
2613
test "$program_prefix" != NONE &&
2614
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2615
# Use a double $ so make ignores it.
2616
test "$program_suffix" != NONE &&
2617
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2618
# Double any \ or $.
2619
# By default was `s,x,x', remove it if useless.
2620
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2621
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2623
# expand $ac_aux_dir to an absolute path
2624
am_aux_dir=`cd $ac_aux_dir && pwd`
2626
if test x"${MISSING+set}" != xset; then
2629
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2631
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2634
# Use eval to expand $SHELL
2635
if eval "$MISSING --run true"; then
2636
am_missing_run="$MISSING --run "
2639
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2640
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2643
if test x"${install_sh}" != xset; then
2646
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2648
install_sh="\${SHELL} $am_aux_dir/install-sh"
2652
# Installed binaries are usually stripped using `strip' when the user
2653
# run `make install-strip'. However `strip' might not be the right
2654
# tool to use in cross-compilation environments, therefore Automake
2655
# will honor the `STRIP' environment variable to overrule this program.
2656
if test "$cross_compiling" != no; then
2657
if test -n "$ac_tool_prefix"; then
2658
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2659
set dummy ${ac_tool_prefix}strip; ac_word=$2
2660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661
$as_echo_n "checking for $ac_word... " >&6; }
2662
if test "${ac_cv_prog_STRIP+set}" = set; then :
2663
$as_echo_n "(cached) " >&6
2665
if test -n "$STRIP"; then
2666
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672
test -z "$as_dir" && as_dir=.
2673
for ac_exec_ext in '' $ac_executable_extensions; do
2674
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2676
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685
STRIP=$ac_cv_prog_STRIP
2686
if test -n "$STRIP"; then
2687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2688
$as_echo "$STRIP" >&6; }
2690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691
$as_echo "no" >&6; }
2696
if test -z "$ac_cv_prog_STRIP"; then
2698
# Extract the first word of "strip", so it can be a program name with args.
2699
set dummy strip; ac_word=$2
2700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701
$as_echo_n "checking for $ac_word... " >&6; }
2702
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2703
$as_echo_n "(cached) " >&6
2705
if test -n "$ac_ct_STRIP"; then
2706
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2708
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712
test -z "$as_dir" && as_dir=.
2713
for ac_exec_ext in '' $ac_executable_extensions; do
2714
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715
ac_cv_prog_ac_ct_STRIP="strip"
2716
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2726
if test -n "$ac_ct_STRIP"; then
2727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2728
$as_echo "$ac_ct_STRIP" >&6; }
2730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731
$as_echo "no" >&6; }
2734
if test "x$ac_ct_STRIP" = x; then
2737
case $cross_compiling:$ac_tool_warned in
2739
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2740
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2741
ac_tool_warned=yes ;;
2746
STRIP="$ac_cv_prog_STRIP"
2750
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2753
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2754
if test -z "$MKDIR_P"; then
2755
if test "${ac_cv_path_mkdir+set}" = set; then :
2756
$as_echo_n "(cached) " >&6
2758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2762
test -z "$as_dir" && as_dir=.
2763
for ac_prog in mkdir gmkdir; do
2764
for ac_exec_ext in '' $ac_executable_extensions; do
2765
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2766
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2767
'mkdir (GNU coreutils) '* | \
2768
'mkdir (coreutils) '* | \
2769
'mkdir (fileutils) '4.1*)
2770
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2780
test -d ./--version && rmdir ./--version
2781
if test "${ac_cv_path_mkdir+set}" = set; then
2782
MKDIR_P="$ac_cv_path_mkdir -p"
2784
# As a last resort, use the slow shell script. Don't cache a
2785
# value for MKDIR_P within a source directory, because that will
2786
# break other packages using the cache if that directory is
2787
# removed, or if the value is a relative name.
2788
MKDIR_P="$ac_install_sh -d"
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2792
$as_echo "$MKDIR_P" >&6; }
2796
[\\/$]* | ?:[\\/]*) ;;
2797
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2800
for ac_prog in gawk mawk nawk awk
2802
# Extract the first word of "$ac_prog", so it can be a program name with args.
2803
set dummy $ac_prog; ac_word=$2
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805
$as_echo_n "checking for $ac_word... " >&6; }
2806
if test "${ac_cv_prog_AWK+set}" = set; then :
2807
$as_echo_n "(cached) " >&6
2809
if test -n "$AWK"; then
2810
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816
test -z "$as_dir" && as_dir=.
2817
for ac_exec_ext in '' $ac_executable_extensions; do
2818
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819
ac_cv_prog_AWK="$ac_prog"
2820
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830
if test -n "$AWK"; then
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2832
$as_echo "$AWK" >&6; }
2834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835
$as_echo "no" >&6; }
2839
test -n "$AWK" && break
2842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2843
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2845
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2846
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2847
$as_echo_n "(cached) " >&6
2849
cat >conftest.make <<\_ACEOF
2852
@echo '@@@%%%=$(MAKE)=@@@%%%'
2854
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2855
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2857
eval ac_cv_prog_make_${ac_make}_set=yes;;
2859
eval ac_cv_prog_make_${ac_make}_set=no;;
2863
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2865
$as_echo "yes" >&6; }
2868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869
$as_echo "no" >&6; }
2870
SET_MAKE="MAKE=${MAKE-make}"
2873
rm -rf .tst 2>/dev/null
2874
mkdir .tst 2>/dev/null
2875
if test -d .tst; then
2880
rmdir .tst 2>/dev/null
2882
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2883
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2884
# is not polluted with repeated "-I."
2885
am__isrc=' -I$(srcdir)'
2886
# test to see if srcdir already configured
2887
if test -f $srcdir/config.status; then
2888
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2892
# test whether we have cygpath
2893
if test -z "$CYGPATH_W"; then
2894
if (cygpath --version) >/dev/null 2>/dev/null; then
2895
CYGPATH_W='cygpath -w'
2902
# Define the identity of the package.
2907
cat >>confdefs.h <<_ACEOF
2908
#define PACKAGE "$PACKAGE"
2912
cat >>confdefs.h <<_ACEOF
2913
#define VERSION "$VERSION"
2916
# Some tools Automake needs.
2918
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2921
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2924
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2927
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2930
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2932
# We need awk for the "check" target. The system "awk" is bad on
2934
# Always define AMTAR for backward compatibility.
2936
AMTAR=${AMTAR-"${am_missing_run}tar"}
2938
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2945
ac_config_headers="$ac_config_headers config.h"
2949
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2950
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2955
macro_version='2.2.6b'
2956
macro_revision='1.3017'
2970
ltmain="$ac_aux_dir/ltmain.sh"
2972
# Make sure we can run config.sub.
2973
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2974
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2977
$as_echo_n "checking build system type... " >&6; }
2978
if test "${ac_cv_build+set}" = set; then :
2979
$as_echo_n "(cached) " >&6
2981
ac_build_alias=$build_alias
2982
test "x$ac_build_alias" = x &&
2983
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2984
test "x$ac_build_alias" = x &&
2985
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2986
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2987
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2990
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2991
$as_echo "$ac_cv_build" >&6; }
2992
case $ac_cv_build in
2994
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2997
ac_save_IFS=$IFS; IFS='-'
3003
# Remember, the first character of IFS is used to create $*,
3004
# except with old shells:
3007
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3011
$as_echo_n "checking host system type... " >&6; }
3012
if test "${ac_cv_host+set}" = set; then :
3013
$as_echo_n "(cached) " >&6
3015
if test "x$host_alias" = x; then
3016
ac_cv_host=$ac_cv_build
3018
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3019
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3024
$as_echo "$ac_cv_host" >&6; }
3027
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3030
ac_save_IFS=$IFS; IFS='-'
3036
# Remember, the first character of IFS is used to create $*,
3037
# except with old shells:
3040
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3043
DEPDIR="${am__leading_dot}deps"
3045
ac_config_commands="$ac_config_commands depfiles"
3048
am_make=${MAKE-make}
3049
cat > confinc << 'END'
3051
@echo this is the am__doit target
3054
# If we don't find an include directive, just comment out the code.
3055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3056
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3060
# First try GNU make style include.
3061
echo "include confinc" > confmf
3062
# Ignore all kinds of additional output from `make'.
3063
case `$am_make -s -f confmf 2> /dev/null` in #(
3064
*the\ am__doit\ target*)
3070
# Now try BSD make style include.
3071
if test "$am__include" = "#"; then
3072
echo '.include "confinc"' > confmf
3073
case `$am_make -s -f confmf 2> /dev/null` in #(
3074
*the\ am__doit\ target*)
3075
am__include=.include
3083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3084
$as_echo "$_am_result" >&6; }
3085
rm -f confinc confmf
3087
# Check whether --enable-dependency-tracking was given.
3088
if test "${enable_dependency_tracking+set}" = set; then :
3089
enableval=$enable_dependency_tracking;
3092
if test "x$enable_dependency_tracking" != xno; then
3093
am_depcomp="$ac_aux_dir/depcomp"
3096
if test "x$enable_dependency_tracking" != xno; then
3106
ac_cpp='$CPP $CPPFLAGS'
3107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110
if test -n "$ac_tool_prefix"; then
3111
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3112
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114
$as_echo_n "checking for $ac_word... " >&6; }
3115
if test "${ac_cv_prog_CC+set}" = set; then :
3116
$as_echo_n "(cached) " >&6
3118
if test -n "$CC"; then
3119
ac_cv_prog_CC="$CC" # Let the user override the test.
3121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125
test -z "$as_dir" && as_dir=.
3126
for ac_exec_ext in '' $ac_executable_extensions; do
3127
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3129
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139
if test -n "$CC"; then
3140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141
$as_echo "$CC" >&6; }
3143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144
$as_echo "no" >&6; }
3149
if test -z "$ac_cv_prog_CC"; then
3151
# Extract the first word of "gcc", so it can be a program name with args.
3152
set dummy gcc; ac_word=$2
3153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154
$as_echo_n "checking for $ac_word... " >&6; }
3155
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3156
$as_echo_n "(cached) " >&6
3158
if test -n "$ac_ct_CC"; then
3159
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165
test -z "$as_dir" && as_dir=.
3166
for ac_exec_ext in '' $ac_executable_extensions; do
3167
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168
ac_cv_prog_ac_ct_CC="gcc"
3169
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3179
if test -n "$ac_ct_CC"; then
3180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3181
$as_echo "$ac_ct_CC" >&6; }
3183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184
$as_echo "no" >&6; }
3187
if test "x$ac_ct_CC" = x; then
3190
case $cross_compiling:$ac_tool_warned in
3192
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194
ac_tool_warned=yes ;;
3202
if test -z "$CC"; then
3203
if test -n "$ac_tool_prefix"; then
3204
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3205
set dummy ${ac_tool_prefix}cc; ac_word=$2
3206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207
$as_echo_n "checking for $ac_word... " >&6; }
3208
if test "${ac_cv_prog_CC+set}" = set; then :
3209
$as_echo_n "(cached) " >&6
3211
if test -n "$CC"; then
3212
ac_cv_prog_CC="$CC" # Let the user override the test.
3214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218
test -z "$as_dir" && as_dir=.
3219
for ac_exec_ext in '' $ac_executable_extensions; do
3220
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3221
ac_cv_prog_CC="${ac_tool_prefix}cc"
3222
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232
if test -n "$CC"; then
3233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234
$as_echo "$CC" >&6; }
3236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237
$as_echo "no" >&6; }
3243
if test -z "$CC"; then
3244
# Extract the first word of "cc", so it can be a program name with args.
3245
set dummy cc; ac_word=$2
3246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247
$as_echo_n "checking for $ac_word... " >&6; }
3248
if test "${ac_cv_prog_CC+set}" = set; then :
3249
$as_echo_n "(cached) " >&6
3251
if test -n "$CC"; then
3252
ac_cv_prog_CC="$CC" # Let the user override the test.
3255
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259
test -z "$as_dir" && as_dir=.
3260
for ac_exec_ext in '' $ac_executable_extensions; do
3261
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3263
ac_prog_rejected=yes
3267
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274
if test $ac_prog_rejected = yes; then
3275
# We found a bogon in the path, so make sure we never use it.
3276
set dummy $ac_cv_prog_CC
3278
if test $# != 0; then
3279
# We chose a different compiler from the bogus one.
3280
# However, it has the same basename, so the bogon will be chosen
3281
# first if we set CC to just the basename; use the full file name.
3283
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3289
if test -n "$CC"; then
3290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291
$as_echo "$CC" >&6; }
3293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294
$as_echo "no" >&6; }
3299
if test -z "$CC"; then
3300
if test -n "$ac_tool_prefix"; then
3301
for ac_prog in cl.exe
3303
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3304
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306
$as_echo_n "checking for $ac_word... " >&6; }
3307
if test "${ac_cv_prog_CC+set}" = set; then :
3308
$as_echo_n "(cached) " >&6
3310
if test -n "$CC"; then
3311
ac_cv_prog_CC="$CC" # Let the user override the test.
3313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317
test -z "$as_dir" && as_dir=.
3318
for ac_exec_ext in '' $ac_executable_extensions; do
3319
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3321
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331
if test -n "$CC"; then
3332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333
$as_echo "$CC" >&6; }
3335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336
$as_echo "no" >&6; }
3340
test -n "$CC" && break
3343
if test -z "$CC"; then
3345
for ac_prog in cl.exe
3347
# Extract the first word of "$ac_prog", so it can be a program name with args.
3348
set dummy $ac_prog; ac_word=$2
3349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350
$as_echo_n "checking for $ac_word... " >&6; }
3351
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3352
$as_echo_n "(cached) " >&6
3354
if test -n "$ac_ct_CC"; then
3355
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361
test -z "$as_dir" && as_dir=.
3362
for ac_exec_ext in '' $ac_executable_extensions; do
3363
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364
ac_cv_prog_ac_ct_CC="$ac_prog"
3365
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3375
if test -n "$ac_ct_CC"; then
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3377
$as_echo "$ac_ct_CC" >&6; }
3379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380
$as_echo "no" >&6; }
3384
test -n "$ac_ct_CC" && break
3387
if test "x$ac_ct_CC" = x; then
3390
case $cross_compiling:$ac_tool_warned in
3392
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394
ac_tool_warned=yes ;;
3403
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405
as_fn_error "no acceptable C compiler found in \$PATH
3406
See \`config.log' for more details." "$LINENO" 5; }
3408
# Provide some information about the compiler.
3409
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3412
for ac_option in --version -v -V -qversion; do
3413
{ { ac_try="$ac_compiler $ac_option >&5"
3415
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416
*) ac_try_echo=$ac_try;;
3418
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419
$as_echo "$ac_try_echo"; } >&5
3420
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3422
if test -s conftest.err; then
3424
... rest of stderr output deleted ...
3425
10q' conftest.err >conftest.er1
3426
cat conftest.er1 >&5
3428
rm -f conftest.er1 conftest.err
3429
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430
test $ac_status = 0; }
3433
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434
/* end confdefs.h. */
3444
ac_clean_files_save=$ac_clean_files
3445
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3446
# Try to create an executable without -o first, disregard a.out.
3447
# It will help us diagnose broken compilers, and finding out an intuition
3449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3450
$as_echo_n "checking whether the C compiler works... " >&6; }
3451
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3453
# The possible output files:
3454
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3457
for ac_file in $ac_files
3460
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3466
if { { ac_try="$ac_link_default"
3468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469
*) ac_try_echo=$ac_try;;
3471
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472
$as_echo "$ac_try_echo"; } >&5
3473
(eval "$ac_link_default") 2>&5
3475
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476
test $ac_status = 0; }; then :
3477
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3478
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3479
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3480
# so that the user can short-circuit this test for compilers unknown to
3482
for ac_file in $ac_files ''
3484
test -f "$ac_file" || continue
3486
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3489
# We found the default executable, but exeext='' is most
3493
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3495
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3497
# We set ac_cv_exeext here because the later test for it is not
3498
# safe: cross compilers may not add the suffix if given an `-o'
3499
# argument, so we may need to know it at that point already.
3500
# Even if this section looks crufty: it has the advantage of
3507
test "$ac_cv_exeext" = no && ac_cv_exeext=
3512
if test -z "$ac_file"; then :
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514
$as_echo "no" >&6; }
3515
$as_echo "$as_me: failed program was:" >&5
3516
sed 's/^/| /' conftest.$ac_ext >&5
3518
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520
{ as_fn_set_status 77
3521
as_fn_error "C compiler cannot create executables
3522
See \`config.log' for more details." "$LINENO" 5; }; }
3524
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525
$as_echo "yes" >&6; }
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3528
$as_echo_n "checking for C compiler default output file name... " >&6; }
3529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3530
$as_echo "$ac_file" >&6; }
3531
ac_exeext=$ac_cv_exeext
3533
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3534
ac_clean_files=$ac_clean_files_save
3535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3536
$as_echo_n "checking for suffix of executables... " >&6; }
3537
if { { ac_try="$ac_link"
3539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540
*) ac_try_echo=$ac_try;;
3542
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543
$as_echo "$ac_try_echo"; } >&5
3544
(eval "$ac_link") 2>&5
3546
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547
test $ac_status = 0; }; then :
3548
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3549
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3550
# work properly (i.e., refer to `conftest.exe'), while it won't with
3552
for ac_file in conftest.exe conftest conftest.*; do
3553
test -f "$ac_file" || continue
3555
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3556
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3562
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564
as_fn_error "cannot compute suffix of executables: cannot compile and link
3565
See \`config.log' for more details." "$LINENO" 5; }
3567
rm -f conftest conftest$ac_cv_exeext
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3569
$as_echo "$ac_cv_exeext" >&6; }
3571
rm -f conftest.$ac_ext
3572
EXEEXT=$ac_cv_exeext
3574
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575
/* end confdefs.h. */
3580
FILE *f = fopen ("conftest.out", "w");
3581
return ferror (f) || fclose (f) != 0;
3587
ac_clean_files="$ac_clean_files conftest.out"
3588
# Check that the compiler produces executables we can run. If not, either
3589
# the compiler is broken, or we cross compile.
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3591
$as_echo_n "checking whether we are cross compiling... " >&6; }
3592
if test "$cross_compiling" != yes; then
3593
{ { ac_try="$ac_link"
3595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596
*) ac_try_echo=$ac_try;;
3598
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599
$as_echo "$ac_try_echo"; } >&5
3600
(eval "$ac_link") 2>&5
3602
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603
test $ac_status = 0; }
3604
if { ac_try='./conftest$ac_cv_exeext'
3605
{ { case "(($ac_try" in
3606
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607
*) ac_try_echo=$ac_try;;
3609
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610
$as_echo "$ac_try_echo"; } >&5
3611
(eval "$ac_try") 2>&5
3613
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614
test $ac_status = 0; }; }; then
3617
if test "$cross_compiling" = maybe; then
3620
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622
as_fn_error "cannot run C compiled programs.
3623
If you meant to cross compile, use \`--host'.
3624
See \`config.log' for more details." "$LINENO" 5; }
3628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3629
$as_echo "$cross_compiling" >&6; }
3631
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3632
ac_clean_files=$ac_clean_files_save
3633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3634
$as_echo_n "checking for suffix of object files... " >&6; }
3635
if test "${ac_cv_objext+set}" = set; then :
3636
$as_echo_n "(cached) " >&6
3638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639
/* end confdefs.h. */
3649
rm -f conftest.o conftest.obj
3650
if { { ac_try="$ac_compile"
3652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653
*) ac_try_echo=$ac_try;;
3655
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656
$as_echo "$ac_try_echo"; } >&5
3657
(eval "$ac_compile") 2>&5
3659
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660
test $ac_status = 0; }; then :
3661
for ac_file in conftest.o conftest.obj conftest.*; do
3662
test -f "$ac_file" || continue;
3664
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3665
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3670
$as_echo "$as_me: failed program was:" >&5
3671
sed 's/^/| /' conftest.$ac_ext >&5
3673
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675
as_fn_error "cannot compute suffix of object files: cannot compile
3676
See \`config.log' for more details." "$LINENO" 5; }
3678
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3681
$as_echo "$ac_cv_objext" >&6; }
3682
OBJEXT=$ac_cv_objext
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3685
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3686
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3687
$as_echo_n "(cached) " >&6
3689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690
/* end confdefs.h. */
3703
if ac_fn_c_try_compile "$LINENO"; then :
3708
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3713
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3714
if test $ac_compiler_gnu = yes; then
3719
ac_test_CFLAGS=${CFLAGS+set}
3720
ac_save_CFLAGS=$CFLAGS
3721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3722
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3723
if test "${ac_cv_prog_cc_g+set}" = set; then :
3724
$as_echo_n "(cached) " >&6
3726
ac_save_c_werror_flag=$ac_c_werror_flag
3727
ac_c_werror_flag=yes
3730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731
/* end confdefs.h. */
3741
if ac_fn_c_try_compile "$LINENO"; then :
3745
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746
/* end confdefs.h. */
3756
if ac_fn_c_try_compile "$LINENO"; then :
3759
ac_c_werror_flag=$ac_save_c_werror_flag
3761
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762
/* end confdefs.h. */
3772
if ac_fn_c_try_compile "$LINENO"; then :
3775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780
ac_c_werror_flag=$ac_save_c_werror_flag
3782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3783
$as_echo "$ac_cv_prog_cc_g" >&6; }
3784
if test "$ac_test_CFLAGS" = set; then
3785
CFLAGS=$ac_save_CFLAGS
3786
elif test $ac_cv_prog_cc_g = yes; then
3787
if test "$GCC" = yes; then
3793
if test "$GCC" = yes; then
3799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3800
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3801
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3802
$as_echo_n "(cached) " >&6
3804
ac_cv_prog_cc_c89=no
3806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807
/* end confdefs.h. */
3810
#include <sys/types.h>
3811
#include <sys/stat.h>
3812
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3813
struct buf { int x; };
3814
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3815
static char *e (p, i)
3821
static char *f (char * (*g) (char **, int), char **p, ...)
3826
s = g (p, va_arg (v,int));
3831
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3832
function prototypes and stuff, but not '\xHH' hex character constants.
3833
These don't provoke an error unfortunately, instead are silently treated
3834
as 'x'. The following induces an error, until -std is added to get
3835
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3836
array size at least. It's necessary to write '\x00'==0 to get something
3837
that's true only with -std. */
3838
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3840
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3841
inside strings and character constants. */
3843
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3845
int test (int i, double x);
3846
struct s1 {int (*f) (int a);};
3847
struct s2 {int (*f) (double a);};
3848
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3854
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3859
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3860
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3862
CC="$ac_save_CC $ac_arg"
3863
if ac_fn_c_try_compile "$LINENO"; then :
3864
ac_cv_prog_cc_c89=$ac_arg
3866
rm -f core conftest.err conftest.$ac_objext
3867
test "x$ac_cv_prog_cc_c89" != "xno" && break
3869
rm -f conftest.$ac_ext
3874
case "x$ac_cv_prog_cc_c89" in
3876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3877
$as_echo "none needed" >&6; } ;;
3879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3880
$as_echo "unsupported" >&6; } ;;
3882
CC="$CC $ac_cv_prog_cc_c89"
3883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3884
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3886
if test "x$ac_cv_prog_cc_c89" != xno; then :
3891
ac_cpp='$CPP $CPPFLAGS'
3892
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896
depcc="$CC" am_compiler_list=
3898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3899
$as_echo_n "checking dependency style of $depcc... " >&6; }
3900
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3901
$as_echo_n "(cached) " >&6
3903
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3904
# We make a subdir and do the tests there. Otherwise we can end up
3905
# making bogus files that we don't know about and never remove. For
3906
# instance it was reported that on HP-UX the gcc test will end up
3907
# making a dummy file named `D' -- because `-MD' means `put the output
3910
# Copy depcomp to subdir because otherwise we won't find it if we're
3911
# using a relative directory.
3912
cp "$am_depcomp" conftest.dir
3914
# We will build objects and dependencies in a subdirectory because
3915
# it helps to detect inapplicable dependency modes. For instance
3916
# both Tru64's cc and ICC support -MD to output dependencies as a
3917
# side effect of compilation, but ICC will put the dependencies in
3918
# the current directory while Tru64 will put them in the object
3922
am_cv_CC_dependencies_compiler_type=none
3923
if test "$am_compiler_list" = ""; then
3924
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3927
case " $depcc " in #(
3928
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3931
for depmode in $am_compiler_list; do
3932
# Setup a source with many dependencies, because some compilers
3933
# like to wrap large dependency lists on column 80 (with \), and
3934
# we should not choose a depcomp mode which is confused by this.
3936
# We need to recreate these files for each test, as the compiler may
3937
# overwrite some of them when testing with obscure command lines.
3938
# This happens at least with the AIX C compiler.
3940
for i in 1 2 3 4 5 6; do
3941
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3942
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3943
# Solaris 8's {/usr,}/bin/sh.
3944
touch sub/conftst$i.h
3946
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3948
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3949
# mode. It turns out that the SunPro C++ compiler does not properly
3950
# handle `-M -o', and we need to detect this. Also, some Intel
3951
# versions had trouble with output in subdirs
3952
am__obj=sub/conftest.${OBJEXT-o}
3953
am__minus_obj="-o $am__obj"
3956
# This depmode causes a compiler race in universal mode.
3957
test "$am__universal" = false || continue
3960
# after this tag, mechanisms are not by side-effect, so they'll
3961
# only be used when explicitly requested
3962
if test "x$enable_dependency_tracking" = xyes; then
3968
msvisualcpp | msvcmsys)
3969
# This compiler won't grok `-c -o', but also, the minuso test has
3970
# not run yet. These depmodes are late enough in the game, and
3971
# so weak that their functioning should not be impacted.
3972
am__obj=conftest.${OBJEXT-o}
3977
if depmode=$depmode \
3978
source=sub/conftest.c object=$am__obj \
3979
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3980
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3981
>/dev/null 2>conftest.err &&
3982
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3983
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3984
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3985
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3986
# icc doesn't choke on unknown options, it will just issue warnings
3987
# or remarks (even with -Werror). So we grep stderr for any message
3988
# that says an option was ignored or not supported.
3989
# When given -MP, icc 7.0 and 7.1 complain thusly:
3990
# icc: Command line warning: ignoring option '-M'; no argument required
3991
# The diagnosis changed in icc 8.0:
3992
# icc: Command line remark: option '-MP' not supported
3993
if (grep 'ignoring option' conftest.err ||
3994
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3995
am_cv_CC_dependencies_compiler_type=$depmode
4004
am_cv_CC_dependencies_compiler_type=none
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4009
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4010
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4013
test "x$enable_dependency_tracking" != xno \
4014
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4016
am__fastdepCC_FALSE='#'
4018
am__fastdepCC_TRUE='#'
4019
am__fastdepCC_FALSE=
4023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4024
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4025
if test "${ac_cv_path_SED+set}" = set; then :
4026
$as_echo_n "(cached) " >&6
4028
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4029
for ac_i in 1 2 3 4 5 6 7; do
4030
ac_script="$ac_script$as_nl$ac_script"
4032
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4033
{ ac_script=; unset ac_script;}
4034
if test -z "$SED"; then
4035
ac_path_SED_found=false
4036
# Loop through the user's path and test for each of PROGNAME-LIST
4037
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041
test -z "$as_dir" && as_dir=.
4042
for ac_prog in sed gsed; do
4043
for ac_exec_ext in '' $ac_executable_extensions; do
4044
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4045
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4046
# Check for GNU ac_path_SED and select it if it is found.
4047
# Check for GNU $ac_path_SED
4048
case `"$ac_path_SED" --version 2>&1` in
4050
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4053
$as_echo_n 0123456789 >"conftest.in"
4056
cat "conftest.in" "conftest.in" >"conftest.tmp"
4057
mv "conftest.tmp" "conftest.in"
4058
cp "conftest.in" "conftest.nl"
4059
$as_echo '' >> "conftest.nl"
4060
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4061
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4062
as_fn_arith $ac_count + 1 && ac_count=$as_val
4063
if test $ac_count -gt ${ac_path_SED_max-0}; then
4064
# Best one so far, save it but keep looking for a better one
4065
ac_cv_path_SED="$ac_path_SED"
4066
ac_path_SED_max=$ac_count
4068
# 10*(2^10) chars as input seems more than enough
4069
test $ac_count -gt 10 && break
4071
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074
$ac_path_SED_found && break 3
4079
if test -z "$ac_cv_path_SED"; then
4080
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4088
$as_echo "$ac_cv_path_SED" >&6; }
4089
SED="$ac_cv_path_SED"
4092
test -z "$SED" && SED=sed
4093
Xsed="$SED -e 1s/^X//"
4105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4106
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4107
if test "${ac_cv_path_GREP+set}" = set; then :
4108
$as_echo_n "(cached) " >&6
4110
if test -z "$GREP"; then
4111
ac_path_GREP_found=false
4112
# Loop through the user's path and test for each of PROGNAME-LIST
4113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4117
test -z "$as_dir" && as_dir=.
4118
for ac_prog in grep ggrep; do
4119
for ac_exec_ext in '' $ac_executable_extensions; do
4120
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4121
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4122
# Check for GNU ac_path_GREP and select it if it is found.
4123
# Check for GNU $ac_path_GREP
4124
case `"$ac_path_GREP" --version 2>&1` in
4126
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4129
$as_echo_n 0123456789 >"conftest.in"
4132
cat "conftest.in" "conftest.in" >"conftest.tmp"
4133
mv "conftest.tmp" "conftest.in"
4134
cp "conftest.in" "conftest.nl"
4135
$as_echo 'GREP' >> "conftest.nl"
4136
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4137
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4138
as_fn_arith $ac_count + 1 && ac_count=$as_val
4139
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4140
# Best one so far, save it but keep looking for a better one
4141
ac_cv_path_GREP="$ac_path_GREP"
4142
ac_path_GREP_max=$ac_count
4144
# 10*(2^10) chars as input seems more than enough
4145
test $ac_count -gt 10 && break
4147
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150
$ac_path_GREP_found && break 3
4155
if test -z "$ac_cv_path_GREP"; then
4156
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4159
ac_cv_path_GREP=$GREP
4163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4164
$as_echo "$ac_cv_path_GREP" >&6; }
4165
GREP="$ac_cv_path_GREP"
4168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4169
$as_echo_n "checking for egrep... " >&6; }
4170
if test "${ac_cv_path_EGREP+set}" = set; then :
4171
$as_echo_n "(cached) " >&6
4173
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4174
then ac_cv_path_EGREP="$GREP -E"
4176
if test -z "$EGREP"; then
4177
ac_path_EGREP_found=false
4178
# Loop through the user's path and test for each of PROGNAME-LIST
4179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183
test -z "$as_dir" && as_dir=.
4184
for ac_prog in egrep; do
4185
for ac_exec_ext in '' $ac_executable_extensions; do
4186
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4187
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4188
# Check for GNU ac_path_EGREP and select it if it is found.
4189
# Check for GNU $ac_path_EGREP
4190
case `"$ac_path_EGREP" --version 2>&1` in
4192
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4195
$as_echo_n 0123456789 >"conftest.in"
4198
cat "conftest.in" "conftest.in" >"conftest.tmp"
4199
mv "conftest.tmp" "conftest.in"
4200
cp "conftest.in" "conftest.nl"
4201
$as_echo 'EGREP' >> "conftest.nl"
4202
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204
as_fn_arith $ac_count + 1 && ac_count=$as_val
4205
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4206
# Best one so far, save it but keep looking for a better one
4207
ac_cv_path_EGREP="$ac_path_EGREP"
4208
ac_path_EGREP_max=$ac_count
4210
# 10*(2^10) chars as input seems more than enough
4211
test $ac_count -gt 10 && break
4213
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216
$ac_path_EGREP_found && break 3
4221
if test -z "$ac_cv_path_EGREP"; then
4222
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4225
ac_cv_path_EGREP=$EGREP
4230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4231
$as_echo "$ac_cv_path_EGREP" >&6; }
4232
EGREP="$ac_cv_path_EGREP"
4235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4236
$as_echo_n "checking for fgrep... " >&6; }
4237
if test "${ac_cv_path_FGREP+set}" = set; then :
4238
$as_echo_n "(cached) " >&6
4240
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4241
then ac_cv_path_FGREP="$GREP -F"
4243
if test -z "$FGREP"; then
4244
ac_path_FGREP_found=false
4245
# Loop through the user's path and test for each of PROGNAME-LIST
4246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4250
test -z "$as_dir" && as_dir=.
4251
for ac_prog in fgrep; do
4252
for ac_exec_ext in '' $ac_executable_extensions; do
4253
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4254
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4255
# Check for GNU ac_path_FGREP and select it if it is found.
4256
# Check for GNU $ac_path_FGREP
4257
case `"$ac_path_FGREP" --version 2>&1` in
4259
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4262
$as_echo_n 0123456789 >"conftest.in"
4265
cat "conftest.in" "conftest.in" >"conftest.tmp"
4266
mv "conftest.tmp" "conftest.in"
4267
cp "conftest.in" "conftest.nl"
4268
$as_echo 'FGREP' >> "conftest.nl"
4269
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271
as_fn_arith $ac_count + 1 && ac_count=$as_val
4272
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4273
# Best one so far, save it but keep looking for a better one
4274
ac_cv_path_FGREP="$ac_path_FGREP"
4275
ac_path_FGREP_max=$ac_count
4277
# 10*(2^10) chars as input seems more than enough
4278
test $ac_count -gt 10 && break
4280
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4283
$ac_path_FGREP_found && break 3
4288
if test -z "$ac_cv_path_FGREP"; then
4289
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4292
ac_cv_path_FGREP=$FGREP
4297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4298
$as_echo "$ac_cv_path_FGREP" >&6; }
4299
FGREP="$ac_cv_path_FGREP"
4302
test -z "$GREP" && GREP=grep
4322
# Check whether --with-gnu-ld was given.
4323
if test "${with_gnu_ld+set}" = set; then :
4324
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4330
if test "$GCC" = yes; then
4331
# Check if gcc -print-prog-name=ld gives a path.
4332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4333
$as_echo_n "checking for ld used by $CC... " >&6; }
4336
# gcc leaves a trailing carriage return which upsets mingw
4337
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4339
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4342
# Accept absolute paths.
4344
re_direlt='/[^/][^/]*/\.\./'
4345
# Canonicalize the pathname of ld
4346
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4347
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4348
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4350
test -z "$LD" && LD="$ac_prog"
4353
# If it fails, then pretend we aren't using GCC.
4357
# If it is relative, then search for the first ld in PATH.
4361
elif test "$with_gnu_ld" = yes; then
4362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4363
$as_echo_n "checking for GNU ld... " >&6; }
4365
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4366
$as_echo_n "checking for non-GNU ld... " >&6; }
4368
if test "${lt_cv_path_LD+set}" = set; then :
4369
$as_echo_n "(cached) " >&6
4371
if test -z "$LD"; then
4372
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4373
for ac_dir in $PATH; do
4375
test -z "$ac_dir" && ac_dir=.
4376
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4377
lt_cv_path_LD="$ac_dir/$ac_prog"
4378
# Check to see if the program is GNU ld. I'd rather use --version,
4379
# but apparently some variants of GNU ld only accept -v.
4380
# Break only if it was the GNU/non-GNU ld that we prefer.
4381
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4382
*GNU* | *'with BFD'*)
4383
test "$with_gnu_ld" != no && break
4386
test "$with_gnu_ld" != yes && break
4393
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4398
if test -n "$LD"; then
4399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4400
$as_echo "$LD" >&6; }
4402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403
$as_echo "no" >&6; }
4405
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4407
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4408
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4409
$as_echo_n "(cached) " >&6
4411
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4412
case `$LD -v 2>&1 </dev/null` in
4413
*GNU* | *'with BFD'*)
4414
lt_cv_prog_gnu_ld=yes
4417
lt_cv_prog_gnu_ld=no
4421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4422
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4423
with_gnu_ld=$lt_cv_prog_gnu_ld
4433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4434
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4435
if test "${lt_cv_path_NM+set}" = set; then :
4436
$as_echo_n "(cached) " >&6
4438
if test -n "$NM"; then
4439
# Let the user override the test.
4442
lt_nm_to_check="${ac_tool_prefix}nm"
4443
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4444
lt_nm_to_check="$lt_nm_to_check nm"
4446
for lt_tmp_nm in $lt_nm_to_check; do
4447
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4448
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4450
test -z "$ac_dir" && ac_dir=.
4451
tmp_nm="$ac_dir/$lt_tmp_nm"
4452
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4453
# Check to see if the nm accepts a BSD-compat flag.
4454
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4455
# nm: unknown option "B" ignored
4456
# Tru64's nm complains that /dev/null is an invalid object file
4457
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4458
*/dev/null* | *'Invalid file or object type'*)
4459
lt_cv_path_NM="$tmp_nm -B"
4463
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4465
lt_cv_path_NM="$tmp_nm -p"
4469
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4470
continue # so that we can try to find one that supports BSD flags
4479
: ${lt_cv_path_NM=no}
4482
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4483
$as_echo "$lt_cv_path_NM" >&6; }
4484
if test "$lt_cv_path_NM" != "no"; then
4487
# Didn't find any BSD compatible name lister, look for dumpbin.
4488
if test -n "$ac_tool_prefix"; then
4489
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4491
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4492
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4493
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494
$as_echo_n "checking for $ac_word... " >&6; }
4495
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4496
$as_echo_n "(cached) " >&6
4498
if test -n "$DUMPBIN"; then
4499
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4501
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505
test -z "$as_dir" && as_dir=.
4506
for ac_exec_ext in '' $ac_executable_extensions; do
4507
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4509
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518
DUMPBIN=$ac_cv_prog_DUMPBIN
4519
if test -n "$DUMPBIN"; then
4520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4521
$as_echo "$DUMPBIN" >&6; }
4523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524
$as_echo "no" >&6; }
4528
test -n "$DUMPBIN" && break
4531
if test -z "$DUMPBIN"; then
4532
ac_ct_DUMPBIN=$DUMPBIN
4533
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4535
# Extract the first word of "$ac_prog", so it can be a program name with args.
4536
set dummy $ac_prog; ac_word=$2
4537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538
$as_echo_n "checking for $ac_word... " >&6; }
4539
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4540
$as_echo_n "(cached) " >&6
4542
if test -n "$ac_ct_DUMPBIN"; then
4543
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549
test -z "$as_dir" && as_dir=.
4550
for ac_exec_ext in '' $ac_executable_extensions; do
4551
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4553
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4563
if test -n "$ac_ct_DUMPBIN"; then
4564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4565
$as_echo "$ac_ct_DUMPBIN" >&6; }
4567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568
$as_echo "no" >&6; }
4572
test -n "$ac_ct_DUMPBIN" && break
4575
if test "x$ac_ct_DUMPBIN" = x; then
4578
case $cross_compiling:$ac_tool_warned in
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4582
ac_tool_warned=yes ;;
4584
DUMPBIN=$ac_ct_DUMPBIN
4589
if test "$DUMPBIN" != ":"; then
4593
test -z "$NM" && NM=nm
4600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4601
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4602
if test "${lt_cv_nm_interface+set}" = set; then :
4603
$as_echo_n "(cached) " >&6
4605
lt_cv_nm_interface="BSD nm"
4606
echo "int some_variable = 0;" > conftest.$ac_ext
4607
(eval echo "\"\$as_me:4607: $ac_compile\"" >&5)
4608
(eval "$ac_compile" 2>conftest.err)
4609
cat conftest.err >&5
4610
(eval echo "\"\$as_me:4610: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4611
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4612
cat conftest.err >&5
4613
(eval echo "\"\$as_me:4613: output\"" >&5)
4614
cat conftest.out >&5
4615
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4616
lt_cv_nm_interface="MS dumpbin"
4620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4621
$as_echo "$lt_cv_nm_interface" >&6; }
4623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4624
$as_echo_n "checking whether ln -s works... " >&6; }
4626
if test "$LN_S" = "ln -s"; then
4627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4628
$as_echo "yes" >&6; }
4630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4631
$as_echo "no, using $LN_S" >&6; }
4634
# find the maximum length of command line arguments
4635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4636
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4637
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4638
$as_echo_n "(cached) " >&6
4645
# On DJGPP, this test can blow up pretty badly due to problems in libc
4646
# (any single argument exceeding 2000 bytes causes a buffer overrun
4647
# during glob expansion). Even if it were fixed, the result of this
4648
# check would be larger than it should be.
4649
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4653
# Under GNU Hurd, this test is not required because there is
4654
# no limit to the length of command line arguments.
4655
# Libtool will interpret -1 as no limit whatsoever
4656
lt_cv_sys_max_cmd_len=-1;
4659
cygwin* | mingw* | cegcc*)
4660
# On Win9x/ME, this test blows up -- it succeeds, but takes
4661
# about 5 minutes as the teststring grows exponentially.
4662
# Worse, since 9x/ME are not pre-emptively multitasking,
4663
# you end up with a "frozen" computer, even though with patience
4664
# the test eventually succeeds (with a max line length of 256k).
4665
# Instead, let's just punt: use the minimum linelength reported by
4666
# all of the supported platforms: 8192 (on NT/2K/XP).
4667
lt_cv_sys_max_cmd_len=8192;
4671
# On AmigaOS with pdksh, this test takes hours, literally.
4672
# So we just punt and use a minimum line length of 8192.
4673
lt_cv_sys_max_cmd_len=8192;
4676
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4677
# This has been around since 386BSD, at least. Likely further.
4678
if test -x /sbin/sysctl; then
4679
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4680
elif test -x /usr/sbin/sysctl; then
4681
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4683
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4685
# And add a safety zone
4686
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4687
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4691
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4692
lt_cv_sys_max_cmd_len=196608
4696
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4697
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4698
# nice to cause kernel panics so lets avoid the loop below.
4699
# First set a reasonable default.
4700
lt_cv_sys_max_cmd_len=16384
4702
if test -x /sbin/sysconfig; then
4703
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4704
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4709
lt_cv_sys_max_cmd_len=102400
4711
sysv5* | sco5v6* | sysv4.2uw2*)
4712
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4713
if test -n "$kargmax"; then
4714
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4716
lt_cv_sys_max_cmd_len=32768
4720
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4721
if test -n "$lt_cv_sys_max_cmd_len"; then
4722
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4723
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4725
# Make teststring a little bigger before we do anything with it.
4726
# a 1K string should be a reasonable start.
4727
for i in 1 2 3 4 5 6 7 8 ; do
4728
teststring=$teststring$teststring
4730
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4731
# If test is not a shell built-in, we'll probably end up computing a
4732
# maximum length that is only half of the actual maximum length, but
4734
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4735
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4736
test $i != 17 # 1/2 MB should be enough
4739
teststring=$teststring$teststring
4741
# Only check the string length outside the loop.
4742
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4744
# Add a significant safety factor because C++ compilers can tack on
4745
# massive amounts of additional arguments before passing them to the
4746
# linker. It appears as though 1/2 is a usable value.
4747
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4754
if test -n $lt_cv_sys_max_cmd_len ; then
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4756
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4759
$as_echo "none" >&6; }
4761
max_cmd_len=$lt_cv_sys_max_cmd_len
4772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4773
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4774
# Try some XSI features
4777
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4779
&& eval 'test $(( 1 + 1 )) -eq 2 \
4780
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4783
$as_echo "$xsi_shell" >&6; }
4786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4787
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4789
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4791
&& lt_shell_append=yes
4792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4793
$as_echo "$lt_shell_append" >&6; }
4796
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4806
# test EBCDIC or ASCII
4807
case `echo X|tr X '\101'` in
4808
A) # ASCII based system
4809
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4810
lt_SP2NL='tr \040 \012'
4811
lt_NL2SP='tr \015\012 \040\040'
4813
*) # EBCDIC based system
4814
lt_SP2NL='tr \100 \n'
4815
lt_NL2SP='tr \r\n \100\100'
4827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4828
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4829
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4830
$as_echo_n "(cached) " >&6
4832
lt_cv_ld_reload_flag='-r'
4834
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4835
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4836
reload_flag=$lt_cv_ld_reload_flag
4837
case $reload_flag in
4839
*) reload_flag=" $reload_flag" ;;
4841
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4844
if test "$GCC" = yes; then
4845
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4847
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4860
if test -n "$ac_tool_prefix"; then
4861
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4862
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864
$as_echo_n "checking for $ac_word... " >&6; }
4865
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4866
$as_echo_n "(cached) " >&6
4868
if test -n "$OBJDUMP"; then
4869
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875
test -z "$as_dir" && as_dir=.
4876
for ac_exec_ext in '' $ac_executable_extensions; do
4877
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4879
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888
OBJDUMP=$ac_cv_prog_OBJDUMP
4889
if test -n "$OBJDUMP"; then
4890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4891
$as_echo "$OBJDUMP" >&6; }
4893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894
$as_echo "no" >&6; }
4899
if test -z "$ac_cv_prog_OBJDUMP"; then
4900
ac_ct_OBJDUMP=$OBJDUMP
4901
# Extract the first word of "objdump", so it can be a program name with args.
4902
set dummy objdump; ac_word=$2
4903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904
$as_echo_n "checking for $ac_word... " >&6; }
4905
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4906
$as_echo_n "(cached) " >&6
4908
if test -n "$ac_ct_OBJDUMP"; then
4909
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915
test -z "$as_dir" && as_dir=.
4916
for ac_exec_ext in '' $ac_executable_extensions; do
4917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4919
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4929
if test -n "$ac_ct_OBJDUMP"; then
4930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4931
$as_echo "$ac_ct_OBJDUMP" >&6; }
4933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934
$as_echo "no" >&6; }
4937
if test "x$ac_ct_OBJDUMP" = x; then
4940
case $cross_compiling:$ac_tool_warned in
4942
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4943
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4944
ac_tool_warned=yes ;;
4946
OBJDUMP=$ac_ct_OBJDUMP
4949
OBJDUMP="$ac_cv_prog_OBJDUMP"
4952
test -z "$OBJDUMP" && OBJDUMP=objdump
4962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4963
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4964
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4965
$as_echo_n "(cached) " >&6
4967
lt_cv_file_magic_cmd='$MAGIC_CMD'
4968
lt_cv_file_magic_test_file=
4969
lt_cv_deplibs_check_method='unknown'
4970
# Need to set the preceding variable on all platforms that support
4971
# interlibrary dependencies.
4972
# 'none' -- dependencies not supported.
4973
# `unknown' -- same as none, but documents that we really don't know.
4974
# 'pass_all' -- all dependencies passed with no checks.
4975
# 'test_compile' -- check by making test program.
4976
# 'file_magic [[regex]]' -- check by looking for files in library path
4977
# which responds to the $file_magic_cmd with a given extended regex.
4978
# If you have `file' or equivalent on your system and you're not sure
4979
# whether `pass_all' will *always* work, you probably want this one.
4983
lt_cv_deplibs_check_method=pass_all
4987
lt_cv_deplibs_check_method=pass_all
4991
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4992
lt_cv_file_magic_cmd='/usr/bin/file -L'
4993
lt_cv_file_magic_test_file=/shlib/libc.so
4997
# func_win32_libid is a shell function defined in ltmain.sh
4998
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4999
lt_cv_file_magic_cmd='func_win32_libid'
5003
# Base MSYS/MinGW do not provide the 'file' command needed by
5004
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5005
# unless we find 'file', for example because we are cross-compiling.
5006
if ( file / ) >/dev/null 2>&1; then
5007
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5008
lt_cv_file_magic_cmd='func_win32_libid'
5010
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5011
lt_cv_file_magic_cmd='$OBJDUMP -f'
5016
# use the weaker test based on 'objdump'. See mingw*.
5017
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5018
lt_cv_file_magic_cmd='$OBJDUMP -f'
5021
darwin* | rhapsody*)
5022
lt_cv_deplibs_check_method=pass_all
5025
freebsd* | dragonfly*)
5026
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5029
# Not sure whether the presence of OpenBSD here was a mistake.
5030
# Let's accept both of them until this is cleared up.
5031
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5032
lt_cv_file_magic_cmd=/usr/bin/file
5033
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5037
lt_cv_deplibs_check_method=pass_all
5042
lt_cv_deplibs_check_method=pass_all
5045
hpux10.20* | hpux11*)
5046
lt_cv_file_magic_cmd=/usr/bin/file
5049
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5050
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5053
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5054
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5057
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5058
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5064
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5065
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5068
irix5* | irix6* | nonstopux*)
5070
*-32|*"-32 ") libmagic=32-bit;;
5071
*-n32|*"-n32 ") libmagic=N32;;
5072
*-64|*"-64 ") libmagic=64-bit;;
5073
*) libmagic=never-match;;
5075
lt_cv_deplibs_check_method=pass_all
5078
# This must be Linux ELF.
5079
linux* | k*bsd*-gnu)
5080
lt_cv_deplibs_check_method=pass_all
5083
netbsd* | netbsdelf*-gnu)
5084
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5085
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5087
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5092
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5093
lt_cv_file_magic_cmd=/usr/bin/file
5094
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5098
lt_cv_deplibs_check_method=pass_all
5102
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5103
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5105
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5109
osf3* | osf4* | osf5*)
5110
lt_cv_deplibs_check_method=pass_all
5114
lt_cv_deplibs_check_method=pass_all
5118
lt_cv_deplibs_check_method=pass_all
5121
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5122
lt_cv_deplibs_check_method=pass_all
5126
case $host_vendor in
5128
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]'
5129
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5132
lt_cv_deplibs_check_method=pass_all
5135
lt_cv_file_magic_cmd='/bin/file'
5136
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5139
lt_cv_file_magic_cmd='/bin/file'
5140
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5141
lt_cv_file_magic_test_file=/lib/libc.so
5144
lt_cv_deplibs_check_method=pass_all
5147
lt_cv_deplibs_check_method=pass_all
5153
lt_cv_deplibs_check_method=pass_all
5158
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5159
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5160
file_magic_cmd=$lt_cv_file_magic_cmd
5161
deplibs_check_method=$lt_cv_deplibs_check_method
5162
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5175
if test -n "$ac_tool_prefix"; then
5176
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5177
set dummy ${ac_tool_prefix}ar; ac_word=$2
5178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179
$as_echo_n "checking for $ac_word... " >&6; }
5180
if test "${ac_cv_prog_AR+set}" = set; then :
5181
$as_echo_n "(cached) " >&6
5183
if test -n "$AR"; then
5184
ac_cv_prog_AR="$AR" # Let the user override the test.
5186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190
test -z "$as_dir" && as_dir=.
5191
for ac_exec_ext in '' $ac_executable_extensions; do
5192
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193
ac_cv_prog_AR="${ac_tool_prefix}ar"
5194
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204
if test -n "$AR"; then
5205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5206
$as_echo "$AR" >&6; }
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209
$as_echo "no" >&6; }
5214
if test -z "$ac_cv_prog_AR"; then
5216
# Extract the first word of "ar", so it can be a program name with args.
5217
set dummy ar; ac_word=$2
5218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219
$as_echo_n "checking for $ac_word... " >&6; }
5220
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5221
$as_echo_n "(cached) " >&6
5223
if test -n "$ac_ct_AR"; then
5224
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230
test -z "$as_dir" && as_dir=.
5231
for ac_exec_ext in '' $ac_executable_extensions; do
5232
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233
ac_cv_prog_ac_ct_AR="ar"
5234
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5244
if test -n "$ac_ct_AR"; then
5245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5246
$as_echo "$ac_ct_AR" >&6; }
5248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249
$as_echo "no" >&6; }
5252
if test "x$ac_ct_AR" = x; then
5255
case $cross_compiling:$ac_tool_warned in
5257
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259
ac_tool_warned=yes ;;
5267
test -z "$AR" && AR=ar
5268
test -z "$AR_FLAGS" && AR_FLAGS=cru
5280
if test -n "$ac_tool_prefix"; then
5281
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5282
set dummy ${ac_tool_prefix}strip; ac_word=$2
5283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284
$as_echo_n "checking for $ac_word... " >&6; }
5285
if test "${ac_cv_prog_STRIP+set}" = set; then :
5286
$as_echo_n "(cached) " >&6
5288
if test -n "$STRIP"; then
5289
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295
test -z "$as_dir" && as_dir=.
5296
for ac_exec_ext in '' $ac_executable_extensions; do
5297
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5299
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308
STRIP=$ac_cv_prog_STRIP
5309
if test -n "$STRIP"; then
5310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5311
$as_echo "$STRIP" >&6; }
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314
$as_echo "no" >&6; }
5319
if test -z "$ac_cv_prog_STRIP"; then
5321
# Extract the first word of "strip", so it can be a program name with args.
5322
set dummy strip; ac_word=$2
5323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324
$as_echo_n "checking for $ac_word... " >&6; }
5325
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5326
$as_echo_n "(cached) " >&6
5328
if test -n "$ac_ct_STRIP"; then
5329
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5331
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335
test -z "$as_dir" && as_dir=.
5336
for ac_exec_ext in '' $ac_executable_extensions; do
5337
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338
ac_cv_prog_ac_ct_STRIP="strip"
5339
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5349
if test -n "$ac_ct_STRIP"; then
5350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5351
$as_echo "$ac_ct_STRIP" >&6; }
5353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354
$as_echo "no" >&6; }
5357
if test "x$ac_ct_STRIP" = x; then
5360
case $cross_compiling:$ac_tool_warned in
5362
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5363
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5364
ac_tool_warned=yes ;;
5369
STRIP="$ac_cv_prog_STRIP"
5372
test -z "$STRIP" && STRIP=:
5379
if test -n "$ac_tool_prefix"; then
5380
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5381
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383
$as_echo_n "checking for $ac_word... " >&6; }
5384
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5385
$as_echo_n "(cached) " >&6
5387
if test -n "$RANLIB"; then
5388
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394
test -z "$as_dir" && as_dir=.
5395
for ac_exec_ext in '' $ac_executable_extensions; do
5396
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5398
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407
RANLIB=$ac_cv_prog_RANLIB
5408
if test -n "$RANLIB"; then
5409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5410
$as_echo "$RANLIB" >&6; }
5412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413
$as_echo "no" >&6; }
5418
if test -z "$ac_cv_prog_RANLIB"; then
5419
ac_ct_RANLIB=$RANLIB
5420
# Extract the first word of "ranlib", so it can be a program name with args.
5421
set dummy ranlib; ac_word=$2
5422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423
$as_echo_n "checking for $ac_word... " >&6; }
5424
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5425
$as_echo_n "(cached) " >&6
5427
if test -n "$ac_ct_RANLIB"; then
5428
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434
test -z "$as_dir" && as_dir=.
5435
for ac_exec_ext in '' $ac_executable_extensions; do
5436
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437
ac_cv_prog_ac_ct_RANLIB="ranlib"
5438
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5448
if test -n "$ac_ct_RANLIB"; then
5449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5450
$as_echo "$ac_ct_RANLIB" >&6; }
5452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453
$as_echo "no" >&6; }
5456
if test "x$ac_ct_RANLIB" = x; then
5459
case $cross_compiling:$ac_tool_warned in
5461
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5462
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463
ac_tool_warned=yes ;;
5465
RANLIB=$ac_ct_RANLIB
5468
RANLIB="$ac_cv_prog_RANLIB"
5471
test -z "$RANLIB" && RANLIB=:
5478
# Determine commands to create old-style static archives.
5479
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5480
old_postinstall_cmds='chmod 644 $oldlib'
5481
old_postuninstall_cmds=
5483
if test -n "$RANLIB"; then
5486
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5489
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5492
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5528
# If no C compiler was specified, use CC.
5531
# If no C compiler flags were specified, use CFLAGS.
5532
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5534
# Allow CC to be a program name with arguments.
5538
# Check for command to grab the raw symbol name followed by C symbol from nm.
5539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5540
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5541
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5542
$as_echo_n "(cached) " >&6
5545
# These are sane defaults that work on at least a few old systems.
5546
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5548
# Character class describing NM global symbol codes.
5549
symcode='[BCDEGRST]'
5551
# Regexp to match symbols that can be accessed directly from C.
5552
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5554
# Define system-specific variables.
5559
cygwin* | mingw* | pw32* | cegcc*)
5560
symcode='[ABCDGISTW]'
5563
if test "$host_cpu" = ia64; then
5564
symcode='[ABCDEGRST]'
5568
symcode='[BCDEGRST]'
5571
symcode='[BCDEGQRST]'
5582
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5590
# If we're using GNU nm, then use its standard symbol codes.
5591
case `$NM -V 2>&1` in
5592
*GNU* | *'with BFD'*)
5593
symcode='[ABCDGIRSTW]' ;;
5596
# Transform an extracted symbol line into a proper C declaration.
5597
# Some systems (esp. on ia64) link data and code symbols differently,
5598
# so use this general approach.
5599
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5601
# Transform an extracted symbol line into symbol name and symbol address
5602
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5603
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'"
5605
# Handle CRLF in mingw tool chain
5609
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5613
# Try without a prefix underscore, then with it.
5614
for ac_symprfx in "" "_"; do
5616
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5617
symxfrm="\\1 $ac_symprfx\\2 \\2"
5619
# Write the raw and C identifiers.
5620
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5621
# Fake it for dumpbin and say T for any non-static function
5622
# and D for any global variable.
5623
# Also find C++ and __fastcall symbols from MSVC++,
5624
# which start with @ or ?.
5625
lt_cv_sys_global_symbol_pipe="$AWK '"\
5626
" {last_section=section; section=\$ 3};"\
5627
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5628
" \$ 0!~/External *\|/{next};"\
5629
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5630
" {if(hide[section]) next};"\
5631
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5632
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5633
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5634
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5635
" ' prfx=^$ac_symprfx"
5637
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5640
# Check to see that the pipe works correctly.
5644
cat > conftest.$ac_ext <<_LT_EOF
5649
void nm_test_func(void);
5650
void nm_test_func(void){}
5654
int main(){nm_test_var='a';nm_test_func();return(0);}
5657
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5658
(eval $ac_compile) 2>&5
5660
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661
test $ac_status = 0; }; then
5662
# Now try to grab the symbols.
5664
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5665
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5667
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668
test $ac_status = 0; } && test -s "$nlist"; then
5669
# Try sorting and uniquifying the output.
5670
if sort "$nlist" | uniq > "$nlist"T; then
5671
mv -f "$nlist"T "$nlist"
5676
# Make sure that we snagged all the symbols we need.
5677
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5678
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5679
cat <<_LT_EOF > conftest.$ac_ext
5685
# Now generate the symbol file.
5686
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5688
cat <<_LT_EOF >> conftest.$ac_ext
5690
/* The mapping between symbol names and symbols. */
5695
lt__PROGRAM__LTX_preloaded_symbols[] =
5697
{ "@PROGRAM@", (void *) 0 },
5699
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5700
cat <<\_LT_EOF >> conftest.$ac_ext
5704
/* This works around a problem in FreeBSD linker */
5705
#ifdef FREEBSD_WORKAROUND
5706
static const void *lt_preloaded_setup() {
5707
return lt__PROGRAM__LTX_preloaded_symbols;
5715
# Now try linking the two files.
5716
mv conftest.$ac_objext conftstm.$ac_objext
5717
lt_save_LIBS="$LIBS"
5718
lt_save_CFLAGS="$CFLAGS"
5719
LIBS="conftstm.$ac_objext"
5720
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5721
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5722
(eval $ac_link) 2>&5
5724
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5728
LIBS="$lt_save_LIBS"
5729
CFLAGS="$lt_save_CFLAGS"
5731
echo "cannot find nm_test_func in $nlist" >&5
5734
echo "cannot find nm_test_var in $nlist" >&5
5737
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5740
echo "$progname: failed program was:" >&5
5741
cat conftest.$ac_ext >&5
5743
rm -rf conftest* conftst*
5745
# Do not use the global_symbol_pipe unless it works.
5746
if test "$pipe_works" = yes; then
5749
lt_cv_sys_global_symbol_pipe=
5755
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5756
lt_cv_sys_global_symbol_to_cdecl=
5758
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5760
$as_echo "failed" >&6; }
5762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5763
$as_echo "ok" >&6; }
5788
# Check whether --enable-libtool-lock was given.
5789
if test "${enable_libtool_lock+set}" = set; then :
5790
enableval=$enable_libtool_lock;
5793
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5795
# Some flags need to be propagated to the compiler or linker for good
5799
# Find out which ABI we are using.
5800
echo 'int i;' > conftest.$ac_ext
5801
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5802
(eval $ac_compile) 2>&5
5804
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5805
test $ac_status = 0; }; then
5806
case `/usr/bin/file conftest.$ac_objext` in
5818
# Find out which ABI we are using.
5819
echo '#line 5819 "configure"' > conftest.$ac_ext
5820
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5821
(eval $ac_compile) 2>&5
5823
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5824
test $ac_status = 0; }; then
5825
if test "$lt_cv_prog_gnu_ld" = yes; then
5826
case `/usr/bin/file conftest.$ac_objext` in
5828
LD="${LD-ld} -melf32bsmip"
5831
LD="${LD-ld} -melf32bmipn32"
5834
LD="${LD-ld} -melf64bmip"
5838
case `/usr/bin/file conftest.$ac_objext` in
5854
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5855
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5856
# Find out which ABI we are using.
5857
echo 'int i;' > conftest.$ac_ext
5858
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5859
(eval $ac_compile) 2>&5
5861
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862
test $ac_status = 0; }; then
5863
case `/usr/bin/file conftest.o` in
5866
x86_64-*kfreebsd*-gnu)
5867
LD="${LD-ld} -m elf_i386_fbsd"
5870
LD="${LD-ld} -m elf_i386"
5872
ppc64-*linux*|powerpc64-*linux*)
5873
LD="${LD-ld} -m elf32ppclinux"
5876
LD="${LD-ld} -m elf_s390"
5879
LD="${LD-ld} -m elf32_sparc"
5885
x86_64-*kfreebsd*-gnu)
5886
LD="${LD-ld} -m elf_x86_64_fbsd"
5889
LD="${LD-ld} -m elf_x86_64"
5891
ppc*-*linux*|powerpc*-*linux*)
5892
LD="${LD-ld} -m elf64ppc"
5894
s390*-*linux*|s390*-*tpf*)
5895
LD="${LD-ld} -m elf64_s390"
5898
LD="${LD-ld} -m elf64_sparc"
5908
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5909
SAVE_CFLAGS="$CFLAGS"
5910
CFLAGS="$CFLAGS -belf"
5911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5912
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5913
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5914
$as_echo_n "(cached) " >&6
5917
ac_cpp='$CPP $CPPFLAGS'
5918
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5919
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5922
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923
/* end confdefs.h. */
5933
if ac_fn_c_try_link "$LINENO"; then :
5934
lt_cv_cc_needs_belf=yes
5936
lt_cv_cc_needs_belf=no
5938
rm -f core conftest.err conftest.$ac_objext \
5939
conftest$ac_exeext conftest.$ac_ext
5941
ac_cpp='$CPP $CPPFLAGS'
5942
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5943
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5944
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5948
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5949
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5950
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5951
CFLAGS="$SAVE_CFLAGS"
5955
# Find out which ABI we are using.
5956
echo 'int i;' > conftest.$ac_ext
5957
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5958
(eval $ac_compile) 2>&5
5960
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5961
test $ac_status = 0; }; then
5962
case `/usr/bin/file conftest.o` in
5964
case $lt_cv_prog_gnu_ld in
5965
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5967
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5979
need_locks="$enable_libtool_lock"
5983
rhapsody* | darwin*)
5984
if test -n "$ac_tool_prefix"; then
5985
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5986
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988
$as_echo_n "checking for $ac_word... " >&6; }
5989
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5990
$as_echo_n "(cached) " >&6
5992
if test -n "$DSYMUTIL"; then
5993
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5995
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999
test -z "$as_dir" && as_dir=.
6000
for ac_exec_ext in '' $ac_executable_extensions; do
6001
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6003
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6013
if test -n "$DSYMUTIL"; then
6014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6015
$as_echo "$DSYMUTIL" >&6; }
6017
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018
$as_echo "no" >&6; }
6023
if test -z "$ac_cv_prog_DSYMUTIL"; then
6024
ac_ct_DSYMUTIL=$DSYMUTIL
6025
# Extract the first word of "dsymutil", so it can be a program name with args.
6026
set dummy dsymutil; ac_word=$2
6027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028
$as_echo_n "checking for $ac_word... " >&6; }
6029
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6030
$as_echo_n "(cached) " >&6
6032
if test -n "$ac_ct_DSYMUTIL"; then
6033
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039
test -z "$as_dir" && as_dir=.
6040
for ac_exec_ext in '' $ac_executable_extensions; do
6041
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6043
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6053
if test -n "$ac_ct_DSYMUTIL"; then
6054
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6055
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6057
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058
$as_echo "no" >&6; }
6061
if test "x$ac_ct_DSYMUTIL" = x; then
6064
case $cross_compiling:$ac_tool_warned in
6066
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6067
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6068
ac_tool_warned=yes ;;
6070
DSYMUTIL=$ac_ct_DSYMUTIL
6073
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6076
if test -n "$ac_tool_prefix"; then
6077
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6078
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080
$as_echo_n "checking for $ac_word... " >&6; }
6081
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6082
$as_echo_n "(cached) " >&6
6084
if test -n "$NMEDIT"; then
6085
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091
test -z "$as_dir" && as_dir=.
6092
for ac_exec_ext in '' $ac_executable_extensions; do
6093
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6095
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104
NMEDIT=$ac_cv_prog_NMEDIT
6105
if test -n "$NMEDIT"; then
6106
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6107
$as_echo "$NMEDIT" >&6; }
6109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110
$as_echo "no" >&6; }
6115
if test -z "$ac_cv_prog_NMEDIT"; then
6116
ac_ct_NMEDIT=$NMEDIT
6117
# Extract the first word of "nmedit", so it can be a program name with args.
6118
set dummy nmedit; ac_word=$2
6119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120
$as_echo_n "checking for $ac_word... " >&6; }
6121
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6122
$as_echo_n "(cached) " >&6
6124
if test -n "$ac_ct_NMEDIT"; then
6125
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131
test -z "$as_dir" && as_dir=.
6132
for ac_exec_ext in '' $ac_executable_extensions; do
6133
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6135
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6145
if test -n "$ac_ct_NMEDIT"; then
6146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6147
$as_echo "$ac_ct_NMEDIT" >&6; }
6149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150
$as_echo "no" >&6; }
6153
if test "x$ac_ct_NMEDIT" = x; then
6156
case $cross_compiling:$ac_tool_warned in
6158
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160
ac_tool_warned=yes ;;
6162
NMEDIT=$ac_ct_NMEDIT
6165
NMEDIT="$ac_cv_prog_NMEDIT"
6168
if test -n "$ac_tool_prefix"; then
6169
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6170
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172
$as_echo_n "checking for $ac_word... " >&6; }
6173
if test "${ac_cv_prog_LIPO+set}" = set; then :
6174
$as_echo_n "(cached) " >&6
6176
if test -n "$LIPO"; then
6177
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183
test -z "$as_dir" && as_dir=.
6184
for ac_exec_ext in '' $ac_executable_extensions; do
6185
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6187
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196
LIPO=$ac_cv_prog_LIPO
6197
if test -n "$LIPO"; then
6198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6199
$as_echo "$LIPO" >&6; }
6201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202
$as_echo "no" >&6; }
6207
if test -z "$ac_cv_prog_LIPO"; then
6209
# Extract the first word of "lipo", so it can be a program name with args.
6210
set dummy lipo; ac_word=$2
6211
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212
$as_echo_n "checking for $ac_word... " >&6; }
6213
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6214
$as_echo_n "(cached) " >&6
6216
if test -n "$ac_ct_LIPO"; then
6217
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223
test -z "$as_dir" && as_dir=.
6224
for ac_exec_ext in '' $ac_executable_extensions; do
6225
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226
ac_cv_prog_ac_ct_LIPO="lipo"
6227
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6237
if test -n "$ac_ct_LIPO"; then
6238
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6239
$as_echo "$ac_ct_LIPO" >&6; }
6241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242
$as_echo "no" >&6; }
6245
if test "x$ac_ct_LIPO" = x; then
6248
case $cross_compiling:$ac_tool_warned in
6250
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252
ac_tool_warned=yes ;;
6257
LIPO="$ac_cv_prog_LIPO"
6260
if test -n "$ac_tool_prefix"; then
6261
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6262
set dummy ${ac_tool_prefix}otool; ac_word=$2
6263
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264
$as_echo_n "checking for $ac_word... " >&6; }
6265
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6266
$as_echo_n "(cached) " >&6
6268
if test -n "$OTOOL"; then
6269
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275
test -z "$as_dir" && as_dir=.
6276
for ac_exec_ext in '' $ac_executable_extensions; do
6277
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6279
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288
OTOOL=$ac_cv_prog_OTOOL
6289
if test -n "$OTOOL"; then
6290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6291
$as_echo "$OTOOL" >&6; }
6293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294
$as_echo "no" >&6; }
6299
if test -z "$ac_cv_prog_OTOOL"; then
6301
# Extract the first word of "otool", so it can be a program name with args.
6302
set dummy otool; ac_word=$2
6303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304
$as_echo_n "checking for $ac_word... " >&6; }
6305
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6306
$as_echo_n "(cached) " >&6
6308
if test -n "$ac_ct_OTOOL"; then
6309
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315
test -z "$as_dir" && as_dir=.
6316
for ac_exec_ext in '' $ac_executable_extensions; do
6317
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318
ac_cv_prog_ac_ct_OTOOL="otool"
6319
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6329
if test -n "$ac_ct_OTOOL"; then
6330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6331
$as_echo "$ac_ct_OTOOL" >&6; }
6333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334
$as_echo "no" >&6; }
6337
if test "x$ac_ct_OTOOL" = x; then
6340
case $cross_compiling:$ac_tool_warned in
6342
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344
ac_tool_warned=yes ;;
6349
OTOOL="$ac_cv_prog_OTOOL"
6352
if test -n "$ac_tool_prefix"; then
6353
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6354
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356
$as_echo_n "checking for $ac_word... " >&6; }
6357
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6358
$as_echo_n "(cached) " >&6
6360
if test -n "$OTOOL64"; then
6361
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367
test -z "$as_dir" && as_dir=.
6368
for ac_exec_ext in '' $ac_executable_extensions; do
6369
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6371
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380
OTOOL64=$ac_cv_prog_OTOOL64
6381
if test -n "$OTOOL64"; then
6382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6383
$as_echo "$OTOOL64" >&6; }
6385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386
$as_echo "no" >&6; }
6391
if test -z "$ac_cv_prog_OTOOL64"; then
6392
ac_ct_OTOOL64=$OTOOL64
6393
# Extract the first word of "otool64", so it can be a program name with args.
6394
set dummy otool64; ac_word=$2
6395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396
$as_echo_n "checking for $ac_word... " >&6; }
6397
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6398
$as_echo_n "(cached) " >&6
6400
if test -n "$ac_ct_OTOOL64"; then
6401
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407
test -z "$as_dir" && as_dir=.
6408
for ac_exec_ext in '' $ac_executable_extensions; do
6409
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410
ac_cv_prog_ac_ct_OTOOL64="otool64"
6411
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6421
if test -n "$ac_ct_OTOOL64"; then
6422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6423
$as_echo "$ac_ct_OTOOL64" >&6; }
6425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426
$as_echo "no" >&6; }
6429
if test "x$ac_ct_OTOOL64" = x; then
6432
case $cross_compiling:$ac_tool_warned in
6434
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436
ac_tool_warned=yes ;;
6438
OTOOL64=$ac_ct_OTOOL64
6441
OTOOL64="$ac_cv_prog_OTOOL64"
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6471
$as_echo_n "checking for -single_module linker flag... " >&6; }
6472
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6473
$as_echo_n "(cached) " >&6
6475
lt_cv_apple_cc_single_mod=no
6476
if test -z "${LT_MULTI_MODULE}"; then
6477
# By default we will add the -single_module flag. You can override
6478
# by either setting the environment variable LT_MULTI_MODULE
6479
# non-empty at configure time, or by adding -multi_module to the
6481
rm -rf libconftest.dylib*
6482
echo "int foo(void){return 1;}" > conftest.c
6483
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6484
-dynamiclib -Wl,-single_module conftest.c" >&5
6485
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6486
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6488
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6489
lt_cv_apple_cc_single_mod=yes
6491
cat conftest.err >&5
6493
rm -rf libconftest.dylib*
6497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6498
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6500
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6501
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6502
$as_echo_n "(cached) " >&6
6504
lt_cv_ld_exported_symbols_list=no
6505
save_LDFLAGS=$LDFLAGS
6506
echo "_main" > conftest.sym
6507
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6508
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509
/* end confdefs.h. */
6519
if ac_fn_c_try_link "$LINENO"; then :
6520
lt_cv_ld_exported_symbols_list=yes
6522
lt_cv_ld_exported_symbols_list=no
6524
rm -f core conftest.err conftest.$ac_objext \
6525
conftest$ac_exeext conftest.$ac_ext
6526
LDFLAGS="$save_LDFLAGS"
6529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6530
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6532
rhapsody* | darwin1.[012])
6533
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6535
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6536
darwin*) # darwin 5.x on
6537
# if running on 10.5 or later, the deployment target defaults
6538
# to the OS version, if on x86, and 10.4, the deployment
6539
# target defaults to 10.4. Don't you love it?
6540
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6541
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6542
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6544
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6546
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6550
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6551
_lt_dar_single_mod='$single_module'
6553
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6554
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6556
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6558
if test "$DSYMUTIL" != ":"; then
6559
_lt_dsymutil='~$DSYMUTIL $lib || :'
6567
ac_cpp='$CPP $CPPFLAGS'
6568
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6572
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6573
# On Suns, sometimes $CPP names a directory.
6574
if test -n "$CPP" && test -d "$CPP"; then
6577
if test -z "$CPP"; then
6578
if test "${ac_cv_prog_CPP+set}" = set; then :
6579
$as_echo_n "(cached) " >&6
6581
# Double quotes because CPP needs to be expanded
6582
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6585
for ac_c_preproc_warn_flag in '' yes
6587
# Use a header file that comes with gcc, so configuring glibc
6588
# with a fresh cross-compiler works.
6589
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6590
# <limits.h> exists even on freestanding compilers.
6591
# On the NeXT, cc -E runs the code through the compiler's parser,
6592
# not just through cpp. "Syntax error" is here to catch this case.
6593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594
/* end confdefs.h. */
6596
# include <limits.h>
6598
# include <assert.h>
6602
if ac_fn_c_try_cpp "$LINENO"; then :
6605
# Broken: fails on valid input.
6608
rm -f conftest.err conftest.$ac_ext
6610
# OK, works on sane cases. Now check whether nonexistent headers
6611
# can be detected and how.
6612
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613
/* end confdefs.h. */
6614
#include <ac_nonexistent.h>
6616
if ac_fn_c_try_cpp "$LINENO"; then :
6617
# Broken: success on invalid input.
6620
# Passes both tests.
6624
rm -f conftest.err conftest.$ac_ext
6627
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6628
rm -f conftest.err conftest.$ac_ext
6629
if $ac_preproc_ok; then :
6641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6642
$as_echo "$CPP" >&6; }
6644
for ac_c_preproc_warn_flag in '' yes
6646
# Use a header file that comes with gcc, so configuring glibc
6647
# with a fresh cross-compiler works.
6648
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6649
# <limits.h> exists even on freestanding compilers.
6650
# On the NeXT, cc -E runs the code through the compiler's parser,
6651
# not just through cpp. "Syntax error" is here to catch this case.
6652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653
/* end confdefs.h. */
6655
# include <limits.h>
6657
# include <assert.h>
6661
if ac_fn_c_try_cpp "$LINENO"; then :
6664
# Broken: fails on valid input.
6667
rm -f conftest.err conftest.$ac_ext
6669
# OK, works on sane cases. Now check whether nonexistent headers
6670
# can be detected and how.
6671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672
/* end confdefs.h. */
6673
#include <ac_nonexistent.h>
6675
if ac_fn_c_try_cpp "$LINENO"; then :
6676
# Broken: success on invalid input.
6679
# Passes both tests.
6683
rm -f conftest.err conftest.$ac_ext
6686
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6687
rm -f conftest.err conftest.$ac_ext
6688
if $ac_preproc_ok; then :
6691
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6692
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6693
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6694
See \`config.log' for more details." "$LINENO" 5; }
6698
ac_cpp='$CPP $CPPFLAGS'
6699
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6700
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6701
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6705
$as_echo_n "checking for ANSI C header files... " >&6; }
6706
if test "${ac_cv_header_stdc+set}" = set; then :
6707
$as_echo_n "(cached) " >&6
6709
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710
/* end confdefs.h. */
6724
if ac_fn_c_try_compile "$LINENO"; then :
6725
ac_cv_header_stdc=yes
6727
ac_cv_header_stdc=no
6729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731
if test $ac_cv_header_stdc = yes; then
6732
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6733
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734
/* end confdefs.h. */
6738
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739
$EGREP "memchr" >/dev/null 2>&1; then :
6742
ac_cv_header_stdc=no
6748
if test $ac_cv_header_stdc = yes; then
6749
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6750
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751
/* end confdefs.h. */
6755
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6756
$EGREP "free" >/dev/null 2>&1; then :
6759
ac_cv_header_stdc=no
6765
if test $ac_cv_header_stdc = yes; then
6766
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6767
if test "$cross_compiling" = yes; then :
6770
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771
/* end confdefs.h. */
6774
#if ((' ' & 0x0FF) == 0x020)
6775
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6776
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6778
# define ISLOWER(c) \
6779
(('a' <= (c) && (c) <= 'i') \
6780
|| ('j' <= (c) && (c) <= 'r') \
6781
|| ('s' <= (c) && (c) <= 'z'))
6782
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6785
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6790
for (i = 0; i < 256; i++)
6791
if (XOR (islower (i), ISLOWER (i))
6792
|| toupper (i) != TOUPPER (i))
6797
if ac_fn_c_try_run "$LINENO"; then :
6800
ac_cv_header_stdc=no
6802
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6803
conftest.$ac_objext conftest.beam conftest.$ac_ext
6808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6809
$as_echo "$ac_cv_header_stdc" >&6; }
6810
if test $ac_cv_header_stdc = yes; then
6812
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6816
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6817
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6818
inttypes.h stdint.h unistd.h
6820
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6821
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6823
eval as_val=\$$as_ac_Header
6824
if test "x$as_val" = x""yes; then :
6825
cat >>confdefs.h <<_ACEOF
6826
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6834
for ac_header in dlfcn.h
6836
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6838
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6839
cat >>confdefs.h <<_ACEOF
6840
#define HAVE_DLFCN_H 1
6859
# Check whether --enable-shared was given.
6860
if test "${enable_shared+set}" = set; then :
6861
enableval=$enable_shared; p=${PACKAGE-default}
6863
yes) enable_shared=yes ;;
6864
no) enable_shared=no ;;
6867
# Look at the argument we got. We use all the common list separators.
6868
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6869
for pkg in $enableval; do
6871
if test "X$pkg" = "X$p"; then
6890
# Check whether --enable-static was given.
6891
if test "${enable_static+set}" = set; then :
6892
enableval=$enable_static; p=${PACKAGE-default}
6894
yes) enable_static=yes ;;
6895
no) enable_static=no ;;
6898
# Look at the argument we got. We use all the common list separators.
6899
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6900
for pkg in $enableval; do
6902
if test "X$pkg" = "X$p"; then
6922
# Check whether --with-pic was given.
6923
if test "${with_pic+set}" = set; then :
6924
withval=$with_pic; pic_mode="$withval"
6930
test -z "$pic_mode" && pic_mode=default
6938
# Check whether --enable-fast-install was given.
6939
if test "${enable_fast_install+set}" = set; then :
6940
enableval=$enable_fast_install; p=${PACKAGE-default}
6942
yes) enable_fast_install=yes ;;
6943
no) enable_fast_install=no ;;
6945
enable_fast_install=no
6946
# Look at the argument we got. We use all the common list separators.
6947
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6948
for pkg in $enableval; do
6950
if test "X$pkg" = "X$p"; then
6951
enable_fast_install=yes
6958
enable_fast_install=yes
6971
# This can be used to rebuild libtool when needed
6972
LIBTOOL_DEPS="$ltmain"
6974
# Always use our own libtool.
6975
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7001
test -z "$LN_S" && LN_S="ln -s"
7016
if test -n "${ZSH_VERSION+set}" ; then
7017
setopt NO_GLOB_SUBST
7020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7021
$as_echo_n "checking for objdir... " >&6; }
7022
if test "${lt_cv_objdir+set}" = set; then :
7023
$as_echo_n "(cached) " >&6
7025
rm -f .libs 2>/dev/null
7026
mkdir .libs 2>/dev/null
7027
if test -d .libs; then
7030
# MS-DOS does not allow filenames that begin with a dot.
7033
rmdir .libs 2>/dev/null
7035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7036
$as_echo "$lt_cv_objdir" >&6; }
7037
objdir=$lt_cv_objdir
7043
cat >>confdefs.h <<_ACEOF
7044
#define LT_OBJDIR "$lt_cv_objdir/"
7065
# AIX sometimes has problems with the GCC collect2 program. For some
7066
# reason, if we set the COLLECT_NAMES environment variable, the problems
7067
# vanish in a puff of smoke.
7068
if test "X${COLLECT_NAMES+set}" != Xset; then
7070
export COLLECT_NAMES
7075
# Sed substitution that helps us do robust quoting. It backslashifies
7076
# metacharacters that are still active within double-quoted strings.
7077
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7079
# Same as above, but do not quote variable references.
7080
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7082
# Sed substitution to delay expansion of an escaped shell variable in a
7083
# double_quote_subst'ed string.
7084
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7086
# Sed substitution to delay expansion of an escaped single quote.
7087
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7089
# Sed substitution to avoid accidental globbing in evaled expressions
7090
no_glob_subst='s/\*/\\\*/g'
7094
can_build_shared=yes
7096
# All known linkers require a `.a' archive for static linking (except MSVC,
7097
# which needs '.lib').
7100
with_gnu_ld="$lt_cv_prog_gnu_ld"
7103
old_CFLAGS="$CFLAGS"
7105
# Set sane defaults for various variables
7106
test -z "$CC" && CC=cc
7107
test -z "$LTCC" && LTCC=$CC
7108
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7109
test -z "$LD" && LD=ld
7110
test -z "$ac_objext" && ac_objext=o
7112
for cc_temp in $compiler""; do
7114
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7115
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7120
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7123
# Only perform the check for file, if the check method requires it
7124
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7125
case $deplibs_check_method in
7127
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7129
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7130
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7131
$as_echo_n "(cached) " >&6
7135
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7138
lt_save_MAGIC_CMD="$MAGIC_CMD"
7139
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7140
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7141
for ac_dir in $ac_dummy; do
7143
test -z "$ac_dir" && ac_dir=.
7144
if test -f $ac_dir/${ac_tool_prefix}file; then
7145
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7146
if test -n "$file_magic_test_file"; then
7147
case $deplibs_check_method in
7149
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7150
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7152
$EGREP "$file_magic_regex" > /dev/null; then
7157
*** Warning: the command libtool uses to detect shared libraries,
7158
*** $file_magic_cmd, produces output that libtool cannot recognize.
7159
*** The result is that libtool may fail to recognize shared libraries
7160
*** as such. This will affect the creation of libtool libraries that
7161
*** depend on shared libraries, but programs linked with such libtool
7162
*** libraries will work regardless of this problem. Nevertheless, you
7163
*** may want to report the problem to your system manager and/or to
7164
*** bug-libtool@gnu.org
7174
MAGIC_CMD="$lt_save_MAGIC_CMD"
7179
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180
if test -n "$MAGIC_CMD"; then
7181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7182
$as_echo "$MAGIC_CMD" >&6; }
7184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185
$as_echo "no" >&6; }
7192
if test -z "$lt_cv_path_MAGIC_CMD"; then
7193
if test -n "$ac_tool_prefix"; then
7194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7195
$as_echo_n "checking for file... " >&6; }
7196
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7197
$as_echo_n "(cached) " >&6
7201
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7204
lt_save_MAGIC_CMD="$MAGIC_CMD"
7205
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7206
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7207
for ac_dir in $ac_dummy; do
7209
test -z "$ac_dir" && ac_dir=.
7210
if test -f $ac_dir/file; then
7211
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7212
if test -n "$file_magic_test_file"; then
7213
case $deplibs_check_method in
7215
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7216
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7217
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7218
$EGREP "$file_magic_regex" > /dev/null; then
7223
*** Warning: the command libtool uses to detect shared libraries,
7224
*** $file_magic_cmd, produces output that libtool cannot recognize.
7225
*** The result is that libtool may fail to recognize shared libraries
7226
*** as such. This will affect the creation of libtool libraries that
7227
*** depend on shared libraries, but programs linked with such libtool
7228
*** libraries will work regardless of this problem. Nevertheless, you
7229
*** may want to report the problem to your system manager and/or to
7230
*** bug-libtool@gnu.org
7240
MAGIC_CMD="$lt_save_MAGIC_CMD"
7245
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7246
if test -n "$MAGIC_CMD"; then
7247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7248
$as_echo "$MAGIC_CMD" >&6; }
7250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251
$as_echo "no" >&6; }
7264
# Use C for the default configuration in the libtool script
7268
ac_cpp='$CPP $CPPFLAGS'
7269
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274
# Source file extension for C test sources.
7277
# Object file extension for compiled C test sources.
7281
# Code to be used in simple compile tests
7282
lt_simple_compile_test_code="int some_variable = 0;"
7284
# Code to be used in simple link tests
7285
lt_simple_link_test_code='int main(){return(0);}'
7293
# If no C compiler was specified, use CC.
7296
# If no C compiler flags were specified, use CFLAGS.
7297
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7299
# Allow CC to be a program name with arguments.
7302
# Save the default compiler, since it gets overwritten when the other
7303
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7304
compiler_DEFAULT=$CC
7306
# save warnings/boilerplate of simple test code
7307
ac_outfile=conftest.$ac_objext
7308
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7309
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7310
_lt_compiler_boilerplate=`cat conftest.err`
7313
ac_outfile=conftest.$ac_objext
7314
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7315
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7316
_lt_linker_boilerplate=`cat conftest.err`
7321
## There is no encapsulation within the following macros, do not change
7322
## the running order or otherwise move them around unless you know exactly
7323
## what you are doing...
7324
if test -n "$compiler"; then
7326
lt_prog_compiler_no_builtin_flag=
7328
if test "$GCC" = yes; then
7329
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7332
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7333
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7334
$as_echo_n "(cached) " >&6
7336
lt_cv_prog_compiler_rtti_exceptions=no
7337
ac_outfile=conftest.$ac_objext
7338
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7339
lt_compiler_flag="-fno-rtti -fno-exceptions"
7340
# Insert the option either (1) after the last *FLAGS variable, or
7341
# (2) before a word containing "conftest.", or (3) at the end.
7342
# Note that $ac_compile itself does not contain backslashes and begins
7343
# with a dollar sign (not a hyphen), so the echo should work correctly.
7344
# The option is referenced via a variable to avoid confusing sed.
7345
lt_compile=`echo "$ac_compile" | $SED \
7346
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7347
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7348
-e 's:$: $lt_compiler_flag:'`
7349
(eval echo "\"\$as_me:7349: $lt_compile\"" >&5)
7350
(eval "$lt_compile" 2>conftest.err)
7352
cat conftest.err >&5
7353
echo "$as_me:7353: \$? = $ac_status" >&5
7354
if (exit $ac_status) && test -s "$ac_outfile"; then
7355
# The compiler can only warn and ignore the option if not recognized
7356
# So say no if there are warnings other than the usual output.
7357
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7358
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7359
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7360
lt_cv_prog_compiler_rtti_exceptions=yes
7366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7367
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7369
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7370
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7382
lt_prog_compiler_wl=
7383
lt_prog_compiler_pic=
7384
lt_prog_compiler_static=
7386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7387
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7389
if test "$GCC" = yes; then
7390
lt_prog_compiler_wl='-Wl,'
7391
lt_prog_compiler_static='-static'
7395
# All AIX code is PIC.
7396
if test "$host_cpu" = ia64; then
7397
# AIX 5 now supports IA64 processor
7398
lt_prog_compiler_static='-Bstatic'
7405
# see comment about AmigaOS4 .so support
7406
lt_prog_compiler_pic='-fPIC'
7409
# FIXME: we need at least 68020 code to build shared libraries, but
7410
# adding the `-m68020' flag to GCC prevents building anything better,
7412
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7417
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7418
# PIC is the default for these OSes.
7421
mingw* | cygwin* | pw32* | os2* | cegcc*)
7422
# This hack is so that the source file can tell whether it is being
7423
# built for inclusion in a dll (and should export symbols for example).
7424
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7425
# (--disable-auto-import) libraries
7426
lt_prog_compiler_pic='-DDLL_EXPORT'
7429
darwin* | rhapsody*)
7430
# PIC is the default on this platform
7431
# Common symbols not allowed in MH_DYLIB files
7432
lt_prog_compiler_pic='-fno-common'
7436
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7437
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7438
# sets the default TLS model and affects inlining.
7444
lt_prog_compiler_pic='-fPIC'
7450
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7451
# Instead, we relocate shared libraries at runtime.
7455
# Just because we use GCC doesn't mean we suddenly get shared libraries
7456
# on systems that don't support them.
7457
lt_prog_compiler_can_build_shared=no
7462
# QNX uses GNU C++, but need to define -shared option too, otherwise
7464
lt_prog_compiler_pic='-fPIC -shared'
7468
if test -d /usr/nec; then
7469
lt_prog_compiler_pic=-Kconform_pic
7474
lt_prog_compiler_pic='-fPIC'
7478
# PORTME Check for flag to pass linker flags through the system compiler.
7481
lt_prog_compiler_wl='-Wl,'
7482
if test "$host_cpu" = ia64; then
7483
# AIX 5 now supports IA64 processor
7484
lt_prog_compiler_static='-Bstatic'
7486
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7490
mingw* | cygwin* | pw32* | os2* | cegcc*)
7491
# This hack is so that the source file can tell whether it is being
7492
# built for inclusion in a dll (and should export symbols for example).
7493
lt_prog_compiler_pic='-DDLL_EXPORT'
7496
hpux9* | hpux10* | hpux11*)
7497
lt_prog_compiler_wl='-Wl,'
7498
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7505
lt_prog_compiler_pic='+Z'
7508
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7509
lt_prog_compiler_static='${wl}-a ${wl}archive'
7512
irix5* | irix6* | nonstopux*)
7513
lt_prog_compiler_wl='-Wl,'
7514
# PIC (with -KPIC) is the default.
7515
lt_prog_compiler_static='-non_shared'
7518
linux* | k*bsd*-gnu)
7519
case $cc_basename in
7520
# old Intel for x86_64 which still supported -KPIC.
7522
lt_prog_compiler_wl='-Wl,'
7523
lt_prog_compiler_pic='-KPIC'
7524
lt_prog_compiler_static='-static'
7526
# icc used to be incompatible with GCC.
7527
# ICC 10 doesn't accept -KPIC any more.
7529
lt_prog_compiler_wl='-Wl,'
7530
lt_prog_compiler_pic='-fPIC'
7531
lt_prog_compiler_static='-static'
7533
# Lahey Fortran 8.1.
7535
lt_prog_compiler_wl='-Wl,'
7536
lt_prog_compiler_pic='--shared'
7537
lt_prog_compiler_static='--static'
7539
pgcc* | pgf77* | pgf90* | pgf95*)
7540
# Portland Group compilers (*not* the Pentium gcc compiler,
7541
# which looks to be a dead project)
7542
lt_prog_compiler_wl='-Wl,'
7543
lt_prog_compiler_pic='-fpic'
7544
lt_prog_compiler_static='-Bstatic'
7547
lt_prog_compiler_wl='-Wl,'
7548
# All Alpha code is PIC.
7549
lt_prog_compiler_static='-non_shared'
7552
# IBM XL C 8.0/Fortran 10.1 on PPC
7553
lt_prog_compiler_wl='-Wl,'
7554
lt_prog_compiler_pic='-qpic'
7555
lt_prog_compiler_static='-qstaticlink'
7558
case `$CC -V 2>&1 | sed 5q` in
7561
lt_prog_compiler_pic='-KPIC'
7562
lt_prog_compiler_static='-Bstatic'
7563
lt_prog_compiler_wl='-Wl,'
7566
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7567
lt_prog_compiler_pic='-KPIC'
7568
lt_prog_compiler_static='-Bstatic'
7569
lt_prog_compiler_wl=''
7577
lt_prog_compiler_pic='-KPIC'
7578
lt_prog_compiler_static='-Bstatic'
7582
# QNX uses GNU C++, but need to define -shared option too, otherwise
7584
lt_prog_compiler_pic='-fPIC -shared'
7587
osf3* | osf4* | osf5*)
7588
lt_prog_compiler_wl='-Wl,'
7589
# All OSF/1 code is PIC.
7590
lt_prog_compiler_static='-non_shared'
7594
lt_prog_compiler_static='-non_shared'
7598
lt_prog_compiler_pic='-KPIC'
7599
lt_prog_compiler_static='-Bstatic'
7600
case $cc_basename in
7602
lt_prog_compiler_wl='-Qoption ld ';;
7604
lt_prog_compiler_wl='-Wl,';;
7609
lt_prog_compiler_wl='-Qoption ld '
7610
lt_prog_compiler_pic='-PIC'
7611
lt_prog_compiler_static='-Bstatic'
7614
sysv4 | sysv4.2uw2* | sysv4.3*)
7615
lt_prog_compiler_wl='-Wl,'
7616
lt_prog_compiler_pic='-KPIC'
7617
lt_prog_compiler_static='-Bstatic'
7621
if test -d /usr/nec ;then
7622
lt_prog_compiler_pic='-Kconform_pic'
7623
lt_prog_compiler_static='-Bstatic'
7627
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7628
lt_prog_compiler_wl='-Wl,'
7629
lt_prog_compiler_pic='-KPIC'
7630
lt_prog_compiler_static='-Bstatic'
7634
lt_prog_compiler_wl='-Wl,'
7635
lt_prog_compiler_can_build_shared=no
7639
lt_prog_compiler_pic='-pic'
7640
lt_prog_compiler_static='-Bstatic'
7644
lt_prog_compiler_can_build_shared=no
7650
# For platforms which do not support PIC, -DPIC is meaningless:
7652
lt_prog_compiler_pic=
7655
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7659
$as_echo "$lt_prog_compiler_pic" >&6; }
7667
# Check to make sure the PIC flag actually works.
7669
if test -n "$lt_prog_compiler_pic"; then
7670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7671
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7672
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7673
$as_echo_n "(cached) " >&6
7675
lt_cv_prog_compiler_pic_works=no
7676
ac_outfile=conftest.$ac_objext
7677
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7678
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7679
# Insert the option either (1) after the last *FLAGS variable, or
7680
# (2) before a word containing "conftest.", or (3) at the end.
7681
# Note that $ac_compile itself does not contain backslashes and begins
7682
# with a dollar sign (not a hyphen), so the echo should work correctly.
7683
# The option is referenced via a variable to avoid confusing sed.
7684
lt_compile=`echo "$ac_compile" | $SED \
7685
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7686
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7687
-e 's:$: $lt_compiler_flag:'`
7688
(eval echo "\"\$as_me:7688: $lt_compile\"" >&5)
7689
(eval "$lt_compile" 2>conftest.err)
7691
cat conftest.err >&5
7692
echo "$as_me:7692: \$? = $ac_status" >&5
7693
if (exit $ac_status) && test -s "$ac_outfile"; then
7694
# The compiler can only warn and ignore the option if not recognized
7695
# So say no if there are warnings other than the usual output.
7696
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7697
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7698
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7699
lt_cv_prog_compiler_pic_works=yes
7705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7706
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7708
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7709
case $lt_prog_compiler_pic in
7711
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7714
lt_prog_compiler_pic=
7715
lt_prog_compiler_can_build_shared=no
7726
# Check to make sure the static flag actually works.
7728
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7730
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7731
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7732
$as_echo_n "(cached) " >&6
7734
lt_cv_prog_compiler_static_works=no
7735
save_LDFLAGS="$LDFLAGS"
7736
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7737
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7738
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7739
# The linker can only warn and ignore the option if not recognized
7740
# So say no if there are warnings
7741
if test -s conftest.err; then
7742
# Append any errors to the config.log.
7743
cat conftest.err 1>&5
7744
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7745
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7746
if diff conftest.exp conftest.er2 >/dev/null; then
7747
lt_cv_prog_compiler_static_works=yes
7750
lt_cv_prog_compiler_static_works=yes
7754
LDFLAGS="$save_LDFLAGS"
7757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7758
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7760
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7763
lt_prog_compiler_static=
7772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7773
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7774
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7775
$as_echo_n "(cached) " >&6
7777
lt_cv_prog_compiler_c_o=no
7778
$RM -r conftest 2>/dev/null
7782
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7784
lt_compiler_flag="-o out/conftest2.$ac_objext"
7785
# Insert the option either (1) after the last *FLAGS variable, or
7786
# (2) before a word containing "conftest.", or (3) at the end.
7787
# Note that $ac_compile itself does not contain backslashes and begins
7788
# with a dollar sign (not a hyphen), so the echo should work correctly.
7789
lt_compile=`echo "$ac_compile" | $SED \
7790
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7791
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7792
-e 's:$: $lt_compiler_flag:'`
7793
(eval echo "\"\$as_me:7793: $lt_compile\"" >&5)
7794
(eval "$lt_compile" 2>out/conftest.err)
7796
cat out/conftest.err >&5
7797
echo "$as_me:7797: \$? = $ac_status" >&5
7798
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7800
# The compiler can only warn and ignore the option if not recognized
7801
# So say no if there are warnings
7802
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7803
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7804
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7805
lt_cv_prog_compiler_c_o=yes
7810
# SGI C++ compiler will create directory out/ii_files/ for
7811
# template instantiation
7812
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7813
$RM out/* && rmdir out
7819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7820
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7828
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7829
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7830
$as_echo_n "(cached) " >&6
7832
lt_cv_prog_compiler_c_o=no
7833
$RM -r conftest 2>/dev/null
7837
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7839
lt_compiler_flag="-o out/conftest2.$ac_objext"
7840
# Insert the option either (1) after the last *FLAGS variable, or
7841
# (2) before a word containing "conftest.", or (3) at the end.
7842
# Note that $ac_compile itself does not contain backslashes and begins
7843
# with a dollar sign (not a hyphen), so the echo should work correctly.
7844
lt_compile=`echo "$ac_compile" | $SED \
7845
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847
-e 's:$: $lt_compiler_flag:'`
7848
(eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
7849
(eval "$lt_compile" 2>out/conftest.err)
7851
cat out/conftest.err >&5
7852
echo "$as_me:7852: \$? = $ac_status" >&5
7853
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7855
# The compiler can only warn and ignore the option if not recognized
7856
# So say no if there are warnings
7857
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7858
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7859
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7860
lt_cv_prog_compiler_c_o=yes
7865
# SGI C++ compiler will create directory out/ii_files/ for
7866
# template instantiation
7867
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7868
$RM out/* && rmdir out
7874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7875
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7880
hard_links="nottested"
7881
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7882
# do not overwrite the value of need_locks provided by the user
7883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7884
$as_echo_n "checking if we can lock with hard links... " >&6; }
7887
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7889
ln conftest.a conftest.b 2>&5 || hard_links=no
7890
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7892
$as_echo "$hard_links" >&6; }
7893
if test "$hard_links" = no; then
7894
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7895
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7908
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7911
allow_undefined_flag=
7912
always_export_symbols=no
7914
archive_expsym_cmds=
7915
compiler_needs_object=no
7916
enable_shared_with_static_runtimes=no
7917
export_dynamic_flag_spec=
7918
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7919
hardcode_automatic=no
7921
hardcode_direct_absolute=no
7922
hardcode_libdir_flag_spec=
7923
hardcode_libdir_flag_spec_ld=
7924
hardcode_libdir_separator=
7926
hardcode_shlibpath_var=unsupported
7928
link_all_deplibs=unknown
7931
old_archive_from_new_cmds=
7932
old_archive_from_expsyms_cmds=
7933
thread_safe_flag_spec=
7934
whole_archive_flag_spec=
7935
# include_expsyms should be a list of space-separated symbols to be *always*
7936
# included in the symbol list
7938
# exclude_expsyms can be an extended regexp of symbols to exclude
7939
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7940
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7941
# as well as any symbol that contains `d'.
7942
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7943
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7944
# platforms (ab)use it in PIC code, but their linkers get confused if
7945
# the symbol is explicitly referenced. Since portable code cannot
7946
# rely on this symbol name, it's probably fine to never include it in
7947
# preloaded symbol tables.
7948
# Exclude shared library initialization/finalization symbols.
7949
extract_expsyms_cmds=
7952
cygwin* | mingw* | pw32* | cegcc*)
7953
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7954
# When not using gcc, we currently assume that we are using
7955
# Microsoft Visual C++.
7956
if test "$GCC" != yes; then
7961
# we just hope/assume this is gcc and not c89 (= MSVC++)
7967
linux* | k*bsd*-gnu)
7973
if test "$with_gnu_ld" = yes; then
7974
# If archive_cmds runs LD, not CC, wlarc should be empty
7977
# Set some defaults for GNU ld with shared library support. These
7978
# are reset later if shared libraries are not supported. Putting them
7979
# here allows them to be overridden if necessary.
7980
runpath_var=LD_RUN_PATH
7981
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7982
export_dynamic_flag_spec='${wl}--export-dynamic'
7983
# ancient GNU ld didn't support --whole-archive et. al.
7984
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7985
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7987
whole_archive_flag_spec=
7989
supports_anon_versioning=no
7990
case `$LD -v 2>&1` in
7991
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7992
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7993
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7994
*\ 2.11.*) ;; # other 2.11 versions
7995
*) supports_anon_versioning=yes ;;
7998
# See if GNU ld supports shared libraries.
8001
# On AIX/PPC, the GNU linker is very broken
8002
if test "$host_cpu" != ia64; then
8006
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8007
*** to be unable to reliably create shared libraries on AIX.
8008
*** Therefore, libtool is disabling shared libraries support. If you
8009
*** really care for shared libraries, you may want to modify your PATH
8010
*** so that a non-GNU linker is found, and then restart.
8019
# see comment about AmigaOS4 .so support
8020
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8021
archive_expsym_cmds=''
8024
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)'
8025
hardcode_libdir_flag_spec='-L$libdir'
8026
hardcode_minus_L=yes
8032
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8033
allow_undefined_flag=unsupported
8034
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8035
# support --undefined. This deserves some investigation. FIXME
8036
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8042
cygwin* | mingw* | pw32* | cegcc*)
8043
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8044
# as there is no search path for DLLs.
8045
hardcode_libdir_flag_spec='-L$libdir'
8046
allow_undefined_flag=unsupported
8047
always_export_symbols=no
8048
enable_shared_with_static_runtimes=yes
8049
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8051
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8052
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8053
# If the export-symbols file already is a .def file (1st line
8054
# is EXPORTS), use it as is; otherwise, prepend...
8055
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8056
cp $export_symbols $output_objdir/$soname.def;
8058
echo EXPORTS > $output_objdir/$soname.def;
8059
cat $export_symbols >> $output_objdir/$soname.def;
8061
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8069
hardcode_shlibpath_var=no
8070
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8071
export_dynamic_flag_spec='${wl}-E'
8072
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8073
# Instead, shared libraries are loaded at an image base (0x10000000 by
8074
# default) and relocated if they conflict, which is a slow very memory
8075
# consuming and fragmenting process. To avoid this, we pick a random,
8076
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8077
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8078
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8079
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'
8082
gnu* | linux* | tpf* | k*bsd*-gnu)
8084
if test "$host_os" = linux-dietlibc; then
8085
case $cc_basename in
8086
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8089
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8090
&& test "$tmp_diet" = no
8093
tmp_sharedflag='-shared'
8094
case $cc_basename,$host_cpu in
8095
pgcc*) # Portland Group C compiler
8096
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8097
tmp_addflag=' $pic_flag'
8099
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8100
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8101
tmp_addflag=' $pic_flag -Mnomain' ;;
8102
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8103
tmp_addflag=' -i_dynamic' ;;
8104
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8105
tmp_addflag=' -i_dynamic -nofor_main' ;;
8106
ifc* | ifort*) # Intel Fortran compiler
8107
tmp_addflag=' -nofor_main' ;;
8108
lf95*) # Lahey Fortran 8.1
8109
whole_archive_flag_spec=
8110
tmp_sharedflag='--shared' ;;
8111
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8112
tmp_sharedflag='-qmkshrobj'
8115
case `$CC -V 2>&1 | sed 5q` in
8116
*Sun\ C*) # Sun C 5.9
8117
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8118
compiler_needs_object=yes
8119
tmp_sharedflag='-G' ;;
8120
*Sun\ F*) # Sun Fortran 8.3
8121
tmp_sharedflag='-G' ;;
8123
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8125
if test "x$supports_anon_versioning" = xyes; then
8126
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8127
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8128
echo "local: *; };" >> $output_objdir/$libname.ver~
8129
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8132
case $cc_basename in
8134
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8135
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8136
hardcode_libdir_flag_spec=
8137
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8138
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8139
if test "x$supports_anon_versioning" = xyes; then
8140
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8141
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8142
echo "local: *; };" >> $output_objdir/$libname.ver~
8143
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8152
netbsd* | netbsdelf*-gnu)
8153
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8154
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8157
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8158
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8163
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8167
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8168
*** create shared libraries on Solaris systems. Therefore, libtool
8169
*** is disabling shared libraries support. We urge you to upgrade GNU
8170
*** binutils to release 2.9.1 or newer. Another option is to modify
8171
*** your PATH or compiler configuration so that the native linker is
8172
*** used, and then restart.
8175
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8176
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8177
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8183
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8184
case `$LD -v 2>&1` in
8185
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8189
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8190
*** reliably create shared libraries on SCO systems. Therefore, libtool
8191
*** is disabling shared libraries support. We urge you to upgrade GNU
8192
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8193
*** your PATH or compiler configuration so that the native linker is
8194
*** used, and then restart.
8199
# For security reasons, it is highly recommended that you always
8200
# use absolute paths for naming shared libraries, and exclude the
8201
# DT_RUNPATH tag from executables and libraries. But doing so
8202
# requires that you compile everything twice, which is a pain.
8203
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8204
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8205
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8215
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8218
hardcode_shlibpath_var=no
8222
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8223
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231
if test "$ld_shlibs" = no; then
8233
hardcode_libdir_flag_spec=
8234
export_dynamic_flag_spec=
8235
whole_archive_flag_spec=
8238
# PORTME fill in a description of your system's linker (not GNU ld)
8241
allow_undefined_flag=unsupported
8242
always_export_symbols=yes
8243
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'
8244
# Note: this linker hardcodes the directories in LIBPATH if there
8245
# are no directories specified by -L.
8246
hardcode_minus_L=yes
8247
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8248
# Neither direct hardcoding nor static linking is supported with a
8250
hardcode_direct=unsupported
8255
if test "$host_cpu" = ia64; then
8256
# On IA64, the linker does run time linking by default, so we don't
8257
# have to do anything special.
8258
aix_use_runtimelinking=no
8259
exp_sym_flag='-Bexport'
8262
# If we're using GNU nm, then we don't want the "-C" option.
8263
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8264
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8265
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8267
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'
8269
aix_use_runtimelinking=no
8271
# Test if we are trying to use run time linking or normal
8272
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8273
# need to do runtime linking.
8274
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8275
for ld_flag in $LDFLAGS; do
8276
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8277
aix_use_runtimelinking=yes
8284
exp_sym_flag='-bexport'
8285
no_entry_flag='-bnoentry'
8288
# When large executables or shared objects are built, AIX ld can
8289
# have problems creating the table of contents. If linking a library
8290
# or program results in "error TOC overflow" add -mminimal-toc to
8291
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8292
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8296
hardcode_direct_absolute=yes
8297
hardcode_libdir_separator=':'
8298
link_all_deplibs=yes
8299
file_list_spec='${wl}-f,'
8301
if test "$GCC" = yes; then
8302
case $host_os in aix4.[012]|aix4.[012].*)
8303
# We only want to do this on AIX 4.2 and lower, the check
8304
# below for broken collect2 doesn't work under 4.3+
8305
collect2name=`${CC} -print-prog-name=collect2`
8306
if test -f "$collect2name" &&
8307
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8309
# We have reworked collect2
8312
# We have old collect2
8313
hardcode_direct=unsupported
8314
# It fails to find uninstalled libraries when the uninstalled
8315
# path is not listed in the libpath. Setting hardcode_minus_L
8316
# to unsupported forces relinking
8317
hardcode_minus_L=yes
8318
hardcode_libdir_flag_spec='-L$libdir'
8319
hardcode_libdir_separator=
8323
shared_flag='-shared'
8324
if test "$aix_use_runtimelinking" = yes; then
8325
shared_flag="$shared_flag "'${wl}-G'
8330
if test "$host_cpu" = ia64; then
8331
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8332
# chokes on -Wl,-G. The following line is correct:
8335
if test "$aix_use_runtimelinking" = yes; then
8336
shared_flag='${wl}-G'
8338
shared_flag='${wl}-bM:SRE'
8343
export_dynamic_flag_spec='${wl}-bexpall'
8344
# It seems that -bexpall does not export symbols beginning with
8345
# underscore (_), so it is better to generate a list of symbols to export.
8346
always_export_symbols=yes
8347
if test "$aix_use_runtimelinking" = yes; then
8348
# Warning - without using the other runtime loading flags (-brtl),
8349
# -berok will link without error, but may produce a broken library.
8350
allow_undefined_flag='-berok'
8351
# Determine the default libpath from the value encoded in an
8353
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354
/* end confdefs.h. */
8364
if ac_fn_c_try_link "$LINENO"; then :
8366
lt_aix_libpath_sed='
8367
/Import File Strings/,/^$/ {
8373
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8374
# Check for a 64-bit object if we didn't find anything.
8375
if test -z "$aix_libpath"; then
8376
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8379
rm -f core conftest.err conftest.$ac_objext \
8380
conftest$ac_exeext conftest.$ac_ext
8381
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8383
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8384
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8386
if test "$host_cpu" = ia64; then
8387
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8388
allow_undefined_flag="-z nodefs"
8389
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"
8391
# Determine the default libpath from the value encoded in an
8393
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394
/* end confdefs.h. */
8404
if ac_fn_c_try_link "$LINENO"; then :
8406
lt_aix_libpath_sed='
8407
/Import File Strings/,/^$/ {
8413
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8414
# Check for a 64-bit object if we didn't find anything.
8415
if test -z "$aix_libpath"; then
8416
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8419
rm -f core conftest.err conftest.$ac_objext \
8420
conftest$ac_exeext conftest.$ac_ext
8421
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8423
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8424
# Warning - without using the other run time loading flags,
8425
# -berok will link without error, but may produce a broken library.
8426
no_undefined_flag=' ${wl}-bernotok'
8427
allow_undefined_flag=' ${wl}-berok'
8428
# Exported symbols can be pulled into shared objects from archives
8429
whole_archive_flag_spec='$convenience'
8430
archive_cmds_need_lc=yes
8431
# This is similar to how AIX traditionally builds its shared libraries.
8432
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'
8440
# see comment about AmigaOS4 .so support
8441
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442
archive_expsym_cmds=''
8445
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)'
8446
hardcode_libdir_flag_spec='-L$libdir'
8447
hardcode_minus_L=yes
8453
export_dynamic_flag_spec=-rdynamic
8456
cygwin* | mingw* | pw32* | cegcc*)
8457
# When not using gcc, we currently assume that we are using
8458
# Microsoft Visual C++.
8459
# hardcode_libdir_flag_spec is actually meaningless, as there is
8460
# no search path for DLLs.
8461
hardcode_libdir_flag_spec=' '
8462
allow_undefined_flag=unsupported
8463
# Tell ltmain to make .lib files, not .a files.
8465
# Tell ltmain to make .dll files, not .so files.
8467
# FIXME: Setting linknames here is a bad hack.
8468
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8469
# The linker will automatically build a .lib file if we build a DLL.
8470
old_archive_from_new_cmds='true'
8471
# FIXME: Should let the user specify the lib program.
8472
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8473
fix_srcfile_path='`cygpath -w "$srcfile"`'
8474
enable_shared_with_static_runtimes=yes
8477
darwin* | rhapsody*)
8480
archive_cmds_need_lc=no
8482
hardcode_automatic=yes
8483
hardcode_shlibpath_var=unsupported
8484
whole_archive_flag_spec=''
8485
link_all_deplibs=yes
8486
allow_undefined_flag="$_lt_dar_allow_undefined"
8487
case $cc_basename in
8488
ifort*) _lt_dar_can_shared=yes ;;
8489
*) _lt_dar_can_shared=$GCC ;;
8491
if test "$_lt_dar_can_shared" = "yes"; then
8492
output_verbose_link_cmd=echo
8493
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8494
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8495
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}"
8496
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}"
8505
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8506
hardcode_libdir_flag_spec='-L$libdir'
8507
hardcode_shlibpath_var=no
8514
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8515
# support. Future versions do this automatically, but an explicit c++rt0.o
8516
# does not break anything, and helps significantly (at the cost of a little
8519
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8520
hardcode_libdir_flag_spec='-R$libdir'
8522
hardcode_shlibpath_var=no
8525
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8527
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8529
hardcode_minus_L=yes
8530
hardcode_shlibpath_var=no
8533
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8534
freebsd* | dragonfly*)
8535
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8536
hardcode_libdir_flag_spec='-R$libdir'
8538
hardcode_shlibpath_var=no
8542
if test "$GCC" = yes; then
8543
archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8545
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'
8547
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8548
hardcode_libdir_separator=:
8551
# hardcode_minus_L: Not really in the search PATH,
8552
# but as the default location of the library.
8553
hardcode_minus_L=yes
8554
export_dynamic_flag_spec='${wl}-E'
8558
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8559
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8561
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8563
if test "$with_gnu_ld" = no; then
8564
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8565
hardcode_libdir_flag_spec_ld='+b $libdir'
8566
hardcode_libdir_separator=:
8568
hardcode_direct_absolute=yes
8569
export_dynamic_flag_spec='${wl}-E'
8570
# hardcode_minus_L: Not really in the search PATH,
8571
# but as the default location of the library.
8572
hardcode_minus_L=yes
8577
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8580
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8583
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8586
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8592
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8595
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8598
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8602
if test "$with_gnu_ld" = no; then
8603
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8604
hardcode_libdir_separator=:
8609
hardcode_shlibpath_var=no
8613
hardcode_direct_absolute=yes
8614
export_dynamic_flag_spec='${wl}-E'
8616
# hardcode_minus_L: Not really in the search PATH,
8617
# but as the default location of the library.
8618
hardcode_minus_L=yes
8624
irix5* | irix6* | nonstopux*)
8625
if test "$GCC" = yes; then
8626
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8627
# Try to use the -exported_symbol ld option, if it does not
8628
# work, assume that -exports_file does not work either and
8629
# implicitly export all symbols.
8630
save_LDFLAGS="$LDFLAGS"
8631
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633
/* end confdefs.h. */
8636
if ac_fn_c_try_link "$LINENO"; then :
8637
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8640
rm -f core conftest.err conftest.$ac_objext \
8641
conftest$ac_exeext conftest.$ac_ext
8642
LDFLAGS="$save_LDFLAGS"
8644
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8645
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8647
archive_cmds_need_lc='no'
8648
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649
hardcode_libdir_separator=:
8651
link_all_deplibs=yes
8654
netbsd* | netbsdelf*-gnu)
8655
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8656
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8658
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8660
hardcode_libdir_flag_spec='-R$libdir'
8662
hardcode_shlibpath_var=no
8666
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8668
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8669
hardcode_libdir_separator=:
8670
hardcode_shlibpath_var=no
8677
if test -f /usr/libexec/ld.so; then
8679
hardcode_shlibpath_var=no
8680
hardcode_direct_absolute=yes
8681
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8682
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8683
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8684
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8685
export_dynamic_flag_spec='${wl}-E'
8688
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8689
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8690
hardcode_libdir_flag_spec='-R$libdir'
8693
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8694
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8704
hardcode_libdir_flag_spec='-L$libdir'
8705
hardcode_minus_L=yes
8706
allow_undefined_flag=unsupported
8707
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'
8708
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8712
if test "$GCC" = yes; then
8713
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8714
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8716
allow_undefined_flag=' -expect_unresolved \*'
8717
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8719
archive_cmds_need_lc='no'
8720
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8721
hardcode_libdir_separator=:
8724
osf4* | osf5*) # as osf3* with the addition of -msym flag
8725
if test "$GCC" = yes; then
8726
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8727
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8728
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8730
allow_undefined_flag=' -expect_unresolved \*'
8731
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8732
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~
8733
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8735
# Both c and cxx compiler support -rpath directly
8736
hardcode_libdir_flag_spec='-rpath $libdir'
8738
archive_cmds_need_lc='no'
8739
hardcode_libdir_separator=:
8743
no_undefined_flag=' -z defs'
8744
if test "$GCC" = yes; then
8746
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8747
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8748
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8750
case `$CC -V 2>&1` in
8753
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8755
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8759
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8760
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8761
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8765
hardcode_libdir_flag_spec='-R$libdir'
8766
hardcode_shlibpath_var=no
8768
solaris2.[0-5] | solaris2.[0-5].*) ;;
8770
# The compiler driver will combine and reorder linker options,
8771
# but understands `-z linker_flag'. GCC discards it without `$wl',
8772
# but is careful enough not to reorder.
8773
# Supported since Solaris 2.6 (maybe 2.5.1?)
8774
if test "$GCC" = yes; then
8775
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8777
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8781
link_all_deplibs=yes
8785
if test "x$host_vendor" = xsequent; then
8786
# Use $CC to link under sequent, because it throws in some extra .o
8787
# files that make .init and .fini sections work.
8788
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8790
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8792
hardcode_libdir_flag_spec='-L$libdir'
8794
hardcode_minus_L=yes
8795
hardcode_shlibpath_var=no
8799
case $host_vendor in
8801
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802
hardcode_direct=yes # is this really true???
8805
## LD is ld it makes a PLAMLIB
8806
## CC just makes a GrossModule.
8807
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8808
reload_cmds='$CC -r -o $output$reload_objs'
8812
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8816
runpath_var='LD_RUN_PATH'
8817
hardcode_shlibpath_var=no
8821
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822
hardcode_shlibpath_var=no
8823
export_dynamic_flag_spec='-Bexport'
8827
if test -d /usr/nec; then
8828
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8829
hardcode_shlibpath_var=no
8830
runpath_var=LD_RUN_PATH
8831
hardcode_runpath_var=yes
8836
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8837
no_undefined_flag='${wl}-z,text'
8838
archive_cmds_need_lc=no
8839
hardcode_shlibpath_var=no
8840
runpath_var='LD_RUN_PATH'
8842
if test "$GCC" = yes; then
8843
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851
sysv5* | sco3.2v5* | sco5v6*)
8852
# Note: We can NOT use -z defs as we might desire, because we do not
8853
# link with -lc, and that would cause any symbols used from libc to
8854
# always be unresolved, which means just about no library would
8855
# ever link correctly. If we're not using GNU ld we use -z text
8856
# though, which does catch some bad symbols but isn't as heavy-handed
8858
no_undefined_flag='${wl}-z,text'
8859
allow_undefined_flag='${wl}-z,nodefs'
8860
archive_cmds_need_lc=no
8861
hardcode_shlibpath_var=no
8862
hardcode_libdir_flag_spec='${wl}-R,$libdir'
8863
hardcode_libdir_separator=':'
8864
link_all_deplibs=yes
8865
export_dynamic_flag_spec='${wl}-Bexport'
8866
runpath_var='LD_RUN_PATH'
8868
if test "$GCC" = yes; then
8869
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8870
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8872
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8873
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8878
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879
hardcode_libdir_flag_spec='-L$libdir'
8880
hardcode_shlibpath_var=no
8888
if test x$host_vendor = xsni; then
8890
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8891
export_dynamic_flag_spec='${wl}-Blargedynsym'
8897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8898
$as_echo "$ld_shlibs" >&6; }
8899
test "$ld_shlibs" = no && can_build_shared=no
8901
with_gnu_ld=$with_gnu_ld
8918
# Do we need to explicitly link libc?
8920
case "x$archive_cmds_need_lc" in
8922
# Assume -lc should be added
8923
archive_cmds_need_lc=yes
8925
if test "$enable_shared" = yes && test "$GCC" = yes; then
8926
case $archive_cmds in
8928
# FIXME: we may have to deal with multi-command sequences.
8931
# Test whether the compiler implicitly links with -lc since on some
8932
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8933
# to ld, don't add -lc before -lgcc.
8934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8935
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8937
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8940
(eval $ac_compile) 2>&5
8942
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943
test $ac_status = 0; } 2>conftest.err; then
8946
libobjs=conftest.$ac_objext
8948
wl=$lt_prog_compiler_wl
8949
pic_flag=$lt_prog_compiler_pic
8955
lt_save_allow_undefined_flag=$allow_undefined_flag
8956
allow_undefined_flag=
8957
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8958
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8960
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8961
test $ac_status = 0; }
8963
archive_cmds_need_lc=no
8965
archive_cmds_need_lc=yes
8967
allow_undefined_flag=$lt_save_allow_undefined_flag
8969
cat conftest.err 1>&5
8972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8973
$as_echo "$archive_cmds_need_lc" >&6; }
9136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9137
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9139
if test "$GCC" = yes; then
9141
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9142
*) lt_awk_arg="/^libraries:/" ;;
9144
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9145
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9146
# if the path contains ";" then we assume it to be the separator
9147
# otherwise default to the standard path separator (i.e. ":") - it is
9148
# assumed that no part of a normal pathname contains ";" but that should
9149
# okay in the real world where ";" in dirpaths is itself problematic.
9150
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9152
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9154
# Ok, now we have the path, separated by spaces, we can step through it
9155
# and add multilib dir if necessary.
9156
lt_tmp_lt_search_path_spec=
9157
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9158
for lt_sys_path in $lt_search_path_spec; do
9159
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9160
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9162
test -d "$lt_sys_path" && \
9163
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9166
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9167
BEGIN {RS=" "; FS="/|\n";} {
9170
for (lt_i = NF; lt_i > 0; lt_i--) {
9171
if ($lt_i != "" && $lt_i != ".") {
9172
if ($lt_i == "..") {
9175
if (lt_count == 0) {
9176
lt_foo="/" $lt_i lt_foo;
9183
if (lt_foo != "") { lt_freq[lt_foo]++; }
9184
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9186
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9188
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9191
libname_spec='lib$name'
9199
shlibpath_overrides_runpath=unknown
9201
dynamic_linker="$host_os ld.so"
9202
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9203
need_lib_prefix=unknown
9204
hardcode_into_libs=no
9206
# when you set need_version to no, make sure it does not cause -set_version
9207
# flags to be left without arguments
9208
need_version=unknown
9213
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9214
shlibpath_var=LIBPATH
9216
# AIX 3 has no versioning support, so we append a major version to the name.
9217
soname_spec='${libname}${release}${shared_ext}$major'
9224
hardcode_into_libs=yes
9225
if test "$host_cpu" = ia64; then
9226
# AIX 5 supports IA64
9227
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9228
shlibpath_var=LD_LIBRARY_PATH
9230
# With GCC up to 2.95.x, collect2 would create an import file
9231
# for dependence libraries. The import file would start with
9232
# the line `#! .'. This would cause the generated library to
9233
# depend on `.', always an invalid library. This was fixed in
9234
# development snapshots of GCC prior to 3.0.
9236
aix4 | aix4.[01] | aix4.[01].*)
9237
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9239
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9246
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9247
# soname into executable. Probably we can add versioning support to
9248
# collect2, so additional links can be useful in future.
9249
if test "$aix_use_runtimelinking" = yes; then
9250
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9251
# instead of lib<name>.a to let people know that these are not
9252
# typical AIX shared libraries.
9253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255
# We preserve .a as extension for shared libraries through AIX4.2
9256
# and later when we are not doing run time linking.
9257
library_names_spec='${libname}${release}.a $libname.a'
9258
soname_spec='${libname}${release}${shared_ext}$major'
9260
shlibpath_var=LIBPATH
9267
# Since July 2007 AmigaOS4 officially supports .so libraries.
9268
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272
library_names_spec='$libname.ixlibrary $libname.a'
9273
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9274
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9280
library_names_spec='${libname}${shared_ext}'
9281
dynamic_linker="$host_os ld.so"
9282
shlibpath_var=LIBRARY_PATH
9288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289
soname_spec='${libname}${release}${shared_ext}$major'
9290
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9291
shlibpath_var=LD_LIBRARY_PATH
9292
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9293
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9294
# the default ld.so.conf also contains /usr/contrib/lib and
9295
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9296
# libtool to hard-code these into programs
9299
cygwin* | mingw* | pw32* | cegcc*)
9300
version_type=windows
9305
case $GCC,$host_os in
9306
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9307
library_names_spec='$libname.dll.a'
9308
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9309
postinstall_cmds='base_file=`basename \${file}`~
9310
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9311
dldir=$destdir/`dirname \$dlpath`~
9312
test -d \$dldir || mkdir -p \$dldir~
9313
$install_prog $dir/$dlname \$dldir/$dlname~
9314
chmod a+x \$dldir/$dlname~
9315
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9316
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9318
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9319
dlpath=$dir/\$dldll~
9321
shlibpath_overrides_runpath=yes
9325
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9326
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9327
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9330
# MinGW DLLs use traditional 'lib' prefix
9331
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9332
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9333
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9334
# It is most probably a Windows format PATH printed by
9335
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9336
# path with ; separators, and with drive letters. We can handle the
9337
# drive letters (cygwin fileutils understands them), so leave them,
9338
# especially as we might pass files found there to a mingw objdump,
9339
# which wouldn't understand a cygwinified path. Ahh.
9340
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9342
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9346
# pw32 DLLs use 'pw' prefix rather than 'lib'
9347
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9353
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9356
dynamic_linker='Win32 ld.exe'
9357
# FIXME: first we should search . and the directory the executable is in
9361
darwin* | rhapsody*)
9362
dynamic_linker="$host_os dyld"
9366
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9367
soname_spec='${libname}${release}${major}$shared_ext'
9368
shlibpath_overrides_runpath=yes
9369
shlibpath_var=DYLD_LIBRARY_PATH
9370
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9372
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9373
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9381
soname_spec='${libname}${release}${shared_ext}$major'
9382
shlibpath_var=LD_LIBRARY_PATH
9389
freebsd* | dragonfly*)
9390
# DragonFly does not have aout. When/if they implement a new
9391
# versioning mechanism, adjust this.
9392
if test -x /usr/bin/objformat; then
9393
objformat=`/usr/bin/objformat`
9396
freebsd[123]*) objformat=aout ;;
9400
version_type=freebsd-$objformat
9401
case $version_type in
9403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9408
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9412
shlibpath_var=LD_LIBRARY_PATH
9415
shlibpath_overrides_runpath=yes
9417
freebsd3.[01]* | freebsdelf3.[01]*)
9418
shlibpath_overrides_runpath=yes
9419
hardcode_into_libs=yes
9421
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9422
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9423
shlibpath_overrides_runpath=no
9424
hardcode_into_libs=yes
9426
*) # from 4.6 on, and DragonFly
9427
shlibpath_overrides_runpath=yes
9428
hardcode_into_libs=yes
9437
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9438
soname_spec='${libname}${release}${shared_ext}$major'
9439
shlibpath_var=LD_LIBRARY_PATH
9440
hardcode_into_libs=yes
9443
hpux9* | hpux10* | hpux11*)
9444
# Give a soname corresponding to the major version so that dld.sl refuses to
9445
# link against other versions.
9452
hardcode_into_libs=yes
9453
dynamic_linker="$host_os dld.so"
9454
shlibpath_var=LD_LIBRARY_PATH
9455
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9456
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457
soname_spec='${libname}${release}${shared_ext}$major'
9458
if test "X$HPUX_IA64_MODE" = X32; then
9459
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9461
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9463
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9467
hardcode_into_libs=yes
9468
dynamic_linker="$host_os dld.sl"
9469
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9470
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9471
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472
soname_spec='${libname}${release}${shared_ext}$major'
9473
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9474
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9478
dynamic_linker="$host_os dld.sl"
9479
shlibpath_var=SHLIB_PATH
9480
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482
soname_spec='${libname}${release}${shared_ext}$major'
9485
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9486
postinstall_cmds='chmod 555 $lib'
9493
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9494
soname_spec='${libname}${release}${shared_ext}$major'
9495
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9496
shlibpath_var=LD_LIBRARY_PATH
9497
shlibpath_overrides_runpath=no
9498
hardcode_into_libs=yes
9501
irix5* | irix6* | nonstopux*)
9503
nonstopux*) version_type=nonstopux ;;
9505
if test "$lt_cv_prog_gnu_ld" = yes; then
9513
soname_spec='${libname}${release}${shared_ext}$major'
9514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9516
irix5* | nonstopux*)
9520
case $LD in # libtool.m4 will add one of these switches to LD
9521
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9522
libsuff= shlibsuff= libmagic=32-bit;;
9523
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9524
libsuff=32 shlibsuff=N32 libmagic=N32;;
9525
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9526
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9527
*) libsuff= shlibsuff= libmagic=never-match;;
9531
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9532
shlibpath_overrides_runpath=no
9533
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9534
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9535
hardcode_into_libs=yes
9538
# No shared lib support for Linux oldld, aout, or coff.
9539
linux*oldld* | linux*aout* | linux*coff*)
9543
# This must be Linux ELF.
9544
linux* | k*bsd*-gnu)
9548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549
soname_spec='${libname}${release}${shared_ext}$major'
9550
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9551
shlibpath_var=LD_LIBRARY_PATH
9552
shlibpath_overrides_runpath=no
9553
# Some binutils ld are patched to set DT_RUNPATH
9554
save_LDFLAGS=$LDFLAGS
9556
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9557
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559
/* end confdefs.h. */
9569
if ac_fn_c_try_link "$LINENO"; then :
9570
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9571
shlibpath_overrides_runpath=yes
9574
rm -f core conftest.err conftest.$ac_objext \
9575
conftest$ac_exeext conftest.$ac_ext
9576
LDFLAGS=$save_LDFLAGS
9579
# This implies no fast_install, which is unacceptable.
9580
# Some rework will be needed to allow for fast_install
9581
# before this can be enabled.
9582
hardcode_into_libs=yes
9584
# Append ld.so.conf contents to the search path
9585
if test -f /etc/ld.so.conf; then
9586
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9587
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9590
# We used to test for /lib/ld.so.1 and disable shared libraries on
9591
# powerpc, because MkLinux only supported shared libraries with the
9592
# GNU dynamic linker. Since this was broken with cross compilers,
9593
# most powerpc-linux boxes support dynamic linking these days and
9594
# people can always --disable-shared, the test was removed, and we
9595
# assume the GNU/Linux dynamic linker is in use.
9596
dynamic_linker='GNU/Linux ld.so'
9603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9604
soname_spec='${libname}${release}${shared_ext}$major'
9605
shlibpath_var=LD_LIBRARY_PATH
9606
shlibpath_overrides_runpath=no
9607
hardcode_into_libs=yes
9608
dynamic_linker='NetBSD ld.elf_so'
9615
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9617
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9618
dynamic_linker='NetBSD (a.out) ld.so'
9620
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621
soname_spec='${libname}${release}${shared_ext}$major'
9622
dynamic_linker='NetBSD ld.elf_so'
9624
shlibpath_var=LD_LIBRARY_PATH
9625
shlibpath_overrides_runpath=yes
9626
hardcode_into_libs=yes
9631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632
shlibpath_var=LD_LIBRARY_PATH
9633
shlibpath_overrides_runpath=yes
9640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641
soname_spec='${libname}${release}${shared_ext}$major'
9642
shlibpath_var=LD_LIBRARY_PATH
9643
shlibpath_overrides_runpath=no
9644
hardcode_into_libs=yes
9645
dynamic_linker='ldqnx.so'
9650
sys_lib_dlsearch_path_spec="/usr/lib"
9652
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9654
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9655
*) need_version=no ;;
9657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9658
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9659
shlibpath_var=LD_LIBRARY_PATH
9660
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9662
openbsd2.[89] | openbsd2.[89].*)
9663
shlibpath_overrides_runpath=no
9666
shlibpath_overrides_runpath=yes
9670
shlibpath_overrides_runpath=yes
9675
libname_spec='$name'
9678
library_names_spec='$libname${shared_ext} $libname.a'
9679
dynamic_linker='OS/2 ld.exe'
9680
shlibpath_var=LIBPATH
9683
osf3* | osf4* | osf5*)
9687
soname_spec='${libname}${release}${shared_ext}$major'
9688
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9689
shlibpath_var=LD_LIBRARY_PATH
9690
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9691
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9702
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703
soname_spec='${libname}${release}${shared_ext}$major'
9704
shlibpath_var=LD_LIBRARY_PATH
9705
shlibpath_overrides_runpath=yes
9706
hardcode_into_libs=yes
9707
# ldd complains unless libraries are executable
9708
postinstall_cmds='chmod +x $lib'
9713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9714
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9715
shlibpath_var=LD_LIBRARY_PATH
9716
shlibpath_overrides_runpath=yes
9717
if test "$with_gnu_ld" = yes; then
9725
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9726
soname_spec='${libname}${release}${shared_ext}$major'
9727
shlibpath_var=LD_LIBRARY_PATH
9728
case $host_vendor in
9730
shlibpath_overrides_runpath=no
9732
runpath_var=LD_RUN_PATH
9740
shlibpath_overrides_runpath=no
9741
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9747
if test -d /usr/nec ;then
9749
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9750
soname_spec='$libname${shared_ext}.$major'
9751
shlibpath_var=LD_LIBRARY_PATH
9755
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9756
version_type=freebsd-elf
9759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9760
soname_spec='${libname}${release}${shared_ext}$major'
9761
shlibpath_var=LD_LIBRARY_PATH
9762
shlibpath_overrides_runpath=yes
9763
hardcode_into_libs=yes
9764
if test "$with_gnu_ld" = yes; then
9765
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9767
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9770
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9774
sys_lib_dlsearch_path_spec='/usr/lib'
9778
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9782
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783
shlibpath_var=LD_LIBRARY_PATH
9784
shlibpath_overrides_runpath=no
9785
hardcode_into_libs=yes
9790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791
soname_spec='${libname}${release}${shared_ext}$major'
9792
shlibpath_var=LD_LIBRARY_PATH
9799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9800
$as_echo "$dynamic_linker" >&6; }
9801
test "$dynamic_linker" = no && can_build_shared=no
9803
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9804
if test "$GCC" = yes; then
9805
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9808
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9809
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9811
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9812
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9902
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9904
if test -n "$hardcode_libdir_flag_spec" ||
9905
test -n "$runpath_var" ||
9906
test "X$hardcode_automatic" = "Xyes" ; then
9908
# We can hardcode non-existent directories.
9909
if test "$hardcode_direct" != no &&
9910
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9911
# have to relink, otherwise we might link with an installed library
9912
# when we should be linking with a yet-to-be-installed one
9913
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9914
test "$hardcode_minus_L" != no; then
9915
# Linking always hardcodes the temporary library directory.
9916
hardcode_action=relink
9918
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9919
hardcode_action=immediate
9922
# We cannot hardcode anything, or else we can only hardcode existing
9924
hardcode_action=unsupported
9926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9927
$as_echo "$hardcode_action" >&6; }
9929
if test "$hardcode_action" = relink ||
9930
test "$inherit_rpath" = yes; then
9931
# Fast installation is not supported
9932
enable_fast_install=no
9933
elif test "$shlibpath_overrides_runpath" = yes ||
9934
test "$enable_shared" = no; then
9935
# Fast installation is not necessary
9936
enable_fast_install=needless
9944
if test "x$enable_dlopen" != xyes; then
9945
enable_dlopen=unknown
9946
enable_dlopen_self=unknown
9947
enable_dlopen_self_static=unknown
9954
lt_cv_dlopen="load_add_on"
9956
lt_cv_dlopen_self=yes
9959
mingw* | pw32* | cegcc*)
9960
lt_cv_dlopen="LoadLibrary"
9965
lt_cv_dlopen="dlopen"
9970
# if libdl is installed we need to link against it
9971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9972
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9973
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9974
$as_echo_n "(cached) " >&6
9976
ac_check_lib_save_LIBS=$LIBS
9978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979
/* end confdefs.h. */
9981
/* Override any GCC internal prototype to avoid an error.
9982
Use char because int might match the return type of a GCC
9983
builtin and then its argument prototype would still apply. */
9996
if ac_fn_c_try_link "$LINENO"; then :
9997
ac_cv_lib_dl_dlopen=yes
9999
ac_cv_lib_dl_dlopen=no
10001
rm -f core conftest.err conftest.$ac_objext \
10002
conftest$ac_exeext conftest.$ac_ext
10003
LIBS=$ac_check_lib_save_LIBS
10005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10006
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10007
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10008
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10011
lt_cv_dlopen="dyld"
10013
lt_cv_dlopen_self=yes
10020
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10021
if test "x$ac_cv_func_shl_load" = x""yes; then :
10022
lt_cv_dlopen="shl_load"
10024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10025
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10026
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10027
$as_echo_n "(cached) " >&6
10029
ac_check_lib_save_LIBS=$LIBS
10031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032
/* end confdefs.h. */
10034
/* Override any GCC internal prototype to avoid an error.
10035
Use char because int might match the return type of a GCC
10036
builtin and then its argument prototype would still apply. */
10044
return shl_load ();
10049
if ac_fn_c_try_link "$LINENO"; then :
10050
ac_cv_lib_dld_shl_load=yes
10052
ac_cv_lib_dld_shl_load=no
10054
rm -f core conftest.err conftest.$ac_objext \
10055
conftest$ac_exeext conftest.$ac_ext
10056
LIBS=$ac_check_lib_save_LIBS
10058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10059
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10060
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10061
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10063
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10064
if test "x$ac_cv_func_dlopen" = x""yes; then :
10065
lt_cv_dlopen="dlopen"
10067
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10068
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10069
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10070
$as_echo_n "(cached) " >&6
10072
ac_check_lib_save_LIBS=$LIBS
10074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075
/* end confdefs.h. */
10077
/* Override any GCC internal prototype to avoid an error.
10078
Use char because int might match the return type of a GCC
10079
builtin and then its argument prototype would still apply. */
10092
if ac_fn_c_try_link "$LINENO"; then :
10093
ac_cv_lib_dl_dlopen=yes
10095
ac_cv_lib_dl_dlopen=no
10097
rm -f core conftest.err conftest.$ac_objext \
10098
conftest$ac_exeext conftest.$ac_ext
10099
LIBS=$ac_check_lib_save_LIBS
10101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10102
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10103
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10104
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10107
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10108
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10109
$as_echo_n "(cached) " >&6
10111
ac_check_lib_save_LIBS=$LIBS
10112
LIBS="-lsvld $LIBS"
10113
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114
/* end confdefs.h. */
10116
/* Override any GCC internal prototype to avoid an error.
10117
Use char because int might match the return type of a GCC
10118
builtin and then its argument prototype would still apply. */
10131
if ac_fn_c_try_link "$LINENO"; then :
10132
ac_cv_lib_svld_dlopen=yes
10134
ac_cv_lib_svld_dlopen=no
10136
rm -f core conftest.err conftest.$ac_objext \
10137
conftest$ac_exeext conftest.$ac_ext
10138
LIBS=$ac_check_lib_save_LIBS
10140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10141
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10142
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10143
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10146
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10147
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10148
$as_echo_n "(cached) " >&6
10150
ac_check_lib_save_LIBS=$LIBS
10152
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153
/* end confdefs.h. */
10155
/* Override any GCC internal prototype to avoid an error.
10156
Use char because int might match the return type of a GCC
10157
builtin and then its argument prototype would still apply. */
10165
return dld_link ();
10170
if ac_fn_c_try_link "$LINENO"; then :
10171
ac_cv_lib_dld_dld_link=yes
10173
ac_cv_lib_dld_dld_link=no
10175
rm -f core conftest.err conftest.$ac_objext \
10176
conftest$ac_exeext conftest.$ac_ext
10177
LIBS=$ac_check_lib_save_LIBS
10179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10180
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10181
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10182
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10203
if test "x$lt_cv_dlopen" != xno; then
10209
case $lt_cv_dlopen in
10211
save_CPPFLAGS="$CPPFLAGS"
10212
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10214
save_LDFLAGS="$LDFLAGS"
10215
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10218
LIBS="$lt_cv_dlopen_libs $LIBS"
10220
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10221
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10222
if test "${lt_cv_dlopen_self+set}" = set; then :
10223
$as_echo_n "(cached) " >&6
10225
if test "$cross_compiling" = yes; then :
10226
lt_cv_dlopen_self=cross
10228
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10229
lt_status=$lt_dlunknown
10230
cat > conftest.$ac_ext <<_LT_EOF
10231
#line 10231 "configure"
10232
#include "confdefs.h"
10241
# define LT_DLGLOBAL RTLD_GLOBAL
10244
# define LT_DLGLOBAL DL_GLOBAL
10246
# define LT_DLGLOBAL 0
10250
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10251
find out it does not work in some platform. */
10252
#ifndef LT_DLLAZY_OR_NOW
10254
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10257
# define LT_DLLAZY_OR_NOW DL_LAZY
10260
# define LT_DLLAZY_OR_NOW RTLD_NOW
10263
# define LT_DLLAZY_OR_NOW DL_NOW
10265
# define LT_DLLAZY_OR_NOW 0
10272
void fnord() { int i=42;}
10275
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10276
int status = $lt_dlunknown;
10280
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10281
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10282
/* dlclose (self); */
10290
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10291
(eval $ac_link) 2>&5
10293
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10295
(./conftest; exit; ) >&5 2>/dev/null
10297
case x$lt_status in
10298
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10299
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10300
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10303
# compilation failed
10304
lt_cv_dlopen_self=no
10311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10312
$as_echo "$lt_cv_dlopen_self" >&6; }
10314
if test "x$lt_cv_dlopen_self" = xyes; then
10315
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10317
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10318
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10319
$as_echo_n "(cached) " >&6
10321
if test "$cross_compiling" = yes; then :
10322
lt_cv_dlopen_self_static=cross
10324
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10325
lt_status=$lt_dlunknown
10326
cat > conftest.$ac_ext <<_LT_EOF
10327
#line 10327 "configure"
10328
#include "confdefs.h"
10337
# define LT_DLGLOBAL RTLD_GLOBAL
10340
# define LT_DLGLOBAL DL_GLOBAL
10342
# define LT_DLGLOBAL 0
10346
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10347
find out it does not work in some platform. */
10348
#ifndef LT_DLLAZY_OR_NOW
10350
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10353
# define LT_DLLAZY_OR_NOW DL_LAZY
10356
# define LT_DLLAZY_OR_NOW RTLD_NOW
10359
# define LT_DLLAZY_OR_NOW DL_NOW
10361
# define LT_DLLAZY_OR_NOW 0
10368
void fnord() { int i=42;}
10371
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10372
int status = $lt_dlunknown;
10376
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10377
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10378
/* dlclose (self); */
10386
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10387
(eval $ac_link) 2>&5
10389
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10391
(./conftest; exit; ) >&5 2>/dev/null
10393
case x$lt_status in
10394
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10395
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10396
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10399
# compilation failed
10400
lt_cv_dlopen_self_static=no
10407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10408
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10411
CPPFLAGS="$save_CPPFLAGS"
10412
LDFLAGS="$save_LDFLAGS"
10417
case $lt_cv_dlopen_self in
10418
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10419
*) enable_dlopen_self=unknown ;;
10422
case $lt_cv_dlopen_self_static in
10423
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10424
*) enable_dlopen_self_static=unknown ;;
10446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10447
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10448
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10449
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10450
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10452
$as_echo "yes" >&6; }
10454
# FIXME - insert some real tests, host_os isn't really good enough
10457
if test -n "$STRIP" ; then
10458
striplib="$STRIP -x"
10459
old_striplib="$STRIP -S"
10460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10461
$as_echo "yes" >&6; }
10463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10464
$as_echo "no" >&6; }
10468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469
$as_echo "no" >&6; }
10485
# Report which library types will actually be built
10486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10487
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10489
$as_echo "$can_build_shared" >&6; }
10491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10492
$as_echo_n "checking whether to build shared libraries... " >&6; }
10493
test "$can_build_shared" = "no" && enable_shared=no
10495
# On AIX, shared libraries and static libraries use the same namespace, and
10496
# are all built from PIC.
10499
test "$enable_shared" = yes && enable_static=no
10500
if test -n "$RANLIB"; then
10501
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10502
postinstall_cmds='$RANLIB $lib'
10507
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10508
test "$enable_shared" = yes && enable_static=no
10512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10513
$as_echo "$enable_shared" >&6; }
10515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10516
$as_echo_n "checking whether to build static libraries... " >&6; }
10517
# Make sure either enable_shared or enable_static is yes.
10518
test "$enable_shared" = yes || enable_static=yes
10519
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10520
$as_echo "$enable_static" >&6; }
10527
ac_cpp='$CPP $CPPFLAGS'
10528
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10529
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10530
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546
ac_config_commands="$ac_config_commands libtool"
10551
# Only expand once:
10555
# checks for programs.
10557
ac_cpp='$CXXCPP $CPPFLAGS'
10558
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10559
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10560
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10561
if test -z "$CXX"; then
10562
if test -n "$CCC"; then
10565
if test -n "$ac_tool_prefix"; then
10566
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10568
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10569
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571
$as_echo_n "checking for $ac_word... " >&6; }
10572
if test "${ac_cv_prog_CXX+set}" = set; then :
10573
$as_echo_n "(cached) " >&6
10575
if test -n "$CXX"; then
10576
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10578
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579
for as_dir in $PATH
10582
test -z "$as_dir" && as_dir=.
10583
for ac_exec_ext in '' $ac_executable_extensions; do
10584
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10585
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10586
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595
CXX=$ac_cv_prog_CXX
10596
if test -n "$CXX"; then
10597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10598
$as_echo "$CXX" >&6; }
10600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601
$as_echo "no" >&6; }
10605
test -n "$CXX" && break
10608
if test -z "$CXX"; then
10610
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10612
# Extract the first word of "$ac_prog", so it can be a program name with args.
10613
set dummy $ac_prog; ac_word=$2
10614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615
$as_echo_n "checking for $ac_word... " >&6; }
10616
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10617
$as_echo_n "(cached) " >&6
10619
if test -n "$ac_ct_CXX"; then
10620
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623
for as_dir in $PATH
10626
test -z "$as_dir" && as_dir=.
10627
for ac_exec_ext in '' $ac_executable_extensions; do
10628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629
ac_cv_prog_ac_ct_CXX="$ac_prog"
10630
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10639
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10640
if test -n "$ac_ct_CXX"; then
10641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10642
$as_echo "$ac_ct_CXX" >&6; }
10644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645
$as_echo "no" >&6; }
10649
test -n "$ac_ct_CXX" && break
10652
if test "x$ac_ct_CXX" = x; then
10655
case $cross_compiling:$ac_tool_warned in
10657
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10658
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10659
ac_tool_warned=yes ;;
10667
# Provide some information about the compiler.
10668
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10671
for ac_option in --version -v -V -qversion; do
10672
{ { ac_try="$ac_compiler $ac_option >&5"
10673
case "(($ac_try" in
10674
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675
*) ac_try_echo=$ac_try;;
10677
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10678
$as_echo "$ac_try_echo"; } >&5
10679
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
10681
if test -s conftest.err; then
10683
... rest of stderr output deleted ...
10684
10q' conftest.err >conftest.er1
10685
cat conftest.er1 >&5
10687
rm -f conftest.er1 conftest.err
10688
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10689
test $ac_status = 0; }
10692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10693
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10694
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10695
$as_echo_n "(cached) " >&6
10697
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698
/* end confdefs.h. */
10711
if ac_fn_cxx_try_compile "$LINENO"; then :
10712
ac_compiler_gnu=yes
10716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10717
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10721
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10722
if test $ac_compiler_gnu = yes; then
10727
ac_test_CXXFLAGS=${CXXFLAGS+set}
10728
ac_save_CXXFLAGS=$CXXFLAGS
10729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10730
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10731
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10732
$as_echo_n "(cached) " >&6
10734
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10735
ac_cxx_werror_flag=yes
10736
ac_cv_prog_cxx_g=no
10738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739
/* end confdefs.h. */
10749
if ac_fn_cxx_try_compile "$LINENO"; then :
10750
ac_cv_prog_cxx_g=yes
10753
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754
/* end confdefs.h. */
10764
if ac_fn_cxx_try_compile "$LINENO"; then :
10767
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10769
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770
/* end confdefs.h. */
10780
if ac_fn_cxx_try_compile "$LINENO"; then :
10781
ac_cv_prog_cxx_g=yes
10783
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10791
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10792
if test "$ac_test_CXXFLAGS" = set; then
10793
CXXFLAGS=$ac_save_CXXFLAGS
10794
elif test $ac_cv_prog_cxx_g = yes; then
10795
if test "$GXX" = yes; then
10801
if test "$GXX" = yes; then
10808
ac_cpp='$CPP $CPPFLAGS'
10809
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10810
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10811
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10813
depcc="$CXX" am_compiler_list=
10815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10816
$as_echo_n "checking dependency style of $depcc... " >&6; }
10817
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10818
$as_echo_n "(cached) " >&6
10820
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10821
# We make a subdir and do the tests there. Otherwise we can end up
10822
# making bogus files that we don't know about and never remove. For
10823
# instance it was reported that on HP-UX the gcc test will end up
10824
# making a dummy file named `D' -- because `-MD' means `put the output
10827
# Copy depcomp to subdir because otherwise we won't find it if we're
10828
# using a relative directory.
10829
cp "$am_depcomp" conftest.dir
10831
# We will build objects and dependencies in a subdirectory because
10832
# it helps to detect inapplicable dependency modes. For instance
10833
# both Tru64's cc and ICC support -MD to output dependencies as a
10834
# side effect of compilation, but ICC will put the dependencies in
10835
# the current directory while Tru64 will put them in the object
10839
am_cv_CXX_dependencies_compiler_type=none
10840
if test "$am_compiler_list" = ""; then
10841
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10843
am__universal=false
10844
case " $depcc " in #(
10845
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10848
for depmode in $am_compiler_list; do
10849
# Setup a source with many dependencies, because some compilers
10850
# like to wrap large dependency lists on column 80 (with \), and
10851
# we should not choose a depcomp mode which is confused by this.
10853
# We need to recreate these files for each test, as the compiler may
10854
# overwrite some of them when testing with obscure command lines.
10855
# This happens at least with the AIX C compiler.
10857
for i in 1 2 3 4 5 6; do
10858
echo '#include "conftst'$i'.h"' >> sub/conftest.c
10859
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10860
# Solaris 8's {/usr,}/bin/sh.
10861
touch sub/conftst$i.h
10863
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10865
# We check with `-c' and `-o' for the sake of the "dashmstdout"
10866
# mode. It turns out that the SunPro C++ compiler does not properly
10867
# handle `-M -o', and we need to detect this. Also, some Intel
10868
# versions had trouble with output in subdirs
10869
am__obj=sub/conftest.${OBJEXT-o}
10870
am__minus_obj="-o $am__obj"
10873
# This depmode causes a compiler race in universal mode.
10874
test "$am__universal" = false || continue
10877
# after this tag, mechanisms are not by side-effect, so they'll
10878
# only be used when explicitly requested
10879
if test "x$enable_dependency_tracking" = xyes; then
10885
msvisualcpp | msvcmsys)
10886
# This compiler won't grok `-c -o', but also, the minuso test has
10887
# not run yet. These depmodes are late enough in the game, and
10888
# so weak that their functioning should not be impacted.
10889
am__obj=conftest.${OBJEXT-o}
10894
if depmode=$depmode \
10895
source=sub/conftest.c object=$am__obj \
10896
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10897
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10898
>/dev/null 2>conftest.err &&
10899
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10900
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10901
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10902
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10903
# icc doesn't choke on unknown options, it will just issue warnings
10904
# or remarks (even with -Werror). So we grep stderr for any message
10905
# that says an option was ignored or not supported.
10906
# When given -MP, icc 7.0 and 7.1 complain thusly:
10907
# icc: Command line warning: ignoring option '-M'; no argument required
10908
# The diagnosis changed in icc 8.0:
10909
# icc: Command line remark: option '-MP' not supported
10910
if (grep 'ignoring option' conftest.err ||
10911
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10912
am_cv_CXX_dependencies_compiler_type=$depmode
10919
rm -rf conftest.dir
10921
am_cv_CXX_dependencies_compiler_type=none
10925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10926
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10927
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10930
test "x$enable_dependency_tracking" != xno \
10931
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10932
am__fastdepCXX_TRUE=
10933
am__fastdepCXX_FALSE='#'
10935
am__fastdepCXX_TRUE='#'
10936
am__fastdepCXX_FALSE=
10942
ac_cpp='$CXXCPP $CPPFLAGS'
10943
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10944
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10946
if test -z "$CXX"; then
10947
if test -n "$CCC"; then
10950
if test -n "$ac_tool_prefix"; then
10951
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10953
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10954
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10956
$as_echo_n "checking for $ac_word... " >&6; }
10957
if test "${ac_cv_prog_CXX+set}" = set; then :
10958
$as_echo_n "(cached) " >&6
10960
if test -n "$CXX"; then
10961
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964
for as_dir in $PATH
10967
test -z "$as_dir" && as_dir=.
10968
for ac_exec_ext in '' $ac_executable_extensions; do
10969
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10970
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10971
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980
CXX=$ac_cv_prog_CXX
10981
if test -n "$CXX"; then
10982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10983
$as_echo "$CXX" >&6; }
10985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986
$as_echo "no" >&6; }
10990
test -n "$CXX" && break
10993
if test -z "$CXX"; then
10995
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10997
# Extract the first word of "$ac_prog", so it can be a program name with args.
10998
set dummy $ac_prog; ac_word=$2
10999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11000
$as_echo_n "checking for $ac_word... " >&6; }
11001
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11002
$as_echo_n "(cached) " >&6
11004
if test -n "$ac_ct_CXX"; then
11005
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008
for as_dir in $PATH
11011
test -z "$as_dir" && as_dir=.
11012
for ac_exec_ext in '' $ac_executable_extensions; do
11013
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014
ac_cv_prog_ac_ct_CXX="$ac_prog"
11015
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11025
if test -n "$ac_ct_CXX"; then
11026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11027
$as_echo "$ac_ct_CXX" >&6; }
11029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030
$as_echo "no" >&6; }
11034
test -n "$ac_ct_CXX" && break
11037
if test "x$ac_ct_CXX" = x; then
11040
case $cross_compiling:$ac_tool_warned in
11042
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11043
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11044
ac_tool_warned=yes ;;
11052
# Provide some information about the compiler.
11053
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11056
for ac_option in --version -v -V -qversion; do
11057
{ { ac_try="$ac_compiler $ac_option >&5"
11058
case "(($ac_try" in
11059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060
*) ac_try_echo=$ac_try;;
11062
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11063
$as_echo "$ac_try_echo"; } >&5
11064
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11066
if test -s conftest.err; then
11068
... rest of stderr output deleted ...
11069
10q' conftest.err >conftest.er1
11070
cat conftest.er1 >&5
11072
rm -f conftest.er1 conftest.err
11073
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11074
test $ac_status = 0; }
11077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11078
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11079
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11080
$as_echo_n "(cached) " >&6
11082
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083
/* end confdefs.h. */
11096
if ac_fn_cxx_try_compile "$LINENO"; then :
11097
ac_compiler_gnu=yes
11101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11106
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11107
if test $ac_compiler_gnu = yes; then
11112
ac_test_CXXFLAGS=${CXXFLAGS+set}
11113
ac_save_CXXFLAGS=$CXXFLAGS
11114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11115
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11116
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11117
$as_echo_n "(cached) " >&6
11119
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11120
ac_cxx_werror_flag=yes
11121
ac_cv_prog_cxx_g=no
11123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124
/* end confdefs.h. */
11134
if ac_fn_cxx_try_compile "$LINENO"; then :
11135
ac_cv_prog_cxx_g=yes
11138
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139
/* end confdefs.h. */
11149
if ac_fn_cxx_try_compile "$LINENO"; then :
11152
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155
/* end confdefs.h. */
11165
if ac_fn_cxx_try_compile "$LINENO"; then :
11166
ac_cv_prog_cxx_g=yes
11168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11176
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11177
if test "$ac_test_CXXFLAGS" = set; then
11178
CXXFLAGS=$ac_save_CXXFLAGS
11179
elif test $ac_cv_prog_cxx_g = yes; then
11180
if test "$GXX" = yes; then
11186
if test "$GXX" = yes; then
11193
ac_cpp='$CPP $CPPFLAGS'
11194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11198
depcc="$CXX" am_compiler_list=
11200
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11201
$as_echo_n "checking dependency style of $depcc... " >&6; }
11202
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11203
$as_echo_n "(cached) " >&6
11205
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11206
# We make a subdir and do the tests there. Otherwise we can end up
11207
# making bogus files that we don't know about and never remove. For
11208
# instance it was reported that on HP-UX the gcc test will end up
11209
# making a dummy file named `D' -- because `-MD' means `put the output
11212
# Copy depcomp to subdir because otherwise we won't find it if we're
11213
# using a relative directory.
11214
cp "$am_depcomp" conftest.dir
11216
# We will build objects and dependencies in a subdirectory because
11217
# it helps to detect inapplicable dependency modes. For instance
11218
# both Tru64's cc and ICC support -MD to output dependencies as a
11219
# side effect of compilation, but ICC will put the dependencies in
11220
# the current directory while Tru64 will put them in the object
11224
am_cv_CXX_dependencies_compiler_type=none
11225
if test "$am_compiler_list" = ""; then
11226
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11228
am__universal=false
11229
case " $depcc " in #(
11230
*\ -arch\ *\ -arch\ *) am__universal=true ;;
11233
for depmode in $am_compiler_list; do
11234
# Setup a source with many dependencies, because some compilers
11235
# like to wrap large dependency lists on column 80 (with \), and
11236
# we should not choose a depcomp mode which is confused by this.
11238
# We need to recreate these files for each test, as the compiler may
11239
# overwrite some of them when testing with obscure command lines.
11240
# This happens at least with the AIX C compiler.
11242
for i in 1 2 3 4 5 6; do
11243
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11244
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11245
# Solaris 8's {/usr,}/bin/sh.
11246
touch sub/conftst$i.h
11248
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11250
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11251
# mode. It turns out that the SunPro C++ compiler does not properly
11252
# handle `-M -o', and we need to detect this. Also, some Intel
11253
# versions had trouble with output in subdirs
11254
am__obj=sub/conftest.${OBJEXT-o}
11255
am__minus_obj="-o $am__obj"
11258
# This depmode causes a compiler race in universal mode.
11259
test "$am__universal" = false || continue
11262
# after this tag, mechanisms are not by side-effect, so they'll
11263
# only be used when explicitly requested
11264
if test "x$enable_dependency_tracking" = xyes; then
11270
msvisualcpp | msvcmsys)
11271
# This compiler won't grok `-c -o', but also, the minuso test has
11272
# not run yet. These depmodes are late enough in the game, and
11273
# so weak that their functioning should not be impacted.
11274
am__obj=conftest.${OBJEXT-o}
11279
if depmode=$depmode \
11280
source=sub/conftest.c object=$am__obj \
11281
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11282
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11283
>/dev/null 2>conftest.err &&
11284
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11285
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11286
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11287
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11288
# icc doesn't choke on unknown options, it will just issue warnings
11289
# or remarks (even with -Werror). So we grep stderr for any message
11290
# that says an option was ignored or not supported.
11291
# When given -MP, icc 7.0 and 7.1 complain thusly:
11292
# icc: Command line warning: ignoring option '-M'; no argument required
11293
# The diagnosis changed in icc 8.0:
11294
# icc: Command line remark: option '-MP' not supported
11295
if (grep 'ignoring option' conftest.err ||
11296
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11297
am_cv_CXX_dependencies_compiler_type=$depmode
11304
rm -rf conftest.dir
11306
am_cv_CXX_dependencies_compiler_type=none
11310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11311
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11312
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11315
test "x$enable_dependency_tracking" != xno \
11316
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11317
am__fastdepCXX_TRUE=
11318
am__fastdepCXX_FALSE='#'
11320
am__fastdepCXX_TRUE='#'
11321
am__fastdepCXX_FALSE=
11325
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11326
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11327
(test "X$CXX" != "Xg++"))) ; then
11329
ac_cpp='$CXXCPP $CPPFLAGS'
11330
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11334
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11335
if test -z "$CXXCPP"; then
11336
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11337
$as_echo_n "(cached) " >&6
11339
# Double quotes because CXXCPP needs to be expanded
11340
for CXXCPP in "$CXX -E" "/lib/cpp"
11342
ac_preproc_ok=false
11343
for ac_cxx_preproc_warn_flag in '' yes
11345
# Use a header file that comes with gcc, so configuring glibc
11346
# with a fresh cross-compiler works.
11347
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11348
# <limits.h> exists even on freestanding compilers.
11349
# On the NeXT, cc -E runs the code through the compiler's parser,
11350
# not just through cpp. "Syntax error" is here to catch this case.
11351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352
/* end confdefs.h. */
11354
# include <limits.h>
11356
# include <assert.h>
11360
if ac_fn_cxx_try_cpp "$LINENO"; then :
11363
# Broken: fails on valid input.
11366
rm -f conftest.err conftest.$ac_ext
11368
# OK, works on sane cases. Now check whether nonexistent headers
11369
# can be detected and how.
11370
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371
/* end confdefs.h. */
11372
#include <ac_nonexistent.h>
11374
if ac_fn_cxx_try_cpp "$LINENO"; then :
11375
# Broken: success on invalid input.
11378
# Passes both tests.
11382
rm -f conftest.err conftest.$ac_ext
11385
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11386
rm -f conftest.err conftest.$ac_ext
11387
if $ac_preproc_ok; then :
11392
ac_cv_prog_CXXCPP=$CXXCPP
11395
CXXCPP=$ac_cv_prog_CXXCPP
11397
ac_cv_prog_CXXCPP=$CXXCPP
11399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11400
$as_echo "$CXXCPP" >&6; }
11401
ac_preproc_ok=false
11402
for ac_cxx_preproc_warn_flag in '' yes
11404
# Use a header file that comes with gcc, so configuring glibc
11405
# with a fresh cross-compiler works.
11406
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407
# <limits.h> exists even on freestanding compilers.
11408
# On the NeXT, cc -E runs the code through the compiler's parser,
11409
# not just through cpp. "Syntax error" is here to catch this case.
11410
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411
/* end confdefs.h. */
11413
# include <limits.h>
11415
# include <assert.h>
11419
if ac_fn_cxx_try_cpp "$LINENO"; then :
11422
# Broken: fails on valid input.
11425
rm -f conftest.err conftest.$ac_ext
11427
# OK, works on sane cases. Now check whether nonexistent headers
11428
# can be detected and how.
11429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430
/* end confdefs.h. */
11431
#include <ac_nonexistent.h>
11433
if ac_fn_cxx_try_cpp "$LINENO"; then :
11434
# Broken: success on invalid input.
11437
# Passes both tests.
11441
rm -f conftest.err conftest.$ac_ext
11444
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11445
rm -f conftest.err conftest.$ac_ext
11446
if $ac_preproc_ok; then :
11449
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11450
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11451
_lt_caught_CXX_error=yes; }
11455
ac_cpp='$CPP $CPPFLAGS'
11456
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11461
_lt_caught_CXX_error=yes
11468
ac_cpp='$CXXCPP $CPPFLAGS'
11469
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11473
archive_cmds_need_lc_CXX=no
11474
allow_undefined_flag_CXX=
11475
always_export_symbols_CXX=no
11476
archive_expsym_cmds_CXX=
11477
compiler_needs_object_CXX=no
11478
export_dynamic_flag_spec_CXX=
11479
hardcode_direct_CXX=no
11480
hardcode_direct_absolute_CXX=no
11481
hardcode_libdir_flag_spec_CXX=
11482
hardcode_libdir_flag_spec_ld_CXX=
11483
hardcode_libdir_separator_CXX=
11484
hardcode_minus_L_CXX=no
11485
hardcode_shlibpath_var_CXX=unsupported
11486
hardcode_automatic_CXX=no
11487
inherit_rpath_CXX=no
11489
module_expsym_cmds_CXX=
11490
link_all_deplibs_CXX=unknown
11491
old_archive_cmds_CXX=$old_archive_cmds
11492
no_undefined_flag_CXX=
11493
whole_archive_flag_spec_CXX=
11494
enable_shared_with_static_runtimes_CXX=no
11496
# Source file extension for C++ test sources.
11499
# Object file extension for compiled C++ test sources.
11503
# No sense in running all these tests if we already determined that
11504
# the CXX compiler isn't working. Some variables (like enable_shared)
11505
# are currently assumed to apply to all compilers on this platform,
11506
# and will be corrupted by setting them based on a non-working compiler.
11507
if test "$_lt_caught_CXX_error" != yes; then
11508
# Code to be used in simple compile tests
11509
lt_simple_compile_test_code="int some_variable = 0;"
11511
# Code to be used in simple link tests
11512
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11514
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11521
# If no C compiler was specified, use CC.
11524
# If no C compiler flags were specified, use CFLAGS.
11525
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11527
# Allow CC to be a program name with arguments.
11531
# save warnings/boilerplate of simple test code
11532
ac_outfile=conftest.$ac_objext
11533
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11534
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11535
_lt_compiler_boilerplate=`cat conftest.err`
11538
ac_outfile=conftest.$ac_objext
11539
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11540
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11541
_lt_linker_boilerplate=`cat conftest.err`
11545
# Allow CC to be a program name with arguments.
11550
lt_save_with_gnu_ld=$with_gnu_ld
11551
lt_save_path_LD=$lt_cv_path_LD
11552
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11553
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11555
$as_unset lt_cv_prog_gnu_ld
11557
if test -n "${lt_cv_path_LDCXX+set}"; then
11558
lt_cv_path_LD=$lt_cv_path_LDCXX
11560
$as_unset lt_cv_path_LD
11562
test -z "${LDCXX+set}" || LD=$LDCXX
11566
for cc_temp in $compiler""; do
11568
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11569
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11574
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11577
if test -n "$compiler"; then
11578
# We don't want -fno-exception when compiling C++ code, so set the
11579
# no_builtin_flag separately
11580
if test "$GXX" = yes; then
11581
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11583
lt_prog_compiler_no_builtin_flag_CXX=
11586
if test "$GXX" = yes; then
11587
# Set up default GNU C++ configuration
11591
# Check whether --with-gnu-ld was given.
11592
if test "${with_gnu_ld+set}" = set; then :
11593
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11599
if test "$GCC" = yes; then
11600
# Check if gcc -print-prog-name=ld gives a path.
11601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11602
$as_echo_n "checking for ld used by $CC... " >&6; }
11605
# gcc leaves a trailing carriage return which upsets mingw
11606
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11608
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11611
# Accept absolute paths.
11613
re_direlt='/[^/][^/]*/\.\./'
11614
# Canonicalize the pathname of ld
11615
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11616
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11617
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11619
test -z "$LD" && LD="$ac_prog"
11622
# If it fails, then pretend we aren't using GCC.
11626
# If it is relative, then search for the first ld in PATH.
11627
with_gnu_ld=unknown
11630
elif test "$with_gnu_ld" = yes; then
11631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11632
$as_echo_n "checking for GNU ld... " >&6; }
11634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11635
$as_echo_n "checking for non-GNU ld... " >&6; }
11637
if test "${lt_cv_path_LD+set}" = set; then :
11638
$as_echo_n "(cached) " >&6
11640
if test -z "$LD"; then
11641
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11642
for ac_dir in $PATH; do
11644
test -z "$ac_dir" && ac_dir=.
11645
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11646
lt_cv_path_LD="$ac_dir/$ac_prog"
11647
# Check to see if the program is GNU ld. I'd rather use --version,
11648
# but apparently some variants of GNU ld only accept -v.
11649
# Break only if it was the GNU/non-GNU ld that we prefer.
11650
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11651
*GNU* | *'with BFD'*)
11652
test "$with_gnu_ld" != no && break
11655
test "$with_gnu_ld" != yes && break
11662
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11666
LD="$lt_cv_path_LD"
11667
if test -n "$LD"; then
11668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11669
$as_echo "$LD" >&6; }
11671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672
$as_echo "no" >&6; }
11674
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11676
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11677
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11678
$as_echo_n "(cached) " >&6
11680
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11681
case `$LD -v 2>&1 </dev/null` in
11682
*GNU* | *'with BFD'*)
11683
lt_cv_prog_gnu_ld=yes
11686
lt_cv_prog_gnu_ld=no
11690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11691
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11692
with_gnu_ld=$lt_cv_prog_gnu_ld
11700
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11701
# archiving commands below assume that GNU ld is being used.
11702
if test "$with_gnu_ld" = yes; then
11703
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11704
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11706
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11707
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11709
# If archive_cmds runs LD, not CC, wlarc should be empty
11710
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11711
# investigate it a little bit more. (MM)
11714
# ancient GNU ld didn't support --whole-archive et. al.
11715
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11716
$GREP 'no-whole-archive' > /dev/null; then
11717
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11719
whole_archive_flag_spec_CXX=
11725
# A generic and very simple default shared library creation
11726
# command for GNU C++ for the case where it uses the native
11727
# linker, instead of GNU ld. If possible, this setting should
11728
# overridden to take advantage of the native linker features on
11729
# the platform it is being used on.
11730
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11733
# Commands to make compiler produce verbose output that lists
11734
# what "hidden" libraries, object files and flags are used when
11735
# linking a shared library.
11736
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11744
# PORTME: fill in a description of your system's C++ link characteristics
11745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11746
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11750
# FIXME: insert proper C++ library support
11754
if test "$host_cpu" = ia64; then
11755
# On IA64, the linker does run time linking by default, so we don't
11756
# have to do anything special.
11757
aix_use_runtimelinking=no
11758
exp_sym_flag='-Bexport'
11761
aix_use_runtimelinking=no
11763
# Test if we are trying to use run time linking or normal
11764
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11765
# need to do runtime linking.
11766
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11767
for ld_flag in $LDFLAGS; do
11770
aix_use_runtimelinking=yes
11778
exp_sym_flag='-bexport'
11779
no_entry_flag='-bnoentry'
11782
# When large executables or shared objects are built, AIX ld can
11783
# have problems creating the table of contents. If linking a library
11784
# or program results in "error TOC overflow" add -mminimal-toc to
11785
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11786
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11788
archive_cmds_CXX=''
11789
hardcode_direct_CXX=yes
11790
hardcode_direct_absolute_CXX=yes
11791
hardcode_libdir_separator_CXX=':'
11792
link_all_deplibs_CXX=yes
11793
file_list_spec_CXX='${wl}-f,'
11795
if test "$GXX" = yes; then
11796
case $host_os in aix4.[012]|aix4.[012].*)
11797
# We only want to do this on AIX 4.2 and lower, the check
11798
# below for broken collect2 doesn't work under 4.3+
11799
collect2name=`${CC} -print-prog-name=collect2`
11800
if test -f "$collect2name" &&
11801
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11803
# We have reworked collect2
11806
# We have old collect2
11807
hardcode_direct_CXX=unsupported
11808
# It fails to find uninstalled libraries when the uninstalled
11809
# path is not listed in the libpath. Setting hardcode_minus_L
11810
# to unsupported forces relinking
11811
hardcode_minus_L_CXX=yes
11812
hardcode_libdir_flag_spec_CXX='-L$libdir'
11813
hardcode_libdir_separator_CXX=
11816
shared_flag='-shared'
11817
if test "$aix_use_runtimelinking" = yes; then
11818
shared_flag="$shared_flag "'${wl}-G'
11822
if test "$host_cpu" = ia64; then
11823
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11824
# chokes on -Wl,-G. The following line is correct:
11827
if test "$aix_use_runtimelinking" = yes; then
11828
shared_flag='${wl}-G'
11830
shared_flag='${wl}-bM:SRE'
11835
export_dynamic_flag_spec_CXX='${wl}-bexpall'
11836
# It seems that -bexpall does not export symbols beginning with
11837
# underscore (_), so it is better to generate a list of symbols to
11839
always_export_symbols_CXX=yes
11840
if test "$aix_use_runtimelinking" = yes; then
11841
# Warning - without using the other runtime loading flags (-brtl),
11842
# -berok will link without error, but may produce a broken library.
11843
allow_undefined_flag_CXX='-berok'
11844
# Determine the default libpath from the value encoded in an empty
11846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847
/* end confdefs.h. */
11857
if ac_fn_cxx_try_link "$LINENO"; then :
11859
lt_aix_libpath_sed='
11860
/Import File Strings/,/^$/ {
11866
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11867
# Check for a 64-bit object if we didn't find anything.
11868
if test -z "$aix_libpath"; then
11869
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11872
rm -f core conftest.err conftest.$ac_objext \
11873
conftest$ac_exeext conftest.$ac_ext
11874
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11876
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11878
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11880
if test "$host_cpu" = ia64; then
11881
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11882
allow_undefined_flag_CXX="-z nodefs"
11883
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"
11885
# Determine the default libpath from the value encoded in an
11886
# empty executable.
11887
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888
/* end confdefs.h. */
11898
if ac_fn_cxx_try_link "$LINENO"; then :
11900
lt_aix_libpath_sed='
11901
/Import File Strings/,/^$/ {
11907
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11908
# Check for a 64-bit object if we didn't find anything.
11909
if test -z "$aix_libpath"; then
11910
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11913
rm -f core conftest.err conftest.$ac_objext \
11914
conftest$ac_exeext conftest.$ac_ext
11915
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11917
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11918
# Warning - without using the other run time loading flags,
11919
# -berok will link without error, but may produce a broken library.
11920
no_undefined_flag_CXX=' ${wl}-bernotok'
11921
allow_undefined_flag_CXX=' ${wl}-berok'
11922
# Exported symbols can be pulled into shared objects from archives
11923
whole_archive_flag_spec_CXX='$convenience'
11924
archive_cmds_need_lc_CXX=yes
11925
# This is similar to how AIX traditionally builds its shared
11927
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'
11933
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11934
allow_undefined_flag_CXX=unsupported
11935
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11936
# support --undefined. This deserves some investigation. FIXME
11937
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11944
case $cc_basename in
11946
# FIXME: insert proper C++ library support
11952
cygwin* | mingw* | pw32* | cegcc*)
11953
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11954
# as there is no search path for DLLs.
11955
hardcode_libdir_flag_spec_CXX='-L$libdir'
11956
allow_undefined_flag_CXX=unsupported
11957
always_export_symbols_CXX=no
11958
enable_shared_with_static_runtimes_CXX=yes
11960
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11961
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'
11962
# If the export-symbols file already is a .def file (1st line
11963
# is EXPORTS), use it as is; otherwise, prepend...
11964
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11965
cp $export_symbols $output_objdir/$soname.def;
11967
echo EXPORTS > $output_objdir/$soname.def;
11968
cat $export_symbols >> $output_objdir/$soname.def;
11970
$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'
11975
darwin* | rhapsody*)
11978
archive_cmds_need_lc_CXX=no
11979
hardcode_direct_CXX=no
11980
hardcode_automatic_CXX=yes
11981
hardcode_shlibpath_var_CXX=unsupported
11982
whole_archive_flag_spec_CXX=''
11983
link_all_deplibs_CXX=yes
11984
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11985
case $cc_basename in
11986
ifort*) _lt_dar_can_shared=yes ;;
11987
*) _lt_dar_can_shared=$GCC ;;
11989
if test "$_lt_dar_can_shared" = "yes"; then
11990
output_verbose_link_cmd=echo
11991
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}"
11992
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11993
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}"
11994
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}"
11995
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11996
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}"
11997
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}"
12007
case $cc_basename in
12009
# FIXME: insert proper C++ library support
12013
# Green Hills C++ Compiler
12014
# FIXME: insert proper C++ library support
12018
# FIXME: insert proper C++ library support
12025
# C++ shared libraries reported to be fairly broken before
12031
archive_cmds_need_lc_CXX=no
12034
freebsd* | dragonfly*)
12035
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12044
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12045
hardcode_libdir_separator_CXX=:
12046
export_dynamic_flag_spec_CXX='${wl}-E'
12047
hardcode_direct_CXX=yes
12048
hardcode_minus_L_CXX=yes # Not in the search PATH,
12049
# but as the default
12050
# location of the library.
12052
case $cc_basename in
12054
# FIXME: insert proper C++ library support
12058
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'
12059
# Commands to make compiler produce verbose output that lists
12060
# what "hidden" libraries, object files and flags are used when
12061
# linking a shared library.
12063
# There doesn't appear to be a way to prevent this compiler from
12064
# explicitly linking system object files so we need to strip them
12065
# from the output so that they don't get included in the library
12067
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; $ECHO "X$list" | $Xsed'
12070
if test "$GXX" = yes; then
12071
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12073
# FIXME: insert proper C++ library support
12081
if test $with_gnu_ld = no; then
12082
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12083
hardcode_libdir_separator_CXX=:
12089
export_dynamic_flag_spec_CXX='${wl}-E'
12095
hardcode_direct_CXX=no
12096
hardcode_shlibpath_var_CXX=no
12099
hardcode_direct_CXX=yes
12100
hardcode_direct_absolute_CXX=yes
12101
hardcode_minus_L_CXX=yes # Not in the search PATH,
12102
# but as the default
12103
# location of the library.
12107
case $cc_basename in
12109
# FIXME: insert proper C++ library support
12115
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12118
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12121
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12124
# Commands to make compiler produce verbose output that lists
12125
# what "hidden" libraries, object files and flags are used when
12126
# linking a shared library.
12128
# There doesn't appear to be a way to prevent this compiler from
12129
# explicitly linking system object files so we need to strip them
12130
# from the output so that they don't get included in the library
12132
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12135
if test "$GXX" = yes; then
12136
if test $with_gnu_ld = no; then
12139
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12142
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12145
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12150
# FIXME: insert proper C++ library support
12158
hardcode_direct_CXX=no
12159
hardcode_shlibpath_var_CXX=no
12160
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12161
export_dynamic_flag_spec_CXX='${wl}-E'
12162
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12163
# Instead, shared libraries are loaded at an image base (0x10000000 by
12164
# default) and relocated if they conflict, which is a slow very memory
12165
# consuming and fragmenting process. To avoid this, we pick a random,
12166
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12167
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12168
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'
12169
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'
12172
case $cc_basename in
12175
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12177
# Archives containing C++ object files must be created using
12178
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12179
# necessary to make sure instantiated templates are included
12181
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12184
if test "$GXX" = yes; then
12185
if test "$with_gnu_ld" = no; then
12186
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12188
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12191
link_all_deplibs_CXX=yes
12194
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12195
hardcode_libdir_separator_CXX=:
12196
inherit_rpath_CXX=yes
12199
linux* | k*bsd*-gnu)
12200
case $cc_basename in
12202
# Kuck and Associates, Inc. (KAI) C++ Compiler
12204
# KCC will only create a shared library if the output file
12205
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12206
# to its proper name (with version) after linking.
12207
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'
12208
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'
12209
# Commands to make compiler produce verbose output that lists
12210
# what "hidden" libraries, object files and flags are used when
12211
# linking a shared library.
12213
# There doesn't appear to be a way to prevent this compiler from
12214
# explicitly linking system object files so we need to strip them
12215
# from the output so that they don't get included in the library
12217
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12219
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12220
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12222
# Archives containing C++ object files must be created using
12223
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12224
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12229
# version 8.0 and above of icpc choke on multiply defined symbols
12230
# if we add $predep_objects and $postdep_objects, however 7.1 and
12231
# earlier do not add the objects themselves.
12232
case `$CC -V 2>&1` in
12234
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12235
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'
12237
*) # Version 8.0 or newer
12240
ia64*) tmp_idyn=' -i_dynamic';;
12242
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243
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'
12246
archive_cmds_need_lc_CXX=no
12247
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12248
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12249
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12252
# Portland Group C++ compiler
12254
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12255
prelink_cmds_CXX='tpldir=Template.dir~
12257
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12258
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12259
old_archive_cmds_CXX='tpldir=Template.dir~
12261
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12262
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12264
archive_cmds_CXX='tpldir=Template.dir~
12266
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12267
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12268
archive_expsym_cmds_CXX='tpldir=Template.dir~
12270
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12271
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12273
*) # Version 6 will use weak symbols
12274
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12275
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'
12279
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12280
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12281
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12285
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286
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'
12288
runpath_var=LD_RUN_PATH
12289
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12290
hardcode_libdir_separator_CXX=:
12292
# Commands to make compiler produce verbose output that lists
12293
# what "hidden" libraries, object files and flags are used when
12294
# linking a shared library.
12296
# There doesn't appear to be a way to prevent this compiler from
12297
# explicitly linking system object files so we need to strip them
12298
# from the output so that they don't get included in the library
12300
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12303
# IBM XL 8.0 on PPC, with GNU ld
12304
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12305
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12306
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12307
if test "x$supports_anon_versioning" = xyes; then
12308
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12309
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12310
echo "local: *; };" >> $output_objdir/$libname.ver~
12311
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12315
case `$CC -V 2>&1 | sed 5q` in
12318
no_undefined_flag_CXX=' -zdefs'
12319
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12320
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'
12321
hardcode_libdir_flag_spec_CXX='-R$libdir'
12322
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12323
compiler_needs_object_CXX=yes
12325
# Not sure whether something based on
12326
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12328
output_verbose_link_cmd='echo'
12330
# Archives containing C++ object files must be created using
12331
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12332
# necessary to make sure instantiated templates are included
12334
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12342
# FIXME: insert proper C++ library support
12347
# FIXME: insert proper C++ library support
12352
case $cc_basename in
12354
# FIXME: insert proper C++ library support
12358
# FIXME: insert proper C++ library support
12365
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12366
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12368
hardcode_libdir_flag_spec_CXX='-R$libdir'
12369
hardcode_direct_CXX=yes
12370
hardcode_shlibpath_var_CXX=no
12372
# Workaround some broken pre-1.5 toolchains
12373
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12381
# C++ shared libraries are fairly broken
12386
if test -f /usr/libexec/ld.so; then
12387
hardcode_direct_CXX=yes
12388
hardcode_shlibpath_var_CXX=no
12389
hardcode_direct_absolute_CXX=yes
12390
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12391
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12392
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12393
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12394
export_dynamic_flag_spec_CXX='${wl}-E'
12395
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12397
output_verbose_link_cmd=echo
12403
osf3* | osf4* | osf5*)
12404
case $cc_basename in
12406
# Kuck and Associates, Inc. (KAI) C++ Compiler
12408
# KCC will only create a shared library if the output file
12409
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12410
# to its proper name (with version) after linking.
12411
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'
12413
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12414
hardcode_libdir_separator_CXX=:
12416
# Archives containing C++ object files must be created using
12417
# the KAI C++ compiler.
12419
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12420
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12424
# Rational C++ 2.4.1
12425
# FIXME: insert proper C++ library support
12431
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12432
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12433
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12436
allow_undefined_flag_CXX=' -expect_unresolved \*'
12437
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12438
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12439
echo "-hidden">> $lib.exp~
12440
$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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12442
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12446
hardcode_libdir_separator_CXX=:
12448
# Commands to make compiler produce verbose output that lists
12449
# what "hidden" libraries, object files and flags are used when
12450
# linking a shared library.
12452
# There doesn't appear to be a way to prevent this compiler from
12453
# explicitly linking system object files so we need to strip them
12454
# from the output so that they don't get included in the library
12456
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12459
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12460
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12463
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12466
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12470
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12471
hardcode_libdir_separator_CXX=:
12473
# Commands to make compiler produce verbose output that lists
12474
# what "hidden" libraries, object files and flags are used when
12475
# linking a shared library.
12476
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12479
# FIXME: insert proper C++ library support
12487
# FIXME: insert proper C++ library support
12492
case $cc_basename in
12495
# FIXME: insert proper C++ library support
12500
# FIXME: insert proper C++ library support
12504
# FIXME: insert proper C++ library support
12511
case $cc_basename in
12513
# Sun C++ 4.2, 5.x and Centerline C++
12514
archive_cmds_need_lc_CXX=yes
12515
no_undefined_flag_CXX=' -zdefs'
12516
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12517
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12518
$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'
12520
hardcode_libdir_flag_spec_CXX='-R$libdir'
12521
hardcode_shlibpath_var_CXX=no
12523
solaris2.[0-5] | solaris2.[0-5].*) ;;
12525
# The compiler driver will combine and reorder linker options,
12526
# but understands `-z linker_flag'.
12527
# Supported since Solaris 2.6 (maybe 2.5.1?)
12528
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12531
link_all_deplibs_CXX=yes
12533
output_verbose_link_cmd='echo'
12535
# Archives containing C++ object files must be created using
12536
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12537
# necessary to make sure instantiated templates are included
12539
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12542
# Green Hills C++ Compiler
12543
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12545
# The C++ compiler must be used to create the archive.
12546
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12549
# GNU C++ compiler with Solaris linker
12550
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12551
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12552
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12553
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12554
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12555
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12557
# Commands to make compiler produce verbose output that lists
12558
# what "hidden" libraries, object files and flags are used when
12559
# linking a shared library.
12560
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12562
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12564
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12565
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12566
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12568
# Commands to make compiler produce verbose output that lists
12569
# what "hidden" libraries, object files and flags are used when
12570
# linking a shared library.
12571
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12574
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12576
solaris2.[0-5] | solaris2.[0-5].*) ;;
12578
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12586
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12587
no_undefined_flag_CXX='${wl}-z,text'
12588
archive_cmds_need_lc_CXX=no
12589
hardcode_shlibpath_var_CXX=no
12590
runpath_var='LD_RUN_PATH'
12592
case $cc_basename in
12594
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12595
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12599
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12604
sysv5* | sco3.2v5* | sco5v6*)
12605
# Note: We can NOT use -z defs as we might desire, because we do not
12606
# link with -lc, and that would cause any symbols used from libc to
12607
# always be unresolved, which means just about no library would
12608
# ever link correctly. If we're not using GNU ld we use -z text
12609
# though, which does catch some bad symbols but isn't as heavy-handed
12611
no_undefined_flag_CXX='${wl}-z,text'
12612
allow_undefined_flag_CXX='${wl}-z,nodefs'
12613
archive_cmds_need_lc_CXX=no
12614
hardcode_shlibpath_var_CXX=no
12615
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12616
hardcode_libdir_separator_CXX=':'
12617
link_all_deplibs_CXX=yes
12618
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12619
runpath_var='LD_RUN_PATH'
12621
case $cc_basename in
12623
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12624
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12627
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12628
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12634
case $cc_basename in
12636
# NonStop-UX NCC 3.20
12637
# FIXME: insert proper C++ library support
12641
# FIXME: insert proper C++ library support
12648
# FIXME: insert proper C++ library support
12653
# FIXME: insert proper C++ library support
12658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12659
$as_echo "$ld_shlibs_CXX" >&6; }
12660
test "$ld_shlibs_CXX" = no && can_build_shared=no
12666
## There is no encapsulation within the following macros, do not change
12667
## the running order or otherwise move them around unless you know exactly
12668
## what you are doing...
12669
# Dependencies to place before and after the object being linked:
12670
predep_objects_CXX=
12671
postdep_objects_CXX=
12674
compiler_lib_search_path_CXX=
12676
cat > conftest.$ac_ext <<_LT_EOF
12680
Foo (void) { a = 0; }
12686
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12687
(eval $ac_compile) 2>&5
12689
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690
test $ac_status = 0; }; then
12691
# Parse the compiler output and extract the necessary
12692
# objects, libraries and library flags.
12694
# Sentinel used to keep track of whether or not we are before
12695
# the conftest object file.
12696
pre_test_object_deps_done=no
12698
for p in `eval "$output_verbose_link_cmd"`; do
12702
# Some compilers place space between "-{L,R}" and the path.
12703
# Remove the space.
12704
if test $p = "-L" ||
12705
test $p = "-R"; then
12712
if test "$pre_test_object_deps_done" = no; then
12715
# Internal compiler library paths should come after those
12716
# provided the user. The postdeps already come after the
12717
# user supplied libs so there is no need to process them.
12718
if test -z "$compiler_lib_search_path_CXX"; then
12719
compiler_lib_search_path_CXX="${prev}${p}"
12721
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12724
# The "-l" case would never come before the object being
12725
# linked, so don't bother handling this case.
12728
if test -z "$postdeps_CXX"; then
12729
postdeps_CXX="${prev}${p}"
12731
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12737
# This assumes that the test object file only shows up
12738
# once in the compiler output.
12739
if test "$p" = "conftest.$objext"; then
12740
pre_test_object_deps_done=yes
12744
if test "$pre_test_object_deps_done" = no; then
12745
if test -z "$predep_objects_CXX"; then
12746
predep_objects_CXX="$p"
12748
predep_objects_CXX="$predep_objects_CXX $p"
12751
if test -z "$postdep_objects_CXX"; then
12752
postdep_objects_CXX="$p"
12754
postdep_objects_CXX="$postdep_objects_CXX $p"
12759
*) ;; # Ignore the rest.
12767
echo "libtool.m4: error: problem compiling CXX test program"
12770
$RM -f confest.$objext
12772
# PORTME: override above test on systems where it is broken
12775
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12776
# hack all around it, let's just trust "g++" to DTRT.
12777
predep_objects_CXX=
12778
postdep_objects_CXX=
12783
case `$CC -V 2>&1 | sed 5q` in
12787
# The more standards-conforming stlport4 library is
12788
# incompatible with the Cstd library. Avoid specifying
12789
# it if it's in CXXFLAGS. Ignore libCrun as
12790
# -library=stlport4 depends on it.
12791
case " $CXX $CXXFLAGS " in
12792
*" -library=stlport4 "*)
12793
solaris_use_stlport4=yes
12797
if test "$solaris_use_stlport4" != yes; then
12798
postdeps_CXX='-library=Cstd -library=Crun'
12805
case $cc_basename in
12807
# The more standards-conforming stlport4 library is
12808
# incompatible with the Cstd library. Avoid specifying
12809
# it if it's in CXXFLAGS. Ignore libCrun as
12810
# -library=stlport4 depends on it.
12811
case " $CXX $CXXFLAGS " in
12812
*" -library=stlport4 "*)
12813
solaris_use_stlport4=yes
12817
# Adding this requires a known-good setup of shared libraries for
12818
# Sun compiler versions before 5.6, else PIC objects from an old
12819
# archive will be linked into the output, leading to subtle bugs.
12820
if test "$solaris_use_stlport4" != yes; then
12821
postdeps_CXX='-library=Cstd -library=Crun'
12829
case " $postdeps_CXX " in
12830
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12832
compiler_lib_search_dirs_CXX=
12833
if test -n "${compiler_lib_search_path_CXX}"; then
12834
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12867
lt_prog_compiler_wl_CXX=
12868
lt_prog_compiler_pic_CXX=
12869
lt_prog_compiler_static_CXX=
12871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12872
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12874
# C++ specific cases for pic, static, wl, etc.
12875
if test "$GXX" = yes; then
12876
lt_prog_compiler_wl_CXX='-Wl,'
12877
lt_prog_compiler_static_CXX='-static'
12881
# All AIX code is PIC.
12882
if test "$host_cpu" = ia64; then
12883
# AIX 5 now supports IA64 processor
12884
lt_prog_compiler_static_CXX='-Bstatic'
12891
# see comment about AmigaOS4 .so support
12892
lt_prog_compiler_pic_CXX='-fPIC'
12895
# FIXME: we need at least 68020 code to build shared libraries, but
12896
# adding the `-m68020' flag to GCC prevents building anything better,
12898
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12903
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12904
# PIC is the default for these OSes.
12906
mingw* | cygwin* | os2* | pw32* | cegcc*)
12907
# This hack is so that the source file can tell whether it is being
12908
# built for inclusion in a dll (and should export symbols for example).
12909
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12910
# (--disable-auto-import) libraries
12911
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12913
darwin* | rhapsody*)
12914
# PIC is the default on this platform
12915
# Common symbols not allowed in MH_DYLIB files
12916
lt_prog_compiler_pic_CXX='-fno-common'
12919
# DJGPP does not support shared libraries at all
12920
lt_prog_compiler_pic_CXX=
12923
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12924
# Instead, we relocate shared libraries at runtime.
12927
if test -d /usr/nec; then
12928
lt_prog_compiler_pic_CXX=-Kconform_pic
12932
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12933
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12934
# sets the default TLS model and affects inlining.
12939
lt_prog_compiler_pic_CXX='-fPIC'
12944
# QNX uses GNU C++, but need to define -shared option too, otherwise
12945
# it will coredump.
12946
lt_prog_compiler_pic_CXX='-fPIC -shared'
12949
lt_prog_compiler_pic_CXX='-fPIC'
12955
# All AIX code is PIC.
12956
if test "$host_cpu" = ia64; then
12957
# AIX 5 now supports IA64 processor
12958
lt_prog_compiler_static_CXX='-Bstatic'
12960
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12964
case $cc_basename in
12966
# Green Hills C++ Compiler
12967
# _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"
12972
case $cc_basename in
12974
lt_prog_compiler_pic_CXX='-KPIC'
12977
# Green Hills C++ Compiler
12978
lt_prog_compiler_pic_CXX='-pic'
12984
freebsd* | dragonfly*)
12985
# FreeBSD uses GNU C++
12987
hpux9* | hpux10* | hpux11*)
12988
case $cc_basename in
12990
lt_prog_compiler_wl_CXX='-Wl,'
12991
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12992
if test "$host_cpu" != ia64; then
12993
lt_prog_compiler_pic_CXX='+Z'
12997
lt_prog_compiler_wl_CXX='-Wl,'
12998
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13004
lt_prog_compiler_pic_CXX='+Z'
13013
# This is c89, which is MS Visual C++ (no shared libs)
13014
# Anyone wants to do a port?
13016
irix5* | irix6* | nonstopux*)
13017
case $cc_basename in
13019
lt_prog_compiler_wl_CXX='-Wl,'
13020
lt_prog_compiler_static_CXX='-non_shared'
13021
# CC pic flag -KPIC is the default.
13027
linux* | k*bsd*-gnu)
13028
case $cc_basename in
13031
lt_prog_compiler_wl_CXX='--backend -Wl,'
13032
lt_prog_compiler_pic_CXX='-fPIC'
13035
# old Intel C++ for x86_64 which still supported -KPIC.
13036
lt_prog_compiler_wl_CXX='-Wl,'
13037
lt_prog_compiler_pic_CXX='-KPIC'
13038
lt_prog_compiler_static_CXX='-static'
13041
# Intel C++, used to be incompatible with GCC.
13042
# ICC 10 doesn't accept -KPIC any more.
13043
lt_prog_compiler_wl_CXX='-Wl,'
13044
lt_prog_compiler_pic_CXX='-fPIC'
13045
lt_prog_compiler_static_CXX='-static'
13048
# Portland Group C++ compiler
13049
lt_prog_compiler_wl_CXX='-Wl,'
13050
lt_prog_compiler_pic_CXX='-fpic'
13051
lt_prog_compiler_static_CXX='-Bstatic'
13055
# Make sure the PIC flag is empty. It appears that all Alpha
13056
# Linux and Compaq Tru64 Unix objects are PIC.
13057
lt_prog_compiler_pic_CXX=
13058
lt_prog_compiler_static_CXX='-non_shared'
13061
# IBM XL 8.0 on PPC
13062
lt_prog_compiler_wl_CXX='-Wl,'
13063
lt_prog_compiler_pic_CXX='-qpic'
13064
lt_prog_compiler_static_CXX='-qstaticlink'
13067
case `$CC -V 2>&1 | sed 5q` in
13070
lt_prog_compiler_pic_CXX='-KPIC'
13071
lt_prog_compiler_static_CXX='-Bstatic'
13072
lt_prog_compiler_wl_CXX='-Qoption ld '
13083
case $cc_basename in
13085
lt_prog_compiler_pic_CXX='-W c,exportall'
13091
netbsd* | netbsdelf*-gnu)
13094
# QNX uses GNU C++, but need to define -shared option too, otherwise
13095
# it will coredump.
13096
lt_prog_compiler_pic_CXX='-fPIC -shared'
13098
osf3* | osf4* | osf5*)
13099
case $cc_basename in
13101
lt_prog_compiler_wl_CXX='--backend -Wl,'
13104
# Rational C++ 2.4.1
13105
lt_prog_compiler_pic_CXX='-pic'
13108
# Digital/Compaq C++
13109
lt_prog_compiler_wl_CXX='-Wl,'
13110
# Make sure the PIC flag is empty. It appears that all Alpha
13111
# Linux and Compaq Tru64 Unix objects are PIC.
13112
lt_prog_compiler_pic_CXX=
13113
lt_prog_compiler_static_CXX='-non_shared'
13122
case $cc_basename in
13124
# Sun C++ 4.2, 5.x and Centerline C++
13125
lt_prog_compiler_pic_CXX='-KPIC'
13126
lt_prog_compiler_static_CXX='-Bstatic'
13127
lt_prog_compiler_wl_CXX='-Qoption ld '
13130
# Green Hills C++ Compiler
13131
lt_prog_compiler_pic_CXX='-PIC'
13138
case $cc_basename in
13141
lt_prog_compiler_pic_CXX='-pic'
13142
lt_prog_compiler_static_CXX='-Bstatic'
13146
lt_prog_compiler_pic_CXX='-pic'
13152
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13153
case $cc_basename in
13155
lt_prog_compiler_wl_CXX='-Wl,'
13156
lt_prog_compiler_pic_CXX='-KPIC'
13157
lt_prog_compiler_static_CXX='-Bstatic'
13162
case $cc_basename in
13164
# NonStop-UX NCC 3.20
13165
lt_prog_compiler_pic_CXX='-KPIC'
13174
lt_prog_compiler_can_build_shared_CXX=no
13180
# For platforms which do not support PIC, -DPIC is meaningless:
13182
lt_prog_compiler_pic_CXX=
13185
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13189
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13194
# Check to make sure the PIC flag actually works.
13196
if test -n "$lt_prog_compiler_pic_CXX"; then
13197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13198
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13199
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13200
$as_echo_n "(cached) " >&6
13202
lt_cv_prog_compiler_pic_works_CXX=no
13203
ac_outfile=conftest.$ac_objext
13204
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13205
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13206
# Insert the option either (1) after the last *FLAGS variable, or
13207
# (2) before a word containing "conftest.", or (3) at the end.
13208
# Note that $ac_compile itself does not contain backslashes and begins
13209
# with a dollar sign (not a hyphen), so the echo should work correctly.
13210
# The option is referenced via a variable to avoid confusing sed.
13211
lt_compile=`echo "$ac_compile" | $SED \
13212
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13213
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13214
-e 's:$: $lt_compiler_flag:'`
13215
(eval echo "\"\$as_me:13215: $lt_compile\"" >&5)
13216
(eval "$lt_compile" 2>conftest.err)
13218
cat conftest.err >&5
13219
echo "$as_me:13219: \$? = $ac_status" >&5
13220
if (exit $ac_status) && test -s "$ac_outfile"; then
13221
# The compiler can only warn and ignore the option if not recognized
13222
# So say no if there are warnings other than the usual output.
13223
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13224
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13225
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13226
lt_cv_prog_compiler_pic_works_CXX=yes
13232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13233
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13235
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13236
case $lt_prog_compiler_pic_CXX in
13238
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13241
lt_prog_compiler_pic_CXX=
13242
lt_prog_compiler_can_build_shared_CXX=no
13250
# Check to make sure the static flag actually works.
13252
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13254
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13255
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13256
$as_echo_n "(cached) " >&6
13258
lt_cv_prog_compiler_static_works_CXX=no
13259
save_LDFLAGS="$LDFLAGS"
13260
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13261
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13262
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13263
# The linker can only warn and ignore the option if not recognized
13264
# So say no if there are warnings
13265
if test -s conftest.err; then
13266
# Append any errors to the config.log.
13267
cat conftest.err 1>&5
13268
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13269
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13270
if diff conftest.exp conftest.er2 >/dev/null; then
13271
lt_cv_prog_compiler_static_works_CXX=yes
13274
lt_cv_prog_compiler_static_works_CXX=yes
13278
LDFLAGS="$save_LDFLAGS"
13281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13282
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13284
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13287
lt_prog_compiler_static_CXX=
13293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13294
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13295
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13296
$as_echo_n "(cached) " >&6
13298
lt_cv_prog_compiler_c_o_CXX=no
13299
$RM -r conftest 2>/dev/null
13303
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13305
lt_compiler_flag="-o out/conftest2.$ac_objext"
13306
# Insert the option either (1) after the last *FLAGS variable, or
13307
# (2) before a word containing "conftest.", or (3) at the end.
13308
# Note that $ac_compile itself does not contain backslashes and begins
13309
# with a dollar sign (not a hyphen), so the echo should work correctly.
13310
lt_compile=`echo "$ac_compile" | $SED \
13311
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13312
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13313
-e 's:$: $lt_compiler_flag:'`
13314
(eval echo "\"\$as_me:13314: $lt_compile\"" >&5)
13315
(eval "$lt_compile" 2>out/conftest.err)
13317
cat out/conftest.err >&5
13318
echo "$as_me:13318: \$? = $ac_status" >&5
13319
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13321
# The compiler can only warn and ignore the option if not recognized
13322
# So say no if there are warnings
13323
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13324
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13325
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13326
lt_cv_prog_compiler_c_o_CXX=yes
13331
# SGI C++ compiler will create directory out/ii_files/ for
13332
# template instantiation
13333
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13334
$RM out/* && rmdir out
13340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13341
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13346
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13347
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13348
$as_echo_n "(cached) " >&6
13350
lt_cv_prog_compiler_c_o_CXX=no
13351
$RM -r conftest 2>/dev/null
13355
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13357
lt_compiler_flag="-o out/conftest2.$ac_objext"
13358
# Insert the option either (1) after the last *FLAGS variable, or
13359
# (2) before a word containing "conftest.", or (3) at the end.
13360
# Note that $ac_compile itself does not contain backslashes and begins
13361
# with a dollar sign (not a hyphen), so the echo should work correctly.
13362
lt_compile=`echo "$ac_compile" | $SED \
13363
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13364
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13365
-e 's:$: $lt_compiler_flag:'`
13366
(eval echo "\"\$as_me:13366: $lt_compile\"" >&5)
13367
(eval "$lt_compile" 2>out/conftest.err)
13369
cat out/conftest.err >&5
13370
echo "$as_me:13370: \$? = $ac_status" >&5
13371
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13373
# The compiler can only warn and ignore the option if not recognized
13374
# So say no if there are warnings
13375
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13376
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13377
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13378
lt_cv_prog_compiler_c_o_CXX=yes
13383
# SGI C++ compiler will create directory out/ii_files/ for
13384
# template instantiation
13385
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13386
$RM out/* && rmdir out
13392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13393
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13398
hard_links="nottested"
13399
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13400
# do not overwrite the value of need_locks provided by the user
13401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13402
$as_echo_n "checking if we can lock with hard links... " >&6; }
13405
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13407
ln conftest.a conftest.b 2>&5 || hard_links=no
13408
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13410
$as_echo "$hard_links" >&6; }
13411
if test "$hard_links" = no; then
13412
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13413
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13423
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13425
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13428
# If we're using GNU nm, then we don't want the "-C" option.
13429
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13430
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13431
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13433
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'
13437
export_symbols_cmds_CXX="$ltdll_cmds"
13439
cygwin* | mingw* | cegcc*)
13440
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13442
linux* | k*bsd*-gnu)
13443
link_all_deplibs_CXX=no
13446
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13449
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13452
$as_echo "$ld_shlibs_CXX" >&6; }
13453
test "$ld_shlibs_CXX" = no && can_build_shared=no
13455
with_gnu_ld_CXX=$with_gnu_ld
13463
# Do we need to explicitly link libc?
13465
case "x$archive_cmds_need_lc_CXX" in
13467
# Assume -lc should be added
13468
archive_cmds_need_lc_CXX=yes
13470
if test "$enable_shared" = yes && test "$GCC" = yes; then
13471
case $archive_cmds_CXX in
13473
# FIXME: we may have to deal with multi-command sequences.
13476
# Test whether the compiler implicitly links with -lc since on some
13477
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13478
# to ld, don't add -lc before -lgcc.
13479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13480
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13482
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13484
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13485
(eval $ac_compile) 2>&5
13487
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13488
test $ac_status = 0; } 2>conftest.err; then
13491
libobjs=conftest.$ac_objext
13493
wl=$lt_prog_compiler_wl_CXX
13494
pic_flag=$lt_prog_compiler_pic_CXX
13500
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13501
allow_undefined_flag_CXX=
13502
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13503
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13505
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13506
test $ac_status = 0; }
13508
archive_cmds_need_lc_CXX=no
13510
archive_cmds_need_lc_CXX=yes
13512
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13514
cat conftest.err 1>&5
13517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13518
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13588
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13589
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13591
library_names_spec=
13592
libname_spec='lib$name'
13596
postuninstall_cmds=
13600
shlibpath_overrides_runpath=unknown
13602
dynamic_linker="$host_os ld.so"
13603
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13604
need_lib_prefix=unknown
13605
hardcode_into_libs=no
13607
# when you set need_version to no, make sure it does not cause -set_version
13608
# flags to be left without arguments
13609
need_version=unknown
13614
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13615
shlibpath_var=LIBPATH
13617
# AIX 3 has no versioning support, so we append a major version to the name.
13618
soname_spec='${libname}${release}${shared_ext}$major'
13625
hardcode_into_libs=yes
13626
if test "$host_cpu" = ia64; then
13627
# AIX 5 supports IA64
13628
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13629
shlibpath_var=LD_LIBRARY_PATH
13631
# With GCC up to 2.95.x, collect2 would create an import file
13632
# for dependence libraries. The import file would start with
13633
# the line `#! .'. This would cause the generated library to
13634
# depend on `.', always an invalid library. This was fixed in
13635
# development snapshots of GCC prior to 3.0.
13637
aix4 | aix4.[01] | aix4.[01].*)
13638
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13640
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13643
can_build_shared=no
13647
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13648
# soname into executable. Probably we can add versioning support to
13649
# collect2, so additional links can be useful in future.
13650
if test "$aix_use_runtimelinking" = yes; then
13651
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13652
# instead of lib<name>.a to let people know that these are not
13653
# typical AIX shared libraries.
13654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656
# We preserve .a as extension for shared libraries through AIX4.2
13657
# and later when we are not doing run time linking.
13658
library_names_spec='${libname}${release}.a $libname.a'
13659
soname_spec='${libname}${release}${shared_ext}$major'
13661
shlibpath_var=LIBPATH
13668
# Since July 2007 AmigaOS4 officially supports .so libraries.
13669
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13670
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13673
library_names_spec='$libname.ixlibrary $libname.a'
13674
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13675
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13681
library_names_spec='${libname}${shared_ext}'
13682
dynamic_linker="$host_os ld.so"
13683
shlibpath_var=LIBRARY_PATH
13689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13690
soname_spec='${libname}${release}${shared_ext}$major'
13691
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13692
shlibpath_var=LD_LIBRARY_PATH
13693
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13694
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13695
# the default ld.so.conf also contains /usr/contrib/lib and
13696
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13697
# libtool to hard-code these into programs
13700
cygwin* | mingw* | pw32* | cegcc*)
13701
version_type=windows
13706
case $GCC,$host_os in
13707
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13708
library_names_spec='$libname.dll.a'
13709
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13710
postinstall_cmds='base_file=`basename \${file}`~
13711
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13712
dldir=$destdir/`dirname \$dlpath`~
13713
test -d \$dldir || mkdir -p \$dldir~
13714
$install_prog $dir/$dlname \$dldir/$dlname~
13715
chmod a+x \$dldir/$dlname~
13716
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13717
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13719
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13720
dlpath=$dir/\$dldll~
13722
shlibpath_overrides_runpath=yes
13726
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13727
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13728
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13731
# MinGW DLLs use traditional 'lib' prefix
13732
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13733
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13734
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13735
# It is most probably a Windows format PATH printed by
13736
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13737
# path with ; separators, and with drive letters. We can handle the
13738
# drive letters (cygwin fileutils understands them), so leave them,
13739
# especially as we might pass files found there to a mingw objdump,
13740
# which wouldn't understand a cygwinified path. Ahh.
13741
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13743
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13747
# pw32 DLLs use 'pw' prefix rather than 'lib'
13748
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13754
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13757
dynamic_linker='Win32 ld.exe'
13758
# FIXME: first we should search . and the directory the executable is in
13762
darwin* | rhapsody*)
13763
dynamic_linker="$host_os dyld"
13764
version_type=darwin
13767
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13768
soname_spec='${libname}${release}${major}$shared_ext'
13769
shlibpath_overrides_runpath=yes
13770
shlibpath_var=DYLD_LIBRARY_PATH
13771
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13773
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13781
soname_spec='${libname}${release}${shared_ext}$major'
13782
shlibpath_var=LD_LIBRARY_PATH
13789
freebsd* | dragonfly*)
13790
# DragonFly does not have aout. When/if they implement a new
13791
# versioning mechanism, adjust this.
13792
if test -x /usr/bin/objformat; then
13793
objformat=`/usr/bin/objformat`
13796
freebsd[123]*) objformat=aout ;;
13797
*) objformat=elf ;;
13800
version_type=freebsd-$objformat
13801
case $version_type in
13803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13808
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13812
shlibpath_var=LD_LIBRARY_PATH
13815
shlibpath_overrides_runpath=yes
13817
freebsd3.[01]* | freebsdelf3.[01]*)
13818
shlibpath_overrides_runpath=yes
13819
hardcode_into_libs=yes
13821
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13822
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13823
shlibpath_overrides_runpath=no
13824
hardcode_into_libs=yes
13826
*) # from 4.6 on, and DragonFly
13827
shlibpath_overrides_runpath=yes
13828
hardcode_into_libs=yes
13837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13838
soname_spec='${libname}${release}${shared_ext}$major'
13839
shlibpath_var=LD_LIBRARY_PATH
13840
hardcode_into_libs=yes
13843
hpux9* | hpux10* | hpux11*)
13844
# Give a soname corresponding to the major version so that dld.sl refuses to
13845
# link against other versions.
13852
hardcode_into_libs=yes
13853
dynamic_linker="$host_os dld.so"
13854
shlibpath_var=LD_LIBRARY_PATH
13855
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857
soname_spec='${libname}${release}${shared_ext}$major'
13858
if test "X$HPUX_IA64_MODE" = X32; then
13859
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13861
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13863
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13867
hardcode_into_libs=yes
13868
dynamic_linker="$host_os dld.sl"
13869
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13870
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13872
soname_spec='${libname}${release}${shared_ext}$major'
13873
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13874
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13878
dynamic_linker="$host_os dld.sl"
13879
shlibpath_var=SHLIB_PATH
13880
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13881
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13882
soname_spec='${libname}${release}${shared_ext}$major'
13885
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13886
postinstall_cmds='chmod 555 $lib'
13893
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13894
soname_spec='${libname}${release}${shared_ext}$major'
13895
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13896
shlibpath_var=LD_LIBRARY_PATH
13897
shlibpath_overrides_runpath=no
13898
hardcode_into_libs=yes
13901
irix5* | irix6* | nonstopux*)
13903
nonstopux*) version_type=nonstopux ;;
13905
if test "$lt_cv_prog_gnu_ld" = yes; then
13913
soname_spec='${libname}${release}${shared_ext}$major'
13914
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13916
irix5* | nonstopux*)
13917
libsuff= shlibsuff=
13920
case $LD in # libtool.m4 will add one of these switches to LD
13921
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13922
libsuff= shlibsuff= libmagic=32-bit;;
13923
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13924
libsuff=32 shlibsuff=N32 libmagic=N32;;
13925
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13926
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13927
*) libsuff= shlibsuff= libmagic=never-match;;
13931
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13932
shlibpath_overrides_runpath=no
13933
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13934
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13935
hardcode_into_libs=yes
13938
# No shared lib support for Linux oldld, aout, or coff.
13939
linux*oldld* | linux*aout* | linux*coff*)
13943
# This must be Linux ELF.
13944
linux* | k*bsd*-gnu)
13948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13949
soname_spec='${libname}${release}${shared_ext}$major'
13950
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13951
shlibpath_var=LD_LIBRARY_PATH
13952
shlibpath_overrides_runpath=no
13953
# Some binutils ld are patched to set DT_RUNPATH
13954
save_LDFLAGS=$LDFLAGS
13955
save_libdir=$libdir
13956
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13957
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13958
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959
/* end confdefs.h. */
13969
if ac_fn_cxx_try_link "$LINENO"; then :
13970
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13971
shlibpath_overrides_runpath=yes
13974
rm -f core conftest.err conftest.$ac_objext \
13975
conftest$ac_exeext conftest.$ac_ext
13976
LDFLAGS=$save_LDFLAGS
13977
libdir=$save_libdir
13979
# This implies no fast_install, which is unacceptable.
13980
# Some rework will be needed to allow for fast_install
13981
# before this can be enabled.
13982
hardcode_into_libs=yes
13984
# Append ld.so.conf contents to the search path
13985
if test -f /etc/ld.so.conf; then
13986
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13987
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13990
# We used to test for /lib/ld.so.1 and disable shared libraries on
13991
# powerpc, because MkLinux only supported shared libraries with the
13992
# GNU dynamic linker. Since this was broken with cross compilers,
13993
# most powerpc-linux boxes support dynamic linking these days and
13994
# people can always --disable-shared, the test was removed, and we
13995
# assume the GNU/Linux dynamic linker is in use.
13996
dynamic_linker='GNU/Linux ld.so'
14003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14004
soname_spec='${libname}${release}${shared_ext}$major'
14005
shlibpath_var=LD_LIBRARY_PATH
14006
shlibpath_overrides_runpath=no
14007
hardcode_into_libs=yes
14008
dynamic_linker='NetBSD ld.elf_so'
14015
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14017
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14018
dynamic_linker='NetBSD (a.out) ld.so'
14020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14021
soname_spec='${libname}${release}${shared_ext}$major'
14022
dynamic_linker='NetBSD ld.elf_so'
14024
shlibpath_var=LD_LIBRARY_PATH
14025
shlibpath_overrides_runpath=yes
14026
hardcode_into_libs=yes
14031
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14032
shlibpath_var=LD_LIBRARY_PATH
14033
shlibpath_overrides_runpath=yes
14040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14041
soname_spec='${libname}${release}${shared_ext}$major'
14042
shlibpath_var=LD_LIBRARY_PATH
14043
shlibpath_overrides_runpath=no
14044
hardcode_into_libs=yes
14045
dynamic_linker='ldqnx.so'
14050
sys_lib_dlsearch_path_spec="/usr/lib"
14052
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14054
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14055
*) need_version=no ;;
14057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14058
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14059
shlibpath_var=LD_LIBRARY_PATH
14060
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14062
openbsd2.[89] | openbsd2.[89].*)
14063
shlibpath_overrides_runpath=no
14066
shlibpath_overrides_runpath=yes
14070
shlibpath_overrides_runpath=yes
14075
libname_spec='$name'
14078
library_names_spec='$libname${shared_ext} $libname.a'
14079
dynamic_linker='OS/2 ld.exe'
14080
shlibpath_var=LIBPATH
14083
osf3* | osf4* | osf5*)
14087
soname_spec='${libname}${release}${shared_ext}$major'
14088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089
shlibpath_var=LD_LIBRARY_PATH
14090
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14091
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103
soname_spec='${libname}${release}${shared_ext}$major'
14104
shlibpath_var=LD_LIBRARY_PATH
14105
shlibpath_overrides_runpath=yes
14106
hardcode_into_libs=yes
14107
# ldd complains unless libraries are executable
14108
postinstall_cmds='chmod +x $lib'
14113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14114
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14115
shlibpath_var=LD_LIBRARY_PATH
14116
shlibpath_overrides_runpath=yes
14117
if test "$with_gnu_ld" = yes; then
14125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126
soname_spec='${libname}${release}${shared_ext}$major'
14127
shlibpath_var=LD_LIBRARY_PATH
14128
case $host_vendor in
14130
shlibpath_overrides_runpath=no
14132
runpath_var=LD_RUN_PATH
14140
shlibpath_overrides_runpath=no
14141
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14147
if test -d /usr/nec ;then
14149
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14150
soname_spec='$libname${shared_ext}.$major'
14151
shlibpath_var=LD_LIBRARY_PATH
14155
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14156
version_type=freebsd-elf
14159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14160
soname_spec='${libname}${release}${shared_ext}$major'
14161
shlibpath_var=LD_LIBRARY_PATH
14162
shlibpath_overrides_runpath=yes
14163
hardcode_into_libs=yes
14164
if test "$with_gnu_ld" = yes; then
14165
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14167
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14170
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14174
sys_lib_dlsearch_path_spec='/usr/lib'
14178
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14182
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14183
shlibpath_var=LD_LIBRARY_PATH
14184
shlibpath_overrides_runpath=no
14185
hardcode_into_libs=yes
14190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191
soname_spec='${libname}${release}${shared_ext}$major'
14192
shlibpath_var=LD_LIBRARY_PATH
14199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14200
$as_echo "$dynamic_linker" >&6; }
14201
test "$dynamic_linker" = no && can_build_shared=no
14203
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14204
if test "$GCC" = yes; then
14205
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14208
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14209
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14211
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14212
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14251
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14252
hardcode_action_CXX=
14253
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14254
test -n "$runpath_var_CXX" ||
14255
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14257
# We can hardcode non-existent directories.
14258
if test "$hardcode_direct_CXX" != no &&
14259
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14260
# have to relink, otherwise we might link with an installed library
14261
# when we should be linking with a yet-to-be-installed one
14262
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14263
test "$hardcode_minus_L_CXX" != no; then
14264
# Linking always hardcodes the temporary library directory.
14265
hardcode_action_CXX=relink
14267
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14268
hardcode_action_CXX=immediate
14271
# We cannot hardcode anything, or else we can only hardcode existing
14273
hardcode_action_CXX=unsupported
14275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14276
$as_echo "$hardcode_action_CXX" >&6; }
14278
if test "$hardcode_action_CXX" = relink ||
14279
test "$inherit_rpath_CXX" = yes; then
14280
# Fast installation is not supported
14281
enable_fast_install=no
14282
elif test "$shlibpath_overrides_runpath" = yes ||
14283
test "$enable_shared" = no; then
14284
# Fast installation is not necessary
14285
enable_fast_install=needless
14294
fi # test -n "$compiler"
14300
with_gnu_ld=$lt_save_with_gnu_ld
14301
lt_cv_path_LDCXX=$lt_cv_path_LD
14302
lt_cv_path_LD=$lt_save_path_LD
14303
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14304
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14305
fi # test "$_lt_caught_CXX_error" != yes
14308
ac_cpp='$CPP $CPPFLAGS'
14309
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14310
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14311
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14316
# checks for libraries.
14317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem-mt" >&5
14318
$as_echo_n "checking for main in -lboost_filesystem-mt... " >&6; }
14319
if test "${ac_cv_lib_boost_filesystem_mt_main+set}" = set; then :
14320
$as_echo_n "(cached) " >&6
14322
ac_check_lib_save_LIBS=$LIBS
14323
LIBS="-lboost_filesystem-mt $LIBS"
14324
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325
/* end confdefs.h. */
14336
if ac_fn_c_try_link "$LINENO"; then :
14337
ac_cv_lib_boost_filesystem_mt_main=yes
14339
ac_cv_lib_boost_filesystem_mt_main=no
14341
rm -f core conftest.err conftest.$ac_objext \
14342
conftest$ac_exeext conftest.$ac_ext
14343
LIBS=$ac_check_lib_save_LIBS
14345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_filesystem_mt_main" >&5
14346
$as_echo "$ac_cv_lib_boost_filesystem_mt_main" >&6; }
14347
if test "x$ac_cv_lib_boost_filesystem_mt_main" = x""yes; then :
14348
cat >>confdefs.h <<_ACEOF
14349
#define HAVE_LIBBOOST_FILESYSTEM_MT 1
14352
LIBS="-lboost_filesystem-mt $LIBS"
14355
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&5
14356
$as_echo "$as_me: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&2;}
14359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread-mt" >&5
14360
$as_echo_n "checking for main in -lboost_thread-mt... " >&6; }
14361
if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then :
14362
$as_echo_n "(cached) " >&6
14364
ac_check_lib_save_LIBS=$LIBS
14365
LIBS="-lboost_thread-mt $LIBS"
14366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367
/* end confdefs.h. */
14378
if ac_fn_c_try_link "$LINENO"; then :
14379
ac_cv_lib_boost_thread_mt_main=yes
14381
ac_cv_lib_boost_thread_mt_main=no
14383
rm -f core conftest.err conftest.$ac_objext \
14384
conftest$ac_exeext conftest.$ac_ext
14385
LIBS=$ac_check_lib_save_LIBS
14387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_thread_mt_main" >&5
14388
$as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; }
14389
if test "x$ac_cv_lib_boost_thread_mt_main" = x""yes; then :
14390
cat >>confdefs.h <<_ACEOF
14391
#define HAVE_LIBBOOST_THREAD_MT 1
14394
LIBS="-lboost_thread-mt $LIBS"
14397
as_fn_error "Unable to find Boost Thread library" "$LINENO" 5
14400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5
14401
$as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; }
14402
if test "${ac_cv_lib_sqlite3_sqlite3_initialize+set}" = set; then :
14403
$as_echo_n "(cached) " >&6
14405
ac_check_lib_save_LIBS=$LIBS
14406
LIBS="-lsqlite3 $LIBS"
14407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408
/* end confdefs.h. */
14410
/* Override any GCC internal prototype to avoid an error.
14411
Use char because int might match the return type of a GCC
14412
builtin and then its argument prototype would still apply. */
14416
char sqlite3_initialize ();
14420
return sqlite3_initialize ();
14425
if ac_fn_c_try_link "$LINENO"; then :
14426
ac_cv_lib_sqlite3_sqlite3_initialize=yes
14428
ac_cv_lib_sqlite3_sqlite3_initialize=no
14430
rm -f core conftest.err conftest.$ac_objext \
14431
conftest$ac_exeext conftest.$ac_ext
14432
LIBS=$ac_check_lib_save_LIBS
14434
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5
14435
$as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; }
14436
if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = x""yes; then :
14437
cat >>confdefs.h <<_ACEOF
14438
#define HAVE_LIBSQLITE3 1
14441
LIBS="-lsqlite3 $LIBS"
14444
as_fn_error "Unable to find SQLite3 library" "$LINENO" 5
14448
# checks for header files.
14449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14450
$as_echo_n "checking for ANSI C header files... " >&6; }
14451
if test "${ac_cv_header_stdc+set}" = set; then :
14452
$as_echo_n "(cached) " >&6
14454
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455
/* end confdefs.h. */
14456
#include <stdlib.h>
14457
#include <stdarg.h>
14458
#include <string.h>
14469
if ac_fn_c_try_compile "$LINENO"; then :
14470
ac_cv_header_stdc=yes
14472
ac_cv_header_stdc=no
14474
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476
if test $ac_cv_header_stdc = yes; then
14477
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14478
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479
/* end confdefs.h. */
14480
#include <string.h>
14483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14484
$EGREP "memchr" >/dev/null 2>&1; then :
14487
ac_cv_header_stdc=no
14493
if test $ac_cv_header_stdc = yes; then
14494
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14495
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496
/* end confdefs.h. */
14497
#include <stdlib.h>
14500
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14501
$EGREP "free" >/dev/null 2>&1; then :
14504
ac_cv_header_stdc=no
14510
if test $ac_cv_header_stdc = yes; then
14511
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14512
if test "$cross_compiling" = yes; then :
14515
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516
/* end confdefs.h. */
14518
#include <stdlib.h>
14519
#if ((' ' & 0x0FF) == 0x020)
14520
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14521
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14523
# define ISLOWER(c) \
14524
(('a' <= (c) && (c) <= 'i') \
14525
|| ('j' <= (c) && (c) <= 'r') \
14526
|| ('s' <= (c) && (c) <= 'z'))
14527
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14530
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14535
for (i = 0; i < 256; i++)
14536
if (XOR (islower (i), ISLOWER (i))
14537
|| toupper (i) != TOUPPER (i))
14542
if ac_fn_c_try_run "$LINENO"; then :
14545
ac_cv_header_stdc=no
14547
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14548
conftest.$ac_objext conftest.beam conftest.$ac_ext
14553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14554
$as_echo "$ac_cv_header_stdc" >&6; }
14555
if test $ac_cv_header_stdc = yes; then
14557
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14561
for ac_header in string.h
14563
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14564
if test "x$ac_cv_header_string_h" = x""yes; then :
14565
cat >>confdefs.h <<_ACEOF
14566
#define HAVE_STRING_H 1
14574
# checks for typedefs, structures, and compiler characteristics.
14576
# checks for library functions.
14578
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
14580
cat >confcache <<\_ACEOF
14581
# This file is a shell script that caches the results of configure
14582
# tests run on this system so they can be shared between configure
14583
# scripts and configure runs, see configure's option --config-cache.
14584
# It is not useful on other systems. If it contains results you don't
14585
# want to keep, you may remove or edit it.
14587
# config.status only pays attention to the cache file if you give it
14588
# the --recheck option to rerun configure.
14590
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14591
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14592
# following values.
14596
# The following way of writing the cache mishandles newlines in values,
14597
# but we know of no workaround that is simple, portable, and efficient.
14598
# So, we kill variables containing newlines.
14599
# Ultrix sh set writes to stderr and can't be redirected directly,
14600
# and sets the high bit in the cache file unless we assign to the vars.
14602
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14603
eval ac_val=\$$ac_var
14607
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14608
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14611
_ | IFS | as_nl) ;; #(
14612
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14613
*) { eval $ac_var=; unset $ac_var;} ;;
14619
case $as_nl`(ac_space=' '; set) 2>&1` in #(
14620
*${as_nl}ac_space=\ *)
14621
# `set' does not quote correctly, so add quotes: double-quote
14622
# substitution turns \\\\ into \\, and sed turns \\ into \.
14625
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14628
# `set' quotes correctly as required by POSIX, so do not add quotes.
14629
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14638
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14640
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14642
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14643
if test -w "$cache_file"; then
14644
test "x$cache_file" != "x/dev/null" &&
14645
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14646
$as_echo "$as_me: updating cache $cache_file" >&6;}
14647
cat confcache >$cache_file
14649
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14650
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14655
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14656
# Let make expand exec_prefix.
14657
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14659
DEFS=-DHAVE_CONFIG_H
14663
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14664
# 1. Remove the extension, and $U if already installed.
14665
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14666
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14667
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14668
# will be set to the directory where LIBOBJS objects are built.
14669
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14670
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14672
LIBOBJS=$ac_libobjs
14674
LTLIBOBJS=$ac_ltlibobjs
14677
if test -n "$EXEEXT"; then
14679
am__EXEEXT_FALSE='#'
14681
am__EXEEXT_TRUE='#'
14685
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14686
as_fn_error "conditional \"AMDEP\" was never defined.
14687
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14689
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14690
as_fn_error "conditional \"am__fastdepCC\" was never defined.
14691
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14693
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14694
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14695
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14697
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14698
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14699
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14702
: ${CONFIG_STATUS=./config.status}
14704
ac_clean_files_save=$ac_clean_files
14705
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14706
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14707
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14709
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14711
# Generated by $as_me.
14712
# Run this file to recreate the current configuration.
14713
# Compiler output produced by configure, useful for debugging
14714
# configure, is in config.log if it exists.
14717
ac_cs_recheck=false
14720
SHELL=\${CONFIG_SHELL-$SHELL}
14723
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14724
## -------------------- ##
14725
## M4sh Initialization. ##
14726
## -------------------- ##
14728
# Be more Bourne compatible
14729
DUALCASE=1; export DUALCASE # for MKS sh
14730
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14733
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14734
# is contrary to our usage. Disable this feature.
14735
alias -g '${1+"$@"}'='"$@"'
14736
setopt NO_GLOB_SUBST
14738
case `(set -o) 2>/dev/null` in #(
14750
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14751
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14752
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14753
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14754
# Prefer a ksh shell builtin over an external printf program on Solaris,
14755
# but without wasting forks for bash or zsh.
14756
if test -z "$BASH_VERSION$ZSH_VERSION" \
14757
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14758
as_echo='print -r --'
14759
as_echo_n='print -rn --'
14760
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14761
as_echo='printf %s\n'
14762
as_echo_n='printf %s'
14764
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14765
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14766
as_echo_n='/usr/ucb/echo -n'
14768
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14769
as_echo_n_body='eval
14773
expr "X$arg" : "X\\(.*\\)$as_nl";
14774
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14776
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14778
export as_echo_n_body
14779
as_echo_n='sh -c $as_echo_n_body as_echo'
14781
export as_echo_body
14782
as_echo='sh -c $as_echo_body as_echo'
14785
# The user is always right.
14786
if test "${PATH_SEPARATOR+set}" != set; then
14788
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14789
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14796
# We need space, tab and new line, in precisely that order. Quoting is
14797
# there to prevent editors from complaining about space-tab.
14798
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14799
# splitting by setting IFS to empty value.)
14802
# Find who we are. Look in the path if we contain no directory separator.
14804
*[\\/]* ) as_myself=$0 ;;
14805
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806
for as_dir in $PATH
14809
test -z "$as_dir" && as_dir=.
14810
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14816
# We did not find ourselves, most probably we were run as `sh COMMAND'
14817
# in which case we are not to be found in the path.
14818
if test "x$as_myself" = x; then
14821
if test ! -f "$as_myself"; then
14822
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14826
# Unset variables that we do not need and which cause bugs (e.g. in
14827
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14828
# suppresses any "Segmentation fault" message there. '((' could
14829
# trigger a bug in pdksh 5.2.14.
14830
for as_var in BASH_ENV ENV MAIL MAILPATH
14831
do eval test x\${$as_var+set} = xset \
14832
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14845
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14848
# as_fn_error ERROR [LINENO LOG_FD]
14849
# ---------------------------------
14850
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14851
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14852
# script with status $?, using 1 if that was 0.
14855
as_status=$?; test $as_status -eq 0 && as_status=1
14857
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14858
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14860
$as_echo "$as_me: error: $1" >&2
14861
as_fn_exit $as_status
14865
# as_fn_set_status STATUS
14866
# -----------------------
14867
# Set $? to STATUS, without forking.
14868
as_fn_set_status ()
14871
} # as_fn_set_status
14873
# as_fn_exit STATUS
14874
# -----------------
14875
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14879
as_fn_set_status $1
14885
# Portably unset VAR.
14888
{ eval $1=; unset $1;}
14890
as_unset=as_fn_unset
14891
# as_fn_append VAR VALUE
14892
# ----------------------
14893
# Append the text in VALUE to the end of the definition contained in VAR. Take
14894
# advantage of any shell optimizations that allow amortized linear growth over
14895
# repeated appends, instead of the typical quadratic growth present in naive
14897
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14898
eval 'as_fn_append ()
14909
# as_fn_arith ARG...
14910
# ------------------
14911
# Perform arithmetic evaluation on the ARGs, and store the result in the
14912
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14913
# must be portable across $(()) and expr.
14914
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14915
eval 'as_fn_arith ()
14922
as_val=`expr "$@" || test $? -eq 1`
14927
if expr a : '\(a\)' >/dev/null 2>&1 &&
14928
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14934
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14935
as_basename=basename
14940
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14946
as_me=`$as_basename -- "$0" ||
14947
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14948
X"$0" : 'X\(//\)$' \| \
14949
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14951
sed '/^.*\/\([^/][^/]*\)\/*$/{
14965
# Avoid depending upon Character Ranges.
14966
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14967
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14968
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14969
as_cr_digits='0123456789'
14970
as_cr_alnum=$as_cr_Letters$as_cr_digits
14972
ECHO_C= ECHO_N= ECHO_T=
14973
case `echo -n x` in #(((((
14975
case `echo 'xy\c'` in
14976
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
14978
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14985
rm -f conf$$ conf$$.exe conf$$.file
14986
if test -d conf$$.dir; then
14987
rm -f conf$$.dir/conf$$.file
14990
mkdir conf$$.dir 2>/dev/null
14992
if (echo >conf$$.file) 2>/dev/null; then
14993
if ln -s conf$$.file conf$$ 2>/dev/null; then
14995
# ... but there are two gotchas:
14996
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14997
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14998
# In both cases, we have to default to `cp -p'.
14999
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15001
elif ln conf$$.file conf$$ 2>/dev/null; then
15009
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15010
rmdir conf$$.dir 2>/dev/null
15015
# Create "$as_dir" as a directory, including parents if necessary.
15020
-*) as_dir=./$as_dir;;
15022
test -d "$as_dir" || eval $as_mkdir_p || {
15026
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15027
*) as_qdir=$as_dir;;
15029
as_dirs="'$as_qdir' $as_dirs"
15030
as_dir=`$as_dirname -- "$as_dir" ||
15031
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15032
X"$as_dir" : 'X\(//\)[^/]' \| \
15033
X"$as_dir" : 'X\(//\)$' \| \
15034
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15035
$as_echo X"$as_dir" |
15036
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15040
/^X\(\/\/\)[^/].*/{
15053
test -d "$as_dir" && break
15055
test -z "$as_dirs" || eval "mkdir $as_dirs"
15056
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15060
if mkdir -p . 2>/dev/null; then
15061
as_mkdir_p='mkdir -p "$as_dir"'
15063
test -d ./-p && rmdir ./-p
15067
if test -x / >/dev/null 2>&1; then
15068
as_test_x='test -x'
15070
if ls -dL / >/dev/null 2>&1; then
15077
if test -d "$1"; then
15083
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15084
???[sx]*):;;*)false;;esac;fi
15088
as_executable_p=$as_test_x
15090
# Sed expression to map a string onto a valid CPP name.
15091
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15093
# Sed expression to map a string onto a valid variable name.
15094
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15098
## ----------------------------------- ##
15099
## Main body of $CONFIG_STATUS script. ##
15100
## ----------------------------------- ##
15102
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15104
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15105
# Save the log message, to keep $0 and so on meaningful, and to
15106
# report actual input values of CONFIG_FILES etc. instead of their
15107
# values after options handling.
15109
This file was extended by sqlite3cc $as_me 0.1.0, which was
15110
generated by GNU Autoconf 2.65. Invocation command line was
15112
CONFIG_FILES = $CONFIG_FILES
15113
CONFIG_HEADERS = $CONFIG_HEADERS
15114
CONFIG_LINKS = $CONFIG_LINKS
15115
CONFIG_COMMANDS = $CONFIG_COMMANDS
15118
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15123
case $ac_config_files in *"
15124
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15127
case $ac_config_headers in *"
15128
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15132
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15133
# Files that config.status was made for.
15134
config_files="$ac_config_files"
15135
config_headers="$ac_config_headers"
15136
config_commands="$ac_config_commands"
15140
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15142
\`$as_me' instantiates files and other configuration actions
15143
from templates according to the current configuration. Unless the files
15144
and actions are specified as TAGs, all are instantiated by default.
15146
Usage: $0 [OPTION]... [TAG]...
15148
-h, --help print this help, then exit
15149
-V, --version print version number and configuration settings, then exit
15150
--config print configuration, then exit
15151
-q, --quiet, --silent
15152
do not print progress messages
15153
-d, --debug don't remove temporary files
15154
--recheck update $as_me by reconfiguring in the same conditions
15155
--file=FILE[:TEMPLATE]
15156
instantiate the configuration file FILE
15157
--header=FILE[:TEMPLATE]
15158
instantiate the configuration header FILE
15160
Configuration files:
15163
Configuration headers:
15166
Configuration commands:
15169
Report bugs to <edam@waxworlds.org>.
15170
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>."
15173
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15174
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15176
sqlite3cc config.status 0.1.0
15177
configured by $0, generated by GNU Autoconf 2.65,
15178
with options \\"\$ac_cs_config\\"
15180
Copyright (C) 2009 Free Software Foundation, Inc.
15181
This config.status script is free software; the Free Software Foundation
15182
gives unlimited permission to copy, distribute and modify it."
15189
test -n "\$AWK" || AWK=awk
15192
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193
# The default lists apply if the user does not specify any file.
15199
ac_option=`expr "X$1" : 'X\([^=]*\)='`
15200
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15211
# Handling of the options.
15212
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15214
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15215
$as_echo "$ac_cs_version"; exit ;;
15216
--config | --confi | --conf | --con | --co | --c )
15217
$as_echo "$ac_cs_config"; exit ;;
15218
--debug | --debu | --deb | --de | --d | -d )
15220
--file | --fil | --fi | --f )
15223
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15225
as_fn_append CONFIG_FILES " '$ac_optarg'"
15226
ac_need_defaults=false;;
15227
--header | --heade | --head | --hea )
15230
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15232
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15233
ac_need_defaults=false;;
15235
# Conflict between --help and --header
15236
as_fn_error "ambiguous option: \`$1'
15237
Try \`$0 --help' for more information.";;
15238
--help | --hel | -h )
15239
$as_echo "$ac_cs_usage"; exit ;;
15240
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
15241
| -silent | --silent | --silen | --sile | --sil | --si | --s)
15244
# This is an error.
15245
-*) as_fn_error "unrecognized option: \`$1'
15246
Try \`$0 --help' for more information." ;;
15248
*) as_fn_append ac_config_targets " $1"
15249
ac_need_defaults=false ;;
15255
ac_configure_extra_args=
15257
if $ac_cs_silent; then
15259
ac_configure_extra_args="$ac_configure_extra_args --silent"
15263
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15264
if \$ac_cs_recheck; then
15265
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15267
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15268
CONFIG_SHELL='$SHELL'
15269
export CONFIG_SHELL
15274
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15278
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15279
## Running $as_me. ##
15285
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15289
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15292
# The HP-UX ksh and POSIX shell print the target directory to stdout
15293
# if CDPATH is set.
15294
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15296
sed_quote_subst='$sed_quote_subst'
15297
double_quote_subst='$double_quote_subst'
15298
delay_variable_subst='$delay_variable_subst'
15299
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15300
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15301
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15302
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15303
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15304
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15305
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15306
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15307
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15308
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15309
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15310
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15311
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15312
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15313
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15314
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15315
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15316
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15317
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15318
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15319
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15320
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15321
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15322
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15323
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15324
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15325
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15326
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15327
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15328
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15329
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15330
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15331
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15332
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15333
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15334
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15335
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15336
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15337
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15338
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15339
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15340
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15341
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15342
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15343
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15344
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15345
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15346
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15347
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15348
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15349
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15350
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15351
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15352
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15353
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15354
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15355
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15356
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15357
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15358
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15359
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15360
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15361
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15362
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15363
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15364
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15365
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15366
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15367
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15368
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15369
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15370
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15371
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15372
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15373
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15374
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15375
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15376
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15377
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15378
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15379
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15380
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15381
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15382
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15383
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15384
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15385
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15386
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15387
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15388
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15389
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15390
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15391
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15392
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15393
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15394
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15395
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15396
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15397
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15398
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15399
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15400
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15401
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15402
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15403
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15404
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15405
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15406
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15407
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15408
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15409
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15410
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15411
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15412
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15413
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15414
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15415
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15416
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15417
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15418
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15419
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15420
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15421
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15422
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15423
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15424
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15425
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15426
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15427
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15428
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15429
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15430
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15431
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15432
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15433
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15434
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15435
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15436
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15437
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15438
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15439
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15440
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15441
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15442
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15443
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15444
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15445
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15446
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15447
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15448
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15449
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15450
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15451
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15452
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15453
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15454
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15455
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15456
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15457
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15458
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15459
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15460
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15461
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15462
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15463
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15464
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15465
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15466
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15467
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15468
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15469
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15472
LTCFLAGS='$LTCFLAGS'
15473
compiler='$compiler_DEFAULT'
15475
# Quote evaled strings.
15487
deplibs_check_method \
15496
lt_cv_sys_global_symbol_pipe \
15497
lt_cv_sys_global_symbol_to_cdecl \
15498
lt_cv_sys_global_symbol_to_c_name_address \
15499
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15502
lt_prog_compiler_no_builtin_flag \
15503
lt_prog_compiler_wl \
15504
lt_prog_compiler_pic \
15505
lt_prog_compiler_static \
15506
lt_cv_prog_compiler_c_o \
15514
export_dynamic_flag_spec \
15515
whole_archive_flag_spec \
15516
compiler_needs_object \
15518
allow_undefined_flag \
15519
no_undefined_flag \
15520
hardcode_libdir_flag_spec \
15521
hardcode_libdir_flag_spec_ld \
15522
hardcode_libdir_separator \
15527
variables_saved_for_relink \
15529
library_names_spec \
15534
compiler_lib_search_dirs \
15539
compiler_lib_search_path \
15542
lt_prog_compiler_no_builtin_flag_CXX \
15543
lt_prog_compiler_wl_CXX \
15544
lt_prog_compiler_pic_CXX \
15545
lt_prog_compiler_static_CXX \
15546
lt_cv_prog_compiler_c_o_CXX \
15547
export_dynamic_flag_spec_CXX \
15548
whole_archive_flag_spec_CXX \
15549
compiler_needs_object_CXX \
15551
allow_undefined_flag_CXX \
15552
no_undefined_flag_CXX \
15553
hardcode_libdir_flag_spec_CXX \
15554
hardcode_libdir_flag_spec_ld_CXX \
15555
hardcode_libdir_separator_CXX \
15556
fix_srcfile_path_CXX \
15557
exclude_expsyms_CXX \
15558
include_expsyms_CXX \
15559
file_list_spec_CXX \
15560
compiler_lib_search_dirs_CXX \
15561
predep_objects_CXX \
15562
postdep_objects_CXX \
15565
compiler_lib_search_path_CXX; do
15566
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15567
*[\\\\\\\`\\"\\\$]*)
15568
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15571
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15576
# Double-quote double-evaled strings.
15577
for var in reload_cmds \
15578
old_postinstall_cmds \
15579
old_postuninstall_cmds \
15581
extract_expsyms_cmds \
15582
old_archive_from_new_cmds \
15583
old_archive_from_expsyms_cmds \
15585
archive_expsym_cmds \
15587
module_expsym_cmds \
15588
export_symbols_cmds \
15591
postuninstall_cmds \
15593
sys_lib_search_path_spec \
15594
sys_lib_dlsearch_path_spec \
15595
old_archive_cmds_CXX \
15596
old_archive_from_new_cmds_CXX \
15597
old_archive_from_expsyms_cmds_CXX \
15599
archive_expsym_cmds_CXX \
15601
module_expsym_cmds_CXX \
15602
export_symbols_cmds_CXX \
15603
prelink_cmds_CXX; do
15604
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15605
*[\\\\\\\`\\"\\\$]*)
15606
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15609
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15614
# Fix-up fallback echo if it was mangled by the above quoting rules.
15616
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15620
ac_aux_dir='$ac_aux_dir'
15621
xsi_shell='$xsi_shell'
15622
lt_shell_append='$lt_shell_append'
15624
# See if we are running on zsh, and set the options which allow our
15625
# commands through without removal of \ escapes INIT.
15626
if test -n "\${ZSH_VERSION+set}" ; then
15627
setopt NO_GLOB_SUBST
15633
TIMESTAMP='$TIMESTAMP'
15644
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15646
# Handling of arguments.
15647
for ac_config_target in $ac_config_targets
15649
case $ac_config_target in
15650
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15651
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15652
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15653
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15654
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15655
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15656
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15658
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15663
# If the user did not use the arguments to specify the items to instantiate,
15664
# then the envvar interface is used. Set only those that are not.
15665
# We use the long form for the default assignment because of an extremely
15666
# bizarre bug on SunOS 4.1.3.
15667
if $ac_need_defaults; then
15668
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15669
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15670
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15673
# Have a temporary directory for convenience. Make it in the build tree
15674
# simply because there is no reason against having it here, and in addition,
15675
# creating and moving files from /tmp can sometimes cause problems.
15676
# Hook for its removal unless debugging.
15677
# Note that there is a small window in which the directory will not be cleaned:
15678
# after its creation but before its name has been assigned to `$tmp'.
15682
trap 'exit_status=$?
15683
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15685
trap 'as_fn_exit 1' 1 2 13 15
15687
# Create a (secure) tmp directory for tmp files.
15690
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15691
test -n "$tmp" && test -d "$tmp"
15694
tmp=./conf$$-$RANDOM
15695
(umask 077 && mkdir "$tmp")
15696
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15698
# Set up the scripts for CONFIG_FILES section.
15699
# No need to generate them if there are no CONFIG_FILES.
15700
# This happens for instance with `./config.status config.h'.
15701
if test -n "$CONFIG_FILES"; then
15704
ac_cr=`echo X | tr X '\015'`
15705
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15706
# But we know of no other shell where ac_cr would be empty at this
15707
# point, so we can use a bashism as a fallback.
15708
if test "x$ac_cr" = x; then
15709
eval ac_cr=\$\'\\r\'
15711
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15712
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15715
ac_cs_awk_cr=$ac_cr
15718
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15723
echo "cat >conf$$subs.awk <<_ACEOF" &&
15724
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15726
} >conf$$subs.sh ||
15727
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15728
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15730
for ac_last_try in false false false false false :; do
15731
. ./conf$$subs.sh ||
15732
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15734
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15735
if test $ac_delim_n = $ac_delim_num; then
15737
elif $ac_last_try; then
15738
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15740
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15743
rm -f conf$$subs.sh
15745
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15746
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15750
s/^/S["/; s/!.*/"]=/
15760
s/\(.\{148\}\)..*/\1/
15762
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15767
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15774
s/\(.\{148\}\)..*/\1/
15776
s/["\\]/\\&/g; s/^/"/; s/$/"/
15780
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15785
' <conf$$subs.awk | sed '
15790
' >>$CONFIG_STATUS || ac_write_fail=1
15791
rm -f conf$$subs.awk
15792
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15795
for (key in S) S_is_set[key] = 1
15801
nfields = split(line, field, "@")
15803
len = length(field[1])
15804
for (i = 2; i < nfields; i++) {
15806
keylen = length(key)
15807
if (S_is_set[key]) {
15809
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15810
len += length(value) + length(field[++i])
15821
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15822
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15823
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15826
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15827
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
15830
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15831
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15832
# trailing colons and then remove the whole line if VPATH becomes empty
15833
# (actually we leave an empty line to preserve line numbers).
15834
if test "x$srcdir" = x.; then
15835
ac_vpsub='/^[ ]*VPATH[ ]*=/{
15836
s/:*\$(srcdir):*/:/
15837
s/:*\${srcdir}:*/:/
15839
s/^\([^=]*=[ ]*\):*/\1/
15845
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15846
fi # test -n "$CONFIG_FILES"
15848
# Set up the scripts for CONFIG_HEADERS section.
15849
# No need to generate them if there are no CONFIG_HEADERS.
15850
# This happens for instance with `./config.status Makefile'.
15851
if test -n "$CONFIG_HEADERS"; then
15852
cat >"$tmp/defines.awk" <<\_ACAWK ||
15856
# Transform confdefs.h into an awk script `defines.awk', embedded as
15857
# here-document in config.status, that substitutes the proper values into
15858
# config.h.in to produce config.h.
15860
# Create a delimiter string that does not exist in confdefs.h, to ease
15861
# handling of long lines.
15863
for ac_last_try in false false :; do
15864
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15865
if test -z "$ac_t"; then
15867
elif $ac_last_try; then
15868
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15870
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15874
# For the awk script, D is an array of macro values keyed by name,
15875
# likewise P contains macro parameters if any. Preserve backslash
15876
# newline sequences.
15878
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15880
s/.\{148\}/&'"$ac_delim"'/g
15883
s/^[ ]*#[ ]*define[ ][ ]*/ /
15890
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15892
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15896
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15897
D["\1"]=" \3\\\\\\n"\\/p
15899
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15904
s/.\{148\}/&'"$ac_delim"'/g
15909
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15912
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15914
' <confdefs.h | sed '
15915
s/'"$ac_delim"'/"\\\
15916
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15918
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15919
for (key in D) D_is_set[key] = 1
15922
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15924
split(line, arg, " ")
15925
if (arg[1] == "#") {
15929
defundef = substr(arg[1], 2)
15932
split(mac1, mac2, "(") #)
15934
prefix = substr(line, 1, index(line, defundef) - 1)
15935
if (D_is_set[macro]) {
15936
# Preserve the white space surrounding the "#".
15937
print prefix "define", macro P[macro] D[macro]
15940
# Replace #undef with comments. This is necessary, for example,
15941
# in the case of _POSIX_SOURCE, which is predefined and required
15942
# on some systems where configure will not decide to define it.
15943
if (defundef == "undef") {
15944
print "/*", prefix defundef, macro, "*/"
15952
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953
as_fn_error "could not setup config headers machinery" "$LINENO" 5
15954
fi # test -n "$CONFIG_HEADERS"
15957
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15962
:[FHLC]) ac_mode=$ac_tag; continue;;
15964
case $ac_mode$ac_tag in
15966
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15967
:[FH]-) ac_tag=-:-;;
15968
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15985
-) ac_f="$tmp/stdin";;
15986
*) # Look for the file first in the build tree, then in the source tree
15987
# (if the path is not absolute). The absolute path cannot be DOS-style,
15988
# because $ac_f cannot contain `:'.
15992
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15994
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15996
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15997
as_fn_append ac_file_inputs " '$ac_f'"
16000
# Let's still pretend it is `configure' which instantiates (i.e., don't
16001
# use $as_me), people would be surprised to read:
16002
# /* config.h. Generated by config.status. */
16003
configure_input='Generated from '`
16004
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16006
if test x"$ac_file" != x-; then
16007
configure_input="$ac_file. $configure_input"
16008
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16009
$as_echo "$as_me: creating $ac_file" >&6;}
16011
# Neutralize special characters interpreted by sed in replacement strings.
16012
case $configure_input in #(
16013
*\&* | *\|* | *\\* )
16014
ac_sed_conf_input=`$as_echo "$configure_input" |
16015
sed 's/[\\\\&|]/\\\\&/g'`;; #(
16016
*) ac_sed_conf_input=$configure_input;;
16020
*:-:* | *:-) cat >"$tmp/stdin" \
16021
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16026
ac_dir=`$as_dirname -- "$ac_file" ||
16027
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16028
X"$ac_file" : 'X\(//\)[^/]' \| \
16029
X"$ac_file" : 'X\(//\)$' \| \
16030
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16031
$as_echo X"$ac_file" |
16032
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16036
/^X\(\/\/\)[^/].*/{
16049
as_dir="$ac_dir"; as_fn_mkdir_p
16053
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16055
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16056
# A ".." for each directory in $ac_dir_suffix.
16057
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16058
case $ac_top_builddir_sub in
16059
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16060
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16063
ac_abs_top_builddir=$ac_pwd
16064
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16065
# for backward compatibility:
16066
ac_top_builddir=$ac_top_build_prefix
16069
.) # We are building in place.
16071
ac_top_srcdir=$ac_top_builddir_sub
16072
ac_abs_top_srcdir=$ac_pwd ;;
16073
[\\/]* | ?:[\\/]* ) # Absolute name.
16074
ac_srcdir=$srcdir$ac_dir_suffix;
16075
ac_top_srcdir=$srcdir
16076
ac_abs_top_srcdir=$srcdir ;;
16077
*) # Relative name.
16078
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16079
ac_top_srcdir=$ac_top_build_prefix$srcdir
16080
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16082
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16092
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16093
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16095
ac_MKDIR_P=$MKDIR_P
16097
[\\/$]* | ?:[\\/]* ) ;;
16098
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16102
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103
# If the template does not know about datarootdir, expand it.
16104
# FIXME: This hack should be removed a few years after 2.60.
16105
ac_datarootdir_hack=; ac_datarootdir_seen=
16116
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16117
*datarootdir*) ac_datarootdir_seen=yes;;
16118
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16119
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16120
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16122
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123
ac_datarootdir_hack='
16124
s&@datadir@&$datadir&g
16125
s&@docdir@&$docdir&g
16126
s&@infodir@&$infodir&g
16127
s&@localedir@&$localedir&g
16128
s&@mandir@&$mandir&g
16129
s&\\\${datarootdir}&$datarootdir&g' ;;
16133
# Neutralize VPATH when `$srcdir' = `.'.
16134
# Shell code in configure.ac might set extrasub.
16135
# FIXME: do we really want to maintain this feature?
16136
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16137
ac_sed_extra="$ac_vpsub
16140
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16142
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16143
s|@configure_input@|$ac_sed_conf_input|;t t
16144
s&@top_builddir@&$ac_top_builddir_sub&;t t
16145
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16146
s&@srcdir@&$ac_srcdir&;t t
16147
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16148
s&@top_srcdir@&$ac_top_srcdir&;t t
16149
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16150
s&@builddir@&$ac_builddir&;t t
16151
s&@abs_builddir@&$ac_abs_builddir&;t t
16152
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16153
s&@INSTALL@&$ac_INSTALL&;t t
16154
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16155
$ac_datarootdir_hack
16157
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16158
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16160
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16161
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16162
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16163
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16164
which seems to be undefined. Please make sure it is defined." >&5
16165
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16166
which seems to be undefined. Please make sure it is defined." >&2;}
16170
-) cat "$tmp/out" && rm -f "$tmp/out";;
16171
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16173
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16179
if test x"$ac_file" != x-; then
16181
$as_echo "/* $configure_input */" \
16182
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16183
} >"$tmp/config.h" \
16184
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16185
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16186
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16187
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16190
mv "$tmp/config.h" "$ac_file" \
16191
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16194
$as_echo "/* $configure_input */" \
16195
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16196
|| as_fn_error "could not create -" "$LINENO" 5
16198
# Compute "$ac_file"'s index in $config_headers.
16201
for _am_header in $config_headers :; do
16202
case $_am_header in
16203
$_am_arg | $_am_arg:* )
16206
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
16209
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16210
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16211
X"$_am_arg" : 'X\(//\)[^/]' \| \
16212
X"$_am_arg" : 'X\(//\)$' \| \
16213
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16214
$as_echo X"$_am_arg" |
16215
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16219
/^X\(\/\/\)[^/].*/{
16231
s/.*/./; q'`/stamp-h$_am_stamp_count
16234
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16235
$as_echo "$as_me: executing $ac_file commands" >&6;}
16240
case $ac_file$ac_mode in
16241
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16242
# Autoconf 2.62 quotes --file arguments for eval, but not when files
16243
# are listed without --file. Let's play safe and only enable the eval
16244
# if we detect the quoting.
16245
case $CONFIG_FILES in
16246
*\'*) eval set x "$CONFIG_FILES" ;;
16247
*) set x $CONFIG_FILES ;;
16252
# Strip MF so we end up with the name of the file.
16253
mf=`echo "$mf" | sed -e 's/:.*$//'`
16254
# Check whether this is an Automake generated Makefile or not.
16255
# We used to match only the files named `Makefile.in', but
16256
# some people rename them; so instead we look at the file content.
16257
# Grep'ing the first line is not enough: some people post-process
16258
# each Makefile.in and add a new line on top of each file to say so.
16259
# Grep'ing the whole file is not good either: AIX grep has a line
16260
# limit of 2048, but all sed's we know have understand at least 4000.
16261
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16262
dirpart=`$as_dirname -- "$mf" ||
16263
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16264
X"$mf" : 'X\(//\)[^/]' \| \
16265
X"$mf" : 'X\(//\)$' \| \
16266
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16268
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16272
/^X\(\/\/\)[^/].*/{
16288
# Extract the definition of DEPDIR, am__include, and am__quote
16289
# from the Makefile without running `make'.
16290
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16291
test -z "$DEPDIR" && continue
16292
am__include=`sed -n 's/^am__include = //p' < "$mf"`
16293
test -z "am__include" && continue
16294
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16295
# When using ansi2knr, U may be empty or an underscore; expand it
16296
U=`sed -n 's/^U = //p' < "$mf"`
16297
# Find all dependency output files, they are included files with
16298
# $(DEPDIR) in their names. We invoke sed twice because it is the
16299
# simplest approach to changing $(DEPDIR) to its actual value in the
16301
for file in `sed -n "
16302
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16303
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16304
# Make sure the directory exists.
16305
test -f "$dirpart/$file" && continue
16306
fdir=`$as_dirname -- "$file" ||
16307
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308
X"$file" : 'X\(//\)[^/]' \| \
16309
X"$file" : 'X\(//\)$' \| \
16310
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16311
$as_echo X"$file" |
16312
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16316
/^X\(\/\/\)[^/].*/{
16329
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16330
# echo "creating $dirpart/$file"
16331
echo '# dummy' > "$dirpart/$file"
16338
# See if we are running on zsh, and set the options which allow our
16339
# commands through without removal of \ escapes.
16340
if test -n "${ZSH_VERSION+set}" ; then
16341
setopt NO_GLOB_SUBST
16344
cfgfile="${ofile}T"
16345
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16348
cat <<_LT_EOF >> "$cfgfile"
16351
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16352
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16353
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16354
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16356
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16357
# 2006, 2007, 2008 Free Software Foundation, Inc.
16358
# Written by Gordon Matzigkeit, 1996
16360
# This file is part of GNU Libtool.
16362
# GNU Libtool is free software; you can redistribute it and/or
16363
# modify it under the terms of the GNU General Public License as
16364
# published by the Free Software Foundation; either version 2 of
16365
# the License, or (at your option) any later version.
16367
# As a special exception to the GNU General Public License,
16368
# if you distribute this file as part of a program or library that
16369
# is built using GNU Libtool, you may include this file under the
16370
# same distribution terms that you use for the rest of that program.
16372
# GNU Libtool is distributed in the hope that it will be useful,
16373
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16374
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16375
# GNU General Public License for more details.
16377
# You should have received a copy of the GNU General Public License
16378
# along with GNU Libtool; see the file COPYING. If not, a copy
16379
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16380
# obtained by writing to the Free Software Foundation, Inc.,
16381
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16384
# The names of the tagged configurations supported by this script.
16385
available_tags="CXX "
16387
# ### BEGIN LIBTOOL CONFIG
16389
# Which release of libtool.m4 was used?
16390
macro_version=$macro_version
16391
macro_revision=$macro_revision
16393
# Whether or not to build shared libraries.
16394
build_libtool_libs=$enable_shared
16396
# Whether or not to build static libraries.
16397
build_old_libs=$enable_static
16399
# What type of objects to build.
16402
# Whether or not to optimize for fast installation.
16403
fast_install=$enable_fast_install
16406
host_alias=$host_alias
16410
# The build system.
16411
build_alias=$build_alias
16415
# A sed program that does not truncate output.
16418
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16419
Xsed="\$SED -e 1s/^X//"
16421
# A grep program that handles long lines.
16427
# A literal string matcher.
16430
# A BSD- or MS-compatible name lister.
16433
# Whether we need soft or hard links.
16436
# What is the maximum length of a command?
16437
max_cmd_len=$max_cmd_len
16439
# Object file suffix (normally "o").
16442
# Executable file suffix (normally "").
16445
# whether the shell understands "unset".
16448
# turn spaces into newlines.
16451
# turn newlines into spaces.
16454
# How to create reloadable object files.
16455
reload_flag=$lt_reload_flag
16456
reload_cmds=$lt_reload_cmds
16458
# An object symbol dumper.
16459
OBJDUMP=$lt_OBJDUMP
16461
# Method to check whether dependent libraries are shared objects.
16462
deplibs_check_method=$lt_deplibs_check_method
16464
# Command to use when deplibs_check_method == "file_magic".
16465
file_magic_cmd=$lt_file_magic_cmd
16469
AR_FLAGS=$lt_AR_FLAGS
16471
# A symbol stripping program.
16474
# Commands used to install an old-style archive.
16476
old_postinstall_cmds=$lt_old_postinstall_cmds
16477
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16482
# LTCC compiler flags.
16483
LTCFLAGS=$lt_CFLAGS
16485
# Take the output of nm and produce a listing of raw symbols and C names.
16486
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16488
# Transform the output of nm in a proper C declaration.
16489
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16491
# Transform the output of nm in a C name address pair.
16492
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16494
# Transform the output of nm in a C name address pair when lib prefix is needed.
16495
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16497
# The name of the directory that contains temporary libtool files.
16500
# Shell to use when invoking shell scripts.
16503
# An echo program that does not interpret backslashes.
16506
# Used to examine libraries when file_magic_cmd begins with "file".
16507
MAGIC_CMD=$MAGIC_CMD
16509
# Must we lock files when doing compilation?
16510
need_locks=$lt_need_locks
16512
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16513
DSYMUTIL=$lt_DSYMUTIL
16515
# Tool to change global to local symbols on Mac OS X.
16518
# Tool to manipulate fat objects and archives on Mac OS X.
16521
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16524
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16525
OTOOL64=$lt_OTOOL64
16527
# Old archive suffix (normally "a").
16530
# Shared library suffix (normally ".so").
16531
shrext_cmds=$lt_shrext_cmds
16533
# The commands to extract the exported symbol list from a shared archive.
16534
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16536
# Variables whose values should be saved in libtool wrapper scripts and
16537
# restored at link time.
16538
variables_saved_for_relink=$lt_variables_saved_for_relink
16540
# Do we need the "lib" prefix for modules?
16541
need_lib_prefix=$need_lib_prefix
16543
# Do we need a version for libraries?
16544
need_version=$need_version
16546
# Library versioning type.
16547
version_type=$version_type
16549
# Shared library runtime path variable.
16550
runpath_var=$runpath_var
16552
# Shared library path variable.
16553
shlibpath_var=$shlibpath_var
16555
# Is shlibpath searched before the hard-coded library search path?
16556
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16558
# Format of library name prefix.
16559
libname_spec=$lt_libname_spec
16561
# List of archive names. First name is the real one, the rest are links.
16562
# The last name is the one that the linker finds with -lNAME
16563
library_names_spec=$lt_library_names_spec
16565
# The coded name of the library, if different from the real name.
16566
soname_spec=$lt_soname_spec
16568
# Command to use after installation of a shared archive.
16569
postinstall_cmds=$lt_postinstall_cmds
16571
# Command to use after uninstallation of a shared archive.
16572
postuninstall_cmds=$lt_postuninstall_cmds
16574
# Commands used to finish a libtool library installation in a directory.
16575
finish_cmds=$lt_finish_cmds
16577
# As "finish_cmds", except a single script fragment to be evaled but
16579
finish_eval=$lt_finish_eval
16581
# Whether we should hardcode library paths into libraries.
16582
hardcode_into_libs=$hardcode_into_libs
16584
# Compile-time system search path for libraries.
16585
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16587
# Run-time system search path for libraries.
16588
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16590
# Whether dlopen is supported.
16591
dlopen_support=$enable_dlopen
16593
# Whether dlopen of programs is supported.
16594
dlopen_self=$enable_dlopen_self
16596
# Whether dlopen of statically linked programs is supported.
16597
dlopen_self_static=$enable_dlopen_self_static
16599
# Commands to strip libraries.
16600
old_striplib=$lt_old_striplib
16601
striplib=$lt_striplib
16604
# The linker used to build libraries.
16607
# Commands used to build an old-style archive.
16608
old_archive_cmds=$lt_old_archive_cmds
16610
# A language specific compiler.
16613
# Is the compiler the GNU compiler?
16616
# Compiler flag to turn off builtin functions.
16617
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16619
# How to pass a linker flag through the compiler.
16620
wl=$lt_lt_prog_compiler_wl
16622
# Additional compiler flags for building library objects.
16623
pic_flag=$lt_lt_prog_compiler_pic
16625
# Compiler flag to prevent dynamic linking.
16626
link_static_flag=$lt_lt_prog_compiler_static
16628
# Does compiler simultaneously support -c and -o options?
16629
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16631
# Whether or not to add -lc for building shared libraries.
16632
build_libtool_need_lc=$archive_cmds_need_lc
16634
# Whether or not to disallow shared libs when runtime libs are static.
16635
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16637
# Compiler flag to allow reflexive dlopens.
16638
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16640
# Compiler flag to generate shared objects directly from archives.
16641
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16643
# Whether the compiler copes with passing no objects directly.
16644
compiler_needs_object=$lt_compiler_needs_object
16646
# Create an old-style archive from a shared archive.
16647
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16649
# Create a temporary old-style archive to link instead of a shared archive.
16650
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16652
# Commands used to build a shared archive.
16653
archive_cmds=$lt_archive_cmds
16654
archive_expsym_cmds=$lt_archive_expsym_cmds
16656
# Commands used to build a loadable module if different from building
16657
# a shared archive.
16658
module_cmds=$lt_module_cmds
16659
module_expsym_cmds=$lt_module_expsym_cmds
16661
# Whether we are building with GNU ld or not.
16662
with_gnu_ld=$lt_with_gnu_ld
16664
# Flag that allows shared libraries with undefined symbols to be built.
16665
allow_undefined_flag=$lt_allow_undefined_flag
16667
# Flag that enforces no undefined symbols.
16668
no_undefined_flag=$lt_no_undefined_flag
16670
# Flag to hardcode \$libdir into a binary during linking.
16671
# This must work even if \$libdir does not exist
16672
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16674
# If ld is used when linking, flag to hardcode \$libdir into a binary
16675
# during linking. This must work even if \$libdir does not exist.
16676
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16678
# Whether we need a single "-rpath" flag with a separated argument.
16679
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16681
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16682
# DIR into the resulting binary.
16683
hardcode_direct=$hardcode_direct
16685
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16686
# DIR into the resulting binary and the resulting library dependency is
16687
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16688
# library is relocated.
16689
hardcode_direct_absolute=$hardcode_direct_absolute
16691
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16692
# into the resulting binary.
16693
hardcode_minus_L=$hardcode_minus_L
16695
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16696
# into the resulting binary.
16697
hardcode_shlibpath_var=$hardcode_shlibpath_var
16699
# Set to "yes" if building a shared library automatically hardcodes DIR
16700
# into the library and all subsequent libraries and executables linked
16702
hardcode_automatic=$hardcode_automatic
16704
# Set to yes if linker adds runtime paths of dependent libraries
16705
# to runtime path list.
16706
inherit_rpath=$inherit_rpath
16708
# Whether libtool must link a program against all its dependency libraries.
16709
link_all_deplibs=$link_all_deplibs
16711
# Fix the shell variable \$srcfile for the compiler.
16712
fix_srcfile_path=$lt_fix_srcfile_path
16714
# Set to "yes" if exported symbols are required.
16715
always_export_symbols=$always_export_symbols
16717
# The commands to list exported symbols.
16718
export_symbols_cmds=$lt_export_symbols_cmds
16720
# Symbols that should not be listed in the preloaded symbols.
16721
exclude_expsyms=$lt_exclude_expsyms
16723
# Symbols that must always be exported.
16724
include_expsyms=$lt_include_expsyms
16726
# Commands necessary for linking programs (against libraries) with templates.
16727
prelink_cmds=$lt_prelink_cmds
16729
# Specify filename containing input files.
16730
file_list_spec=$lt_file_list_spec
16732
# How to hardcode a shared library path into an executable.
16733
hardcode_action=$hardcode_action
16735
# The directories searched by this compiler when creating a shared library.
16736
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16738
# Dependencies to place before and after the objects being linked to
16739
# create a shared library.
16740
predep_objects=$lt_predep_objects
16741
postdep_objects=$lt_postdep_objects
16742
predeps=$lt_predeps
16743
postdeps=$lt_postdeps
16745
# The library search path used internally by the compiler when linking
16746
# a shared library.
16747
compiler_lib_search_path=$lt_compiler_lib_search_path
16749
# ### END LIBTOOL CONFIG
16755
cat <<\_LT_EOF >> "$cfgfile"
16756
# AIX sometimes has problems with the GCC collect2 program. For some
16757
# reason, if we set the COLLECT_NAMES environment variable, the problems
16758
# vanish in a puff of smoke.
16759
if test "X${COLLECT_NAMES+set}" != Xset; then
16761
export COLLECT_NAMES
16768
ltmain="$ac_aux_dir/ltmain.sh"
16771
# We use sed instead of cat because bash on DJGPP gets confused if
16772
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16773
# text mode, it properly converts lines to CR/LF. This bash problem
16774
# is reportedly fixed, but why not run on old versions too?
16775
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16776
|| (rm -f "$cfgfile"; exit 1)
16780
cat << \_LT_EOF >> "$cfgfile"
16782
# func_dirname file append nondir_replacement
16783
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16784
# otherwise set result to NONDIR_REPLACEMENT.
16788
*/*) func_dirname_result="${1%/*}${2}" ;;
16789
* ) func_dirname_result="${3}" ;;
16793
# func_basename file
16796
func_basename_result="${1##*/}"
16799
# func_dirname_and_basename file append nondir_replacement
16800
# perform func_basename and func_dirname in a single function
16802
# dirname: Compute the dirname of FILE. If nonempty,
16803
# add APPEND to the result, otherwise set result
16804
# to NONDIR_REPLACEMENT.
16805
# value returned in "$func_dirname_result"
16806
# basename: Compute filename of FILE.
16807
# value retuned in "$func_basename_result"
16808
# Implementation must be kept synchronized with func_dirname
16809
# and func_basename. For efficiency, we do not delegate to
16810
# those functions but instead duplicate the functionality here.
16811
func_dirname_and_basename ()
16814
*/*) func_dirname_result="${1%/*}${2}" ;;
16815
* ) func_dirname_result="${3}" ;;
16817
func_basename_result="${1##*/}"
16820
# func_stripname prefix suffix name
16821
# strip PREFIX and SUFFIX off of NAME.
16822
# PREFIX and SUFFIX must not contain globbing or regex special
16823
# characters, hashes, percent signs, but SUFFIX may contain a leading
16824
# dot (in which case that matches only a dot).
16827
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16828
# positional parameters, so assign one to ordinary parameter first.
16829
func_stripname_result=${3}
16830
func_stripname_result=${func_stripname_result#"${1}"}
16831
func_stripname_result=${func_stripname_result%"${2}"}
16837
func_opt_split_opt=${1%%=*}
16838
func_opt_split_arg=${1#*=}
16845
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16846
*) func_lo2o_result=${1} ;;
16850
# func_xform libobj-or-source
16853
func_xform_result=${1%.*}.lo
16856
# func_arith arithmetic-term...
16859
func_arith_result=$(( $* ))
16863
# STRING may not start with a hyphen.
16866
func_len_result=${#1}
16871
*) # Bourne compatible functions.
16872
cat << \_LT_EOF >> "$cfgfile"
16874
# func_dirname file append nondir_replacement
16875
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16876
# otherwise set result to NONDIR_REPLACEMENT.
16879
# Extract subdirectory from the argument.
16880
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16881
if test "X$func_dirname_result" = "X${1}"; then
16882
func_dirname_result="${3}"
16884
func_dirname_result="$func_dirname_result${2}"
16888
# func_basename file
16891
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16895
# func_stripname prefix suffix name
16896
# strip PREFIX and SUFFIX off of NAME.
16897
# PREFIX and SUFFIX must not contain globbing or regex special
16898
# characters, hashes, percent signs, but SUFFIX may contain a leading
16899
# dot (in which case that matches only a dot).
16900
# func_strip_suffix prefix name
16904
.*) func_stripname_result=`$ECHO "X${3}" \
16905
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16906
*) func_stripname_result=`$ECHO "X${3}" \
16907
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16912
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16913
my_sed_long_arg='1s/^-[^=]*=//'
16918
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16919
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16925
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16928
# func_xform libobj-or-source
16931
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16934
# func_arith arithmetic-term...
16937
func_arith_result=`expr "$@"`
16941
# STRING may not start with a hyphen.
16944
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16950
case $lt_shell_append in
16952
cat << \_LT_EOF >> "$cfgfile"
16954
# func_append var value
16955
# Append VALUE to the end of shell variable VAR.
16963
cat << \_LT_EOF >> "$cfgfile"
16965
# func_append var value
16966
# Append VALUE to the end of shell variable VAR.
16977
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16978
|| (rm -f "$cfgfile"; exit 1)
16980
mv -f "$cfgfile" "$ofile" ||
16981
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16985
cat <<_LT_EOF >> "$ofile"
16987
# ### BEGIN LIBTOOL TAG CONFIG: CXX
16989
# The linker used to build libraries.
16992
# Commands used to build an old-style archive.
16993
old_archive_cmds=$lt_old_archive_cmds_CXX
16995
# A language specific compiler.
16996
CC=$lt_compiler_CXX
16998
# Is the compiler the GNU compiler?
17001
# Compiler flag to turn off builtin functions.
17002
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17004
# How to pass a linker flag through the compiler.
17005
wl=$lt_lt_prog_compiler_wl_CXX
17007
# Additional compiler flags for building library objects.
17008
pic_flag=$lt_lt_prog_compiler_pic_CXX
17010
# Compiler flag to prevent dynamic linking.
17011
link_static_flag=$lt_lt_prog_compiler_static_CXX
17013
# Does compiler simultaneously support -c and -o options?
17014
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17016
# Whether or not to add -lc for building shared libraries.
17017
build_libtool_need_lc=$archive_cmds_need_lc_CXX
17019
# Whether or not to disallow shared libs when runtime libs are static.
17020
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17022
# Compiler flag to allow reflexive dlopens.
17023
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17025
# Compiler flag to generate shared objects directly from archives.
17026
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17028
# Whether the compiler copes with passing no objects directly.
17029
compiler_needs_object=$lt_compiler_needs_object_CXX
17031
# Create an old-style archive from a shared archive.
17032
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17034
# Create a temporary old-style archive to link instead of a shared archive.
17035
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17037
# Commands used to build a shared archive.
17038
archive_cmds=$lt_archive_cmds_CXX
17039
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17041
# Commands used to build a loadable module if different from building
17042
# a shared archive.
17043
module_cmds=$lt_module_cmds_CXX
17044
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17046
# Whether we are building with GNU ld or not.
17047
with_gnu_ld=$lt_with_gnu_ld_CXX
17049
# Flag that allows shared libraries with undefined symbols to be built.
17050
allow_undefined_flag=$lt_allow_undefined_flag_CXX
17052
# Flag that enforces no undefined symbols.
17053
no_undefined_flag=$lt_no_undefined_flag_CXX
17055
# Flag to hardcode \$libdir into a binary during linking.
17056
# This must work even if \$libdir does not exist
17057
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17059
# If ld is used when linking, flag to hardcode \$libdir into a binary
17060
# during linking. This must work even if \$libdir does not exist.
17061
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17063
# Whether we need a single "-rpath" flag with a separated argument.
17064
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17066
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17067
# DIR into the resulting binary.
17068
hardcode_direct=$hardcode_direct_CXX
17070
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17071
# DIR into the resulting binary and the resulting library dependency is
17072
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17073
# library is relocated.
17074
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17076
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17077
# into the resulting binary.
17078
hardcode_minus_L=$hardcode_minus_L_CXX
17080
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17081
# into the resulting binary.
17082
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17084
# Set to "yes" if building a shared library automatically hardcodes DIR
17085
# into the library and all subsequent libraries and executables linked
17087
hardcode_automatic=$hardcode_automatic_CXX
17089
# Set to yes if linker adds runtime paths of dependent libraries
17090
# to runtime path list.
17091
inherit_rpath=$inherit_rpath_CXX
17093
# Whether libtool must link a program against all its dependency libraries.
17094
link_all_deplibs=$link_all_deplibs_CXX
17096
# Fix the shell variable \$srcfile for the compiler.
17097
fix_srcfile_path=$lt_fix_srcfile_path_CXX
17099
# Set to "yes" if exported symbols are required.
17100
always_export_symbols=$always_export_symbols_CXX
17102
# The commands to list exported symbols.
17103
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17105
# Symbols that should not be listed in the preloaded symbols.
17106
exclude_expsyms=$lt_exclude_expsyms_CXX
17108
# Symbols that must always be exported.
17109
include_expsyms=$lt_include_expsyms_CXX
17111
# Commands necessary for linking programs (against libraries) with templates.
17112
prelink_cmds=$lt_prelink_cmds_CXX
17114
# Specify filename containing input files.
17115
file_list_spec=$lt_file_list_spec_CXX
17117
# How to hardcode a shared library path into an executable.
17118
hardcode_action=$hardcode_action_CXX
17120
# The directories searched by this compiler when creating a shared library.
17121
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17123
# Dependencies to place before and after the objects being linked to
17124
# create a shared library.
17125
predep_objects=$lt_predep_objects_CXX
17126
postdep_objects=$lt_postdep_objects_CXX
17127
predeps=$lt_predeps_CXX
17128
postdeps=$lt_postdeps_CXX
17130
# The library search path used internally by the compiler when linking
17131
# a shared library.
17132
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17134
# ### END LIBTOOL TAG CONFIG: CXX
17145
ac_clean_files=$ac_clean_files_save
17147
test $ac_write_fail = 0 ||
17148
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17151
# configure is writing to config.log, and then calls config.status.
17152
# config.status does its own redirection, appending to config.log.
17153
# Unfortunately, on DOS this fails, as config.log is still kept open
17154
# by configure, so config.status won't be able to write to it; its
17155
# output is simply discarded. So we exec the FD to /dev/null,
17156
# effectively closing config.log, so it can be properly (re)opened and
17157
# appended to by config.status. When coming back to configure, we
17158
# need to make the FD available again.
17159
if test "$no_create" != yes; then
17161
ac_config_status_args=
17162
test "$silent" = yes &&
17163
ac_config_status_args="$ac_config_status_args --quiet"
17165
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17167
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17168
# would make configure fail if this is the last instruction.
17169
$ac_cs_success || as_fn_exit $?
17171
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17172
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17173
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}