2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for sqlite3cc 0.1.0.
5
# Report bugs to <edam@waxworlds.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org and edam@waxworlds.org
232
$0: about your system, including any error possibly output
233
$0: before this message. Then install a modern shell, or
234
$0: manually run the script under such a shell if you do
241
SHELL=${CONFIG_SHELL-/bin/sh}
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
247
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
252
# Portably unset VAR.
255
{ eval $1=; unset $1;}
259
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279
# Create "$as_dir" as a directory, including parents if necessary.
284
-*) as_dir=./$as_dir;;
286
test -d "$as_dir" || eval $as_mkdir_p || {
290
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
as_dirs="'$as_qdir' $as_dirs"
294
as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
X"$as_dir" : 'X\(//\)[^/]' \| \
297
X"$as_dir" : 'X\(//\)$' \| \
298
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317
test -d "$as_dir" && break
319
test -z "$as_dirs" || eval "mkdir $as_dirs"
320
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
eval 'as_fn_append ()
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355
as_val=`expr "$@" || test $? -eq 1`
360
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
367
as_status=$?; test $as_status -eq 0 && as_status=1
369
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372
$as_echo "$as_me: error: $1" >&2
373
as_fn_exit $as_status
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
X"$0" : 'X\(//\)$' \| \
398
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400
sed '/^.*\/\([^/][^/]*\)\/*$/{
414
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442
chmod +x "$as_me.lineno" ||
443
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
# Don't try to exec as it changes $[0], causing all sort of problems
446
# (the dirname of $[0] is not the place where we might find the
447
# original and so on. Autoconf is especially sensitive to this).
449
# Exit status is that of the last command.
453
ECHO_C= ECHO_N= ECHO_T=
454
case `echo -n x` in #(((((
456
case `echo 'xy\c'` in
457
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
459
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
rm -f conf$$.dir/conf$$.file
471
mkdir conf$$.dir 2>/dev/null
473
if (echo >conf$$.file) 2>/dev/null; then
474
if ln -s conf$$.file conf$$ 2>/dev/null; then
476
# ... but there are two gotchas:
477
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
# In both cases, we have to default to `cp -p'.
480
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482
elif ln conf$$.file conf$$ 2>/dev/null; then
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
493
if mkdir -p . 2>/dev/null; then
494
as_mkdir_p='mkdir -p "$as_dir"'
496
test -d ./-p && rmdir ./-p
500
if test -x / >/dev/null 2>&1; then
503
if ls -dL / >/dev/null 2>&1; then
510
if test -d "$1"; then
516
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517
???[sx]*):;;*)false;;esac;fi
521
as_executable_p=$as_test_x
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
# Check that we are running under the correct shell.
532
SHELL=${CONFIG_SHELL-/bin/sh}
536
# Remove one level of quotation (which was required for Make).
537
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542
if test "X$1" = X--no-reexec; then
543
# Discard the --no-reexec flag, and continue.
545
elif test "X$1" = X--fallback-echo; then
546
# Avoid inline document here, it may be left over
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549
# Yippee, $ECHO works!
552
# Restart under the correct shell.
553
exec $SHELL "$0" --no-reexec ${1+"$@"}
556
if test "X$1" = X--fallback-echo; then
557
# used as fallback echo
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
if test -z "$lt_ECHO"; then
570
if test "X${echo_test_string+set}" != Xset; then
571
# find a string as large as possible, as long as the shell can cope with it
572
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584
test "X$echo_testing_string" = "X$echo_test_string"; then
587
# The Solaris, AIX, and Digital Unix default echo programs unquote
588
# backslashes. This makes it impossible to quote backslashes using
589
# echo "$something" | sed 's/\\/\\\\/g'
591
# So, first we look for a working echo in the user's PATH.
593
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594
for dir in $PATH /usr/ucb; do
596
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599
test "X$echo_testing_string" = "X$echo_test_string"; then
606
if test "X$ECHO" = Xecho; then
607
# We didn't find a better echo, so look for alternatives.
608
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610
test "X$echo_testing_string" = "X$echo_test_string"; then
611
# This shell has a builtin print -r that does the trick.
613
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614
test "X$CONFIG_SHELL" != X/bin/ksh; then
615
# If we have ksh, try running configure again with it.
616
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617
export ORIGINAL_CONFIG_SHELL
618
CONFIG_SHELL=/bin/ksh
620
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626
test "X$echo_testing_string" = "X$echo_test_string"; then
629
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630
test "X$echo_testing_string" = 'X\t' &&
631
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632
test "X$echo_testing_string" = "X$echo_test_string"; then
633
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635
SHELL="$CONFIG_SHELL"
637
ECHO="$CONFIG_SHELL $0 --fallback-echo"
638
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
test "X$echo_testing_string" = 'X\t' &&
640
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
test "X$echo_testing_string" = "X$echo_test_string"; then
642
ECHO="$CONFIG_SHELL $0 --fallback-echo"
644
# maybe with a smaller string...
647
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655
if test "$prev" != 'sed 50q "$0"'; then
656
echo_test_string=`eval $prev`
657
export echo_test_string
658
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660
# Oops. We lost completely, so just stick with echo.
669
# Copy echo and quote the copy suitably for passing to libtool from
670
# the Makefile, instead of quoting the original, which is used later.
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679
exec 7<&0 </dev/null 6>&1
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
ac_default_prefix=/usr/local
691
ac_config_libobj_dir=.
698
# Identity of this package.
699
PACKAGE_NAME='sqlite3cc'
700
PACKAGE_TARNAME='sqlite3cc'
701
PACKAGE_VERSION='0.1.0'
702
PACKAGE_STRING='sqlite3cc 0.1.0'
703
PACKAGE_BUGREPORT='edam@waxworlds.org'
706
ac_unique_file="src/database.cc"
707
# Factoring default headers for most tests.
708
ac_includes_default="\
710
#ifdef HAVE_SYS_TYPES_H
711
# include <sys/types.h>
713
#ifdef HAVE_SYS_STAT_H
714
# include <sys/stat.h>
720
# ifdef HAVE_STDLIB_H
725
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730
#ifdef HAVE_STRINGS_H
731
# include <strings.h>
733
#ifdef HAVE_INTTYPES_H
734
# include <inttypes.h>
743
ac_subst_vars='am__EXEEXT_FALSE
806
INSTALL_STRIP_PROGRAM
848
program_transform_name
861
enable_option_checking
866
enable_dependency_tracking
870
ac_precious_vars='build_alias
885
# Initialize some variables set by options.
887
ac_init_version=false
888
ac_unrecognized_opts=
890
# The variables have the same names as the options, with
891
# dashes changed to underlines.
899
program_transform_name=s,x,x,
907
# Installation directory options.
908
# These are left unexpanded so users can "make install exec_prefix=/foo"
909
# and all the variables that are supposed to be based on exec_prefix
910
# by default will actually change.
911
# Use braces instead of parens because sh, perl, etc. also accept them.
912
# (The list follows the same order as the GNU Coding Standards.)
913
bindir='${exec_prefix}/bin'
914
sbindir='${exec_prefix}/sbin'
915
libexecdir='${exec_prefix}/libexec'
916
datarootdir='${prefix}/share'
917
datadir='${datarootdir}'
918
sysconfdir='${prefix}/etc'
919
sharedstatedir='${prefix}/com'
920
localstatedir='${prefix}/var'
921
includedir='${prefix}/include'
922
oldincludedir='/usr/include'
923
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924
infodir='${datarootdir}/info'
929
libdir='${exec_prefix}/lib'
930
localedir='${datarootdir}/locale'
931
mandir='${datarootdir}/man'
937
# If the previous option needs an argument, assign it.
938
if test -n "$ac_prev"; then
939
eval $ac_prev=\$ac_option
945
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949
# Accept the important Cygnus configure options, so we can diagnose typos.
951
case $ac_dashdash$ac_option in
955
-bindir | --bindir | --bindi | --bind | --bin | --bi)
957
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960
-build | --build | --buil | --bui | --bu)
961
ac_prev=build_alias ;;
962
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
963
build_alias=$ac_optarg ;;
965
-cache-file | --cache-file | --cache-fil | --cache-fi \
966
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967
ac_prev=cache_file ;;
968
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970
cache_file=$ac_optarg ;;
973
cache_file=config.cache ;;
975
-datadir | --datadir | --datadi | --datad)
977
-datadir=* | --datadir=* | --datadi=* | --datad=*)
978
datadir=$ac_optarg ;;
980
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981
| --dataroo | --dataro | --datar)
982
ac_prev=datarootdir ;;
983
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985
datarootdir=$ac_optarg ;;
987
-disable-* | --disable-*)
988
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989
# Reject names that are not valid shell variable names.
990
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991
as_fn_error "invalid feature name: $ac_useropt"
992
ac_useropt_orig=$ac_useropt
993
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994
case $ac_user_opts in
998
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999
ac_unrecognized_sep=', ';;
1001
eval enable_$ac_useropt=no ;;
1003
-docdir | --docdir | --docdi | --doc | --do)
1005
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006
docdir=$ac_optarg ;;
1008
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011
dvidir=$ac_optarg ;;
1013
-enable-* | --enable-*)
1014
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015
# Reject names that are not valid shell variable names.
1016
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017
as_fn_error "invalid feature name: $ac_useropt"
1018
ac_useropt_orig=$ac_useropt
1019
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020
case $ac_user_opts in
1022
"enable_$ac_useropt"
1024
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025
ac_unrecognized_sep=', ';;
1027
eval enable_$ac_useropt=\$ac_optarg ;;
1029
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031
| --exec | --exe | --ex)
1032
ac_prev=exec_prefix ;;
1033
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035
| --exec=* | --exe=* | --ex=*)
1036
exec_prefix=$ac_optarg ;;
1038
-gas | --gas | --ga | --g)
1039
# Obsolete; use --with-gas.
1042
-help | --help | --hel | --he | -h)
1043
ac_init_help=long ;;
1044
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045
ac_init_help=recursive ;;
1046
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047
ac_init_help=short ;;
1049
-host | --host | --hos | --ho)
1050
ac_prev=host_alias ;;
1051
-host=* | --host=* | --hos=* | --ho=*)
1052
host_alias=$ac_optarg ;;
1054
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058
htmldir=$ac_optarg ;;
1060
-includedir | --includedir | --includedi | --included | --include \
1061
| --includ | --inclu | --incl | --inc)
1062
ac_prev=includedir ;;
1063
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064
| --includ=* | --inclu=* | --incl=* | --inc=*)
1065
includedir=$ac_optarg ;;
1067
-infodir | --infodir | --infodi | --infod | --info | --inf)
1069
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070
infodir=$ac_optarg ;;
1072
-libdir | --libdir | --libdi | --libd)
1074
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1075
libdir=$ac_optarg ;;
1077
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078
| --libexe | --libex | --libe)
1079
ac_prev=libexecdir ;;
1080
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081
| --libexe=* | --libex=* | --libe=*)
1082
libexecdir=$ac_optarg ;;
1084
-localedir | --localedir | --localedi | --localed | --locale)
1085
ac_prev=localedir ;;
1086
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087
localedir=$ac_optarg ;;
1089
-localstatedir | --localstatedir | --localstatedi | --localstated \
1090
| --localstate | --localstat | --localsta | --localst | --locals)
1091
ac_prev=localstatedir ;;
1092
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094
localstatedir=$ac_optarg ;;
1096
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099
mandir=$ac_optarg ;;
1101
-nfp | --nfp | --nf)
1102
# Obsolete; use --without-fp.
1105
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106
| --no-cr | --no-c | -n)
1109
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115
| --oldin | --oldi | --old | --ol | --o)
1116
ac_prev=oldincludedir ;;
1117
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120
oldincludedir=$ac_optarg ;;
1122
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125
prefix=$ac_optarg ;;
1127
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1128
| --program-pre | --program-pr | --program-p)
1129
ac_prev=program_prefix ;;
1130
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1131
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132
program_prefix=$ac_optarg ;;
1134
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1135
| --program-suf | --program-su | --program-s)
1136
ac_prev=program_suffix ;;
1137
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1138
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139
program_suffix=$ac_optarg ;;
1141
-program-transform-name | --program-transform-name \
1142
| --program-transform-nam | --program-transform-na \
1143
| --program-transform-n | --program-transform- \
1144
| --program-transform | --program-transfor \
1145
| --program-transfo | --program-transf \
1146
| --program-trans | --program-tran \
1147
| --progr-tra | --program-tr | --program-t)
1148
ac_prev=program_transform_name ;;
1149
-program-transform-name=* | --program-transform-name=* \
1150
| --program-transform-nam=* | --program-transform-na=* \
1151
| --program-transform-n=* | --program-transform-=* \
1152
| --program-transform=* | --program-transfor=* \
1153
| --program-transfo=* | --program-transf=* \
1154
| --program-trans=* | --program-tran=* \
1155
| --progr-tra=* | --program-tr=* | --program-t=*)
1156
program_transform_name=$ac_optarg ;;
1158
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161
pdfdir=$ac_optarg ;;
1163
-psdir | --psdir | --psdi | --psd | --ps)
1165
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169
| -silent | --silent | --silen | --sile | --sil)
1172
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176
sbindir=$ac_optarg ;;
1178
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1179
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180
| --sharedst | --shareds | --shared | --share | --shar \
1182
ac_prev=sharedstatedir ;;
1183
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187
sharedstatedir=$ac_optarg ;;
1189
-site | --site | --sit)
1191
-site=* | --site=* | --sit=*)
1194
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197
srcdir=$ac_optarg ;;
1199
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200
| --syscon | --sysco | --sysc | --sys | --sy)
1201
ac_prev=sysconfdir ;;
1202
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204
sysconfdir=$ac_optarg ;;
1206
-target | --target | --targe | --targ | --tar | --ta | --t)
1207
ac_prev=target_alias ;;
1208
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209
target_alias=$ac_optarg ;;
1211
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1214
-version | --version | --versio | --versi | --vers | -V)
1215
ac_init_version=: ;;
1218
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219
# Reject names that are not valid shell variable names.
1220
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221
as_fn_error "invalid package name: $ac_useropt"
1222
ac_useropt_orig=$ac_useropt
1223
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224
case $ac_user_opts in
1228
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229
ac_unrecognized_sep=', ';;
1231
eval with_$ac_useropt=\$ac_optarg ;;
1233
-without-* | --without-*)
1234
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235
# Reject names that are not valid shell variable names.
1236
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237
as_fn_error "invalid package name: $ac_useropt"
1238
ac_useropt_orig=$ac_useropt
1239
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240
case $ac_user_opts in
1244
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245
ac_unrecognized_sep=', ';;
1247
eval with_$ac_useropt=no ;;
1250
# Obsolete; use --with-x.
1253
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254
| --x-incl | --x-inc | --x-in | --x-i)
1255
ac_prev=x_includes ;;
1256
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258
x_includes=$ac_optarg ;;
1260
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1261
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262
ac_prev=x_libraries ;;
1263
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265
x_libraries=$ac_optarg ;;
1267
-*) as_fn_error "unrecognized option: \`$ac_option'
1268
Try \`$0 --help' for more information."
1272
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273
# Reject names that are not valid shell variable names.
1274
case $ac_envvar in #(
1275
'' | [0-9]* | *[!_$as_cr_alnum]* )
1276
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1278
eval $ac_envvar=\$ac_optarg
1279
export $ac_envvar ;;
1282
# FIXME: should be removed in autoconf 3.0.
1283
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292
if test -n "$ac_prev"; then
1293
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294
as_fn_error "missing argument to $ac_option"
1297
if test -n "$ac_unrecognized_opts"; then
1298
case $enable_option_checking in
1300
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1301
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305
# Check all directory arguments for consistency.
1306
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307
datadir sysconfdir sharedstatedir localstatedir includedir \
1308
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309
libdir localedir mandir
1311
eval ac_val=\$$ac_var
1312
# Remove trailing slashes.
1315
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316
eval $ac_var=\$ac_val;;
1318
# Be sure to have absolute directory names.
1320
[\\/$]* | ?:[\\/]* ) continue;;
1321
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1326
# There might be people who depend on the old broken behavior: `$host'
1327
# used to hold the argument of --host etc.
1328
# FIXME: To remove some day.
1331
target=$target_alias
1333
# FIXME: To remove some day.
1334
if test "x$host_alias" != x; then
1335
if test "x$build_alias" = x; then
1336
cross_compiling=maybe
1337
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338
If a cross compiler is detected then cross compile mode will be used." >&2
1339
elif test "x$build_alias" != "x$host_alias"; then
1345
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
test "$silent" = yes && exec 6>/dev/null
1350
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351
ac_ls_di=`ls -di .` &&
1352
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353
as_fn_error "working directory cannot be determined"
1354
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355
as_fn_error "pwd does not report name of working directory"
1358
# Find the source files, if location was not specified.
1359
if test -z "$srcdir"; then
1360
ac_srcdir_defaulted=yes
1361
# Try the directory containing this script, then the parent directory.
1362
ac_confdir=`$as_dirname -- "$as_myself" ||
1363
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364
X"$as_myself" : 'X\(//\)[^/]' \| \
1365
X"$as_myself" : 'X\(//\)$' \| \
1366
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367
$as_echo X"$as_myself" |
1368
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386
if test ! -r "$srcdir/$ac_unique_file"; then
1390
ac_srcdir_defaulted=no
1392
if test ! -r "$srcdir/$ac_unique_file"; then
1393
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1396
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1400
# When building in place, set srcdir=.
1401
if test "$ac_abs_confdir" = "$ac_pwd"; then
1404
# Remove unnecessary trailing slashes from srcdir.
1405
# Double slashes in file names in object file debugging info
1406
# mess up M-x gdb in Emacs.
1408
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410
for ac_var in $ac_precious_vars; do
1411
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412
eval ac_env_${ac_var}_value=\$${ac_var}
1413
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418
# Report the --help message.
1420
if test "$ac_init_help" = "long"; then
1421
# Omit some internal or obsolete options to make the list less imposing.
1422
# This message is too long to be a string in the A/UX 3.1 sh.
1424
\`configure' configures sqlite3cc 0.1.0 to adapt to many kinds of systems.
1426
Usage: $0 [OPTION]... [VAR=VALUE]...
1428
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429
VAR=VALUE. See below for descriptions of some of the useful variables.
1431
Defaults for the options are specified in brackets.
1434
-h, --help display this help and exit
1435
--help=short display options specific to this package
1436
--help=recursive display the short help of all the included packages
1437
-V, --version display version information and exit
1438
-q, --quiet, --silent do not print \`checking...' messages
1439
--cache-file=FILE cache test results in FILE [disabled]
1440
-C, --config-cache alias for \`--cache-file=config.cache'
1441
-n, --no-create do not create output files
1442
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
Installation directories:
1445
--prefix=PREFIX install architecture-independent files in PREFIX
1446
[$ac_default_prefix]
1447
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450
By default, \`make install' will install all the files in
1451
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453
for instance \`--prefix=\$HOME'.
1455
For better control, use the options below.
1457
Fine tuning of the installation directories:
1458
--bindir=DIR user executables [EPREFIX/bin]
1459
--sbindir=DIR system admin executables [EPREFIX/sbin]
1460
--libexecdir=DIR program executables [EPREFIX/libexec]
1461
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464
--libdir=DIR object code libraries [EPREFIX/lib]
1465
--includedir=DIR C header files [PREFIX/include]
1466
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1467
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469
--infodir=DIR info documentation [DATAROOTDIR/info]
1470
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471
--mandir=DIR man documentation [DATAROOTDIR/man]
1472
--docdir=DIR documentation root [DATAROOTDIR/doc/sqlite3cc]
1473
--htmldir=DIR html documentation [DOCDIR]
1474
--dvidir=DIR dvi documentation [DOCDIR]
1475
--pdfdir=DIR pdf documentation [DOCDIR]
1476
--psdir=DIR ps documentation [DOCDIR]
1482
--program-prefix=PREFIX prepend PREFIX to installed program names
1483
--program-suffix=SUFFIX append SUFFIX to installed program names
1484
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1487
--build=BUILD configure for building on BUILD [guessed]
1488
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1492
if test -n "$ac_init_help"; then
1493
case $ac_init_help in
1494
short | recursive ) echo "Configuration of sqlite3cc 0.1.0:";;
1499
--disable-option-checking ignore unrecognized --enable/--with options
1500
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502
--enable-shared[=PKGS] build shared libraries [default=yes]
1503
--enable-static[=PKGS] build static libraries [default=yes]
1504
--enable-fast-install[=PKGS]
1505
optimize for fast installation [default=yes]
1506
--disable-dependency-tracking speeds up one-time build
1507
--enable-dependency-tracking do not reject slow dependency extractors
1508
--disable-libtool-lock avoid locking (might break parallel builds)
1511
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513
--with-pic try to use only PIC/non-PIC objects [default=use
1515
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517
Some influential environment variables:
1518
CC C compiler command
1519
CFLAGS C compiler flags
1520
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521
nonstandard directory <lib dir>
1522
LIBS libraries to pass to the linker, e.g. -l<library>
1523
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524
you have headers in a nonstandard directory <include dir>
1526
CXX C++ compiler command
1527
CXXFLAGS C++ compiler flags
1528
CXXCPP C++ preprocessor
1530
Use these variables to override the choices made by `configure' or to help
1531
it to find libraries and programs with nonstandard names/locations.
1533
Report bugs to <edam@waxworlds.org>.
1538
if test "$ac_init_help" = "recursive"; then
1539
# If there are subdirs, report their specific --help.
1540
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541
test -d "$ac_dir" ||
1542
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550
# A ".." for each directory in $ac_dir_suffix.
1551
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552
case $ac_top_builddir_sub in
1553
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557
ac_abs_top_builddir=$ac_pwd
1558
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559
# for backward compatibility:
1560
ac_top_builddir=$ac_top_build_prefix
1563
.) # We are building in place.
1565
ac_top_srcdir=$ac_top_builddir_sub
1566
ac_abs_top_srcdir=$ac_pwd ;;
1567
[\\/]* | ?:[\\/]* ) # Absolute name.
1568
ac_srcdir=$srcdir$ac_dir_suffix;
1569
ac_top_srcdir=$srcdir
1570
ac_abs_top_srcdir=$srcdir ;;
1572
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573
ac_top_srcdir=$ac_top_build_prefix$srcdir
1574
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
cd "$ac_dir" || { ac_status=$?; continue; }
1579
# Check for guested configure.
1580
if test -f "$ac_srcdir/configure.gnu"; then
1582
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583
elif test -f "$ac_srcdir/configure"; then
1585
$SHELL "$ac_srcdir/configure" --help=recursive
1587
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589
cd "$ac_pwd" || { ac_status=$?; break; }
1593
test -n "$ac_init_help" && exit $ac_status
1594
if $ac_init_version; then
1596
sqlite3cc configure 0.1.0
1597
generated by GNU Autoconf 2.64
1599
Copyright (C) 2009 Free Software Foundation, Inc.
1600
This configure script is free software; the Free Software Foundation
1601
gives unlimited permission to copy, distribute and modify it.
1606
## ------------------------ ##
1607
## Autoconf initialization. ##
1608
## ------------------------ ##
1610
# ac_fn_c_try_compile LINENO
1611
# --------------------------
1612
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613
ac_fn_c_try_compile ()
1615
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616
rm -f conftest.$ac_objext
1617
if { { ac_try="$ac_compile"
1619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620
*) ac_try_echo=$ac_try;;
1622
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623
$as_echo "$ac_try_echo"; } >&5
1624
(eval "$ac_compile") 2>conftest.err
1626
if test -s conftest.err; then
1627
grep -v '^ *+' conftest.err >conftest.er1
1628
cat conftest.er1 >&5
1629
mv -f conftest.er1 conftest.err
1631
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632
test $ac_status = 0; } && {
1633
test -z "$ac_c_werror_flag" ||
1634
test ! -s conftest.err
1635
} && test -s conftest.$ac_objext; then :
1638
$as_echo "$as_me: failed program was:" >&5
1639
sed 's/^/| /' conftest.$ac_ext >&5
1643
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646
} # ac_fn_c_try_compile
1648
# ac_fn_c_try_link LINENO
1649
# -----------------------
1650
# Try to link conftest.$ac_ext, and return whether this succeeded.
1653
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654
rm -f conftest.$ac_objext conftest$ac_exeext
1655
if { { ac_try="$ac_link"
1657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658
*) ac_try_echo=$ac_try;;
1660
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661
$as_echo "$ac_try_echo"; } >&5
1662
(eval "$ac_link") 2>conftest.err
1664
if test -s conftest.err; then
1665
grep -v '^ *+' conftest.err >conftest.er1
1666
cat conftest.er1 >&5
1667
mv -f conftest.er1 conftest.err
1669
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670
test $ac_status = 0; } && {
1671
test -z "$ac_c_werror_flag" ||
1672
test ! -s conftest.err
1673
} && test -s conftest$ac_exeext && {
1674
test "$cross_compiling" = yes ||
1675
$as_test_x conftest$ac_exeext
1679
$as_echo "$as_me: failed program was:" >&5
1680
sed 's/^/| /' conftest.$ac_ext >&5
1684
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1685
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1686
# interfere with the next link command; also delete a directory that is
1687
# left behind by Apple's compiler. We do this before executing the actions.
1688
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692
} # ac_fn_c_try_link
1694
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1695
# -------------------------------------------------------
1696
# Tests whether HEADER exists and can be compiled using the include files in
1697
# INCLUDES, setting the cache variable VAR accordingly.
1698
ac_fn_c_check_header_compile ()
1700
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702
$as_echo_n "checking for $2... " >&6; }
1703
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704
$as_echo_n "(cached) " >&6
1706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707
/* end confdefs.h. */
1711
if ac_fn_c_try_compile "$LINENO"; then :
1716
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720
$as_echo "$ac_res" >&6; }
1721
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723
} # ac_fn_c_check_header_compile
1725
# ac_fn_c_try_cpp LINENO
1726
# ----------------------
1727
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731
if { { ac_try="$ac_cpp conftest.$ac_ext"
1733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734
*) ac_try_echo=$ac_try;;
1736
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737
$as_echo "$ac_try_echo"; } >&5
1738
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740
if test -s conftest.err; then
1741
grep -v '^ *+' conftest.err >conftest.er1
1742
cat conftest.er1 >&5
1743
mv -f conftest.er1 conftest.err
1745
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746
test $ac_status = 0; } >/dev/null && {
1747
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748
test ! -s conftest.err
1752
$as_echo "$as_me: failed program was:" >&5
1753
sed 's/^/| /' conftest.$ac_ext >&5
1757
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762
# ac_fn_c_try_run LINENO
1763
# ----------------------
1764
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765
# that executables *can* be run.
1768
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769
if { { ac_try="$ac_link"
1771
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772
*) ac_try_echo=$ac_try;;
1774
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775
$as_echo "$ac_try_echo"; } >&5
1776
(eval "$ac_link") 2>&5
1778
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780
{ { case "(($ac_try" in
1781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782
*) ac_try_echo=$ac_try;;
1784
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785
$as_echo "$ac_try_echo"; } >&5
1786
(eval "$ac_try") 2>&5
1788
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789
test $ac_status = 0; }; }; then :
1792
$as_echo "$as_me: program exited with status $ac_status" >&5
1793
$as_echo "$as_me: failed program was:" >&5
1794
sed 's/^/| /' conftest.$ac_ext >&5
1796
ac_retval=$ac_status
1798
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
# ac_fn_c_check_func LINENO FUNC VAR
1805
# ----------------------------------
1806
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1807
ac_fn_c_check_func ()
1809
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811
$as_echo_n "checking for $2... " >&6; }
1812
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813
$as_echo_n "(cached) " >&6
1815
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816
/* end confdefs.h. */
1817
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819
#define $2 innocuous_$2
1821
/* System header to define __stub macros and hopefully few prototypes,
1822
which can conflict with char $2 (); below.
1823
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824
<limits.h> exists even on freestanding compilers. */
1827
# include <limits.h>
1829
# include <assert.h>
1834
/* Override any GCC internal prototype to avoid an error.
1835
Use char because int might match the return type of a GCC
1836
builtin and then its argument prototype would still apply. */
1841
/* The GNU C library defines this for functions which it implements
1842
to always fail with ENOSYS. Some functions are actually named
1843
something starting with __ and the normal name is an alias. */
1844
#if defined __stub_$2 || defined __stub___$2
1856
if ac_fn_c_try_link "$LINENO"; then :
1861
rm -f core conftest.err conftest.$ac_objext \
1862
conftest$ac_exeext conftest.$ac_ext
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866
$as_echo "$ac_res" >&6; }
1867
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
} # ac_fn_c_check_func
1871
# ac_fn_cxx_try_compile LINENO
1872
# ----------------------------
1873
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1874
ac_fn_cxx_try_compile ()
1876
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877
rm -f conftest.$ac_objext
1878
if { { ac_try="$ac_compile"
1880
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881
*) ac_try_echo=$ac_try;;
1883
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884
$as_echo "$ac_try_echo"; } >&5
1885
(eval "$ac_compile") 2>conftest.err
1887
if test -s conftest.err; then
1888
grep -v '^ *+' conftest.err >conftest.er1
1889
cat conftest.er1 >&5
1890
mv -f conftest.er1 conftest.err
1892
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893
test $ac_status = 0; } && {
1894
test -z "$ac_cxx_werror_flag" ||
1895
test ! -s conftest.err
1896
} && test -s conftest.$ac_objext; then :
1899
$as_echo "$as_me: failed program was:" >&5
1900
sed 's/^/| /' conftest.$ac_ext >&5
1904
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
} # ac_fn_cxx_try_compile
1909
# ac_fn_cxx_try_cpp LINENO
1910
# ------------------------
1911
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1912
ac_fn_cxx_try_cpp ()
1914
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915
if { { ac_try="$ac_cpp conftest.$ac_ext"
1917
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918
*) ac_try_echo=$ac_try;;
1920
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921
$as_echo "$ac_try_echo"; } >&5
1922
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1924
if test -s conftest.err; then
1925
grep -v '^ *+' conftest.err >conftest.er1
1926
cat conftest.er1 >&5
1927
mv -f conftest.er1 conftest.err
1929
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930
test $ac_status = 0; } >/dev/null && {
1931
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1932
test ! -s conftest.err
1936
$as_echo "$as_me: failed program was:" >&5
1937
sed 's/^/| /' conftest.$ac_ext >&5
1941
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
} # ac_fn_cxx_try_cpp
1946
# ac_fn_cxx_try_link LINENO
1947
# -------------------------
1948
# Try to link conftest.$ac_ext, and return whether this succeeded.
1949
ac_fn_cxx_try_link ()
1951
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952
rm -f conftest.$ac_objext conftest$ac_exeext
1953
if { { ac_try="$ac_link"
1955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956
*) ac_try_echo=$ac_try;;
1958
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959
$as_echo "$ac_try_echo"; } >&5
1960
(eval "$ac_link") 2>conftest.err
1962
if test -s conftest.err; then
1963
grep -v '^ *+' conftest.err >conftest.er1
1964
cat conftest.er1 >&5
1965
mv -f conftest.er1 conftest.err
1967
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968
test $ac_status = 0; } && {
1969
test -z "$ac_cxx_werror_flag" ||
1970
test ! -s conftest.err
1971
} && test -s conftest$ac_exeext && {
1972
test "$cross_compiling" = yes ||
1973
$as_test_x conftest$ac_exeext
1977
$as_echo "$as_me: failed program was:" >&5
1978
sed 's/^/| /' conftest.$ac_ext >&5
1982
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1983
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1984
# interfere with the next link command; also delete a directory that is
1985
# left behind by Apple's compiler. We do this before executing the actions.
1986
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990
} # ac_fn_cxx_try_link
1992
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1993
# -------------------------------------------------------
1994
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1995
# the include files in INCLUDES and setting the cache variable VAR
1997
ac_fn_c_check_header_mongrel ()
1999
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2001
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002
$as_echo_n "checking for $2... " >&6; }
2003
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2004
$as_echo_n "(cached) " >&6
2007
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008
$as_echo "$ac_res" >&6; }
2010
# Is the header compilable?
2011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2012
$as_echo_n "checking $2 usability... " >&6; }
2013
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014
/* end confdefs.h. */
2018
if ac_fn_c_try_compile "$LINENO"; then :
2019
ac_header_compiler=yes
2021
ac_header_compiler=no
2023
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2025
$as_echo "$ac_header_compiler" >&6; }
2027
# Is the header present?
2028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2029
$as_echo_n "checking $2 presence... " >&6; }
2030
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031
/* end confdefs.h. */
2034
if ac_fn_c_try_cpp "$LINENO"; then :
2035
ac_header_preproc=yes
2037
ac_header_preproc=no
2039
rm -f conftest.err conftest.$ac_ext
2040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2041
$as_echo "$ac_header_preproc" >&6; }
2043
# So? What about this header?
2044
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2046
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2047
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2048
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2053
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2054
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2055
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2056
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2057
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2059
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2060
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063
## --------------------------------- ##
2064
## Report this to edam@waxworlds.org ##
2065
## --------------------------------- ##
2067
) | sed "s/^/$as_me: WARNING: /" >&2
2070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071
$as_echo_n "checking for $2... " >&6; }
2072
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2073
$as_echo_n "(cached) " >&6
2075
eval "$3=\$ac_header_compiler"
2078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079
$as_echo "$ac_res" >&6; }
2081
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083
} # ac_fn_c_check_header_mongrel
2084
cat >config.log <<_ACEOF
2085
This file contains any messages produced by compilers while
2086
running configure, to aid debugging if configure makes a mistake.
2088
It was created by sqlite3cc $as_me 0.1.0, which was
2089
generated by GNU Autoconf 2.64. Invocation command line was
2101
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2102
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2103
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2104
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2105
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2107
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2108
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2110
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2111
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2112
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2113
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2114
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2115
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2116
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124
test -z "$as_dir" && as_dir=.
2125
$as_echo "PATH: $as_dir"
2141
# Keep a trace of the command line.
2142
# Strip out --no-create and --no-recursion so they do not pile up.
2143
# Strip out --silent because we don't want to record it for future runs.
2144
# Also quote any args containing shell meta-characters.
2145
# Make two passes to allow for proper duplicate-argument suppression.
2149
ac_must_keep_next=false
2155
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2156
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2157
| -silent | --silent | --silen | --sile | --sil)
2160
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2163
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2165
as_fn_append ac_configure_args1 " '$ac_arg'"
2166
if test $ac_must_keep_next = true; then
2167
ac_must_keep_next=false # Got value, back to normal.
2170
*=* | --config-cache | -C | -disable-* | --disable-* \
2171
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2172
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2173
| -with-* | --with-* | -without-* | --without-* | --x)
2174
case "$ac_configure_args0 " in
2175
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2178
-* ) ac_must_keep_next=true ;;
2181
as_fn_append ac_configure_args " '$ac_arg'"
2186
{ ac_configure_args0=; unset ac_configure_args0;}
2187
{ ac_configure_args1=; unset ac_configure_args1;}
2189
# When interrupted or exit'd, cleanup temporary files, and complete
2190
# config.log. We remove comments because anyway the quotes in there
2191
# would cause problems or look ugly.
2192
# WARNING: Use '\'' to represent an apostrophe within the trap.
2193
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2194
trap 'exit_status=$?
2195
# Save into config.log some information that might help in debugging.
2200
## ---------------- ##
2201
## Cache variables. ##
2202
## ---------------- ##
2205
# The following way of writing the cache mishandles newlines in values,
2207
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208
eval ac_val=\$$ac_var
2212
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2216
_ | IFS | as_nl) ;; #(
2217
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218
*) { eval $ac_var=; unset $ac_var;} ;;
2223
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224
*${as_nl}ac_space=\ *)
2226
"s/'\''/'\''\\\\'\'''\''/g;
2227
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2230
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238
## ----------------- ##
2239
## Output variables. ##
2240
## ----------------- ##
2243
for ac_var in $ac_subst_vars
2245
eval ac_val=\$$ac_var
2247
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249
$as_echo "$ac_var='\''$ac_val'\''"
2253
if test -n "$ac_subst_files"; then
2255
## ------------------- ##
2256
## File substitutions. ##
2257
## ------------------- ##
2260
for ac_var in $ac_subst_files
2262
eval ac_val=\$$ac_var
2264
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266
$as_echo "$ac_var='\''$ac_val'\''"
2271
if test -s confdefs.h; then
2281
test "$ac_signal" != 0 &&
2282
$as_echo "$as_me: caught signal $ac_signal"
2283
$as_echo "$as_me: exit $exit_status"
2285
rm -f core *.core core.conftest.* &&
2286
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289
for ac_signal in 1 2 13 15; do
2290
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2294
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2295
rm -f -r conftest* confdefs.h
2297
$as_echo "/* confdefs.h */" > confdefs.h
2299
# Predefined preprocessor variables.
2301
cat >>confdefs.h <<_ACEOF
2302
#define PACKAGE_NAME "$PACKAGE_NAME"
2305
cat >>confdefs.h <<_ACEOF
2306
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309
cat >>confdefs.h <<_ACEOF
2310
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2313
cat >>confdefs.h <<_ACEOF
2314
#define PACKAGE_STRING "$PACKAGE_STRING"
2317
cat >>confdefs.h <<_ACEOF
2318
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321
cat >>confdefs.h <<_ACEOF
2322
#define PACKAGE_URL "$PACKAGE_URL"
2326
# Let the site file select an alternate cache file if it wants to.
2327
# Prefer an explicitly selected file to automatically selected ones.
2330
if test -n "$CONFIG_SITE"; then
2331
ac_site_file1=$CONFIG_SITE
2332
elif test "x$prefix" != xNONE; then
2333
ac_site_file1=$prefix/share/config.site
2334
ac_site_file2=$prefix/etc/config.site
2336
ac_site_file1=$ac_default_prefix/share/config.site
2337
ac_site_file2=$ac_default_prefix/etc/config.site
2339
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2341
test "x$ac_site_file" = xNONE && continue
2342
if test -r "$ac_site_file"; then
2343
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2344
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2345
sed 's/^/| /' "$ac_site_file" >&5
2350
if test -r "$cache_file"; then
2351
# Some versions of bash will fail to source /dev/null (special
2352
# files actually), so we avoid doing that.
2353
if test -f "$cache_file"; then
2354
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2355
$as_echo "$as_me: loading cache $cache_file" >&6;}
2357
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2358
*) . "./$cache_file";;
2362
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2363
$as_echo "$as_me: creating cache $cache_file" >&6;}
2367
# Check that the precious variables saved in the cache have kept the same
2369
ac_cache_corrupted=false
2370
for ac_var in $ac_precious_vars; do
2371
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2372
eval ac_new_set=\$ac_env_${ac_var}_set
2373
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2374
eval ac_new_val=\$ac_env_${ac_var}_value
2375
case $ac_old_set,$ac_new_set in
2377
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2378
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2379
ac_cache_corrupted=: ;;
2381
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2382
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2383
ac_cache_corrupted=: ;;
2386
if test "x$ac_old_val" != "x$ac_new_val"; then
2387
# differences in whitespace do not lead to failure.
2388
ac_old_val_w=`echo x $ac_old_val`
2389
ac_new_val_w=`echo x $ac_new_val`
2390
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2391
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2392
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2393
ac_cache_corrupted=:
2395
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2396
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2397
eval $ac_var=\$ac_old_val
2399
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2400
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2401
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2402
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2405
# Pass precious variables to config.status.
2406
if test "$ac_new_set" = set; then
2408
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2409
*) ac_arg=$ac_var=$ac_new_val ;;
2411
case " $ac_configure_args " in
2412
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2413
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2417
if $ac_cache_corrupted; then
2418
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2421
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2424
## -------------------- ##
2425
## Main body of script. ##
2426
## -------------------- ##
2429
ac_cpp='$CPP $CPPFLAGS'
2430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436
for ac_dir in build-aux "$srcdir"/build-aux; do
2437
for ac_t in install-sh install.sh shtool; do
2438
if test -f "$ac_dir/$ac_t"; then
2440
ac_install_sh="$ac_aux_dir/$ac_t -c"
2445
if test -z "$ac_aux_dir"; then
2446
as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2449
# These three variables are undocumented and unsupported,
2450
# and are intended to be withdrawn in a future Autoconf release.
2451
# They can cause serious problems if a builder's source tree is in a directory
2452
# whose full name contains unusual characters.
2453
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2454
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2455
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2459
am__api_version='1.11'
2461
# Find a good install program. We prefer a C program (faster),
2462
# so one script is as good as another. But avoid the broken or
2463
# incompatible versions:
2464
# SysV /etc/install, /usr/sbin/install
2465
# SunOS /usr/etc/install
2466
# IRIX /sbin/install
2468
# AmigaOS /C/install, which installs bootblocks on floppy discs
2469
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472
# OS/2's system install, which has a completely different semantic
2473
# ./install, which can be erroneously created by make from ./install.sh.
2474
# Reject install programs that cannot install multiple files.
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2476
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2477
if test -z "$INSTALL"; then
2478
if test "${ac_cv_path_install+set}" = set; then :
2479
$as_echo_n "(cached) " >&6
2481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485
test -z "$as_dir" && as_dir=.
2486
# Account for people who put trailing slashes in PATH elements.
2487
case $as_dir/ in #((
2488
./ | .// | /[cC]/* | \
2489
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2493
# OSF1 and SCO ODT 3.0 have their own names for install.
2494
# Don't use installbsd from OSF since it installs stuff as root
2496
for ac_prog in ginstall scoinst install; do
2497
for ac_exec_ext in '' $ac_executable_extensions; do
2498
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2499
if test $ac_prog = install &&
2500
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501
# AIX install. It has an incompatible calling convention.
2503
elif test $ac_prog = install &&
2504
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505
# program-specific install script used by HP pwplus--don't use.
2508
rm -rf conftest.one conftest.two conftest.dir
2509
echo one > conftest.one
2510
echo two > conftest.two
2512
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513
test -s conftest.one && test -s conftest.two &&
2514
test -s conftest.dir/conftest.one &&
2515
test -s conftest.dir/conftest.two
2517
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530
rm -rf conftest.one conftest.two conftest.dir
2533
if test "${ac_cv_path_install+set}" = set; then
2534
INSTALL=$ac_cv_path_install
2536
# As a last resort, use the slow shell script. Don't cache a
2537
# value for INSTALL within a source directory, because that will
2538
# break other packages using the cache if that directory is
2539
# removed, or if the value is a relative name.
2540
INSTALL=$ac_install_sh
2543
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2544
$as_echo "$INSTALL" >&6; }
2546
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547
# It thinks the first close brace ends the variable substitution.
2548
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2550
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2552
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2555
$as_echo_n "checking whether build environment is sane... " >&6; }
2558
echo timestamp > conftest.file
2559
# Reject unsafe characters in $srcdir or the absolute working directory
2560
# name. Accept space and tab only in the latter.
2564
*[\\\"\#\$\&\'\`$am_lf]*)
2565
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2568
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2569
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2572
# Do `set' in a subshell so we don't clobber the current shell's
2573
# arguments. Must try -L first in case configure is actually a
2574
# symlink; some systems play weird games with the mod time of symlinks
2575
# (eg FreeBSD returns the mod time of the symlink's containing
2578
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2579
if test "$*" = "X"; then
2581
set X `ls -t "$srcdir/configure" conftest.file`
2584
if test "$*" != "X $srcdir/configure conftest.file" \
2585
&& test "$*" != "X conftest.file $srcdir/configure"; then
2587
# If neither matched, then we have a broken ls. This can happen
2588
# if, for instance, CONFIG_SHELL is bash and it inherits a
2589
# broken ls alias from the environment. This has actually
2590
# happened. Such a system could not be considered "sane".
2591
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2592
alias in your environment" "$LINENO" 5
2595
test "$2" = conftest.file
2601
as_fn_error "newly created file is older than distributed files!
2602
Check your system clock" "$LINENO" 5
2604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2605
$as_echo "yes" >&6; }
2606
test "$program_prefix" != NONE &&
2607
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2608
# Use a double $ so make ignores it.
2609
test "$program_suffix" != NONE &&
2610
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2611
# Double any \ or $.
2612
# By default was `s,x,x', remove it if useless.
2613
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2614
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2616
# expand $ac_aux_dir to an absolute path
2617
am_aux_dir=`cd $ac_aux_dir && pwd`
2619
if test x"${MISSING+set}" != xset; then
2622
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2624
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2627
# Use eval to expand $SHELL
2628
if eval "$MISSING --run true"; then
2629
am_missing_run="$MISSING --run "
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2633
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2636
if test x"${install_sh}" != xset; then
2639
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2641
install_sh="\${SHELL} $am_aux_dir/install-sh"
2645
# Installed binaries are usually stripped using `strip' when the user
2646
# run `make install-strip'. However `strip' might not be the right
2647
# tool to use in cross-compilation environments, therefore Automake
2648
# will honor the `STRIP' environment variable to overrule this program.
2649
if test "$cross_compiling" != no; then
2650
if test -n "$ac_tool_prefix"; then
2651
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652
set dummy ${ac_tool_prefix}strip; ac_word=$2
2653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654
$as_echo_n "checking for $ac_word... " >&6; }
2655
if test "${ac_cv_prog_STRIP+set}" = set; then :
2656
$as_echo_n "(cached) " >&6
2658
if test -n "$STRIP"; then
2659
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665
test -z "$as_dir" && as_dir=.
2666
for ac_exec_ext in '' $ac_executable_extensions; do
2667
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678
STRIP=$ac_cv_prog_STRIP
2679
if test -n "$STRIP"; then
2680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2681
$as_echo "$STRIP" >&6; }
2683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684
$as_echo "no" >&6; }
2689
if test -z "$ac_cv_prog_STRIP"; then
2691
# Extract the first word of "strip", so it can be a program name with args.
2692
set dummy strip; ac_word=$2
2693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694
$as_echo_n "checking for $ac_word... " >&6; }
2695
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2696
$as_echo_n "(cached) " >&6
2698
if test -n "$ac_ct_STRIP"; then
2699
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705
test -z "$as_dir" && as_dir=.
2706
for ac_exec_ext in '' $ac_executable_extensions; do
2707
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708
ac_cv_prog_ac_ct_STRIP="strip"
2709
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719
if test -n "$ac_ct_STRIP"; then
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2721
$as_echo "$ac_ct_STRIP" >&6; }
2723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724
$as_echo "no" >&6; }
2727
if test "x$ac_ct_STRIP" = x; then
2730
case $cross_compiling:$ac_tool_warned in
2732
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734
ac_tool_warned=yes ;;
2739
STRIP="$ac_cv_prog_STRIP"
2743
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2746
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2747
if test -z "$MKDIR_P"; then
2748
if test "${ac_cv_path_mkdir+set}" = set; then :
2749
$as_echo_n "(cached) " >&6
2751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2755
test -z "$as_dir" && as_dir=.
2756
for ac_prog in mkdir gmkdir; do
2757
for ac_exec_ext in '' $ac_executable_extensions; do
2758
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2759
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2760
'mkdir (GNU coreutils) '* | \
2761
'mkdir (coreutils) '* | \
2762
'mkdir (fileutils) '4.1*)
2763
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2773
if test "${ac_cv_path_mkdir+set}" = set; then
2774
MKDIR_P="$ac_cv_path_mkdir -p"
2776
# As a last resort, use the slow shell script. Don't cache a
2777
# value for MKDIR_P within a source directory, because that will
2778
# break other packages using the cache if that directory is
2779
# removed, or if the value is a relative name.
2780
test -d ./--version && rmdir ./--version
2781
MKDIR_P="$ac_install_sh -d"
2784
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2785
$as_echo "$MKDIR_P" >&6; }
2789
[\\/$]* | ?:[\\/]*) ;;
2790
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2793
for ac_prog in gawk mawk nawk awk
2795
# Extract the first word of "$ac_prog", so it can be a program name with args.
2796
set dummy $ac_prog; ac_word=$2
2797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798
$as_echo_n "checking for $ac_word... " >&6; }
2799
if test "${ac_cv_prog_AWK+set}" = set; then :
2800
$as_echo_n "(cached) " >&6
2802
if test -n "$AWK"; then
2803
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809
test -z "$as_dir" && as_dir=.
2810
for ac_exec_ext in '' $ac_executable_extensions; do
2811
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812
ac_cv_prog_AWK="$ac_prog"
2813
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823
if test -n "$AWK"; then
2824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2825
$as_echo "$AWK" >&6; }
2827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828
$as_echo "no" >&6; }
2832
test -n "$AWK" && break
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2836
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2838
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2839
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2840
$as_echo_n "(cached) " >&6
2842
cat >conftest.make <<\_ACEOF
2845
@echo '@@@%%%=$(MAKE)=@@@%%%'
2847
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2848
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2850
eval ac_cv_prog_make_${ac_make}_set=yes;;
2852
eval ac_cv_prog_make_${ac_make}_set=no;;
2856
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858
$as_echo "yes" >&6; }
2861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862
$as_echo "no" >&6; }
2863
SET_MAKE="MAKE=${MAKE-make}"
2866
rm -rf .tst 2>/dev/null
2867
mkdir .tst 2>/dev/null
2868
if test -d .tst; then
2873
rmdir .tst 2>/dev/null
2875
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2876
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2877
# is not polluted with repeated "-I."
2878
am__isrc=' -I$(srcdir)'
2879
# test to see if srcdir already configured
2880
if test -f $srcdir/config.status; then
2881
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2885
# test whether we have cygpath
2886
if test -z "$CYGPATH_W"; then
2887
if (cygpath --version) >/dev/null 2>/dev/null; then
2888
CYGPATH_W='cygpath -w'
2895
# Define the identity of the package.
2900
cat >>confdefs.h <<_ACEOF
2901
#define PACKAGE "$PACKAGE"
2905
cat >>confdefs.h <<_ACEOF
2906
#define VERSION "$VERSION"
2909
# Some tools Automake needs.
2911
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2914
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2917
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2920
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2923
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2925
# We need awk for the "check" target. The system "awk" is bad on
2927
# Always define AMTAR for backward compatibility.
2929
AMTAR=${AMTAR-"${am_missing_run}tar"}
2931
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2938
ac_config_headers="$ac_config_headers config.h"
2942
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2943
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2948
macro_version='2.2.6'
2949
macro_revision='1.3012'
2963
ltmain="$ac_aux_dir/ltmain.sh"
2965
# Make sure we can run config.sub.
2966
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2967
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2970
$as_echo_n "checking build system type... " >&6; }
2971
if test "${ac_cv_build+set}" = set; then :
2972
$as_echo_n "(cached) " >&6
2974
ac_build_alias=$build_alias
2975
test "x$ac_build_alias" = x &&
2976
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2977
test "x$ac_build_alias" = x &&
2978
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2979
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2980
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2984
$as_echo "$ac_cv_build" >&6; }
2985
case $ac_cv_build in
2987
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2990
ac_save_IFS=$IFS; IFS='-'
2996
# Remember, the first character of IFS is used to create $*,
2997
# except with old shells:
3000
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3004
$as_echo_n "checking host system type... " >&6; }
3005
if test "${ac_cv_host+set}" = set; then :
3006
$as_echo_n "(cached) " >&6
3008
if test "x$host_alias" = x; then
3009
ac_cv_host=$ac_cv_build
3011
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3012
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3017
$as_echo "$ac_cv_host" >&6; }
3020
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3023
ac_save_IFS=$IFS; IFS='-'
3029
# Remember, the first character of IFS is used to create $*,
3030
# except with old shells:
3033
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3036
DEPDIR="${am__leading_dot}deps"
3038
ac_config_commands="$ac_config_commands depfiles"
3041
am_make=${MAKE-make}
3042
cat > confinc << 'END'
3044
@echo this is the am__doit target
3047
# If we don't find an include directive, just comment out the code.
3048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3049
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3053
# First try GNU make style include.
3054
echo "include confinc" > confmf
3055
# Ignore all kinds of additional output from `make'.
3056
case `$am_make -s -f confmf 2> /dev/null` in #(
3057
*the\ am__doit\ target*)
3063
# Now try BSD make style include.
3064
if test "$am__include" = "#"; then
3065
echo '.include "confinc"' > confmf
3066
case `$am_make -s -f confmf 2> /dev/null` in #(
3067
*the\ am__doit\ target*)
3068
am__include=.include
3076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3077
$as_echo "$_am_result" >&6; }
3078
rm -f confinc confmf
3080
# Check whether --enable-dependency-tracking was given.
3081
if test "${enable_dependency_tracking+set}" = set; then :
3082
enableval=$enable_dependency_tracking;
3085
if test "x$enable_dependency_tracking" != xno; then
3086
am_depcomp="$ac_aux_dir/depcomp"
3089
if test "x$enable_dependency_tracking" != xno; then
3099
ac_cpp='$CPP $CPPFLAGS'
3100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
if test -n "$ac_tool_prefix"; then
3104
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3105
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107
$as_echo_n "checking for $ac_word... " >&6; }
3108
if test "${ac_cv_prog_CC+set}" = set; then :
3109
$as_echo_n "(cached) " >&6
3111
if test -n "$CC"; then
3112
ac_cv_prog_CC="$CC" # Let the user override the test.
3114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118
test -z "$as_dir" && as_dir=.
3119
for ac_exec_ext in '' $ac_executable_extensions; do
3120
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3122
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132
if test -n "$CC"; then
3133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134
$as_echo "$CC" >&6; }
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137
$as_echo "no" >&6; }
3142
if test -z "$ac_cv_prog_CC"; then
3144
# Extract the first word of "gcc", so it can be a program name with args.
3145
set dummy gcc; ac_word=$2
3146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147
$as_echo_n "checking for $ac_word... " >&6; }
3148
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3149
$as_echo_n "(cached) " >&6
3151
if test -n "$ac_ct_CC"; then
3152
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158
test -z "$as_dir" && as_dir=.
3159
for ac_exec_ext in '' $ac_executable_extensions; do
3160
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161
ac_cv_prog_ac_ct_CC="gcc"
3162
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172
if test -n "$ac_ct_CC"; then
3173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174
$as_echo "$ac_ct_CC" >&6; }
3176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177
$as_echo "no" >&6; }
3180
if test "x$ac_ct_CC" = x; then
3183
case $cross_compiling:$ac_tool_warned in
3185
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187
ac_tool_warned=yes ;;
3195
if test -z "$CC"; then
3196
if test -n "$ac_tool_prefix"; then
3197
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3198
set dummy ${ac_tool_prefix}cc; ac_word=$2
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200
$as_echo_n "checking for $ac_word... " >&6; }
3201
if test "${ac_cv_prog_CC+set}" = set; then :
3202
$as_echo_n "(cached) " >&6
3204
if test -n "$CC"; then
3205
ac_cv_prog_CC="$CC" # Let the user override the test.
3207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211
test -z "$as_dir" && as_dir=.
3212
for ac_exec_ext in '' $ac_executable_extensions; do
3213
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214
ac_cv_prog_CC="${ac_tool_prefix}cc"
3215
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225
if test -n "$CC"; then
3226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227
$as_echo "$CC" >&6; }
3229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230
$as_echo "no" >&6; }
3236
if test -z "$CC"; then
3237
# Extract the first word of "cc", so it can be a program name with args.
3238
set dummy cc; ac_word=$2
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240
$as_echo_n "checking for $ac_word... " >&6; }
3241
if test "${ac_cv_prog_CC+set}" = set; then :
3242
$as_echo_n "(cached) " >&6
3244
if test -n "$CC"; then
3245
ac_cv_prog_CC="$CC" # Let the user override the test.
3248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252
test -z "$as_dir" && as_dir=.
3253
for ac_exec_ext in '' $ac_executable_extensions; do
3254
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3256
ac_prog_rejected=yes
3260
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267
if test $ac_prog_rejected = yes; then
3268
# We found a bogon in the path, so make sure we never use it.
3269
set dummy $ac_cv_prog_CC
3271
if test $# != 0; then
3272
# We chose a different compiler from the bogus one.
3273
# However, it has the same basename, so the bogon will be chosen
3274
# first if we set CC to just the basename; use the full file name.
3276
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3282
if test -n "$CC"; then
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284
$as_echo "$CC" >&6; }
3286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287
$as_echo "no" >&6; }
3292
if test -z "$CC"; then
3293
if test -n "$ac_tool_prefix"; then
3294
for ac_prog in cl.exe
3296
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299
$as_echo_n "checking for $ac_word... " >&6; }
3300
if test "${ac_cv_prog_CC+set}" = set; then :
3301
$as_echo_n "(cached) " >&6
3303
if test -n "$CC"; then
3304
ac_cv_prog_CC="$CC" # Let the user override the test.
3306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310
test -z "$as_dir" && as_dir=.
3311
for ac_exec_ext in '' $ac_executable_extensions; do
3312
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3314
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324
if test -n "$CC"; then
3325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326
$as_echo "$CC" >&6; }
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329
$as_echo "no" >&6; }
3333
test -n "$CC" && break
3336
if test -z "$CC"; then
3338
for ac_prog in cl.exe
3340
# Extract the first word of "$ac_prog", so it can be a program name with args.
3341
set dummy $ac_prog; ac_word=$2
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343
$as_echo_n "checking for $ac_word... " >&6; }
3344
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3345
$as_echo_n "(cached) " >&6
3347
if test -n "$ac_ct_CC"; then
3348
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354
test -z "$as_dir" && as_dir=.
3355
for ac_exec_ext in '' $ac_executable_extensions; do
3356
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357
ac_cv_prog_ac_ct_CC="$ac_prog"
3358
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368
if test -n "$ac_ct_CC"; then
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3370
$as_echo "$ac_ct_CC" >&6; }
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373
$as_echo "no" >&6; }
3377
test -n "$ac_ct_CC" && break
3380
if test "x$ac_ct_CC" = x; then
3383
case $cross_compiling:$ac_tool_warned in
3385
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387
ac_tool_warned=yes ;;
3396
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398
as_fn_error "no acceptable C compiler found in \$PATH
3399
See \`config.log' for more details." "$LINENO" 5; }
3401
# Provide some information about the compiler.
3402
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3405
for ac_option in --version -v -V -qversion; do
3406
{ { ac_try="$ac_compiler $ac_option >&5"
3408
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409
*) ac_try_echo=$ac_try;;
3411
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412
$as_echo "$ac_try_echo"; } >&5
3413
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3415
if test -s conftest.err; then
3417
... rest of stderr output deleted ...
3418
10q' conftest.err >conftest.er1
3419
cat conftest.er1 >&5
3420
rm -f conftest.er1 conftest.err
3422
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423
test $ac_status = 0; }
3426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427
/* end confdefs.h. */
3432
FILE *f = fopen ("conftest.out", "w");
3433
return ferror (f) || fclose (f) != 0;
3439
ac_clean_files_save=$ac_clean_files
3440
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3441
# Try to create an executable without -o first, disregard a.out.
3442
# It will help us diagnose broken compilers, and finding out an intuition
3444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3445
$as_echo_n "checking for C compiler default output file name... " >&6; }
3446
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3448
# The possible output files:
3449
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3452
for ac_file in $ac_files
3455
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3456
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3461
if { { ac_try="$ac_link_default"
3463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464
*) ac_try_echo=$ac_try;;
3466
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467
$as_echo "$ac_try_echo"; } >&5
3468
(eval "$ac_link_default") 2>&5
3470
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471
test $ac_status = 0; }; then :
3472
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3473
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3474
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3475
# so that the user can short-circuit this test for compilers unknown to
3477
for ac_file in $ac_files ''
3479
test -f "$ac_file" || continue
3481
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3484
# We found the default executable, but exeext='' is most
3488
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3490
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3492
# We set ac_cv_exeext here because the later test for it is not
3493
# safe: cross compilers may not add the suffix if given an `-o'
3494
# argument, so we may need to know it at that point already.
3495
# Even if this section looks crufty: it has the advantage of
3502
test "$ac_cv_exeext" = no && ac_cv_exeext=
3507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3508
$as_echo "$ac_file" >&6; }
3509
if test -z "$ac_file"; then :
3510
$as_echo "$as_me: failed program was:" >&5
3511
sed 's/^/| /' conftest.$ac_ext >&5
3513
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515
{ as_fn_set_status 77
3516
as_fn_error "C compiler cannot create executables
3517
See \`config.log' for more details." "$LINENO" 5; }; }
3519
ac_exeext=$ac_cv_exeext
3521
# Check that the compiler produces executables we can run. If not, either
3522
# the compiler is broken, or we cross compile.
3523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3524
$as_echo_n "checking whether the C compiler works... " >&6; }
3525
# If not cross compiling, check that we can run a simple program.
3526
if test "$cross_compiling" != yes; then
3527
if { ac_try='./$ac_file'
3528
{ { case "(($ac_try" in
3529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530
*) ac_try_echo=$ac_try;;
3532
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533
$as_echo "$ac_try_echo"; } >&5
3534
(eval "$ac_try") 2>&5
3536
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537
test $ac_status = 0; }; }; then
3540
if test "$cross_compiling" = maybe; then
3543
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545
as_fn_error "cannot run C compiled programs.
3546
If you meant to cross compile, use \`--host'.
3547
See \`config.log' for more details." "$LINENO" 5; }
3551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552
$as_echo "yes" >&6; }
3554
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3555
ac_clean_files=$ac_clean_files_save
3556
# Check that the compiler produces executables we can run. If not, either
3557
# the compiler is broken, or we cross compile.
3558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3559
$as_echo_n "checking whether we are cross compiling... " >&6; }
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3561
$as_echo "$cross_compiling" >&6; }
3563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3564
$as_echo_n "checking for suffix of executables... " >&6; }
3565
if { { ac_try="$ac_link"
3567
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568
*) ac_try_echo=$ac_try;;
3570
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571
$as_echo "$ac_try_echo"; } >&5
3572
(eval "$ac_link") 2>&5
3574
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575
test $ac_status = 0; }; then :
3576
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3577
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3578
# work properly (i.e., refer to `conftest.exe'), while it won't with
3580
for ac_file in conftest.exe conftest conftest.*; do
3581
test -f "$ac_file" || continue
3583
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3590
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592
as_fn_error "cannot compute suffix of executables: cannot compile and link
3593
See \`config.log' for more details." "$LINENO" 5; }
3595
rm -f conftest$ac_cv_exeext
3596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3597
$as_echo "$ac_cv_exeext" >&6; }
3599
rm -f conftest.$ac_ext
3600
EXEEXT=$ac_cv_exeext
3602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603
$as_echo_n "checking for suffix of object files... " >&6; }
3604
if test "${ac_cv_objext+set}" = set; then :
3605
$as_echo_n "(cached) " >&6
3607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608
/* end confdefs.h. */
3618
rm -f conftest.o conftest.obj
3619
if { { ac_try="$ac_compile"
3621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622
*) ac_try_echo=$ac_try;;
3624
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625
$as_echo "$ac_try_echo"; } >&5
3626
(eval "$ac_compile") 2>&5
3628
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629
test $ac_status = 0; }; then :
3630
for ac_file in conftest.o conftest.obj conftest.*; do
3631
test -f "$ac_file" || continue;
3633
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3639
$as_echo "$as_me: failed program was:" >&5
3640
sed 's/^/| /' conftest.$ac_ext >&5
3642
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644
as_fn_error "cannot compute suffix of object files: cannot compile
3645
See \`config.log' for more details." "$LINENO" 5; }
3647
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650
$as_echo "$ac_cv_objext" >&6; }
3651
OBJEXT=$ac_cv_objext
3653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3656
$as_echo_n "(cached) " >&6
3658
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659
/* end confdefs.h. */
3672
if ac_fn_c_try_compile "$LINENO"; then :
3677
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683
if test $ac_compiler_gnu = yes; then
3688
ac_test_CFLAGS=${CFLAGS+set}
3689
ac_save_CFLAGS=$CFLAGS
3690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3692
if test "${ac_cv_prog_cc_g+set}" = set; then :
3693
$as_echo_n "(cached) " >&6
3695
ac_save_c_werror_flag=$ac_c_werror_flag
3696
ac_c_werror_flag=yes
3699
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700
/* end confdefs.h. */
3710
if ac_fn_c_try_compile "$LINENO"; then :
3714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715
/* end confdefs.h. */
3725
if ac_fn_c_try_compile "$LINENO"; then :
3728
ac_c_werror_flag=$ac_save_c_werror_flag
3730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731
/* end confdefs.h. */
3741
if ac_fn_c_try_compile "$LINENO"; then :
3744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749
ac_c_werror_flag=$ac_save_c_werror_flag
3751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752
$as_echo "$ac_cv_prog_cc_g" >&6; }
3753
if test "$ac_test_CFLAGS" = set; then
3754
CFLAGS=$ac_save_CFLAGS
3755
elif test $ac_cv_prog_cc_g = yes; then
3756
if test "$GCC" = yes; then
3762
if test "$GCC" = yes; then
3768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3771
$as_echo_n "(cached) " >&6
3773
ac_cv_prog_cc_c89=no
3775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776
/* end confdefs.h. */
3779
#include <sys/types.h>
3780
#include <sys/stat.h>
3781
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3782
struct buf { int x; };
3783
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3784
static char *e (p, i)
3790
static char *f (char * (*g) (char **, int), char **p, ...)
3795
s = g (p, va_arg (v,int));
3800
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3801
function prototypes and stuff, but not '\xHH' hex character constants.
3802
These don't provoke an error unfortunately, instead are silently treated
3803
as 'x'. The following induces an error, until -std is added to get
3804
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3805
array size at least. It's necessary to write '\x00'==0 to get something
3806
that's true only with -std. */
3807
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3809
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3810
inside strings and character constants. */
3812
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3814
int test (int i, double x);
3815
struct s1 {int (*f) (int a);};
3816
struct s2 {int (*f) (double a);};
3817
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3828
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3829
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3831
CC="$ac_save_CC $ac_arg"
3832
if ac_fn_c_try_compile "$LINENO"; then :
3833
ac_cv_prog_cc_c89=$ac_arg
3835
rm -f core conftest.err conftest.$ac_objext
3836
test "x$ac_cv_prog_cc_c89" != "xno" && break
3838
rm -f conftest.$ac_ext
3843
case "x$ac_cv_prog_cc_c89" in
3845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3846
$as_echo "none needed" >&6; } ;;
3848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3849
$as_echo "unsupported" >&6; } ;;
3851
CC="$CC $ac_cv_prog_cc_c89"
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3853
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3855
if test "x$ac_cv_prog_cc_c89" != xno; then :
3860
ac_cpp='$CPP $CPPFLAGS'
3861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
depcc="$CC" am_compiler_list=
3867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3868
$as_echo_n "checking dependency style of $depcc... " >&6; }
3869
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3870
$as_echo_n "(cached) " >&6
3872
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3873
# We make a subdir and do the tests there. Otherwise we can end up
3874
# making bogus files that we don't know about and never remove. For
3875
# instance it was reported that on HP-UX the gcc test will end up
3876
# making a dummy file named `D' -- because `-MD' means `put the output
3879
# Copy depcomp to subdir because otherwise we won't find it if we're
3880
# using a relative directory.
3881
cp "$am_depcomp" conftest.dir
3883
# We will build objects and dependencies in a subdirectory because
3884
# it helps to detect inapplicable dependency modes. For instance
3885
# both Tru64's cc and ICC support -MD to output dependencies as a
3886
# side effect of compilation, but ICC will put the dependencies in
3887
# the current directory while Tru64 will put them in the object
3891
am_cv_CC_dependencies_compiler_type=none
3892
if test "$am_compiler_list" = ""; then
3893
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3896
case " $depcc " in #(
3897
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3900
for depmode in $am_compiler_list; do
3901
# Setup a source with many dependencies, because some compilers
3902
# like to wrap large dependency lists on column 80 (with \), and
3903
# we should not choose a depcomp mode which is confused by this.
3905
# We need to recreate these files for each test, as the compiler may
3906
# overwrite some of them when testing with obscure command lines.
3907
# This happens at least with the AIX C compiler.
3909
for i in 1 2 3 4 5 6; do
3910
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3911
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3912
# Solaris 8's {/usr,}/bin/sh.
3913
touch sub/conftst$i.h
3915
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3917
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3918
# mode. It turns out that the SunPro C++ compiler does not properly
3919
# handle `-M -o', and we need to detect this. Also, some Intel
3920
# versions had trouble with output in subdirs
3921
am__obj=sub/conftest.${OBJEXT-o}
3922
am__minus_obj="-o $am__obj"
3925
# This depmode causes a compiler race in universal mode.
3926
test "$am__universal" = false || continue
3929
# after this tag, mechanisms are not by side-effect, so they'll
3930
# only be used when explicitly requested
3931
if test "x$enable_dependency_tracking" = xyes; then
3937
msvisualcpp | msvcmsys)
3938
# This compiler won't grok `-c -o', but also, the minuso test has
3939
# not run yet. These depmodes are late enough in the game, and
3940
# so weak that their functioning should not be impacted.
3941
am__obj=conftest.${OBJEXT-o}
3946
if depmode=$depmode \
3947
source=sub/conftest.c object=$am__obj \
3948
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3949
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3950
>/dev/null 2>conftest.err &&
3951
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3952
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3953
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3954
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3955
# icc doesn't choke on unknown options, it will just issue warnings
3956
# or remarks (even with -Werror). So we grep stderr for any message
3957
# that says an option was ignored or not supported.
3958
# When given -MP, icc 7.0 and 7.1 complain thusly:
3959
# icc: Command line warning: ignoring option '-M'; no argument required
3960
# The diagnosis changed in icc 8.0:
3961
# icc: Command line remark: option '-MP' not supported
3962
if (grep 'ignoring option' conftest.err ||
3963
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3964
am_cv_CC_dependencies_compiler_type=$depmode
3973
am_cv_CC_dependencies_compiler_type=none
3977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3978
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3979
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3982
test "x$enable_dependency_tracking" != xno \
3983
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3985
am__fastdepCC_FALSE='#'
3987
am__fastdepCC_TRUE='#'
3988
am__fastdepCC_FALSE=
3992
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3993
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3994
if test "${ac_cv_path_SED+set}" = set; then :
3995
$as_echo_n "(cached) " >&6
3997
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3998
for ac_i in 1 2 3 4 5 6 7; do
3999
ac_script="$ac_script$as_nl$ac_script"
4001
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4002
{ ac_script=; unset ac_script;}
4003
if test -z "$SED"; then
4004
ac_path_SED_found=false
4005
# Loop through the user's path and test for each of PROGNAME-LIST
4006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010
test -z "$as_dir" && as_dir=.
4011
for ac_prog in sed gsed; do
4012
for ac_exec_ext in '' $ac_executable_extensions; do
4013
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4014
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4015
# Check for GNU ac_path_SED and select it if it is found.
4016
# Check for GNU $ac_path_SED
4017
case `"$ac_path_SED" --version 2>&1` in
4019
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4022
$as_echo_n 0123456789 >"conftest.in"
4025
cat "conftest.in" "conftest.in" >"conftest.tmp"
4026
mv "conftest.tmp" "conftest.in"
4027
cp "conftest.in" "conftest.nl"
4028
$as_echo '' >> "conftest.nl"
4029
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4030
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4031
as_fn_arith $ac_count + 1 && ac_count=$as_val
4032
if test $ac_count -gt ${ac_path_SED_max-0}; then
4033
# Best one so far, save it but keep looking for a better one
4034
ac_cv_path_SED="$ac_path_SED"
4035
ac_path_SED_max=$ac_count
4037
# 10*(2^10) chars as input seems more than enough
4038
test $ac_count -gt 10 && break
4040
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043
$ac_path_SED_found && break 3
4048
if test -z "$ac_cv_path_SED"; then
4049
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4057
$as_echo "$ac_cv_path_SED" >&6; }
4058
SED="$ac_cv_path_SED"
4061
test -z "$SED" && SED=sed
4062
Xsed="$SED -e 1s/^X//"
4074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4075
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4076
if test "${ac_cv_path_GREP+set}" = set; then :
4077
$as_echo_n "(cached) " >&6
4079
if test -z "$GREP"; then
4080
ac_path_GREP_found=false
4081
# Loop through the user's path and test for each of PROGNAME-LIST
4082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086
test -z "$as_dir" && as_dir=.
4087
for ac_prog in grep ggrep; do
4088
for ac_exec_ext in '' $ac_executable_extensions; do
4089
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4090
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4091
# Check for GNU ac_path_GREP and select it if it is found.
4092
# Check for GNU $ac_path_GREP
4093
case `"$ac_path_GREP" --version 2>&1` in
4095
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4098
$as_echo_n 0123456789 >"conftest.in"
4101
cat "conftest.in" "conftest.in" >"conftest.tmp"
4102
mv "conftest.tmp" "conftest.in"
4103
cp "conftest.in" "conftest.nl"
4104
$as_echo 'GREP' >> "conftest.nl"
4105
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4107
as_fn_arith $ac_count + 1 && ac_count=$as_val
4108
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4109
# Best one so far, save it but keep looking for a better one
4110
ac_cv_path_GREP="$ac_path_GREP"
4111
ac_path_GREP_max=$ac_count
4113
# 10*(2^10) chars as input seems more than enough
4114
test $ac_count -gt 10 && break
4116
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119
$ac_path_GREP_found && break 3
4124
if test -z "$ac_cv_path_GREP"; then
4125
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4128
ac_cv_path_GREP=$GREP
4132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4133
$as_echo "$ac_cv_path_GREP" >&6; }
4134
GREP="$ac_cv_path_GREP"
4137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4138
$as_echo_n "checking for egrep... " >&6; }
4139
if test "${ac_cv_path_EGREP+set}" = set; then :
4140
$as_echo_n "(cached) " >&6
4142
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4143
then ac_cv_path_EGREP="$GREP -E"
4145
if test -z "$EGREP"; then
4146
ac_path_EGREP_found=false
4147
# Loop through the user's path and test for each of PROGNAME-LIST
4148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152
test -z "$as_dir" && as_dir=.
4153
for ac_prog in egrep; do
4154
for ac_exec_ext in '' $ac_executable_extensions; do
4155
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4156
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4157
# Check for GNU ac_path_EGREP and select it if it is found.
4158
# Check for GNU $ac_path_EGREP
4159
case `"$ac_path_EGREP" --version 2>&1` in
4161
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4164
$as_echo_n 0123456789 >"conftest.in"
4167
cat "conftest.in" "conftest.in" >"conftest.tmp"
4168
mv "conftest.tmp" "conftest.in"
4169
cp "conftest.in" "conftest.nl"
4170
$as_echo 'EGREP' >> "conftest.nl"
4171
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173
as_fn_arith $ac_count + 1 && ac_count=$as_val
4174
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4175
# Best one so far, save it but keep looking for a better one
4176
ac_cv_path_EGREP="$ac_path_EGREP"
4177
ac_path_EGREP_max=$ac_count
4179
# 10*(2^10) chars as input seems more than enough
4180
test $ac_count -gt 10 && break
4182
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185
$ac_path_EGREP_found && break 3
4190
if test -z "$ac_cv_path_EGREP"; then
4191
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4194
ac_cv_path_EGREP=$EGREP
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4200
$as_echo "$ac_cv_path_EGREP" >&6; }
4201
EGREP="$ac_cv_path_EGREP"
4204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4205
$as_echo_n "checking for fgrep... " >&6; }
4206
if test "${ac_cv_path_FGREP+set}" = set; then :
4207
$as_echo_n "(cached) " >&6
4209
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4210
then ac_cv_path_FGREP="$GREP -F"
4212
if test -z "$FGREP"; then
4213
ac_path_FGREP_found=false
4214
# Loop through the user's path and test for each of PROGNAME-LIST
4215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4219
test -z "$as_dir" && as_dir=.
4220
for ac_prog in fgrep; do
4221
for ac_exec_ext in '' $ac_executable_extensions; do
4222
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4223
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4224
# Check for GNU ac_path_FGREP and select it if it is found.
4225
# Check for GNU $ac_path_FGREP
4226
case `"$ac_path_FGREP" --version 2>&1` in
4228
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4231
$as_echo_n 0123456789 >"conftest.in"
4234
cat "conftest.in" "conftest.in" >"conftest.tmp"
4235
mv "conftest.tmp" "conftest.in"
4236
cp "conftest.in" "conftest.nl"
4237
$as_echo 'FGREP' >> "conftest.nl"
4238
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4239
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4240
as_fn_arith $ac_count + 1 && ac_count=$as_val
4241
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4242
# Best one so far, save it but keep looking for a better one
4243
ac_cv_path_FGREP="$ac_path_FGREP"
4244
ac_path_FGREP_max=$ac_count
4246
# 10*(2^10) chars as input seems more than enough
4247
test $ac_count -gt 10 && break
4249
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252
$ac_path_FGREP_found && break 3
4257
if test -z "$ac_cv_path_FGREP"; then
4258
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4261
ac_cv_path_FGREP=$FGREP
4266
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4267
$as_echo "$ac_cv_path_FGREP" >&6; }
4268
FGREP="$ac_cv_path_FGREP"
4271
test -z "$GREP" && GREP=grep
4291
# Check whether --with-gnu-ld was given.
4292
if test "${with_gnu_ld+set}" = set; then :
4293
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4299
if test "$GCC" = yes; then
4300
# Check if gcc -print-prog-name=ld gives a path.
4301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4302
$as_echo_n "checking for ld used by $CC... " >&6; }
4305
# gcc leaves a trailing carriage return which upsets mingw
4306
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4308
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4311
# Accept absolute paths.
4313
re_direlt='/[^/][^/]*/\.\./'
4314
# Canonicalize the pathname of ld
4315
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4316
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4317
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4319
test -z "$LD" && LD="$ac_prog"
4322
# If it fails, then pretend we aren't using GCC.
4326
# If it is relative, then search for the first ld in PATH.
4330
elif test "$with_gnu_ld" = yes; then
4331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4332
$as_echo_n "checking for GNU ld... " >&6; }
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4335
$as_echo_n "checking for non-GNU ld... " >&6; }
4337
if test "${lt_cv_path_LD+set}" = set; then :
4338
$as_echo_n "(cached) " >&6
4340
if test -z "$LD"; then
4341
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4342
for ac_dir in $PATH; do
4344
test -z "$ac_dir" && ac_dir=.
4345
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4346
lt_cv_path_LD="$ac_dir/$ac_prog"
4347
# Check to see if the program is GNU ld. I'd rather use --version,
4348
# but apparently some variants of GNU ld only accept -v.
4349
# Break only if it was the GNU/non-GNU ld that we prefer.
4350
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4351
*GNU* | *'with BFD'*)
4352
test "$with_gnu_ld" != no && break
4355
test "$with_gnu_ld" != yes && break
4362
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4367
if test -n "$LD"; then
4368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4369
$as_echo "$LD" >&6; }
4371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372
$as_echo "no" >&6; }
4374
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4376
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4377
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4378
$as_echo_n "(cached) " >&6
4380
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4381
case `$LD -v 2>&1 </dev/null` in
4382
*GNU* | *'with BFD'*)
4383
lt_cv_prog_gnu_ld=yes
4386
lt_cv_prog_gnu_ld=no
4390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4391
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4392
with_gnu_ld=$lt_cv_prog_gnu_ld
4402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4403
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4404
if test "${lt_cv_path_NM+set}" = set; then :
4405
$as_echo_n "(cached) " >&6
4407
if test -n "$NM"; then
4408
# Let the user override the test.
4411
lt_nm_to_check="${ac_tool_prefix}nm"
4412
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4413
lt_nm_to_check="$lt_nm_to_check nm"
4415
for lt_tmp_nm in $lt_nm_to_check; do
4416
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4417
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4419
test -z "$ac_dir" && ac_dir=.
4420
tmp_nm="$ac_dir/$lt_tmp_nm"
4421
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4422
# Check to see if the nm accepts a BSD-compat flag.
4423
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4424
# nm: unknown option "B" ignored
4425
# Tru64's nm complains that /dev/null is an invalid object file
4426
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4427
*/dev/null* | *'Invalid file or object type'*)
4428
lt_cv_path_NM="$tmp_nm -B"
4432
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4434
lt_cv_path_NM="$tmp_nm -p"
4438
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4439
continue # so that we can try to find one that supports BSD flags
4448
: ${lt_cv_path_NM=no}
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4452
$as_echo "$lt_cv_path_NM" >&6; }
4453
if test "$lt_cv_path_NM" != "no"; then
4456
# Didn't find any BSD compatible name lister, look for dumpbin.
4457
if test -n "$ac_tool_prefix"; then
4458
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4460
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4461
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463
$as_echo_n "checking for $ac_word... " >&6; }
4464
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4465
$as_echo_n "(cached) " >&6
4467
if test -n "$DUMPBIN"; then
4468
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474
test -z "$as_dir" && as_dir=.
4475
for ac_exec_ext in '' $ac_executable_extensions; do
4476
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4478
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487
DUMPBIN=$ac_cv_prog_DUMPBIN
4488
if test -n "$DUMPBIN"; then
4489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4490
$as_echo "$DUMPBIN" >&6; }
4492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493
$as_echo "no" >&6; }
4497
test -n "$DUMPBIN" && break
4500
if test -z "$DUMPBIN"; then
4501
ac_ct_DUMPBIN=$DUMPBIN
4502
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4504
# Extract the first word of "$ac_prog", so it can be a program name with args.
4505
set dummy $ac_prog; ac_word=$2
4506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507
$as_echo_n "checking for $ac_word... " >&6; }
4508
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4509
$as_echo_n "(cached) " >&6
4511
if test -n "$ac_ct_DUMPBIN"; then
4512
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4514
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518
test -z "$as_dir" && as_dir=.
4519
for ac_exec_ext in '' $ac_executable_extensions; do
4520
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4522
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4532
if test -n "$ac_ct_DUMPBIN"; then
4533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4534
$as_echo "$ac_ct_DUMPBIN" >&6; }
4536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537
$as_echo "no" >&6; }
4541
test -n "$ac_ct_DUMPBIN" && break
4544
if test "x$ac_ct_DUMPBIN" = x; then
4547
case $cross_compiling:$ac_tool_warned in
4549
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4550
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4551
ac_tool_warned=yes ;;
4553
DUMPBIN=$ac_ct_DUMPBIN
4558
if test "$DUMPBIN" != ":"; then
4562
test -z "$NM" && NM=nm
4569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4570
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4571
if test "${lt_cv_nm_interface+set}" = set; then :
4572
$as_echo_n "(cached) " >&6
4574
lt_cv_nm_interface="BSD nm"
4575
echo "int some_variable = 0;" > conftest.$ac_ext
4576
(eval echo "\"\$as_me:4576: $ac_compile\"" >&5)
4577
(eval "$ac_compile" 2>conftest.err)
4578
cat conftest.err >&5
4579
(eval echo "\"\$as_me:4579: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4580
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4581
cat conftest.err >&5
4582
(eval echo "\"\$as_me:4582: output\"" >&5)
4583
cat conftest.out >&5
4584
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4585
lt_cv_nm_interface="MS dumpbin"
4589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4590
$as_echo "$lt_cv_nm_interface" >&6; }
4592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4593
$as_echo_n "checking whether ln -s works... " >&6; }
4595
if test "$LN_S" = "ln -s"; then
4596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4597
$as_echo "yes" >&6; }
4599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4600
$as_echo "no, using $LN_S" >&6; }
4603
# find the maximum length of command line arguments
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4605
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4606
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4607
$as_echo_n "(cached) " >&6
4614
# On DJGPP, this test can blow up pretty badly due to problems in libc
4615
# (any single argument exceeding 2000 bytes causes a buffer overrun
4616
# during glob expansion). Even if it were fixed, the result of this
4617
# check would be larger than it should be.
4618
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4622
# Under GNU Hurd, this test is not required because there is
4623
# no limit to the length of command line arguments.
4624
# Libtool will interpret -1 as no limit whatsoever
4625
lt_cv_sys_max_cmd_len=-1;
4628
cygwin* | mingw* | cegcc*)
4629
# On Win9x/ME, this test blows up -- it succeeds, but takes
4630
# about 5 minutes as the teststring grows exponentially.
4631
# Worse, since 9x/ME are not pre-emptively multitasking,
4632
# you end up with a "frozen" computer, even though with patience
4633
# the test eventually succeeds (with a max line length of 256k).
4634
# Instead, let's just punt: use the minimum linelength reported by
4635
# all of the supported platforms: 8192 (on NT/2K/XP).
4636
lt_cv_sys_max_cmd_len=8192;
4640
# On AmigaOS with pdksh, this test takes hours, literally.
4641
# So we just punt and use a minimum line length of 8192.
4642
lt_cv_sys_max_cmd_len=8192;
4645
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4646
# This has been around since 386BSD, at least. Likely further.
4647
if test -x /sbin/sysctl; then
4648
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4649
elif test -x /usr/sbin/sysctl; then
4650
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4652
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4654
# And add a safety zone
4655
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4656
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4660
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4661
lt_cv_sys_max_cmd_len=196608
4665
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4666
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4667
# nice to cause kernel panics so lets avoid the loop below.
4668
# First set a reasonable default.
4669
lt_cv_sys_max_cmd_len=16384
4671
if test -x /sbin/sysconfig; then
4672
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4673
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4678
lt_cv_sys_max_cmd_len=102400
4680
sysv5* | sco5v6* | sysv4.2uw2*)
4681
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4682
if test -n "$kargmax"; then
4683
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4685
lt_cv_sys_max_cmd_len=32768
4689
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4690
if test -n "$lt_cv_sys_max_cmd_len"; then
4691
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4692
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4694
# Make teststring a little bigger before we do anything with it.
4695
# a 1K string should be a reasonable start.
4696
for i in 1 2 3 4 5 6 7 8 ; do
4697
teststring=$teststring$teststring
4699
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4700
# If test is not a shell built-in, we'll probably end up computing a
4701
# maximum length that is only half of the actual maximum length, but
4703
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4704
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4705
test $i != 17 # 1/2 MB should be enough
4708
teststring=$teststring$teststring
4710
# Only check the string length outside the loop.
4711
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4713
# Add a significant safety factor because C++ compilers can tack on
4714
# massive amounts of additional arguments before passing them to the
4715
# linker. It appears as though 1/2 is a usable value.
4716
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4723
if test -n $lt_cv_sys_max_cmd_len ; then
4724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4725
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4728
$as_echo "none" >&6; }
4730
max_cmd_len=$lt_cv_sys_max_cmd_len
4741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4742
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4743
# Try some XSI features
4746
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4748
&& eval 'test $(( 1 + 1 )) -eq 2 \
4749
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4752
$as_echo "$xsi_shell" >&6; }
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4756
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4758
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4760
&& lt_shell_append=yes
4761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4762
$as_echo "$lt_shell_append" >&6; }
4765
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4775
# test EBCDIC or ASCII
4776
case `echo X|tr X '\101'` in
4777
A) # ASCII based system
4778
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4779
lt_SP2NL='tr \040 \012'
4780
lt_NL2SP='tr \015\012 \040\040'
4782
*) # EBCDIC based system
4783
lt_SP2NL='tr \100 \n'
4784
lt_NL2SP='tr \r\n \100\100'
4796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4797
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4798
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4799
$as_echo_n "(cached) " >&6
4801
lt_cv_ld_reload_flag='-r'
4803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4804
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4805
reload_flag=$lt_cv_ld_reload_flag
4806
case $reload_flag in
4808
*) reload_flag=" $reload_flag" ;;
4810
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4813
if test "$GCC" = yes; then
4814
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4816
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4829
if test -n "$ac_tool_prefix"; then
4830
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4831
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833
$as_echo_n "checking for $ac_word... " >&6; }
4834
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4835
$as_echo_n "(cached) " >&6
4837
if test -n "$OBJDUMP"; then
4838
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844
test -z "$as_dir" && as_dir=.
4845
for ac_exec_ext in '' $ac_executable_extensions; do
4846
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4848
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857
OBJDUMP=$ac_cv_prog_OBJDUMP
4858
if test -n "$OBJDUMP"; then
4859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4860
$as_echo "$OBJDUMP" >&6; }
4862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863
$as_echo "no" >&6; }
4868
if test -z "$ac_cv_prog_OBJDUMP"; then
4869
ac_ct_OBJDUMP=$OBJDUMP
4870
# Extract the first word of "objdump", so it can be a program name with args.
4871
set dummy objdump; ac_word=$2
4872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873
$as_echo_n "checking for $ac_word... " >&6; }
4874
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4875
$as_echo_n "(cached) " >&6
4877
if test -n "$ac_ct_OBJDUMP"; then
4878
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884
test -z "$as_dir" && as_dir=.
4885
for ac_exec_ext in '' $ac_executable_extensions; do
4886
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4888
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4898
if test -n "$ac_ct_OBJDUMP"; then
4899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4900
$as_echo "$ac_ct_OBJDUMP" >&6; }
4902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903
$as_echo "no" >&6; }
4906
if test "x$ac_ct_OBJDUMP" = x; then
4909
case $cross_compiling:$ac_tool_warned in
4911
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913
ac_tool_warned=yes ;;
4915
OBJDUMP=$ac_ct_OBJDUMP
4918
OBJDUMP="$ac_cv_prog_OBJDUMP"
4921
test -z "$OBJDUMP" && OBJDUMP=objdump
4931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4932
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4933
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4934
$as_echo_n "(cached) " >&6
4936
lt_cv_file_magic_cmd='$MAGIC_CMD'
4937
lt_cv_file_magic_test_file=
4938
lt_cv_deplibs_check_method='unknown'
4939
# Need to set the preceding variable on all platforms that support
4940
# interlibrary dependencies.
4941
# 'none' -- dependencies not supported.
4942
# `unknown' -- same as none, but documents that we really don't know.
4943
# 'pass_all' -- all dependencies passed with no checks.
4944
# 'test_compile' -- check by making test program.
4945
# 'file_magic [[regex]]' -- check by looking for files in library path
4946
# which responds to the $file_magic_cmd with a given extended regex.
4947
# If you have `file' or equivalent on your system and you're not sure
4948
# whether `pass_all' will *always* work, you probably want this one.
4952
lt_cv_deplibs_check_method=pass_all
4956
lt_cv_deplibs_check_method=pass_all
4960
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4961
lt_cv_file_magic_cmd='/usr/bin/file -L'
4962
lt_cv_file_magic_test_file=/shlib/libc.so
4966
# func_win32_libid is a shell function defined in ltmain.sh
4967
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968
lt_cv_file_magic_cmd='func_win32_libid'
4972
# Base MSYS/MinGW do not provide the 'file' command needed by
4973
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4974
# unless we find 'file', for example because we are cross-compiling.
4975
if ( file / ) >/dev/null 2>&1; then
4976
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4977
lt_cv_file_magic_cmd='func_win32_libid'
4979
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4980
lt_cv_file_magic_cmd='$OBJDUMP -f'
4985
# use the weaker test based on 'objdump'. See mingw*.
4986
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4987
lt_cv_file_magic_cmd='$OBJDUMP -f'
4990
darwin* | rhapsody*)
4991
lt_cv_deplibs_check_method=pass_all
4994
freebsd* | dragonfly*)
4995
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4998
# Not sure whether the presence of OpenBSD here was a mistake.
4999
# Let's accept both of them until this is cleared up.
5000
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5001
lt_cv_file_magic_cmd=/usr/bin/file
5002
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5006
lt_cv_deplibs_check_method=pass_all
5011
lt_cv_deplibs_check_method=pass_all
5014
hpux10.20* | hpux11*)
5015
lt_cv_file_magic_cmd=/usr/bin/file
5018
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5019
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5022
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]'
5023
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5026
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5027
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5033
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5034
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5037
irix5* | irix6* | nonstopux*)
5039
*-32|*"-32 ") libmagic=32-bit;;
5040
*-n32|*"-n32 ") libmagic=N32;;
5041
*-64|*"-64 ") libmagic=64-bit;;
5042
*) libmagic=never-match;;
5044
lt_cv_deplibs_check_method=pass_all
5047
# This must be Linux ELF.
5048
linux* | k*bsd*-gnu)
5049
lt_cv_deplibs_check_method=pass_all
5052
netbsd* | netbsdelf*-gnu)
5053
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5054
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5056
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5061
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5062
lt_cv_file_magic_cmd=/usr/bin/file
5063
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5067
lt_cv_deplibs_check_method=pass_all
5071
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5072
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5074
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5078
osf3* | osf4* | osf5*)
5079
lt_cv_deplibs_check_method=pass_all
5083
lt_cv_deplibs_check_method=pass_all
5087
lt_cv_deplibs_check_method=pass_all
5090
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5091
lt_cv_deplibs_check_method=pass_all
5095
case $host_vendor in
5097
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]'
5098
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5101
lt_cv_deplibs_check_method=pass_all
5104
lt_cv_file_magic_cmd='/bin/file'
5105
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5108
lt_cv_file_magic_cmd='/bin/file'
5109
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5110
lt_cv_file_magic_test_file=/lib/libc.so
5113
lt_cv_deplibs_check_method=pass_all
5116
lt_cv_deplibs_check_method=pass_all
5122
lt_cv_deplibs_check_method=pass_all
5127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5128
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5129
file_magic_cmd=$lt_cv_file_magic_cmd
5130
deplibs_check_method=$lt_cv_deplibs_check_method
5131
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5144
if test -n "$ac_tool_prefix"; then
5145
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5146
set dummy ${ac_tool_prefix}ar; ac_word=$2
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148
$as_echo_n "checking for $ac_word... " >&6; }
5149
if test "${ac_cv_prog_AR+set}" = set; then :
5150
$as_echo_n "(cached) " >&6
5152
if test -n "$AR"; then
5153
ac_cv_prog_AR="$AR" # Let the user override the test.
5155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159
test -z "$as_dir" && as_dir=.
5160
for ac_exec_ext in '' $ac_executable_extensions; do
5161
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162
ac_cv_prog_AR="${ac_tool_prefix}ar"
5163
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173
if test -n "$AR"; then
5174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5175
$as_echo "$AR" >&6; }
5177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178
$as_echo "no" >&6; }
5183
if test -z "$ac_cv_prog_AR"; then
5185
# Extract the first word of "ar", so it can be a program name with args.
5186
set dummy ar; ac_word=$2
5187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188
$as_echo_n "checking for $ac_word... " >&6; }
5189
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5190
$as_echo_n "(cached) " >&6
5192
if test -n "$ac_ct_AR"; then
5193
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199
test -z "$as_dir" && as_dir=.
5200
for ac_exec_ext in '' $ac_executable_extensions; do
5201
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202
ac_cv_prog_ac_ct_AR="ar"
5203
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5213
if test -n "$ac_ct_AR"; then
5214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5215
$as_echo "$ac_ct_AR" >&6; }
5217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218
$as_echo "no" >&6; }
5221
if test "x$ac_ct_AR" = x; then
5224
case $cross_compiling:$ac_tool_warned in
5226
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5227
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5228
ac_tool_warned=yes ;;
5236
test -z "$AR" && AR=ar
5237
test -z "$AR_FLAGS" && AR_FLAGS=cru
5249
if test -n "$ac_tool_prefix"; then
5250
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5251
set dummy ${ac_tool_prefix}strip; ac_word=$2
5252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253
$as_echo_n "checking for $ac_word... " >&6; }
5254
if test "${ac_cv_prog_STRIP+set}" = set; then :
5255
$as_echo_n "(cached) " >&6
5257
if test -n "$STRIP"; then
5258
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264
test -z "$as_dir" && as_dir=.
5265
for ac_exec_ext in '' $ac_executable_extensions; do
5266
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5268
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277
STRIP=$ac_cv_prog_STRIP
5278
if test -n "$STRIP"; then
5279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5280
$as_echo "$STRIP" >&6; }
5282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283
$as_echo "no" >&6; }
5288
if test -z "$ac_cv_prog_STRIP"; then
5290
# Extract the first word of "strip", so it can be a program name with args.
5291
set dummy strip; ac_word=$2
5292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293
$as_echo_n "checking for $ac_word... " >&6; }
5294
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5295
$as_echo_n "(cached) " >&6
5297
if test -n "$ac_ct_STRIP"; then
5298
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304
test -z "$as_dir" && as_dir=.
5305
for ac_exec_ext in '' $ac_executable_extensions; do
5306
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307
ac_cv_prog_ac_ct_STRIP="strip"
5308
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5318
if test -n "$ac_ct_STRIP"; then
5319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5320
$as_echo "$ac_ct_STRIP" >&6; }
5322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323
$as_echo "no" >&6; }
5326
if test "x$ac_ct_STRIP" = x; then
5329
case $cross_compiling:$ac_tool_warned in
5331
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333
ac_tool_warned=yes ;;
5338
STRIP="$ac_cv_prog_STRIP"
5341
test -z "$STRIP" && STRIP=:
5348
if test -n "$ac_tool_prefix"; then
5349
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352
$as_echo_n "checking for $ac_word... " >&6; }
5353
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5354
$as_echo_n "(cached) " >&6
5356
if test -n "$RANLIB"; then
5357
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363
test -z "$as_dir" && as_dir=.
5364
for ac_exec_ext in '' $ac_executable_extensions; do
5365
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5367
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376
RANLIB=$ac_cv_prog_RANLIB
5377
if test -n "$RANLIB"; then
5378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5379
$as_echo "$RANLIB" >&6; }
5381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382
$as_echo "no" >&6; }
5387
if test -z "$ac_cv_prog_RANLIB"; then
5388
ac_ct_RANLIB=$RANLIB
5389
# Extract the first word of "ranlib", so it can be a program name with args.
5390
set dummy ranlib; ac_word=$2
5391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392
$as_echo_n "checking for $ac_word... " >&6; }
5393
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5394
$as_echo_n "(cached) " >&6
5396
if test -n "$ac_ct_RANLIB"; then
5397
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403
test -z "$as_dir" && as_dir=.
5404
for ac_exec_ext in '' $ac_executable_extensions; do
5405
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406
ac_cv_prog_ac_ct_RANLIB="ranlib"
5407
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5417
if test -n "$ac_ct_RANLIB"; then
5418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5419
$as_echo "$ac_ct_RANLIB" >&6; }
5421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422
$as_echo "no" >&6; }
5425
if test "x$ac_ct_RANLIB" = x; then
5428
case $cross_compiling:$ac_tool_warned in
5430
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5431
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432
ac_tool_warned=yes ;;
5434
RANLIB=$ac_ct_RANLIB
5437
RANLIB="$ac_cv_prog_RANLIB"
5440
test -z "$RANLIB" && RANLIB=:
5447
# Determine commands to create old-style static archives.
5448
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5449
old_postinstall_cmds='chmod 644 $oldlib'
5450
old_postuninstall_cmds=
5452
if test -n "$RANLIB"; then
5455
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5458
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5461
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5497
# If no C compiler was specified, use CC.
5500
# If no C compiler flags were specified, use CFLAGS.
5501
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5503
# Allow CC to be a program name with arguments.
5507
# Check for command to grab the raw symbol name followed by C symbol from nm.
5508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5509
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5510
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5511
$as_echo_n "(cached) " >&6
5514
# These are sane defaults that work on at least a few old systems.
5515
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5517
# Character class describing NM global symbol codes.
5518
symcode='[BCDEGRST]'
5520
# Regexp to match symbols that can be accessed directly from C.
5521
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5523
# Define system-specific variables.
5528
cygwin* | mingw* | pw32* | cegcc*)
5529
symcode='[ABCDGISTW]'
5532
if test "$host_cpu" = ia64; then
5533
symcode='[ABCDEGRST]'
5537
symcode='[BCDEGRST]'
5540
symcode='[BCDEGQRST]'
5551
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5559
# If we're using GNU nm, then use its standard symbol codes.
5560
case `$NM -V 2>&1` in
5561
*GNU* | *'with BFD'*)
5562
symcode='[ABCDGIRSTW]' ;;
5565
# Transform an extracted symbol line into a proper C declaration.
5566
# Some systems (esp. on ia64) link data and code symbols differently,
5567
# so use this general approach.
5568
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5570
# Transform an extracted symbol line into symbol name and symbol address
5571
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5572
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'"
5574
# Handle CRLF in mingw tool chain
5578
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5582
# Try without a prefix underscore, then with it.
5583
for ac_symprfx in "" "_"; do
5585
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5586
symxfrm="\\1 $ac_symprfx\\2 \\2"
5588
# Write the raw and C identifiers.
5589
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5590
# Fake it for dumpbin and say T for any non-static function
5591
# and D for any global variable.
5592
# Also find C++ and __fastcall symbols from MSVC++,
5593
# which start with @ or ?.
5594
lt_cv_sys_global_symbol_pipe="$AWK '"\
5595
" {last_section=section; section=\$ 3};"\
5596
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5597
" \$ 0!~/External *\|/{next};"\
5598
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5599
" {if(hide[section]) next};"\
5600
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5601
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5602
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5603
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5604
" ' prfx=^$ac_symprfx"
5606
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5609
# Check to see that the pipe works correctly.
5613
cat > conftest.$ac_ext <<_LT_EOF
5618
void nm_test_func(void);
5619
void nm_test_func(void){}
5623
int main(){nm_test_var='a';nm_test_func();return(0);}
5626
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5627
(eval $ac_compile) 2>&5
5629
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630
test $ac_status = 0; }; then
5631
# Now try to grab the symbols.
5633
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5634
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5636
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5637
test $ac_status = 0; } && test -s "$nlist"; then
5638
# Try sorting and uniquifying the output.
5639
if sort "$nlist" | uniq > "$nlist"T; then
5640
mv -f "$nlist"T "$nlist"
5645
# Make sure that we snagged all the symbols we need.
5646
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5647
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5648
cat <<_LT_EOF > conftest.$ac_ext
5654
# Now generate the symbol file.
5655
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5657
cat <<_LT_EOF >> conftest.$ac_ext
5659
/* The mapping between symbol names and symbols. */
5664
lt__PROGRAM__LTX_preloaded_symbols[] =
5666
{ "@PROGRAM@", (void *) 0 },
5668
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5669
cat <<\_LT_EOF >> conftest.$ac_ext
5673
/* This works around a problem in FreeBSD linker */
5674
#ifdef FREEBSD_WORKAROUND
5675
static const void *lt_preloaded_setup() {
5676
return lt__PROGRAM__LTX_preloaded_symbols;
5684
# Now try linking the two files.
5685
mv conftest.$ac_objext conftstm.$ac_objext
5686
lt_save_LIBS="$LIBS"
5687
lt_save_CFLAGS="$CFLAGS"
5688
LIBS="conftstm.$ac_objext"
5689
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5690
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5691
(eval $ac_link) 2>&5
5693
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5697
LIBS="$lt_save_LIBS"
5698
CFLAGS="$lt_save_CFLAGS"
5700
echo "cannot find nm_test_func in $nlist" >&5
5703
echo "cannot find nm_test_var in $nlist" >&5
5706
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5709
echo "$progname: failed program was:" >&5
5710
cat conftest.$ac_ext >&5
5712
rm -rf conftest* conftst*
5714
# Do not use the global_symbol_pipe unless it works.
5715
if test "$pipe_works" = yes; then
5718
lt_cv_sys_global_symbol_pipe=
5724
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5725
lt_cv_sys_global_symbol_to_cdecl=
5727
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5729
$as_echo "failed" >&6; }
5731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5732
$as_echo "ok" >&6; }
5757
# Check whether --enable-libtool-lock was given.
5758
if test "${enable_libtool_lock+set}" = set; then :
5759
enableval=$enable_libtool_lock;
5762
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5764
# Some flags need to be propagated to the compiler or linker for good
5768
# Find out which ABI we are using.
5769
echo 'int i;' > conftest.$ac_ext
5770
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5771
(eval $ac_compile) 2>&5
5773
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774
test $ac_status = 0; }; then
5775
case `/usr/bin/file conftest.$ac_objext` in
5787
# Find out which ABI we are using.
5788
echo '#line 5788 "configure"' > conftest.$ac_ext
5789
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5790
(eval $ac_compile) 2>&5
5792
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5793
test $ac_status = 0; }; then
5794
if test "$lt_cv_prog_gnu_ld" = yes; then
5795
case `/usr/bin/file conftest.$ac_objext` in
5797
LD="${LD-ld} -melf32bsmip"
5800
LD="${LD-ld} -melf32bmipn32"
5803
LD="${LD-ld} -melf64bmip"
5807
case `/usr/bin/file conftest.$ac_objext` in
5823
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5824
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5825
# Find out which ABI we are using.
5826
echo 'int i;' > conftest.$ac_ext
5827
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5828
(eval $ac_compile) 2>&5
5830
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5831
test $ac_status = 0; }; then
5832
case `/usr/bin/file conftest.o` in
5835
x86_64-*kfreebsd*-gnu)
5836
LD="${LD-ld} -m elf_i386_fbsd"
5839
LD="${LD-ld} -m elf_i386"
5841
ppc64-*linux*|powerpc64-*linux*)
5842
LD="${LD-ld} -m elf32ppclinux"
5845
LD="${LD-ld} -m elf_s390"
5848
LD="${LD-ld} -m elf32_sparc"
5854
x86_64-*kfreebsd*-gnu)
5855
LD="${LD-ld} -m elf_x86_64_fbsd"
5858
LD="${LD-ld} -m elf_x86_64"
5860
ppc*-*linux*|powerpc*-*linux*)
5861
LD="${LD-ld} -m elf64ppc"
5863
s390*-*linux*|s390*-*tpf*)
5864
LD="${LD-ld} -m elf64_s390"
5867
LD="${LD-ld} -m elf64_sparc"
5877
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5878
SAVE_CFLAGS="$CFLAGS"
5879
CFLAGS="$CFLAGS -belf"
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5881
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5882
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5883
$as_echo_n "(cached) " >&6
5886
ac_cpp='$CPP $CPPFLAGS'
5887
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5891
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892
/* end confdefs.h. */
5902
if ac_fn_c_try_link "$LINENO"; then :
5903
lt_cv_cc_needs_belf=yes
5905
lt_cv_cc_needs_belf=no
5907
rm -f core conftest.err conftest.$ac_objext \
5908
conftest$ac_exeext conftest.$ac_ext
5910
ac_cpp='$CPP $CPPFLAGS'
5911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5917
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5918
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5919
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5920
CFLAGS="$SAVE_CFLAGS"
5924
# Find out which ABI we are using.
5925
echo 'int i;' > conftest.$ac_ext
5926
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5927
(eval $ac_compile) 2>&5
5929
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5930
test $ac_status = 0; }; then
5931
case `/usr/bin/file conftest.o` in
5933
case $lt_cv_prog_gnu_ld in
5934
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5936
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5948
need_locks="$enable_libtool_lock"
5952
rhapsody* | darwin*)
5953
if test -n "$ac_tool_prefix"; then
5954
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5955
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957
$as_echo_n "checking for $ac_word... " >&6; }
5958
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5959
$as_echo_n "(cached) " >&6
5961
if test -n "$DSYMUTIL"; then
5962
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968
test -z "$as_dir" && as_dir=.
5969
for ac_exec_ext in '' $ac_executable_extensions; do
5970
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5972
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5982
if test -n "$DSYMUTIL"; then
5983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5984
$as_echo "$DSYMUTIL" >&6; }
5986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987
$as_echo "no" >&6; }
5992
if test -z "$ac_cv_prog_DSYMUTIL"; then
5993
ac_ct_DSYMUTIL=$DSYMUTIL
5994
# Extract the first word of "dsymutil", so it can be a program name with args.
5995
set dummy dsymutil; ac_word=$2
5996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997
$as_echo_n "checking for $ac_word... " >&6; }
5998
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5999
$as_echo_n "(cached) " >&6
6001
if test -n "$ac_ct_DSYMUTIL"; then
6002
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008
test -z "$as_dir" && as_dir=.
6009
for ac_exec_ext in '' $ac_executable_extensions; do
6010
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6012
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6022
if test -n "$ac_ct_DSYMUTIL"; then
6023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6024
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027
$as_echo "no" >&6; }
6030
if test "x$ac_ct_DSYMUTIL" = x; then
6033
case $cross_compiling:$ac_tool_warned in
6035
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037
ac_tool_warned=yes ;;
6039
DSYMUTIL=$ac_ct_DSYMUTIL
6042
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6045
if test -n "$ac_tool_prefix"; then
6046
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6047
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049
$as_echo_n "checking for $ac_word... " >&6; }
6050
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6051
$as_echo_n "(cached) " >&6
6053
if test -n "$NMEDIT"; then
6054
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060
test -z "$as_dir" && as_dir=.
6061
for ac_exec_ext in '' $ac_executable_extensions; do
6062
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6064
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073
NMEDIT=$ac_cv_prog_NMEDIT
6074
if test -n "$NMEDIT"; then
6075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6076
$as_echo "$NMEDIT" >&6; }
6078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079
$as_echo "no" >&6; }
6084
if test -z "$ac_cv_prog_NMEDIT"; then
6085
ac_ct_NMEDIT=$NMEDIT
6086
# Extract the first word of "nmedit", so it can be a program name with args.
6087
set dummy nmedit; ac_word=$2
6088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089
$as_echo_n "checking for $ac_word... " >&6; }
6090
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6091
$as_echo_n "(cached) " >&6
6093
if test -n "$ac_ct_NMEDIT"; then
6094
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100
test -z "$as_dir" && as_dir=.
6101
for ac_exec_ext in '' $ac_executable_extensions; do
6102
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6104
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6114
if test -n "$ac_ct_NMEDIT"; then
6115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6116
$as_echo "$ac_ct_NMEDIT" >&6; }
6118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119
$as_echo "no" >&6; }
6122
if test "x$ac_ct_NMEDIT" = x; then
6125
case $cross_compiling:$ac_tool_warned in
6127
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129
ac_tool_warned=yes ;;
6131
NMEDIT=$ac_ct_NMEDIT
6134
NMEDIT="$ac_cv_prog_NMEDIT"
6137
if test -n "$ac_tool_prefix"; then
6138
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6139
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6140
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141
$as_echo_n "checking for $ac_word... " >&6; }
6142
if test "${ac_cv_prog_LIPO+set}" = set; then :
6143
$as_echo_n "(cached) " >&6
6145
if test -n "$LIPO"; then
6146
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152
test -z "$as_dir" && as_dir=.
6153
for ac_exec_ext in '' $ac_executable_extensions; do
6154
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6156
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165
LIPO=$ac_cv_prog_LIPO
6166
if test -n "$LIPO"; then
6167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6168
$as_echo "$LIPO" >&6; }
6170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171
$as_echo "no" >&6; }
6176
if test -z "$ac_cv_prog_LIPO"; then
6178
# Extract the first word of "lipo", so it can be a program name with args.
6179
set dummy lipo; ac_word=$2
6180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181
$as_echo_n "checking for $ac_word... " >&6; }
6182
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6183
$as_echo_n "(cached) " >&6
6185
if test -n "$ac_ct_LIPO"; then
6186
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192
test -z "$as_dir" && as_dir=.
6193
for ac_exec_ext in '' $ac_executable_extensions; do
6194
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195
ac_cv_prog_ac_ct_LIPO="lipo"
6196
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6206
if test -n "$ac_ct_LIPO"; then
6207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6208
$as_echo "$ac_ct_LIPO" >&6; }
6210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211
$as_echo "no" >&6; }
6214
if test "x$ac_ct_LIPO" = x; then
6217
case $cross_compiling:$ac_tool_warned in
6219
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221
ac_tool_warned=yes ;;
6226
LIPO="$ac_cv_prog_LIPO"
6229
if test -n "$ac_tool_prefix"; then
6230
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6231
set dummy ${ac_tool_prefix}otool; ac_word=$2
6232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233
$as_echo_n "checking for $ac_word... " >&6; }
6234
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6235
$as_echo_n "(cached) " >&6
6237
if test -n "$OTOOL"; then
6238
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244
test -z "$as_dir" && as_dir=.
6245
for ac_exec_ext in '' $ac_executable_extensions; do
6246
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6248
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257
OTOOL=$ac_cv_prog_OTOOL
6258
if test -n "$OTOOL"; then
6259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6260
$as_echo "$OTOOL" >&6; }
6262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263
$as_echo "no" >&6; }
6268
if test -z "$ac_cv_prog_OTOOL"; then
6270
# Extract the first word of "otool", so it can be a program name with args.
6271
set dummy otool; ac_word=$2
6272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273
$as_echo_n "checking for $ac_word... " >&6; }
6274
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6275
$as_echo_n "(cached) " >&6
6277
if test -n "$ac_ct_OTOOL"; then
6278
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284
test -z "$as_dir" && as_dir=.
6285
for ac_exec_ext in '' $ac_executable_extensions; do
6286
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287
ac_cv_prog_ac_ct_OTOOL="otool"
6288
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6298
if test -n "$ac_ct_OTOOL"; then
6299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6300
$as_echo "$ac_ct_OTOOL" >&6; }
6302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303
$as_echo "no" >&6; }
6306
if test "x$ac_ct_OTOOL" = x; then
6309
case $cross_compiling:$ac_tool_warned in
6311
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6312
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313
ac_tool_warned=yes ;;
6318
OTOOL="$ac_cv_prog_OTOOL"
6321
if test -n "$ac_tool_prefix"; then
6322
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6323
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325
$as_echo_n "checking for $ac_word... " >&6; }
6326
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6327
$as_echo_n "(cached) " >&6
6329
if test -n "$OTOOL64"; then
6330
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336
test -z "$as_dir" && as_dir=.
6337
for ac_exec_ext in '' $ac_executable_extensions; do
6338
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6340
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349
OTOOL64=$ac_cv_prog_OTOOL64
6350
if test -n "$OTOOL64"; then
6351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6352
$as_echo "$OTOOL64" >&6; }
6354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355
$as_echo "no" >&6; }
6360
if test -z "$ac_cv_prog_OTOOL64"; then
6361
ac_ct_OTOOL64=$OTOOL64
6362
# Extract the first word of "otool64", so it can be a program name with args.
6363
set dummy otool64; ac_word=$2
6364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365
$as_echo_n "checking for $ac_word... " >&6; }
6366
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6367
$as_echo_n "(cached) " >&6
6369
if test -n "$ac_ct_OTOOL64"; then
6370
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376
test -z "$as_dir" && as_dir=.
6377
for ac_exec_ext in '' $ac_executable_extensions; do
6378
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379
ac_cv_prog_ac_ct_OTOOL64="otool64"
6380
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6390
if test -n "$ac_ct_OTOOL64"; then
6391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6392
$as_echo "$ac_ct_OTOOL64" >&6; }
6394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395
$as_echo "no" >&6; }
6398
if test "x$ac_ct_OTOOL64" = x; then
6401
case $cross_compiling:$ac_tool_warned in
6403
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405
ac_tool_warned=yes ;;
6407
OTOOL64=$ac_ct_OTOOL64
6410
OTOOL64="$ac_cv_prog_OTOOL64"
6439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6440
$as_echo_n "checking for -single_module linker flag... " >&6; }
6441
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6442
$as_echo_n "(cached) " >&6
6444
lt_cv_apple_cc_single_mod=no
6445
if test -z "${LT_MULTI_MODULE}"; then
6446
# By default we will add the -single_module flag. You can override
6447
# by either setting the environment variable LT_MULTI_MODULE
6448
# non-empty at configure time, or by adding -multi_module to the
6450
rm -rf libconftest.dylib*
6451
echo "int foo(void){return 1;}" > conftest.c
6452
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6453
-dynamiclib -Wl,-single_module conftest.c" >&5
6454
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6455
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6457
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6458
lt_cv_apple_cc_single_mod=yes
6460
cat conftest.err >&5
6462
rm -rf libconftest.dylib*
6466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6467
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6469
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6470
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6471
$as_echo_n "(cached) " >&6
6473
lt_cv_ld_exported_symbols_list=no
6474
save_LDFLAGS=$LDFLAGS
6475
echo "_main" > conftest.sym
6476
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478
/* end confdefs.h. */
6488
if ac_fn_c_try_link "$LINENO"; then :
6489
lt_cv_ld_exported_symbols_list=yes
6491
lt_cv_ld_exported_symbols_list=no
6493
rm -f core conftest.err conftest.$ac_objext \
6494
conftest$ac_exeext conftest.$ac_ext
6495
LDFLAGS="$save_LDFLAGS"
6498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6499
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6501
rhapsody* | darwin1.[012])
6502
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6504
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6505
darwin*) # darwin 5.x on
6506
# if running on 10.5 or later, the deployment target defaults
6507
# to the OS version, if on x86, and 10.4, the deployment
6508
# target defaults to 10.4. Don't you love it?
6509
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6510
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6511
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6513
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6515
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6519
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6520
_lt_dar_single_mod='$single_module'
6522
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6523
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6525
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6527
if test "$DSYMUTIL" != ":"; then
6528
_lt_dsymutil='~$DSYMUTIL $lib || :'
6536
ac_cpp='$CPP $CPPFLAGS'
6537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6541
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6542
# On Suns, sometimes $CPP names a directory.
6543
if test -n "$CPP" && test -d "$CPP"; then
6546
if test -z "$CPP"; then
6547
if test "${ac_cv_prog_CPP+set}" = set; then :
6548
$as_echo_n "(cached) " >&6
6550
# Double quotes because CPP needs to be expanded
6551
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6554
for ac_c_preproc_warn_flag in '' yes
6556
# Use a header file that comes with gcc, so configuring glibc
6557
# with a fresh cross-compiler works.
6558
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559
# <limits.h> exists even on freestanding compilers.
6560
# On the NeXT, cc -E runs the code through the compiler's parser,
6561
# not just through cpp. "Syntax error" is here to catch this case.
6562
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563
/* end confdefs.h. */
6565
# include <limits.h>
6567
# include <assert.h>
6571
if ac_fn_c_try_cpp "$LINENO"; then :
6574
# Broken: fails on valid input.
6577
rm -f conftest.err conftest.$ac_ext
6579
# OK, works on sane cases. Now check whether nonexistent headers
6580
# can be detected and how.
6581
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582
/* end confdefs.h. */
6583
#include <ac_nonexistent.h>
6585
if ac_fn_c_try_cpp "$LINENO"; then :
6586
# Broken: success on invalid input.
6589
# Passes both tests.
6593
rm -f conftest.err conftest.$ac_ext
6596
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6597
rm -f conftest.err conftest.$ac_ext
6598
if $ac_preproc_ok; then :
6610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6611
$as_echo "$CPP" >&6; }
6613
for ac_c_preproc_warn_flag in '' yes
6615
# Use a header file that comes with gcc, so configuring glibc
6616
# with a fresh cross-compiler works.
6617
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6618
# <limits.h> exists even on freestanding compilers.
6619
# On the NeXT, cc -E runs the code through the compiler's parser,
6620
# not just through cpp. "Syntax error" is here to catch this case.
6621
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622
/* end confdefs.h. */
6624
# include <limits.h>
6626
# include <assert.h>
6630
if ac_fn_c_try_cpp "$LINENO"; then :
6633
# Broken: fails on valid input.
6636
rm -f conftest.err conftest.$ac_ext
6638
# OK, works on sane cases. Now check whether nonexistent headers
6639
# can be detected and how.
6640
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641
/* end confdefs.h. */
6642
#include <ac_nonexistent.h>
6644
if ac_fn_c_try_cpp "$LINENO"; then :
6645
# Broken: success on invalid input.
6648
# Passes both tests.
6652
rm -f conftest.err conftest.$ac_ext
6655
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6656
rm -f conftest.err conftest.$ac_ext
6657
if $ac_preproc_ok; then :
6660
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6661
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6662
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6663
See \`config.log' for more details." "$LINENO" 5; }
6667
ac_cpp='$CPP $CPPFLAGS'
6668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6674
$as_echo_n "checking for ANSI C header files... " >&6; }
6675
if test "${ac_cv_header_stdc+set}" = set; then :
6676
$as_echo_n "(cached) " >&6
6678
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679
/* end confdefs.h. */
6693
if ac_fn_c_try_compile "$LINENO"; then :
6694
ac_cv_header_stdc=yes
6696
ac_cv_header_stdc=no
6698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700
if test $ac_cv_header_stdc = yes; then
6701
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6702
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703
/* end confdefs.h. */
6707
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6708
$EGREP "memchr" >/dev/null 2>&1; then :
6711
ac_cv_header_stdc=no
6717
if test $ac_cv_header_stdc = yes; then
6718
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6719
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720
/* end confdefs.h. */
6724
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6725
$EGREP "free" >/dev/null 2>&1; then :
6728
ac_cv_header_stdc=no
6734
if test $ac_cv_header_stdc = yes; then
6735
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6736
if test "$cross_compiling" = yes; then :
6739
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740
/* end confdefs.h. */
6743
#if ((' ' & 0x0FF) == 0x020)
6744
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6745
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6747
# define ISLOWER(c) \
6748
(('a' <= (c) && (c) <= 'i') \
6749
|| ('j' <= (c) && (c) <= 'r') \
6750
|| ('s' <= (c) && (c) <= 'z'))
6751
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6754
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6759
for (i = 0; i < 256; i++)
6760
if (XOR (islower (i), ISLOWER (i))
6761
|| toupper (i) != TOUPPER (i))
6766
if ac_fn_c_try_run "$LINENO"; then :
6769
ac_cv_header_stdc=no
6771
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6772
conftest.$ac_objext conftest.beam conftest.$ac_ext
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6778
$as_echo "$ac_cv_header_stdc" >&6; }
6779
if test $ac_cv_header_stdc = yes; then
6781
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6785
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6786
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6787
inttypes.h stdint.h unistd.h
6789
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6790
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6792
eval as_val=\$$as_ac_Header
6793
if test "x$as_val" = x""yes; then :
6794
cat >>confdefs.h <<_ACEOF
6795
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6803
for ac_header in dlfcn.h
6805
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6807
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6808
cat >>confdefs.h <<_ACEOF
6809
#define HAVE_DLFCN_H 1
6828
# Check whether --enable-shared was given.
6829
if test "${enable_shared+set}" = set; then :
6830
enableval=$enable_shared; p=${PACKAGE-default}
6832
yes) enable_shared=yes ;;
6833
no) enable_shared=no ;;
6836
# Look at the argument we got. We use all the common list separators.
6837
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6838
for pkg in $enableval; do
6840
if test "X$pkg" = "X$p"; then
6859
# Check whether --enable-static was given.
6860
if test "${enable_static+set}" = set; then :
6861
enableval=$enable_static; p=${PACKAGE-default}
6863
yes) enable_static=yes ;;
6864
no) enable_static=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
6891
# Check whether --with-pic was given.
6892
if test "${with_pic+set}" = set; then :
6893
withval=$with_pic; pic_mode="$withval"
6899
test -z "$pic_mode" && pic_mode=default
6907
# Check whether --enable-fast-install was given.
6908
if test "${enable_fast_install+set}" = set; then :
6909
enableval=$enable_fast_install; p=${PACKAGE-default}
6911
yes) enable_fast_install=yes ;;
6912
no) enable_fast_install=no ;;
6914
enable_fast_install=no
6915
# Look at the argument we got. We use all the common list separators.
6916
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6917
for pkg in $enableval; do
6919
if test "X$pkg" = "X$p"; then
6920
enable_fast_install=yes
6927
enable_fast_install=yes
6940
# This can be used to rebuild libtool when needed
6941
LIBTOOL_DEPS="$ltmain"
6943
# Always use our own libtool.
6944
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6970
test -z "$LN_S" && LN_S="ln -s"
6985
if test -n "${ZSH_VERSION+set}" ; then
6986
setopt NO_GLOB_SUBST
6989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6990
$as_echo_n "checking for objdir... " >&6; }
6991
if test "${lt_cv_objdir+set}" = set; then :
6992
$as_echo_n "(cached) " >&6
6994
rm -f .libs 2>/dev/null
6995
mkdir .libs 2>/dev/null
6996
if test -d .libs; then
6999
# MS-DOS does not allow filenames that begin with a dot.
7002
rmdir .libs 2>/dev/null
7004
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7005
$as_echo "$lt_cv_objdir" >&6; }
7006
objdir=$lt_cv_objdir
7012
cat >>confdefs.h <<_ACEOF
7013
#define LT_OBJDIR "$lt_cv_objdir/"
7034
# AIX sometimes has problems with the GCC collect2 program. For some
7035
# reason, if we set the COLLECT_NAMES environment variable, the problems
7036
# vanish in a puff of smoke.
7037
if test "X${COLLECT_NAMES+set}" != Xset; then
7039
export COLLECT_NAMES
7044
# Sed substitution that helps us do robust quoting. It backslashifies
7045
# metacharacters that are still active within double-quoted strings.
7046
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7048
# Same as above, but do not quote variable references.
7049
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7051
# Sed substitution to delay expansion of an escaped shell variable in a
7052
# double_quote_subst'ed string.
7053
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7055
# Sed substitution to delay expansion of an escaped single quote.
7056
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7058
# Sed substitution to avoid accidental globbing in evaled expressions
7059
no_glob_subst='s/\*/\\\*/g'
7063
can_build_shared=yes
7065
# All known linkers require a `.a' archive for static linking (except MSVC,
7066
# which needs '.lib').
7069
with_gnu_ld="$lt_cv_prog_gnu_ld"
7072
old_CFLAGS="$CFLAGS"
7074
# Set sane defaults for various variables
7075
test -z "$CC" && CC=cc
7076
test -z "$LTCC" && LTCC=$CC
7077
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7078
test -z "$LD" && LD=ld
7079
test -z "$ac_objext" && ac_objext=o
7081
for cc_temp in $compiler""; do
7083
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7084
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7089
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7092
# Only perform the check for file, if the check method requires it
7093
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7094
case $deplibs_check_method in
7096
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7098
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7099
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7100
$as_echo_n "(cached) " >&6
7104
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7107
lt_save_MAGIC_CMD="$MAGIC_CMD"
7108
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7109
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7110
for ac_dir in $ac_dummy; do
7112
test -z "$ac_dir" && ac_dir=.
7113
if test -f $ac_dir/${ac_tool_prefix}file; then
7114
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7115
if test -n "$file_magic_test_file"; then
7116
case $deplibs_check_method in
7118
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7119
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7120
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7121
$EGREP "$file_magic_regex" > /dev/null; then
7126
*** Warning: the command libtool uses to detect shared libraries,
7127
*** $file_magic_cmd, produces output that libtool cannot recognize.
7128
*** The result is that libtool may fail to recognize shared libraries
7129
*** as such. This will affect the creation of libtool libraries that
7130
*** depend on shared libraries, but programs linked with such libtool
7131
*** libraries will work regardless of this problem. Nevertheless, you
7132
*** may want to report the problem to your system manager and/or to
7133
*** bug-libtool@gnu.org
7143
MAGIC_CMD="$lt_save_MAGIC_CMD"
7148
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149
if test -n "$MAGIC_CMD"; then
7150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7151
$as_echo "$MAGIC_CMD" >&6; }
7153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154
$as_echo "no" >&6; }
7161
if test -z "$lt_cv_path_MAGIC_CMD"; then
7162
if test -n "$ac_tool_prefix"; then
7163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7164
$as_echo_n "checking for file... " >&6; }
7165
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7166
$as_echo_n "(cached) " >&6
7170
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7173
lt_save_MAGIC_CMD="$MAGIC_CMD"
7174
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7175
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7176
for ac_dir in $ac_dummy; do
7178
test -z "$ac_dir" && ac_dir=.
7179
if test -f $ac_dir/file; then
7180
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7181
if test -n "$file_magic_test_file"; then
7182
case $deplibs_check_method in
7184
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7185
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7186
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7187
$EGREP "$file_magic_regex" > /dev/null; then
7192
*** Warning: the command libtool uses to detect shared libraries,
7193
*** $file_magic_cmd, produces output that libtool cannot recognize.
7194
*** The result is that libtool may fail to recognize shared libraries
7195
*** as such. This will affect the creation of libtool libraries that
7196
*** depend on shared libraries, but programs linked with such libtool
7197
*** libraries will work regardless of this problem. Nevertheless, you
7198
*** may want to report the problem to your system manager and/or to
7199
*** bug-libtool@gnu.org
7209
MAGIC_CMD="$lt_save_MAGIC_CMD"
7214
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7215
if test -n "$MAGIC_CMD"; then
7216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7217
$as_echo "$MAGIC_CMD" >&6; }
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220
$as_echo "no" >&6; }
7233
# Use C for the default configuration in the libtool script
7237
ac_cpp='$CPP $CPPFLAGS'
7238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7243
# Source file extension for C test sources.
7246
# Object file extension for compiled C test sources.
7250
# Code to be used in simple compile tests
7251
lt_simple_compile_test_code="int some_variable = 0;"
7253
# Code to be used in simple link tests
7254
lt_simple_link_test_code='int main(){return(0);}'
7262
# If no C compiler was specified, use CC.
7265
# If no C compiler flags were specified, use CFLAGS.
7266
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7268
# Allow CC to be a program name with arguments.
7271
# Save the default compiler, since it gets overwritten when the other
7272
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7273
compiler_DEFAULT=$CC
7275
# save warnings/boilerplate of simple test code
7276
ac_outfile=conftest.$ac_objext
7277
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7278
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7279
_lt_compiler_boilerplate=`cat conftest.err`
7282
ac_outfile=conftest.$ac_objext
7283
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7284
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7285
_lt_linker_boilerplate=`cat conftest.err`
7290
## There is no encapsulation within the following macros, do not change
7291
## the running order or otherwise move them around unless you know exactly
7292
## what you are doing...
7293
if test -n "$compiler"; then
7295
lt_prog_compiler_no_builtin_flag=
7297
if test "$GCC" = yes; then
7298
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7300
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7301
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7302
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7303
$as_echo_n "(cached) " >&6
7305
lt_cv_prog_compiler_rtti_exceptions=no
7306
ac_outfile=conftest.$ac_objext
7307
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7308
lt_compiler_flag="-fno-rtti -fno-exceptions"
7309
# Insert the option either (1) after the last *FLAGS variable, or
7310
# (2) before a word containing "conftest.", or (3) at the end.
7311
# Note that $ac_compile itself does not contain backslashes and begins
7312
# with a dollar sign (not a hyphen), so the echo should work correctly.
7313
# The option is referenced via a variable to avoid confusing sed.
7314
lt_compile=`echo "$ac_compile" | $SED \
7315
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7316
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7317
-e 's:$: $lt_compiler_flag:'`
7318
(eval echo "\"\$as_me:7318: $lt_compile\"" >&5)
7319
(eval "$lt_compile" 2>conftest.err)
7321
cat conftest.err >&5
7322
echo "$as_me:7322: \$? = $ac_status" >&5
7323
if (exit $ac_status) && test -s "$ac_outfile"; then
7324
# The compiler can only warn and ignore the option if not recognized
7325
# So say no if there are warnings other than the usual output.
7326
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7327
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7328
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7329
lt_cv_prog_compiler_rtti_exceptions=yes
7335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7336
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7338
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7339
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7351
lt_prog_compiler_wl=
7352
lt_prog_compiler_pic=
7353
lt_prog_compiler_static=
7355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7356
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7358
if test "$GCC" = yes; then
7359
lt_prog_compiler_wl='-Wl,'
7360
lt_prog_compiler_static='-static'
7364
# All AIX code is PIC.
7365
if test "$host_cpu" = ia64; then
7366
# AIX 5 now supports IA64 processor
7367
lt_prog_compiler_static='-Bstatic'
7374
# see comment about AmigaOS4 .so support
7375
lt_prog_compiler_pic='-fPIC'
7378
# FIXME: we need at least 68020 code to build shared libraries, but
7379
# adding the `-m68020' flag to GCC prevents building anything better,
7381
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7386
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7387
# PIC is the default for these OSes.
7390
mingw* | cygwin* | pw32* | os2* | cegcc*)
7391
# This hack is so that the source file can tell whether it is being
7392
# built for inclusion in a dll (and should export symbols for example).
7393
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7394
# (--disable-auto-import) libraries
7395
lt_prog_compiler_pic='-DDLL_EXPORT'
7398
darwin* | rhapsody*)
7399
# PIC is the default on this platform
7400
# Common symbols not allowed in MH_DYLIB files
7401
lt_prog_compiler_pic='-fno-common'
7405
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7406
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7407
# sets the default TLS model and affects inlining.
7413
lt_prog_compiler_pic='-fPIC'
7419
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7420
# Instead, we relocate shared libraries at runtime.
7424
# Just because we use GCC doesn't mean we suddenly get shared libraries
7425
# on systems that don't support them.
7426
lt_prog_compiler_can_build_shared=no
7431
# QNX uses GNU C++, but need to define -shared option too, otherwise
7433
lt_prog_compiler_pic='-fPIC -shared'
7437
if test -d /usr/nec; then
7438
lt_prog_compiler_pic=-Kconform_pic
7443
lt_prog_compiler_pic='-fPIC'
7447
# PORTME Check for flag to pass linker flags through the system compiler.
7450
lt_prog_compiler_wl='-Wl,'
7451
if test "$host_cpu" = ia64; then
7452
# AIX 5 now supports IA64 processor
7453
lt_prog_compiler_static='-Bstatic'
7455
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7459
mingw* | cygwin* | pw32* | os2* | cegcc*)
7460
# This hack is so that the source file can tell whether it is being
7461
# built for inclusion in a dll (and should export symbols for example).
7462
lt_prog_compiler_pic='-DDLL_EXPORT'
7465
hpux9* | hpux10* | hpux11*)
7466
lt_prog_compiler_wl='-Wl,'
7467
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7474
lt_prog_compiler_pic='+Z'
7477
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7478
lt_prog_compiler_static='${wl}-a ${wl}archive'
7481
irix5* | irix6* | nonstopux*)
7482
lt_prog_compiler_wl='-Wl,'
7483
# PIC (with -KPIC) is the default.
7484
lt_prog_compiler_static='-non_shared'
7487
linux* | k*bsd*-gnu)
7488
case $cc_basename in
7489
# old Intel for x86_64 which still supported -KPIC.
7491
lt_prog_compiler_wl='-Wl,'
7492
lt_prog_compiler_pic='-KPIC'
7493
lt_prog_compiler_static='-static'
7495
# icc used to be incompatible with GCC.
7496
# ICC 10 doesn't accept -KPIC any more.
7498
lt_prog_compiler_wl='-Wl,'
7499
lt_prog_compiler_pic='-fPIC'
7500
lt_prog_compiler_static='-static'
7502
# Lahey Fortran 8.1.
7504
lt_prog_compiler_wl='-Wl,'
7505
lt_prog_compiler_pic='--shared'
7506
lt_prog_compiler_static='--static'
7508
pgcc* | pgf77* | pgf90* | pgf95*)
7509
# Portland Group compilers (*not* the Pentium gcc compiler,
7510
# which looks to be a dead project)
7511
lt_prog_compiler_wl='-Wl,'
7512
lt_prog_compiler_pic='-fpic'
7513
lt_prog_compiler_static='-Bstatic'
7516
lt_prog_compiler_wl='-Wl,'
7517
# All Alpha code is PIC.
7518
lt_prog_compiler_static='-non_shared'
7521
# IBM XL C 8.0/Fortran 10.1 on PPC
7522
lt_prog_compiler_wl='-Wl,'
7523
lt_prog_compiler_pic='-qpic'
7524
lt_prog_compiler_static='-qstaticlink'
7527
case `$CC -V 2>&1 | sed 5q` in
7530
lt_prog_compiler_pic='-KPIC'
7531
lt_prog_compiler_static='-Bstatic'
7532
lt_prog_compiler_wl='-Wl,'
7535
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7536
lt_prog_compiler_pic='-KPIC'
7537
lt_prog_compiler_static='-Bstatic'
7538
lt_prog_compiler_wl=''
7546
lt_prog_compiler_pic='-KPIC'
7547
lt_prog_compiler_static='-Bstatic'
7551
# QNX uses GNU C++, but need to define -shared option too, otherwise
7553
lt_prog_compiler_pic='-fPIC -shared'
7556
osf3* | osf4* | osf5*)
7557
lt_prog_compiler_wl='-Wl,'
7558
# All OSF/1 code is PIC.
7559
lt_prog_compiler_static='-non_shared'
7563
lt_prog_compiler_static='-non_shared'
7567
lt_prog_compiler_pic='-KPIC'
7568
lt_prog_compiler_static='-Bstatic'
7569
case $cc_basename in
7571
lt_prog_compiler_wl='-Qoption ld ';;
7573
lt_prog_compiler_wl='-Wl,';;
7578
lt_prog_compiler_wl='-Qoption ld '
7579
lt_prog_compiler_pic='-PIC'
7580
lt_prog_compiler_static='-Bstatic'
7583
sysv4 | sysv4.2uw2* | sysv4.3*)
7584
lt_prog_compiler_wl='-Wl,'
7585
lt_prog_compiler_pic='-KPIC'
7586
lt_prog_compiler_static='-Bstatic'
7590
if test -d /usr/nec ;then
7591
lt_prog_compiler_pic='-Kconform_pic'
7592
lt_prog_compiler_static='-Bstatic'
7596
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7597
lt_prog_compiler_wl='-Wl,'
7598
lt_prog_compiler_pic='-KPIC'
7599
lt_prog_compiler_static='-Bstatic'
7603
lt_prog_compiler_wl='-Wl,'
7604
lt_prog_compiler_can_build_shared=no
7608
lt_prog_compiler_pic='-pic'
7609
lt_prog_compiler_static='-Bstatic'
7613
lt_prog_compiler_can_build_shared=no
7619
# For platforms which do not support PIC, -DPIC is meaningless:
7621
lt_prog_compiler_pic=
7624
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7628
$as_echo "$lt_prog_compiler_pic" >&6; }
7636
# Check to make sure the PIC flag actually works.
7638
if test -n "$lt_prog_compiler_pic"; then
7639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7640
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7641
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7642
$as_echo_n "(cached) " >&6
7644
lt_cv_prog_compiler_pic_works=no
7645
ac_outfile=conftest.$ac_objext
7646
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7647
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7648
# Insert the option either (1) after the last *FLAGS variable, or
7649
# (2) before a word containing "conftest.", or (3) at the end.
7650
# Note that $ac_compile itself does not contain backslashes and begins
7651
# with a dollar sign (not a hyphen), so the echo should work correctly.
7652
# The option is referenced via a variable to avoid confusing sed.
7653
lt_compile=`echo "$ac_compile" | $SED \
7654
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7655
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7656
-e 's:$: $lt_compiler_flag:'`
7657
(eval echo "\"\$as_me:7657: $lt_compile\"" >&5)
7658
(eval "$lt_compile" 2>conftest.err)
7660
cat conftest.err >&5
7661
echo "$as_me:7661: \$? = $ac_status" >&5
7662
if (exit $ac_status) && test -s "$ac_outfile"; then
7663
# The compiler can only warn and ignore the option if not recognized
7664
# So say no if there are warnings other than the usual output.
7665
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7666
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7667
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7668
lt_cv_prog_compiler_pic_works=yes
7674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7675
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7677
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7678
case $lt_prog_compiler_pic in
7680
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7683
lt_prog_compiler_pic=
7684
lt_prog_compiler_can_build_shared=no
7695
# Check to make sure the static flag actually works.
7697
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7699
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7700
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7701
$as_echo_n "(cached) " >&6
7703
lt_cv_prog_compiler_static_works=no
7704
save_LDFLAGS="$LDFLAGS"
7705
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7706
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7707
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7708
# The linker can only warn and ignore the option if not recognized
7709
# So say no if there are warnings
7710
if test -s conftest.err; then
7711
# Append any errors to the config.log.
7712
cat conftest.err 1>&5
7713
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7714
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7715
if diff conftest.exp conftest.er2 >/dev/null; then
7716
lt_cv_prog_compiler_static_works=yes
7719
lt_cv_prog_compiler_static_works=yes
7723
LDFLAGS="$save_LDFLAGS"
7726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7727
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7729
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7732
lt_prog_compiler_static=
7741
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7742
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7743
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7744
$as_echo_n "(cached) " >&6
7746
lt_cv_prog_compiler_c_o=no
7747
$RM -r conftest 2>/dev/null
7751
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753
lt_compiler_flag="-o out/conftest2.$ac_objext"
7754
# Insert the option either (1) after the last *FLAGS variable, or
7755
# (2) before a word containing "conftest.", or (3) at the end.
7756
# Note that $ac_compile itself does not contain backslashes and begins
7757
# with a dollar sign (not a hyphen), so the echo should work correctly.
7758
lt_compile=`echo "$ac_compile" | $SED \
7759
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7760
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7761
-e 's:$: $lt_compiler_flag:'`
7762
(eval echo "\"\$as_me:7762: $lt_compile\"" >&5)
7763
(eval "$lt_compile" 2>out/conftest.err)
7765
cat out/conftest.err >&5
7766
echo "$as_me:7766: \$? = $ac_status" >&5
7767
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7769
# The compiler can only warn and ignore the option if not recognized
7770
# So say no if there are warnings
7771
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7772
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7773
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7774
lt_cv_prog_compiler_c_o=yes
7779
# SGI C++ compiler will create directory out/ii_files/ for
7780
# template instantiation
7781
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7782
$RM out/* && rmdir out
7788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7789
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7797
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7798
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7799
$as_echo_n "(cached) " >&6
7801
lt_cv_prog_compiler_c_o=no
7802
$RM -r conftest 2>/dev/null
7806
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
lt_compiler_flag="-o out/conftest2.$ac_objext"
7809
# Insert the option either (1) after the last *FLAGS variable, or
7810
# (2) before a word containing "conftest.", or (3) at the end.
7811
# Note that $ac_compile itself does not contain backslashes and begins
7812
# with a dollar sign (not a hyphen), so the echo should work correctly.
7813
lt_compile=`echo "$ac_compile" | $SED \
7814
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7815
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816
-e 's:$: $lt_compiler_flag:'`
7817
(eval echo "\"\$as_me:7817: $lt_compile\"" >&5)
7818
(eval "$lt_compile" 2>out/conftest.err)
7820
cat out/conftest.err >&5
7821
echo "$as_me:7821: \$? = $ac_status" >&5
7822
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7824
# The compiler can only warn and ignore the option if not recognized
7825
# So say no if there are warnings
7826
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7827
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7828
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7829
lt_cv_prog_compiler_c_o=yes
7834
# SGI C++ compiler will create directory out/ii_files/ for
7835
# template instantiation
7836
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7837
$RM out/* && rmdir out
7843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7844
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7849
hard_links="nottested"
7850
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7851
# do not overwrite the value of need_locks provided by the user
7852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7853
$as_echo_n "checking if we can lock with hard links... " >&6; }
7856
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7858
ln conftest.a conftest.b 2>&5 || hard_links=no
7859
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7860
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7861
$as_echo "$hard_links" >&6; }
7862
if test "$hard_links" = no; then
7863
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7864
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7877
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7880
allow_undefined_flag=
7881
always_export_symbols=no
7883
archive_expsym_cmds=
7884
compiler_needs_object=no
7885
enable_shared_with_static_runtimes=no
7886
export_dynamic_flag_spec=
7887
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7888
hardcode_automatic=no
7890
hardcode_direct_absolute=no
7891
hardcode_libdir_flag_spec=
7892
hardcode_libdir_flag_spec_ld=
7893
hardcode_libdir_separator=
7895
hardcode_shlibpath_var=unsupported
7897
link_all_deplibs=unknown
7900
old_archive_from_new_cmds=
7901
old_archive_from_expsyms_cmds=
7902
thread_safe_flag_spec=
7903
whole_archive_flag_spec=
7904
# include_expsyms should be a list of space-separated symbols to be *always*
7905
# included in the symbol list
7907
# exclude_expsyms can be an extended regexp of symbols to exclude
7908
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7909
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7910
# as well as any symbol that contains `d'.
7911
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7912
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7913
# platforms (ab)use it in PIC code, but their linkers get confused if
7914
# the symbol is explicitly referenced. Since portable code cannot
7915
# rely on this symbol name, it's probably fine to never include it in
7916
# preloaded symbol tables.
7917
# Exclude shared library initialization/finalization symbols.
7918
extract_expsyms_cmds=
7921
cygwin* | mingw* | pw32* | cegcc*)
7922
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7923
# When not using gcc, we currently assume that we are using
7924
# Microsoft Visual C++.
7925
if test "$GCC" != yes; then
7930
# we just hope/assume this is gcc and not c89 (= MSVC++)
7936
linux* | k*bsd*-gnu)
7942
if test "$with_gnu_ld" = yes; then
7943
# If archive_cmds runs LD, not CC, wlarc should be empty
7946
# Set some defaults for GNU ld with shared library support. These
7947
# are reset later if shared libraries are not supported. Putting them
7948
# here allows them to be overridden if necessary.
7949
runpath_var=LD_RUN_PATH
7950
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7951
export_dynamic_flag_spec='${wl}--export-dynamic'
7952
# ancient GNU ld didn't support --whole-archive et. al.
7953
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7954
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7956
whole_archive_flag_spec=
7958
supports_anon_versioning=no
7959
case `$LD -v 2>&1` in
7960
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7961
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7962
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7963
*\ 2.11.*) ;; # other 2.11 versions
7964
*) supports_anon_versioning=yes ;;
7967
# See if GNU ld supports shared libraries.
7970
# On AIX/PPC, the GNU linker is very broken
7971
if test "$host_cpu" != ia64; then
7975
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7976
*** to be unable to reliably create shared libraries on AIX.
7977
*** Therefore, libtool is disabling shared libraries support. If you
7978
*** really care for shared libraries, you may want to modify your PATH
7979
*** so that a non-GNU linker is found, and then restart.
7988
# see comment about AmigaOS4 .so support
7989
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7990
archive_expsym_cmds=''
7993
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)'
7994
hardcode_libdir_flag_spec='-L$libdir'
7995
hardcode_minus_L=yes
8001
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8002
allow_undefined_flag=unsupported
8003
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8004
# support --undefined. This deserves some investigation. FIXME
8005
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011
cygwin* | mingw* | pw32* | cegcc*)
8012
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8013
# as there is no search path for DLLs.
8014
hardcode_libdir_flag_spec='-L$libdir'
8015
allow_undefined_flag=unsupported
8016
always_export_symbols=no
8017
enable_shared_with_static_runtimes=yes
8018
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8020
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8021
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8022
# If the export-symbols file already is a .def file (1st line
8023
# is EXPORTS), use it as is; otherwise, prepend...
8024
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8025
cp $export_symbols $output_objdir/$soname.def;
8027
echo EXPORTS > $output_objdir/$soname.def;
8028
cat $export_symbols >> $output_objdir/$soname.def;
8030
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8038
hardcode_shlibpath_var=no
8039
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8040
export_dynamic_flag_spec='${wl}-E'
8041
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8042
# Instead, shared libraries are loaded at an image base (0x10000000 by
8043
# default) and relocated if they conflict, which is a slow very memory
8044
# consuming and fragmenting process. To avoid this, we pick a random,
8045
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8046
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8047
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8048
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'
8051
gnu* | linux* | tpf* | k*bsd*-gnu)
8053
if test "$host_os" = linux-dietlibc; then
8054
case $cc_basename in
8055
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8058
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8059
&& test "$tmp_diet" = no
8062
tmp_sharedflag='-shared'
8063
case $cc_basename,$host_cpu in
8064
pgcc*) # Portland Group C compiler
8065
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'
8066
tmp_addflag=' $pic_flag'
8068
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8069
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'
8070
tmp_addflag=' $pic_flag -Mnomain' ;;
8071
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8072
tmp_addflag=' -i_dynamic' ;;
8073
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8074
tmp_addflag=' -i_dynamic -nofor_main' ;;
8075
ifc* | ifort*) # Intel Fortran compiler
8076
tmp_addflag=' -nofor_main' ;;
8077
lf95*) # Lahey Fortran 8.1
8078
whole_archive_flag_spec=
8079
tmp_sharedflag='--shared' ;;
8080
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8081
tmp_sharedflag='-qmkshrobj'
8084
case `$CC -V 2>&1 | sed 5q` in
8085
*Sun\ C*) # Sun C 5.9
8086
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'
8087
compiler_needs_object=yes
8088
tmp_sharedflag='-G' ;;
8089
*Sun\ F*) # Sun Fortran 8.3
8090
tmp_sharedflag='-G' ;;
8092
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8094
if test "x$supports_anon_versioning" = xyes; then
8095
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8096
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8097
echo "local: *; };" >> $output_objdir/$libname.ver~
8098
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8101
case $cc_basename in
8103
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8104
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8105
hardcode_libdir_flag_spec=
8106
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8107
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8108
if test "x$supports_anon_versioning" = xyes; then
8109
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8110
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8111
echo "local: *; };" >> $output_objdir/$libname.ver~
8112
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8121
netbsd* | netbsdelf*-gnu)
8122
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8123
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8126
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8132
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8136
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8137
*** create shared libraries on Solaris systems. Therefore, libtool
8138
*** is disabling shared libraries support. We urge you to upgrade GNU
8139
*** binutils to release 2.9.1 or newer. Another option is to modify
8140
*** your PATH or compiler configuration so that the native linker is
8141
*** used, and then restart.
8144
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8145
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8146
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8152
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8153
case `$LD -v 2>&1` in
8154
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8158
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8159
*** reliably create shared libraries on SCO systems. Therefore, libtool
8160
*** is disabling shared libraries support. We urge you to upgrade GNU
8161
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8162
*** your PATH or compiler configuration so that the native linker is
8163
*** used, and then restart.
8168
# For security reasons, it is highly recommended that you always
8169
# use absolute paths for naming shared libraries, and exclude the
8170
# DT_RUNPATH tag from executables and libraries. But doing so
8171
# requires that you compile everything twice, which is a pain.
8172
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8174
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8184
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8187
hardcode_shlibpath_var=no
8191
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8192
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8200
if test "$ld_shlibs" = no; then
8202
hardcode_libdir_flag_spec=
8203
export_dynamic_flag_spec=
8204
whole_archive_flag_spec=
8207
# PORTME fill in a description of your system's linker (not GNU ld)
8210
allow_undefined_flag=unsupported
8211
always_export_symbols=yes
8212
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'
8213
# Note: this linker hardcodes the directories in LIBPATH if there
8214
# are no directories specified by -L.
8215
hardcode_minus_L=yes
8216
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8217
# Neither direct hardcoding nor static linking is supported with a
8219
hardcode_direct=unsupported
8224
if test "$host_cpu" = ia64; then
8225
# On IA64, the linker does run time linking by default, so we don't
8226
# have to do anything special.
8227
aix_use_runtimelinking=no
8228
exp_sym_flag='-Bexport'
8231
# If we're using GNU nm, then we don't want the "-C" option.
8232
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8233
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8234
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'
8236
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'
8238
aix_use_runtimelinking=no
8240
# Test if we are trying to use run time linking or normal
8241
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8242
# need to do runtime linking.
8243
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8244
for ld_flag in $LDFLAGS; do
8245
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8246
aix_use_runtimelinking=yes
8253
exp_sym_flag='-bexport'
8254
no_entry_flag='-bnoentry'
8257
# When large executables or shared objects are built, AIX ld can
8258
# have problems creating the table of contents. If linking a library
8259
# or program results in "error TOC overflow" add -mminimal-toc to
8260
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8261
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8265
hardcode_direct_absolute=yes
8266
hardcode_libdir_separator=':'
8267
link_all_deplibs=yes
8268
file_list_spec='${wl}-f,'
8270
if test "$GCC" = yes; then
8271
case $host_os in aix4.[012]|aix4.[012].*)
8272
# We only want to do this on AIX 4.2 and lower, the check
8273
# below for broken collect2 doesn't work under 4.3+
8274
collect2name=`${CC} -print-prog-name=collect2`
8275
if test -f "$collect2name" &&
8276
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8278
# We have reworked collect2
8281
# We have old collect2
8282
hardcode_direct=unsupported
8283
# It fails to find uninstalled libraries when the uninstalled
8284
# path is not listed in the libpath. Setting hardcode_minus_L
8285
# to unsupported forces relinking
8286
hardcode_minus_L=yes
8287
hardcode_libdir_flag_spec='-L$libdir'
8288
hardcode_libdir_separator=
8292
shared_flag='-shared'
8293
if test "$aix_use_runtimelinking" = yes; then
8294
shared_flag="$shared_flag "'${wl}-G'
8299
if test "$host_cpu" = ia64; then
8300
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8301
# chokes on -Wl,-G. The following line is correct:
8304
if test "$aix_use_runtimelinking" = yes; then
8305
shared_flag='${wl}-G'
8307
shared_flag='${wl}-bM:SRE'
8312
export_dynamic_flag_spec='${wl}-bexpall'
8313
# It seems that -bexpall does not export symbols beginning with
8314
# underscore (_), so it is better to generate a list of symbols to export.
8315
always_export_symbols=yes
8316
if test "$aix_use_runtimelinking" = yes; then
8317
# Warning - without using the other runtime loading flags (-brtl),
8318
# -berok will link without error, but may produce a broken library.
8319
allow_undefined_flag='-berok'
8320
# Determine the default libpath from the value encoded in an
8322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323
/* end confdefs.h. */
8333
if ac_fn_c_try_link "$LINENO"; then :
8335
lt_aix_libpath_sed='
8336
/Import File Strings/,/^$/ {
8342
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8343
# Check for a 64-bit object if we didn't find anything.
8344
if test -z "$aix_libpath"; then
8345
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8348
rm -f core conftest.err conftest.$ac_objext \
8349
conftest$ac_exeext conftest.$ac_ext
8350
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8352
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8353
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"
8355
if test "$host_cpu" = ia64; then
8356
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8357
allow_undefined_flag="-z nodefs"
8358
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"
8360
# Determine the default libpath from the value encoded in an
8362
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363
/* end confdefs.h. */
8373
if ac_fn_c_try_link "$LINENO"; then :
8375
lt_aix_libpath_sed='
8376
/Import File Strings/,/^$/ {
8382
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8383
# Check for a 64-bit object if we didn't find anything.
8384
if test -z "$aix_libpath"; then
8385
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8388
rm -f core conftest.err conftest.$ac_objext \
8389
conftest$ac_exeext conftest.$ac_ext
8390
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8392
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8393
# Warning - without using the other run time loading flags,
8394
# -berok will link without error, but may produce a broken library.
8395
no_undefined_flag=' ${wl}-bernotok'
8396
allow_undefined_flag=' ${wl}-berok'
8397
# Exported symbols can be pulled into shared objects from archives
8398
whole_archive_flag_spec='$convenience'
8399
archive_cmds_need_lc=yes
8400
# This is similar to how AIX traditionally builds its shared libraries.
8401
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'
8409
# see comment about AmigaOS4 .so support
8410
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411
archive_expsym_cmds=''
8414
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)'
8415
hardcode_libdir_flag_spec='-L$libdir'
8416
hardcode_minus_L=yes
8422
export_dynamic_flag_spec=-rdynamic
8425
cygwin* | mingw* | pw32* | cegcc*)
8426
# When not using gcc, we currently assume that we are using
8427
# Microsoft Visual C++.
8428
# hardcode_libdir_flag_spec is actually meaningless, as there is
8429
# no search path for DLLs.
8430
hardcode_libdir_flag_spec=' '
8431
allow_undefined_flag=unsupported
8432
# Tell ltmain to make .lib files, not .a files.
8434
# Tell ltmain to make .dll files, not .so files.
8436
# FIXME: Setting linknames here is a bad hack.
8437
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8438
# The linker will automatically build a .lib file if we build a DLL.
8439
old_archive_from_new_cmds='true'
8440
# FIXME: Should let the user specify the lib program.
8441
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8442
fix_srcfile_path='`cygpath -w "$srcfile"`'
8443
enable_shared_with_static_runtimes=yes
8446
darwin* | rhapsody*)
8449
archive_cmds_need_lc=no
8451
hardcode_automatic=yes
8452
hardcode_shlibpath_var=unsupported
8453
whole_archive_flag_spec=''
8454
link_all_deplibs=yes
8455
allow_undefined_flag="$_lt_dar_allow_undefined"
8456
case $cc_basename in
8457
ifort*) _lt_dar_can_shared=yes ;;
8458
*) _lt_dar_can_shared=$GCC ;;
8460
if test "$_lt_dar_can_shared" = "yes"; then
8461
output_verbose_link_cmd=echo
8462
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8463
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8464
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}"
8465
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}"
8474
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8475
hardcode_libdir_flag_spec='-L$libdir'
8476
hardcode_shlibpath_var=no
8483
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8484
# support. Future versions do this automatically, but an explicit c++rt0.o
8485
# does not break anything, and helps significantly (at the cost of a little
8488
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8489
hardcode_libdir_flag_spec='-R$libdir'
8491
hardcode_shlibpath_var=no
8494
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8496
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8498
hardcode_minus_L=yes
8499
hardcode_shlibpath_var=no
8502
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8503
freebsd* | dragonfly*)
8504
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8505
hardcode_libdir_flag_spec='-R$libdir'
8507
hardcode_shlibpath_var=no
8511
if test "$GCC" = yes; then
8512
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'
8514
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'
8516
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8517
hardcode_libdir_separator=:
8520
# hardcode_minus_L: Not really in the search PATH,
8521
# but as the default location of the library.
8522
hardcode_minus_L=yes
8523
export_dynamic_flag_spec='${wl}-E'
8527
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8528
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8530
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8532
if test "$with_gnu_ld" = no; then
8533
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8534
hardcode_libdir_flag_spec_ld='+b $libdir'
8535
hardcode_libdir_separator=:
8537
hardcode_direct_absolute=yes
8538
export_dynamic_flag_spec='${wl}-E'
8539
# hardcode_minus_L: Not really in the search PATH,
8540
# but as the default location of the library.
8541
hardcode_minus_L=yes
8546
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8549
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8552
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8555
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8561
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8564
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8567
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8571
if test "$with_gnu_ld" = no; then
8572
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8573
hardcode_libdir_separator=:
8578
hardcode_shlibpath_var=no
8582
hardcode_direct_absolute=yes
8583
export_dynamic_flag_spec='${wl}-E'
8585
# hardcode_minus_L: Not really in the search PATH,
8586
# but as the default location of the library.
8587
hardcode_minus_L=yes
8593
irix5* | irix6* | nonstopux*)
8594
if test "$GCC" = yes; then
8595
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'
8596
# Try to use the -exported_symbol ld option, if it does not
8597
# work, assume that -exports_file does not work either and
8598
# implicitly export all symbols.
8599
save_LDFLAGS="$LDFLAGS"
8600
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602
/* end confdefs.h. */
8605
if ac_fn_c_try_link "$LINENO"; then :
8606
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'
8609
rm -f core conftest.err conftest.$ac_objext \
8610
conftest$ac_exeext conftest.$ac_ext
8611
LDFLAGS="$save_LDFLAGS"
8613
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'
8614
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'
8616
archive_cmds_need_lc='no'
8617
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8618
hardcode_libdir_separator=:
8620
link_all_deplibs=yes
8623
netbsd* | netbsdelf*-gnu)
8624
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8625
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8627
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8629
hardcode_libdir_flag_spec='-R$libdir'
8631
hardcode_shlibpath_var=no
8635
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638
hardcode_libdir_separator=:
8639
hardcode_shlibpath_var=no
8646
if test -f /usr/libexec/ld.so; then
8648
hardcode_shlibpath_var=no
8649
hardcode_direct_absolute=yes
8650
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8651
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8652
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8653
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654
export_dynamic_flag_spec='${wl}-E'
8657
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8658
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8659
hardcode_libdir_flag_spec='-R$libdir'
8662
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8673
hardcode_libdir_flag_spec='-L$libdir'
8674
hardcode_minus_L=yes
8675
allow_undefined_flag=unsupported
8676
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'
8677
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8681
if test "$GCC" = yes; then
8682
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8683
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'
8685
allow_undefined_flag=' -expect_unresolved \*'
8686
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'
8688
archive_cmds_need_lc='no'
8689
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690
hardcode_libdir_separator=:
8693
osf4* | osf5*) # as osf3* with the addition of -msym flag
8694
if test "$GCC" = yes; then
8695
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696
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'
8697
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8699
allow_undefined_flag=' -expect_unresolved \*'
8700
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'
8701
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~
8702
$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'
8704
# Both c and cxx compiler support -rpath directly
8705
hardcode_libdir_flag_spec='-rpath $libdir'
8707
archive_cmds_need_lc='no'
8708
hardcode_libdir_separator=:
8712
no_undefined_flag=' -z defs'
8713
if test "$GCC" = yes; then
8715
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8717
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8719
case `$CC -V 2>&1` in
8722
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8724
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8728
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8729
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8730
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8734
hardcode_libdir_flag_spec='-R$libdir'
8735
hardcode_shlibpath_var=no
8737
solaris2.[0-5] | solaris2.[0-5].*) ;;
8739
# The compiler driver will combine and reorder linker options,
8740
# but understands `-z linker_flag'. GCC discards it without `$wl',
8741
# but is careful enough not to reorder.
8742
# Supported since Solaris 2.6 (maybe 2.5.1?)
8743
if test "$GCC" = yes; then
8744
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8746
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8750
link_all_deplibs=yes
8754
if test "x$host_vendor" = xsequent; then
8755
# Use $CC to link under sequent, because it throws in some extra .o
8756
# files that make .init and .fini sections work.
8757
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8759
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8761
hardcode_libdir_flag_spec='-L$libdir'
8763
hardcode_minus_L=yes
8764
hardcode_shlibpath_var=no
8768
case $host_vendor in
8770
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771
hardcode_direct=yes # is this really true???
8774
## LD is ld it makes a PLAMLIB
8775
## CC just makes a GrossModule.
8776
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8777
reload_cmds='$CC -r -o $output$reload_objs'
8781
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8785
runpath_var='LD_RUN_PATH'
8786
hardcode_shlibpath_var=no
8790
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791
hardcode_shlibpath_var=no
8792
export_dynamic_flag_spec='-Bexport'
8796
if test -d /usr/nec; then
8797
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798
hardcode_shlibpath_var=no
8799
runpath_var=LD_RUN_PATH
8800
hardcode_runpath_var=yes
8805
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8806
no_undefined_flag='${wl}-z,text'
8807
archive_cmds_need_lc=no
8808
hardcode_shlibpath_var=no
8809
runpath_var='LD_RUN_PATH'
8811
if test "$GCC" = yes; then
8812
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8820
sysv5* | sco3.2v5* | sco5v6*)
8821
# Note: We can NOT use -z defs as we might desire, because we do not
8822
# link with -lc, and that would cause any symbols used from libc to
8823
# always be unresolved, which means just about no library would
8824
# ever link correctly. If we're not using GNU ld we use -z text
8825
# though, which does catch some bad symbols but isn't as heavy-handed
8827
no_undefined_flag='${wl}-z,text'
8828
allow_undefined_flag='${wl}-z,nodefs'
8829
archive_cmds_need_lc=no
8830
hardcode_shlibpath_var=no
8831
hardcode_libdir_flag_spec='${wl}-R,$libdir'
8832
hardcode_libdir_separator=':'
8833
link_all_deplibs=yes
8834
export_dynamic_flag_spec='${wl}-Bexport'
8835
runpath_var='LD_RUN_PATH'
8837
if test "$GCC" = yes; then
8838
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8839
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8841
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8842
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848
hardcode_libdir_flag_spec='-L$libdir'
8849
hardcode_shlibpath_var=no
8857
if test x$host_vendor = xsni; then
8859
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8860
export_dynamic_flag_spec='${wl}-Blargedynsym'
8866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8867
$as_echo "$ld_shlibs" >&6; }
8868
test "$ld_shlibs" = no && can_build_shared=no
8870
with_gnu_ld=$with_gnu_ld
8887
# Do we need to explicitly link libc?
8889
case "x$archive_cmds_need_lc" in
8891
# Assume -lc should be added
8892
archive_cmds_need_lc=yes
8894
if test "$enable_shared" = yes && test "$GCC" = yes; then
8895
case $archive_cmds in
8897
# FIXME: we may have to deal with multi-command sequences.
8900
# Test whether the compiler implicitly links with -lc since on some
8901
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8902
# to ld, don't add -lc before -lgcc.
8903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8904
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8906
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8908
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8909
(eval $ac_compile) 2>&5
8911
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8912
test $ac_status = 0; } 2>conftest.err; then
8915
libobjs=conftest.$ac_objext
8917
wl=$lt_prog_compiler_wl
8918
pic_flag=$lt_prog_compiler_pic
8924
lt_save_allow_undefined_flag=$allow_undefined_flag
8925
allow_undefined_flag=
8926
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8927
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8929
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8930
test $ac_status = 0; }
8932
archive_cmds_need_lc=no
8934
archive_cmds_need_lc=yes
8936
allow_undefined_flag=$lt_save_allow_undefined_flag
8938
cat conftest.err 1>&5
8941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8942
$as_echo "$archive_cmds_need_lc" >&6; }
9105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9106
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9108
if test "$GCC" = yes; then
9110
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9111
*) lt_awk_arg="/^libraries:/" ;;
9113
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9114
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9115
# if the path contains ";" then we assume it to be the separator
9116
# otherwise default to the standard path separator (i.e. ":") - it is
9117
# assumed that no part of a normal pathname contains ";" but that should
9118
# okay in the real world where ";" in dirpaths is itself problematic.
9119
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9121
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9123
# Ok, now we have the path, separated by spaces, we can step through it
9124
# and add multilib dir if necessary.
9125
lt_tmp_lt_search_path_spec=
9126
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9127
for lt_sys_path in $lt_search_path_spec; do
9128
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9129
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9131
test -d "$lt_sys_path" && \
9132
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9135
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9136
BEGIN {RS=" "; FS="/|\n";} {
9139
for (lt_i = NF; lt_i > 0; lt_i--) {
9140
if ($lt_i != "" && $lt_i != ".") {
9141
if ($lt_i == "..") {
9144
if (lt_count == 0) {
9145
lt_foo="/" $lt_i lt_foo;
9152
if (lt_foo != "") { lt_freq[lt_foo]++; }
9153
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9155
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9157
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9160
libname_spec='lib$name'
9168
shlibpath_overrides_runpath=unknown
9170
dynamic_linker="$host_os ld.so"
9171
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9172
need_lib_prefix=unknown
9173
hardcode_into_libs=no
9175
# when you set need_version to no, make sure it does not cause -set_version
9176
# flags to be left without arguments
9177
need_version=unknown
9182
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9183
shlibpath_var=LIBPATH
9185
# AIX 3 has no versioning support, so we append a major version to the name.
9186
soname_spec='${libname}${release}${shared_ext}$major'
9193
hardcode_into_libs=yes
9194
if test "$host_cpu" = ia64; then
9195
# AIX 5 supports IA64
9196
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9197
shlibpath_var=LD_LIBRARY_PATH
9199
# With GCC up to 2.95.x, collect2 would create an import file
9200
# for dependence libraries. The import file would start with
9201
# the line `#! .'. This would cause the generated library to
9202
# depend on `.', always an invalid library. This was fixed in
9203
# development snapshots of GCC prior to 3.0.
9205
aix4 | aix4.[01] | aix4.[01].*)
9206
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9208
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9215
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9216
# soname into executable. Probably we can add versioning support to
9217
# collect2, so additional links can be useful in future.
9218
if test "$aix_use_runtimelinking" = yes; then
9219
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9220
# instead of lib<name>.a to let people know that these are not
9221
# typical AIX shared libraries.
9222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224
# We preserve .a as extension for shared libraries through AIX4.2
9225
# and later when we are not doing run time linking.
9226
library_names_spec='${libname}${release}.a $libname.a'
9227
soname_spec='${libname}${release}${shared_ext}$major'
9229
shlibpath_var=LIBPATH
9236
# Since July 2007 AmigaOS4 officially supports .so libraries.
9237
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241
library_names_spec='$libname.ixlibrary $libname.a'
9242
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9243
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'
9249
library_names_spec='${libname}${shared_ext}'
9250
dynamic_linker="$host_os ld.so"
9251
shlibpath_var=LIBRARY_PATH
9257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258
soname_spec='${libname}${release}${shared_ext}$major'
9259
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9260
shlibpath_var=LD_LIBRARY_PATH
9261
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9262
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9263
# the default ld.so.conf also contains /usr/contrib/lib and
9264
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9265
# libtool to hard-code these into programs
9268
cygwin* | mingw* | pw32* | cegcc*)
9269
version_type=windows
9274
case $GCC,$host_os in
9275
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9276
library_names_spec='$libname.dll.a'
9277
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9278
postinstall_cmds='base_file=`basename \${file}`~
9279
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9280
dldir=$destdir/`dirname \$dlpath`~
9281
test -d \$dldir || mkdir -p \$dldir~
9282
$install_prog $dir/$dlname \$dldir/$dlname~
9283
chmod a+x \$dldir/$dlname~
9284
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9285
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9287
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9288
dlpath=$dir/\$dldll~
9290
shlibpath_overrides_runpath=yes
9294
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9295
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9296
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9299
# MinGW DLLs use traditional 'lib' prefix
9300
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9301
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9302
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9303
# It is most probably a Windows format PATH printed by
9304
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9305
# path with ; separators, and with drive letters. We can handle the
9306
# drive letters (cygwin fileutils understands them), so leave them,
9307
# especially as we might pass files found there to a mingw objdump,
9308
# which wouldn't understand a cygwinified path. Ahh.
9309
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9311
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9315
# pw32 DLLs use 'pw' prefix rather than 'lib'
9316
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9322
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9325
dynamic_linker='Win32 ld.exe'
9326
# FIXME: first we should search . and the directory the executable is in
9330
darwin* | rhapsody*)
9331
dynamic_linker="$host_os dyld"
9335
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9336
soname_spec='${libname}${release}${major}$shared_ext'
9337
shlibpath_overrides_runpath=yes
9338
shlibpath_var=DYLD_LIBRARY_PATH
9339
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9341
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9342
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9350
soname_spec='${libname}${release}${shared_ext}$major'
9351
shlibpath_var=LD_LIBRARY_PATH
9358
freebsd* | dragonfly*)
9359
# DragonFly does not have aout. When/if they implement a new
9360
# versioning mechanism, adjust this.
9361
if test -x /usr/bin/objformat; then
9362
objformat=`/usr/bin/objformat`
9365
freebsd[123]*) objformat=aout ;;
9369
version_type=freebsd-$objformat
9370
case $version_type in
9372
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9377
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9381
shlibpath_var=LD_LIBRARY_PATH
9384
shlibpath_overrides_runpath=yes
9386
freebsd3.[01]* | freebsdelf3.[01]*)
9387
shlibpath_overrides_runpath=yes
9388
hardcode_into_libs=yes
9390
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9391
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9392
shlibpath_overrides_runpath=no
9393
hardcode_into_libs=yes
9395
*) # from 4.6 on, and DragonFly
9396
shlibpath_overrides_runpath=yes
9397
hardcode_into_libs=yes
9406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9407
soname_spec='${libname}${release}${shared_ext}$major'
9408
shlibpath_var=LD_LIBRARY_PATH
9409
hardcode_into_libs=yes
9412
hpux9* | hpux10* | hpux11*)
9413
# Give a soname corresponding to the major version so that dld.sl refuses to
9414
# link against other versions.
9421
hardcode_into_libs=yes
9422
dynamic_linker="$host_os dld.so"
9423
shlibpath_var=LD_LIBRARY_PATH
9424
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426
soname_spec='${libname}${release}${shared_ext}$major'
9427
if test "X$HPUX_IA64_MODE" = X32; then
9428
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9430
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9432
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9436
hardcode_into_libs=yes
9437
dynamic_linker="$host_os dld.sl"
9438
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9439
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441
soname_spec='${libname}${release}${shared_ext}$major'
9442
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9443
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9447
dynamic_linker="$host_os dld.sl"
9448
shlibpath_var=SHLIB_PATH
9449
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451
soname_spec='${libname}${release}${shared_ext}$major'
9454
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9455
postinstall_cmds='chmod 555 $lib'
9462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463
soname_spec='${libname}${release}${shared_ext}$major'
9464
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9465
shlibpath_var=LD_LIBRARY_PATH
9466
shlibpath_overrides_runpath=no
9467
hardcode_into_libs=yes
9470
irix5* | irix6* | nonstopux*)
9472
nonstopux*) version_type=nonstopux ;;
9474
if test "$lt_cv_prog_gnu_ld" = yes; then
9482
soname_spec='${libname}${release}${shared_ext}$major'
9483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9485
irix5* | nonstopux*)
9489
case $LD in # libtool.m4 will add one of these switches to LD
9490
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9491
libsuff= shlibsuff= libmagic=32-bit;;
9492
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9493
libsuff=32 shlibsuff=N32 libmagic=N32;;
9494
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9495
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9496
*) libsuff= shlibsuff= libmagic=never-match;;
9500
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9501
shlibpath_overrides_runpath=no
9502
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9503
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9504
hardcode_into_libs=yes
9507
# No shared lib support for Linux oldld, aout, or coff.
9508
linux*oldld* | linux*aout* | linux*coff*)
9512
# This must be Linux ELF.
9513
linux* | k*bsd*-gnu)
9517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518
soname_spec='${libname}${release}${shared_ext}$major'
9519
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9520
shlibpath_var=LD_LIBRARY_PATH
9521
shlibpath_overrides_runpath=no
9522
# Some binutils ld are patched to set DT_RUNPATH
9523
save_LDFLAGS=$LDFLAGS
9525
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9526
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9527
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528
/* end confdefs.h. */
9538
if ac_fn_c_try_link "$LINENO"; then :
9539
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9540
shlibpath_overrides_runpath=yes
9543
rm -f core conftest.err conftest.$ac_objext \
9544
conftest$ac_exeext conftest.$ac_ext
9545
LDFLAGS=$save_LDFLAGS
9548
# This implies no fast_install, which is unacceptable.
9549
# Some rework will be needed to allow for fast_install
9550
# before this can be enabled.
9551
hardcode_into_libs=yes
9553
# Append ld.so.conf contents to the search path
9554
if test -f /etc/ld.so.conf; then
9555
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' ' '`
9556
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9559
# We used to test for /lib/ld.so.1 and disable shared libraries on
9560
# powerpc, because MkLinux only supported shared libraries with the
9561
# GNU dynamic linker. Since this was broken with cross compilers,
9562
# most powerpc-linux boxes support dynamic linking these days and
9563
# people can always --disable-shared, the test was removed, and we
9564
# assume the GNU/Linux dynamic linker is in use.
9565
dynamic_linker='GNU/Linux ld.so'
9572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9573
soname_spec='${libname}${release}${shared_ext}$major'
9574
shlibpath_var=LD_LIBRARY_PATH
9575
shlibpath_overrides_runpath=no
9576
hardcode_into_libs=yes
9577
dynamic_linker='NetBSD ld.elf_so'
9584
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9586
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9587
dynamic_linker='NetBSD (a.out) ld.so'
9589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9590
soname_spec='${libname}${release}${shared_ext}$major'
9591
dynamic_linker='NetBSD ld.elf_so'
9593
shlibpath_var=LD_LIBRARY_PATH
9594
shlibpath_overrides_runpath=yes
9595
hardcode_into_libs=yes
9600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601
shlibpath_var=LD_LIBRARY_PATH
9602
shlibpath_overrides_runpath=yes
9609
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610
soname_spec='${libname}${release}${shared_ext}$major'
9611
shlibpath_var=LD_LIBRARY_PATH
9612
shlibpath_overrides_runpath=no
9613
hardcode_into_libs=yes
9614
dynamic_linker='ldqnx.so'
9619
sys_lib_dlsearch_path_spec="/usr/lib"
9621
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9623
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9624
*) need_version=no ;;
9626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9627
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9628
shlibpath_var=LD_LIBRARY_PATH
9629
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9631
openbsd2.[89] | openbsd2.[89].*)
9632
shlibpath_overrides_runpath=no
9635
shlibpath_overrides_runpath=yes
9639
shlibpath_overrides_runpath=yes
9644
libname_spec='$name'
9647
library_names_spec='$libname${shared_ext} $libname.a'
9648
dynamic_linker='OS/2 ld.exe'
9649
shlibpath_var=LIBPATH
9652
osf3* | osf4* | osf5*)
9656
soname_spec='${libname}${release}${shared_ext}$major'
9657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658
shlibpath_var=LD_LIBRARY_PATH
9659
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9660
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672
soname_spec='${libname}${release}${shared_ext}$major'
9673
shlibpath_var=LD_LIBRARY_PATH
9674
shlibpath_overrides_runpath=yes
9675
hardcode_into_libs=yes
9676
# ldd complains unless libraries are executable
9677
postinstall_cmds='chmod +x $lib'
9682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9683
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9684
shlibpath_var=LD_LIBRARY_PATH
9685
shlibpath_overrides_runpath=yes
9686
if test "$with_gnu_ld" = yes; then
9694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695
soname_spec='${libname}${release}${shared_ext}$major'
9696
shlibpath_var=LD_LIBRARY_PATH
9697
case $host_vendor in
9699
shlibpath_overrides_runpath=no
9701
runpath_var=LD_RUN_PATH
9709
shlibpath_overrides_runpath=no
9710
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9716
if test -d /usr/nec ;then
9718
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9719
soname_spec='$libname${shared_ext}.$major'
9720
shlibpath_var=LD_LIBRARY_PATH
9724
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9725
version_type=freebsd-elf
9728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9729
soname_spec='${libname}${release}${shared_ext}$major'
9730
shlibpath_var=LD_LIBRARY_PATH
9731
shlibpath_overrides_runpath=yes
9732
hardcode_into_libs=yes
9733
if test "$with_gnu_ld" = yes; then
9734
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9736
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9739
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9743
sys_lib_dlsearch_path_spec='/usr/lib'
9747
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9751
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752
shlibpath_var=LD_LIBRARY_PATH
9753
shlibpath_overrides_runpath=no
9754
hardcode_into_libs=yes
9759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760
soname_spec='${libname}${release}${shared_ext}$major'
9761
shlibpath_var=LD_LIBRARY_PATH
9768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9769
$as_echo "$dynamic_linker" >&6; }
9770
test "$dynamic_linker" = no && can_build_shared=no
9772
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9773
if test "$GCC" = yes; then
9774
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9777
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9778
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9780
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9781
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9871
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9873
if test -n "$hardcode_libdir_flag_spec" ||
9874
test -n "$runpath_var" ||
9875
test "X$hardcode_automatic" = "Xyes" ; then
9877
# We can hardcode non-existent directories.
9878
if test "$hardcode_direct" != no &&
9879
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9880
# have to relink, otherwise we might link with an installed library
9881
# when we should be linking with a yet-to-be-installed one
9882
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9883
test "$hardcode_minus_L" != no; then
9884
# Linking always hardcodes the temporary library directory.
9885
hardcode_action=relink
9887
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9888
hardcode_action=immediate
9891
# We cannot hardcode anything, or else we can only hardcode existing
9893
hardcode_action=unsupported
9895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9896
$as_echo "$hardcode_action" >&6; }
9898
if test "$hardcode_action" = relink ||
9899
test "$inherit_rpath" = yes; then
9900
# Fast installation is not supported
9901
enable_fast_install=no
9902
elif test "$shlibpath_overrides_runpath" = yes ||
9903
test "$enable_shared" = no; then
9904
# Fast installation is not necessary
9905
enable_fast_install=needless
9913
if test "x$enable_dlopen" != xyes; then
9914
enable_dlopen=unknown
9915
enable_dlopen_self=unknown
9916
enable_dlopen_self_static=unknown
9923
lt_cv_dlopen="load_add_on"
9925
lt_cv_dlopen_self=yes
9928
mingw* | pw32* | cegcc*)
9929
lt_cv_dlopen="LoadLibrary"
9934
lt_cv_dlopen="dlopen"
9939
# if libdl is installed we need to link against it
9940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9941
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9942
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9943
$as_echo_n "(cached) " >&6
9945
ac_check_lib_save_LIBS=$LIBS
9947
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948
/* end confdefs.h. */
9950
/* Override any GCC internal prototype to avoid an error.
9951
Use char because int might match the return type of a GCC
9952
builtin and then its argument prototype would still apply. */
9965
if ac_fn_c_try_link "$LINENO"; then :
9966
ac_cv_lib_dl_dlopen=yes
9968
ac_cv_lib_dl_dlopen=no
9970
rm -f core conftest.err conftest.$ac_objext \
9971
conftest$ac_exeext conftest.$ac_ext
9972
LIBS=$ac_check_lib_save_LIBS
9974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9975
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9976
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9977
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9982
lt_cv_dlopen_self=yes
9989
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9990
if test "x$ac_cv_func_shl_load" = x""yes; then :
9991
lt_cv_dlopen="shl_load"
9993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9994
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9995
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9996
$as_echo_n "(cached) " >&6
9998
ac_check_lib_save_LIBS=$LIBS
10000
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001
/* end confdefs.h. */
10003
/* Override any GCC internal prototype to avoid an error.
10004
Use char because int might match the return type of a GCC
10005
builtin and then its argument prototype would still apply. */
10013
return shl_load ();
10018
if ac_fn_c_try_link "$LINENO"; then :
10019
ac_cv_lib_dld_shl_load=yes
10021
ac_cv_lib_dld_shl_load=no
10023
rm -f core conftest.err conftest.$ac_objext \
10024
conftest$ac_exeext conftest.$ac_ext
10025
LIBS=$ac_check_lib_save_LIBS
10027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10028
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10029
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10030
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10032
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10033
if test "x$ac_cv_func_dlopen" = x""yes; then :
10034
lt_cv_dlopen="dlopen"
10036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10037
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10038
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10039
$as_echo_n "(cached) " >&6
10041
ac_check_lib_save_LIBS=$LIBS
10043
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044
/* end confdefs.h. */
10046
/* Override any GCC internal prototype to avoid an error.
10047
Use char because int might match the return type of a GCC
10048
builtin and then its argument prototype would still apply. */
10061
if ac_fn_c_try_link "$LINENO"; then :
10062
ac_cv_lib_dl_dlopen=yes
10064
ac_cv_lib_dl_dlopen=no
10066
rm -f core conftest.err conftest.$ac_objext \
10067
conftest$ac_exeext conftest.$ac_ext
10068
LIBS=$ac_check_lib_save_LIBS
10070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10071
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10072
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10073
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10076
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10077
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10078
$as_echo_n "(cached) " >&6
10080
ac_check_lib_save_LIBS=$LIBS
10081
LIBS="-lsvld $LIBS"
10082
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083
/* end confdefs.h. */
10085
/* Override any GCC internal prototype to avoid an error.
10086
Use char because int might match the return type of a GCC
10087
builtin and then its argument prototype would still apply. */
10100
if ac_fn_c_try_link "$LINENO"; then :
10101
ac_cv_lib_svld_dlopen=yes
10103
ac_cv_lib_svld_dlopen=no
10105
rm -f core conftest.err conftest.$ac_objext \
10106
conftest$ac_exeext conftest.$ac_ext
10107
LIBS=$ac_check_lib_save_LIBS
10109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10110
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10111
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10112
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10115
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10116
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10117
$as_echo_n "(cached) " >&6
10119
ac_check_lib_save_LIBS=$LIBS
10121
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122
/* end confdefs.h. */
10124
/* Override any GCC internal prototype to avoid an error.
10125
Use char because int might match the return type of a GCC
10126
builtin and then its argument prototype would still apply. */
10134
return dld_link ();
10139
if ac_fn_c_try_link "$LINENO"; then :
10140
ac_cv_lib_dld_dld_link=yes
10142
ac_cv_lib_dld_dld_link=no
10144
rm -f core conftest.err conftest.$ac_objext \
10145
conftest$ac_exeext conftest.$ac_ext
10146
LIBS=$ac_check_lib_save_LIBS
10148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10149
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10150
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10151
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10172
if test "x$lt_cv_dlopen" != xno; then
10178
case $lt_cv_dlopen in
10180
save_CPPFLAGS="$CPPFLAGS"
10181
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10183
save_LDFLAGS="$LDFLAGS"
10184
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10187
LIBS="$lt_cv_dlopen_libs $LIBS"
10189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10190
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10191
if test "${lt_cv_dlopen_self+set}" = set; then :
10192
$as_echo_n "(cached) " >&6
10194
if test "$cross_compiling" = yes; then :
10195
lt_cv_dlopen_self=cross
10197
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10198
lt_status=$lt_dlunknown
10199
cat > conftest.$ac_ext <<_LT_EOF
10200
#line 10200 "configure"
10201
#include "confdefs.h"
10210
# define LT_DLGLOBAL RTLD_GLOBAL
10213
# define LT_DLGLOBAL DL_GLOBAL
10215
# define LT_DLGLOBAL 0
10219
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10220
find out it does not work in some platform. */
10221
#ifndef LT_DLLAZY_OR_NOW
10223
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10226
# define LT_DLLAZY_OR_NOW DL_LAZY
10229
# define LT_DLLAZY_OR_NOW RTLD_NOW
10232
# define LT_DLLAZY_OR_NOW DL_NOW
10234
# define LT_DLLAZY_OR_NOW 0
10241
void fnord() { int i=42;}
10244
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10245
int status = $lt_dlunknown;
10249
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10250
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10251
/* dlclose (self); */
10259
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10260
(eval $ac_link) 2>&5
10262
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10263
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10264
(./conftest; exit; ) >&5 2>/dev/null
10266
case x$lt_status in
10267
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10268
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10269
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10272
# compilation failed
10273
lt_cv_dlopen_self=no
10280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10281
$as_echo "$lt_cv_dlopen_self" >&6; }
10283
if test "x$lt_cv_dlopen_self" = xyes; then
10284
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10286
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10287
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10288
$as_echo_n "(cached) " >&6
10290
if test "$cross_compiling" = yes; then :
10291
lt_cv_dlopen_self_static=cross
10293
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10294
lt_status=$lt_dlunknown
10295
cat > conftest.$ac_ext <<_LT_EOF
10296
#line 10296 "configure"
10297
#include "confdefs.h"
10306
# define LT_DLGLOBAL RTLD_GLOBAL
10309
# define LT_DLGLOBAL DL_GLOBAL
10311
# define LT_DLGLOBAL 0
10315
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10316
find out it does not work in some platform. */
10317
#ifndef LT_DLLAZY_OR_NOW
10319
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10322
# define LT_DLLAZY_OR_NOW DL_LAZY
10325
# define LT_DLLAZY_OR_NOW RTLD_NOW
10328
# define LT_DLLAZY_OR_NOW DL_NOW
10330
# define LT_DLLAZY_OR_NOW 0
10337
void fnord() { int i=42;}
10340
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10341
int status = $lt_dlunknown;
10345
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10346
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10347
/* dlclose (self); */
10355
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10356
(eval $ac_link) 2>&5
10358
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10360
(./conftest; exit; ) >&5 2>/dev/null
10362
case x$lt_status in
10363
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10364
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10365
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10368
# compilation failed
10369
lt_cv_dlopen_self_static=no
10376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10377
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10380
CPPFLAGS="$save_CPPFLAGS"
10381
LDFLAGS="$save_LDFLAGS"
10386
case $lt_cv_dlopen_self in
10387
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10388
*) enable_dlopen_self=unknown ;;
10391
case $lt_cv_dlopen_self_static in
10392
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10393
*) enable_dlopen_self_static=unknown ;;
10415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10416
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10417
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10418
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10419
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10421
$as_echo "yes" >&6; }
10423
# FIXME - insert some real tests, host_os isn't really good enough
10426
if test -n "$STRIP" ; then
10427
striplib="$STRIP -x"
10428
old_striplib="$STRIP -S"
10429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430
$as_echo "yes" >&6; }
10432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433
$as_echo "no" >&6; }
10437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438
$as_echo "no" >&6; }
10454
# Report which library types will actually be built
10455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10456
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10458
$as_echo "$can_build_shared" >&6; }
10460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10461
$as_echo_n "checking whether to build shared libraries... " >&6; }
10462
test "$can_build_shared" = "no" && enable_shared=no
10464
# On AIX, shared libraries and static libraries use the same namespace, and
10465
# are all built from PIC.
10468
test "$enable_shared" = yes && enable_static=no
10469
if test -n "$RANLIB"; then
10470
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10471
postinstall_cmds='$RANLIB $lib'
10476
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10477
test "$enable_shared" = yes && enable_static=no
10481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10482
$as_echo "$enable_shared" >&6; }
10484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10485
$as_echo_n "checking whether to build static libraries... " >&6; }
10486
# Make sure either enable_shared or enable_static is yes.
10487
test "$enable_shared" = yes || enable_static=yes
10488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10489
$as_echo "$enable_static" >&6; }
10496
ac_cpp='$CPP $CPPFLAGS'
10497
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10498
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10499
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10515
ac_config_commands="$ac_config_commands libtool"
10520
# Only expand once:
10524
# checks for programs.
10526
ac_cpp='$CXXCPP $CPPFLAGS'
10527
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10528
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10529
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10530
if test -z "$CXX"; then
10531
if test -n "$CCC"; then
10534
if test -n "$ac_tool_prefix"; then
10535
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10537
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10538
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540
$as_echo_n "checking for $ac_word... " >&6; }
10541
if test "${ac_cv_prog_CXX+set}" = set; then :
10542
$as_echo_n "(cached) " >&6
10544
if test -n "$CXX"; then
10545
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548
for as_dir in $PATH
10551
test -z "$as_dir" && as_dir=.
10552
for ac_exec_ext in '' $ac_executable_extensions; do
10553
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10555
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564
CXX=$ac_cv_prog_CXX
10565
if test -n "$CXX"; then
10566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10567
$as_echo "$CXX" >&6; }
10569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570
$as_echo "no" >&6; }
10574
test -n "$CXX" && break
10577
if test -z "$CXX"; then
10579
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10581
# Extract the first word of "$ac_prog", so it can be a program name with args.
10582
set dummy $ac_prog; ac_word=$2
10583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584
$as_echo_n "checking for $ac_word... " >&6; }
10585
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10586
$as_echo_n "(cached) " >&6
10588
if test -n "$ac_ct_CXX"; then
10589
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592
for as_dir in $PATH
10595
test -z "$as_dir" && as_dir=.
10596
for ac_exec_ext in '' $ac_executable_extensions; do
10597
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598
ac_cv_prog_ac_ct_CXX="$ac_prog"
10599
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10609
if test -n "$ac_ct_CXX"; then
10610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10611
$as_echo "$ac_ct_CXX" >&6; }
10613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614
$as_echo "no" >&6; }
10618
test -n "$ac_ct_CXX" && break
10621
if test "x$ac_ct_CXX" = x; then
10624
case $cross_compiling:$ac_tool_warned in
10626
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10627
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10628
ac_tool_warned=yes ;;
10636
# Provide some information about the compiler.
10637
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10640
for ac_option in --version -v -V -qversion; do
10641
{ { ac_try="$ac_compiler $ac_option >&5"
10642
case "(($ac_try" in
10643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644
*) ac_try_echo=$ac_try;;
10646
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10647
$as_echo "$ac_try_echo"; } >&5
10648
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
10650
if test -s conftest.err; then
10652
... rest of stderr output deleted ...
10653
10q' conftest.err >conftest.er1
10654
cat conftest.er1 >&5
10655
rm -f conftest.er1 conftest.err
10657
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658
test $ac_status = 0; }
10661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10662
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10663
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10664
$as_echo_n "(cached) " >&6
10666
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667
/* end confdefs.h. */
10680
if ac_fn_cxx_try_compile "$LINENO"; then :
10681
ac_compiler_gnu=yes
10685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10690
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10691
if test $ac_compiler_gnu = yes; then
10696
ac_test_CXXFLAGS=${CXXFLAGS+set}
10697
ac_save_CXXFLAGS=$CXXFLAGS
10698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10699
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10700
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10701
$as_echo_n "(cached) " >&6
10703
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10704
ac_cxx_werror_flag=yes
10705
ac_cv_prog_cxx_g=no
10707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708
/* end confdefs.h. */
10718
if ac_fn_cxx_try_compile "$LINENO"; then :
10719
ac_cv_prog_cxx_g=yes
10722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723
/* end confdefs.h. */
10733
if ac_fn_cxx_try_compile "$LINENO"; then :
10736
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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
10752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10760
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10761
if test "$ac_test_CXXFLAGS" = set; then
10762
CXXFLAGS=$ac_save_CXXFLAGS
10763
elif test $ac_cv_prog_cxx_g = yes; then
10764
if test "$GXX" = yes; then
10770
if test "$GXX" = yes; then
10777
ac_cpp='$CPP $CPPFLAGS'
10778
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10782
depcc="$CXX" am_compiler_list=
10784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10785
$as_echo_n "checking dependency style of $depcc... " >&6; }
10786
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10787
$as_echo_n "(cached) " >&6
10789
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10790
# We make a subdir and do the tests there. Otherwise we can end up
10791
# making bogus files that we don't know about and never remove. For
10792
# instance it was reported that on HP-UX the gcc test will end up
10793
# making a dummy file named `D' -- because `-MD' means `put the output
10796
# Copy depcomp to subdir because otherwise we won't find it if we're
10797
# using a relative directory.
10798
cp "$am_depcomp" conftest.dir
10800
# We will build objects and dependencies in a subdirectory because
10801
# it helps to detect inapplicable dependency modes. For instance
10802
# both Tru64's cc and ICC support -MD to output dependencies as a
10803
# side effect of compilation, but ICC will put the dependencies in
10804
# the current directory while Tru64 will put them in the object
10808
am_cv_CXX_dependencies_compiler_type=none
10809
if test "$am_compiler_list" = ""; then
10810
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10812
am__universal=false
10813
case " $depcc " in #(
10814
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10817
for depmode in $am_compiler_list; do
10818
# Setup a source with many dependencies, because some compilers
10819
# like to wrap large dependency lists on column 80 (with \), and
10820
# we should not choose a depcomp mode which is confused by this.
10822
# We need to recreate these files for each test, as the compiler may
10823
# overwrite some of them when testing with obscure command lines.
10824
# This happens at least with the AIX C compiler.
10826
for i in 1 2 3 4 5 6; do
10827
echo '#include "conftst'$i'.h"' >> sub/conftest.c
10828
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10829
# Solaris 8's {/usr,}/bin/sh.
10830
touch sub/conftst$i.h
10832
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10834
# We check with `-c' and `-o' for the sake of the "dashmstdout"
10835
# mode. It turns out that the SunPro C++ compiler does not properly
10836
# handle `-M -o', and we need to detect this. Also, some Intel
10837
# versions had trouble with output in subdirs
10838
am__obj=sub/conftest.${OBJEXT-o}
10839
am__minus_obj="-o $am__obj"
10842
# This depmode causes a compiler race in universal mode.
10843
test "$am__universal" = false || continue
10846
# after this tag, mechanisms are not by side-effect, so they'll
10847
# only be used when explicitly requested
10848
if test "x$enable_dependency_tracking" = xyes; then
10854
msvisualcpp | msvcmsys)
10855
# This compiler won't grok `-c -o', but also, the minuso test has
10856
# not run yet. These depmodes are late enough in the game, and
10857
# so weak that their functioning should not be impacted.
10858
am__obj=conftest.${OBJEXT-o}
10863
if depmode=$depmode \
10864
source=sub/conftest.c object=$am__obj \
10865
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10866
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10867
>/dev/null 2>conftest.err &&
10868
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10869
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10870
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10871
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10872
# icc doesn't choke on unknown options, it will just issue warnings
10873
# or remarks (even with -Werror). So we grep stderr for any message
10874
# that says an option was ignored or not supported.
10875
# When given -MP, icc 7.0 and 7.1 complain thusly:
10876
# icc: Command line warning: ignoring option '-M'; no argument required
10877
# The diagnosis changed in icc 8.0:
10878
# icc: Command line remark: option '-MP' not supported
10879
if (grep 'ignoring option' conftest.err ||
10880
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10881
am_cv_CXX_dependencies_compiler_type=$depmode
10888
rm -rf conftest.dir
10890
am_cv_CXX_dependencies_compiler_type=none
10894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10895
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10896
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10899
test "x$enable_dependency_tracking" != xno \
10900
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10901
am__fastdepCXX_TRUE=
10902
am__fastdepCXX_FALSE='#'
10904
am__fastdepCXX_TRUE='#'
10905
am__fastdepCXX_FALSE=
10911
ac_cpp='$CXXCPP $CPPFLAGS'
10912
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10913
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10914
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10915
if test -z "$CXX"; then
10916
if test -n "$CCC"; then
10919
if test -n "$ac_tool_prefix"; then
10920
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10922
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10923
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925
$as_echo_n "checking for $ac_word... " >&6; }
10926
if test "${ac_cv_prog_CXX+set}" = set; then :
10927
$as_echo_n "(cached) " >&6
10929
if test -n "$CXX"; then
10930
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933
for as_dir in $PATH
10936
test -z "$as_dir" && as_dir=.
10937
for ac_exec_ext in '' $ac_executable_extensions; do
10938
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10940
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949
CXX=$ac_cv_prog_CXX
10950
if test -n "$CXX"; then
10951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10952
$as_echo "$CXX" >&6; }
10954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955
$as_echo "no" >&6; }
10959
test -n "$CXX" && break
10962
if test -z "$CXX"; then
10964
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10966
# Extract the first word of "$ac_prog", so it can be a program name with args.
10967
set dummy $ac_prog; ac_word=$2
10968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969
$as_echo_n "checking for $ac_word... " >&6; }
10970
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10971
$as_echo_n "(cached) " >&6
10973
if test -n "$ac_ct_CXX"; then
10974
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977
for as_dir in $PATH
10980
test -z "$as_dir" && as_dir=.
10981
for ac_exec_ext in '' $ac_executable_extensions; do
10982
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983
ac_cv_prog_ac_ct_CXX="$ac_prog"
10984
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10994
if test -n "$ac_ct_CXX"; then
10995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10996
$as_echo "$ac_ct_CXX" >&6; }
10998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999
$as_echo "no" >&6; }
11003
test -n "$ac_ct_CXX" && break
11006
if test "x$ac_ct_CXX" = x; then
11009
case $cross_compiling:$ac_tool_warned in
11011
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11012
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11013
ac_tool_warned=yes ;;
11021
# Provide some information about the compiler.
11022
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11025
for ac_option in --version -v -V -qversion; do
11026
{ { ac_try="$ac_compiler $ac_option >&5"
11027
case "(($ac_try" in
11028
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029
*) ac_try_echo=$ac_try;;
11031
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11032
$as_echo "$ac_try_echo"; } >&5
11033
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11035
if test -s conftest.err; then
11037
... rest of stderr output deleted ...
11038
10q' conftest.err >conftest.er1
11039
cat conftest.er1 >&5
11040
rm -f conftest.er1 conftest.err
11042
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043
test $ac_status = 0; }
11046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11047
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11048
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11049
$as_echo_n "(cached) " >&6
11051
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052
/* end confdefs.h. */
11065
if ac_fn_cxx_try_compile "$LINENO"; then :
11066
ac_compiler_gnu=yes
11070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11075
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11076
if test $ac_compiler_gnu = yes; then
11081
ac_test_CXXFLAGS=${CXXFLAGS+set}
11082
ac_save_CXXFLAGS=$CXXFLAGS
11083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11084
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11085
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11086
$as_echo_n "(cached) " >&6
11088
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11089
ac_cxx_werror_flag=yes
11090
ac_cv_prog_cxx_g=no
11092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093
/* end confdefs.h. */
11103
if ac_fn_cxx_try_compile "$LINENO"; then :
11104
ac_cv_prog_cxx_g=yes
11107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108
/* end confdefs.h. */
11118
if ac_fn_cxx_try_compile "$LINENO"; then :
11121
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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
11137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11145
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11146
if test "$ac_test_CXXFLAGS" = set; then
11147
CXXFLAGS=$ac_save_CXXFLAGS
11148
elif test $ac_cv_prog_cxx_g = yes; then
11149
if test "$GXX" = yes; then
11155
if test "$GXX" = yes; then
11162
ac_cpp='$CPP $CPPFLAGS'
11163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11167
depcc="$CXX" am_compiler_list=
11169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11170
$as_echo_n "checking dependency style of $depcc... " >&6; }
11171
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11172
$as_echo_n "(cached) " >&6
11174
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11175
# We make a subdir and do the tests there. Otherwise we can end up
11176
# making bogus files that we don't know about and never remove. For
11177
# instance it was reported that on HP-UX the gcc test will end up
11178
# making a dummy file named `D' -- because `-MD' means `put the output
11181
# Copy depcomp to subdir because otherwise we won't find it if we're
11182
# using a relative directory.
11183
cp "$am_depcomp" conftest.dir
11185
# We will build objects and dependencies in a subdirectory because
11186
# it helps to detect inapplicable dependency modes. For instance
11187
# both Tru64's cc and ICC support -MD to output dependencies as a
11188
# side effect of compilation, but ICC will put the dependencies in
11189
# the current directory while Tru64 will put them in the object
11193
am_cv_CXX_dependencies_compiler_type=none
11194
if test "$am_compiler_list" = ""; then
11195
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11197
am__universal=false
11198
case " $depcc " in #(
11199
*\ -arch\ *\ -arch\ *) am__universal=true ;;
11202
for depmode in $am_compiler_list; do
11203
# Setup a source with many dependencies, because some compilers
11204
# like to wrap large dependency lists on column 80 (with \), and
11205
# we should not choose a depcomp mode which is confused by this.
11207
# We need to recreate these files for each test, as the compiler may
11208
# overwrite some of them when testing with obscure command lines.
11209
# This happens at least with the AIX C compiler.
11211
for i in 1 2 3 4 5 6; do
11212
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11213
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11214
# Solaris 8's {/usr,}/bin/sh.
11215
touch sub/conftst$i.h
11217
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11219
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11220
# mode. It turns out that the SunPro C++ compiler does not properly
11221
# handle `-M -o', and we need to detect this. Also, some Intel
11222
# versions had trouble with output in subdirs
11223
am__obj=sub/conftest.${OBJEXT-o}
11224
am__minus_obj="-o $am__obj"
11227
# This depmode causes a compiler race in universal mode.
11228
test "$am__universal" = false || continue
11231
# after this tag, mechanisms are not by side-effect, so they'll
11232
# only be used when explicitly requested
11233
if test "x$enable_dependency_tracking" = xyes; then
11239
msvisualcpp | msvcmsys)
11240
# This compiler won't grok `-c -o', but also, the minuso test has
11241
# not run yet. These depmodes are late enough in the game, and
11242
# so weak that their functioning should not be impacted.
11243
am__obj=conftest.${OBJEXT-o}
11248
if depmode=$depmode \
11249
source=sub/conftest.c object=$am__obj \
11250
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11251
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11252
>/dev/null 2>conftest.err &&
11253
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11254
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11255
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11256
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11257
# icc doesn't choke on unknown options, it will just issue warnings
11258
# or remarks (even with -Werror). So we grep stderr for any message
11259
# that says an option was ignored or not supported.
11260
# When given -MP, icc 7.0 and 7.1 complain thusly:
11261
# icc: Command line warning: ignoring option '-M'; no argument required
11262
# The diagnosis changed in icc 8.0:
11263
# icc: Command line remark: option '-MP' not supported
11264
if (grep 'ignoring option' conftest.err ||
11265
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11266
am_cv_CXX_dependencies_compiler_type=$depmode
11273
rm -rf conftest.dir
11275
am_cv_CXX_dependencies_compiler_type=none
11279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11280
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11281
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11284
test "x$enable_dependency_tracking" != xno \
11285
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11286
am__fastdepCXX_TRUE=
11287
am__fastdepCXX_FALSE='#'
11289
am__fastdepCXX_TRUE='#'
11290
am__fastdepCXX_FALSE=
11294
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11295
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11296
(test "X$CXX" != "Xg++"))) ; then
11298
ac_cpp='$CXXCPP $CPPFLAGS'
11299
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11300
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11301
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11303
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11304
if test -z "$CXXCPP"; then
11305
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11306
$as_echo_n "(cached) " >&6
11308
# Double quotes because CXXCPP needs to be expanded
11309
for CXXCPP in "$CXX -E" "/lib/cpp"
11311
ac_preproc_ok=false
11312
for ac_cxx_preproc_warn_flag in '' yes
11314
# Use a header file that comes with gcc, so configuring glibc
11315
# with a fresh cross-compiler works.
11316
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11317
# <limits.h> exists even on freestanding compilers.
11318
# On the NeXT, cc -E runs the code through the compiler's parser,
11319
# not just through cpp. "Syntax error" is here to catch this case.
11320
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321
/* end confdefs.h. */
11323
# include <limits.h>
11325
# include <assert.h>
11329
if ac_fn_cxx_try_cpp "$LINENO"; then :
11332
# Broken: fails on valid input.
11335
rm -f conftest.err conftest.$ac_ext
11337
# OK, works on sane cases. Now check whether nonexistent headers
11338
# can be detected and how.
11339
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340
/* end confdefs.h. */
11341
#include <ac_nonexistent.h>
11343
if ac_fn_cxx_try_cpp "$LINENO"; then :
11344
# Broken: success on invalid input.
11347
# Passes both tests.
11351
rm -f conftest.err conftest.$ac_ext
11354
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11355
rm -f conftest.err conftest.$ac_ext
11356
if $ac_preproc_ok; then :
11361
ac_cv_prog_CXXCPP=$CXXCPP
11364
CXXCPP=$ac_cv_prog_CXXCPP
11366
ac_cv_prog_CXXCPP=$CXXCPP
11368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11369
$as_echo "$CXXCPP" >&6; }
11370
ac_preproc_ok=false
11371
for ac_cxx_preproc_warn_flag in '' yes
11373
# Use a header file that comes with gcc, so configuring glibc
11374
# with a fresh cross-compiler works.
11375
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376
# <limits.h> exists even on freestanding compilers.
11377
# On the NeXT, cc -E runs the code through the compiler's parser,
11378
# not just through cpp. "Syntax error" is here to catch this case.
11379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380
/* end confdefs.h. */
11382
# include <limits.h>
11384
# include <assert.h>
11388
if ac_fn_cxx_try_cpp "$LINENO"; then :
11391
# Broken: fails on valid input.
11394
rm -f conftest.err conftest.$ac_ext
11396
# OK, works on sane cases. Now check whether nonexistent headers
11397
# can be detected and how.
11398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399
/* end confdefs.h. */
11400
#include <ac_nonexistent.h>
11402
if ac_fn_cxx_try_cpp "$LINENO"; then :
11403
# Broken: success on invalid input.
11406
# Passes both tests.
11410
rm -f conftest.err conftest.$ac_ext
11413
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11414
rm -f conftest.err conftest.$ac_ext
11415
if $ac_preproc_ok; then :
11418
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11419
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11420
_lt_caught_CXX_error=yes; }
11424
ac_cpp='$CPP $CPPFLAGS'
11425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430
_lt_caught_CXX_error=yes
11437
ac_cpp='$CXXCPP $CPPFLAGS'
11438
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11442
archive_cmds_need_lc_CXX=no
11443
allow_undefined_flag_CXX=
11444
always_export_symbols_CXX=no
11445
archive_expsym_cmds_CXX=
11446
compiler_needs_object_CXX=no
11447
export_dynamic_flag_spec_CXX=
11448
hardcode_direct_CXX=no
11449
hardcode_direct_absolute_CXX=no
11450
hardcode_libdir_flag_spec_CXX=
11451
hardcode_libdir_flag_spec_ld_CXX=
11452
hardcode_libdir_separator_CXX=
11453
hardcode_minus_L_CXX=no
11454
hardcode_shlibpath_var_CXX=unsupported
11455
hardcode_automatic_CXX=no
11456
inherit_rpath_CXX=no
11458
module_expsym_cmds_CXX=
11459
link_all_deplibs_CXX=unknown
11460
old_archive_cmds_CXX=$old_archive_cmds
11461
no_undefined_flag_CXX=
11462
whole_archive_flag_spec_CXX=
11463
enable_shared_with_static_runtimes_CXX=no
11465
# Source file extension for C++ test sources.
11468
# Object file extension for compiled C++ test sources.
11472
# No sense in running all these tests if we already determined that
11473
# the CXX compiler isn't working. Some variables (like enable_shared)
11474
# are currently assumed to apply to all compilers on this platform,
11475
# and will be corrupted by setting them based on a non-working compiler.
11476
if test "$_lt_caught_CXX_error" != yes; then
11477
# Code to be used in simple compile tests
11478
lt_simple_compile_test_code="int some_variable = 0;"
11480
# Code to be used in simple link tests
11481
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11483
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11490
# If no C compiler was specified, use CC.
11493
# If no C compiler flags were specified, use CFLAGS.
11494
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11496
# Allow CC to be a program name with arguments.
11500
# save warnings/boilerplate of simple test code
11501
ac_outfile=conftest.$ac_objext
11502
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11503
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11504
_lt_compiler_boilerplate=`cat conftest.err`
11507
ac_outfile=conftest.$ac_objext
11508
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11509
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11510
_lt_linker_boilerplate=`cat conftest.err`
11514
# Allow CC to be a program name with arguments.
11519
lt_save_with_gnu_ld=$with_gnu_ld
11520
lt_save_path_LD=$lt_cv_path_LD
11521
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11522
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11524
$as_unset lt_cv_prog_gnu_ld
11526
if test -n "${lt_cv_path_LDCXX+set}"; then
11527
lt_cv_path_LD=$lt_cv_path_LDCXX
11529
$as_unset lt_cv_path_LD
11531
test -z "${LDCXX+set}" || LD=$LDCXX
11535
for cc_temp in $compiler""; do
11537
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11538
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11543
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11546
if test -n "$compiler"; then
11547
# We don't want -fno-exception when compiling C++ code, so set the
11548
# no_builtin_flag separately
11549
if test "$GXX" = yes; then
11550
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11552
lt_prog_compiler_no_builtin_flag_CXX=
11555
if test "$GXX" = yes; then
11556
# Set up default GNU C++ configuration
11560
# Check whether --with-gnu-ld was given.
11561
if test "${with_gnu_ld+set}" = set; then :
11562
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11568
if test "$GCC" = yes; then
11569
# Check if gcc -print-prog-name=ld gives a path.
11570
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11571
$as_echo_n "checking for ld used by $CC... " >&6; }
11574
# gcc leaves a trailing carriage return which upsets mingw
11575
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11577
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11580
# Accept absolute paths.
11582
re_direlt='/[^/][^/]*/\.\./'
11583
# Canonicalize the pathname of ld
11584
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11585
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11586
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11588
test -z "$LD" && LD="$ac_prog"
11591
# If it fails, then pretend we aren't using GCC.
11595
# If it is relative, then search for the first ld in PATH.
11596
with_gnu_ld=unknown
11599
elif test "$with_gnu_ld" = yes; then
11600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11601
$as_echo_n "checking for GNU ld... " >&6; }
11603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11604
$as_echo_n "checking for non-GNU ld... " >&6; }
11606
if test "${lt_cv_path_LD+set}" = set; then :
11607
$as_echo_n "(cached) " >&6
11609
if test -z "$LD"; then
11610
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11611
for ac_dir in $PATH; do
11613
test -z "$ac_dir" && ac_dir=.
11614
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11615
lt_cv_path_LD="$ac_dir/$ac_prog"
11616
# Check to see if the program is GNU ld. I'd rather use --version,
11617
# but apparently some variants of GNU ld only accept -v.
11618
# Break only if it was the GNU/non-GNU ld that we prefer.
11619
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11620
*GNU* | *'with BFD'*)
11621
test "$with_gnu_ld" != no && break
11624
test "$with_gnu_ld" != yes && break
11631
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11635
LD="$lt_cv_path_LD"
11636
if test -n "$LD"; then
11637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11638
$as_echo "$LD" >&6; }
11640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641
$as_echo "no" >&6; }
11643
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11645
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11646
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11647
$as_echo_n "(cached) " >&6
11649
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11650
case `$LD -v 2>&1 </dev/null` in
11651
*GNU* | *'with BFD'*)
11652
lt_cv_prog_gnu_ld=yes
11655
lt_cv_prog_gnu_ld=no
11659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11660
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11661
with_gnu_ld=$lt_cv_prog_gnu_ld
11669
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11670
# archiving commands below assume that GNU ld is being used.
11671
if test "$with_gnu_ld" = yes; then
11672
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11673
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'
11675
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11676
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11678
# If archive_cmds runs LD, not CC, wlarc should be empty
11679
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11680
# investigate it a little bit more. (MM)
11683
# ancient GNU ld didn't support --whole-archive et. al.
11684
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11685
$GREP 'no-whole-archive' > /dev/null; then
11686
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11688
whole_archive_flag_spec_CXX=
11694
# A generic and very simple default shared library creation
11695
# command for GNU C++ for the case where it uses the native
11696
# linker, instead of GNU ld. If possible, this setting should
11697
# overridden to take advantage of the native linker features on
11698
# the platform it is being used on.
11699
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11702
# Commands to make compiler produce verbose output that lists
11703
# what "hidden" libraries, object files and flags are used when
11704
# linking a shared library.
11705
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11713
# PORTME: fill in a description of your system's C++ link characteristics
11714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11715
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11719
# FIXME: insert proper C++ library support
11723
if test "$host_cpu" = ia64; then
11724
# On IA64, the linker does run time linking by default, so we don't
11725
# have to do anything special.
11726
aix_use_runtimelinking=no
11727
exp_sym_flag='-Bexport'
11730
aix_use_runtimelinking=no
11732
# Test if we are trying to use run time linking or normal
11733
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11734
# need to do runtime linking.
11735
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11736
for ld_flag in $LDFLAGS; do
11739
aix_use_runtimelinking=yes
11747
exp_sym_flag='-bexport'
11748
no_entry_flag='-bnoentry'
11751
# When large executables or shared objects are built, AIX ld can
11752
# have problems creating the table of contents. If linking a library
11753
# or program results in "error TOC overflow" add -mminimal-toc to
11754
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11755
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11757
archive_cmds_CXX=''
11758
hardcode_direct_CXX=yes
11759
hardcode_direct_absolute_CXX=yes
11760
hardcode_libdir_separator_CXX=':'
11761
link_all_deplibs_CXX=yes
11762
file_list_spec_CXX='${wl}-f,'
11764
if test "$GXX" = yes; then
11765
case $host_os in aix4.[012]|aix4.[012].*)
11766
# We only want to do this on AIX 4.2 and lower, the check
11767
# below for broken collect2 doesn't work under 4.3+
11768
collect2name=`${CC} -print-prog-name=collect2`
11769
if test -f "$collect2name" &&
11770
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11772
# We have reworked collect2
11775
# We have old collect2
11776
hardcode_direct_CXX=unsupported
11777
# It fails to find uninstalled libraries when the uninstalled
11778
# path is not listed in the libpath. Setting hardcode_minus_L
11779
# to unsupported forces relinking
11780
hardcode_minus_L_CXX=yes
11781
hardcode_libdir_flag_spec_CXX='-L$libdir'
11782
hardcode_libdir_separator_CXX=
11785
shared_flag='-shared'
11786
if test "$aix_use_runtimelinking" = yes; then
11787
shared_flag="$shared_flag "'${wl}-G'
11791
if test "$host_cpu" = ia64; then
11792
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11793
# chokes on -Wl,-G. The following line is correct:
11796
if test "$aix_use_runtimelinking" = yes; then
11797
shared_flag='${wl}-G'
11799
shared_flag='${wl}-bM:SRE'
11804
export_dynamic_flag_spec_CXX='${wl}-bexpall'
11805
# It seems that -bexpall does not export symbols beginning with
11806
# underscore (_), so it is better to generate a list of symbols to
11808
always_export_symbols_CXX=yes
11809
if test "$aix_use_runtimelinking" = yes; then
11810
# Warning - without using the other runtime loading flags (-brtl),
11811
# -berok will link without error, but may produce a broken library.
11812
allow_undefined_flag_CXX='-berok'
11813
# Determine the default libpath from the value encoded in an empty
11815
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816
/* end confdefs.h. */
11826
if ac_fn_cxx_try_link "$LINENO"; then :
11828
lt_aix_libpath_sed='
11829
/Import File Strings/,/^$/ {
11835
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11836
# Check for a 64-bit object if we didn't find anything.
11837
if test -z "$aix_libpath"; then
11838
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11841
rm -f core conftest.err conftest.$ac_objext \
11842
conftest$ac_exeext conftest.$ac_ext
11843
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11845
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11847
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"
11849
if test "$host_cpu" = ia64; then
11850
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11851
allow_undefined_flag_CXX="-z nodefs"
11852
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"
11854
# Determine the default libpath from the value encoded in an
11855
# empty executable.
11856
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857
/* end confdefs.h. */
11867
if ac_fn_cxx_try_link "$LINENO"; then :
11869
lt_aix_libpath_sed='
11870
/Import File Strings/,/^$/ {
11876
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11877
# Check for a 64-bit object if we didn't find anything.
11878
if test -z "$aix_libpath"; then
11879
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11882
rm -f core conftest.err conftest.$ac_objext \
11883
conftest$ac_exeext conftest.$ac_ext
11884
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11886
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11887
# Warning - without using the other run time loading flags,
11888
# -berok will link without error, but may produce a broken library.
11889
no_undefined_flag_CXX=' ${wl}-bernotok'
11890
allow_undefined_flag_CXX=' ${wl}-berok'
11891
# Exported symbols can be pulled into shared objects from archives
11892
whole_archive_flag_spec_CXX='$convenience'
11893
archive_cmds_need_lc_CXX=yes
11894
# This is similar to how AIX traditionally builds its shared
11896
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'
11902
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11903
allow_undefined_flag_CXX=unsupported
11904
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11905
# support --undefined. This deserves some investigation. FIXME
11906
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11913
case $cc_basename in
11915
# FIXME: insert proper C++ library support
11921
cygwin* | mingw* | pw32* | cegcc*)
11922
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11923
# as there is no search path for DLLs.
11924
hardcode_libdir_flag_spec_CXX='-L$libdir'
11925
allow_undefined_flag_CXX=unsupported
11926
always_export_symbols_CXX=no
11927
enable_shared_with_static_runtimes_CXX=yes
11929
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11930
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'
11931
# If the export-symbols file already is a .def file (1st line
11932
# is EXPORTS), use it as is; otherwise, prepend...
11933
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11934
cp $export_symbols $output_objdir/$soname.def;
11936
echo EXPORTS > $output_objdir/$soname.def;
11937
cat $export_symbols >> $output_objdir/$soname.def;
11939
$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'
11944
darwin* | rhapsody*)
11947
archive_cmds_need_lc_CXX=no
11948
hardcode_direct_CXX=no
11949
hardcode_automatic_CXX=yes
11950
hardcode_shlibpath_var_CXX=unsupported
11951
whole_archive_flag_spec_CXX=''
11952
link_all_deplibs_CXX=yes
11953
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11954
case $cc_basename in
11955
ifort*) _lt_dar_can_shared=yes ;;
11956
*) _lt_dar_can_shared=$GCC ;;
11958
if test "$_lt_dar_can_shared" = "yes"; then
11959
output_verbose_link_cmd=echo
11960
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}"
11961
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11962
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}"
11963
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}"
11964
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11965
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}"
11966
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}"
11976
case $cc_basename in
11978
# FIXME: insert proper C++ library support
11982
# Green Hills C++ Compiler
11983
# FIXME: insert proper C++ library support
11987
# FIXME: insert proper C++ library support
11994
# C++ shared libraries reported to be fairly broken before
12000
archive_cmds_need_lc_CXX=no
12003
freebsd* | dragonfly*)
12004
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12013
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12014
hardcode_libdir_separator_CXX=:
12015
export_dynamic_flag_spec_CXX='${wl}-E'
12016
hardcode_direct_CXX=yes
12017
hardcode_minus_L_CXX=yes # Not in the search PATH,
12018
# but as the default
12019
# location of the library.
12021
case $cc_basename in
12023
# FIXME: insert proper C++ library support
12027
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'
12028
# Commands to make compiler produce verbose output that lists
12029
# what "hidden" libraries, object files and flags are used when
12030
# linking a shared library.
12032
# There doesn't appear to be a way to prevent this compiler from
12033
# explicitly linking system object files so we need to strip them
12034
# from the output so that they don't get included in the library
12036
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'
12039
if test "$GXX" = yes; then
12040
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'
12042
# FIXME: insert proper C++ library support
12050
if test $with_gnu_ld = no; then
12051
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12052
hardcode_libdir_separator_CXX=:
12058
export_dynamic_flag_spec_CXX='${wl}-E'
12064
hardcode_direct_CXX=no
12065
hardcode_shlibpath_var_CXX=no
12068
hardcode_direct_CXX=yes
12069
hardcode_direct_absolute_CXX=yes
12070
hardcode_minus_L_CXX=yes # Not in the search PATH,
12071
# but as the default
12072
# location of the library.
12076
case $cc_basename in
12078
# FIXME: insert proper C++ library support
12084
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12087
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12090
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12093
# Commands to make compiler produce verbose output that lists
12094
# what "hidden" libraries, object files and flags are used when
12095
# linking a shared library.
12097
# There doesn't appear to be a way to prevent this compiler from
12098
# explicitly linking system object files so we need to strip them
12099
# from the output so that they don't get included in the library
12101
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'
12104
if test "$GXX" = yes; then
12105
if test $with_gnu_ld = no; then
12108
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12111
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12114
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'
12119
# FIXME: insert proper C++ library support
12127
hardcode_direct_CXX=no
12128
hardcode_shlibpath_var_CXX=no
12129
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12130
export_dynamic_flag_spec_CXX='${wl}-E'
12131
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12132
# Instead, shared libraries are loaded at an image base (0x10000000 by
12133
# default) and relocated if they conflict, which is a slow very memory
12134
# consuming and fragmenting process. To avoid this, we pick a random,
12135
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12136
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12137
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'
12138
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'
12141
case $cc_basename in
12144
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'
12146
# Archives containing C++ object files must be created using
12147
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12148
# necessary to make sure instantiated templates are included
12150
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12153
if test "$GXX" = yes; then
12154
if test "$with_gnu_ld" = no; then
12155
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'
12157
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'
12160
link_all_deplibs_CXX=yes
12163
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12164
hardcode_libdir_separator_CXX=:
12165
inherit_rpath_CXX=yes
12168
linux* | k*bsd*-gnu)
12169
case $cc_basename in
12171
# Kuck and Associates, Inc. (KAI) C++ Compiler
12173
# KCC will only create a shared library if the output file
12174
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12175
# to its proper name (with version) after linking.
12176
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'
12177
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'
12178
# Commands to make compiler produce verbose output that lists
12179
# what "hidden" libraries, object files and flags are used when
12180
# linking a shared library.
12182
# There doesn't appear to be a way to prevent this compiler from
12183
# explicitly linking system object files so we need to strip them
12184
# from the output so that they don't get included in the library
12186
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'
12188
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12189
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12191
# Archives containing C++ object files must be created using
12192
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12193
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12198
# version 8.0 and above of icpc choke on multiply defined symbols
12199
# if we add $predep_objects and $postdep_objects, however 7.1 and
12200
# earlier do not add the objects themselves.
12201
case `$CC -V 2>&1` in
12203
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12204
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'
12206
*) # Version 8.0 or newer
12209
ia64*) tmp_idyn=' -i_dynamic';;
12211
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12212
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'
12215
archive_cmds_need_lc_CXX=no
12216
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12217
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12218
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12221
# Portland Group C++ compiler
12223
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12224
prelink_cmds_CXX='tpldir=Template.dir~
12226
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12227
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12228
old_archive_cmds_CXX='tpldir=Template.dir~
12230
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12231
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12233
archive_cmds_CXX='tpldir=Template.dir~
12235
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12236
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12237
archive_expsym_cmds_CXX='tpldir=Template.dir~
12239
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12240
$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'
12242
*) # Version 6 will use weak symbols
12243
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12244
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'
12248
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12249
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12250
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'
12254
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255
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'
12257
runpath_var=LD_RUN_PATH
12258
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12259
hardcode_libdir_separator_CXX=:
12261
# Commands to make compiler produce verbose output that lists
12262
# what "hidden" libraries, object files and flags are used when
12263
# linking a shared library.
12265
# There doesn't appear to be a way to prevent this compiler from
12266
# explicitly linking system object files so we need to strip them
12267
# from the output so that they don't get included in the library
12269
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'
12272
# IBM XL 8.0 on PPC, with GNU ld
12273
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12274
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12275
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12276
if test "x$supports_anon_versioning" = xyes; then
12277
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12278
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12279
echo "local: *; };" >> $output_objdir/$libname.ver~
12280
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12284
case `$CC -V 2>&1 | sed 5q` in
12287
no_undefined_flag_CXX=' -zdefs'
12288
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12289
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'
12290
hardcode_libdir_flag_spec_CXX='-R$libdir'
12291
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'
12292
compiler_needs_object_CXX=yes
12294
# Not sure whether something based on
12295
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12297
output_verbose_link_cmd='echo'
12299
# Archives containing C++ object files must be created using
12300
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12301
# necessary to make sure instantiated templates are included
12303
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12311
# FIXME: insert proper C++ library support
12316
# FIXME: insert proper C++ library support
12321
case $cc_basename in
12323
# FIXME: insert proper C++ library support
12327
# FIXME: insert proper C++ library support
12334
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12335
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12337
hardcode_libdir_flag_spec_CXX='-R$libdir'
12338
hardcode_direct_CXX=yes
12339
hardcode_shlibpath_var_CXX=no
12341
# Workaround some broken pre-1.5 toolchains
12342
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12350
# C++ shared libraries are fairly broken
12355
if test -f /usr/libexec/ld.so; then
12356
hardcode_direct_CXX=yes
12357
hardcode_shlibpath_var_CXX=no
12358
hardcode_direct_absolute_CXX=yes
12359
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12360
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12361
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12362
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12363
export_dynamic_flag_spec_CXX='${wl}-E'
12364
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12366
output_verbose_link_cmd=echo
12372
osf3* | osf4* | osf5*)
12373
case $cc_basename in
12375
# Kuck and Associates, Inc. (KAI) C++ Compiler
12377
# KCC will only create a shared library if the output file
12378
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12379
# to its proper name (with version) after linking.
12380
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12382
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12383
hardcode_libdir_separator_CXX=:
12385
# Archives containing C++ object files must be created using
12386
# the KAI C++ compiler.
12388
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12389
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12393
# Rational C++ 2.4.1
12394
# FIXME: insert proper C++ library support
12400
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12401
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'
12402
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12405
allow_undefined_flag_CXX=' -expect_unresolved \*'
12406
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'
12407
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12408
echo "-hidden">> $lib.exp~
12409
$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~
12411
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12415
hardcode_libdir_separator_CXX=:
12417
# Commands to make compiler produce verbose output that lists
12418
# what "hidden" libraries, object files and flags are used when
12419
# linking a shared library.
12421
# There doesn't appear to be a way to prevent this compiler from
12422
# explicitly linking system object files so we need to strip them
12423
# from the output so that they don't get included in the library
12425
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'
12428
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12429
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12432
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'
12435
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'
12439
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12440
hardcode_libdir_separator_CXX=:
12442
# Commands to make compiler produce verbose output that lists
12443
# what "hidden" libraries, object files and flags are used when
12444
# linking a shared library.
12445
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12448
# FIXME: insert proper C++ library support
12456
# FIXME: insert proper C++ library support
12461
case $cc_basename in
12464
# FIXME: insert proper C++ library support
12469
# FIXME: insert proper C++ library support
12473
# FIXME: insert proper C++ library support
12480
case $cc_basename in
12482
# Sun C++ 4.2, 5.x and Centerline C++
12483
archive_cmds_need_lc_CXX=yes
12484
no_undefined_flag_CXX=' -zdefs'
12485
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12486
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12487
$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'
12489
hardcode_libdir_flag_spec_CXX='-R$libdir'
12490
hardcode_shlibpath_var_CXX=no
12492
solaris2.[0-5] | solaris2.[0-5].*) ;;
12494
# The compiler driver will combine and reorder linker options,
12495
# but understands `-z linker_flag'.
12496
# Supported since Solaris 2.6 (maybe 2.5.1?)
12497
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12500
link_all_deplibs_CXX=yes
12502
output_verbose_link_cmd='echo'
12504
# Archives containing C++ object files must be created using
12505
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12506
# necessary to make sure instantiated templates are included
12508
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12511
# Green Hills C++ Compiler
12512
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12514
# The C++ compiler must be used to create the archive.
12515
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12518
# GNU C++ compiler with Solaris linker
12519
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12520
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12521
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12522
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12523
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12524
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12526
# Commands to make compiler produce verbose output that lists
12527
# what "hidden" libraries, object files and flags are used when
12528
# linking a shared library.
12529
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12531
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12533
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12534
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12535
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12537
# Commands to make compiler produce verbose output that lists
12538
# what "hidden" libraries, object files and flags are used when
12539
# linking a shared library.
12540
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12543
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12545
solaris2.[0-5] | solaris2.[0-5].*) ;;
12547
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12555
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12556
no_undefined_flag_CXX='${wl}-z,text'
12557
archive_cmds_need_lc_CXX=no
12558
hardcode_shlibpath_var_CXX=no
12559
runpath_var='LD_RUN_PATH'
12561
case $cc_basename in
12563
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12564
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12567
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573
sysv5* | sco3.2v5* | sco5v6*)
12574
# Note: We can NOT use -z defs as we might desire, because we do not
12575
# link with -lc, and that would cause any symbols used from libc to
12576
# always be unresolved, which means just about no library would
12577
# ever link correctly. If we're not using GNU ld we use -z text
12578
# though, which does catch some bad symbols but isn't as heavy-handed
12580
no_undefined_flag_CXX='${wl}-z,text'
12581
allow_undefined_flag_CXX='${wl}-z,nodefs'
12582
archive_cmds_need_lc_CXX=no
12583
hardcode_shlibpath_var_CXX=no
12584
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12585
hardcode_libdir_separator_CXX=':'
12586
link_all_deplibs_CXX=yes
12587
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12588
runpath_var='LD_RUN_PATH'
12590
case $cc_basename in
12592
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12593
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12596
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12603
case $cc_basename in
12605
# NonStop-UX NCC 3.20
12606
# FIXME: insert proper C++ library support
12610
# FIXME: insert proper C++ library support
12617
# FIXME: insert proper C++ library support
12622
# FIXME: insert proper C++ library support
12627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12628
$as_echo "$ld_shlibs_CXX" >&6; }
12629
test "$ld_shlibs_CXX" = no && can_build_shared=no
12635
## There is no encapsulation within the following macros, do not change
12636
## the running order or otherwise move them around unless you know exactly
12637
## what you are doing...
12638
# Dependencies to place before and after the object being linked:
12639
predep_objects_CXX=
12640
postdep_objects_CXX=
12643
compiler_lib_search_path_CXX=
12645
cat > conftest.$ac_ext <<_LT_EOF
12649
Foo (void) { a = 0; }
12655
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12656
(eval $ac_compile) 2>&5
12658
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12659
test $ac_status = 0; }; then
12660
# Parse the compiler output and extract the necessary
12661
# objects, libraries and library flags.
12663
# Sentinel used to keep track of whether or not we are before
12664
# the conftest object file.
12665
pre_test_object_deps_done=no
12667
for p in `eval "$output_verbose_link_cmd"`; do
12671
# Some compilers place space between "-{L,R}" and the path.
12672
# Remove the space.
12673
if test $p = "-L" ||
12674
test $p = "-R"; then
12681
if test "$pre_test_object_deps_done" = no; then
12684
# Internal compiler library paths should come after those
12685
# provided the user. The postdeps already come after the
12686
# user supplied libs so there is no need to process them.
12687
if test -z "$compiler_lib_search_path_CXX"; then
12688
compiler_lib_search_path_CXX="${prev}${p}"
12690
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12693
# The "-l" case would never come before the object being
12694
# linked, so don't bother handling this case.
12697
if test -z "$postdeps_CXX"; then
12698
postdeps_CXX="${prev}${p}"
12700
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12706
# This assumes that the test object file only shows up
12707
# once in the compiler output.
12708
if test "$p" = "conftest.$objext"; then
12709
pre_test_object_deps_done=yes
12713
if test "$pre_test_object_deps_done" = no; then
12714
if test -z "$predep_objects_CXX"; then
12715
predep_objects_CXX="$p"
12717
predep_objects_CXX="$predep_objects_CXX $p"
12720
if test -z "$postdep_objects_CXX"; then
12721
postdep_objects_CXX="$p"
12723
postdep_objects_CXX="$postdep_objects_CXX $p"
12728
*) ;; # Ignore the rest.
12736
echo "libtool.m4: error: problem compiling CXX test program"
12739
$RM -f confest.$objext
12741
# PORTME: override above test on systems where it is broken
12744
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12745
# hack all around it, let's just trust "g++" to DTRT.
12746
predep_objects_CXX=
12747
postdep_objects_CXX=
12752
case `$CC -V 2>&1 | sed 5q` in
12756
# The more standards-conforming stlport4 library is
12757
# incompatible with the Cstd library. Avoid specifying
12758
# it if it's in CXXFLAGS. Ignore libCrun as
12759
# -library=stlport4 depends on it.
12760
case " $CXX $CXXFLAGS " in
12761
*" -library=stlport4 "*)
12762
solaris_use_stlport4=yes
12766
if test "$solaris_use_stlport4" != yes; then
12767
postdeps_CXX='-library=Cstd -library=Crun'
12774
case $cc_basename in
12776
# The more standards-conforming stlport4 library is
12777
# incompatible with the Cstd library. Avoid specifying
12778
# it if it's in CXXFLAGS. Ignore libCrun as
12779
# -library=stlport4 depends on it.
12780
case " $CXX $CXXFLAGS " in
12781
*" -library=stlport4 "*)
12782
solaris_use_stlport4=yes
12786
# Adding this requires a known-good setup of shared libraries for
12787
# Sun compiler versions before 5.6, else PIC objects from an old
12788
# archive will be linked into the output, leading to subtle bugs.
12789
if test "$solaris_use_stlport4" != yes; then
12790
postdeps_CXX='-library=Cstd -library=Crun'
12798
case " $postdeps_CXX " in
12799
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12801
compiler_lib_search_dirs_CXX=
12802
if test -n "${compiler_lib_search_path_CXX}"; then
12803
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12836
lt_prog_compiler_wl_CXX=
12837
lt_prog_compiler_pic_CXX=
12838
lt_prog_compiler_static_CXX=
12840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12841
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12843
# C++ specific cases for pic, static, wl, etc.
12844
if test "$GXX" = yes; then
12845
lt_prog_compiler_wl_CXX='-Wl,'
12846
lt_prog_compiler_static_CXX='-static'
12850
# All AIX code is PIC.
12851
if test "$host_cpu" = ia64; then
12852
# AIX 5 now supports IA64 processor
12853
lt_prog_compiler_static_CXX='-Bstatic'
12860
# see comment about AmigaOS4 .so support
12861
lt_prog_compiler_pic_CXX='-fPIC'
12864
# FIXME: we need at least 68020 code to build shared libraries, but
12865
# adding the `-m68020' flag to GCC prevents building anything better,
12867
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12872
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12873
# PIC is the default for these OSes.
12875
mingw* | cygwin* | os2* | pw32* | cegcc*)
12876
# This hack is so that the source file can tell whether it is being
12877
# built for inclusion in a dll (and should export symbols for example).
12878
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12879
# (--disable-auto-import) libraries
12880
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12882
darwin* | rhapsody*)
12883
# PIC is the default on this platform
12884
# Common symbols not allowed in MH_DYLIB files
12885
lt_prog_compiler_pic_CXX='-fno-common'
12888
# DJGPP does not support shared libraries at all
12889
lt_prog_compiler_pic_CXX=
12892
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12893
# Instead, we relocate shared libraries at runtime.
12896
if test -d /usr/nec; then
12897
lt_prog_compiler_pic_CXX=-Kconform_pic
12901
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12902
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12903
# sets the default TLS model and affects inlining.
12908
lt_prog_compiler_pic_CXX='-fPIC'
12913
# QNX uses GNU C++, but need to define -shared option too, otherwise
12914
# it will coredump.
12915
lt_prog_compiler_pic_CXX='-fPIC -shared'
12918
lt_prog_compiler_pic_CXX='-fPIC'
12924
# All AIX code is PIC.
12925
if test "$host_cpu" = ia64; then
12926
# AIX 5 now supports IA64 processor
12927
lt_prog_compiler_static_CXX='-Bstatic'
12929
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12933
case $cc_basename in
12935
# Green Hills C++ Compiler
12936
# _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"
12941
case $cc_basename in
12943
lt_prog_compiler_pic_CXX='-KPIC'
12946
# Green Hills C++ Compiler
12947
lt_prog_compiler_pic_CXX='-pic'
12953
freebsd* | dragonfly*)
12954
# FreeBSD uses GNU C++
12956
hpux9* | hpux10* | hpux11*)
12957
case $cc_basename in
12959
lt_prog_compiler_wl_CXX='-Wl,'
12960
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12961
if test "$host_cpu" != ia64; then
12962
lt_prog_compiler_pic_CXX='+Z'
12966
lt_prog_compiler_wl_CXX='-Wl,'
12967
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12973
lt_prog_compiler_pic_CXX='+Z'
12982
# This is c89, which is MS Visual C++ (no shared libs)
12983
# Anyone wants to do a port?
12985
irix5* | irix6* | nonstopux*)
12986
case $cc_basename in
12988
lt_prog_compiler_wl_CXX='-Wl,'
12989
lt_prog_compiler_static_CXX='-non_shared'
12990
# CC pic flag -KPIC is the default.
12996
linux* | k*bsd*-gnu)
12997
case $cc_basename in
13000
lt_prog_compiler_wl_CXX='--backend -Wl,'
13001
lt_prog_compiler_pic_CXX='-fPIC'
13004
# old Intel C++ for x86_64 which still supported -KPIC.
13005
lt_prog_compiler_wl_CXX='-Wl,'
13006
lt_prog_compiler_pic_CXX='-KPIC'
13007
lt_prog_compiler_static_CXX='-static'
13010
# Intel C++, used to be incompatible with GCC.
13011
# ICC 10 doesn't accept -KPIC any more.
13012
lt_prog_compiler_wl_CXX='-Wl,'
13013
lt_prog_compiler_pic_CXX='-fPIC'
13014
lt_prog_compiler_static_CXX='-static'
13017
# Portland Group C++ compiler
13018
lt_prog_compiler_wl_CXX='-Wl,'
13019
lt_prog_compiler_pic_CXX='-fpic'
13020
lt_prog_compiler_static_CXX='-Bstatic'
13024
# Make sure the PIC flag is empty. It appears that all Alpha
13025
# Linux and Compaq Tru64 Unix objects are PIC.
13026
lt_prog_compiler_pic_CXX=
13027
lt_prog_compiler_static_CXX='-non_shared'
13030
# IBM XL 8.0 on PPC
13031
lt_prog_compiler_wl_CXX='-Wl,'
13032
lt_prog_compiler_pic_CXX='-qpic'
13033
lt_prog_compiler_static_CXX='-qstaticlink'
13036
case `$CC -V 2>&1 | sed 5q` in
13039
lt_prog_compiler_pic_CXX='-KPIC'
13040
lt_prog_compiler_static_CXX='-Bstatic'
13041
lt_prog_compiler_wl_CXX='-Qoption ld '
13052
case $cc_basename in
13054
lt_prog_compiler_pic_CXX='-W c,exportall'
13060
netbsd* | netbsdelf*-gnu)
13063
# QNX uses GNU C++, but need to define -shared option too, otherwise
13064
# it will coredump.
13065
lt_prog_compiler_pic_CXX='-fPIC -shared'
13067
osf3* | osf4* | osf5*)
13068
case $cc_basename in
13070
lt_prog_compiler_wl_CXX='--backend -Wl,'
13073
# Rational C++ 2.4.1
13074
lt_prog_compiler_pic_CXX='-pic'
13077
# Digital/Compaq C++
13078
lt_prog_compiler_wl_CXX='-Wl,'
13079
# Make sure the PIC flag is empty. It appears that all Alpha
13080
# Linux and Compaq Tru64 Unix objects are PIC.
13081
lt_prog_compiler_pic_CXX=
13082
lt_prog_compiler_static_CXX='-non_shared'
13091
case $cc_basename in
13093
# Sun C++ 4.2, 5.x and Centerline C++
13094
lt_prog_compiler_pic_CXX='-KPIC'
13095
lt_prog_compiler_static_CXX='-Bstatic'
13096
lt_prog_compiler_wl_CXX='-Qoption ld '
13099
# Green Hills C++ Compiler
13100
lt_prog_compiler_pic_CXX='-PIC'
13107
case $cc_basename in
13110
lt_prog_compiler_pic_CXX='-pic'
13111
lt_prog_compiler_static_CXX='-Bstatic'
13115
lt_prog_compiler_pic_CXX='-pic'
13121
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13122
case $cc_basename in
13124
lt_prog_compiler_wl_CXX='-Wl,'
13125
lt_prog_compiler_pic_CXX='-KPIC'
13126
lt_prog_compiler_static_CXX='-Bstatic'
13131
case $cc_basename in
13133
# NonStop-UX NCC 3.20
13134
lt_prog_compiler_pic_CXX='-KPIC'
13143
lt_prog_compiler_can_build_shared_CXX=no
13149
# For platforms which do not support PIC, -DPIC is meaningless:
13151
lt_prog_compiler_pic_CXX=
13154
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13158
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13163
# Check to make sure the PIC flag actually works.
13165
if test -n "$lt_prog_compiler_pic_CXX"; then
13166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13167
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13168
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13169
$as_echo_n "(cached) " >&6
13171
lt_cv_prog_compiler_pic_works_CXX=no
13172
ac_outfile=conftest.$ac_objext
13173
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13174
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13175
# Insert the option either (1) after the last *FLAGS variable, or
13176
# (2) before a word containing "conftest.", or (3) at the end.
13177
# Note that $ac_compile itself does not contain backslashes and begins
13178
# with a dollar sign (not a hyphen), so the echo should work correctly.
13179
# The option is referenced via a variable to avoid confusing sed.
13180
lt_compile=`echo "$ac_compile" | $SED \
13181
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13182
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183
-e 's:$: $lt_compiler_flag:'`
13184
(eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
13185
(eval "$lt_compile" 2>conftest.err)
13187
cat conftest.err >&5
13188
echo "$as_me:13188: \$? = $ac_status" >&5
13189
if (exit $ac_status) && test -s "$ac_outfile"; then
13190
# The compiler can only warn and ignore the option if not recognized
13191
# So say no if there are warnings other than the usual output.
13192
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13193
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13194
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13195
lt_cv_prog_compiler_pic_works_CXX=yes
13201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13202
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13204
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13205
case $lt_prog_compiler_pic_CXX in
13207
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13210
lt_prog_compiler_pic_CXX=
13211
lt_prog_compiler_can_build_shared_CXX=no
13219
# Check to make sure the static flag actually works.
13221
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13223
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13224
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13225
$as_echo_n "(cached) " >&6
13227
lt_cv_prog_compiler_static_works_CXX=no
13228
save_LDFLAGS="$LDFLAGS"
13229
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13230
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13231
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13232
# The linker can only warn and ignore the option if not recognized
13233
# So say no if there are warnings
13234
if test -s conftest.err; then
13235
# Append any errors to the config.log.
13236
cat conftest.err 1>&5
13237
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13238
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13239
if diff conftest.exp conftest.er2 >/dev/null; then
13240
lt_cv_prog_compiler_static_works_CXX=yes
13243
lt_cv_prog_compiler_static_works_CXX=yes
13247
LDFLAGS="$save_LDFLAGS"
13250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13251
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13253
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13256
lt_prog_compiler_static_CXX=
13262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13263
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13264
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13265
$as_echo_n "(cached) " >&6
13267
lt_cv_prog_compiler_c_o_CXX=no
13268
$RM -r conftest 2>/dev/null
13272
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13274
lt_compiler_flag="-o out/conftest2.$ac_objext"
13275
# Insert the option either (1) after the last *FLAGS variable, or
13276
# (2) before a word containing "conftest.", or (3) at the end.
13277
# Note that $ac_compile itself does not contain backslashes and begins
13278
# with a dollar sign (not a hyphen), so the echo should work correctly.
13279
lt_compile=`echo "$ac_compile" | $SED \
13280
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13281
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13282
-e 's:$: $lt_compiler_flag:'`
13283
(eval echo "\"\$as_me:13283: $lt_compile\"" >&5)
13284
(eval "$lt_compile" 2>out/conftest.err)
13286
cat out/conftest.err >&5
13287
echo "$as_me:13287: \$? = $ac_status" >&5
13288
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13290
# The compiler can only warn and ignore the option if not recognized
13291
# So say no if there are warnings
13292
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13293
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13294
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13295
lt_cv_prog_compiler_c_o_CXX=yes
13300
# SGI C++ compiler will create directory out/ii_files/ for
13301
# template instantiation
13302
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13303
$RM out/* && rmdir out
13309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13310
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13315
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13316
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13317
$as_echo_n "(cached) " >&6
13319
lt_cv_prog_compiler_c_o_CXX=no
13320
$RM -r conftest 2>/dev/null
13324
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13326
lt_compiler_flag="-o out/conftest2.$ac_objext"
13327
# Insert the option either (1) after the last *FLAGS variable, or
13328
# (2) before a word containing "conftest.", or (3) at the end.
13329
# Note that $ac_compile itself does not contain backslashes and begins
13330
# with a dollar sign (not a hyphen), so the echo should work correctly.
13331
lt_compile=`echo "$ac_compile" | $SED \
13332
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13333
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13334
-e 's:$: $lt_compiler_flag:'`
13335
(eval echo "\"\$as_me:13335: $lt_compile\"" >&5)
13336
(eval "$lt_compile" 2>out/conftest.err)
13338
cat out/conftest.err >&5
13339
echo "$as_me:13339: \$? = $ac_status" >&5
13340
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13342
# The compiler can only warn and ignore the option if not recognized
13343
# So say no if there are warnings
13344
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13345
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13346
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13347
lt_cv_prog_compiler_c_o_CXX=yes
13352
# SGI C++ compiler will create directory out/ii_files/ for
13353
# template instantiation
13354
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13355
$RM out/* && rmdir out
13361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13362
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13367
hard_links="nottested"
13368
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13369
# do not overwrite the value of need_locks provided by the user
13370
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13371
$as_echo_n "checking if we can lock with hard links... " >&6; }
13374
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13376
ln conftest.a conftest.b 2>&5 || hard_links=no
13377
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13379
$as_echo "$hard_links" >&6; }
13380
if test "$hard_links" = no; then
13381
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13382
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13392
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13394
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13397
# If we're using GNU nm, then we don't want the "-C" option.
13398
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13399
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13400
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'
13402
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'
13406
export_symbols_cmds_CXX="$ltdll_cmds"
13408
cygwin* | mingw* | cegcc*)
13409
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'
13411
linux* | k*bsd*-gnu)
13412
link_all_deplibs_CXX=no
13415
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13418
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13421
$as_echo "$ld_shlibs_CXX" >&6; }
13422
test "$ld_shlibs_CXX" = no && can_build_shared=no
13424
with_gnu_ld_CXX=$with_gnu_ld
13432
# Do we need to explicitly link libc?
13434
case "x$archive_cmds_need_lc_CXX" in
13436
# Assume -lc should be added
13437
archive_cmds_need_lc_CXX=yes
13439
if test "$enable_shared" = yes && test "$GCC" = yes; then
13440
case $archive_cmds_CXX in
13442
# FIXME: we may have to deal with multi-command sequences.
13445
# Test whether the compiler implicitly links with -lc since on some
13446
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13447
# to ld, don't add -lc before -lgcc.
13448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13449
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13451
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13453
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13454
(eval $ac_compile) 2>&5
13456
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457
test $ac_status = 0; } 2>conftest.err; then
13460
libobjs=conftest.$ac_objext
13462
wl=$lt_prog_compiler_wl_CXX
13463
pic_flag=$lt_prog_compiler_pic_CXX
13469
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13470
allow_undefined_flag_CXX=
13471
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13472
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13474
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475
test $ac_status = 0; }
13477
archive_cmds_need_lc_CXX=no
13479
archive_cmds_need_lc_CXX=yes
13481
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13483
cat conftest.err 1>&5
13486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13487
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13558
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13560
library_names_spec=
13561
libname_spec='lib$name'
13565
postuninstall_cmds=
13569
shlibpath_overrides_runpath=unknown
13571
dynamic_linker="$host_os ld.so"
13572
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13573
need_lib_prefix=unknown
13574
hardcode_into_libs=no
13576
# when you set need_version to no, make sure it does not cause -set_version
13577
# flags to be left without arguments
13578
need_version=unknown
13583
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13584
shlibpath_var=LIBPATH
13586
# AIX 3 has no versioning support, so we append a major version to the name.
13587
soname_spec='${libname}${release}${shared_ext}$major'
13594
hardcode_into_libs=yes
13595
if test "$host_cpu" = ia64; then
13596
# AIX 5 supports IA64
13597
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13598
shlibpath_var=LD_LIBRARY_PATH
13600
# With GCC up to 2.95.x, collect2 would create an import file
13601
# for dependence libraries. The import file would start with
13602
# the line `#! .'. This would cause the generated library to
13603
# depend on `.', always an invalid library. This was fixed in
13604
# development snapshots of GCC prior to 3.0.
13606
aix4 | aix4.[01] | aix4.[01].*)
13607
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13609
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13612
can_build_shared=no
13616
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13617
# soname into executable. Probably we can add versioning support to
13618
# collect2, so additional links can be useful in future.
13619
if test "$aix_use_runtimelinking" = yes; then
13620
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13621
# instead of lib<name>.a to let people know that these are not
13622
# typical AIX shared libraries.
13623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625
# We preserve .a as extension for shared libraries through AIX4.2
13626
# and later when we are not doing run time linking.
13627
library_names_spec='${libname}${release}.a $libname.a'
13628
soname_spec='${libname}${release}${shared_ext}$major'
13630
shlibpath_var=LIBPATH
13637
# Since July 2007 AmigaOS4 officially supports .so libraries.
13638
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13642
library_names_spec='$libname.ixlibrary $libname.a'
13643
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13644
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'
13650
library_names_spec='${libname}${shared_ext}'
13651
dynamic_linker="$host_os ld.so"
13652
shlibpath_var=LIBRARY_PATH
13658
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13659
soname_spec='${libname}${release}${shared_ext}$major'
13660
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13661
shlibpath_var=LD_LIBRARY_PATH
13662
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13663
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13664
# the default ld.so.conf also contains /usr/contrib/lib and
13665
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13666
# libtool to hard-code these into programs
13669
cygwin* | mingw* | pw32* | cegcc*)
13670
version_type=windows
13675
case $GCC,$host_os in
13676
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13677
library_names_spec='$libname.dll.a'
13678
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13679
postinstall_cmds='base_file=`basename \${file}`~
13680
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13681
dldir=$destdir/`dirname \$dlpath`~
13682
test -d \$dldir || mkdir -p \$dldir~
13683
$install_prog $dir/$dlname \$dldir/$dlname~
13684
chmod a+x \$dldir/$dlname~
13685
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13686
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13688
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13689
dlpath=$dir/\$dldll~
13691
shlibpath_overrides_runpath=yes
13695
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13696
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13697
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13700
# MinGW DLLs use traditional 'lib' prefix
13701
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13702
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13703
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13704
# It is most probably a Windows format PATH printed by
13705
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13706
# path with ; separators, and with drive letters. We can handle the
13707
# drive letters (cygwin fileutils understands them), so leave them,
13708
# especially as we might pass files found there to a mingw objdump,
13709
# which wouldn't understand a cygwinified path. Ahh.
13710
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13712
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13716
# pw32 DLLs use 'pw' prefix rather than 'lib'
13717
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13723
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13726
dynamic_linker='Win32 ld.exe'
13727
# FIXME: first we should search . and the directory the executable is in
13731
darwin* | rhapsody*)
13732
dynamic_linker="$host_os dyld"
13733
version_type=darwin
13736
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13737
soname_spec='${libname}${release}${major}$shared_ext'
13738
shlibpath_overrides_runpath=yes
13739
shlibpath_var=DYLD_LIBRARY_PATH
13740
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13742
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13749
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13750
soname_spec='${libname}${release}${shared_ext}$major'
13751
shlibpath_var=LD_LIBRARY_PATH
13758
freebsd* | dragonfly*)
13759
# DragonFly does not have aout. When/if they implement a new
13760
# versioning mechanism, adjust this.
13761
if test -x /usr/bin/objformat; then
13762
objformat=`/usr/bin/objformat`
13765
freebsd[123]*) objformat=aout ;;
13766
*) objformat=elf ;;
13769
version_type=freebsd-$objformat
13770
case $version_type in
13772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13777
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13781
shlibpath_var=LD_LIBRARY_PATH
13784
shlibpath_overrides_runpath=yes
13786
freebsd3.[01]* | freebsdelf3.[01]*)
13787
shlibpath_overrides_runpath=yes
13788
hardcode_into_libs=yes
13790
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13791
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13792
shlibpath_overrides_runpath=no
13793
hardcode_into_libs=yes
13795
*) # from 4.6 on, and DragonFly
13796
shlibpath_overrides_runpath=yes
13797
hardcode_into_libs=yes
13806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13807
soname_spec='${libname}${release}${shared_ext}$major'
13808
shlibpath_var=LD_LIBRARY_PATH
13809
hardcode_into_libs=yes
13812
hpux9* | hpux10* | hpux11*)
13813
# Give a soname corresponding to the major version so that dld.sl refuses to
13814
# link against other versions.
13821
hardcode_into_libs=yes
13822
dynamic_linker="$host_os dld.so"
13823
shlibpath_var=LD_LIBRARY_PATH
13824
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826
soname_spec='${libname}${release}${shared_ext}$major'
13827
if test "X$HPUX_IA64_MODE" = X32; then
13828
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13830
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13832
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13836
hardcode_into_libs=yes
13837
dynamic_linker="$host_os dld.sl"
13838
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13839
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841
soname_spec='${libname}${release}${shared_ext}$major'
13842
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13843
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13847
dynamic_linker="$host_os dld.sl"
13848
shlibpath_var=SHLIB_PATH
13849
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13851
soname_spec='${libname}${release}${shared_ext}$major'
13854
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13855
postinstall_cmds='chmod 555 $lib'
13862
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13863
soname_spec='${libname}${release}${shared_ext}$major'
13864
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13865
shlibpath_var=LD_LIBRARY_PATH
13866
shlibpath_overrides_runpath=no
13867
hardcode_into_libs=yes
13870
irix5* | irix6* | nonstopux*)
13872
nonstopux*) version_type=nonstopux ;;
13874
if test "$lt_cv_prog_gnu_ld" = yes; then
13882
soname_spec='${libname}${release}${shared_ext}$major'
13883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13885
irix5* | nonstopux*)
13886
libsuff= shlibsuff=
13889
case $LD in # libtool.m4 will add one of these switches to LD
13890
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13891
libsuff= shlibsuff= libmagic=32-bit;;
13892
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13893
libsuff=32 shlibsuff=N32 libmagic=N32;;
13894
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13895
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13896
*) libsuff= shlibsuff= libmagic=never-match;;
13900
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13901
shlibpath_overrides_runpath=no
13902
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13903
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13904
hardcode_into_libs=yes
13907
# No shared lib support for Linux oldld, aout, or coff.
13908
linux*oldld* | linux*aout* | linux*coff*)
13912
# This must be Linux ELF.
13913
linux* | k*bsd*-gnu)
13917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13918
soname_spec='${libname}${release}${shared_ext}$major'
13919
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13920
shlibpath_var=LD_LIBRARY_PATH
13921
shlibpath_overrides_runpath=no
13922
# Some binutils ld are patched to set DT_RUNPATH
13923
save_LDFLAGS=$LDFLAGS
13924
save_libdir=$libdir
13925
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13926
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13927
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928
/* end confdefs.h. */
13938
if ac_fn_cxx_try_link "$LINENO"; then :
13939
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13940
shlibpath_overrides_runpath=yes
13943
rm -f core conftest.err conftest.$ac_objext \
13944
conftest$ac_exeext conftest.$ac_ext
13945
LDFLAGS=$save_LDFLAGS
13946
libdir=$save_libdir
13948
# This implies no fast_install, which is unacceptable.
13949
# Some rework will be needed to allow for fast_install
13950
# before this can be enabled.
13951
hardcode_into_libs=yes
13953
# Append ld.so.conf contents to the search path
13954
if test -f /etc/ld.so.conf; then
13955
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' ' '`
13956
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13959
# We used to test for /lib/ld.so.1 and disable shared libraries on
13960
# powerpc, because MkLinux only supported shared libraries with the
13961
# GNU dynamic linker. Since this was broken with cross compilers,
13962
# most powerpc-linux boxes support dynamic linking these days and
13963
# people can always --disable-shared, the test was removed, and we
13964
# assume the GNU/Linux dynamic linker is in use.
13965
dynamic_linker='GNU/Linux ld.so'
13972
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13973
soname_spec='${libname}${release}${shared_ext}$major'
13974
shlibpath_var=LD_LIBRARY_PATH
13975
shlibpath_overrides_runpath=no
13976
hardcode_into_libs=yes
13977
dynamic_linker='NetBSD ld.elf_so'
13984
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13986
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13987
dynamic_linker='NetBSD (a.out) ld.so'
13989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13990
soname_spec='${libname}${release}${shared_ext}$major'
13991
dynamic_linker='NetBSD ld.elf_so'
13993
shlibpath_var=LD_LIBRARY_PATH
13994
shlibpath_overrides_runpath=yes
13995
hardcode_into_libs=yes
14000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001
shlibpath_var=LD_LIBRARY_PATH
14002
shlibpath_overrides_runpath=yes
14009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14010
soname_spec='${libname}${release}${shared_ext}$major'
14011
shlibpath_var=LD_LIBRARY_PATH
14012
shlibpath_overrides_runpath=no
14013
hardcode_into_libs=yes
14014
dynamic_linker='ldqnx.so'
14019
sys_lib_dlsearch_path_spec="/usr/lib"
14021
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14023
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14024
*) need_version=no ;;
14026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14027
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14028
shlibpath_var=LD_LIBRARY_PATH
14029
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14031
openbsd2.[89] | openbsd2.[89].*)
14032
shlibpath_overrides_runpath=no
14035
shlibpath_overrides_runpath=yes
14039
shlibpath_overrides_runpath=yes
14044
libname_spec='$name'
14047
library_names_spec='$libname${shared_ext} $libname.a'
14048
dynamic_linker='OS/2 ld.exe'
14049
shlibpath_var=LIBPATH
14052
osf3* | osf4* | osf5*)
14056
soname_spec='${libname}${release}${shared_ext}$major'
14057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058
shlibpath_var=LD_LIBRARY_PATH
14059
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14060
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14072
soname_spec='${libname}${release}${shared_ext}$major'
14073
shlibpath_var=LD_LIBRARY_PATH
14074
shlibpath_overrides_runpath=yes
14075
hardcode_into_libs=yes
14076
# ldd complains unless libraries are executable
14077
postinstall_cmds='chmod +x $lib'
14082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14083
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14084
shlibpath_var=LD_LIBRARY_PATH
14085
shlibpath_overrides_runpath=yes
14086
if test "$with_gnu_ld" = yes; then
14094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095
soname_spec='${libname}${release}${shared_ext}$major'
14096
shlibpath_var=LD_LIBRARY_PATH
14097
case $host_vendor in
14099
shlibpath_overrides_runpath=no
14101
runpath_var=LD_RUN_PATH
14109
shlibpath_overrides_runpath=no
14110
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14116
if test -d /usr/nec ;then
14118
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14119
soname_spec='$libname${shared_ext}.$major'
14120
shlibpath_var=LD_LIBRARY_PATH
14124
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14125
version_type=freebsd-elf
14128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14129
soname_spec='${libname}${release}${shared_ext}$major'
14130
shlibpath_var=LD_LIBRARY_PATH
14131
shlibpath_overrides_runpath=yes
14132
hardcode_into_libs=yes
14133
if test "$with_gnu_ld" = yes; then
14134
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14136
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14139
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14143
sys_lib_dlsearch_path_spec='/usr/lib'
14147
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14152
shlibpath_var=LD_LIBRARY_PATH
14153
shlibpath_overrides_runpath=no
14154
hardcode_into_libs=yes
14159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14160
soname_spec='${libname}${release}${shared_ext}$major'
14161
shlibpath_var=LD_LIBRARY_PATH
14168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14169
$as_echo "$dynamic_linker" >&6; }
14170
test "$dynamic_linker" = no && can_build_shared=no
14172
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14173
if test "$GCC" = yes; then
14174
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14177
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14178
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14180
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14181
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14220
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14221
hardcode_action_CXX=
14222
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14223
test -n "$runpath_var_CXX" ||
14224
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14226
# We can hardcode non-existent directories.
14227
if test "$hardcode_direct_CXX" != no &&
14228
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14229
# have to relink, otherwise we might link with an installed library
14230
# when we should be linking with a yet-to-be-installed one
14231
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14232
test "$hardcode_minus_L_CXX" != no; then
14233
# Linking always hardcodes the temporary library directory.
14234
hardcode_action_CXX=relink
14236
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14237
hardcode_action_CXX=immediate
14240
# We cannot hardcode anything, or else we can only hardcode existing
14242
hardcode_action_CXX=unsupported
14244
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14245
$as_echo "$hardcode_action_CXX" >&6; }
14247
if test "$hardcode_action_CXX" = relink ||
14248
test "$inherit_rpath_CXX" = yes; then
14249
# Fast installation is not supported
14250
enable_fast_install=no
14251
elif test "$shlibpath_overrides_runpath" = yes ||
14252
test "$enable_shared" = no; then
14253
# Fast installation is not necessary
14254
enable_fast_install=needless
14263
fi # test -n "$compiler"
14269
with_gnu_ld=$lt_save_with_gnu_ld
14270
lt_cv_path_LDCXX=$lt_cv_path_LD
14271
lt_cv_path_LD=$lt_save_path_LD
14272
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14273
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14274
fi # test "$_lt_caught_CXX_error" != yes
14277
ac_cpp='$CPP $CPPFLAGS'
14278
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14279
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14280
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285
# checks for libraries.
14287
# checks for header files.
14288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14289
$as_echo_n "checking for ANSI C header files... " >&6; }
14290
if test "${ac_cv_header_stdc+set}" = set; then :
14291
$as_echo_n "(cached) " >&6
14293
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294
/* end confdefs.h. */
14295
#include <stdlib.h>
14296
#include <stdarg.h>
14297
#include <string.h>
14308
if ac_fn_c_try_compile "$LINENO"; then :
14309
ac_cv_header_stdc=yes
14311
ac_cv_header_stdc=no
14313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315
if test $ac_cv_header_stdc = yes; then
14316
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14317
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318
/* end confdefs.h. */
14319
#include <string.h>
14322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14323
$EGREP "memchr" >/dev/null 2>&1; then :
14326
ac_cv_header_stdc=no
14332
if test $ac_cv_header_stdc = yes; then
14333
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14334
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335
/* end confdefs.h. */
14336
#include <stdlib.h>
14339
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14340
$EGREP "free" >/dev/null 2>&1; then :
14343
ac_cv_header_stdc=no
14349
if test $ac_cv_header_stdc = yes; then
14350
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14351
if test "$cross_compiling" = yes; then :
14354
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355
/* end confdefs.h. */
14357
#include <stdlib.h>
14358
#if ((' ' & 0x0FF) == 0x020)
14359
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14360
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14362
# define ISLOWER(c) \
14363
(('a' <= (c) && (c) <= 'i') \
14364
|| ('j' <= (c) && (c) <= 'r') \
14365
|| ('s' <= (c) && (c) <= 'z'))
14366
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14369
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14374
for (i = 0; i < 256; i++)
14375
if (XOR (islower (i), ISLOWER (i))
14376
|| toupper (i) != TOUPPER (i))
14381
if ac_fn_c_try_run "$LINENO"; then :
14384
ac_cv_header_stdc=no
14386
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14387
conftest.$ac_objext conftest.beam conftest.$ac_ext
14392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14393
$as_echo "$ac_cv_header_stdc" >&6; }
14394
if test $ac_cv_header_stdc = yes; then
14396
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14400
for ac_header in string.h
14402
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14403
if test "x$ac_cv_header_string_h" = x""yes; then :
14404
cat >>confdefs.h <<_ACEOF
14405
#define HAVE_STRING_H 1
14413
# checks for typedefs, structures, and compiler characteristics.
14415
# checks for library functions.
14417
ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile"
14419
cat >confcache <<\_ACEOF
14420
# This file is a shell script that caches the results of configure
14421
# tests run on this system so they can be shared between configure
14422
# scripts and configure runs, see configure's option --config-cache.
14423
# It is not useful on other systems. If it contains results you don't
14424
# want to keep, you may remove or edit it.
14426
# config.status only pays attention to the cache file if you give it
14427
# the --recheck option to rerun configure.
14429
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14430
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14431
# following values.
14435
# The following way of writing the cache mishandles newlines in values,
14436
# but we know of no workaround that is simple, portable, and efficient.
14437
# So, we kill variables containing newlines.
14438
# Ultrix sh set writes to stderr and can't be redirected directly,
14439
# and sets the high bit in the cache file unless we assign to the vars.
14441
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14442
eval ac_val=\$$ac_var
14446
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14447
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14450
_ | IFS | as_nl) ;; #(
14451
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14452
*) { eval $ac_var=; unset $ac_var;} ;;
14458
case $as_nl`(ac_space=' '; set) 2>&1` in #(
14459
*${as_nl}ac_space=\ *)
14460
# `set' does not quote correctly, so add quotes: double-quote
14461
# substitution turns \\\\ into \\, and sed turns \\ into \.
14464
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14467
# `set' quotes correctly as required by POSIX, so do not add quotes.
14468
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14477
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14479
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14481
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14482
if test -w "$cache_file"; then
14483
test "x$cache_file" != "x/dev/null" &&
14484
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14485
$as_echo "$as_me: updating cache $cache_file" >&6;}
14486
cat confcache >$cache_file
14488
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14489
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14494
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14495
# Let make expand exec_prefix.
14496
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14498
DEFS=-DHAVE_CONFIG_H
14502
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14503
# 1. Remove the extension, and $U if already installed.
14504
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14505
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14506
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14507
# will be set to the directory where LIBOBJS objects are built.
14508
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14509
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14511
LIBOBJS=$ac_libobjs
14513
LTLIBOBJS=$ac_ltlibobjs
14516
if test -n "$EXEEXT"; then
14518
am__EXEEXT_FALSE='#'
14520
am__EXEEXT_TRUE='#'
14524
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14525
as_fn_error "conditional \"AMDEP\" was never defined.
14526
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14528
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14529
as_fn_error "conditional \"am__fastdepCC\" was never defined.
14530
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14532
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14533
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14534
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14536
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14537
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14538
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14541
: ${CONFIG_STATUS=./config.status}
14543
ac_clean_files_save=$ac_clean_files
14544
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14545
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14546
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14548
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14550
# Generated by $as_me.
14551
# Run this file to recreate the current configuration.
14552
# Compiler output produced by configure, useful for debugging
14553
# configure, is in config.log if it exists.
14556
ac_cs_recheck=false
14559
SHELL=\${CONFIG_SHELL-$SHELL}
14562
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14563
## -------------------- ##
14564
## M4sh Initialization. ##
14565
## -------------------- ##
14567
# Be more Bourne compatible
14568
DUALCASE=1; export DUALCASE # for MKS sh
14569
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14572
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14573
# is contrary to our usage. Disable this feature.
14574
alias -g '${1+"$@"}'='"$@"'
14575
setopt NO_GLOB_SUBST
14577
case `(set -o) 2>/dev/null` in #(
14589
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14590
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14591
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14592
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14593
# Prefer a ksh shell builtin over an external printf program on Solaris,
14594
# but without wasting forks for bash or zsh.
14595
if test -z "$BASH_VERSION$ZSH_VERSION" \
14596
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14597
as_echo='print -r --'
14598
as_echo_n='print -rn --'
14599
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14600
as_echo='printf %s\n'
14601
as_echo_n='printf %s'
14603
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14604
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14605
as_echo_n='/usr/ucb/echo -n'
14607
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14608
as_echo_n_body='eval
14612
expr "X$arg" : "X\\(.*\\)$as_nl";
14613
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14615
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14617
export as_echo_n_body
14618
as_echo_n='sh -c $as_echo_n_body as_echo'
14620
export as_echo_body
14621
as_echo='sh -c $as_echo_body as_echo'
14624
# The user is always right.
14625
if test "${PATH_SEPARATOR+set}" != set; then
14627
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14628
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14635
# We need space, tab and new line, in precisely that order. Quoting is
14636
# there to prevent editors from complaining about space-tab.
14637
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14638
# splitting by setting IFS to empty value.)
14641
# Find who we are. Look in the path if we contain no directory separator.
14643
*[\\/]* ) as_myself=$0 ;;
14644
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645
for as_dir in $PATH
14648
test -z "$as_dir" && as_dir=.
14649
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14655
# We did not find ourselves, most probably we were run as `sh COMMAND'
14656
# in which case we are not to be found in the path.
14657
if test "x$as_myself" = x; then
14660
if test ! -f "$as_myself"; then
14661
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14665
# Unset variables that we do not need and which cause bugs (e.g. in
14666
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14667
# suppresses any "Segmentation fault" message there. '((' could
14668
# trigger a bug in pdksh 5.2.14.
14669
for as_var in BASH_ENV ENV MAIL MAILPATH
14670
do eval test x\${$as_var+set} = xset \
14671
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14684
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14687
# as_fn_error ERROR [LINENO LOG_FD]
14688
# ---------------------------------
14689
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14690
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14691
# script with status $?, using 1 if that was 0.
14694
as_status=$?; test $as_status -eq 0 && as_status=1
14696
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14697
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14699
$as_echo "$as_me: error: $1" >&2
14700
as_fn_exit $as_status
14704
# as_fn_set_status STATUS
14705
# -----------------------
14706
# Set $? to STATUS, without forking.
14707
as_fn_set_status ()
14710
} # as_fn_set_status
14712
# as_fn_exit STATUS
14713
# -----------------
14714
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14718
as_fn_set_status $1
14724
# Portably unset VAR.
14727
{ eval $1=; unset $1;}
14729
as_unset=as_fn_unset
14730
# as_fn_append VAR VALUE
14731
# ----------------------
14732
# Append the text in VALUE to the end of the definition contained in VAR. Take
14733
# advantage of any shell optimizations that allow amortized linear growth over
14734
# repeated appends, instead of the typical quadratic growth present in naive
14736
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14737
eval 'as_fn_append ()
14748
# as_fn_arith ARG...
14749
# ------------------
14750
# Perform arithmetic evaluation on the ARGs, and store the result in the
14751
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14752
# must be portable across $(()) and expr.
14753
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14754
eval 'as_fn_arith ()
14761
as_val=`expr "$@" || test $? -eq 1`
14766
if expr a : '\(a\)' >/dev/null 2>&1 &&
14767
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14773
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14774
as_basename=basename
14779
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14785
as_me=`$as_basename -- "$0" ||
14786
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14787
X"$0" : 'X\(//\)$' \| \
14788
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14790
sed '/^.*\/\([^/][^/]*\)\/*$/{
14804
# Avoid depending upon Character Ranges.
14805
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14806
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14807
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14808
as_cr_digits='0123456789'
14809
as_cr_alnum=$as_cr_Letters$as_cr_digits
14811
ECHO_C= ECHO_N= ECHO_T=
14812
case `echo -n x` in #(((((
14814
case `echo 'xy\c'` in
14815
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
14817
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14824
rm -f conf$$ conf$$.exe conf$$.file
14825
if test -d conf$$.dir; then
14826
rm -f conf$$.dir/conf$$.file
14829
mkdir conf$$.dir 2>/dev/null
14831
if (echo >conf$$.file) 2>/dev/null; then
14832
if ln -s conf$$.file conf$$ 2>/dev/null; then
14834
# ... but there are two gotchas:
14835
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14836
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14837
# In both cases, we have to default to `cp -p'.
14838
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14840
elif ln conf$$.file conf$$ 2>/dev/null; then
14848
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14849
rmdir conf$$.dir 2>/dev/null
14854
# Create "$as_dir" as a directory, including parents if necessary.
14859
-*) as_dir=./$as_dir;;
14861
test -d "$as_dir" || eval $as_mkdir_p || {
14865
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14866
*) as_qdir=$as_dir;;
14868
as_dirs="'$as_qdir' $as_dirs"
14869
as_dir=`$as_dirname -- "$as_dir" ||
14870
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14871
X"$as_dir" : 'X\(//\)[^/]' \| \
14872
X"$as_dir" : 'X\(//\)$' \| \
14873
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14874
$as_echo X"$as_dir" |
14875
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14879
/^X\(\/\/\)[^/].*/{
14892
test -d "$as_dir" && break
14894
test -z "$as_dirs" || eval "mkdir $as_dirs"
14895
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14899
if mkdir -p . 2>/dev/null; then
14900
as_mkdir_p='mkdir -p "$as_dir"'
14902
test -d ./-p && rmdir ./-p
14906
if test -x / >/dev/null 2>&1; then
14907
as_test_x='test -x'
14909
if ls -dL / >/dev/null 2>&1; then
14916
if test -d "$1"; then
14922
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14923
???[sx]*):;;*)false;;esac;fi
14927
as_executable_p=$as_test_x
14929
# Sed expression to map a string onto a valid CPP name.
14930
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14932
# Sed expression to map a string onto a valid variable name.
14933
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14937
## ----------------------------------- ##
14938
## Main body of $CONFIG_STATUS script. ##
14939
## ----------------------------------- ##
14941
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14943
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14944
# Save the log message, to keep $0 and so on meaningful, and to
14945
# report actual input values of CONFIG_FILES etc. instead of their
14946
# values after options handling.
14948
This file was extended by sqlite3cc $as_me 0.1.0, which was
14949
generated by GNU Autoconf 2.64. Invocation command line was
14951
CONFIG_FILES = $CONFIG_FILES
14952
CONFIG_HEADERS = $CONFIG_HEADERS
14953
CONFIG_LINKS = $CONFIG_LINKS
14954
CONFIG_COMMANDS = $CONFIG_COMMANDS
14957
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14962
case $ac_config_files in *"
14963
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14966
case $ac_config_headers in *"
14967
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14971
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14972
# Files that config.status was made for.
14973
config_files="$ac_config_files"
14974
config_headers="$ac_config_headers"
14975
config_commands="$ac_config_commands"
14979
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14981
\`$as_me' instantiates files and other configuration actions
14982
from templates according to the current configuration. Unless the files
14983
and actions are specified as TAGs, all are instantiated by default.
14985
Usage: $0 [OPTION]... [TAG]...
14987
-h, --help print this help, then exit
14988
-V, --version print version number and configuration settings, then exit
14989
-q, --quiet, --silent
14990
do not print progress messages
14991
-d, --debug don't remove temporary files
14992
--recheck update $as_me by reconfiguring in the same conditions
14993
--file=FILE[:TEMPLATE]
14994
instantiate the configuration file FILE
14995
--header=FILE[:TEMPLATE]
14996
instantiate the configuration header FILE
14998
Configuration files:
15001
Configuration headers:
15004
Configuration commands:
15007
Report bugs to <edam@waxworlds.org>."
15010
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15012
sqlite3cc config.status 0.1.0
15013
configured by $0, generated by GNU Autoconf 2.64,
15014
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15016
Copyright (C) 2009 Free Software Foundation, Inc.
15017
This config.status script is free software; the Free Software Foundation
15018
gives unlimited permission to copy, distribute and modify it."
15025
test -n "\$AWK" || AWK=awk
15028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029
# The default lists apply if the user does not specify any file.
15035
ac_option=`expr "X$1" : 'X\([^=]*\)='`
15036
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15047
# Handling of the options.
15048
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15050
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15051
$as_echo "$ac_cs_version"; exit ;;
15052
--debug | --debu | --deb | --de | --d | -d )
15054
--file | --fil | --fi | --f )
15057
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15059
as_fn_append CONFIG_FILES " '$ac_optarg'"
15060
ac_need_defaults=false;;
15061
--header | --heade | --head | --hea )
15064
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15066
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15067
ac_need_defaults=false;;
15069
# Conflict between --help and --header
15070
as_fn_error "ambiguous option: \`$1'
15071
Try \`$0 --help' for more information.";;
15072
--help | --hel | -h )
15073
$as_echo "$ac_cs_usage"; exit ;;
15074
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
15075
| -silent | --silent | --silen | --sile | --sil | --si | --s)
15078
# This is an error.
15079
-*) as_fn_error "unrecognized option: \`$1'
15080
Try \`$0 --help' for more information." ;;
15082
*) as_fn_append ac_config_targets " $1"
15083
ac_need_defaults=false ;;
15089
ac_configure_extra_args=
15091
if $ac_cs_silent; then
15093
ac_configure_extra_args="$ac_configure_extra_args --silent"
15097
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15098
if \$ac_cs_recheck; then
15099
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15101
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15102
CONFIG_SHELL='$SHELL'
15103
export CONFIG_SHELL
15108
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15112
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15113
## Running $as_me. ##
15119
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15123
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15126
# The HP-UX ksh and POSIX shell print the target directory to stdout
15127
# if CDPATH is set.
15128
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15130
sed_quote_subst='$sed_quote_subst'
15131
double_quote_subst='$double_quote_subst'
15132
delay_variable_subst='$delay_variable_subst'
15133
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15134
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15135
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15136
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15137
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15138
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15139
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15140
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15141
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15142
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15143
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15144
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15145
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15146
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15147
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15148
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15149
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15150
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15151
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15152
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15153
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15154
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15155
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15156
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15157
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15158
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15159
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15160
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15161
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15162
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15163
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15164
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15165
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15166
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15167
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15168
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15169
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15170
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15171
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15172
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15173
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15174
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15175
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15176
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15177
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"`'
15178
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"`'
15179
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15180
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15181
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15182
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15183
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15184
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15185
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15186
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15187
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15188
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15189
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15190
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15191
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15192
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15193
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15194
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15195
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15196
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15197
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15198
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15199
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15200
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15201
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15202
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15203
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15204
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15205
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15206
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15207
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15208
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15209
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15210
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15211
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15212
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15213
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15214
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15215
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15216
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15217
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15218
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15219
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15220
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15221
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15222
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15223
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15224
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15225
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15226
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15227
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15228
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15229
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15230
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15231
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15232
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15233
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15234
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15235
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15236
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15237
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15238
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15239
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15240
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15241
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15242
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15243
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15244
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15245
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15246
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15247
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15248
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15249
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15250
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15251
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15252
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15253
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15254
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15255
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15256
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15257
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15258
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15259
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15260
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15261
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15262
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15263
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15264
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15265
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15266
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15267
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15268
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15269
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15270
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15271
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15272
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15273
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15274
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15275
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15276
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15277
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15278
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15279
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15280
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15281
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15282
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15283
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15284
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15285
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15286
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15287
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15288
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15289
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15290
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15291
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15292
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15293
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15294
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15295
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15296
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15297
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15298
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15299
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15300
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15301
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15302
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15303
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15306
LTCFLAGS='$LTCFLAGS'
15307
compiler='$compiler_DEFAULT'
15309
# Quote evaled strings.
15321
deplibs_check_method \
15330
lt_cv_sys_global_symbol_pipe \
15331
lt_cv_sys_global_symbol_to_cdecl \
15332
lt_cv_sys_global_symbol_to_c_name_address \
15333
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15336
lt_prog_compiler_no_builtin_flag \
15337
lt_prog_compiler_wl \
15338
lt_prog_compiler_pic \
15339
lt_prog_compiler_static \
15340
lt_cv_prog_compiler_c_o \
15348
export_dynamic_flag_spec \
15349
whole_archive_flag_spec \
15350
compiler_needs_object \
15352
allow_undefined_flag \
15353
no_undefined_flag \
15354
hardcode_libdir_flag_spec \
15355
hardcode_libdir_flag_spec_ld \
15356
hardcode_libdir_separator \
15361
variables_saved_for_relink \
15363
library_names_spec \
15368
compiler_lib_search_dirs \
15373
compiler_lib_search_path \
15376
lt_prog_compiler_no_builtin_flag_CXX \
15377
lt_prog_compiler_wl_CXX \
15378
lt_prog_compiler_pic_CXX \
15379
lt_prog_compiler_static_CXX \
15380
lt_cv_prog_compiler_c_o_CXX \
15381
export_dynamic_flag_spec_CXX \
15382
whole_archive_flag_spec_CXX \
15383
compiler_needs_object_CXX \
15385
allow_undefined_flag_CXX \
15386
no_undefined_flag_CXX \
15387
hardcode_libdir_flag_spec_CXX \
15388
hardcode_libdir_flag_spec_ld_CXX \
15389
hardcode_libdir_separator_CXX \
15390
fix_srcfile_path_CXX \
15391
exclude_expsyms_CXX \
15392
include_expsyms_CXX \
15393
file_list_spec_CXX \
15394
compiler_lib_search_dirs_CXX \
15395
predep_objects_CXX \
15396
postdep_objects_CXX \
15399
compiler_lib_search_path_CXX; do
15400
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15401
*[\\\\\\\`\\"\\\$]*)
15402
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15405
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15410
# Double-quote double-evaled strings.
15411
for var in reload_cmds \
15412
old_postinstall_cmds \
15413
old_postuninstall_cmds \
15415
extract_expsyms_cmds \
15416
old_archive_from_new_cmds \
15417
old_archive_from_expsyms_cmds \
15419
archive_expsym_cmds \
15421
module_expsym_cmds \
15422
export_symbols_cmds \
15425
postuninstall_cmds \
15427
sys_lib_search_path_spec \
15428
sys_lib_dlsearch_path_spec \
15429
old_archive_cmds_CXX \
15430
old_archive_from_new_cmds_CXX \
15431
old_archive_from_expsyms_cmds_CXX \
15433
archive_expsym_cmds_CXX \
15435
module_expsym_cmds_CXX \
15436
export_symbols_cmds_CXX \
15437
prelink_cmds_CXX; do
15438
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15439
*[\\\\\\\`\\"\\\$]*)
15440
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15443
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15448
# Fix-up fallback echo if it was mangled by the above quoting rules.
15450
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15454
ac_aux_dir='$ac_aux_dir'
15455
xsi_shell='$xsi_shell'
15456
lt_shell_append='$lt_shell_append'
15458
# See if we are running on zsh, and set the options which allow our
15459
# commands through without removal of \ escapes INIT.
15460
if test -n "\${ZSH_VERSION+set}" ; then
15461
setopt NO_GLOB_SUBST
15467
TIMESTAMP='$TIMESTAMP'
15478
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15480
# Handling of arguments.
15481
for ac_config_target in $ac_config_targets
15483
case $ac_config_target in
15484
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15485
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15486
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15487
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15488
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15489
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15491
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15496
# If the user did not use the arguments to specify the items to instantiate,
15497
# then the envvar interface is used. Set only those that are not.
15498
# We use the long form for the default assignment because of an extremely
15499
# bizarre bug on SunOS 4.1.3.
15500
if $ac_need_defaults; then
15501
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15502
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15503
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15506
# Have a temporary directory for convenience. Make it in the build tree
15507
# simply because there is no reason against having it here, and in addition,
15508
# creating and moving files from /tmp can sometimes cause problems.
15509
# Hook for its removal unless debugging.
15510
# Note that there is a small window in which the directory will not be cleaned:
15511
# after its creation but before its name has been assigned to `$tmp'.
15515
trap 'exit_status=$?
15516
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15518
trap 'as_fn_exit 1' 1 2 13 15
15520
# Create a (secure) tmp directory for tmp files.
15523
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15524
test -n "$tmp" && test -d "$tmp"
15527
tmp=./conf$$-$RANDOM
15528
(umask 077 && mkdir "$tmp")
15529
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15531
# Set up the scripts for CONFIG_FILES section.
15532
# No need to generate them if there are no CONFIG_FILES.
15533
# This happens for instance with `./config.status config.h'.
15534
if test -n "$CONFIG_FILES"; then
15537
ac_cr=`echo X | tr X '\015'`
15538
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15539
# But we know of no other shell where ac_cr would be empty at this
15540
# point, so we can use a bashism as a fallback.
15541
if test "x$ac_cr" = x; then
15542
eval ac_cr=\$\'\\r\'
15544
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15545
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15548
ac_cs_awk_cr=$ac_cr
15551
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15556
echo "cat >conf$$subs.awk <<_ACEOF" &&
15557
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15559
} >conf$$subs.sh ||
15560
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15561
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15563
for ac_last_try in false false false false false :; do
15564
. ./conf$$subs.sh ||
15565
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15567
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15568
if test $ac_delim_n = $ac_delim_num; then
15570
elif $ac_last_try; then
15571
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15573
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15576
rm -f conf$$subs.sh
15578
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15579
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15583
s/^/S["/; s/!.*/"]=/
15593
s/\(.\{148\}\).*/\1/
15595
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15600
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15607
s/\(.\{148\}\).*/\1/
15609
s/["\\]/\\&/g; s/^/"/; s/$/"/
15613
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15618
' <conf$$subs.awk | sed '
15623
' >>$CONFIG_STATUS || ac_write_fail=1
15624
rm -f conf$$subs.awk
15625
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15627
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15628
for (key in S) S_is_set[key] = 1
15634
nfields = split(line, field, "@")
15636
len = length(field[1])
15637
for (i = 2; i < nfields; i++) {
15639
keylen = length(key)
15640
if (S_is_set[key]) {
15642
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15643
len += length(value) + length(field[++i])
15654
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15655
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15656
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15659
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15660
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
15663
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15664
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15665
# trailing colons and then remove the whole line if VPATH becomes empty
15666
# (actually we leave an empty line to preserve line numbers).
15667
if test "x$srcdir" = x.; then
15668
ac_vpsub='/^[ ]*VPATH[ ]*=/{
15669
s/:*\$(srcdir):*/:/
15670
s/:*\${srcdir}:*/:/
15672
s/^\([^=]*=[ ]*\):*/\1/
15678
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15679
fi # test -n "$CONFIG_FILES"
15681
# Set up the scripts for CONFIG_HEADERS section.
15682
# No need to generate them if there are no CONFIG_HEADERS.
15683
# This happens for instance with `./config.status Makefile'.
15684
if test -n "$CONFIG_HEADERS"; then
15685
cat >"$tmp/defines.awk" <<\_ACAWK ||
15689
# Transform confdefs.h into an awk script `defines.awk', embedded as
15690
# here-document in config.status, that substitutes the proper values into
15691
# config.h.in to produce config.h.
15693
# Create a delimiter string that does not exist in confdefs.h, to ease
15694
# handling of long lines.
15696
for ac_last_try in false false :; do
15697
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15698
if test -z "$ac_t"; then
15700
elif $ac_last_try; then
15701
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15703
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15707
# For the awk script, D is an array of macro values keyed by name,
15708
# likewise P contains macro parameters if any. Preserve backslash
15709
# newline sequences.
15711
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15713
s/.\{148\}/&'"$ac_delim"'/g
15716
s/^[ ]*#[ ]*define[ ][ ]*/ /
15723
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15725
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15729
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15730
D["\1"]=" \3\\\\\\n"\\/p
15732
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15737
s/.\{148\}/&'"$ac_delim"'/g
15742
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15745
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15747
' <confdefs.h | sed '
15748
s/'"$ac_delim"'/"\\\
15749
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15751
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752
for (key in D) D_is_set[key] = 1
15755
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15757
split(line, arg, " ")
15758
if (arg[1] == "#") {
15762
defundef = substr(arg[1], 2)
15765
split(mac1, mac2, "(") #)
15767
prefix = substr(line, 1, index(line, defundef) - 1)
15768
if (D_is_set[macro]) {
15769
# Preserve the white space surrounding the "#".
15770
print prefix "define", macro P[macro] D[macro]
15773
# Replace #undef with comments. This is necessary, for example,
15774
# in the case of _POSIX_SOURCE, which is predefined and required
15775
# on some systems where configure will not decide to define it.
15776
if (defundef == "undef") {
15777
print "/*", prefix defundef, macro, "*/"
15785
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15786
as_fn_error "could not setup config headers machinery" "$LINENO" 5
15787
fi # test -n "$CONFIG_HEADERS"
15790
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15795
:[FHLC]) ac_mode=$ac_tag; continue;;
15797
case $ac_mode$ac_tag in
15799
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15800
:[FH]-) ac_tag=-:-;;
15801
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15818
-) ac_f="$tmp/stdin";;
15819
*) # Look for the file first in the build tree, then in the source tree
15820
# (if the path is not absolute). The absolute path cannot be DOS-style,
15821
# because $ac_f cannot contain `:'.
15825
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15827
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15829
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15830
as_fn_append ac_file_inputs " '$ac_f'"
15833
# Let's still pretend it is `configure' which instantiates (i.e., don't
15834
# use $as_me), people would be surprised to read:
15835
# /* config.h. Generated by config.status. */
15836
configure_input='Generated from '`
15837
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15839
if test x"$ac_file" != x-; then
15840
configure_input="$ac_file. $configure_input"
15841
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15842
$as_echo "$as_me: creating $ac_file" >&6;}
15844
# Neutralize special characters interpreted by sed in replacement strings.
15845
case $configure_input in #(
15846
*\&* | *\|* | *\\* )
15847
ac_sed_conf_input=`$as_echo "$configure_input" |
15848
sed 's/[\\\\&|]/\\\\&/g'`;; #(
15849
*) ac_sed_conf_input=$configure_input;;
15853
*:-:* | *:-) cat >"$tmp/stdin" \
15854
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15859
ac_dir=`$as_dirname -- "$ac_file" ||
15860
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15861
X"$ac_file" : 'X\(//\)[^/]' \| \
15862
X"$ac_file" : 'X\(//\)$' \| \
15863
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15864
$as_echo X"$ac_file" |
15865
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15869
/^X\(\/\/\)[^/].*/{
15882
as_dir="$ac_dir"; as_fn_mkdir_p
15886
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15888
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15889
# A ".." for each directory in $ac_dir_suffix.
15890
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15891
case $ac_top_builddir_sub in
15892
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15896
ac_abs_top_builddir=$ac_pwd
15897
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15898
# for backward compatibility:
15899
ac_top_builddir=$ac_top_build_prefix
15902
.) # We are building in place.
15904
ac_top_srcdir=$ac_top_builddir_sub
15905
ac_abs_top_srcdir=$ac_pwd ;;
15906
[\\/]* | ?:[\\/]* ) # Absolute name.
15907
ac_srcdir=$srcdir$ac_dir_suffix;
15908
ac_top_srcdir=$srcdir
15909
ac_abs_top_srcdir=$srcdir ;;
15910
*) # Relative name.
15911
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15912
ac_top_srcdir=$ac_top_build_prefix$srcdir
15913
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15915
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15925
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15926
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15928
ac_MKDIR_P=$MKDIR_P
15930
[\\/$]* | ?:[\\/]* ) ;;
15931
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15935
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15936
# If the template does not know about datarootdir, expand it.
15937
# FIXME: This hack should be removed a few years after 2.60.
15938
ac_datarootdir_hack=; ac_datarootdir_seen=
15949
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15950
*datarootdir*) ac_datarootdir_seen=yes;;
15951
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15953
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15955
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15956
ac_datarootdir_hack='
15957
s&@datadir@&$datadir&g
15958
s&@docdir@&$docdir&g
15959
s&@infodir@&$infodir&g
15960
s&@localedir@&$localedir&g
15961
s&@mandir@&$mandir&g
15962
s&\\\${datarootdir}&$datarootdir&g' ;;
15966
# Neutralize VPATH when `$srcdir' = `.'.
15967
# Shell code in configure.ac might set extrasub.
15968
# FIXME: do we really want to maintain this feature?
15969
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970
ac_sed_extra="$ac_vpsub
15973
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15975
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15976
s|@configure_input@|$ac_sed_conf_input|;t t
15977
s&@top_builddir@&$ac_top_builddir_sub&;t t
15978
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15979
s&@srcdir@&$ac_srcdir&;t t
15980
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15981
s&@top_srcdir@&$ac_top_srcdir&;t t
15982
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15983
s&@builddir@&$ac_builddir&;t t
15984
s&@abs_builddir@&$ac_abs_builddir&;t t
15985
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15986
s&@INSTALL@&$ac_INSTALL&;t t
15987
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15988
$ac_datarootdir_hack
15990
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15991
|| as_fn_error "could not create $ac_file" "$LINENO" 5
15993
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15994
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15995
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15996
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15997
which seems to be undefined. Please make sure it is defined." >&5
15998
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15999
which seems to be undefined. Please make sure it is defined." >&2;}
16003
-) cat "$tmp/out" && rm -f "$tmp/out";;
16004
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16006
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16012
if test x"$ac_file" != x-; then
16014
$as_echo "/* $configure_input */" \
16015
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16016
} >"$tmp/config.h" \
16017
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16018
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16019
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16020
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16023
mv "$tmp/config.h" "$ac_file" \
16024
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16027
$as_echo "/* $configure_input */" \
16028
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16029
|| as_fn_error "could not create -" "$LINENO" 5
16031
# Compute "$ac_file"'s index in $config_headers.
16034
for _am_header in $config_headers :; do
16035
case $_am_header in
16036
$_am_arg | $_am_arg:* )
16039
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
16042
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16043
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16044
X"$_am_arg" : 'X\(//\)[^/]' \| \
16045
X"$_am_arg" : 'X\(//\)$' \| \
16046
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16047
$as_echo X"$_am_arg" |
16048
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16052
/^X\(\/\/\)[^/].*/{
16064
s/.*/./; q'`/stamp-h$_am_stamp_count
16067
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16068
$as_echo "$as_me: executing $ac_file commands" >&6;}
16073
case $ac_file$ac_mode in
16074
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16075
# Autoconf 2.62 quotes --file arguments for eval, but not when files
16076
# are listed without --file. Let's play safe and only enable the eval
16077
# if we detect the quoting.
16078
case $CONFIG_FILES in
16079
*\'*) eval set x "$CONFIG_FILES" ;;
16080
*) set x $CONFIG_FILES ;;
16085
# Strip MF so we end up with the name of the file.
16086
mf=`echo "$mf" | sed -e 's/:.*$//'`
16087
# Check whether this is an Automake generated Makefile or not.
16088
# We used to match only the files named `Makefile.in', but
16089
# some people rename them; so instead we look at the file content.
16090
# Grep'ing the first line is not enough: some people post-process
16091
# each Makefile.in and add a new line on top of each file to say so.
16092
# Grep'ing the whole file is not good either: AIX grep has a line
16093
# limit of 2048, but all sed's we know have understand at least 4000.
16094
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16095
dirpart=`$as_dirname -- "$mf" ||
16096
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16097
X"$mf" : 'X\(//\)[^/]' \| \
16098
X"$mf" : 'X\(//\)$' \| \
16099
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16101
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16105
/^X\(\/\/\)[^/].*/{
16121
# Extract the definition of DEPDIR, am__include, and am__quote
16122
# from the Makefile without running `make'.
16123
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16124
test -z "$DEPDIR" && continue
16125
am__include=`sed -n 's/^am__include = //p' < "$mf"`
16126
test -z "am__include" && continue
16127
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16128
# When using ansi2knr, U may be empty or an underscore; expand it
16129
U=`sed -n 's/^U = //p' < "$mf"`
16130
# Find all dependency output files, they are included files with
16131
# $(DEPDIR) in their names. We invoke sed twice because it is the
16132
# simplest approach to changing $(DEPDIR) to its actual value in the
16134
for file in `sed -n "
16135
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16136
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16137
# Make sure the directory exists.
16138
test -f "$dirpart/$file" && continue
16139
fdir=`$as_dirname -- "$file" ||
16140
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16141
X"$file" : 'X\(//\)[^/]' \| \
16142
X"$file" : 'X\(//\)$' \| \
16143
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16144
$as_echo X"$file" |
16145
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16149
/^X\(\/\/\)[^/].*/{
16162
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16163
# echo "creating $dirpart/$file"
16164
echo '# dummy' > "$dirpart/$file"
16171
# See if we are running on zsh, and set the options which allow our
16172
# commands through without removal of \ escapes.
16173
if test -n "${ZSH_VERSION+set}" ; then
16174
setopt NO_GLOB_SUBST
16177
cfgfile="${ofile}T"
16178
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16181
cat <<_LT_EOF >> "$cfgfile"
16184
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16185
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16186
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16187
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16189
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16190
# 2006, 2007, 2008 Free Software Foundation, Inc.
16191
# Written by Gordon Matzigkeit, 1996
16193
# This file is part of GNU Libtool.
16195
# GNU Libtool is free software; you can redistribute it and/or
16196
# modify it under the terms of the GNU General Public License as
16197
# published by the Free Software Foundation; either version 2 of
16198
# the License, or (at your option) any later version.
16200
# As a special exception to the GNU General Public License,
16201
# if you distribute this file as part of a program or library that
16202
# is built using GNU Libtool, you may include this file under the
16203
# same distribution terms that you use for the rest of that program.
16205
# GNU Libtool is distributed in the hope that it will be useful,
16206
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16207
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16208
# GNU General Public License for more details.
16210
# You should have received a copy of the GNU General Public License
16211
# along with GNU Libtool; see the file COPYING. If not, a copy
16212
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16213
# obtained by writing to the Free Software Foundation, Inc.,
16214
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16217
# The names of the tagged configurations supported by this script.
16218
available_tags="CXX "
16220
# ### BEGIN LIBTOOL CONFIG
16222
# Which release of libtool.m4 was used?
16223
macro_version=$macro_version
16224
macro_revision=$macro_revision
16226
# Whether or not to build shared libraries.
16227
build_libtool_libs=$enable_shared
16229
# Whether or not to build static libraries.
16230
build_old_libs=$enable_static
16232
# What type of objects to build.
16235
# Whether or not to optimize for fast installation.
16236
fast_install=$enable_fast_install
16239
host_alias=$host_alias
16243
# The build system.
16244
build_alias=$build_alias
16248
# A sed program that does not truncate output.
16251
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16252
Xsed="\$SED -e 1s/^X//"
16254
# A grep program that handles long lines.
16260
# A literal string matcher.
16263
# A BSD- or MS-compatible name lister.
16266
# Whether we need soft or hard links.
16269
# What is the maximum length of a command?
16270
max_cmd_len=$max_cmd_len
16272
# Object file suffix (normally "o").
16275
# Executable file suffix (normally "").
16278
# whether the shell understands "unset".
16281
# turn spaces into newlines.
16284
# turn newlines into spaces.
16287
# How to create reloadable object files.
16288
reload_flag=$lt_reload_flag
16289
reload_cmds=$lt_reload_cmds
16291
# An object symbol dumper.
16292
OBJDUMP=$lt_OBJDUMP
16294
# Method to check whether dependent libraries are shared objects.
16295
deplibs_check_method=$lt_deplibs_check_method
16297
# Command to use when deplibs_check_method == "file_magic".
16298
file_magic_cmd=$lt_file_magic_cmd
16302
AR_FLAGS=$lt_AR_FLAGS
16304
# A symbol stripping program.
16307
# Commands used to install an old-style archive.
16309
old_postinstall_cmds=$lt_old_postinstall_cmds
16310
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16315
# LTCC compiler flags.
16316
LTCFLAGS=$lt_CFLAGS
16318
# Take the output of nm and produce a listing of raw symbols and C names.
16319
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16321
# Transform the output of nm in a proper C declaration.
16322
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16324
# Transform the output of nm in a C name address pair.
16325
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16327
# Transform the output of nm in a C name address pair when lib prefix is needed.
16328
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16330
# The name of the directory that contains temporary libtool files.
16333
# Shell to use when invoking shell scripts.
16336
# An echo program that does not interpret backslashes.
16339
# Used to examine libraries when file_magic_cmd begins with "file".
16340
MAGIC_CMD=$MAGIC_CMD
16342
# Must we lock files when doing compilation?
16343
need_locks=$lt_need_locks
16345
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16346
DSYMUTIL=$lt_DSYMUTIL
16348
# Tool to change global to local symbols on Mac OS X.
16351
# Tool to manipulate fat objects and archives on Mac OS X.
16354
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16357
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16358
OTOOL64=$lt_OTOOL64
16360
# Old archive suffix (normally "a").
16363
# Shared library suffix (normally ".so").
16364
shrext_cmds=$lt_shrext_cmds
16366
# The commands to extract the exported symbol list from a shared archive.
16367
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16369
# Variables whose values should be saved in libtool wrapper scripts and
16370
# restored at link time.
16371
variables_saved_for_relink=$lt_variables_saved_for_relink
16373
# Do we need the "lib" prefix for modules?
16374
need_lib_prefix=$need_lib_prefix
16376
# Do we need a version for libraries?
16377
need_version=$need_version
16379
# Library versioning type.
16380
version_type=$version_type
16382
# Shared library runtime path variable.
16383
runpath_var=$runpath_var
16385
# Shared library path variable.
16386
shlibpath_var=$shlibpath_var
16388
# Is shlibpath searched before the hard-coded library search path?
16389
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16391
# Format of library name prefix.
16392
libname_spec=$lt_libname_spec
16394
# List of archive names. First name is the real one, the rest are links.
16395
# The last name is the one that the linker finds with -lNAME
16396
library_names_spec=$lt_library_names_spec
16398
# The coded name of the library, if different from the real name.
16399
soname_spec=$lt_soname_spec
16401
# Command to use after installation of a shared archive.
16402
postinstall_cmds=$lt_postinstall_cmds
16404
# Command to use after uninstallation of a shared archive.
16405
postuninstall_cmds=$lt_postuninstall_cmds
16407
# Commands used to finish a libtool library installation in a directory.
16408
finish_cmds=$lt_finish_cmds
16410
# As "finish_cmds", except a single script fragment to be evaled but
16412
finish_eval=$lt_finish_eval
16414
# Whether we should hardcode library paths into libraries.
16415
hardcode_into_libs=$hardcode_into_libs
16417
# Compile-time system search path for libraries.
16418
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16420
# Run-time system search path for libraries.
16421
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16423
# Whether dlopen is supported.
16424
dlopen_support=$enable_dlopen
16426
# Whether dlopen of programs is supported.
16427
dlopen_self=$enable_dlopen_self
16429
# Whether dlopen of statically linked programs is supported.
16430
dlopen_self_static=$enable_dlopen_self_static
16432
# Commands to strip libraries.
16433
old_striplib=$lt_old_striplib
16434
striplib=$lt_striplib
16437
# The linker used to build libraries.
16440
# Commands used to build an old-style archive.
16441
old_archive_cmds=$lt_old_archive_cmds
16443
# A language specific compiler.
16446
# Is the compiler the GNU compiler?
16449
# Compiler flag to turn off builtin functions.
16450
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16452
# How to pass a linker flag through the compiler.
16453
wl=$lt_lt_prog_compiler_wl
16455
# Additional compiler flags for building library objects.
16456
pic_flag=$lt_lt_prog_compiler_pic
16458
# Compiler flag to prevent dynamic linking.
16459
link_static_flag=$lt_lt_prog_compiler_static
16461
# Does compiler simultaneously support -c and -o options?
16462
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16464
# Whether or not to add -lc for building shared libraries.
16465
build_libtool_need_lc=$archive_cmds_need_lc
16467
# Whether or not to disallow shared libs when runtime libs are static.
16468
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16470
# Compiler flag to allow reflexive dlopens.
16471
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16473
# Compiler flag to generate shared objects directly from archives.
16474
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16476
# Whether the compiler copes with passing no objects directly.
16477
compiler_needs_object=$lt_compiler_needs_object
16479
# Create an old-style archive from a shared archive.
16480
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16482
# Create a temporary old-style archive to link instead of a shared archive.
16483
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16485
# Commands used to build a shared archive.
16486
archive_cmds=$lt_archive_cmds
16487
archive_expsym_cmds=$lt_archive_expsym_cmds
16489
# Commands used to build a loadable module if different from building
16490
# a shared archive.
16491
module_cmds=$lt_module_cmds
16492
module_expsym_cmds=$lt_module_expsym_cmds
16494
# Whether we are building with GNU ld or not.
16495
with_gnu_ld=$lt_with_gnu_ld
16497
# Flag that allows shared libraries with undefined symbols to be built.
16498
allow_undefined_flag=$lt_allow_undefined_flag
16500
# Flag that enforces no undefined symbols.
16501
no_undefined_flag=$lt_no_undefined_flag
16503
# Flag to hardcode \$libdir into a binary during linking.
16504
# This must work even if \$libdir does not exist
16505
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16507
# If ld is used when linking, flag to hardcode \$libdir into a binary
16508
# during linking. This must work even if \$libdir does not exist.
16509
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16511
# Whether we need a single "-rpath" flag with a separated argument.
16512
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16514
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16515
# DIR into the resulting binary.
16516
hardcode_direct=$hardcode_direct
16518
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16519
# DIR into the resulting binary and the resulting library dependency is
16520
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16521
# library is relocated.
16522
hardcode_direct_absolute=$hardcode_direct_absolute
16524
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16525
# into the resulting binary.
16526
hardcode_minus_L=$hardcode_minus_L
16528
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16529
# into the resulting binary.
16530
hardcode_shlibpath_var=$hardcode_shlibpath_var
16532
# Set to "yes" if building a shared library automatically hardcodes DIR
16533
# into the library and all subsequent libraries and executables linked
16535
hardcode_automatic=$hardcode_automatic
16537
# Set to yes if linker adds runtime paths of dependent libraries
16538
# to runtime path list.
16539
inherit_rpath=$inherit_rpath
16541
# Whether libtool must link a program against all its dependency libraries.
16542
link_all_deplibs=$link_all_deplibs
16544
# Fix the shell variable \$srcfile for the compiler.
16545
fix_srcfile_path=$lt_fix_srcfile_path
16547
# Set to "yes" if exported symbols are required.
16548
always_export_symbols=$always_export_symbols
16550
# The commands to list exported symbols.
16551
export_symbols_cmds=$lt_export_symbols_cmds
16553
# Symbols that should not be listed in the preloaded symbols.
16554
exclude_expsyms=$lt_exclude_expsyms
16556
# Symbols that must always be exported.
16557
include_expsyms=$lt_include_expsyms
16559
# Commands necessary for linking programs (against libraries) with templates.
16560
prelink_cmds=$lt_prelink_cmds
16562
# Specify filename containing input files.
16563
file_list_spec=$lt_file_list_spec
16565
# How to hardcode a shared library path into an executable.
16566
hardcode_action=$hardcode_action
16568
# The directories searched by this compiler when creating a shared library.
16569
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16571
# Dependencies to place before and after the objects being linked to
16572
# create a shared library.
16573
predep_objects=$lt_predep_objects
16574
postdep_objects=$lt_postdep_objects
16575
predeps=$lt_predeps
16576
postdeps=$lt_postdeps
16578
# The library search path used internally by the compiler when linking
16579
# a shared library.
16580
compiler_lib_search_path=$lt_compiler_lib_search_path
16582
# ### END LIBTOOL CONFIG
16588
cat <<\_LT_EOF >> "$cfgfile"
16589
# AIX sometimes has problems with the GCC collect2 program. For some
16590
# reason, if we set the COLLECT_NAMES environment variable, the problems
16591
# vanish in a puff of smoke.
16592
if test "X${COLLECT_NAMES+set}" != Xset; then
16594
export COLLECT_NAMES
16601
ltmain="$ac_aux_dir/ltmain.sh"
16604
# We use sed instead of cat because bash on DJGPP gets confused if
16605
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16606
# text mode, it properly converts lines to CR/LF. This bash problem
16607
# is reportedly fixed, but why not run on old versions too?
16608
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16609
|| (rm -f "$cfgfile"; exit 1)
16613
cat << \_LT_EOF >> "$cfgfile"
16615
# func_dirname file append nondir_replacement
16616
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16617
# otherwise set result to NONDIR_REPLACEMENT.
16621
*/*) func_dirname_result="${1%/*}${2}" ;;
16622
* ) func_dirname_result="${3}" ;;
16626
# func_basename file
16629
func_basename_result="${1##*/}"
16632
# func_dirname_and_basename file append nondir_replacement
16633
# perform func_basename and func_dirname in a single function
16635
# dirname: Compute the dirname of FILE. If nonempty,
16636
# add APPEND to the result, otherwise set result
16637
# to NONDIR_REPLACEMENT.
16638
# value returned in "$func_dirname_result"
16639
# basename: Compute filename of FILE.
16640
# value retuned in "$func_basename_result"
16641
# Implementation must be kept synchronized with func_dirname
16642
# and func_basename. For efficiency, we do not delegate to
16643
# those functions but instead duplicate the functionality here.
16644
func_dirname_and_basename ()
16647
*/*) func_dirname_result="${1%/*}${2}" ;;
16648
* ) func_dirname_result="${3}" ;;
16650
func_basename_result="${1##*/}"
16653
# func_stripname prefix suffix name
16654
# strip PREFIX and SUFFIX off of NAME.
16655
# PREFIX and SUFFIX must not contain globbing or regex special
16656
# characters, hashes, percent signs, but SUFFIX may contain a leading
16657
# dot (in which case that matches only a dot).
16660
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16661
# positional parameters, so assign one to ordinary parameter first.
16662
func_stripname_result=${3}
16663
func_stripname_result=${func_stripname_result#"${1}"}
16664
func_stripname_result=${func_stripname_result%"${2}"}
16670
func_opt_split_opt=${1%%=*}
16671
func_opt_split_arg=${1#*=}
16678
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16679
*) func_lo2o_result=${1} ;;
16683
# func_xform libobj-or-source
16686
func_xform_result=${1%.*}.lo
16689
# func_arith arithmetic-term...
16692
func_arith_result=$(( $* ))
16696
# STRING may not start with a hyphen.
16699
func_len_result=${#1}
16704
*) # Bourne compatible functions.
16705
cat << \_LT_EOF >> "$cfgfile"
16707
# func_dirname file append nondir_replacement
16708
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16709
# otherwise set result to NONDIR_REPLACEMENT.
16712
# Extract subdirectory from the argument.
16713
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16714
if test "X$func_dirname_result" = "X${1}"; then
16715
func_dirname_result="${3}"
16717
func_dirname_result="$func_dirname_result${2}"
16721
# func_basename file
16724
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16728
# func_stripname prefix suffix name
16729
# strip PREFIX and SUFFIX off of NAME.
16730
# PREFIX and SUFFIX must not contain globbing or regex special
16731
# characters, hashes, percent signs, but SUFFIX may contain a leading
16732
# dot (in which case that matches only a dot).
16733
# func_strip_suffix prefix name
16737
.*) func_stripname_result=`$ECHO "X${3}" \
16738
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16739
*) func_stripname_result=`$ECHO "X${3}" \
16740
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16745
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16746
my_sed_long_arg='1s/^-[^=]*=//'
16751
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16752
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16758
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16761
# func_xform libobj-or-source
16764
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16767
# func_arith arithmetic-term...
16770
func_arith_result=`expr "$@"`
16774
# STRING may not start with a hyphen.
16777
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16783
case $lt_shell_append in
16785
cat << \_LT_EOF >> "$cfgfile"
16787
# func_append var value
16788
# Append VALUE to the end of shell variable VAR.
16796
cat << \_LT_EOF >> "$cfgfile"
16798
# func_append var value
16799
# Append VALUE to the end of shell variable VAR.
16810
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16811
|| (rm -f "$cfgfile"; exit 1)
16813
mv -f "$cfgfile" "$ofile" ||
16814
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16818
cat <<_LT_EOF >> "$ofile"
16820
# ### BEGIN LIBTOOL TAG CONFIG: CXX
16822
# The linker used to build libraries.
16825
# Commands used to build an old-style archive.
16826
old_archive_cmds=$lt_old_archive_cmds_CXX
16828
# A language specific compiler.
16829
CC=$lt_compiler_CXX
16831
# Is the compiler the GNU compiler?
16834
# Compiler flag to turn off builtin functions.
16835
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16837
# How to pass a linker flag through the compiler.
16838
wl=$lt_lt_prog_compiler_wl_CXX
16840
# Additional compiler flags for building library objects.
16841
pic_flag=$lt_lt_prog_compiler_pic_CXX
16843
# Compiler flag to prevent dynamic linking.
16844
link_static_flag=$lt_lt_prog_compiler_static_CXX
16846
# Does compiler simultaneously support -c and -o options?
16847
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16849
# Whether or not to add -lc for building shared libraries.
16850
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16852
# Whether or not to disallow shared libs when runtime libs are static.
16853
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16855
# Compiler flag to allow reflexive dlopens.
16856
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16858
# Compiler flag to generate shared objects directly from archives.
16859
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16861
# Whether the compiler copes with passing no objects directly.
16862
compiler_needs_object=$lt_compiler_needs_object_CXX
16864
# Create an old-style archive from a shared archive.
16865
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16867
# Create a temporary old-style archive to link instead of a shared archive.
16868
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16870
# Commands used to build a shared archive.
16871
archive_cmds=$lt_archive_cmds_CXX
16872
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16874
# Commands used to build a loadable module if different from building
16875
# a shared archive.
16876
module_cmds=$lt_module_cmds_CXX
16877
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16879
# Whether we are building with GNU ld or not.
16880
with_gnu_ld=$lt_with_gnu_ld_CXX
16882
# Flag that allows shared libraries with undefined symbols to be built.
16883
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16885
# Flag that enforces no undefined symbols.
16886
no_undefined_flag=$lt_no_undefined_flag_CXX
16888
# Flag to hardcode \$libdir into a binary during linking.
16889
# This must work even if \$libdir does not exist
16890
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16892
# If ld is used when linking, flag to hardcode \$libdir into a binary
16893
# during linking. This must work even if \$libdir does not exist.
16894
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16896
# Whether we need a single "-rpath" flag with a separated argument.
16897
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16899
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16900
# DIR into the resulting binary.
16901
hardcode_direct=$hardcode_direct_CXX
16903
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16904
# DIR into the resulting binary and the resulting library dependency is
16905
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16906
# library is relocated.
16907
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16909
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16910
# into the resulting binary.
16911
hardcode_minus_L=$hardcode_minus_L_CXX
16913
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16914
# into the resulting binary.
16915
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16917
# Set to "yes" if building a shared library automatically hardcodes DIR
16918
# into the library and all subsequent libraries and executables linked
16920
hardcode_automatic=$hardcode_automatic_CXX
16922
# Set to yes if linker adds runtime paths of dependent libraries
16923
# to runtime path list.
16924
inherit_rpath=$inherit_rpath_CXX
16926
# Whether libtool must link a program against all its dependency libraries.
16927
link_all_deplibs=$link_all_deplibs_CXX
16929
# Fix the shell variable \$srcfile for the compiler.
16930
fix_srcfile_path=$lt_fix_srcfile_path_CXX
16932
# Set to "yes" if exported symbols are required.
16933
always_export_symbols=$always_export_symbols_CXX
16935
# The commands to list exported symbols.
16936
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16938
# Symbols that should not be listed in the preloaded symbols.
16939
exclude_expsyms=$lt_exclude_expsyms_CXX
16941
# Symbols that must always be exported.
16942
include_expsyms=$lt_include_expsyms_CXX
16944
# Commands necessary for linking programs (against libraries) with templates.
16945
prelink_cmds=$lt_prelink_cmds_CXX
16947
# Specify filename containing input files.
16948
file_list_spec=$lt_file_list_spec_CXX
16950
# How to hardcode a shared library path into an executable.
16951
hardcode_action=$hardcode_action_CXX
16953
# The directories searched by this compiler when creating a shared library.
16954
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16956
# Dependencies to place before and after the objects being linked to
16957
# create a shared library.
16958
predep_objects=$lt_predep_objects_CXX
16959
postdep_objects=$lt_postdep_objects_CXX
16960
predeps=$lt_predeps_CXX
16961
postdeps=$lt_postdeps_CXX
16963
# The library search path used internally by the compiler when linking
16964
# a shared library.
16965
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16967
# ### END LIBTOOL TAG CONFIG: CXX
16978
ac_clean_files=$ac_clean_files_save
16980
test $ac_write_fail = 0 ||
16981
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16984
# configure is writing to config.log, and then calls config.status.
16985
# config.status does its own redirection, appending to config.log.
16986
# Unfortunately, on DOS this fails, as config.log is still kept open
16987
# by configure, so config.status won't be able to write to it; its
16988
# output is simply discarded. So we exec the FD to /dev/null,
16989
# effectively closing config.log, so it can be properly (re)opened and
16990
# appended to by config.status. When coming back to configure, we
16991
# need to make the FD available again.
16992
if test "$no_create" != yes; then
16994
ac_config_status_args=
16995
test "$silent" = yes &&
16996
ac_config_status_args="$ac_config_status_args --quiet"
16998
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17000
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17001
# would make configure fail if this is the last instruction.
17002
$ac_cs_success || as_fn_exit $?
17004
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17005
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17006
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}