2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.67 for subunit 0.0.7.
5
# Report bugs to <subunit-dev@lists.launchpad.net>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: subunit-dev@lists.launchpad.net about your system,
235
$0: including any error possibly output before this
236
$0: message. Then install a modern shell, or manually run
237
$0: the script under such a shell if you do have one."
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error STATUS ERROR [LINENO LOG_FD]
363
# ----------------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with STATUS, using 1 if that was 0.
369
as_status=$1; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374
$as_echo "$as_me: error: $2" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
# Check that we are running under the correct shell.
534
SHELL=${CONFIG_SHELL-/bin/sh}
538
# Remove one level of quotation (which was required for Make).
539
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544
if test "X$1" = X--no-reexec; then
545
# Discard the --no-reexec flag, and continue.
547
elif test "X$1" = X--fallback-echo; then
548
# Avoid inline document here, it may be left over
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
# Yippee, $ECHO works!
554
# Restart under the correct shell.
555
exec $SHELL "$0" --no-reexec ${1+"$@"}
558
if test "X$1" = X--fallback-echo; then
559
# used as fallback echo
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
if test -z "$lt_ECHO"; then
572
if test "X${echo_test_string+set}" != Xset; then
573
# find a string as large as possible, as long as the shell can cope with it
574
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
test "X$echo_testing_string" = "X$echo_test_string"; then
589
# The Solaris, AIX, and Digital Unix default echo programs unquote
590
# backslashes. This makes it impossible to quote backslashes using
591
# echo "$something" | sed 's/\\/\\\\/g'
593
# So, first we look for a working echo in the user's PATH.
595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
for dir in $PATH /usr/ucb; do
598
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
test "X$echo_testing_string" = "X$echo_test_string"; then
608
if test "X$ECHO" = Xecho; then
609
# We didn't find a better echo, so look for alternatives.
610
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
test "X$echo_testing_string" = "X$echo_test_string"; then
613
# This shell has a builtin print -r that does the trick.
615
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
test "X$CONFIG_SHELL" != X/bin/ksh; then
617
# If we have ksh, try running configure again with it.
618
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
export ORIGINAL_CONFIG_SHELL
620
CONFIG_SHELL=/bin/ksh
622
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
test "X$echo_testing_string" = "X$echo_test_string"; then
631
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
test "X$echo_testing_string" = 'X\t' &&
633
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
635
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637
SHELL="$CONFIG_SHELL"
639
ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
test "X$echo_testing_string" = 'X\t' &&
642
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
test "X$echo_testing_string" = "X$echo_test_string"; then
644
ECHO="$CONFIG_SHELL $0 --fallback-echo"
646
# maybe with a smaller string...
649
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657
if test "$prev" != 'sed 50q "$0"'; then
658
echo_test_string=`eval $prev`
659
export echo_test_string
660
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662
# Oops. We lost completely, so just stick with echo.
671
# Copy echo and quote the copy suitably for passing to libtool from
672
# the Makefile, instead of quoting the original, which is used later.
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
test -n "$DJDIR" || exec 7<&0 </dev/null
685
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686
# so uname gets run too.
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
ac_default_prefix=/usr/local
694
ac_config_libobj_dir=.
701
# Identity of this package.
702
PACKAGE_NAME='subunit'
703
PACKAGE_TARNAME='subunit'
704
PACKAGE_VERSION='0.0.7'
705
PACKAGE_STRING='subunit 0.0.7'
706
PACKAGE_BUGREPORT='subunit-dev@lists.launchpad.net'
709
ac_unique_file="c/lib/child.c"
710
# Factoring default headers for most tests.
711
ac_includes_default="\
713
#ifdef HAVE_SYS_TYPES_H
714
# include <sys/types.h>
716
#ifdef HAVE_SYS_STAT_H
717
# include <sys/stat.h>
723
# ifdef HAVE_STDLIB_H
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733
#ifdef HAVE_STRINGS_H
734
# include <strings.h>
736
#ifdef HAVE_INTTYPES_H
737
# include <inttypes.h>
746
ac_subst_vars='am__EXEEXT_FALSE
820
SUBUNIT_MICRO_VERSION
821
SUBUNIT_MINOR_VERSION
822
SUBUNIT_MAJOR_VERSION
831
INSTALL_STRIP_PROGRAM
873
program_transform_name
886
enable_option_checking
887
enable_dependency_tracking
895
ac_precious_vars='build_alias
917
# Initialize some variables set by options.
919
ac_init_version=false
920
ac_unrecognized_opts=
922
# The variables have the same names as the options, with
923
# dashes changed to underlines.
931
program_transform_name=s,x,x,
939
# Installation directory options.
940
# These are left unexpanded so users can "make install exec_prefix=/foo"
941
# and all the variables that are supposed to be based on exec_prefix
942
# by default will actually change.
943
# Use braces instead of parens because sh, perl, etc. also accept them.
944
# (The list follows the same order as the GNU Coding Standards.)
945
bindir='${exec_prefix}/bin'
946
sbindir='${exec_prefix}/sbin'
947
libexecdir='${exec_prefix}/libexec'
948
datarootdir='${prefix}/share'
949
datadir='${datarootdir}'
950
sysconfdir='${prefix}/etc'
951
sharedstatedir='${prefix}/com'
952
localstatedir='${prefix}/var'
953
includedir='${prefix}/include'
954
oldincludedir='/usr/include'
955
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956
infodir='${datarootdir}/info'
961
libdir='${exec_prefix}/lib'
962
localedir='${datarootdir}/locale'
963
mandir='${datarootdir}/man'
969
# If the previous option needs an argument, assign it.
970
if test -n "$ac_prev"; then
971
eval $ac_prev=\$ac_option
977
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982
# Accept the important Cygnus configure options, so we can diagnose typos.
984
case $ac_dashdash$ac_option in
988
-bindir | --bindir | --bindi | --bind | --bin | --bi)
990
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993
-build | --build | --buil | --bui | --bu)
994
ac_prev=build_alias ;;
995
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
996
build_alias=$ac_optarg ;;
998
-cache-file | --cache-file | --cache-fil | --cache-fi \
999
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000
ac_prev=cache_file ;;
1001
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003
cache_file=$ac_optarg ;;
1005
--config-cache | -C)
1006
cache_file=config.cache ;;
1008
-datadir | --datadir | --datadi | --datad)
1010
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1011
datadir=$ac_optarg ;;
1013
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014
| --dataroo | --dataro | --datar)
1015
ac_prev=datarootdir ;;
1016
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018
datarootdir=$ac_optarg ;;
1020
-disable-* | --disable-*)
1021
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022
# Reject names that are not valid shell variable names.
1023
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024
as_fn_error $? "invalid feature name: $ac_useropt"
1025
ac_useropt_orig=$ac_useropt
1026
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027
case $ac_user_opts in
1029
"enable_$ac_useropt"
1031
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032
ac_unrecognized_sep=', ';;
1034
eval enable_$ac_useropt=no ;;
1036
-docdir | --docdir | --docdi | --doc | --do)
1038
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039
docdir=$ac_optarg ;;
1041
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044
dvidir=$ac_optarg ;;
1046
-enable-* | --enable-*)
1047
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048
# Reject names that are not valid shell variable names.
1049
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050
as_fn_error $? "invalid feature name: $ac_useropt"
1051
ac_useropt_orig=$ac_useropt
1052
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053
case $ac_user_opts in
1055
"enable_$ac_useropt"
1057
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058
ac_unrecognized_sep=', ';;
1060
eval enable_$ac_useropt=\$ac_optarg ;;
1062
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064
| --exec | --exe | --ex)
1065
ac_prev=exec_prefix ;;
1066
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068
| --exec=* | --exe=* | --ex=*)
1069
exec_prefix=$ac_optarg ;;
1071
-gas | --gas | --ga | --g)
1072
# Obsolete; use --with-gas.
1075
-help | --help | --hel | --he | -h)
1076
ac_init_help=long ;;
1077
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078
ac_init_help=recursive ;;
1079
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080
ac_init_help=short ;;
1082
-host | --host | --hos | --ho)
1083
ac_prev=host_alias ;;
1084
-host=* | --host=* | --hos=* | --ho=*)
1085
host_alias=$ac_optarg ;;
1087
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091
htmldir=$ac_optarg ;;
1093
-includedir | --includedir | --includedi | --included | --include \
1094
| --includ | --inclu | --incl | --inc)
1095
ac_prev=includedir ;;
1096
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097
| --includ=* | --inclu=* | --incl=* | --inc=*)
1098
includedir=$ac_optarg ;;
1100
-infodir | --infodir | --infodi | --infod | --info | --inf)
1102
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103
infodir=$ac_optarg ;;
1105
-libdir | --libdir | --libdi | --libd)
1107
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1108
libdir=$ac_optarg ;;
1110
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111
| --libexe | --libex | --libe)
1112
ac_prev=libexecdir ;;
1113
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114
| --libexe=* | --libex=* | --libe=*)
1115
libexecdir=$ac_optarg ;;
1117
-localedir | --localedir | --localedi | --localed | --locale)
1118
ac_prev=localedir ;;
1119
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120
localedir=$ac_optarg ;;
1122
-localstatedir | --localstatedir | --localstatedi | --localstated \
1123
| --localstate | --localstat | --localsta | --localst | --locals)
1124
ac_prev=localstatedir ;;
1125
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127
localstatedir=$ac_optarg ;;
1129
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132
mandir=$ac_optarg ;;
1134
-nfp | --nfp | --nf)
1135
# Obsolete; use --without-fp.
1138
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139
| --no-cr | --no-c | -n)
1142
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148
| --oldin | --oldi | --old | --ol | --o)
1149
ac_prev=oldincludedir ;;
1150
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153
oldincludedir=$ac_optarg ;;
1155
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158
prefix=$ac_optarg ;;
1160
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1161
| --program-pre | --program-pr | --program-p)
1162
ac_prev=program_prefix ;;
1163
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1164
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165
program_prefix=$ac_optarg ;;
1167
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1168
| --program-suf | --program-su | --program-s)
1169
ac_prev=program_suffix ;;
1170
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1171
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172
program_suffix=$ac_optarg ;;
1174
-program-transform-name | --program-transform-name \
1175
| --program-transform-nam | --program-transform-na \
1176
| --program-transform-n | --program-transform- \
1177
| --program-transform | --program-transfor \
1178
| --program-transfo | --program-transf \
1179
| --program-trans | --program-tran \
1180
| --progr-tra | --program-tr | --program-t)
1181
ac_prev=program_transform_name ;;
1182
-program-transform-name=* | --program-transform-name=* \
1183
| --program-transform-nam=* | --program-transform-na=* \
1184
| --program-transform-n=* | --program-transform-=* \
1185
| --program-transform=* | --program-transfor=* \
1186
| --program-transfo=* | --program-transf=* \
1187
| --program-trans=* | --program-tran=* \
1188
| --progr-tra=* | --program-tr=* | --program-t=*)
1189
program_transform_name=$ac_optarg ;;
1191
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194
pdfdir=$ac_optarg ;;
1196
-psdir | --psdir | --psdi | --psd | --ps)
1198
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202
| -silent | --silent | --silen | --sile | --sil)
1205
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209
sbindir=$ac_optarg ;;
1211
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1212
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213
| --sharedst | --shareds | --shared | --share | --shar \
1215
ac_prev=sharedstatedir ;;
1216
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220
sharedstatedir=$ac_optarg ;;
1222
-site | --site | --sit)
1224
-site=* | --site=* | --sit=*)
1227
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230
srcdir=$ac_optarg ;;
1232
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233
| --syscon | --sysco | --sysc | --sys | --sy)
1234
ac_prev=sysconfdir ;;
1235
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237
sysconfdir=$ac_optarg ;;
1239
-target | --target | --targe | --targ | --tar | --ta | --t)
1240
ac_prev=target_alias ;;
1241
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242
target_alias=$ac_optarg ;;
1244
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1247
-version | --version | --versio | --versi | --vers | -V)
1248
ac_init_version=: ;;
1251
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252
# Reject names that are not valid shell variable names.
1253
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254
as_fn_error $? "invalid package name: $ac_useropt"
1255
ac_useropt_orig=$ac_useropt
1256
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257
case $ac_user_opts in
1261
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262
ac_unrecognized_sep=', ';;
1264
eval with_$ac_useropt=\$ac_optarg ;;
1266
-without-* | --without-*)
1267
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268
# Reject names that are not valid shell variable names.
1269
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270
as_fn_error $? "invalid package name: $ac_useropt"
1271
ac_useropt_orig=$ac_useropt
1272
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273
case $ac_user_opts in
1277
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278
ac_unrecognized_sep=', ';;
1280
eval with_$ac_useropt=no ;;
1283
# Obsolete; use --with-x.
1286
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287
| --x-incl | --x-inc | --x-in | --x-i)
1288
ac_prev=x_includes ;;
1289
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291
x_includes=$ac_optarg ;;
1293
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1294
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295
ac_prev=x_libraries ;;
1296
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298
x_libraries=$ac_optarg ;;
1300
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1301
Try \`$0 --help' for more information"
1305
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306
# Reject names that are not valid shell variable names.
1307
case $ac_envvar in #(
1308
'' | [0-9]* | *[!_$as_cr_alnum]* )
1309
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1311
eval $ac_envvar=\$ac_optarg
1312
export $ac_envvar ;;
1315
# FIXME: should be removed in autoconf 3.0.
1316
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325
if test -n "$ac_prev"; then
1326
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327
as_fn_error $? "missing argument to $ac_option"
1330
if test -n "$ac_unrecognized_opts"; then
1331
case $enable_option_checking in
1333
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338
# Check all directory arguments for consistency.
1339
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340
datadir sysconfdir sharedstatedir localstatedir includedir \
1341
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342
libdir localedir mandir
1344
eval ac_val=\$$ac_var
1345
# Remove trailing slashes.
1348
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349
eval $ac_var=\$ac_val;;
1351
# Be sure to have absolute directory names.
1353
[\\/$]* | ?:[\\/]* ) continue;;
1354
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359
# There might be people who depend on the old broken behavior: `$host'
1360
# used to hold the argument of --host etc.
1361
# FIXME: To remove some day.
1364
target=$target_alias
1366
# FIXME: To remove some day.
1367
if test "x$host_alias" != x; then
1368
if test "x$build_alias" = x; then
1369
cross_compiling=maybe
1370
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1371
If a cross compiler is detected then cross compile mode will be used" >&2
1372
elif test "x$build_alias" != "x$host_alias"; then
1378
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
test "$silent" = yes && exec 6>/dev/null
1383
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384
ac_ls_di=`ls -di .` &&
1385
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386
as_fn_error $? "working directory cannot be determined"
1387
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388
as_fn_error $? "pwd does not report name of working directory"
1391
# Find the source files, if location was not specified.
1392
if test -z "$srcdir"; then
1393
ac_srcdir_defaulted=yes
1394
# Try the directory containing this script, then the parent directory.
1395
ac_confdir=`$as_dirname -- "$as_myself" ||
1396
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397
X"$as_myself" : 'X\(//\)[^/]' \| \
1398
X"$as_myself" : 'X\(//\)$' \| \
1399
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400
$as_echo X"$as_myself" |
1401
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419
if test ! -r "$srcdir/$ac_unique_file"; then
1423
ac_srcdir_defaulted=no
1425
if test ! -r "$srcdir/$ac_unique_file"; then
1426
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1429
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433
# When building in place, set srcdir=.
1434
if test "$ac_abs_confdir" = "$ac_pwd"; then
1437
# Remove unnecessary trailing slashes from srcdir.
1438
# Double slashes in file names in object file debugging info
1439
# mess up M-x gdb in Emacs.
1441
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443
for ac_var in $ac_precious_vars; do
1444
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445
eval ac_env_${ac_var}_value=\$${ac_var}
1446
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451
# Report the --help message.
1453
if test "$ac_init_help" = "long"; then
1454
# Omit some internal or obsolete options to make the list less imposing.
1455
# This message is too long to be a string in the A/UX 3.1 sh.
1457
\`configure' configures subunit 0.0.7 to adapt to many kinds of systems.
1459
Usage: $0 [OPTION]... [VAR=VALUE]...
1461
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462
VAR=VALUE. See below for descriptions of some of the useful variables.
1464
Defaults for the options are specified in brackets.
1467
-h, --help display this help and exit
1468
--help=short display options specific to this package
1469
--help=recursive display the short help of all the included packages
1470
-V, --version display version information and exit
1471
-q, --quiet, --silent do not print \`checking ...' messages
1472
--cache-file=FILE cache test results in FILE [disabled]
1473
-C, --config-cache alias for \`--cache-file=config.cache'
1474
-n, --no-create do not create output files
1475
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1477
Installation directories:
1478
--prefix=PREFIX install architecture-independent files in PREFIX
1479
[$ac_default_prefix]
1480
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483
By default, \`make install' will install all the files in
1484
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486
for instance \`--prefix=\$HOME'.
1488
For better control, use the options below.
1490
Fine tuning of the installation directories:
1491
--bindir=DIR user executables [EPREFIX/bin]
1492
--sbindir=DIR system admin executables [EPREFIX/sbin]
1493
--libexecdir=DIR program executables [EPREFIX/libexec]
1494
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497
--libdir=DIR object code libraries [EPREFIX/lib]
1498
--includedir=DIR C header files [PREFIX/include]
1499
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1500
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502
--infodir=DIR info documentation [DATAROOTDIR/info]
1503
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504
--mandir=DIR man documentation [DATAROOTDIR/man]
1505
--docdir=DIR documentation root [DATAROOTDIR/doc/subunit]
1506
--htmldir=DIR html documentation [DOCDIR]
1507
--dvidir=DIR dvi documentation [DOCDIR]
1508
--pdfdir=DIR pdf documentation [DOCDIR]
1509
--psdir=DIR ps documentation [DOCDIR]
1515
--program-prefix=PREFIX prepend PREFIX to installed program names
1516
--program-suffix=SUFFIX append SUFFIX to installed program names
1517
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520
--build=BUILD configure for building on BUILD [guessed]
1521
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1525
if test -n "$ac_init_help"; then
1526
case $ac_init_help in
1527
short | recursive ) echo "Configuration of subunit 0.0.7:";;
1532
--disable-option-checking ignore unrecognized --enable/--with options
1533
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535
--disable-dependency-tracking speeds up one-time build
1536
--enable-dependency-tracking do not reject slow dependency extractors
1537
--enable-shared[=PKGS] build shared libraries [default=yes]
1538
--enable-static[=PKGS] build static libraries [default=yes]
1539
--enable-fast-install[=PKGS]
1540
optimize for fast installation [default=yes]
1541
--disable-libtool-lock avoid locking (might break parallel builds)
1544
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546
--with-pic try to use only PIC/non-PIC objects [default=use
1548
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550
Some influential environment variables:
1551
CC C compiler command
1552
CFLAGS C compiler flags
1553
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554
nonstandard directory <lib dir>
1555
LIBS libraries to pass to the linker, e.g. -l<library>
1556
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557
you have headers in a nonstandard directory <include dir>
1559
CXX C++ compiler command
1560
CXXFLAGS C++ compiler flags
1561
CXXCPP C++ preprocessor
1562
PKG_CONFIG path to pkg-config utility
1564
directories to add to pkg-config's search path
1566
path overriding pkg-config's built-in search path
1568
C compiler flags for CHECK, overriding pkg-config
1569
CHECK_LIBS linker flags for CHECK, overriding pkg-config
1571
C compiler flags for CPPUNIT, overriding pkg-config
1573
linker flags for CPPUNIT, overriding pkg-config
1575
Use these variables to override the choices made by `configure' or to help
1576
it to find libraries and programs with nonstandard names/locations.
1578
Report bugs to <subunit-dev@lists.launchpad.net>.
1583
if test "$ac_init_help" = "recursive"; then
1584
# If there are subdirs, report their specific --help.
1585
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586
test -d "$ac_dir" ||
1587
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595
# A ".." for each directory in $ac_dir_suffix.
1596
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597
case $ac_top_builddir_sub in
1598
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602
ac_abs_top_builddir=$ac_pwd
1603
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604
# for backward compatibility:
1605
ac_top_builddir=$ac_top_build_prefix
1608
.) # We are building in place.
1610
ac_top_srcdir=$ac_top_builddir_sub
1611
ac_abs_top_srcdir=$ac_pwd ;;
1612
[\\/]* | ?:[\\/]* ) # Absolute name.
1613
ac_srcdir=$srcdir$ac_dir_suffix;
1614
ac_top_srcdir=$srcdir
1615
ac_abs_top_srcdir=$srcdir ;;
1617
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618
ac_top_srcdir=$ac_top_build_prefix$srcdir
1619
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
cd "$ac_dir" || { ac_status=$?; continue; }
1624
# Check for guested configure.
1625
if test -f "$ac_srcdir/configure.gnu"; then
1627
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628
elif test -f "$ac_srcdir/configure"; then
1630
$SHELL "$ac_srcdir/configure" --help=recursive
1632
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634
cd "$ac_pwd" || { ac_status=$?; break; }
1638
test -n "$ac_init_help" && exit $ac_status
1639
if $ac_init_version; then
1641
subunit configure 0.0.7
1642
generated by GNU Autoconf 2.67
1644
Copyright (C) 2010 Free Software Foundation, Inc.
1645
This configure script is free software; the Free Software Foundation
1646
gives unlimited permission to copy, distribute and modify it.
1651
## ------------------------ ##
1652
## Autoconf initialization. ##
1653
## ------------------------ ##
1655
# ac_fn_c_try_compile LINENO
1656
# --------------------------
1657
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1658
ac_fn_c_try_compile ()
1660
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661
rm -f conftest.$ac_objext
1662
if { { ac_try="$ac_compile"
1664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665
*) ac_try_echo=$ac_try;;
1667
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668
$as_echo "$ac_try_echo"; } >&5
1669
(eval "$ac_compile") 2>conftest.err
1671
if test -s conftest.err; then
1672
grep -v '^ *+' conftest.err >conftest.er1
1673
cat conftest.er1 >&5
1674
mv -f conftest.er1 conftest.err
1676
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677
test $ac_status = 0; } && {
1678
test -z "$ac_c_werror_flag" ||
1679
test ! -s conftest.err
1680
} && test -s conftest.$ac_objext; then :
1683
$as_echo "$as_me: failed program was:" >&5
1684
sed 's/^/| /' conftest.$ac_ext >&5
1688
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689
as_fn_set_status $ac_retval
1691
} # ac_fn_c_try_compile
1693
# ac_fn_c_try_cpp LINENO
1694
# ----------------------
1695
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1698
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699
if { { ac_try="$ac_cpp conftest.$ac_ext"
1701
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702
*) ac_try_echo=$ac_try;;
1704
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705
$as_echo "$ac_try_echo"; } >&5
1706
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708
if test -s conftest.err; then
1709
grep -v '^ *+' conftest.err >conftest.er1
1710
cat conftest.er1 >&5
1711
mv -f conftest.er1 conftest.err
1713
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714
test $ac_status = 0; } > conftest.i && {
1715
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1716
test ! -s conftest.err
1720
$as_echo "$as_me: failed program was:" >&5
1721
sed 's/^/| /' conftest.$ac_ext >&5
1725
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726
as_fn_set_status $ac_retval
1730
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1731
# -------------------------------------------------------
1732
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1733
# the include files in INCLUDES and setting the cache variable VAR
1735
ac_fn_c_check_header_mongrel ()
1737
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738
if eval "test \"\${$3+set}\"" = set; then :
1739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740
$as_echo_n "checking for $2... " >&6; }
1741
if eval "test \"\${$3+set}\"" = set; then :
1742
$as_echo_n "(cached) " >&6
1745
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746
$as_echo "$ac_res" >&6; }
1748
# Is the header compilable?
1749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1750
$as_echo_n "checking $2 usability... " >&6; }
1751
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752
/* end confdefs.h. */
1756
if ac_fn_c_try_compile "$LINENO"; then :
1757
ac_header_compiler=yes
1759
ac_header_compiler=no
1761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1763
$as_echo "$ac_header_compiler" >&6; }
1765
# Is the header present?
1766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1767
$as_echo_n "checking $2 presence... " >&6; }
1768
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769
/* end confdefs.h. */
1772
if ac_fn_c_try_cpp "$LINENO"; then :
1773
ac_header_preproc=yes
1775
ac_header_preproc=no
1777
rm -f conftest.err conftest.i conftest.$ac_ext
1778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1779
$as_echo "$ac_header_preproc" >&6; }
1781
# So? What about this header?
1782
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1784
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1785
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1786
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1791
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1792
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1793
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1794
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1795
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1796
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1797
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800
( $as_echo "## ---------------------------------------------- ##
1801
## Report this to subunit-dev@lists.launchpad.net ##
1802
## ---------------------------------------------- ##"
1803
) | sed "s/^/$as_me: WARNING: /" >&2
1806
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807
$as_echo_n "checking for $2... " >&6; }
1808
if eval "test \"\${$3+set}\"" = set; then :
1809
$as_echo_n "(cached) " >&6
1811
eval "$3=\$ac_header_compiler"
1814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815
$as_echo "$ac_res" >&6; }
1817
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819
} # ac_fn_c_check_header_mongrel
1821
# ac_fn_c_try_run LINENO
1822
# ----------------------
1823
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824
# that executables *can* be run.
1827
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828
if { { ac_try="$ac_link"
1830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831
*) ac_try_echo=$ac_try;;
1833
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834
$as_echo "$ac_try_echo"; } >&5
1835
(eval "$ac_link") 2>&5
1837
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839
{ { case "(($ac_try" in
1840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841
*) ac_try_echo=$ac_try;;
1843
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844
$as_echo "$ac_try_echo"; } >&5
1845
(eval "$ac_try") 2>&5
1847
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848
test $ac_status = 0; }; }; then :
1851
$as_echo "$as_me: program exited with status $ac_status" >&5
1852
$as_echo "$as_me: failed program was:" >&5
1853
sed 's/^/| /' conftest.$ac_ext >&5
1855
ac_retval=$ac_status
1857
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
as_fn_set_status $ac_retval
1863
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864
# -------------------------------------------------------
1865
# Tests whether HEADER exists and can be compiled using the include files in
1866
# INCLUDES, setting the cache variable VAR accordingly.
1867
ac_fn_c_check_header_compile ()
1869
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871
$as_echo_n "checking for $2... " >&6; }
1872
if eval "test \"\${$3+set}\"" = set; then :
1873
$as_echo_n "(cached) " >&6
1875
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876
/* end confdefs.h. */
1880
if ac_fn_c_try_compile "$LINENO"; then :
1885
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889
$as_echo "$ac_res" >&6; }
1890
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892
} # ac_fn_c_check_header_compile
1894
# ac_fn_cxx_try_compile LINENO
1895
# ----------------------------
1896
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1897
ac_fn_cxx_try_compile ()
1899
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900
rm -f conftest.$ac_objext
1901
if { { ac_try="$ac_compile"
1903
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904
*) ac_try_echo=$ac_try;;
1906
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907
$as_echo "$ac_try_echo"; } >&5
1908
(eval "$ac_compile") 2>conftest.err
1910
if test -s conftest.err; then
1911
grep -v '^ *+' conftest.err >conftest.er1
1912
cat conftest.er1 >&5
1913
mv -f conftest.er1 conftest.err
1915
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916
test $ac_status = 0; } && {
1917
test -z "$ac_cxx_werror_flag" ||
1918
test ! -s conftest.err
1919
} && test -s conftest.$ac_objext; then :
1922
$as_echo "$as_me: failed program was:" >&5
1923
sed 's/^/| /' conftest.$ac_ext >&5
1927
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928
as_fn_set_status $ac_retval
1930
} # ac_fn_cxx_try_compile
1932
# ac_fn_c_try_link LINENO
1933
# -----------------------
1934
# Try to link conftest.$ac_ext, and return whether this succeeded.
1937
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938
rm -f conftest.$ac_objext conftest$ac_exeext
1939
if { { ac_try="$ac_link"
1941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942
*) ac_try_echo=$ac_try;;
1944
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945
$as_echo "$ac_try_echo"; } >&5
1946
(eval "$ac_link") 2>conftest.err
1948
if test -s conftest.err; then
1949
grep -v '^ *+' conftest.err >conftest.er1
1950
cat conftest.er1 >&5
1951
mv -f conftest.er1 conftest.err
1953
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954
test $ac_status = 0; } && {
1955
test -z "$ac_c_werror_flag" ||
1956
test ! -s conftest.err
1957
} && test -s conftest$ac_exeext && {
1958
test "$cross_compiling" = yes ||
1959
$as_test_x conftest$ac_exeext
1963
$as_echo "$as_me: failed program was:" >&5
1964
sed 's/^/| /' conftest.$ac_ext >&5
1968
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970
# interfere with the next link command; also delete a directory that is
1971
# left behind by Apple's compiler. We do this before executing the actions.
1972
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
as_fn_set_status $ac_retval
1976
} # ac_fn_c_try_link
1978
# ac_fn_c_check_func LINENO FUNC VAR
1979
# ----------------------------------
1980
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1981
ac_fn_c_check_func ()
1983
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985
$as_echo_n "checking for $2... " >&6; }
1986
if eval "test \"\${$3+set}\"" = set; then :
1987
$as_echo_n "(cached) " >&6
1989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990
/* end confdefs.h. */
1991
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1992
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1993
#define $2 innocuous_$2
1995
/* System header to define __stub macros and hopefully few prototypes,
1996
which can conflict with char $2 (); below.
1997
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1998
<limits.h> exists even on freestanding compilers. */
2001
# include <limits.h>
2003
# include <assert.h>
2008
/* Override any GCC internal prototype to avoid an error.
2009
Use char because int might match the return type of a GCC
2010
builtin and then its argument prototype would still apply. */
2015
/* The GNU C library defines this for functions which it implements
2016
to always fail with ENOSYS. Some functions are actually named
2017
something starting with __ and the normal name is an alias. */
2018
#if defined __stub_$2 || defined __stub___$2
2030
if ac_fn_c_try_link "$LINENO"; then :
2035
rm -f core conftest.err conftest.$ac_objext \
2036
conftest$ac_exeext conftest.$ac_ext
2039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040
$as_echo "$ac_res" >&6; }
2041
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
} # ac_fn_c_check_func
2045
# ac_fn_cxx_try_cpp LINENO
2046
# ------------------------
2047
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048
ac_fn_cxx_try_cpp ()
2050
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051
if { { ac_try="$ac_cpp conftest.$ac_ext"
2053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054
*) ac_try_echo=$ac_try;;
2056
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057
$as_echo "$ac_try_echo"; } >&5
2058
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2060
if test -s conftest.err; then
2061
grep -v '^ *+' conftest.err >conftest.er1
2062
cat conftest.er1 >&5
2063
mv -f conftest.er1 conftest.err
2065
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066
test $ac_status = 0; } > conftest.i && {
2067
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2068
test ! -s conftest.err
2072
$as_echo "$as_me: failed program was:" >&5
2073
sed 's/^/| /' conftest.$ac_ext >&5
2077
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078
as_fn_set_status $ac_retval
2080
} # ac_fn_cxx_try_cpp
2082
# ac_fn_cxx_try_link LINENO
2083
# -------------------------
2084
# Try to link conftest.$ac_ext, and return whether this succeeded.
2085
ac_fn_cxx_try_link ()
2087
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088
rm -f conftest.$ac_objext conftest$ac_exeext
2089
if { { ac_try="$ac_link"
2091
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092
*) ac_try_echo=$ac_try;;
2094
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095
$as_echo "$ac_try_echo"; } >&5
2096
(eval "$ac_link") 2>conftest.err
2098
if test -s conftest.err; then
2099
grep -v '^ *+' conftest.err >conftest.er1
2100
cat conftest.er1 >&5
2101
mv -f conftest.er1 conftest.err
2103
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104
test $ac_status = 0; } && {
2105
test -z "$ac_cxx_werror_flag" ||
2106
test ! -s conftest.err
2107
} && test -s conftest$ac_exeext && {
2108
test "$cross_compiling" = yes ||
2109
$as_test_x conftest$ac_exeext
2113
$as_echo "$as_me: failed program was:" >&5
2114
sed 's/^/| /' conftest.$ac_ext >&5
2118
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2119
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2120
# interfere with the next link command; also delete a directory that is
2121
# left behind by Apple's compiler. We do this before executing the actions.
2122
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2123
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124
as_fn_set_status $ac_retval
2126
} # ac_fn_cxx_try_link
2128
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2129
# -------------------------------------------
2130
# Tests whether TYPE exists after having included INCLUDES, setting cache
2131
# variable VAR accordingly.
2132
ac_fn_c_check_type ()
2134
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136
$as_echo_n "checking for $2... " >&6; }
2137
if eval "test \"\${$3+set}\"" = set; then :
2138
$as_echo_n "(cached) " >&6
2141
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142
/* end confdefs.h. */
2153
if ac_fn_c_try_compile "$LINENO"; then :
2154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155
/* end confdefs.h. */
2166
if ac_fn_c_try_compile "$LINENO"; then :
2171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177
$as_echo "$ac_res" >&6; }
2178
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180
} # ac_fn_c_check_type
2182
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2183
# --------------------------------------------
2184
# Tries to find the compile-time value of EXPR in a program that includes
2185
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2187
ac_fn_c_compute_int ()
2189
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190
if test "$cross_compiling" = yes; then
2191
# Depending upon the size, compute the lo and hi bounds.
2192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193
/* end confdefs.h. */
2198
static int test_array [1 - 2 * !(($2) >= 0)];
2205
if ac_fn_c_try_compile "$LINENO"; then :
2208
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209
/* end confdefs.h. */
2214
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2221
if ac_fn_c_try_compile "$LINENO"; then :
2222
ac_hi=$ac_mid; break
2224
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2225
if test $ac_lo -le $ac_mid; then
2229
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235
/* end confdefs.h. */
2240
static int test_array [1 - 2 * !(($2) < 0)];
2247
if ac_fn_c_try_compile "$LINENO"; then :
2250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251
/* end confdefs.h. */
2256
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2263
if ac_fn_c_try_compile "$LINENO"; then :
2264
ac_lo=$ac_mid; break
2266
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2267
if test $ac_mid -le $ac_hi; then
2271
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2273
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281
# Binary search between lo and hi bounds.
2282
while test "x$ac_lo" != "x$ac_hi"; do
2283
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285
/* end confdefs.h. */
2290
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2297
if ac_fn_c_try_compile "$LINENO"; then :
2300
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310
/* end confdefs.h. */
2312
static long int longval () { return $2; }
2313
static unsigned long int ulongval () { return $2; }
2320
FILE *f = fopen ("conftest.val", "w");
2325
long int i = longval ();
2328
fprintf (f, "%ld", i);
2332
unsigned long int i = ulongval ();
2335
fprintf (f, "%lu", i);
2337
/* Do not output a trailing newline, as this causes \r\n confusion
2338
on some platforms. */
2339
return ferror (f) || fclose (f) != 0;
2345
if ac_fn_c_try_run "$LINENO"; then :
2346
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2350
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2351
conftest.$ac_objext conftest.beam conftest.$ac_ext
2355
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356
as_fn_set_status $ac_retval
2358
} # ac_fn_c_compute_int
2359
cat >config.log <<_ACEOF
2360
This file contains any messages produced by compilers while
2361
running configure, to aid debugging if configure makes a mistake.
2363
It was created by subunit $as_me 0.0.7, which was
2364
generated by GNU Autoconf 2.67. Invocation command line was
2376
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2377
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2378
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2379
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2380
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2382
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2383
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2385
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2386
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2387
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2388
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2389
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2390
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2391
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399
test -z "$as_dir" && as_dir=.
2400
$as_echo "PATH: $as_dir"
2416
# Keep a trace of the command line.
2417
# Strip out --no-create and --no-recursion so they do not pile up.
2418
# Strip out --silent because we don't want to record it for future runs.
2419
# Also quote any args containing shell meta-characters.
2420
# Make two passes to allow for proper duplicate-argument suppression.
2424
ac_must_keep_next=false
2430
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2431
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2432
| -silent | --silent | --silen | --sile | --sil)
2435
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2438
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2440
as_fn_append ac_configure_args1 " '$ac_arg'"
2441
if test $ac_must_keep_next = true; then
2442
ac_must_keep_next=false # Got value, back to normal.
2445
*=* | --config-cache | -C | -disable-* | --disable-* \
2446
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2447
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2448
| -with-* | --with-* | -without-* | --without-* | --x)
2449
case "$ac_configure_args0 " in
2450
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2453
-* ) ac_must_keep_next=true ;;
2456
as_fn_append ac_configure_args " '$ac_arg'"
2461
{ ac_configure_args0=; unset ac_configure_args0;}
2462
{ ac_configure_args1=; unset ac_configure_args1;}
2464
# When interrupted or exit'd, cleanup temporary files, and complete
2465
# config.log. We remove comments because anyway the quotes in there
2466
# would cause problems or look ugly.
2467
# WARNING: Use '\'' to represent an apostrophe within the trap.
2468
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2469
trap 'exit_status=$?
2470
# Save into config.log some information that might help in debugging.
2474
$as_echo "## ---------------- ##
2475
## Cache variables. ##
2476
## ---------------- ##"
2478
# The following way of writing the cache mishandles newlines in values,
2480
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2481
eval ac_val=\$$ac_var
2485
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2486
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2489
_ | IFS | as_nl) ;; #(
2490
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2491
*) { eval $ac_var=; unset $ac_var;} ;;
2496
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2497
*${as_nl}ac_space=\ *)
2499
"s/'\''/'\''\\\\'\'''\''/g;
2500
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2503
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2510
$as_echo "## ----------------- ##
2511
## Output variables. ##
2512
## ----------------- ##"
2514
for ac_var in $ac_subst_vars
2516
eval ac_val=\$$ac_var
2518
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520
$as_echo "$ac_var='\''$ac_val'\''"
2524
if test -n "$ac_subst_files"; then
2525
$as_echo "## ------------------- ##
2526
## File substitutions. ##
2527
## ------------------- ##"
2529
for ac_var in $ac_subst_files
2531
eval ac_val=\$$ac_var
2533
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2535
$as_echo "$ac_var='\''$ac_val'\''"
2540
if test -s confdefs.h; then
2541
$as_echo "## ----------- ##
2548
test "$ac_signal" != 0 &&
2549
$as_echo "$as_me: caught signal $ac_signal"
2550
$as_echo "$as_me: exit $exit_status"
2552
rm -f core *.core core.conftest.* &&
2553
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2556
for ac_signal in 1 2 13 15; do
2557
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2561
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2562
rm -f -r conftest* confdefs.h
2564
$as_echo "/* confdefs.h */" > confdefs.h
2566
# Predefined preprocessor variables.
2568
cat >>confdefs.h <<_ACEOF
2569
#define PACKAGE_NAME "$PACKAGE_NAME"
2572
cat >>confdefs.h <<_ACEOF
2573
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576
cat >>confdefs.h <<_ACEOF
2577
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2580
cat >>confdefs.h <<_ACEOF
2581
#define PACKAGE_STRING "$PACKAGE_STRING"
2584
cat >>confdefs.h <<_ACEOF
2585
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588
cat >>confdefs.h <<_ACEOF
2589
#define PACKAGE_URL "$PACKAGE_URL"
2593
# Let the site file select an alternate cache file if it wants to.
2594
# Prefer an explicitly selected file to automatically selected ones.
2597
if test -n "$CONFIG_SITE"; then
2598
# We do not want a PATH search for config.site.
2599
case $CONFIG_SITE in #((
2600
-*) ac_site_file1=./$CONFIG_SITE;;
2601
*/*) ac_site_file1=$CONFIG_SITE;;
2602
*) ac_site_file1=./$CONFIG_SITE;;
2604
elif test "x$prefix" != xNONE; then
2605
ac_site_file1=$prefix/share/config.site
2606
ac_site_file2=$prefix/etc/config.site
2608
ac_site_file1=$ac_default_prefix/share/config.site
2609
ac_site_file2=$ac_default_prefix/etc/config.site
2611
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613
test "x$ac_site_file" = xNONE && continue
2614
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617
sed 's/^/| /' "$ac_site_file" >&5
2619
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2620
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2621
as_fn_error $? "failed to load site script $ac_site_file
2622
See \`config.log' for more details" "$LINENO" 5 ; }
2626
if test -r "$cache_file"; then
2627
# Some versions of bash will fail to source /dev/null (special files
2628
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2630
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631
$as_echo "$as_me: loading cache $cache_file" >&6;}
2633
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2634
*) . "./$cache_file";;
2638
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639
$as_echo "$as_me: creating cache $cache_file" >&6;}
2643
# Check that the precious variables saved in the cache have kept the same
2645
ac_cache_corrupted=false
2646
for ac_var in $ac_precious_vars; do
2647
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648
eval ac_new_set=\$ac_env_${ac_var}_set
2649
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650
eval ac_new_val=\$ac_env_${ac_var}_value
2651
case $ac_old_set,$ac_new_set in
2653
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655
ac_cache_corrupted=: ;;
2657
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659
ac_cache_corrupted=: ;;
2662
if test "x$ac_old_val" != "x$ac_new_val"; then
2663
# differences in whitespace do not lead to failure.
2664
ac_old_val_w=`echo x $ac_old_val`
2665
ac_new_val_w=`echo x $ac_new_val`
2666
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669
ac_cache_corrupted=:
2671
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673
eval $ac_var=\$ac_old_val
2675
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2676
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2677
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2678
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2681
# Pass precious variables to config.status.
2682
if test "$ac_new_set" = set; then
2684
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685
*) ac_arg=$ac_var=$ac_new_val ;;
2687
case " $ac_configure_args " in
2688
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2689
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2693
if $ac_cache_corrupted; then
2694
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2700
## -------------------- ##
2701
## Main body of script. ##
2702
## -------------------- ##
2705
ac_cpp='$CPP $CPPFLAGS'
2706
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712
am__api_version='1.11'
2715
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2716
if test -f "$ac_dir/install-sh"; then
2718
ac_install_sh="$ac_aux_dir/install-sh -c"
2720
elif test -f "$ac_dir/install.sh"; then
2722
ac_install_sh="$ac_aux_dir/install.sh -c"
2724
elif test -f "$ac_dir/shtool"; then
2726
ac_install_sh="$ac_aux_dir/shtool install -c"
2730
if test -z "$ac_aux_dir"; then
2731
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2734
# These three variables are undocumented and unsupported,
2735
# and are intended to be withdrawn in a future Autoconf release.
2736
# They can cause serious problems if a builder's source tree is in a directory
2737
# whose full name contains unusual characters.
2738
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2739
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2740
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2743
# Find a good install program. We prefer a C program (faster),
2744
# so one script is as good as another. But avoid the broken or
2745
# incompatible versions:
2746
# SysV /etc/install, /usr/sbin/install
2747
# SunOS /usr/etc/install
2748
# IRIX /sbin/install
2750
# AmigaOS /C/install, which installs bootblocks on floppy discs
2751
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2752
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2753
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2754
# OS/2's system install, which has a completely different semantic
2755
# ./install, which can be erroneously created by make from ./install.sh.
2756
# Reject install programs that cannot install multiple files.
2757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2758
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2759
if test -z "$INSTALL"; then
2760
if test "${ac_cv_path_install+set}" = set; then :
2761
$as_echo_n "(cached) " >&6
2763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767
test -z "$as_dir" && as_dir=.
2768
# Account for people who put trailing slashes in PATH elements.
2769
case $as_dir/ in #((
2770
./ | .// | /[cC]/* | \
2771
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2772
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2775
# OSF1 and SCO ODT 3.0 have their own names for install.
2776
# Don't use installbsd from OSF since it installs stuff as root
2778
for ac_prog in ginstall scoinst install; do
2779
for ac_exec_ext in '' $ac_executable_extensions; do
2780
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2781
if test $ac_prog = install &&
2782
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2783
# AIX install. It has an incompatible calling convention.
2785
elif test $ac_prog = install &&
2786
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2787
# program-specific install script used by HP pwplus--don't use.
2790
rm -rf conftest.one conftest.two conftest.dir
2791
echo one > conftest.one
2792
echo two > conftest.two
2794
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2795
test -s conftest.one && test -s conftest.two &&
2796
test -s conftest.dir/conftest.one &&
2797
test -s conftest.dir/conftest.two
2799
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2812
rm -rf conftest.one conftest.two conftest.dir
2815
if test "${ac_cv_path_install+set}" = set; then
2816
INSTALL=$ac_cv_path_install
2818
# As a last resort, use the slow shell script. Don't cache a
2819
# value for INSTALL within a source directory, because that will
2820
# break other packages using the cache if that directory is
2821
# removed, or if the value is a relative name.
2822
INSTALL=$ac_install_sh
2825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2826
$as_echo "$INSTALL" >&6; }
2828
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2829
# It thinks the first close brace ends the variable substitution.
2830
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2832
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2834
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2837
$as_echo_n "checking whether build environment is sane... " >&6; }
2840
echo timestamp > conftest.file
2841
# Reject unsafe characters in $srcdir or the absolute working directory
2842
# name. Accept space and tab only in the latter.
2846
*[\\\"\#\$\&\'\`$am_lf]*)
2847
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2850
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2851
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2854
# Do `set' in a subshell so we don't clobber the current shell's
2855
# arguments. Must try -L first in case configure is actually a
2856
# symlink; some systems play weird games with the mod time of symlinks
2857
# (eg FreeBSD returns the mod time of the symlink's containing
2860
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2861
if test "$*" = "X"; then
2863
set X `ls -t "$srcdir/configure" conftest.file`
2866
if test "$*" != "X $srcdir/configure conftest.file" \
2867
&& test "$*" != "X conftest.file $srcdir/configure"; then
2869
# If neither matched, then we have a broken ls. This can happen
2870
# if, for instance, CONFIG_SHELL is bash and it inherits a
2871
# broken ls alias from the environment. This has actually
2872
# happened. Such a system could not be considered "sane".
2873
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2874
alias in your environment" "$LINENO" 5
2877
test "$2" = conftest.file
2883
as_fn_error $? "newly created file is older than distributed files!
2884
Check your system clock" "$LINENO" 5
2886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2887
$as_echo "yes" >&6; }
2888
test "$program_prefix" != NONE &&
2889
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2890
# Use a double $ so make ignores it.
2891
test "$program_suffix" != NONE &&
2892
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2893
# Double any \ or $.
2894
# By default was `s,x,x', remove it if useless.
2895
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2896
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2898
# expand $ac_aux_dir to an absolute path
2899
am_aux_dir=`cd $ac_aux_dir && pwd`
2901
if test x"${MISSING+set}" != xset; then
2904
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2906
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2909
# Use eval to expand $SHELL
2910
if eval "$MISSING --run true"; then
2911
am_missing_run="$MISSING --run "
2914
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2915
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2918
if test x"${install_sh}" != xset; then
2921
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2923
install_sh="\${SHELL} $am_aux_dir/install-sh"
2927
# Installed binaries are usually stripped using `strip' when the user
2928
# run `make install-strip'. However `strip' might not be the right
2929
# tool to use in cross-compilation environments, therefore Automake
2930
# will honor the `STRIP' environment variable to overrule this program.
2931
if test "$cross_compiling" != no; then
2932
if test -n "$ac_tool_prefix"; then
2933
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2934
set dummy ${ac_tool_prefix}strip; ac_word=$2
2935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936
$as_echo_n "checking for $ac_word... " >&6; }
2937
if test "${ac_cv_prog_STRIP+set}" = set; then :
2938
$as_echo_n "(cached) " >&6
2940
if test -n "$STRIP"; then
2941
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2943
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947
test -z "$as_dir" && as_dir=.
2948
for ac_exec_ext in '' $ac_executable_extensions; do
2949
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2951
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960
STRIP=$ac_cv_prog_STRIP
2961
if test -n "$STRIP"; then
2962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2963
$as_echo "$STRIP" >&6; }
2965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966
$as_echo "no" >&6; }
2971
if test -z "$ac_cv_prog_STRIP"; then
2973
# Extract the first word of "strip", so it can be a program name with args.
2974
set dummy strip; ac_word=$2
2975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976
$as_echo_n "checking for $ac_word... " >&6; }
2977
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2978
$as_echo_n "(cached) " >&6
2980
if test -n "$ac_ct_STRIP"; then
2981
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987
test -z "$as_dir" && as_dir=.
2988
for ac_exec_ext in '' $ac_executable_extensions; do
2989
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990
ac_cv_prog_ac_ct_STRIP="strip"
2991
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3001
if test -n "$ac_ct_STRIP"; then
3002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3003
$as_echo "$ac_ct_STRIP" >&6; }
3005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006
$as_echo "no" >&6; }
3009
if test "x$ac_ct_STRIP" = x; then
3012
case $cross_compiling:$ac_tool_warned in
3014
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016
ac_tool_warned=yes ;;
3021
STRIP="$ac_cv_prog_STRIP"
3025
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3028
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3029
if test -z "$MKDIR_P"; then
3030
if test "${ac_cv_path_mkdir+set}" = set; then :
3031
$as_echo_n "(cached) " >&6
3033
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3037
test -z "$as_dir" && as_dir=.
3038
for ac_prog in mkdir gmkdir; do
3039
for ac_exec_ext in '' $ac_executable_extensions; do
3040
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3041
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3042
'mkdir (GNU coreutils) '* | \
3043
'mkdir (coreutils) '* | \
3044
'mkdir (fileutils) '4.1*)
3045
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3055
test -d ./--version && rmdir ./--version
3056
if test "${ac_cv_path_mkdir+set}" = set; then
3057
MKDIR_P="$ac_cv_path_mkdir -p"
3059
# As a last resort, use the slow shell script. Don't cache a
3060
# value for MKDIR_P within a source directory, because that will
3061
# break other packages using the cache if that directory is
3062
# removed, or if the value is a relative name.
3063
MKDIR_P="$ac_install_sh -d"
3066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3067
$as_echo "$MKDIR_P" >&6; }
3071
[\\/$]* | ?:[\\/]*) ;;
3072
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3075
for ac_prog in gawk mawk nawk awk
3077
# Extract the first word of "$ac_prog", so it can be a program name with args.
3078
set dummy $ac_prog; ac_word=$2
3079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080
$as_echo_n "checking for $ac_word... " >&6; }
3081
if test "${ac_cv_prog_AWK+set}" = set; then :
3082
$as_echo_n "(cached) " >&6
3084
if test -n "$AWK"; then
3085
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091
test -z "$as_dir" && as_dir=.
3092
for ac_exec_ext in '' $ac_executable_extensions; do
3093
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094
ac_cv_prog_AWK="$ac_prog"
3095
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105
if test -n "$AWK"; then
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3107
$as_echo "$AWK" >&6; }
3109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110
$as_echo "no" >&6; }
3114
test -n "$AWK" && break
3117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3118
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3120
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3121
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3122
$as_echo_n "(cached) " >&6
3124
cat >conftest.make <<\_ACEOF
3127
@echo '@@@%%%=$(MAKE)=@@@%%%'
3129
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3130
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3132
eval ac_cv_prog_make_${ac_make}_set=yes;;
3134
eval ac_cv_prog_make_${ac_make}_set=no;;
3138
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140
$as_echo "yes" >&6; }
3143
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144
$as_echo "no" >&6; }
3145
SET_MAKE="MAKE=${MAKE-make}"
3148
rm -rf .tst 2>/dev/null
3149
mkdir .tst 2>/dev/null
3150
if test -d .tst; then
3155
rmdir .tst 2>/dev/null
3157
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3158
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3159
# is not polluted with repeated "-I."
3160
am__isrc=' -I$(srcdir)'
3161
# test to see if srcdir already configured
3162
if test -f $srcdir/config.status; then
3163
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3167
# test whether we have cygpath
3168
if test -z "$CYGPATH_W"; then
3169
if (cygpath --version) >/dev/null 2>/dev/null; then
3170
CYGPATH_W='cygpath -w'
3177
# Define the identity of the package.
3182
cat >>confdefs.h <<_ACEOF
3183
#define PACKAGE "$PACKAGE"
3187
cat >>confdefs.h <<_ACEOF
3188
#define VERSION "$VERSION"
3191
# Some tools Automake needs.
3193
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3196
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3199
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3202
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3205
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3207
# We need awk for the "check" target. The system "awk" is bad on
3209
# Always define AMTAR for backward compatibility.
3211
AMTAR=${AMTAR-"${am_missing_run}tar"}
3213
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3220
SUBUNIT_MAJOR_VERSION=0
3221
SUBUNIT_MINOR_VERSION=0
3222
SUBUNIT_MICRO_VERSION=7
3223
SUBUNIT_VERSION=0.0.7
3228
DEPDIR="${am__leading_dot}deps"
3230
ac_config_commands="$ac_config_commands depfiles"
3233
am_make=${MAKE-make}
3234
cat > confinc << 'END'
3236
@echo this is the am__doit target
3239
# If we don't find an include directive, just comment out the code.
3240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3241
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3245
# First try GNU make style include.
3246
echo "include confinc" > confmf
3247
# Ignore all kinds of additional output from `make'.
3248
case `$am_make -s -f confmf 2> /dev/null` in #(
3249
*the\ am__doit\ target*)
3255
# Now try BSD make style include.
3256
if test "$am__include" = "#"; then
3257
echo '.include "confinc"' > confmf
3258
case `$am_make -s -f confmf 2> /dev/null` in #(
3259
*the\ am__doit\ target*)
3260
am__include=.include
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3269
$as_echo "$_am_result" >&6; }
3270
rm -f confinc confmf
3272
# Check whether --enable-dependency-tracking was given.
3273
if test "${enable_dependency_tracking+set}" = set; then :
3274
enableval=$enable_dependency_tracking;
3277
if test "x$enable_dependency_tracking" != xno; then
3278
am_depcomp="$ac_aux_dir/depcomp"
3281
if test "x$enable_dependency_tracking" != xno; then
3291
ac_cpp='$CPP $CPPFLAGS'
3292
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295
if test -n "$ac_tool_prefix"; then
3296
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3297
set dummy ${ac_tool_prefix}gcc; 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}gcc"
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; }
3334
if test -z "$ac_cv_prog_CC"; then
3336
# Extract the first word of "gcc", so it can be a program name with args.
3337
set dummy gcc; ac_word=$2
3338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339
$as_echo_n "checking for $ac_word... " >&6; }
3340
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3341
$as_echo_n "(cached) " >&6
3343
if test -n "$ac_ct_CC"; then
3344
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350
test -z "$as_dir" && as_dir=.
3351
for ac_exec_ext in '' $ac_executable_extensions; do
3352
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353
ac_cv_prog_ac_ct_CC="gcc"
3354
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364
if test -n "$ac_ct_CC"; then
3365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366
$as_echo "$ac_ct_CC" >&6; }
3368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369
$as_echo "no" >&6; }
3372
if test "x$ac_ct_CC" = x; then
3375
case $cross_compiling:$ac_tool_warned in
3377
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3378
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3379
ac_tool_warned=yes ;;
3387
if test -z "$CC"; then
3388
if test -n "$ac_tool_prefix"; then
3389
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3390
set dummy ${ac_tool_prefix}cc; ac_word=$2
3391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392
$as_echo_n "checking for $ac_word... " >&6; }
3393
if test "${ac_cv_prog_CC+set}" = set; then :
3394
$as_echo_n "(cached) " >&6
3396
if test -n "$CC"; then
3397
ac_cv_prog_CC="$CC" # Let the user override the test.
3399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403
test -z "$as_dir" && as_dir=.
3404
for ac_exec_ext in '' $ac_executable_extensions; do
3405
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406
ac_cv_prog_CC="${ac_tool_prefix}cc"
3407
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417
if test -n "$CC"; then
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3419
$as_echo "$CC" >&6; }
3421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422
$as_echo "no" >&6; }
3428
if test -z "$CC"; then
3429
# Extract the first word of "cc", so it can be a program name with args.
3430
set dummy cc; ac_word=$2
3431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432
$as_echo_n "checking for $ac_word... " >&6; }
3433
if test "${ac_cv_prog_CC+set}" = set; then :
3434
$as_echo_n "(cached) " >&6
3436
if test -n "$CC"; then
3437
ac_cv_prog_CC="$CC" # Let the user override the test.
3440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444
test -z "$as_dir" && as_dir=.
3445
for ac_exec_ext in '' $ac_executable_extensions; do
3446
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3448
ac_prog_rejected=yes
3452
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459
if test $ac_prog_rejected = yes; then
3460
# We found a bogon in the path, so make sure we never use it.
3461
set dummy $ac_cv_prog_CC
3463
if test $# != 0; then
3464
# We chose a different compiler from the bogus one.
3465
# However, it has the same basename, so the bogon will be chosen
3466
# first if we set CC to just the basename; use the full file name.
3468
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474
if test -n "$CC"; then
3475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476
$as_echo "$CC" >&6; }
3478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479
$as_echo "no" >&6; }
3484
if test -z "$CC"; then
3485
if test -n "$ac_tool_prefix"; then
3486
for ac_prog in cl.exe
3488
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491
$as_echo_n "checking for $ac_word... " >&6; }
3492
if test "${ac_cv_prog_CC+set}" = set; then :
3493
$as_echo_n "(cached) " >&6
3495
if test -n "$CC"; then
3496
ac_cv_prog_CC="$CC" # Let the user override the test.
3498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502
test -z "$as_dir" && as_dir=.
3503
for ac_exec_ext in '' $ac_executable_extensions; do
3504
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516
if test -n "$CC"; then
3517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518
$as_echo "$CC" >&6; }
3520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521
$as_echo "no" >&6; }
3525
test -n "$CC" && break
3528
if test -z "$CC"; then
3530
for ac_prog in cl.exe
3532
# Extract the first word of "$ac_prog", so it can be a program name with args.
3533
set dummy $ac_prog; ac_word=$2
3534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535
$as_echo_n "checking for $ac_word... " >&6; }
3536
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3537
$as_echo_n "(cached) " >&6
3539
if test -n "$ac_ct_CC"; then
3540
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546
test -z "$as_dir" && as_dir=.
3547
for ac_exec_ext in '' $ac_executable_extensions; do
3548
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549
ac_cv_prog_ac_ct_CC="$ac_prog"
3550
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560
if test -n "$ac_ct_CC"; then
3561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562
$as_echo "$ac_ct_CC" >&6; }
3564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565
$as_echo "no" >&6; }
3569
test -n "$ac_ct_CC" && break
3572
if test "x$ac_ct_CC" = x; then
3575
case $cross_compiling:$ac_tool_warned in
3577
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579
ac_tool_warned=yes ;;
3588
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590
as_fn_error $? "no acceptable C compiler found in \$PATH
3591
See \`config.log' for more details" "$LINENO" 5 ; }
3593
# Provide some information about the compiler.
3594
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3597
for ac_option in --version -v -V -qversion; do
3598
{ { ac_try="$ac_compiler $ac_option >&5"
3600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601
*) ac_try_echo=$ac_try;;
3603
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3604
$as_echo "$ac_try_echo"; } >&5
3605
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3607
if test -s conftest.err; then
3609
... rest of stderr output deleted ...
3610
10q' conftest.err >conftest.er1
3611
cat conftest.er1 >&5
3613
rm -f conftest.er1 conftest.err
3614
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615
test $ac_status = 0; }
3618
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619
/* end confdefs.h. */
3629
ac_clean_files_save=$ac_clean_files
3630
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3631
# Try to create an executable without -o first, disregard a.out.
3632
# It will help us diagnose broken compilers, and finding out an intuition
3634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3635
$as_echo_n "checking whether the C compiler works... " >&6; }
3636
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3638
# The possible output files:
3639
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3642
for ac_file in $ac_files
3645
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3646
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3651
if { { ac_try="$ac_link_default"
3653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654
*) ac_try_echo=$ac_try;;
3656
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657
$as_echo "$ac_try_echo"; } >&5
3658
(eval "$ac_link_default") 2>&5
3660
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661
test $ac_status = 0; }; then :
3662
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3663
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3664
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3665
# so that the user can short-circuit this test for compilers unknown to
3667
for ac_file in $ac_files ''
3669
test -f "$ac_file" || continue
3671
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3674
# We found the default executable, but exeext='' is most
3678
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3680
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682
# We set ac_cv_exeext here because the later test for it is not
3683
# safe: cross compilers may not add the suffix if given an `-o'
3684
# argument, so we may need to know it at that point already.
3685
# Even if this section looks crufty: it has the advantage of
3692
test "$ac_cv_exeext" = no && ac_cv_exeext=
3697
if test -z "$ac_file"; then :
3698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699
$as_echo "no" >&6; }
3700
$as_echo "$as_me: failed program was:" >&5
3701
sed 's/^/| /' conftest.$ac_ext >&5
3703
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705
as_fn_error 77 "C compiler cannot create executables
3706
See \`config.log' for more details" "$LINENO" 5 ; }
3708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3709
$as_echo "yes" >&6; }
3711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3712
$as_echo_n "checking for C compiler default output file name... " >&6; }
3713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3714
$as_echo "$ac_file" >&6; }
3715
ac_exeext=$ac_cv_exeext
3717
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3718
ac_clean_files=$ac_clean_files_save
3719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3720
$as_echo_n "checking for suffix of executables... " >&6; }
3721
if { { ac_try="$ac_link"
3723
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724
*) ac_try_echo=$ac_try;;
3726
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727
$as_echo "$ac_try_echo"; } >&5
3728
(eval "$ac_link") 2>&5
3730
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731
test $ac_status = 0; }; then :
3732
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3733
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3734
# work properly (i.e., refer to `conftest.exe'), while it won't with
3736
for ac_file in conftest.exe conftest conftest.*; do
3737
test -f "$ac_file" || continue
3739
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3749
See \`config.log' for more details" "$LINENO" 5 ; }
3751
rm -f conftest conftest$ac_cv_exeext
3752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3753
$as_echo "$ac_cv_exeext" >&6; }
3755
rm -f conftest.$ac_ext
3756
EXEEXT=$ac_cv_exeext
3758
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759
/* end confdefs.h. */
3764
FILE *f = fopen ("conftest.out", "w");
3765
return ferror (f) || fclose (f) != 0;
3771
ac_clean_files="$ac_clean_files conftest.out"
3772
# Check that the compiler produces executables we can run. If not, either
3773
# the compiler is broken, or we cross compile.
3774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3775
$as_echo_n "checking whether we are cross compiling... " >&6; }
3776
if test "$cross_compiling" != yes; then
3777
{ { ac_try="$ac_link"
3779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780
*) ac_try_echo=$ac_try;;
3782
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783
$as_echo "$ac_try_echo"; } >&5
3784
(eval "$ac_link") 2>&5
3786
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787
test $ac_status = 0; }
3788
if { ac_try='./conftest$ac_cv_exeext'
3789
{ { case "(($ac_try" in
3790
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791
*) ac_try_echo=$ac_try;;
3793
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794
$as_echo "$ac_try_echo"; } >&5
3795
(eval "$ac_try") 2>&5
3797
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798
test $ac_status = 0; }; }; then
3801
if test "$cross_compiling" = maybe; then
3804
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806
as_fn_error $? "cannot run C compiled programs.
3807
If you meant to cross compile, use \`--host'.
3808
See \`config.log' for more details" "$LINENO" 5 ; }
3812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3813
$as_echo "$cross_compiling" >&6; }
3815
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3816
ac_clean_files=$ac_clean_files_save
3817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3818
$as_echo_n "checking for suffix of object files... " >&6; }
3819
if test "${ac_cv_objext+set}" = set; then :
3820
$as_echo_n "(cached) " >&6
3822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823
/* end confdefs.h. */
3833
rm -f conftest.o conftest.obj
3834
if { { ac_try="$ac_compile"
3836
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837
*) ac_try_echo=$ac_try;;
3839
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840
$as_echo "$ac_try_echo"; } >&5
3841
(eval "$ac_compile") 2>&5
3843
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844
test $ac_status = 0; }; then :
3845
for ac_file in conftest.o conftest.obj conftest.*; do
3846
test -f "$ac_file" || continue;
3848
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3849
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3854
$as_echo "$as_me: failed program was:" >&5
3855
sed 's/^/| /' conftest.$ac_ext >&5
3857
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859
as_fn_error $? "cannot compute suffix of object files: cannot compile
3860
See \`config.log' for more details" "$LINENO" 5 ; }
3862
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3865
$as_echo "$ac_cv_objext" >&6; }
3866
OBJEXT=$ac_cv_objext
3868
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3869
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3870
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3871
$as_echo_n "(cached) " >&6
3873
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874
/* end confdefs.h. */
3887
if ac_fn_c_try_compile "$LINENO"; then :
3892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3897
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3898
if test $ac_compiler_gnu = yes; then
3903
ac_test_CFLAGS=${CFLAGS+set}
3904
ac_save_CFLAGS=$CFLAGS
3905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3906
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3907
if test "${ac_cv_prog_cc_g+set}" = set; then :
3908
$as_echo_n "(cached) " >&6
3910
ac_save_c_werror_flag=$ac_c_werror_flag
3911
ac_c_werror_flag=yes
3914
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915
/* end confdefs.h. */
3925
if ac_fn_c_try_compile "$LINENO"; then :
3929
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930
/* end confdefs.h. */
3940
if ac_fn_c_try_compile "$LINENO"; then :
3943
ac_c_werror_flag=$ac_save_c_werror_flag
3945
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946
/* end confdefs.h. */
3956
if ac_fn_c_try_compile "$LINENO"; then :
3959
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964
ac_c_werror_flag=$ac_save_c_werror_flag
3966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3967
$as_echo "$ac_cv_prog_cc_g" >&6; }
3968
if test "$ac_test_CFLAGS" = set; then
3969
CFLAGS=$ac_save_CFLAGS
3970
elif test $ac_cv_prog_cc_g = yes; then
3971
if test "$GCC" = yes; then
3977
if test "$GCC" = yes; then
3983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3984
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3985
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3986
$as_echo_n "(cached) " >&6
3988
ac_cv_prog_cc_c89=no
3990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991
/* end confdefs.h. */
3994
#include <sys/types.h>
3995
#include <sys/stat.h>
3996
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3997
struct buf { int x; };
3998
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3999
static char *e (p, i)
4005
static char *f (char * (*g) (char **, int), char **p, ...)
4010
s = g (p, va_arg (v,int));
4015
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4016
function prototypes and stuff, but not '\xHH' hex character constants.
4017
These don't provoke an error unfortunately, instead are silently treated
4018
as 'x'. The following induces an error, until -std is added to get
4019
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4020
array size at least. It's necessary to write '\x00'==0 to get something
4021
that's true only with -std. */
4022
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4024
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4025
inside strings and character constants. */
4027
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4029
int test (int i, double x);
4030
struct s1 {int (*f) (int a);};
4031
struct s2 {int (*f) (double a);};
4032
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4043
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4044
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046
CC="$ac_save_CC $ac_arg"
4047
if ac_fn_c_try_compile "$LINENO"; then :
4048
ac_cv_prog_cc_c89=$ac_arg
4050
rm -f core conftest.err conftest.$ac_objext
4051
test "x$ac_cv_prog_cc_c89" != "xno" && break
4053
rm -f conftest.$ac_ext
4058
case "x$ac_cv_prog_cc_c89" in
4060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4061
$as_echo "none needed" >&6; } ;;
4063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4064
$as_echo "unsupported" >&6; } ;;
4066
CC="$CC $ac_cv_prog_cc_c89"
4067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4068
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070
if test "x$ac_cv_prog_cc_c89" != xno; then :
4075
ac_cpp='$CPP $CPPFLAGS'
4076
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080
depcc="$CC" am_compiler_list=
4082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4083
$as_echo_n "checking dependency style of $depcc... " >&6; }
4084
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4085
$as_echo_n "(cached) " >&6
4087
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4088
# We make a subdir and do the tests there. Otherwise we can end up
4089
# making bogus files that we don't know about and never remove. For
4090
# instance it was reported that on HP-UX the gcc test will end up
4091
# making a dummy file named `D' -- because `-MD' means `put the output
4094
# Copy depcomp to subdir because otherwise we won't find it if we're
4095
# using a relative directory.
4096
cp "$am_depcomp" conftest.dir
4098
# We will build objects and dependencies in a subdirectory because
4099
# it helps to detect inapplicable dependency modes. For instance
4100
# both Tru64's cc and ICC support -MD to output dependencies as a
4101
# side effect of compilation, but ICC will put the dependencies in
4102
# the current directory while Tru64 will put them in the object
4106
am_cv_CC_dependencies_compiler_type=none
4107
if test "$am_compiler_list" = ""; then
4108
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4111
case " $depcc " in #(
4112
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4115
for depmode in $am_compiler_list; do
4116
# Setup a source with many dependencies, because some compilers
4117
# like to wrap large dependency lists on column 80 (with \), and
4118
# we should not choose a depcomp mode which is confused by this.
4120
# We need to recreate these files for each test, as the compiler may
4121
# overwrite some of them when testing with obscure command lines.
4122
# This happens at least with the AIX C compiler.
4124
for i in 1 2 3 4 5 6; do
4125
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4126
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4127
# Solaris 8's {/usr,}/bin/sh.
4128
touch sub/conftst$i.h
4130
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4133
# mode. It turns out that the SunPro C++ compiler does not properly
4134
# handle `-M -o', and we need to detect this. Also, some Intel
4135
# versions had trouble with output in subdirs
4136
am__obj=sub/conftest.${OBJEXT-o}
4137
am__minus_obj="-o $am__obj"
4140
# This depmode causes a compiler race in universal mode.
4141
test "$am__universal" = false || continue
4144
# after this tag, mechanisms are not by side-effect, so they'll
4145
# only be used when explicitly requested
4146
if test "x$enable_dependency_tracking" = xyes; then
4152
msvisualcpp | msvcmsys)
4153
# This compiler won't grok `-c -o', but also, the minuso test has
4154
# not run yet. These depmodes are late enough in the game, and
4155
# so weak that their functioning should not be impacted.
4156
am__obj=conftest.${OBJEXT-o}
4161
if depmode=$depmode \
4162
source=sub/conftest.c object=$am__obj \
4163
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4164
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4165
>/dev/null 2>conftest.err &&
4166
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4167
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4168
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4169
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4170
# icc doesn't choke on unknown options, it will just issue warnings
4171
# or remarks (even with -Werror). So we grep stderr for any message
4172
# that says an option was ignored or not supported.
4173
# When given -MP, icc 7.0 and 7.1 complain thusly:
4174
# icc: Command line warning: ignoring option '-M'; no argument required
4175
# The diagnosis changed in icc 8.0:
4176
# icc: Command line remark: option '-MP' not supported
4177
if (grep 'ignoring option' conftest.err ||
4178
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4179
am_cv_CC_dependencies_compiler_type=$depmode
4188
am_cv_CC_dependencies_compiler_type=none
4192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4193
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4194
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197
test "x$enable_dependency_tracking" != xno \
4198
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200
am__fastdepCC_FALSE='#'
4202
am__fastdepCC_TRUE='#'
4203
am__fastdepCC_FALSE=
4209
ac_cpp='$CPP $CPPFLAGS'
4210
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4214
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4215
# On Suns, sometimes $CPP names a directory.
4216
if test -n "$CPP" && test -d "$CPP"; then
4219
if test -z "$CPP"; then
4220
if test "${ac_cv_prog_CPP+set}" = set; then :
4221
$as_echo_n "(cached) " >&6
4223
# Double quotes because CPP needs to be expanded
4224
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4227
for ac_c_preproc_warn_flag in '' yes
4229
# Use a header file that comes with gcc, so configuring glibc
4230
# with a fresh cross-compiler works.
4231
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232
# <limits.h> exists even on freestanding compilers.
4233
# On the NeXT, cc -E runs the code through the compiler's parser,
4234
# not just through cpp. "Syntax error" is here to catch this case.
4235
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236
/* end confdefs.h. */
4238
# include <limits.h>
4240
# include <assert.h>
4244
if ac_fn_c_try_cpp "$LINENO"; then :
4247
# Broken: fails on valid input.
4250
rm -f conftest.err conftest.i conftest.$ac_ext
4252
# OK, works on sane cases. Now check whether nonexistent headers
4253
# can be detected and how.
4254
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255
/* end confdefs.h. */
4256
#include <ac_nonexistent.h>
4258
if ac_fn_c_try_cpp "$LINENO"; then :
4259
# Broken: success on invalid input.
4262
# Passes both tests.
4266
rm -f conftest.err conftest.i conftest.$ac_ext
4269
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270
rm -f conftest.i conftest.err conftest.$ac_ext
4271
if $ac_preproc_ok; then :
4283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4284
$as_echo "$CPP" >&6; }
4286
for ac_c_preproc_warn_flag in '' yes
4288
# Use a header file that comes with gcc, so configuring glibc
4289
# with a fresh cross-compiler works.
4290
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291
# <limits.h> exists even on freestanding compilers.
4292
# On the NeXT, cc -E runs the code through the compiler's parser,
4293
# not just through cpp. "Syntax error" is here to catch this case.
4294
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295
/* end confdefs.h. */
4297
# include <limits.h>
4299
# include <assert.h>
4303
if ac_fn_c_try_cpp "$LINENO"; then :
4306
# Broken: fails on valid input.
4309
rm -f conftest.err conftest.i conftest.$ac_ext
4311
# OK, works on sane cases. Now check whether nonexistent headers
4312
# can be detected and how.
4313
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314
/* end confdefs.h. */
4315
#include <ac_nonexistent.h>
4317
if ac_fn_c_try_cpp "$LINENO"; then :
4318
# Broken: success on invalid input.
4321
# Passes both tests.
4325
rm -f conftest.err conftest.i conftest.$ac_ext
4328
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329
rm -f conftest.i conftest.err conftest.$ac_ext
4330
if $ac_preproc_ok; then :
4333
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4336
See \`config.log' for more details" "$LINENO" 5 ; }
4340
ac_cpp='$CPP $CPPFLAGS'
4341
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4347
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4348
if test "${ac_cv_path_GREP+set}" = set; then :
4349
$as_echo_n "(cached) " >&6
4351
if test -z "$GREP"; then
4352
ac_path_GREP_found=false
4353
# Loop through the user's path and test for each of PROGNAME-LIST
4354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358
test -z "$as_dir" && as_dir=.
4359
for ac_prog in grep ggrep; do
4360
for ac_exec_ext in '' $ac_executable_extensions; do
4361
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4362
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4363
# Check for GNU ac_path_GREP and select it if it is found.
4364
# Check for GNU $ac_path_GREP
4365
case `"$ac_path_GREP" --version 2>&1` in
4367
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4370
$as_echo_n 0123456789 >"conftest.in"
4373
cat "conftest.in" "conftest.in" >"conftest.tmp"
4374
mv "conftest.tmp" "conftest.in"
4375
cp "conftest.in" "conftest.nl"
4376
$as_echo 'GREP' >> "conftest.nl"
4377
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379
as_fn_arith $ac_count + 1 && ac_count=$as_val
4380
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381
# Best one so far, save it but keep looking for a better one
4382
ac_cv_path_GREP="$ac_path_GREP"
4383
ac_path_GREP_max=$ac_count
4385
# 10*(2^10) chars as input seems more than enough
4386
test $ac_count -gt 10 && break
4388
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391
$ac_path_GREP_found && break 3
4396
if test -z "$ac_cv_path_GREP"; then
4397
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400
ac_cv_path_GREP=$GREP
4404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4405
$as_echo "$ac_cv_path_GREP" >&6; }
4406
GREP="$ac_cv_path_GREP"
4409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4410
$as_echo_n "checking for egrep... " >&6; }
4411
if test "${ac_cv_path_EGREP+set}" = set; then :
4412
$as_echo_n "(cached) " >&6
4414
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4415
then ac_cv_path_EGREP="$GREP -E"
4417
if test -z "$EGREP"; then
4418
ac_path_EGREP_found=false
4419
# Loop through the user's path and test for each of PROGNAME-LIST
4420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424
test -z "$as_dir" && as_dir=.
4425
for ac_prog in egrep; do
4426
for ac_exec_ext in '' $ac_executable_extensions; do
4427
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4428
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4429
# Check for GNU ac_path_EGREP and select it if it is found.
4430
# Check for GNU $ac_path_EGREP
4431
case `"$ac_path_EGREP" --version 2>&1` in
4433
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4436
$as_echo_n 0123456789 >"conftest.in"
4439
cat "conftest.in" "conftest.in" >"conftest.tmp"
4440
mv "conftest.tmp" "conftest.in"
4441
cp "conftest.in" "conftest.nl"
4442
$as_echo 'EGREP' >> "conftest.nl"
4443
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445
as_fn_arith $ac_count + 1 && ac_count=$as_val
4446
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4447
# Best one so far, save it but keep looking for a better one
4448
ac_cv_path_EGREP="$ac_path_EGREP"
4449
ac_path_EGREP_max=$ac_count
4451
# 10*(2^10) chars as input seems more than enough
4452
test $ac_count -gt 10 && break
4454
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457
$ac_path_EGREP_found && break 3
4462
if test -z "$ac_cv_path_EGREP"; then
4463
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466
ac_cv_path_EGREP=$EGREP
4471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4472
$as_echo "$ac_cv_path_EGREP" >&6; }
4473
EGREP="$ac_cv_path_EGREP"
4476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4477
$as_echo_n "checking for ANSI C header files... " >&6; }
4478
if test "${ac_cv_header_stdc+set}" = set; then :
4479
$as_echo_n "(cached) " >&6
4481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482
/* end confdefs.h. */
4496
if ac_fn_c_try_compile "$LINENO"; then :
4497
ac_cv_header_stdc=yes
4499
ac_cv_header_stdc=no
4501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503
if test $ac_cv_header_stdc = yes; then
4504
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4505
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506
/* end confdefs.h. */
4510
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511
$EGREP "memchr" >/dev/null 2>&1; then :
4514
ac_cv_header_stdc=no
4520
if test $ac_cv_header_stdc = yes; then
4521
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523
/* end confdefs.h. */
4527
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528
$EGREP "free" >/dev/null 2>&1; then :
4531
ac_cv_header_stdc=no
4537
if test $ac_cv_header_stdc = yes; then
4538
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4539
if test "$cross_compiling" = yes; then :
4542
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543
/* end confdefs.h. */
4546
#if ((' ' & 0x0FF) == 0x020)
4547
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4548
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4550
# define ISLOWER(c) \
4551
(('a' <= (c) && (c) <= 'i') \
4552
|| ('j' <= (c) && (c) <= 'r') \
4553
|| ('s' <= (c) && (c) <= 'z'))
4554
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4557
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4562
for (i = 0; i < 256; i++)
4563
if (XOR (islower (i), ISLOWER (i))
4564
|| toupper (i) != TOUPPER (i))
4569
if ac_fn_c_try_run "$LINENO"; then :
4572
ac_cv_header_stdc=no
4574
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4575
conftest.$ac_objext conftest.beam conftest.$ac_ext
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4581
$as_echo "$ac_cv_header_stdc" >&6; }
4582
if test $ac_cv_header_stdc = yes; then
4584
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4588
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4589
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4590
inttypes.h stdint.h unistd.h
4592
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4593
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4595
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4596
cat >>confdefs.h <<_ACEOF
4597
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4607
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4614
if test "$MINIX" = yes; then
4616
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4619
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4622
$as_echo "#define _MINIX 1" >>confdefs.h
4627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4628
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4629
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4630
$as_echo_n "(cached) " >&6
4632
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633
/* end confdefs.h. */
4635
# define __EXTENSIONS__ 1
4636
$ac_includes_default
4645
if ac_fn_c_try_compile "$LINENO"; then :
4646
ac_cv_safe_to_define___extensions__=yes
4648
ac_cv_safe_to_define___extensions__=no
4650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4653
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4654
test $ac_cv_safe_to_define___extensions__ = yes &&
4655
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4657
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4659
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4661
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4663
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4667
ac_cpp='$CPP $CPPFLAGS'
4668
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671
if test -n "$ac_tool_prefix"; then
4672
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4673
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675
$as_echo_n "checking for $ac_word... " >&6; }
4676
if test "${ac_cv_prog_CC+set}" = set; then :
4677
$as_echo_n "(cached) " >&6
4679
if test -n "$CC"; then
4680
ac_cv_prog_CC="$CC" # Let the user override the test.
4682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686
test -z "$as_dir" && as_dir=.
4687
for ac_exec_ext in '' $ac_executable_extensions; do
4688
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4690
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700
if test -n "$CC"; then
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702
$as_echo "$CC" >&6; }
4704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705
$as_echo "no" >&6; }
4710
if test -z "$ac_cv_prog_CC"; then
4712
# Extract the first word of "gcc", so it can be a program name with args.
4713
set dummy gcc; ac_word=$2
4714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715
$as_echo_n "checking for $ac_word... " >&6; }
4716
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4717
$as_echo_n "(cached) " >&6
4719
if test -n "$ac_ct_CC"; then
4720
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726
test -z "$as_dir" && as_dir=.
4727
for ac_exec_ext in '' $ac_executable_extensions; do
4728
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729
ac_cv_prog_ac_ct_CC="gcc"
4730
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4740
if test -n "$ac_ct_CC"; then
4741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4742
$as_echo "$ac_ct_CC" >&6; }
4744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745
$as_echo "no" >&6; }
4748
if test "x$ac_ct_CC" = x; then
4751
case $cross_compiling:$ac_tool_warned in
4753
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755
ac_tool_warned=yes ;;
4763
if test -z "$CC"; then
4764
if test -n "$ac_tool_prefix"; then
4765
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4766
set dummy ${ac_tool_prefix}cc; ac_word=$2
4767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768
$as_echo_n "checking for $ac_word... " >&6; }
4769
if test "${ac_cv_prog_CC+set}" = set; then :
4770
$as_echo_n "(cached) " >&6
4772
if test -n "$CC"; then
4773
ac_cv_prog_CC="$CC" # Let the user override the test.
4775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779
test -z "$as_dir" && as_dir=.
4780
for ac_exec_ext in '' $ac_executable_extensions; do
4781
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782
ac_cv_prog_CC="${ac_tool_prefix}cc"
4783
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793
if test -n "$CC"; then
4794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4795
$as_echo "$CC" >&6; }
4797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798
$as_echo "no" >&6; }
4804
if test -z "$CC"; then
4805
# Extract the first word of "cc", so it can be a program name with args.
4806
set dummy cc; ac_word=$2
4807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808
$as_echo_n "checking for $ac_word... " >&6; }
4809
if test "${ac_cv_prog_CC+set}" = set; then :
4810
$as_echo_n "(cached) " >&6
4812
if test -n "$CC"; then
4813
ac_cv_prog_CC="$CC" # Let the user override the test.
4816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820
test -z "$as_dir" && as_dir=.
4821
for ac_exec_ext in '' $ac_executable_extensions; do
4822
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4824
ac_prog_rejected=yes
4828
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835
if test $ac_prog_rejected = yes; then
4836
# We found a bogon in the path, so make sure we never use it.
4837
set dummy $ac_cv_prog_CC
4839
if test $# != 0; then
4840
# We chose a different compiler from the bogus one.
4841
# However, it has the same basename, so the bogon will be chosen
4842
# first if we set CC to just the basename; use the full file name.
4844
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4850
if test -n "$CC"; then
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4852
$as_echo "$CC" >&6; }
4854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855
$as_echo "no" >&6; }
4860
if test -z "$CC"; then
4861
if test -n "$ac_tool_prefix"; then
4862
for ac_prog in cl.exe
4864
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4865
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867
$as_echo_n "checking for $ac_word... " >&6; }
4868
if test "${ac_cv_prog_CC+set}" = set; then :
4869
$as_echo_n "(cached) " >&6
4871
if test -n "$CC"; then
4872
ac_cv_prog_CC="$CC" # Let the user override the test.
4874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878
test -z "$as_dir" && as_dir=.
4879
for ac_exec_ext in '' $ac_executable_extensions; do
4880
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4882
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892
if test -n "$CC"; then
4893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4894
$as_echo "$CC" >&6; }
4896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897
$as_echo "no" >&6; }
4901
test -n "$CC" && break
4904
if test -z "$CC"; then
4906
for ac_prog in cl.exe
4908
# Extract the first word of "$ac_prog", so it can be a program name with args.
4909
set dummy $ac_prog; ac_word=$2
4910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911
$as_echo_n "checking for $ac_word... " >&6; }
4912
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4913
$as_echo_n "(cached) " >&6
4915
if test -n "$ac_ct_CC"; then
4916
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922
test -z "$as_dir" && as_dir=.
4923
for ac_exec_ext in '' $ac_executable_extensions; do
4924
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925
ac_cv_prog_ac_ct_CC="$ac_prog"
4926
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4936
if test -n "$ac_ct_CC"; then
4937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4938
$as_echo "$ac_ct_CC" >&6; }
4940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941
$as_echo "no" >&6; }
4945
test -n "$ac_ct_CC" && break
4948
if test "x$ac_ct_CC" = x; then
4951
case $cross_compiling:$ac_tool_warned in
4953
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955
ac_tool_warned=yes ;;
4964
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966
as_fn_error $? "no acceptable C compiler found in \$PATH
4967
See \`config.log' for more details" "$LINENO" 5 ; }
4969
# Provide some information about the compiler.
4970
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4973
for ac_option in --version -v -V -qversion; do
4974
{ { ac_try="$ac_compiler $ac_option >&5"
4976
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977
*) ac_try_echo=$ac_try;;
4979
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980
$as_echo "$ac_try_echo"; } >&5
4981
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4983
if test -s conftest.err; then
4985
... rest of stderr output deleted ...
4986
10q' conftest.err >conftest.er1
4987
cat conftest.er1 >&5
4989
rm -f conftest.er1 conftest.err
4990
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991
test $ac_status = 0; }
4994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4995
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4996
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4997
$as_echo_n "(cached) " >&6
4999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000
/* end confdefs.h. */
5013
if ac_fn_c_try_compile "$LINENO"; then :
5018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5023
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5024
if test $ac_compiler_gnu = yes; then
5029
ac_test_CFLAGS=${CFLAGS+set}
5030
ac_save_CFLAGS=$CFLAGS
5031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5032
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5033
if test "${ac_cv_prog_cc_g+set}" = set; then :
5034
$as_echo_n "(cached) " >&6
5036
ac_save_c_werror_flag=$ac_c_werror_flag
5037
ac_c_werror_flag=yes
5040
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041
/* end confdefs.h. */
5051
if ac_fn_c_try_compile "$LINENO"; then :
5055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056
/* end confdefs.h. */
5066
if ac_fn_c_try_compile "$LINENO"; then :
5069
ac_c_werror_flag=$ac_save_c_werror_flag
5071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072
/* end confdefs.h. */
5082
if ac_fn_c_try_compile "$LINENO"; then :
5085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090
ac_c_werror_flag=$ac_save_c_werror_flag
5092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5093
$as_echo "$ac_cv_prog_cc_g" >&6; }
5094
if test "$ac_test_CFLAGS" = set; then
5095
CFLAGS=$ac_save_CFLAGS
5096
elif test $ac_cv_prog_cc_g = yes; then
5097
if test "$GCC" = yes; then
5103
if test "$GCC" = yes; then
5109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5110
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5111
if test "${ac_cv_prog_cc_c89+set}" = set; then :
5112
$as_echo_n "(cached) " >&6
5114
ac_cv_prog_cc_c89=no
5116
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117
/* end confdefs.h. */
5120
#include <sys/types.h>
5121
#include <sys/stat.h>
5122
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5123
struct buf { int x; };
5124
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5125
static char *e (p, i)
5131
static char *f (char * (*g) (char **, int), char **p, ...)
5136
s = g (p, va_arg (v,int));
5141
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5142
function prototypes and stuff, but not '\xHH' hex character constants.
5143
These don't provoke an error unfortunately, instead are silently treated
5144
as 'x'. The following induces an error, until -std is added to get
5145
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5146
array size at least. It's necessary to write '\x00'==0 to get something
5147
that's true only with -std. */
5148
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5150
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5151
inside strings and character constants. */
5153
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5155
int test (int i, double x);
5156
struct s1 {int (*f) (int a);};
5157
struct s2 {int (*f) (double a);};
5158
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5164
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5169
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5170
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5172
CC="$ac_save_CC $ac_arg"
5173
if ac_fn_c_try_compile "$LINENO"; then :
5174
ac_cv_prog_cc_c89=$ac_arg
5176
rm -f core conftest.err conftest.$ac_objext
5177
test "x$ac_cv_prog_cc_c89" != "xno" && break
5179
rm -f conftest.$ac_ext
5184
case "x$ac_cv_prog_cc_c89" in
5186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5187
$as_echo "none needed" >&6; } ;;
5189
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5190
$as_echo "unsupported" >&6; } ;;
5192
CC="$CC $ac_cv_prog_cc_c89"
5193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5194
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5196
if test "x$ac_cv_prog_cc_c89" != xno; then :
5201
ac_cpp='$CPP $CPPFLAGS'
5202
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206
depcc="$CC" am_compiler_list=
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5209
$as_echo_n "checking dependency style of $depcc... " >&6; }
5210
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5211
$as_echo_n "(cached) " >&6
5213
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5214
# We make a subdir and do the tests there. Otherwise we can end up
5215
# making bogus files that we don't know about and never remove. For
5216
# instance it was reported that on HP-UX the gcc test will end up
5217
# making a dummy file named `D' -- because `-MD' means `put the output
5220
# Copy depcomp to subdir because otherwise we won't find it if we're
5221
# using a relative directory.
5222
cp "$am_depcomp" conftest.dir
5224
# We will build objects and dependencies in a subdirectory because
5225
# it helps to detect inapplicable dependency modes. For instance
5226
# both Tru64's cc and ICC support -MD to output dependencies as a
5227
# side effect of compilation, but ICC will put the dependencies in
5228
# the current directory while Tru64 will put them in the object
5232
am_cv_CC_dependencies_compiler_type=none
5233
if test "$am_compiler_list" = ""; then
5234
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5237
case " $depcc " in #(
5238
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5241
for depmode in $am_compiler_list; do
5242
# Setup a source with many dependencies, because some compilers
5243
# like to wrap large dependency lists on column 80 (with \), and
5244
# we should not choose a depcomp mode which is confused by this.
5246
# We need to recreate these files for each test, as the compiler may
5247
# overwrite some of them when testing with obscure command lines.
5248
# This happens at least with the AIX C compiler.
5250
for i in 1 2 3 4 5 6; do
5251
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5252
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5253
# Solaris 8's {/usr,}/bin/sh.
5254
touch sub/conftst$i.h
5256
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5258
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5259
# mode. It turns out that the SunPro C++ compiler does not properly
5260
# handle `-M -o', and we need to detect this. Also, some Intel
5261
# versions had trouble with output in subdirs
5262
am__obj=sub/conftest.${OBJEXT-o}
5263
am__minus_obj="-o $am__obj"
5266
# This depmode causes a compiler race in universal mode.
5267
test "$am__universal" = false || continue
5270
# after this tag, mechanisms are not by side-effect, so they'll
5271
# only be used when explicitly requested
5272
if test "x$enable_dependency_tracking" = xyes; then
5278
msvisualcpp | msvcmsys)
5279
# This compiler won't grok `-c -o', but also, the minuso test has
5280
# not run yet. These depmodes are late enough in the game, and
5281
# so weak that their functioning should not be impacted.
5282
am__obj=conftest.${OBJEXT-o}
5287
if depmode=$depmode \
5288
source=sub/conftest.c object=$am__obj \
5289
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5290
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5291
>/dev/null 2>conftest.err &&
5292
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5293
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5294
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5295
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5296
# icc doesn't choke on unknown options, it will just issue warnings
5297
# or remarks (even with -Werror). So we grep stderr for any message
5298
# that says an option was ignored or not supported.
5299
# When given -MP, icc 7.0 and 7.1 complain thusly:
5300
# icc: Command line warning: ignoring option '-M'; no argument required
5301
# The diagnosis changed in icc 8.0:
5302
# icc: Command line remark: option '-MP' not supported
5303
if (grep 'ignoring option' conftest.err ||
5304
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5305
am_cv_CC_dependencies_compiler_type=$depmode
5314
am_cv_CC_dependencies_compiler_type=none
5318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5319
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5320
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5323
test "x$enable_dependency_tracking" != xno \
5324
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5326
am__fastdepCC_FALSE='#'
5328
am__fastdepCC_TRUE='#'
5329
am__fastdepCC_FALSE=
5334
ac_cpp='$CXXCPP $CPPFLAGS'
5335
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5338
if test -z "$CXX"; then
5339
if test -n "$CCC"; then
5342
if test -n "$ac_tool_prefix"; then
5343
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5345
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5346
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348
$as_echo_n "checking for $ac_word... " >&6; }
5349
if test "${ac_cv_prog_CXX+set}" = set; then :
5350
$as_echo_n "(cached) " >&6
5352
if test -n "$CXX"; then
5353
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359
test -z "$as_dir" && as_dir=.
5360
for ac_exec_ext in '' $ac_executable_extensions; do
5361
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5363
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373
if test -n "$CXX"; then
5374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5375
$as_echo "$CXX" >&6; }
5377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378
$as_echo "no" >&6; }
5382
test -n "$CXX" && break
5385
if test -z "$CXX"; then
5387
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5389
# Extract the first word of "$ac_prog", so it can be a program name with args.
5390
set dummy $ac_prog; 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_CXX+set}" = set; then :
5394
$as_echo_n "(cached) " >&6
5396
if test -n "$ac_ct_CXX"; then
5397
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"
5407
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5417
if test -n "$ac_ct_CXX"; then
5418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5419
$as_echo "$ac_ct_CXX" >&6; }
5421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422
$as_echo "no" >&6; }
5426
test -n "$ac_ct_CXX" && break
5429
if test "x$ac_ct_CXX" = x; then
5432
case $cross_compiling:$ac_tool_warned in
5434
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436
ac_tool_warned=yes ;;
5444
# Provide some information about the compiler.
5445
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5448
for ac_option in --version -v -V -qversion; do
5449
{ { ac_try="$ac_compiler $ac_option >&5"
5451
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452
*) ac_try_echo=$ac_try;;
5454
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5455
$as_echo "$ac_try_echo"; } >&5
5456
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
5458
if test -s conftest.err; then
5460
... rest of stderr output deleted ...
5461
10q' conftest.err >conftest.er1
5462
cat conftest.er1 >&5
5464
rm -f conftest.er1 conftest.err
5465
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466
test $ac_status = 0; }
5469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5470
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5471
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5472
$as_echo_n "(cached) " >&6
5474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475
/* end confdefs.h. */
5488
if ac_fn_cxx_try_compile "$LINENO"; then :
5493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5498
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5499
if test $ac_compiler_gnu = yes; then
5504
ac_test_CXXFLAGS=${CXXFLAGS+set}
5505
ac_save_CXXFLAGS=$CXXFLAGS
5506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5507
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5508
if test "${ac_cv_prog_cxx_g+set}" = set; then :
5509
$as_echo_n "(cached) " >&6
5511
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5512
ac_cxx_werror_flag=yes
5515
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516
/* end confdefs.h. */
5526
if ac_fn_cxx_try_compile "$LINENO"; then :
5527
ac_cv_prog_cxx_g=yes
5530
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531
/* end confdefs.h. */
5541
if ac_fn_cxx_try_compile "$LINENO"; then :
5544
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5546
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547
/* end confdefs.h. */
5557
if ac_fn_cxx_try_compile "$LINENO"; then :
5558
ac_cv_prog_cxx_g=yes
5560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5568
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5569
if test "$ac_test_CXXFLAGS" = set; then
5570
CXXFLAGS=$ac_save_CXXFLAGS
5571
elif test $ac_cv_prog_cxx_g = yes; then
5572
if test "$GXX" = yes; then
5578
if test "$GXX" = yes; then
5585
ac_cpp='$CPP $CPPFLAGS'
5586
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5587
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5588
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590
depcc="$CXX" am_compiler_list=
5592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5593
$as_echo_n "checking dependency style of $depcc... " >&6; }
5594
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5595
$as_echo_n "(cached) " >&6
5597
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5598
# We make a subdir and do the tests there. Otherwise we can end up
5599
# making bogus files that we don't know about and never remove. For
5600
# instance it was reported that on HP-UX the gcc test will end up
5601
# making a dummy file named `D' -- because `-MD' means `put the output
5604
# Copy depcomp to subdir because otherwise we won't find it if we're
5605
# using a relative directory.
5606
cp "$am_depcomp" conftest.dir
5608
# We will build objects and dependencies in a subdirectory because
5609
# it helps to detect inapplicable dependency modes. For instance
5610
# both Tru64's cc and ICC support -MD to output dependencies as a
5611
# side effect of compilation, but ICC will put the dependencies in
5612
# the current directory while Tru64 will put them in the object
5616
am_cv_CXX_dependencies_compiler_type=none
5617
if test "$am_compiler_list" = ""; then
5618
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5621
case " $depcc " in #(
5622
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5625
for depmode in $am_compiler_list; do
5626
# Setup a source with many dependencies, because some compilers
5627
# like to wrap large dependency lists on column 80 (with \), and
5628
# we should not choose a depcomp mode which is confused by this.
5630
# We need to recreate these files for each test, as the compiler may
5631
# overwrite some of them when testing with obscure command lines.
5632
# This happens at least with the AIX C compiler.
5634
for i in 1 2 3 4 5 6; do
5635
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5636
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5637
# Solaris 8's {/usr,}/bin/sh.
5638
touch sub/conftst$i.h
5640
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5642
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5643
# mode. It turns out that the SunPro C++ compiler does not properly
5644
# handle `-M -o', and we need to detect this. Also, some Intel
5645
# versions had trouble with output in subdirs
5646
am__obj=sub/conftest.${OBJEXT-o}
5647
am__minus_obj="-o $am__obj"
5650
# This depmode causes a compiler race in universal mode.
5651
test "$am__universal" = false || continue
5654
# after this tag, mechanisms are not by side-effect, so they'll
5655
# only be used when explicitly requested
5656
if test "x$enable_dependency_tracking" = xyes; then
5662
msvisualcpp | msvcmsys)
5663
# This compiler won't grok `-c -o', but also, the minuso test has
5664
# not run yet. These depmodes are late enough in the game, and
5665
# so weak that their functioning should not be impacted.
5666
am__obj=conftest.${OBJEXT-o}
5671
if depmode=$depmode \
5672
source=sub/conftest.c object=$am__obj \
5673
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5674
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5675
>/dev/null 2>conftest.err &&
5676
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5677
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5678
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5679
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5680
# icc doesn't choke on unknown options, it will just issue warnings
5681
# or remarks (even with -Werror). So we grep stderr for any message
5682
# that says an option was ignored or not supported.
5683
# When given -MP, icc 7.0 and 7.1 complain thusly:
5684
# icc: Command line warning: ignoring option '-M'; no argument required
5685
# The diagnosis changed in icc 8.0:
5686
# icc: Command line remark: option '-MP' not supported
5687
if (grep 'ignoring option' conftest.err ||
5688
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5689
am_cv_CXX_dependencies_compiler_type=$depmode
5698
am_cv_CXX_dependencies_compiler_type=none
5702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5703
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5704
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5707
test "x$enable_dependency_tracking" != xno \
5708
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5709
am__fastdepCXX_TRUE=
5710
am__fastdepCXX_FALSE='#'
5712
am__fastdepCXX_TRUE='#'
5713
am__fastdepCXX_FALSE=
5717
if test "x$CC" != xcc; then
5718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5719
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5722
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5724
set dummy $CC; ac_cc=`$as_echo "$2" |
5725
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5726
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5727
$as_echo_n "(cached) " >&6
5729
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730
/* end confdefs.h. */
5740
# Make sure it works both with $CC and with simple cc.
5741
# We do the test twice because some compilers refuse to overwrite an
5742
# existing .o file with -o, though they will create one.
5743
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5745
if { { case "(($ac_try" in
5746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747
*) ac_try_echo=$ac_try;;
5749
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5750
$as_echo "$ac_try_echo"; } >&5
5751
(eval "$ac_try") 2>&5
5753
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5754
test $ac_status = 0; } &&
5755
test -f conftest2.$ac_objext && { { case "(($ac_try" in
5756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757
*) ac_try_echo=$ac_try;;
5759
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5760
$as_echo "$ac_try_echo"; } >&5
5761
(eval "$ac_try") 2>&5
5763
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764
test $ac_status = 0; };
5766
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5767
if test "x$CC" != xcc; then
5768
# Test first that cc exists at all.
5769
if { ac_try='cc -c conftest.$ac_ext >&5'
5770
{ { case "(($ac_try" in
5771
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772
*) ac_try_echo=$ac_try;;
5774
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5775
$as_echo "$ac_try_echo"; } >&5
5776
(eval "$ac_try") 2>&5
5778
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5779
test $ac_status = 0; }; }; then
5780
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5782
if { { case "(($ac_try" in
5783
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784
*) ac_try_echo=$ac_try;;
5786
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5787
$as_echo "$ac_try_echo"; } >&5
5788
(eval "$ac_try") 2>&5
5790
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791
test $ac_status = 0; } &&
5792
test -f conftest2.$ac_objext && { { case "(($ac_try" in
5793
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794
*) ac_try_echo=$ac_try;;
5796
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5797
$as_echo "$ac_try_echo"; } >&5
5798
(eval "$ac_try") 2>&5
5800
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801
test $ac_status = 0; };
5806
# cc exists but doesn't like -o.
5807
eval ac_cv_prog_cc_${ac_cc}_c_o=no
5812
eval ac_cv_prog_cc_${ac_cc}_c_o=no
5814
rm -f core conftest*
5817
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5819
$as_echo "yes" >&6; }
5821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822
$as_echo "no" >&6; }
5824
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5828
# FIXME: we rely on the cache variable name because
5829
# there is no other way.
5831
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5832
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5833
if test "$am_t" != yes; then
5834
# Losing compiler, so override with the script.
5835
# FIXME: It is wrong to rewrite CC.
5836
# But if we don't then we get into trouble of one sort or another.
5837
# A longer-term fix would be to have automake use am__CC in this case,
5838
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5839
CC="$am_aux_dir/compile $CC"
5844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5845
$as_echo_n "checking whether ln -s works... " >&6; }
5847
if test "$LN_S" = "ln -s"; then
5848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5849
$as_echo "yes" >&6; }
5851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5852
$as_echo "no, using $LN_S" >&6; }
5857
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5858
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5863
macro_version='2.2.6b'
5864
macro_revision='1.3017'
5878
ltmain="$ac_aux_dir/ltmain.sh"
5880
# Make sure we can run config.sub.
5881
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5882
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5885
$as_echo_n "checking build system type... " >&6; }
5886
if test "${ac_cv_build+set}" = set; then :
5887
$as_echo_n "(cached) " >&6
5889
ac_build_alias=$build_alias
5890
test "x$ac_build_alias" = x &&
5891
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5892
test "x$ac_build_alias" = x &&
5893
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5894
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5895
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5899
$as_echo "$ac_cv_build" >&6; }
5900
case $ac_cv_build in
5902
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5905
ac_save_IFS=$IFS; IFS='-'
5911
# Remember, the first character of IFS is used to create $*,
5912
# except with old shells:
5915
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5919
$as_echo_n "checking host system type... " >&6; }
5920
if test "${ac_cv_host+set}" = set; then :
5921
$as_echo_n "(cached) " >&6
5923
if test "x$host_alias" = x; then
5924
ac_cv_host=$ac_cv_build
5926
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5927
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5932
$as_echo "$ac_cv_host" >&6; }
5935
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5938
ac_save_IFS=$IFS; IFS='-'
5944
# Remember, the first character of IFS is used to create $*,
5945
# except with old shells:
5948
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5952
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5953
if test "${ac_cv_path_SED+set}" = set; then :
5954
$as_echo_n "(cached) " >&6
5956
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5957
for ac_i in 1 2 3 4 5 6 7; do
5958
ac_script="$ac_script$as_nl$ac_script"
5960
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5961
{ ac_script=; unset ac_script;}
5962
if test -z "$SED"; then
5963
ac_path_SED_found=false
5964
# Loop through the user's path and test for each of PROGNAME-LIST
5965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969
test -z "$as_dir" && as_dir=.
5970
for ac_prog in sed gsed; do
5971
for ac_exec_ext in '' $ac_executable_extensions; do
5972
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5973
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5974
# Check for GNU ac_path_SED and select it if it is found.
5975
# Check for GNU $ac_path_SED
5976
case `"$ac_path_SED" --version 2>&1` in
5978
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5981
$as_echo_n 0123456789 >"conftest.in"
5984
cat "conftest.in" "conftest.in" >"conftest.tmp"
5985
mv "conftest.tmp" "conftest.in"
5986
cp "conftest.in" "conftest.nl"
5987
$as_echo '' >> "conftest.nl"
5988
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5989
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5990
as_fn_arith $ac_count + 1 && ac_count=$as_val
5991
if test $ac_count -gt ${ac_path_SED_max-0}; then
5992
# Best one so far, save it but keep looking for a better one
5993
ac_cv_path_SED="$ac_path_SED"
5994
ac_path_SED_max=$ac_count
5996
# 10*(2^10) chars as input seems more than enough
5997
test $ac_count -gt 10 && break
5999
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002
$ac_path_SED_found && break 3
6007
if test -z "$ac_cv_path_SED"; then
6008
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6016
$as_echo "$ac_cv_path_SED" >&6; }
6017
SED="$ac_cv_path_SED"
6020
test -z "$SED" && SED=sed
6021
Xsed="$SED -e 1s/^X//"
6033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6034
$as_echo_n "checking for fgrep... " >&6; }
6035
if test "${ac_cv_path_FGREP+set}" = set; then :
6036
$as_echo_n "(cached) " >&6
6038
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6039
then ac_cv_path_FGREP="$GREP -F"
6041
if test -z "$FGREP"; then
6042
ac_path_FGREP_found=false
6043
# Loop through the user's path and test for each of PROGNAME-LIST
6044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6048
test -z "$as_dir" && as_dir=.
6049
for ac_prog in fgrep; do
6050
for ac_exec_ext in '' $ac_executable_extensions; do
6051
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6052
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6053
# Check for GNU ac_path_FGREP and select it if it is found.
6054
# Check for GNU $ac_path_FGREP
6055
case `"$ac_path_FGREP" --version 2>&1` in
6057
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6060
$as_echo_n 0123456789 >"conftest.in"
6063
cat "conftest.in" "conftest.in" >"conftest.tmp"
6064
mv "conftest.tmp" "conftest.in"
6065
cp "conftest.in" "conftest.nl"
6066
$as_echo 'FGREP' >> "conftest.nl"
6067
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6068
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6069
as_fn_arith $ac_count + 1 && ac_count=$as_val
6070
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6071
# Best one so far, save it but keep looking for a better one
6072
ac_cv_path_FGREP="$ac_path_FGREP"
6073
ac_path_FGREP_max=$ac_count
6075
# 10*(2^10) chars as input seems more than enough
6076
test $ac_count -gt 10 && break
6078
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6081
$ac_path_FGREP_found && break 3
6086
if test -z "$ac_cv_path_FGREP"; then
6087
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6090
ac_cv_path_FGREP=$FGREP
6095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6096
$as_echo "$ac_cv_path_FGREP" >&6; }
6097
FGREP="$ac_cv_path_FGREP"
6100
test -z "$GREP" && GREP=grep
6120
# Check whether --with-gnu-ld was given.
6121
if test "${with_gnu_ld+set}" = set; then :
6122
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6128
if test "$GCC" = yes; then
6129
# Check if gcc -print-prog-name=ld gives a path.
6130
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6131
$as_echo_n "checking for ld used by $CC... " >&6; }
6134
# gcc leaves a trailing carriage return which upsets mingw
6135
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6137
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6140
# Accept absolute paths.
6142
re_direlt='/[^/][^/]*/\.\./'
6143
# Canonicalize the pathname of ld
6144
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6145
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6146
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6148
test -z "$LD" && LD="$ac_prog"
6151
# If it fails, then pretend we aren't using GCC.
6155
# If it is relative, then search for the first ld in PATH.
6159
elif test "$with_gnu_ld" = yes; then
6160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6161
$as_echo_n "checking for GNU ld... " >&6; }
6163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6164
$as_echo_n "checking for non-GNU ld... " >&6; }
6166
if test "${lt_cv_path_LD+set}" = set; then :
6167
$as_echo_n "(cached) " >&6
6169
if test -z "$LD"; then
6170
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6171
for ac_dir in $PATH; do
6173
test -z "$ac_dir" && ac_dir=.
6174
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6175
lt_cv_path_LD="$ac_dir/$ac_prog"
6176
# Check to see if the program is GNU ld. I'd rather use --version,
6177
# but apparently some variants of GNU ld only accept -v.
6178
# Break only if it was the GNU/non-GNU ld that we prefer.
6179
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6180
*GNU* | *'with BFD'*)
6181
test "$with_gnu_ld" != no && break
6184
test "$with_gnu_ld" != yes && break
6191
lt_cv_path_LD="$LD" # Let the user override the test with a path.
6196
if test -n "$LD"; then
6197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6198
$as_echo "$LD" >&6; }
6200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201
$as_echo "no" >&6; }
6203
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6205
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6206
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6207
$as_echo_n "(cached) " >&6
6209
# I'd rather use --version here, but apparently some GNU lds only accept -v.
6210
case `$LD -v 2>&1 </dev/null` in
6211
*GNU* | *'with BFD'*)
6212
lt_cv_prog_gnu_ld=yes
6215
lt_cv_prog_gnu_ld=no
6219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6220
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6221
with_gnu_ld=$lt_cv_prog_gnu_ld
6231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6232
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6233
if test "${lt_cv_path_NM+set}" = set; then :
6234
$as_echo_n "(cached) " >&6
6236
if test -n "$NM"; then
6237
# Let the user override the test.
6240
lt_nm_to_check="${ac_tool_prefix}nm"
6241
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6242
lt_nm_to_check="$lt_nm_to_check nm"
6244
for lt_tmp_nm in $lt_nm_to_check; do
6245
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6246
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6248
test -z "$ac_dir" && ac_dir=.
6249
tmp_nm="$ac_dir/$lt_tmp_nm"
6250
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6251
# Check to see if the nm accepts a BSD-compat flag.
6252
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6253
# nm: unknown option "B" ignored
6254
# Tru64's nm complains that /dev/null is an invalid object file
6255
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6256
*/dev/null* | *'Invalid file or object type'*)
6257
lt_cv_path_NM="$tmp_nm -B"
6261
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6263
lt_cv_path_NM="$tmp_nm -p"
6267
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6268
continue # so that we can try to find one that supports BSD flags
6277
: ${lt_cv_path_NM=no}
6280
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6281
$as_echo "$lt_cv_path_NM" >&6; }
6282
if test "$lt_cv_path_NM" != "no"; then
6285
# Didn't find any BSD compatible name lister, look for dumpbin.
6286
if test -n "$ac_tool_prefix"; then
6287
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6289
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6290
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292
$as_echo_n "checking for $ac_word... " >&6; }
6293
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6294
$as_echo_n "(cached) " >&6
6296
if test -n "$DUMPBIN"; then
6297
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303
test -z "$as_dir" && as_dir=.
6304
for ac_exec_ext in '' $ac_executable_extensions; do
6305
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6307
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316
DUMPBIN=$ac_cv_prog_DUMPBIN
6317
if test -n "$DUMPBIN"; then
6318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6319
$as_echo "$DUMPBIN" >&6; }
6321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322
$as_echo "no" >&6; }
6326
test -n "$DUMPBIN" && break
6329
if test -z "$DUMPBIN"; then
6330
ac_ct_DUMPBIN=$DUMPBIN
6331
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6333
# Extract the first word of "$ac_prog", so it can be a program name with args.
6334
set dummy $ac_prog; ac_word=$2
6335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336
$as_echo_n "checking for $ac_word... " >&6; }
6337
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6338
$as_echo_n "(cached) " >&6
6340
if test -n "$ac_ct_DUMPBIN"; then
6341
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347
test -z "$as_dir" && as_dir=.
6348
for ac_exec_ext in '' $ac_executable_extensions; do
6349
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6351
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6361
if test -n "$ac_ct_DUMPBIN"; then
6362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6363
$as_echo "$ac_ct_DUMPBIN" >&6; }
6365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366
$as_echo "no" >&6; }
6370
test -n "$ac_ct_DUMPBIN" && break
6373
if test "x$ac_ct_DUMPBIN" = x; then
6376
case $cross_compiling:$ac_tool_warned in
6378
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380
ac_tool_warned=yes ;;
6382
DUMPBIN=$ac_ct_DUMPBIN
6387
if test "$DUMPBIN" != ":"; then
6391
test -z "$NM" && NM=nm
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6399
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6400
if test "${lt_cv_nm_interface+set}" = set; then :
6401
$as_echo_n "(cached) " >&6
6403
lt_cv_nm_interface="BSD nm"
6404
echo "int some_variable = 0;" > conftest.$ac_ext
6405
(eval echo "\"\$as_me:6405: $ac_compile\"" >&5)
6406
(eval "$ac_compile" 2>conftest.err)
6407
cat conftest.err >&5
6408
(eval echo "\"\$as_me:6408: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6409
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6410
cat conftest.err >&5
6411
(eval echo "\"\$as_me:6411: output\"" >&5)
6412
cat conftest.out >&5
6413
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6414
lt_cv_nm_interface="MS dumpbin"
6418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6419
$as_echo "$lt_cv_nm_interface" >&6; }
6421
# find the maximum length of command line arguments
6422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6423
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6424
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6425
$as_echo_n "(cached) " >&6
6432
# On DJGPP, this test can blow up pretty badly due to problems in libc
6433
# (any single argument exceeding 2000 bytes causes a buffer overrun
6434
# during glob expansion). Even if it were fixed, the result of this
6435
# check would be larger than it should be.
6436
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6440
# Under GNU Hurd, this test is not required because there is
6441
# no limit to the length of command line arguments.
6442
# Libtool will interpret -1 as no limit whatsoever
6443
lt_cv_sys_max_cmd_len=-1;
6446
cygwin* | mingw* | cegcc*)
6447
# On Win9x/ME, this test blows up -- it succeeds, but takes
6448
# about 5 minutes as the teststring grows exponentially.
6449
# Worse, since 9x/ME are not pre-emptively multitasking,
6450
# you end up with a "frozen" computer, even though with patience
6451
# the test eventually succeeds (with a max line length of 256k).
6452
# Instead, let's just punt: use the minimum linelength reported by
6453
# all of the supported platforms: 8192 (on NT/2K/XP).
6454
lt_cv_sys_max_cmd_len=8192;
6458
# On AmigaOS with pdksh, this test takes hours, literally.
6459
# So we just punt and use a minimum line length of 8192.
6460
lt_cv_sys_max_cmd_len=8192;
6463
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6464
# This has been around since 386BSD, at least. Likely further.
6465
if test -x /sbin/sysctl; then
6466
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6467
elif test -x /usr/sbin/sysctl; then
6468
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6470
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6472
# And add a safety zone
6473
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6474
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6478
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6479
lt_cv_sys_max_cmd_len=196608
6483
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6484
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6485
# nice to cause kernel panics so lets avoid the loop below.
6486
# First set a reasonable default.
6487
lt_cv_sys_max_cmd_len=16384
6489
if test -x /sbin/sysconfig; then
6490
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6491
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6496
lt_cv_sys_max_cmd_len=102400
6498
sysv5* | sco5v6* | sysv4.2uw2*)
6499
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6500
if test -n "$kargmax"; then
6501
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6503
lt_cv_sys_max_cmd_len=32768
6507
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6508
if test -n "$lt_cv_sys_max_cmd_len"; then
6509
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6510
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6512
# Make teststring a little bigger before we do anything with it.
6513
# a 1K string should be a reasonable start.
6514
for i in 1 2 3 4 5 6 7 8 ; do
6515
teststring=$teststring$teststring
6517
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6518
# If test is not a shell built-in, we'll probably end up computing a
6519
# maximum length that is only half of the actual maximum length, but
6521
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6522
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6523
test $i != 17 # 1/2 MB should be enough
6526
teststring=$teststring$teststring
6528
# Only check the string length outside the loop.
6529
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6531
# Add a significant safety factor because C++ compilers can tack on
6532
# massive amounts of additional arguments before passing them to the
6533
# linker. It appears as though 1/2 is a usable value.
6534
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6541
if test -n $lt_cv_sys_max_cmd_len ; then
6542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6543
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6546
$as_echo "none" >&6; }
6548
max_cmd_len=$lt_cv_sys_max_cmd_len
6559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6560
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6561
# Try some XSI features
6564
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6566
&& eval 'test $(( 1 + 1 )) -eq 2 \
6567
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6570
$as_echo "$xsi_shell" >&6; }
6573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6574
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6576
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6578
&& lt_shell_append=yes
6579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6580
$as_echo "$lt_shell_append" >&6; }
6583
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6593
# test EBCDIC or ASCII
6594
case `echo X|tr X '\101'` in
6595
A) # ASCII based system
6596
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6597
lt_SP2NL='tr \040 \012'
6598
lt_NL2SP='tr \015\012 \040\040'
6600
*) # EBCDIC based system
6601
lt_SP2NL='tr \100 \n'
6602
lt_NL2SP='tr \r\n \100\100'
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6615
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6616
if test "${lt_cv_ld_reload_flag+set}" = set; then :
6617
$as_echo_n "(cached) " >&6
6619
lt_cv_ld_reload_flag='-r'
6621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6622
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6623
reload_flag=$lt_cv_ld_reload_flag
6624
case $reload_flag in
6626
*) reload_flag=" $reload_flag" ;;
6628
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6631
if test "$GCC" = yes; then
6632
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6634
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6647
if test -n "$ac_tool_prefix"; then
6648
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6649
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651
$as_echo_n "checking for $ac_word... " >&6; }
6652
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6653
$as_echo_n "(cached) " >&6
6655
if test -n "$OBJDUMP"; then
6656
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6658
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662
test -z "$as_dir" && as_dir=.
6663
for ac_exec_ext in '' $ac_executable_extensions; do
6664
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6666
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675
OBJDUMP=$ac_cv_prog_OBJDUMP
6676
if test -n "$OBJDUMP"; then
6677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6678
$as_echo "$OBJDUMP" >&6; }
6680
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681
$as_echo "no" >&6; }
6686
if test -z "$ac_cv_prog_OBJDUMP"; then
6687
ac_ct_OBJDUMP=$OBJDUMP
6688
# Extract the first word of "objdump", so it can be a program name with args.
6689
set dummy objdump; ac_word=$2
6690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691
$as_echo_n "checking for $ac_word... " >&6; }
6692
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6693
$as_echo_n "(cached) " >&6
6695
if test -n "$ac_ct_OBJDUMP"; then
6696
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702
test -z "$as_dir" && as_dir=.
6703
for ac_exec_ext in '' $ac_executable_extensions; do
6704
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6706
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6716
if test -n "$ac_ct_OBJDUMP"; then
6717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6718
$as_echo "$ac_ct_OBJDUMP" >&6; }
6720
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721
$as_echo "no" >&6; }
6724
if test "x$ac_ct_OBJDUMP" = x; then
6727
case $cross_compiling:$ac_tool_warned in
6729
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731
ac_tool_warned=yes ;;
6733
OBJDUMP=$ac_ct_OBJDUMP
6736
OBJDUMP="$ac_cv_prog_OBJDUMP"
6739
test -z "$OBJDUMP" && OBJDUMP=objdump
6749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6750
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6751
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6752
$as_echo_n "(cached) " >&6
6754
lt_cv_file_magic_cmd='$MAGIC_CMD'
6755
lt_cv_file_magic_test_file=
6756
lt_cv_deplibs_check_method='unknown'
6757
# Need to set the preceding variable on all platforms that support
6758
# interlibrary dependencies.
6759
# 'none' -- dependencies not supported.
6760
# `unknown' -- same as none, but documents that we really don't know.
6761
# 'pass_all' -- all dependencies passed with no checks.
6762
# 'test_compile' -- check by making test program.
6763
# 'file_magic [[regex]]' -- check by looking for files in library path
6764
# which responds to the $file_magic_cmd with a given extended regex.
6765
# If you have `file' or equivalent on your system and you're not sure
6766
# whether `pass_all' will *always* work, you probably want this one.
6770
lt_cv_deplibs_check_method=pass_all
6774
lt_cv_deplibs_check_method=pass_all
6778
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6779
lt_cv_file_magic_cmd='/usr/bin/file -L'
6780
lt_cv_file_magic_test_file=/shlib/libc.so
6784
# func_win32_libid is a shell function defined in ltmain.sh
6785
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6786
lt_cv_file_magic_cmd='func_win32_libid'
6790
# Base MSYS/MinGW do not provide the 'file' command needed by
6791
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6792
# unless we find 'file', for example because we are cross-compiling.
6793
if ( file / ) >/dev/null 2>&1; then
6794
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6795
lt_cv_file_magic_cmd='func_win32_libid'
6797
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6798
lt_cv_file_magic_cmd='$OBJDUMP -f'
6803
# use the weaker test based on 'objdump'. See mingw*.
6804
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6805
lt_cv_file_magic_cmd='$OBJDUMP -f'
6808
darwin* | rhapsody*)
6809
lt_cv_deplibs_check_method=pass_all
6812
freebsd* | dragonfly*)
6813
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6816
# Not sure whether the presence of OpenBSD here was a mistake.
6817
# Let's accept both of them until this is cleared up.
6818
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6819
lt_cv_file_magic_cmd=/usr/bin/file
6820
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6824
lt_cv_deplibs_check_method=pass_all
6829
lt_cv_deplibs_check_method=pass_all
6832
hpux10.20* | hpux11*)
6833
lt_cv_file_magic_cmd=/usr/bin/file
6836
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6837
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6840
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]'
6841
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6844
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6845
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6851
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6852
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6855
irix5* | irix6* | nonstopux*)
6857
*-32|*"-32 ") libmagic=32-bit;;
6858
*-n32|*"-n32 ") libmagic=N32;;
6859
*-64|*"-64 ") libmagic=64-bit;;
6860
*) libmagic=never-match;;
6862
lt_cv_deplibs_check_method=pass_all
6865
# This must be Linux ELF.
6866
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6867
lt_cv_deplibs_check_method=pass_all
6870
netbsd* | netbsdelf*-gnu)
6871
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6872
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6874
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6879
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6880
lt_cv_file_magic_cmd=/usr/bin/file
6881
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6885
lt_cv_deplibs_check_method=pass_all
6889
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6890
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6892
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6896
osf3* | osf4* | osf5*)
6897
lt_cv_deplibs_check_method=pass_all
6901
lt_cv_deplibs_check_method=pass_all
6905
lt_cv_deplibs_check_method=pass_all
6908
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6909
lt_cv_deplibs_check_method=pass_all
6913
case $host_vendor in
6915
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]'
6916
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6919
lt_cv_deplibs_check_method=pass_all
6922
lt_cv_file_magic_cmd='/bin/file'
6923
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6926
lt_cv_file_magic_cmd='/bin/file'
6927
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6928
lt_cv_file_magic_test_file=/lib/libc.so
6931
lt_cv_deplibs_check_method=pass_all
6934
lt_cv_deplibs_check_method=pass_all
6940
lt_cv_deplibs_check_method=pass_all
6945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6946
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6947
file_magic_cmd=$lt_cv_file_magic_cmd
6948
deplibs_check_method=$lt_cv_deplibs_check_method
6949
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6962
if test -n "$ac_tool_prefix"; then
6963
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6964
set dummy ${ac_tool_prefix}ar; ac_word=$2
6965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966
$as_echo_n "checking for $ac_word... " >&6; }
6967
if test "${ac_cv_prog_AR+set}" = set; then :
6968
$as_echo_n "(cached) " >&6
6970
if test -n "$AR"; then
6971
ac_cv_prog_AR="$AR" # Let the user override the test.
6973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977
test -z "$as_dir" && as_dir=.
6978
for ac_exec_ext in '' $ac_executable_extensions; do
6979
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980
ac_cv_prog_AR="${ac_tool_prefix}ar"
6981
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991
if test -n "$AR"; then
6992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6993
$as_echo "$AR" >&6; }
6995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996
$as_echo "no" >&6; }
7001
if test -z "$ac_cv_prog_AR"; then
7003
# Extract the first word of "ar", so it can be a program name with args.
7004
set dummy ar; ac_word=$2
7005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006
$as_echo_n "checking for $ac_word... " >&6; }
7007
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7008
$as_echo_n "(cached) " >&6
7010
if test -n "$ac_ct_AR"; then
7011
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017
test -z "$as_dir" && as_dir=.
7018
for ac_exec_ext in '' $ac_executable_extensions; do
7019
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020
ac_cv_prog_ac_ct_AR="ar"
7021
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7031
if test -n "$ac_ct_AR"; then
7032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7033
$as_echo "$ac_ct_AR" >&6; }
7035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036
$as_echo "no" >&6; }
7039
if test "x$ac_ct_AR" = x; then
7042
case $cross_compiling:$ac_tool_warned in
7044
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7045
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7046
ac_tool_warned=yes ;;
7054
test -z "$AR" && AR=ar
7055
test -z "$AR_FLAGS" && AR_FLAGS=cru
7067
if test -n "$ac_tool_prefix"; then
7068
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7069
set dummy ${ac_tool_prefix}strip; ac_word=$2
7070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071
$as_echo_n "checking for $ac_word... " >&6; }
7072
if test "${ac_cv_prog_STRIP+set}" = set; then :
7073
$as_echo_n "(cached) " >&6
7075
if test -n "$STRIP"; then
7076
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082
test -z "$as_dir" && as_dir=.
7083
for ac_exec_ext in '' $ac_executable_extensions; do
7084
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7086
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095
STRIP=$ac_cv_prog_STRIP
7096
if test -n "$STRIP"; then
7097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7098
$as_echo "$STRIP" >&6; }
7100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101
$as_echo "no" >&6; }
7106
if test -z "$ac_cv_prog_STRIP"; then
7108
# Extract the first word of "strip", so it can be a program name with args.
7109
set dummy strip; ac_word=$2
7110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111
$as_echo_n "checking for $ac_word... " >&6; }
7112
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7113
$as_echo_n "(cached) " >&6
7115
if test -n "$ac_ct_STRIP"; then
7116
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122
test -z "$as_dir" && as_dir=.
7123
for ac_exec_ext in '' $ac_executable_extensions; do
7124
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125
ac_cv_prog_ac_ct_STRIP="strip"
7126
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7136
if test -n "$ac_ct_STRIP"; then
7137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7138
$as_echo "$ac_ct_STRIP" >&6; }
7140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141
$as_echo "no" >&6; }
7144
if test "x$ac_ct_STRIP" = x; then
7147
case $cross_compiling:$ac_tool_warned in
7149
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151
ac_tool_warned=yes ;;
7156
STRIP="$ac_cv_prog_STRIP"
7159
test -z "$STRIP" && STRIP=:
7166
if test -n "$ac_tool_prefix"; then
7167
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7168
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170
$as_echo_n "checking for $ac_word... " >&6; }
7171
if test "${ac_cv_prog_RANLIB+set}" = set; then :
7172
$as_echo_n "(cached) " >&6
7174
if test -n "$RANLIB"; then
7175
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181
test -z "$as_dir" && as_dir=.
7182
for ac_exec_ext in '' $ac_executable_extensions; do
7183
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7185
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194
RANLIB=$ac_cv_prog_RANLIB
7195
if test -n "$RANLIB"; then
7196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7197
$as_echo "$RANLIB" >&6; }
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200
$as_echo "no" >&6; }
7205
if test -z "$ac_cv_prog_RANLIB"; then
7206
ac_ct_RANLIB=$RANLIB
7207
# Extract the first word of "ranlib", so it can be a program name with args.
7208
set dummy ranlib; ac_word=$2
7209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210
$as_echo_n "checking for $ac_word... " >&6; }
7211
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7212
$as_echo_n "(cached) " >&6
7214
if test -n "$ac_ct_RANLIB"; then
7215
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221
test -z "$as_dir" && as_dir=.
7222
for ac_exec_ext in '' $ac_executable_extensions; do
7223
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224
ac_cv_prog_ac_ct_RANLIB="ranlib"
7225
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7235
if test -n "$ac_ct_RANLIB"; then
7236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7237
$as_echo "$ac_ct_RANLIB" >&6; }
7239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240
$as_echo "no" >&6; }
7243
if test "x$ac_ct_RANLIB" = x; then
7246
case $cross_compiling:$ac_tool_warned in
7248
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250
ac_tool_warned=yes ;;
7252
RANLIB=$ac_ct_RANLIB
7255
RANLIB="$ac_cv_prog_RANLIB"
7258
test -z "$RANLIB" && RANLIB=:
7265
# Determine commands to create old-style static archives.
7266
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7267
old_postinstall_cmds='chmod 644 $oldlib'
7268
old_postuninstall_cmds=
7270
if test -n "$RANLIB"; then
7273
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7276
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7279
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7315
# If no C compiler was specified, use CC.
7318
# If no C compiler flags were specified, use CFLAGS.
7319
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7321
# Allow CC to be a program name with arguments.
7325
# Check for command to grab the raw symbol name followed by C symbol from nm.
7326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7327
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7328
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7329
$as_echo_n "(cached) " >&6
7332
# These are sane defaults that work on at least a few old systems.
7333
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7335
# Character class describing NM global symbol codes.
7336
symcode='[BCDEGRST]'
7338
# Regexp to match symbols that can be accessed directly from C.
7339
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7341
# Define system-specific variables.
7346
cygwin* | mingw* | pw32* | cegcc*)
7347
symcode='[ABCDGISTW]'
7350
if test "$host_cpu" = ia64; then
7351
symcode='[ABCDEGRST]'
7355
symcode='[BCDEGRST]'
7358
symcode='[BCDEGQRST]'
7369
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7377
# If we're using GNU nm, then use its standard symbol codes.
7378
case `$NM -V 2>&1` in
7379
*GNU* | *'with BFD'*)
7380
symcode='[ABCDGIRSTW]' ;;
7383
# Transform an extracted symbol line into a proper C declaration.
7384
# Some systems (esp. on ia64) link data and code symbols differently,
7385
# so use this general approach.
7386
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7388
# Transform an extracted symbol line into symbol name and symbol address
7389
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7390
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'"
7392
# Handle CRLF in mingw tool chain
7396
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7400
# Try without a prefix underscore, then with it.
7401
for ac_symprfx in "" "_"; do
7403
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7404
symxfrm="\\1 $ac_symprfx\\2 \\2"
7406
# Write the raw and C identifiers.
7407
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7408
# Fake it for dumpbin and say T for any non-static function
7409
# and D for any global variable.
7410
# Also find C++ and __fastcall symbols from MSVC++,
7411
# which start with @ or ?.
7412
lt_cv_sys_global_symbol_pipe="$AWK '"\
7413
" {last_section=section; section=\$ 3};"\
7414
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7415
" \$ 0!~/External *\|/{next};"\
7416
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7417
" {if(hide[section]) next};"\
7418
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7419
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7420
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7421
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7422
" ' prfx=^$ac_symprfx"
7424
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7427
# Check to see that the pipe works correctly.
7431
cat > conftest.$ac_ext <<_LT_EOF
7436
void nm_test_func(void);
7437
void nm_test_func(void){}
7441
int main(){nm_test_var='a';nm_test_func();return(0);}
7444
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445
(eval $ac_compile) 2>&5
7447
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448
test $ac_status = 0; }; then
7449
# Now try to grab the symbols.
7451
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7452
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7454
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7455
test $ac_status = 0; } && test -s "$nlist"; then
7456
# Try sorting and uniquifying the output.
7457
if sort "$nlist" | uniq > "$nlist"T; then
7458
mv -f "$nlist"T "$nlist"
7463
# Make sure that we snagged all the symbols we need.
7464
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7465
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7466
cat <<_LT_EOF > conftest.$ac_ext
7472
# Now generate the symbol file.
7473
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7475
cat <<_LT_EOF >> conftest.$ac_ext
7477
/* The mapping between symbol names and symbols. */
7482
lt__PROGRAM__LTX_preloaded_symbols[] =
7484
{ "@PROGRAM@", (void *) 0 },
7486
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7487
cat <<\_LT_EOF >> conftest.$ac_ext
7491
/* This works around a problem in FreeBSD linker */
7492
#ifdef FREEBSD_WORKAROUND
7493
static const void *lt_preloaded_setup() {
7494
return lt__PROGRAM__LTX_preloaded_symbols;
7502
# Now try linking the two files.
7503
mv conftest.$ac_objext conftstm.$ac_objext
7504
lt_save_LIBS="$LIBS"
7505
lt_save_CFLAGS="$CFLAGS"
7506
LIBS="conftstm.$ac_objext"
7507
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7508
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7509
(eval $ac_link) 2>&5
7511
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7512
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7515
LIBS="$lt_save_LIBS"
7516
CFLAGS="$lt_save_CFLAGS"
7518
echo "cannot find nm_test_func in $nlist" >&5
7521
echo "cannot find nm_test_var in $nlist" >&5
7524
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7527
echo "$progname: failed program was:" >&5
7528
cat conftest.$ac_ext >&5
7530
rm -rf conftest* conftst*
7532
# Do not use the global_symbol_pipe unless it works.
7533
if test "$pipe_works" = yes; then
7536
lt_cv_sys_global_symbol_pipe=
7542
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7543
lt_cv_sys_global_symbol_to_cdecl=
7545
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7547
$as_echo "failed" >&6; }
7549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7550
$as_echo "ok" >&6; }
7574
# Check whether --enable-libtool-lock was given.
7575
if test "${enable_libtool_lock+set}" = set; then :
7576
enableval=$enable_libtool_lock;
7579
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7581
# Some flags need to be propagated to the compiler or linker for good
7585
# Find out which ABI we are using.
7586
echo 'int i;' > conftest.$ac_ext
7587
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7588
(eval $ac_compile) 2>&5
7590
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7591
test $ac_status = 0; }; then
7592
case `/usr/bin/file conftest.$ac_objext` in
7604
# Find out which ABI we are using.
7605
echo '#line 7605 "configure"' > conftest.$ac_ext
7606
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607
(eval $ac_compile) 2>&5
7609
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610
test $ac_status = 0; }; then
7611
if test "$lt_cv_prog_gnu_ld" = yes; then
7612
case `/usr/bin/file conftest.$ac_objext` in
7614
LD="${LD-ld} -melf32bsmip"
7617
LD="${LD-ld} -melf32bmipn32"
7620
LD="${LD-ld} -melf64bmip"
7624
case `/usr/bin/file conftest.$ac_objext` in
7640
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7641
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7642
# Find out which ABI we are using.
7643
echo 'int i;' > conftest.$ac_ext
7644
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7645
(eval $ac_compile) 2>&5
7647
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648
test $ac_status = 0; }; then
7649
case `/usr/bin/file conftest.o` in
7652
x86_64-*kfreebsd*-gnu)
7653
LD="${LD-ld} -m elf_i386_fbsd"
7656
LD="${LD-ld} -m elf_i386"
7658
ppc64-*linux*|powerpc64-*linux*)
7659
LD="${LD-ld} -m elf32ppclinux"
7662
LD="${LD-ld} -m elf_s390"
7665
LD="${LD-ld} -m elf32_sparc"
7671
x86_64-*kfreebsd*-gnu)
7672
LD="${LD-ld} -m elf_x86_64_fbsd"
7675
LD="${LD-ld} -m elf_x86_64"
7677
ppc*-*linux*|powerpc*-*linux*)
7678
LD="${LD-ld} -m elf64ppc"
7680
s390*-*linux*|s390*-*tpf*)
7681
LD="${LD-ld} -m elf64_s390"
7684
LD="${LD-ld} -m elf64_sparc"
7694
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7695
SAVE_CFLAGS="$CFLAGS"
7696
CFLAGS="$CFLAGS -belf"
7697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7698
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7699
if test "${lt_cv_cc_needs_belf+set}" = set; then :
7700
$as_echo_n "(cached) " >&6
7703
ac_cpp='$CPP $CPPFLAGS'
7704
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709
/* end confdefs.h. */
7719
if ac_fn_c_try_link "$LINENO"; then :
7720
lt_cv_cc_needs_belf=yes
7722
lt_cv_cc_needs_belf=no
7724
rm -f core conftest.err conftest.$ac_objext \
7725
conftest$ac_exeext conftest.$ac_ext
7727
ac_cpp='$CPP $CPPFLAGS'
7728
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7734
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7735
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7736
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7737
CFLAGS="$SAVE_CFLAGS"
7741
# Find out which ABI we are using.
7742
echo 'int i;' > conftest.$ac_ext
7743
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7744
(eval $ac_compile) 2>&5
7746
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7747
test $ac_status = 0; }; then
7748
case `/usr/bin/file conftest.o` in
7750
case $lt_cv_prog_gnu_ld in
7751
yes*) LD="${LD-ld} -m elf64_sparc" ;;
7753
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7765
need_locks="$enable_libtool_lock"
7769
rhapsody* | darwin*)
7770
if test -n "$ac_tool_prefix"; then
7771
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7772
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774
$as_echo_n "checking for $ac_word... " >&6; }
7775
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7776
$as_echo_n "(cached) " >&6
7778
if test -n "$DSYMUTIL"; then
7779
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785
test -z "$as_dir" && as_dir=.
7786
for ac_exec_ext in '' $ac_executable_extensions; do
7787
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7789
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7799
if test -n "$DSYMUTIL"; then
7800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7801
$as_echo "$DSYMUTIL" >&6; }
7803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804
$as_echo "no" >&6; }
7809
if test -z "$ac_cv_prog_DSYMUTIL"; then
7810
ac_ct_DSYMUTIL=$DSYMUTIL
7811
# Extract the first word of "dsymutil", so it can be a program name with args.
7812
set dummy dsymutil; ac_word=$2
7813
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814
$as_echo_n "checking for $ac_word... " >&6; }
7815
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7816
$as_echo_n "(cached) " >&6
7818
if test -n "$ac_ct_DSYMUTIL"; then
7819
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825
test -z "$as_dir" && as_dir=.
7826
for ac_exec_ext in '' $ac_executable_extensions; do
7827
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7829
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7839
if test -n "$ac_ct_DSYMUTIL"; then
7840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7841
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844
$as_echo "no" >&6; }
7847
if test "x$ac_ct_DSYMUTIL" = x; then
7850
case $cross_compiling:$ac_tool_warned in
7852
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854
ac_tool_warned=yes ;;
7856
DSYMUTIL=$ac_ct_DSYMUTIL
7859
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7862
if test -n "$ac_tool_prefix"; then
7863
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7864
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866
$as_echo_n "checking for $ac_word... " >&6; }
7867
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7868
$as_echo_n "(cached) " >&6
7870
if test -n "$NMEDIT"; then
7871
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877
test -z "$as_dir" && as_dir=.
7878
for ac_exec_ext in '' $ac_executable_extensions; do
7879
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7881
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890
NMEDIT=$ac_cv_prog_NMEDIT
7891
if test -n "$NMEDIT"; then
7892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7893
$as_echo "$NMEDIT" >&6; }
7895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896
$as_echo "no" >&6; }
7901
if test -z "$ac_cv_prog_NMEDIT"; then
7902
ac_ct_NMEDIT=$NMEDIT
7903
# Extract the first word of "nmedit", so it can be a program name with args.
7904
set dummy nmedit; ac_word=$2
7905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906
$as_echo_n "checking for $ac_word... " >&6; }
7907
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7908
$as_echo_n "(cached) " >&6
7910
if test -n "$ac_ct_NMEDIT"; then
7911
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917
test -z "$as_dir" && as_dir=.
7918
for ac_exec_ext in '' $ac_executable_extensions; do
7919
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7921
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7931
if test -n "$ac_ct_NMEDIT"; then
7932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7933
$as_echo "$ac_ct_NMEDIT" >&6; }
7935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936
$as_echo "no" >&6; }
7939
if test "x$ac_ct_NMEDIT" = x; then
7942
case $cross_compiling:$ac_tool_warned in
7944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7945
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7946
ac_tool_warned=yes ;;
7948
NMEDIT=$ac_ct_NMEDIT
7951
NMEDIT="$ac_cv_prog_NMEDIT"
7954
if test -n "$ac_tool_prefix"; then
7955
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7956
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958
$as_echo_n "checking for $ac_word... " >&6; }
7959
if test "${ac_cv_prog_LIPO+set}" = set; then :
7960
$as_echo_n "(cached) " >&6
7962
if test -n "$LIPO"; then
7963
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969
test -z "$as_dir" && as_dir=.
7970
for ac_exec_ext in '' $ac_executable_extensions; do
7971
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7973
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982
LIPO=$ac_cv_prog_LIPO
7983
if test -n "$LIPO"; then
7984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7985
$as_echo "$LIPO" >&6; }
7987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988
$as_echo "no" >&6; }
7993
if test -z "$ac_cv_prog_LIPO"; then
7995
# Extract the first word of "lipo", so it can be a program name with args.
7996
set dummy lipo; ac_word=$2
7997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998
$as_echo_n "checking for $ac_word... " >&6; }
7999
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8000
$as_echo_n "(cached) " >&6
8002
if test -n "$ac_ct_LIPO"; then
8003
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009
test -z "$as_dir" && as_dir=.
8010
for ac_exec_ext in '' $ac_executable_extensions; do
8011
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012
ac_cv_prog_ac_ct_LIPO="lipo"
8013
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8023
if test -n "$ac_ct_LIPO"; then
8024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8025
$as_echo "$ac_ct_LIPO" >&6; }
8027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028
$as_echo "no" >&6; }
8031
if test "x$ac_ct_LIPO" = x; then
8034
case $cross_compiling:$ac_tool_warned in
8036
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038
ac_tool_warned=yes ;;
8043
LIPO="$ac_cv_prog_LIPO"
8046
if test -n "$ac_tool_prefix"; then
8047
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8048
set dummy ${ac_tool_prefix}otool; ac_word=$2
8049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050
$as_echo_n "checking for $ac_word... " >&6; }
8051
if test "${ac_cv_prog_OTOOL+set}" = set; then :
8052
$as_echo_n "(cached) " >&6
8054
if test -n "$OTOOL"; then
8055
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061
test -z "$as_dir" && as_dir=.
8062
for ac_exec_ext in '' $ac_executable_extensions; do
8063
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8064
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8065
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074
OTOOL=$ac_cv_prog_OTOOL
8075
if test -n "$OTOOL"; then
8076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8077
$as_echo "$OTOOL" >&6; }
8079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080
$as_echo "no" >&6; }
8085
if test -z "$ac_cv_prog_OTOOL"; then
8087
# Extract the first word of "otool", so it can be a program name with args.
8088
set dummy otool; ac_word=$2
8089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090
$as_echo_n "checking for $ac_word... " >&6; }
8091
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8092
$as_echo_n "(cached) " >&6
8094
if test -n "$ac_ct_OTOOL"; then
8095
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8097
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101
test -z "$as_dir" && as_dir=.
8102
for ac_exec_ext in '' $ac_executable_extensions; do
8103
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8104
ac_cv_prog_ac_ct_OTOOL="otool"
8105
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8114
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8115
if test -n "$ac_ct_OTOOL"; then
8116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8117
$as_echo "$ac_ct_OTOOL" >&6; }
8119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120
$as_echo "no" >&6; }
8123
if test "x$ac_ct_OTOOL" = x; then
8126
case $cross_compiling:$ac_tool_warned in
8128
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8129
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8130
ac_tool_warned=yes ;;
8135
OTOOL="$ac_cv_prog_OTOOL"
8138
if test -n "$ac_tool_prefix"; then
8139
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8140
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142
$as_echo_n "checking for $ac_word... " >&6; }
8143
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8144
$as_echo_n "(cached) " >&6
8146
if test -n "$OTOOL64"; then
8147
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153
test -z "$as_dir" && as_dir=.
8154
for ac_exec_ext in '' $ac_executable_extensions; do
8155
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8156
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8157
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166
OTOOL64=$ac_cv_prog_OTOOL64
8167
if test -n "$OTOOL64"; then
8168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8169
$as_echo "$OTOOL64" >&6; }
8171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172
$as_echo "no" >&6; }
8177
if test -z "$ac_cv_prog_OTOOL64"; then
8178
ac_ct_OTOOL64=$OTOOL64
8179
# Extract the first word of "otool64", so it can be a program name with args.
8180
set dummy otool64; ac_word=$2
8181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182
$as_echo_n "checking for $ac_word... " >&6; }
8183
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8184
$as_echo_n "(cached) " >&6
8186
if test -n "$ac_ct_OTOOL64"; then
8187
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193
test -z "$as_dir" && as_dir=.
8194
for ac_exec_ext in '' $ac_executable_extensions; do
8195
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8196
ac_cv_prog_ac_ct_OTOOL64="otool64"
8197
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8207
if test -n "$ac_ct_OTOOL64"; then
8208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8209
$as_echo "$ac_ct_OTOOL64" >&6; }
8211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212
$as_echo "no" >&6; }
8215
if test "x$ac_ct_OTOOL64" = x; then
8218
case $cross_compiling:$ac_tool_warned in
8220
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8221
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8222
ac_tool_warned=yes ;;
8224
OTOOL64=$ac_ct_OTOOL64
8227
OTOOL64="$ac_cv_prog_OTOOL64"
8256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8257
$as_echo_n "checking for -single_module linker flag... " >&6; }
8258
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8259
$as_echo_n "(cached) " >&6
8261
lt_cv_apple_cc_single_mod=no
8262
if test -z "${LT_MULTI_MODULE}"; then
8263
# By default we will add the -single_module flag. You can override
8264
# by either setting the environment variable LT_MULTI_MODULE
8265
# non-empty at configure time, or by adding -multi_module to the
8267
rm -rf libconftest.dylib*
8268
echo "int foo(void){return 1;}" > conftest.c
8269
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8270
-dynamiclib -Wl,-single_module conftest.c" >&5
8271
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8272
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8274
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8275
lt_cv_apple_cc_single_mod=yes
8277
cat conftest.err >&5
8279
rm -rf libconftest.dylib*
8283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8284
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8286
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8287
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8288
$as_echo_n "(cached) " >&6
8290
lt_cv_ld_exported_symbols_list=no
8291
save_LDFLAGS=$LDFLAGS
8292
echo "_main" > conftest.sym
8293
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8294
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295
/* end confdefs.h. */
8305
if ac_fn_c_try_link "$LINENO"; then :
8306
lt_cv_ld_exported_symbols_list=yes
8308
lt_cv_ld_exported_symbols_list=no
8310
rm -f core conftest.err conftest.$ac_objext \
8311
conftest$ac_exeext conftest.$ac_ext
8312
LDFLAGS="$save_LDFLAGS"
8315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8316
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8318
rhapsody* | darwin1.[012])
8319
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8321
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8322
darwin*) # darwin 5.x on
8323
# if running on 10.5 or later, the deployment target defaults
8324
# to the OS version, if on x86, and 10.4, the deployment
8325
# target defaults to 10.4. Don't you love it?
8326
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8327
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8328
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8330
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8332
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8336
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8337
_lt_dar_single_mod='$single_module'
8339
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8340
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8342
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8344
if test "$DSYMUTIL" != ":"; then
8345
_lt_dsymutil='~$DSYMUTIL $lib || :'
8352
for ac_header in dlfcn.h
8354
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8356
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8357
cat >>confdefs.h <<_ACEOF
8358
#define HAVE_DLFCN_H 1
8368
ac_cpp='$CXXCPP $CPPFLAGS'
8369
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8372
if test -z "$CXX"; then
8373
if test -n "$CCC"; then
8376
if test -n "$ac_tool_prefix"; then
8377
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8379
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8380
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382
$as_echo_n "checking for $ac_word... " >&6; }
8383
if test "${ac_cv_prog_CXX+set}" = set; then :
8384
$as_echo_n "(cached) " >&6
8386
if test -n "$CXX"; then
8387
ac_cv_prog_CXX="$CXX" # Let the user override the test.
8389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393
test -z "$as_dir" && as_dir=.
8394
for ac_exec_ext in '' $ac_executable_extensions; do
8395
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8397
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407
if test -n "$CXX"; then
8408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8409
$as_echo "$CXX" >&6; }
8411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412
$as_echo "no" >&6; }
8416
test -n "$CXX" && break
8419
if test -z "$CXX"; then
8421
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8423
# Extract the first word of "$ac_prog", so it can be a program name with args.
8424
set dummy $ac_prog; ac_word=$2
8425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426
$as_echo_n "checking for $ac_word... " >&6; }
8427
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8428
$as_echo_n "(cached) " >&6
8430
if test -n "$ac_ct_CXX"; then
8431
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437
test -z "$as_dir" && as_dir=.
8438
for ac_exec_ext in '' $ac_executable_extensions; do
8439
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440
ac_cv_prog_ac_ct_CXX="$ac_prog"
8441
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8451
if test -n "$ac_ct_CXX"; then
8452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8453
$as_echo "$ac_ct_CXX" >&6; }
8455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456
$as_echo "no" >&6; }
8460
test -n "$ac_ct_CXX" && break
8463
if test "x$ac_ct_CXX" = x; then
8466
case $cross_compiling:$ac_tool_warned in
8468
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470
ac_tool_warned=yes ;;
8478
# Provide some information about the compiler.
8479
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8482
for ac_option in --version -v -V -qversion; do
8483
{ { ac_try="$ac_compiler $ac_option >&5"
8485
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486
*) ac_try_echo=$ac_try;;
8488
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8489
$as_echo "$ac_try_echo"; } >&5
8490
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
8492
if test -s conftest.err; then
8494
... rest of stderr output deleted ...
8495
10q' conftest.err >conftest.er1
8496
cat conftest.er1 >&5
8498
rm -f conftest.er1 conftest.err
8499
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8500
test $ac_status = 0; }
8503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8504
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8505
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8506
$as_echo_n "(cached) " >&6
8508
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509
/* end confdefs.h. */
8522
if ac_fn_cxx_try_compile "$LINENO"; then :
8527
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8532
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8533
if test $ac_compiler_gnu = yes; then
8538
ac_test_CXXFLAGS=${CXXFLAGS+set}
8539
ac_save_CXXFLAGS=$CXXFLAGS
8540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8541
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8542
if test "${ac_cv_prog_cxx_g+set}" = set; then :
8543
$as_echo_n "(cached) " >&6
8545
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8546
ac_cxx_werror_flag=yes
8549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550
/* end confdefs.h. */
8560
if ac_fn_cxx_try_compile "$LINENO"; then :
8561
ac_cv_prog_cxx_g=yes
8564
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565
/* end confdefs.h. */
8575
if ac_fn_cxx_try_compile "$LINENO"; then :
8578
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8580
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581
/* end confdefs.h. */
8591
if ac_fn_cxx_try_compile "$LINENO"; then :
8592
ac_cv_prog_cxx_g=yes
8594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8601
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8602
$as_echo "$ac_cv_prog_cxx_g" >&6; }
8603
if test "$ac_test_CXXFLAGS" = set; then
8604
CXXFLAGS=$ac_save_CXXFLAGS
8605
elif test $ac_cv_prog_cxx_g = yes; then
8606
if test "$GXX" = yes; then
8612
if test "$GXX" = yes; then
8619
ac_cpp='$CPP $CPPFLAGS'
8620
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8621
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8622
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8624
depcc="$CXX" am_compiler_list=
8626
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8627
$as_echo_n "checking dependency style of $depcc... " >&6; }
8628
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8629
$as_echo_n "(cached) " >&6
8631
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8632
# We make a subdir and do the tests there. Otherwise we can end up
8633
# making bogus files that we don't know about and never remove. For
8634
# instance it was reported that on HP-UX the gcc test will end up
8635
# making a dummy file named `D' -- because `-MD' means `put the output
8638
# Copy depcomp to subdir because otherwise we won't find it if we're
8639
# using a relative directory.
8640
cp "$am_depcomp" conftest.dir
8642
# We will build objects and dependencies in a subdirectory because
8643
# it helps to detect inapplicable dependency modes. For instance
8644
# both Tru64's cc and ICC support -MD to output dependencies as a
8645
# side effect of compilation, but ICC will put the dependencies in
8646
# the current directory while Tru64 will put them in the object
8650
am_cv_CXX_dependencies_compiler_type=none
8651
if test "$am_compiler_list" = ""; then
8652
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8655
case " $depcc " in #(
8656
*\ -arch\ *\ -arch\ *) am__universal=true ;;
8659
for depmode in $am_compiler_list; do
8660
# Setup a source with many dependencies, because some compilers
8661
# like to wrap large dependency lists on column 80 (with \), and
8662
# we should not choose a depcomp mode which is confused by this.
8664
# We need to recreate these files for each test, as the compiler may
8665
# overwrite some of them when testing with obscure command lines.
8666
# This happens at least with the AIX C compiler.
8668
for i in 1 2 3 4 5 6; do
8669
echo '#include "conftst'$i'.h"' >> sub/conftest.c
8670
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8671
# Solaris 8's {/usr,}/bin/sh.
8672
touch sub/conftst$i.h
8674
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8676
# We check with `-c' and `-o' for the sake of the "dashmstdout"
8677
# mode. It turns out that the SunPro C++ compiler does not properly
8678
# handle `-M -o', and we need to detect this. Also, some Intel
8679
# versions had trouble with output in subdirs
8680
am__obj=sub/conftest.${OBJEXT-o}
8681
am__minus_obj="-o $am__obj"
8684
# This depmode causes a compiler race in universal mode.
8685
test "$am__universal" = false || continue
8688
# after this tag, mechanisms are not by side-effect, so they'll
8689
# only be used when explicitly requested
8690
if test "x$enable_dependency_tracking" = xyes; then
8696
msvisualcpp | msvcmsys)
8697
# This compiler won't grok `-c -o', but also, the minuso test has
8698
# not run yet. These depmodes are late enough in the game, and
8699
# so weak that their functioning should not be impacted.
8700
am__obj=conftest.${OBJEXT-o}
8705
if depmode=$depmode \
8706
source=sub/conftest.c object=$am__obj \
8707
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8708
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8709
>/dev/null 2>conftest.err &&
8710
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8711
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8712
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8713
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8714
# icc doesn't choke on unknown options, it will just issue warnings
8715
# or remarks (even with -Werror). So we grep stderr for any message
8716
# that says an option was ignored or not supported.
8717
# When given -MP, icc 7.0 and 7.1 complain thusly:
8718
# icc: Command line warning: ignoring option '-M'; no argument required
8719
# The diagnosis changed in icc 8.0:
8720
# icc: Command line remark: option '-MP' not supported
8721
if (grep 'ignoring option' conftest.err ||
8722
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8723
am_cv_CXX_dependencies_compiler_type=$depmode
8732
am_cv_CXX_dependencies_compiler_type=none
8736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8737
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8738
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8741
test "x$enable_dependency_tracking" != xno \
8742
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8743
am__fastdepCXX_TRUE=
8744
am__fastdepCXX_FALSE='#'
8746
am__fastdepCXX_TRUE='#'
8747
am__fastdepCXX_FALSE=
8751
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8752
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8753
(test "X$CXX" != "Xg++"))) ; then
8755
ac_cpp='$CXXCPP $CPPFLAGS'
8756
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8760
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8761
if test -z "$CXXCPP"; then
8762
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8763
$as_echo_n "(cached) " >&6
8765
# Double quotes because CXXCPP needs to be expanded
8766
for CXXCPP in "$CXX -E" "/lib/cpp"
8769
for ac_cxx_preproc_warn_flag in '' yes
8771
# Use a header file that comes with gcc, so configuring glibc
8772
# with a fresh cross-compiler works.
8773
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774
# <limits.h> exists even on freestanding compilers.
8775
# On the NeXT, cc -E runs the code through the compiler's parser,
8776
# not just through cpp. "Syntax error" is here to catch this case.
8777
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778
/* end confdefs.h. */
8780
# include <limits.h>
8782
# include <assert.h>
8786
if ac_fn_cxx_try_cpp "$LINENO"; then :
8789
# Broken: fails on valid input.
8792
rm -f conftest.err conftest.i conftest.$ac_ext
8794
# OK, works on sane cases. Now check whether nonexistent headers
8795
# can be detected and how.
8796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797
/* end confdefs.h. */
8798
#include <ac_nonexistent.h>
8800
if ac_fn_cxx_try_cpp "$LINENO"; then :
8801
# Broken: success on invalid input.
8804
# Passes both tests.
8808
rm -f conftest.err conftest.i conftest.$ac_ext
8811
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812
rm -f conftest.i conftest.err conftest.$ac_ext
8813
if $ac_preproc_ok; then :
8818
ac_cv_prog_CXXCPP=$CXXCPP
8821
CXXCPP=$ac_cv_prog_CXXCPP
8823
ac_cv_prog_CXXCPP=$CXXCPP
8825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8826
$as_echo "$CXXCPP" >&6; }
8828
for ac_cxx_preproc_warn_flag in '' yes
8830
# Use a header file that comes with gcc, so configuring glibc
8831
# with a fresh cross-compiler works.
8832
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833
# <limits.h> exists even on freestanding compilers.
8834
# On the NeXT, cc -E runs the code through the compiler's parser,
8835
# not just through cpp. "Syntax error" is here to catch this case.
8836
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837
/* end confdefs.h. */
8839
# include <limits.h>
8841
# include <assert.h>
8845
if ac_fn_cxx_try_cpp "$LINENO"; then :
8848
# Broken: fails on valid input.
8851
rm -f conftest.err conftest.i conftest.$ac_ext
8853
# OK, works on sane cases. Now check whether nonexistent headers
8854
# can be detected and how.
8855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856
/* end confdefs.h. */
8857
#include <ac_nonexistent.h>
8859
if ac_fn_cxx_try_cpp "$LINENO"; then :
8860
# Broken: success on invalid input.
8863
# Passes both tests.
8867
rm -f conftest.err conftest.i conftest.$ac_ext
8870
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8871
rm -f conftest.i conftest.err conftest.$ac_ext
8872
if $ac_preproc_ok; then :
8875
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8876
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8877
_lt_caught_CXX_error=yes; }
8881
ac_cpp='$CPP $CPPFLAGS'
8882
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8887
_lt_caught_CXX_error=yes
8904
# Check whether --enable-shared was given.
8905
if test "${enable_shared+set}" = set; then :
8906
enableval=$enable_shared; p=${PACKAGE-default}
8908
yes) enable_shared=yes ;;
8909
no) enable_shared=no ;;
8912
# Look at the argument we got. We use all the common list separators.
8913
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8914
for pkg in $enableval; do
8916
if test "X$pkg" = "X$p"; then
8935
# Check whether --enable-static was given.
8936
if test "${enable_static+set}" = set; then :
8937
enableval=$enable_static; p=${PACKAGE-default}
8939
yes) enable_static=yes ;;
8940
no) enable_static=no ;;
8943
# Look at the argument we got. We use all the common list separators.
8944
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8945
for pkg in $enableval; do
8947
if test "X$pkg" = "X$p"; then
8967
# Check whether --with-pic was given.
8968
if test "${with_pic+set}" = set; then :
8969
withval=$with_pic; pic_mode="$withval"
8975
test -z "$pic_mode" && pic_mode=default
8983
# Check whether --enable-fast-install was given.
8984
if test "${enable_fast_install+set}" = set; then :
8985
enableval=$enable_fast_install; p=${PACKAGE-default}
8987
yes) enable_fast_install=yes ;;
8988
no) enable_fast_install=no ;;
8990
enable_fast_install=no
8991
# Look at the argument we got. We use all the common list separators.
8992
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8993
for pkg in $enableval; do
8995
if test "X$pkg" = "X$p"; then
8996
enable_fast_install=yes
9003
enable_fast_install=yes
9016
# This can be used to rebuild libtool when needed
9017
LIBTOOL_DEPS="$ltmain"
9019
# Always use our own libtool.
9020
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9046
test -z "$LN_S" && LN_S="ln -s"
9061
if test -n "${ZSH_VERSION+set}" ; then
9062
setopt NO_GLOB_SUBST
9065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9066
$as_echo_n "checking for objdir... " >&6; }
9067
if test "${lt_cv_objdir+set}" = set; then :
9068
$as_echo_n "(cached) " >&6
9070
rm -f .libs 2>/dev/null
9071
mkdir .libs 2>/dev/null
9072
if test -d .libs; then
9075
# MS-DOS does not allow filenames that begin with a dot.
9078
rmdir .libs 2>/dev/null
9080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9081
$as_echo "$lt_cv_objdir" >&6; }
9082
objdir=$lt_cv_objdir
9088
cat >>confdefs.h <<_ACEOF
9089
#define LT_OBJDIR "$lt_cv_objdir/"
9110
# AIX sometimes has problems with the GCC collect2 program. For some
9111
# reason, if we set the COLLECT_NAMES environment variable, the problems
9112
# vanish in a puff of smoke.
9113
if test "X${COLLECT_NAMES+set}" != Xset; then
9115
export COLLECT_NAMES
9120
# Sed substitution that helps us do robust quoting. It backslashifies
9121
# metacharacters that are still active within double-quoted strings.
9122
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9124
# Same as above, but do not quote variable references.
9125
double_quote_subst='s/\(["`\\]\)/\\\1/g'
9127
# Sed substitution to delay expansion of an escaped shell variable in a
9128
# double_quote_subst'ed string.
9129
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9131
# Sed substitution to delay expansion of an escaped single quote.
9132
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9134
# Sed substitution to avoid accidental globbing in evaled expressions
9135
no_glob_subst='s/\*/\\\*/g'
9139
can_build_shared=yes
9141
# All known linkers require a `.a' archive for static linking (except MSVC,
9142
# which needs '.lib').
9145
with_gnu_ld="$lt_cv_prog_gnu_ld"
9148
old_CFLAGS="$CFLAGS"
9150
# Set sane defaults for various variables
9151
test -z "$CC" && CC=cc
9152
test -z "$LTCC" && LTCC=$CC
9153
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9154
test -z "$LD" && LD=ld
9155
test -z "$ac_objext" && ac_objext=o
9157
for cc_temp in $compiler""; do
9159
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9160
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9165
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9168
# Only perform the check for file, if the check method requires it
9169
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9170
case $deplibs_check_method in
9172
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9174
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9175
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9176
$as_echo_n "(cached) " >&6
9180
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9183
lt_save_MAGIC_CMD="$MAGIC_CMD"
9184
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9185
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9186
for ac_dir in $ac_dummy; do
9188
test -z "$ac_dir" && ac_dir=.
9189
if test -f $ac_dir/${ac_tool_prefix}file; then
9190
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9191
if test -n "$file_magic_test_file"; then
9192
case $deplibs_check_method in
9194
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9195
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9196
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9197
$EGREP "$file_magic_regex" > /dev/null; then
9202
*** Warning: the command libtool uses to detect shared libraries,
9203
*** $file_magic_cmd, produces output that libtool cannot recognize.
9204
*** The result is that libtool may fail to recognize shared libraries
9205
*** as such. This will affect the creation of libtool libraries that
9206
*** depend on shared libraries, but programs linked with such libtool
9207
*** libraries will work regardless of this problem. Nevertheless, you
9208
*** may want to report the problem to your system manager and/or to
9209
*** bug-libtool@gnu.org
9219
MAGIC_CMD="$lt_save_MAGIC_CMD"
9224
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9225
if test -n "$MAGIC_CMD"; then
9226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9227
$as_echo "$MAGIC_CMD" >&6; }
9229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230
$as_echo "no" >&6; }
9237
if test -z "$lt_cv_path_MAGIC_CMD"; then
9238
if test -n "$ac_tool_prefix"; then
9239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9240
$as_echo_n "checking for file... " >&6; }
9241
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9242
$as_echo_n "(cached) " >&6
9246
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9249
lt_save_MAGIC_CMD="$MAGIC_CMD"
9250
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9251
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9252
for ac_dir in $ac_dummy; do
9254
test -z "$ac_dir" && ac_dir=.
9255
if test -f $ac_dir/file; then
9256
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9257
if test -n "$file_magic_test_file"; then
9258
case $deplibs_check_method in
9260
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9261
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9262
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9263
$EGREP "$file_magic_regex" > /dev/null; then
9268
*** Warning: the command libtool uses to detect shared libraries,
9269
*** $file_magic_cmd, produces output that libtool cannot recognize.
9270
*** The result is that libtool may fail to recognize shared libraries
9271
*** as such. This will affect the creation of libtool libraries that
9272
*** depend on shared libraries, but programs linked with such libtool
9273
*** libraries will work regardless of this problem. Nevertheless, you
9274
*** may want to report the problem to your system manager and/or to
9275
*** bug-libtool@gnu.org
9285
MAGIC_CMD="$lt_save_MAGIC_CMD"
9290
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9291
if test -n "$MAGIC_CMD"; then
9292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9293
$as_echo "$MAGIC_CMD" >&6; }
9295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296
$as_echo "no" >&6; }
9309
# Use C for the default configuration in the libtool script
9313
ac_cpp='$CPP $CPPFLAGS'
9314
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9315
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9316
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9319
# Source file extension for C test sources.
9322
# Object file extension for compiled C test sources.
9326
# Code to be used in simple compile tests
9327
lt_simple_compile_test_code="int some_variable = 0;"
9329
# Code to be used in simple link tests
9330
lt_simple_link_test_code='int main(){return(0);}'
9338
# If no C compiler was specified, use CC.
9341
# If no C compiler flags were specified, use CFLAGS.
9342
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9344
# Allow CC to be a program name with arguments.
9347
# Save the default compiler, since it gets overwritten when the other
9348
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9349
compiler_DEFAULT=$CC
9351
# save warnings/boilerplate of simple test code
9352
ac_outfile=conftest.$ac_objext
9353
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9354
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9355
_lt_compiler_boilerplate=`cat conftest.err`
9358
ac_outfile=conftest.$ac_objext
9359
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9360
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9361
_lt_linker_boilerplate=`cat conftest.err`
9366
## There is no encapsulation within the following macros, do not change
9367
## the running order or otherwise move them around unless you know exactly
9368
## what you are doing...
9369
if test -n "$compiler"; then
9371
lt_prog_compiler_no_builtin_flag=
9373
if test "$GCC" = yes; then
9374
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9377
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9378
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9379
$as_echo_n "(cached) " >&6
9381
lt_cv_prog_compiler_rtti_exceptions=no
9382
ac_outfile=conftest.$ac_objext
9383
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9384
lt_compiler_flag="-fno-rtti -fno-exceptions"
9385
# Insert the option either (1) after the last *FLAGS variable, or
9386
# (2) before a word containing "conftest.", or (3) at the end.
9387
# Note that $ac_compile itself does not contain backslashes and begins
9388
# with a dollar sign (not a hyphen), so the echo should work correctly.
9389
# The option is referenced via a variable to avoid confusing sed.
9390
lt_compile=`echo "$ac_compile" | $SED \
9391
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9392
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9393
-e 's:$: $lt_compiler_flag:'`
9394
(eval echo "\"\$as_me:9394: $lt_compile\"" >&5)
9395
(eval "$lt_compile" 2>conftest.err)
9397
cat conftest.err >&5
9398
echo "$as_me:9398: \$? = $ac_status" >&5
9399
if (exit $ac_status) && test -s "$ac_outfile"; then
9400
# The compiler can only warn and ignore the option if not recognized
9401
# So say no if there are warnings other than the usual output.
9402
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9403
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9404
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9405
lt_cv_prog_compiler_rtti_exceptions=yes
9411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9412
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9414
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9415
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9427
lt_prog_compiler_wl=
9428
lt_prog_compiler_pic=
9429
lt_prog_compiler_static=
9431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9432
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9434
if test "$GCC" = yes; then
9435
lt_prog_compiler_wl='-Wl,'
9436
lt_prog_compiler_static='-static'
9440
# All AIX code is PIC.
9441
if test "$host_cpu" = ia64; then
9442
# AIX 5 now supports IA64 processor
9443
lt_prog_compiler_static='-Bstatic'
9450
# see comment about AmigaOS4 .so support
9451
lt_prog_compiler_pic='-fPIC'
9454
# FIXME: we need at least 68020 code to build shared libraries, but
9455
# adding the `-m68020' flag to GCC prevents building anything better,
9457
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9462
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9463
# PIC is the default for these OSes.
9466
mingw* | cygwin* | pw32* | os2* | cegcc*)
9467
# This hack is so that the source file can tell whether it is being
9468
# built for inclusion in a dll (and should export symbols for example).
9469
# Although the cygwin gcc ignores -fPIC, still need this for old-style
9470
# (--disable-auto-import) libraries
9471
lt_prog_compiler_pic='-DDLL_EXPORT'
9474
darwin* | rhapsody*)
9475
# PIC is the default on this platform
9476
# Common symbols not allowed in MH_DYLIB files
9477
lt_prog_compiler_pic='-fno-common'
9481
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9482
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9483
# sets the default TLS model and affects inlining.
9489
lt_prog_compiler_pic='-fPIC'
9495
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
9496
# Instead, we relocate shared libraries at runtime.
9500
# Just because we use GCC doesn't mean we suddenly get shared libraries
9501
# on systems that don't support them.
9502
lt_prog_compiler_can_build_shared=no
9507
# QNX uses GNU C++, but need to define -shared option too, otherwise
9509
lt_prog_compiler_pic='-fPIC -shared'
9513
if test -d /usr/nec; then
9514
lt_prog_compiler_pic=-Kconform_pic
9519
lt_prog_compiler_pic='-fPIC'
9523
# PORTME Check for flag to pass linker flags through the system compiler.
9526
lt_prog_compiler_wl='-Wl,'
9527
if test "$host_cpu" = ia64; then
9528
# AIX 5 now supports IA64 processor
9529
lt_prog_compiler_static='-Bstatic'
9531
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9535
mingw* | cygwin* | pw32* | os2* | cegcc*)
9536
# This hack is so that the source file can tell whether it is being
9537
# built for inclusion in a dll (and should export symbols for example).
9538
lt_prog_compiler_pic='-DDLL_EXPORT'
9541
hpux9* | hpux10* | hpux11*)
9542
lt_prog_compiler_wl='-Wl,'
9543
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9550
lt_prog_compiler_pic='+Z'
9553
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9554
lt_prog_compiler_static='${wl}-a ${wl}archive'
9557
irix5* | irix6* | nonstopux*)
9558
lt_prog_compiler_wl='-Wl,'
9559
# PIC (with -KPIC) is the default.
9560
lt_prog_compiler_static='-non_shared'
9563
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9564
case $cc_basename in
9565
# old Intel for x86_64 which still supported -KPIC.
9567
lt_prog_compiler_wl='-Wl,'
9568
lt_prog_compiler_pic='-KPIC'
9569
lt_prog_compiler_static='-static'
9571
# icc used to be incompatible with GCC.
9572
# ICC 10 doesn't accept -KPIC any more.
9574
lt_prog_compiler_wl='-Wl,'
9575
lt_prog_compiler_pic='-fPIC'
9576
lt_prog_compiler_static='-static'
9578
# Lahey Fortran 8.1.
9580
lt_prog_compiler_wl='-Wl,'
9581
lt_prog_compiler_pic='--shared'
9582
lt_prog_compiler_static='--static'
9584
pgcc* | pgf77* | pgf90* | pgf95*)
9585
# Portland Group compilers (*not* the Pentium gcc compiler,
9586
# which looks to be a dead project)
9587
lt_prog_compiler_wl='-Wl,'
9588
lt_prog_compiler_pic='-fpic'
9589
lt_prog_compiler_static='-Bstatic'
9592
lt_prog_compiler_wl='-Wl,'
9593
# All Alpha code is PIC.
9594
lt_prog_compiler_static='-non_shared'
9597
# IBM XL C 8.0/Fortran 10.1 on PPC
9598
lt_prog_compiler_wl='-Wl,'
9599
lt_prog_compiler_pic='-qpic'
9600
lt_prog_compiler_static='-qstaticlink'
9603
case `$CC -V 2>&1 | sed 5q` in
9606
lt_prog_compiler_pic='-KPIC'
9607
lt_prog_compiler_static='-Bstatic'
9608
lt_prog_compiler_wl='-Wl,'
9611
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9612
lt_prog_compiler_pic='-KPIC'
9613
lt_prog_compiler_static='-Bstatic'
9614
lt_prog_compiler_wl=''
9622
lt_prog_compiler_pic='-KPIC'
9623
lt_prog_compiler_static='-Bstatic'
9627
# QNX uses GNU C++, but need to define -shared option too, otherwise
9629
lt_prog_compiler_pic='-fPIC -shared'
9632
osf3* | osf4* | osf5*)
9633
lt_prog_compiler_wl='-Wl,'
9634
# All OSF/1 code is PIC.
9635
lt_prog_compiler_static='-non_shared'
9639
lt_prog_compiler_static='-non_shared'
9643
lt_prog_compiler_pic='-KPIC'
9644
lt_prog_compiler_static='-Bstatic'
9645
case $cc_basename in
9647
lt_prog_compiler_wl='-Qoption ld ';;
9649
lt_prog_compiler_wl='-Wl,';;
9654
lt_prog_compiler_wl='-Qoption ld '
9655
lt_prog_compiler_pic='-PIC'
9656
lt_prog_compiler_static='-Bstatic'
9659
sysv4 | sysv4.2uw2* | sysv4.3*)
9660
lt_prog_compiler_wl='-Wl,'
9661
lt_prog_compiler_pic='-KPIC'
9662
lt_prog_compiler_static='-Bstatic'
9666
if test -d /usr/nec ;then
9667
lt_prog_compiler_pic='-Kconform_pic'
9668
lt_prog_compiler_static='-Bstatic'
9672
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9673
lt_prog_compiler_wl='-Wl,'
9674
lt_prog_compiler_pic='-KPIC'
9675
lt_prog_compiler_static='-Bstatic'
9679
lt_prog_compiler_wl='-Wl,'
9680
lt_prog_compiler_can_build_shared=no
9684
lt_prog_compiler_pic='-pic'
9685
lt_prog_compiler_static='-Bstatic'
9689
lt_prog_compiler_can_build_shared=no
9695
# For platforms which do not support PIC, -DPIC is meaningless:
9697
lt_prog_compiler_pic=
9700
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9704
$as_echo "$lt_prog_compiler_pic" >&6; }
9712
# Check to make sure the PIC flag actually works.
9714
if test -n "$lt_prog_compiler_pic"; then
9715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9716
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9717
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9718
$as_echo_n "(cached) " >&6
9720
lt_cv_prog_compiler_pic_works=no
9721
ac_outfile=conftest.$ac_objext
9722
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9723
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9724
# Insert the option either (1) after the last *FLAGS variable, or
9725
# (2) before a word containing "conftest.", or (3) at the end.
9726
# Note that $ac_compile itself does not contain backslashes and begins
9727
# with a dollar sign (not a hyphen), so the echo should work correctly.
9728
# The option is referenced via a variable to avoid confusing sed.
9729
lt_compile=`echo "$ac_compile" | $SED \
9730
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9731
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9732
-e 's:$: $lt_compiler_flag:'`
9733
(eval echo "\"\$as_me:9733: $lt_compile\"" >&5)
9734
(eval "$lt_compile" 2>conftest.err)
9736
cat conftest.err >&5
9737
echo "$as_me:9737: \$? = $ac_status" >&5
9738
if (exit $ac_status) && test -s "$ac_outfile"; then
9739
# The compiler can only warn and ignore the option if not recognized
9740
# So say no if there are warnings other than the usual output.
9741
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9742
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9743
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9744
lt_cv_prog_compiler_pic_works=yes
9750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9751
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9753
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9754
case $lt_prog_compiler_pic in
9756
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9759
lt_prog_compiler_pic=
9760
lt_prog_compiler_can_build_shared=no
9771
# Check to make sure the static flag actually works.
9773
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9775
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9776
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9777
$as_echo_n "(cached) " >&6
9779
lt_cv_prog_compiler_static_works=no
9780
save_LDFLAGS="$LDFLAGS"
9781
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9782
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9783
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9784
# The linker can only warn and ignore the option if not recognized
9785
# So say no if there are warnings
9786
if test -s conftest.err; then
9787
# Append any errors to the config.log.
9788
cat conftest.err 1>&5
9789
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9790
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9791
if diff conftest.exp conftest.er2 >/dev/null; then
9792
lt_cv_prog_compiler_static_works=yes
9795
lt_cv_prog_compiler_static_works=yes
9799
LDFLAGS="$save_LDFLAGS"
9802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9803
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9805
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9808
lt_prog_compiler_static=
9817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9818
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9819
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9820
$as_echo_n "(cached) " >&6
9822
lt_cv_prog_compiler_c_o=no
9823
$RM -r conftest 2>/dev/null
9827
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9829
lt_compiler_flag="-o out/conftest2.$ac_objext"
9830
# Insert the option either (1) after the last *FLAGS variable, or
9831
# (2) before a word containing "conftest.", or (3) at the end.
9832
# Note that $ac_compile itself does not contain backslashes and begins
9833
# with a dollar sign (not a hyphen), so the echo should work correctly.
9834
lt_compile=`echo "$ac_compile" | $SED \
9835
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9836
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9837
-e 's:$: $lt_compiler_flag:'`
9838
(eval echo "\"\$as_me:9838: $lt_compile\"" >&5)
9839
(eval "$lt_compile" 2>out/conftest.err)
9841
cat out/conftest.err >&5
9842
echo "$as_me:9842: \$? = $ac_status" >&5
9843
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9845
# The compiler can only warn and ignore the option if not recognized
9846
# So say no if there are warnings
9847
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9848
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9849
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9850
lt_cv_prog_compiler_c_o=yes
9855
# SGI C++ compiler will create directory out/ii_files/ for
9856
# template instantiation
9857
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9858
$RM out/* && rmdir out
9864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9865
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9873
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9874
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9875
$as_echo_n "(cached) " >&6
9877
lt_cv_prog_compiler_c_o=no
9878
$RM -r conftest 2>/dev/null
9882
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9884
lt_compiler_flag="-o out/conftest2.$ac_objext"
9885
# Insert the option either (1) after the last *FLAGS variable, or
9886
# (2) before a word containing "conftest.", or (3) at the end.
9887
# Note that $ac_compile itself does not contain backslashes and begins
9888
# with a dollar sign (not a hyphen), so the echo should work correctly.
9889
lt_compile=`echo "$ac_compile" | $SED \
9890
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9891
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9892
-e 's:$: $lt_compiler_flag:'`
9893
(eval echo "\"\$as_me:9893: $lt_compile\"" >&5)
9894
(eval "$lt_compile" 2>out/conftest.err)
9896
cat out/conftest.err >&5
9897
echo "$as_me:9897: \$? = $ac_status" >&5
9898
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9900
# The compiler can only warn and ignore the option if not recognized
9901
# So say no if there are warnings
9902
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9903
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9904
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9905
lt_cv_prog_compiler_c_o=yes
9910
# SGI C++ compiler will create directory out/ii_files/ for
9911
# template instantiation
9912
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9913
$RM out/* && rmdir out
9919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9920
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9925
hard_links="nottested"
9926
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9927
# do not overwrite the value of need_locks provided by the user
9928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9929
$as_echo_n "checking if we can lock with hard links... " >&6; }
9932
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9934
ln conftest.a conftest.b 2>&5 || hard_links=no
9935
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9937
$as_echo "$hard_links" >&6; }
9938
if test "$hard_links" = no; then
9939
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9940
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9953
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9956
allow_undefined_flag=
9957
always_export_symbols=no
9959
archive_expsym_cmds=
9960
compiler_needs_object=no
9961
enable_shared_with_static_runtimes=no
9962
export_dynamic_flag_spec=
9963
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9964
hardcode_automatic=no
9966
hardcode_direct_absolute=no
9967
hardcode_libdir_flag_spec=
9968
hardcode_libdir_flag_spec_ld=
9969
hardcode_libdir_separator=
9971
hardcode_shlibpath_var=unsupported
9973
link_all_deplibs=unknown
9976
old_archive_from_new_cmds=
9977
old_archive_from_expsyms_cmds=
9978
thread_safe_flag_spec=
9979
whole_archive_flag_spec=
9980
# include_expsyms should be a list of space-separated symbols to be *always*
9981
# included in the symbol list
9983
# exclude_expsyms can be an extended regexp of symbols to exclude
9984
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9985
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9986
# as well as any symbol that contains `d'.
9987
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9988
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9989
# platforms (ab)use it in PIC code, but their linkers get confused if
9990
# the symbol is explicitly referenced. Since portable code cannot
9991
# rely on this symbol name, it's probably fine to never include it in
9992
# preloaded symbol tables.
9993
# Exclude shared library initialization/finalization symbols.
9994
extract_expsyms_cmds=
9997
cygwin* | mingw* | pw32* | cegcc*)
9998
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9999
# When not using gcc, we currently assume that we are using
10000
# Microsoft Visual C++.
10001
if test "$GCC" != yes; then
10006
# we just hope/assume this is gcc and not c89 (= MSVC++)
10012
linux* | k*bsd*-gnu)
10013
link_all_deplibs=no
10018
if test "$with_gnu_ld" = yes; then
10019
# If archive_cmds runs LD, not CC, wlarc should be empty
10022
# Set some defaults for GNU ld with shared library support. These
10023
# are reset later if shared libraries are not supported. Putting them
10024
# here allows them to be overridden if necessary.
10025
runpath_var=LD_RUN_PATH
10026
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10027
export_dynamic_flag_spec='${wl}--export-dynamic'
10028
# ancient GNU ld didn't support --whole-archive et. al.
10029
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10030
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10032
whole_archive_flag_spec=
10034
supports_anon_versioning=no
10035
case `$LD -v 2>&1` in
10036
*GNU\ gold*) supports_anon_versioning=yes ;;
10037
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10038
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10039
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10040
*\ 2.11.*) ;; # other 2.11 versions
10041
*) supports_anon_versioning=yes ;;
10044
# See if GNU ld supports shared libraries.
10047
# On AIX/PPC, the GNU linker is very broken
10048
if test "$host_cpu" != ia64; then
10052
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10053
*** to be unable to reliably create shared libraries on AIX.
10054
*** Therefore, libtool is disabling shared libraries support. If you
10055
*** really care for shared libraries, you may want to modify your PATH
10056
*** so that a non-GNU linker is found, and then restart.
10065
# see comment about AmigaOS4 .so support
10066
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10067
archive_expsym_cmds=''
10070
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)'
10071
hardcode_libdir_flag_spec='-L$libdir'
10072
hardcode_minus_L=yes
10078
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10079
allow_undefined_flag=unsupported
10080
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10081
# support --undefined. This deserves some investigation. FIXME
10082
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10088
cygwin* | mingw* | pw32* | cegcc*)
10089
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10090
# as there is no search path for DLLs.
10091
hardcode_libdir_flag_spec='-L$libdir'
10092
allow_undefined_flag=unsupported
10093
always_export_symbols=no
10094
enable_shared_with_static_runtimes=yes
10095
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10097
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10098
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10099
# If the export-symbols file already is a .def file (1st line
10100
# is EXPORTS), use it as is; otherwise, prepend...
10101
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10102
cp $export_symbols $output_objdir/$soname.def;
10104
echo EXPORTS > $output_objdir/$soname.def;
10105
cat $export_symbols >> $output_objdir/$soname.def;
10107
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10115
hardcode_shlibpath_var=no
10116
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10117
export_dynamic_flag_spec='${wl}-E'
10118
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10119
# Instead, shared libraries are loaded at an image base (0x10000000 by
10120
# default) and relocated if they conflict, which is a slow very memory
10121
# consuming and fragmenting process. To avoid this, we pick a random,
10122
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10123
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10124
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10125
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'
10128
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10130
if test "$host_os" = linux-dietlibc; then
10131
case $cc_basename in
10132
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10135
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10136
&& test "$tmp_diet" = no
10139
tmp_sharedflag='-shared'
10140
case $cc_basename,$host_cpu in
10141
pgcc*) # Portland Group C compiler
10142
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'
10143
tmp_addflag=' $pic_flag'
10145
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10146
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'
10147
tmp_addflag=' $pic_flag -Mnomain' ;;
10148
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10149
tmp_addflag=' -i_dynamic' ;;
10150
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10151
tmp_addflag=' -i_dynamic -nofor_main' ;;
10152
ifc* | ifort*) # Intel Fortran compiler
10153
tmp_addflag=' -nofor_main' ;;
10154
lf95*) # Lahey Fortran 8.1
10155
whole_archive_flag_spec=
10156
tmp_sharedflag='--shared' ;;
10157
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10158
tmp_sharedflag='-qmkshrobj'
10161
case `$CC -V 2>&1 | sed 5q` in
10162
*Sun\ C*) # Sun C 5.9
10163
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'
10164
compiler_needs_object=yes
10165
tmp_sharedflag='-G' ;;
10166
*Sun\ F*) # Sun Fortran 8.3
10167
tmp_sharedflag='-G' ;;
10169
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171
if test "x$supports_anon_versioning" = xyes; then
10172
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10173
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10174
echo "local: *; };" >> $output_objdir/$libname.ver~
10175
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10178
case $cc_basename in
10180
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10181
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10182
hardcode_libdir_flag_spec=
10183
hardcode_libdir_flag_spec_ld='-rpath $libdir'
10184
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10185
if test "x$supports_anon_versioning" = xyes; then
10186
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10187
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10188
echo "local: *; };" >> $output_objdir/$libname.ver~
10189
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10198
netbsd* | netbsdelf*-gnu)
10199
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10200
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10203
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10204
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10209
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10213
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10214
*** create shared libraries on Solaris systems. Therefore, libtool
10215
*** is disabling shared libraries support. We urge you to upgrade GNU
10216
*** binutils to release 2.9.1 or newer. Another option is to modify
10217
*** your PATH or compiler configuration so that the native linker is
10218
*** used, and then restart.
10221
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10222
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10223
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10229
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10230
case `$LD -v 2>&1` in
10231
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10235
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10236
*** reliably create shared libraries on SCO systems. Therefore, libtool
10237
*** is disabling shared libraries support. We urge you to upgrade GNU
10238
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10239
*** your PATH or compiler configuration so that the native linker is
10240
*** used, and then restart.
10245
# For security reasons, it is highly recommended that you always
10246
# use absolute paths for naming shared libraries, and exclude the
10247
# DT_RUNPATH tag from executables and libraries. But doing so
10248
# requires that you compile everything twice, which is a pain.
10249
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10250
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10251
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10252
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10261
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10263
hardcode_direct=yes
10264
hardcode_shlibpath_var=no
10268
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10269
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10270
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10277
if test "$ld_shlibs" = no; then
10279
hardcode_libdir_flag_spec=
10280
export_dynamic_flag_spec=
10281
whole_archive_flag_spec=
10284
# PORTME fill in a description of your system's linker (not GNU ld)
10287
allow_undefined_flag=unsupported
10288
always_export_symbols=yes
10289
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'
10290
# Note: this linker hardcodes the directories in LIBPATH if there
10291
# are no directories specified by -L.
10292
hardcode_minus_L=yes
10293
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10294
# Neither direct hardcoding nor static linking is supported with a
10296
hardcode_direct=unsupported
10301
if test "$host_cpu" = ia64; then
10302
# On IA64, the linker does run time linking by default, so we don't
10303
# have to do anything special.
10304
aix_use_runtimelinking=no
10305
exp_sym_flag='-Bexport'
10308
# If we're using GNU nm, then we don't want the "-C" option.
10309
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10310
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10311
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'
10313
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'
10315
aix_use_runtimelinking=no
10317
# Test if we are trying to use run time linking or normal
10318
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10319
# need to do runtime linking.
10320
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10321
for ld_flag in $LDFLAGS; do
10322
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10323
aix_use_runtimelinking=yes
10330
exp_sym_flag='-bexport'
10331
no_entry_flag='-bnoentry'
10334
# When large executables or shared objects are built, AIX ld can
10335
# have problems creating the table of contents. If linking a library
10336
# or program results in "error TOC overflow" add -mminimal-toc to
10337
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10338
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10341
hardcode_direct=yes
10342
hardcode_direct_absolute=yes
10343
hardcode_libdir_separator=':'
10344
link_all_deplibs=yes
10345
file_list_spec='${wl}-f,'
10347
if test "$GCC" = yes; then
10348
case $host_os in aix4.[012]|aix4.[012].*)
10349
# We only want to do this on AIX 4.2 and lower, the check
10350
# below for broken collect2 doesn't work under 4.3+
10351
collect2name=`${CC} -print-prog-name=collect2`
10352
if test -f "$collect2name" &&
10353
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10355
# We have reworked collect2
10358
# We have old collect2
10359
hardcode_direct=unsupported
10360
# It fails to find uninstalled libraries when the uninstalled
10361
# path is not listed in the libpath. Setting hardcode_minus_L
10362
# to unsupported forces relinking
10363
hardcode_minus_L=yes
10364
hardcode_libdir_flag_spec='-L$libdir'
10365
hardcode_libdir_separator=
10369
shared_flag='-shared'
10370
if test "$aix_use_runtimelinking" = yes; then
10371
shared_flag="$shared_flag "'${wl}-G'
10373
link_all_deplibs=no
10376
if test "$host_cpu" = ia64; then
10377
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10378
# chokes on -Wl,-G. The following line is correct:
10381
if test "$aix_use_runtimelinking" = yes; then
10382
shared_flag='${wl}-G'
10384
shared_flag='${wl}-bM:SRE'
10389
export_dynamic_flag_spec='${wl}-bexpall'
10390
# It seems that -bexpall does not export symbols beginning with
10391
# underscore (_), so it is better to generate a list of symbols to export.
10392
always_export_symbols=yes
10393
if test "$aix_use_runtimelinking" = yes; then
10394
# Warning - without using the other runtime loading flags (-brtl),
10395
# -berok will link without error, but may produce a broken library.
10396
allow_undefined_flag='-berok'
10397
# Determine the default libpath from the value encoded in an
10398
# empty executable.
10399
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400
/* end confdefs.h. */
10410
if ac_fn_c_try_link "$LINENO"; then :
10412
lt_aix_libpath_sed='
10413
/Import File Strings/,/^$/ {
10419
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10420
# Check for a 64-bit object if we didn't find anything.
10421
if test -z "$aix_libpath"; then
10422
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10425
rm -f core conftest.err conftest.$ac_objext \
10426
conftest$ac_exeext conftest.$ac_ext
10427
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10429
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10430
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"
10432
if test "$host_cpu" = ia64; then
10433
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10434
allow_undefined_flag="-z nodefs"
10435
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"
10437
# Determine the default libpath from the value encoded in an
10438
# empty executable.
10439
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440
/* end confdefs.h. */
10450
if ac_fn_c_try_link "$LINENO"; then :
10452
lt_aix_libpath_sed='
10453
/Import File Strings/,/^$/ {
10459
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10460
# Check for a 64-bit object if we didn't find anything.
10461
if test -z "$aix_libpath"; then
10462
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10465
rm -f core conftest.err conftest.$ac_objext \
10466
conftest$ac_exeext conftest.$ac_ext
10467
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10469
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10470
# Warning - without using the other run time loading flags,
10471
# -berok will link without error, but may produce a broken library.
10472
no_undefined_flag=' ${wl}-bernotok'
10473
allow_undefined_flag=' ${wl}-berok'
10474
# Exported symbols can be pulled into shared objects from archives
10475
whole_archive_flag_spec='$convenience'
10476
archive_cmds_need_lc=yes
10477
# This is similar to how AIX traditionally builds its shared libraries.
10478
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'
10486
# see comment about AmigaOS4 .so support
10487
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488
archive_expsym_cmds=''
10491
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)'
10492
hardcode_libdir_flag_spec='-L$libdir'
10493
hardcode_minus_L=yes
10499
export_dynamic_flag_spec=-rdynamic
10502
cygwin* | mingw* | pw32* | cegcc*)
10503
# When not using gcc, we currently assume that we are using
10504
# Microsoft Visual C++.
10505
# hardcode_libdir_flag_spec is actually meaningless, as there is
10506
# no search path for DLLs.
10507
hardcode_libdir_flag_spec=' '
10508
allow_undefined_flag=unsupported
10509
# Tell ltmain to make .lib files, not .a files.
10511
# Tell ltmain to make .dll files, not .so files.
10513
# FIXME: Setting linknames here is a bad hack.
10514
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10515
# The linker will automatically build a .lib file if we build a DLL.
10516
old_archive_from_new_cmds='true'
10517
# FIXME: Should let the user specify the lib program.
10518
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10519
fix_srcfile_path='`cygpath -w "$srcfile"`'
10520
enable_shared_with_static_runtimes=yes
10523
darwin* | rhapsody*)
10526
archive_cmds_need_lc=no
10528
hardcode_automatic=yes
10529
hardcode_shlibpath_var=unsupported
10530
whole_archive_flag_spec=''
10531
link_all_deplibs=yes
10532
allow_undefined_flag="$_lt_dar_allow_undefined"
10533
case $cc_basename in
10534
ifort*) _lt_dar_can_shared=yes ;;
10535
*) _lt_dar_can_shared=$GCC ;;
10537
if test "$_lt_dar_can_shared" = "yes"; then
10538
output_verbose_link_cmd=echo
10539
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10540
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10541
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}"
10542
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}"
10551
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552
hardcode_libdir_flag_spec='-L$libdir'
10553
hardcode_shlibpath_var=no
10560
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10561
# support. Future versions do this automatically, but an explicit c++rt0.o
10562
# does not break anything, and helps significantly (at the cost of a little
10565
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10566
hardcode_libdir_flag_spec='-R$libdir'
10567
hardcode_direct=yes
10568
hardcode_shlibpath_var=no
10571
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
10573
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10574
hardcode_direct=yes
10575
hardcode_minus_L=yes
10576
hardcode_shlibpath_var=no
10579
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10580
freebsd* | dragonfly*)
10581
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10582
hardcode_libdir_flag_spec='-R$libdir'
10583
hardcode_direct=yes
10584
hardcode_shlibpath_var=no
10588
if test "$GCC" = yes; then
10589
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'
10591
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'
10593
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10594
hardcode_libdir_separator=:
10595
hardcode_direct=yes
10597
# hardcode_minus_L: Not really in the search PATH,
10598
# but as the default location of the library.
10599
hardcode_minus_L=yes
10600
export_dynamic_flag_spec='${wl}-E'
10604
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10605
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10607
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10609
if test "$with_gnu_ld" = no; then
10610
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10611
hardcode_libdir_flag_spec_ld='+b $libdir'
10612
hardcode_libdir_separator=:
10613
hardcode_direct=yes
10614
hardcode_direct_absolute=yes
10615
export_dynamic_flag_spec='${wl}-E'
10616
# hardcode_minus_L: Not really in the search PATH,
10617
# but as the default location of the library.
10618
hardcode_minus_L=yes
10623
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10626
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10629
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10632
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10638
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10641
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10644
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10648
if test "$with_gnu_ld" = no; then
10649
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10650
hardcode_libdir_separator=:
10655
hardcode_shlibpath_var=no
10658
hardcode_direct=yes
10659
hardcode_direct_absolute=yes
10660
export_dynamic_flag_spec='${wl}-E'
10662
# hardcode_minus_L: Not really in the search PATH,
10663
# but as the default location of the library.
10664
hardcode_minus_L=yes
10670
irix5* | irix6* | nonstopux*)
10671
if test "$GCC" = yes; then
10672
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'
10673
# Try to use the -exported_symbol ld option, if it does not
10674
# work, assume that -exports_file does not work either and
10675
# implicitly export all symbols.
10676
save_LDFLAGS="$LDFLAGS"
10677
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10678
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679
/* end confdefs.h. */
10682
if ac_fn_c_try_link "$LINENO"; then :
10683
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'
10686
rm -f core conftest.err conftest.$ac_objext \
10687
conftest$ac_exeext conftest.$ac_ext
10688
LDFLAGS="$save_LDFLAGS"
10690
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'
10691
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'
10693
archive_cmds_need_lc='no'
10694
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10695
hardcode_libdir_separator=:
10697
link_all_deplibs=yes
10700
netbsd* | netbsdelf*-gnu)
10701
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10702
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10704
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10706
hardcode_libdir_flag_spec='-R$libdir'
10707
hardcode_direct=yes
10708
hardcode_shlibpath_var=no
10712
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10713
hardcode_direct=yes
10714
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10715
hardcode_libdir_separator=:
10716
hardcode_shlibpath_var=no
10723
if test -f /usr/libexec/ld.so; then
10724
hardcode_direct=yes
10725
hardcode_shlibpath_var=no
10726
hardcode_direct_absolute=yes
10727
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10728
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10729
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10730
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10731
export_dynamic_flag_spec='${wl}-E'
10734
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10735
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10736
hardcode_libdir_flag_spec='-R$libdir'
10739
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10740
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10750
hardcode_libdir_flag_spec='-L$libdir'
10751
hardcode_minus_L=yes
10752
allow_undefined_flag=unsupported
10753
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'
10754
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10758
if test "$GCC" = yes; then
10759
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10760
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'
10762
allow_undefined_flag=' -expect_unresolved \*'
10763
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'
10765
archive_cmds_need_lc='no'
10766
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10767
hardcode_libdir_separator=:
10770
osf4* | osf5*) # as osf3* with the addition of -msym flag
10771
if test "$GCC" = yes; then
10772
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10773
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'
10774
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10776
allow_undefined_flag=' -expect_unresolved \*'
10777
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'
10778
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~
10779
$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'
10781
# Both c and cxx compiler support -rpath directly
10782
hardcode_libdir_flag_spec='-rpath $libdir'
10784
archive_cmds_need_lc='no'
10785
hardcode_libdir_separator=:
10789
no_undefined_flag=' -z defs'
10790
if test "$GCC" = yes; then
10792
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10793
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10794
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10796
case `$CC -V 2>&1` in
10799
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10801
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10805
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10806
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10807
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10811
hardcode_libdir_flag_spec='-R$libdir'
10812
hardcode_shlibpath_var=no
10814
solaris2.[0-5] | solaris2.[0-5].*) ;;
10816
# The compiler driver will combine and reorder linker options,
10817
# but understands `-z linker_flag'. GCC discards it without `$wl',
10818
# but is careful enough not to reorder.
10819
# Supported since Solaris 2.6 (maybe 2.5.1?)
10820
if test "$GCC" = yes; then
10821
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10823
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10827
link_all_deplibs=yes
10831
if test "x$host_vendor" = xsequent; then
10832
# Use $CC to link under sequent, because it throws in some extra .o
10833
# files that make .init and .fini sections work.
10834
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10836
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10838
hardcode_libdir_flag_spec='-L$libdir'
10839
hardcode_direct=yes
10840
hardcode_minus_L=yes
10841
hardcode_shlibpath_var=no
10845
case $host_vendor in
10847
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10848
hardcode_direct=yes # is this really true???
10851
## LD is ld it makes a PLAMLIB
10852
## CC just makes a GrossModule.
10853
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10854
reload_cmds='$CC -r -o $output$reload_objs'
10858
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10859
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10862
runpath_var='LD_RUN_PATH'
10863
hardcode_shlibpath_var=no
10867
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10868
hardcode_shlibpath_var=no
10869
export_dynamic_flag_spec='-Bexport'
10873
if test -d /usr/nec; then
10874
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10875
hardcode_shlibpath_var=no
10876
runpath_var=LD_RUN_PATH
10877
hardcode_runpath_var=yes
10882
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10883
no_undefined_flag='${wl}-z,text'
10884
archive_cmds_need_lc=no
10885
hardcode_shlibpath_var=no
10886
runpath_var='LD_RUN_PATH'
10888
if test "$GCC" = yes; then
10889
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10890
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10892
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10893
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897
sysv5* | sco3.2v5* | sco5v6*)
10898
# Note: We can NOT use -z defs as we might desire, because we do not
10899
# link with -lc, and that would cause any symbols used from libc to
10900
# always be unresolved, which means just about no library would
10901
# ever link correctly. If we're not using GNU ld we use -z text
10902
# though, which does catch some bad symbols but isn't as heavy-handed
10904
no_undefined_flag='${wl}-z,text'
10905
allow_undefined_flag='${wl}-z,nodefs'
10906
archive_cmds_need_lc=no
10907
hardcode_shlibpath_var=no
10908
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10909
hardcode_libdir_separator=':'
10910
link_all_deplibs=yes
10911
export_dynamic_flag_spec='${wl}-Bexport'
10912
runpath_var='LD_RUN_PATH'
10914
if test "$GCC" = yes; then
10915
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10916
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925
hardcode_libdir_flag_spec='-L$libdir'
10926
hardcode_shlibpath_var=no
10934
if test x$host_vendor = xsni; then
10936
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10937
export_dynamic_flag_spec='${wl}-Blargedynsym'
10943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10944
$as_echo "$ld_shlibs" >&6; }
10945
test "$ld_shlibs" = no && can_build_shared=no
10947
with_gnu_ld=$with_gnu_ld
10964
# Do we need to explicitly link libc?
10966
case "x$archive_cmds_need_lc" in
10968
# Assume -lc should be added
10969
archive_cmds_need_lc=yes
10971
if test "$enable_shared" = yes && test "$GCC" = yes; then
10972
case $archive_cmds in
10974
# FIXME: we may have to deal with multi-command sequences.
10977
# Test whether the compiler implicitly links with -lc since on some
10978
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10979
# to ld, don't add -lc before -lgcc.
10980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10981
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10983
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10985
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10986
(eval $ac_compile) 2>&5
10988
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989
test $ac_status = 0; } 2>conftest.err; then
10992
libobjs=conftest.$ac_objext
10994
wl=$lt_prog_compiler_wl
10995
pic_flag=$lt_prog_compiler_pic
11001
lt_save_allow_undefined_flag=$allow_undefined_flag
11002
allow_undefined_flag=
11003
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11004
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11006
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007
test $ac_status = 0; }
11009
archive_cmds_need_lc=no
11011
archive_cmds_need_lc=yes
11013
allow_undefined_flag=$lt_save_allow_undefined_flag
11015
cat conftest.err 1>&5
11018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11019
$as_echo "$archive_cmds_need_lc" >&6; }
11182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11183
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11185
if test "$GCC" = yes; then
11187
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11188
*) lt_awk_arg="/^libraries:/" ;;
11190
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11191
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11192
# if the path contains ";" then we assume it to be the separator
11193
# otherwise default to the standard path separator (i.e. ":") - it is
11194
# assumed that no part of a normal pathname contains ";" but that should
11195
# okay in the real world where ";" in dirpaths is itself problematic.
11196
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11198
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11200
# Ok, now we have the path, separated by spaces, we can step through it
11201
# and add multilib dir if necessary.
11202
lt_tmp_lt_search_path_spec=
11203
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11204
for lt_sys_path in $lt_search_path_spec; do
11205
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11206
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11208
test -d "$lt_sys_path" && \
11209
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11212
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11213
BEGIN {RS=" "; FS="/|\n";} {
11216
for (lt_i = NF; lt_i > 0; lt_i--) {
11217
if ($lt_i != "" && $lt_i != ".") {
11218
if ($lt_i == "..") {
11221
if (lt_count == 0) {
11222
lt_foo="/" $lt_i lt_foo;
11229
if (lt_foo != "") { lt_freq[lt_foo]++; }
11230
if (lt_freq[lt_foo] == 1) { print lt_foo; }
11232
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11234
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11236
library_names_spec=
11237
libname_spec='lib$name'
11241
postuninstall_cmds=
11245
shlibpath_overrides_runpath=unknown
11247
dynamic_linker="$host_os ld.so"
11248
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11249
need_lib_prefix=unknown
11250
hardcode_into_libs=no
11252
# when you set need_version to no, make sure it does not cause -set_version
11253
# flags to be left without arguments
11254
need_version=unknown
11259
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11260
shlibpath_var=LIBPATH
11262
# AIX 3 has no versioning support, so we append a major version to the name.
11263
soname_spec='${libname}${release}${shared_ext}$major'
11270
hardcode_into_libs=yes
11271
if test "$host_cpu" = ia64; then
11272
# AIX 5 supports IA64
11273
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11274
shlibpath_var=LD_LIBRARY_PATH
11276
# With GCC up to 2.95.x, collect2 would create an import file
11277
# for dependence libraries. The import file would start with
11278
# the line `#! .'. This would cause the generated library to
11279
# depend on `.', always an invalid library. This was fixed in
11280
# development snapshots of GCC prior to 3.0.
11282
aix4 | aix4.[01] | aix4.[01].*)
11283
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11285
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11288
can_build_shared=no
11292
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11293
# soname into executable. Probably we can add versioning support to
11294
# collect2, so additional links can be useful in future.
11295
if test "$aix_use_runtimelinking" = yes; then
11296
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11297
# instead of lib<name>.a to let people know that these are not
11298
# typical AIX shared libraries.
11299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301
# We preserve .a as extension for shared libraries through AIX4.2
11302
# and later when we are not doing run time linking.
11303
library_names_spec='${libname}${release}.a $libname.a'
11304
soname_spec='${libname}${release}${shared_ext}$major'
11306
shlibpath_var=LIBPATH
11313
# Since July 2007 AmigaOS4 officially supports .so libraries.
11314
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318
library_names_spec='$libname.ixlibrary $libname.a'
11319
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11320
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'
11326
library_names_spec='${libname}${shared_ext}'
11327
dynamic_linker="$host_os ld.so"
11328
shlibpath_var=LIBRARY_PATH
11334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11335
soname_spec='${libname}${release}${shared_ext}$major'
11336
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11337
shlibpath_var=LD_LIBRARY_PATH
11338
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11339
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11340
# the default ld.so.conf also contains /usr/contrib/lib and
11341
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11342
# libtool to hard-code these into programs
11345
cygwin* | mingw* | pw32* | cegcc*)
11346
version_type=windows
11351
case $GCC,$host_os in
11352
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11353
library_names_spec='$libname.dll.a'
11354
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11355
postinstall_cmds='base_file=`basename \${file}`~
11356
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11357
dldir=$destdir/`dirname \$dlpath`~
11358
test -d \$dldir || mkdir -p \$dldir~
11359
$install_prog $dir/$dlname \$dldir/$dlname~
11360
chmod a+x \$dldir/$dlname~
11361
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11362
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11364
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11365
dlpath=$dir/\$dldll~
11367
shlibpath_overrides_runpath=yes
11371
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11372
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11373
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11376
# MinGW DLLs use traditional 'lib' prefix
11377
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11378
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11379
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11380
# It is most probably a Windows format PATH printed by
11381
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11382
# path with ; separators, and with drive letters. We can handle the
11383
# drive letters (cygwin fileutils understands them), so leave them,
11384
# especially as we might pass files found there to a mingw objdump,
11385
# which wouldn't understand a cygwinified path. Ahh.
11386
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11388
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11392
# pw32 DLLs use 'pw' prefix rather than 'lib'
11393
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11399
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11402
dynamic_linker='Win32 ld.exe'
11403
# FIXME: first we should search . and the directory the executable is in
11407
darwin* | rhapsody*)
11408
dynamic_linker="$host_os dyld"
11409
version_type=darwin
11412
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11413
soname_spec='${libname}${release}${major}$shared_ext'
11414
shlibpath_overrides_runpath=yes
11415
shlibpath_var=DYLD_LIBRARY_PATH
11416
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11418
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11419
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11427
soname_spec='${libname}${release}${shared_ext}$major'
11428
shlibpath_var=LD_LIBRARY_PATH
11435
freebsd* | dragonfly*)
11436
# DragonFly does not have aout. When/if they implement a new
11437
# versioning mechanism, adjust this.
11438
if test -x /usr/bin/objformat; then
11439
objformat=`/usr/bin/objformat`
11442
freebsd[123]*) objformat=aout ;;
11443
*) objformat=elf ;;
11446
version_type=freebsd-$objformat
11447
case $version_type in
11449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11454
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11458
shlibpath_var=LD_LIBRARY_PATH
11461
shlibpath_overrides_runpath=yes
11463
freebsd3.[01]* | freebsdelf3.[01]*)
11464
shlibpath_overrides_runpath=yes
11465
hardcode_into_libs=yes
11467
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11468
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11469
shlibpath_overrides_runpath=no
11470
hardcode_into_libs=yes
11472
*) # from 4.6 on, and DragonFly
11473
shlibpath_overrides_runpath=yes
11474
hardcode_into_libs=yes
11483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11484
soname_spec='${libname}${release}${shared_ext}$major'
11485
shlibpath_var=LD_LIBRARY_PATH
11486
hardcode_into_libs=yes
11489
hpux9* | hpux10* | hpux11*)
11490
# Give a soname corresponding to the major version so that dld.sl refuses to
11491
# link against other versions.
11498
hardcode_into_libs=yes
11499
dynamic_linker="$host_os dld.so"
11500
shlibpath_var=LD_LIBRARY_PATH
11501
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11502
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503
soname_spec='${libname}${release}${shared_ext}$major'
11504
if test "X$HPUX_IA64_MODE" = X32; then
11505
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11507
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11509
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11513
hardcode_into_libs=yes
11514
dynamic_linker="$host_os dld.sl"
11515
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11516
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518
soname_spec='${libname}${release}${shared_ext}$major'
11519
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11520
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11524
dynamic_linker="$host_os dld.sl"
11525
shlibpath_var=SHLIB_PATH
11526
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528
soname_spec='${libname}${release}${shared_ext}$major'
11531
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11532
postinstall_cmds='chmod 555 $lib'
11539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11540
soname_spec='${libname}${release}${shared_ext}$major'
11541
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11542
shlibpath_var=LD_LIBRARY_PATH
11543
shlibpath_overrides_runpath=no
11544
hardcode_into_libs=yes
11547
irix5* | irix6* | nonstopux*)
11549
nonstopux*) version_type=nonstopux ;;
11551
if test "$lt_cv_prog_gnu_ld" = yes; then
11559
soname_spec='${libname}${release}${shared_ext}$major'
11560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11562
irix5* | nonstopux*)
11563
libsuff= shlibsuff=
11566
case $LD in # libtool.m4 will add one of these switches to LD
11567
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11568
libsuff= shlibsuff= libmagic=32-bit;;
11569
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11570
libsuff=32 shlibsuff=N32 libmagic=N32;;
11571
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11572
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11573
*) libsuff= shlibsuff= libmagic=never-match;;
11577
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11578
shlibpath_overrides_runpath=no
11579
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11580
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11581
hardcode_into_libs=yes
11584
# No shared lib support for Linux oldld, aout, or coff.
11585
linux*oldld* | linux*aout* | linux*coff*)
11589
# This must be Linux ELF.
11590
linux* | k*bsd*-gnu | kopensolaris*-gnu)
11594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595
soname_spec='${libname}${release}${shared_ext}$major'
11596
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11597
shlibpath_var=LD_LIBRARY_PATH
11598
shlibpath_overrides_runpath=no
11599
# Some binutils ld are patched to set DT_RUNPATH
11600
save_LDFLAGS=$LDFLAGS
11601
save_libdir=$libdir
11602
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11603
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605
/* end confdefs.h. */
11615
if ac_fn_c_try_link "$LINENO"; then :
11616
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11617
shlibpath_overrides_runpath=yes
11620
rm -f core conftest.err conftest.$ac_objext \
11621
conftest$ac_exeext conftest.$ac_ext
11622
LDFLAGS=$save_LDFLAGS
11623
libdir=$save_libdir
11625
# This implies no fast_install, which is unacceptable.
11626
# Some rework will be needed to allow for fast_install
11627
# before this can be enabled.
11628
hardcode_into_libs=yes
11630
# Append ld.so.conf contents to the search path
11631
if test -f /etc/ld.so.conf; then
11632
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' ' '`
11633
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11636
# We used to test for /lib/ld.so.1 and disable shared libraries on
11637
# powerpc, because MkLinux only supported shared libraries with the
11638
# GNU dynamic linker. Since this was broken with cross compilers,
11639
# most powerpc-linux boxes support dynamic linking these days and
11640
# people can always --disable-shared, the test was removed, and we
11641
# assume the GNU/Linux dynamic linker is in use.
11642
dynamic_linker='GNU/Linux ld.so'
11649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11650
soname_spec='${libname}${release}${shared_ext}$major'
11651
shlibpath_var=LD_LIBRARY_PATH
11652
shlibpath_overrides_runpath=no
11653
hardcode_into_libs=yes
11654
dynamic_linker='NetBSD ld.elf_so'
11661
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11663
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11664
dynamic_linker='NetBSD (a.out) ld.so'
11666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11667
soname_spec='${libname}${release}${shared_ext}$major'
11668
dynamic_linker='NetBSD ld.elf_so'
11670
shlibpath_var=LD_LIBRARY_PATH
11671
shlibpath_overrides_runpath=yes
11672
hardcode_into_libs=yes
11677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11678
shlibpath_var=LD_LIBRARY_PATH
11679
shlibpath_overrides_runpath=yes
11686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687
soname_spec='${libname}${release}${shared_ext}$major'
11688
shlibpath_var=LD_LIBRARY_PATH
11689
shlibpath_overrides_runpath=no
11690
hardcode_into_libs=yes
11691
dynamic_linker='ldqnx.so'
11696
sys_lib_dlsearch_path_spec="/usr/lib"
11698
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11700
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11701
*) need_version=no ;;
11703
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11704
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11705
shlibpath_var=LD_LIBRARY_PATH
11706
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11708
openbsd2.[89] | openbsd2.[89].*)
11709
shlibpath_overrides_runpath=no
11712
shlibpath_overrides_runpath=yes
11716
shlibpath_overrides_runpath=yes
11721
libname_spec='$name'
11724
library_names_spec='$libname${shared_ext} $libname.a'
11725
dynamic_linker='OS/2 ld.exe'
11726
shlibpath_var=LIBPATH
11729
osf3* | osf4* | osf5*)
11733
soname_spec='${libname}${release}${shared_ext}$major'
11734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11735
shlibpath_var=LD_LIBRARY_PATH
11736
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11737
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749
soname_spec='${libname}${release}${shared_ext}$major'
11750
shlibpath_var=LD_LIBRARY_PATH
11751
shlibpath_overrides_runpath=yes
11752
hardcode_into_libs=yes
11753
# ldd complains unless libraries are executable
11754
postinstall_cmds='chmod +x $lib'
11759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11760
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11761
shlibpath_var=LD_LIBRARY_PATH
11762
shlibpath_overrides_runpath=yes
11763
if test "$with_gnu_ld" = yes; then
11771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772
soname_spec='${libname}${release}${shared_ext}$major'
11773
shlibpath_var=LD_LIBRARY_PATH
11774
case $host_vendor in
11776
shlibpath_overrides_runpath=no
11778
runpath_var=LD_RUN_PATH
11786
shlibpath_overrides_runpath=no
11787
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11793
if test -d /usr/nec ;then
11795
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11796
soname_spec='$libname${shared_ext}.$major'
11797
shlibpath_var=LD_LIBRARY_PATH
11801
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11802
version_type=freebsd-elf
11805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11806
soname_spec='${libname}${release}${shared_ext}$major'
11807
shlibpath_var=LD_LIBRARY_PATH
11808
shlibpath_overrides_runpath=yes
11809
hardcode_into_libs=yes
11810
if test "$with_gnu_ld" = yes; then
11811
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11813
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11816
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11820
sys_lib_dlsearch_path_spec='/usr/lib'
11824
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11829
shlibpath_var=LD_LIBRARY_PATH
11830
shlibpath_overrides_runpath=no
11831
hardcode_into_libs=yes
11836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837
soname_spec='${libname}${release}${shared_ext}$major'
11838
shlibpath_var=LD_LIBRARY_PATH
11845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11846
$as_echo "$dynamic_linker" >&6; }
11847
test "$dynamic_linker" = no && can_build_shared=no
11849
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11850
if test "$GCC" = yes; then
11851
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11854
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11855
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11857
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11858
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11947
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11948
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11950
if test -n "$hardcode_libdir_flag_spec" ||
11951
test -n "$runpath_var" ||
11952
test "X$hardcode_automatic" = "Xyes" ; then
11954
# We can hardcode non-existent directories.
11955
if test "$hardcode_direct" != no &&
11956
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11957
# have to relink, otherwise we might link with an installed library
11958
# when we should be linking with a yet-to-be-installed one
11959
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11960
test "$hardcode_minus_L" != no; then
11961
# Linking always hardcodes the temporary library directory.
11962
hardcode_action=relink
11964
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11965
hardcode_action=immediate
11968
# We cannot hardcode anything, or else we can only hardcode existing
11970
hardcode_action=unsupported
11972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11973
$as_echo "$hardcode_action" >&6; }
11975
if test "$hardcode_action" = relink ||
11976
test "$inherit_rpath" = yes; then
11977
# Fast installation is not supported
11978
enable_fast_install=no
11979
elif test "$shlibpath_overrides_runpath" = yes ||
11980
test "$enable_shared" = no; then
11981
# Fast installation is not necessary
11982
enable_fast_install=needless
11990
if test "x$enable_dlopen" != xyes; then
11991
enable_dlopen=unknown
11992
enable_dlopen_self=unknown
11993
enable_dlopen_self_static=unknown
12000
lt_cv_dlopen="load_add_on"
12002
lt_cv_dlopen_self=yes
12005
mingw* | pw32* | cegcc*)
12006
lt_cv_dlopen="LoadLibrary"
12011
lt_cv_dlopen="dlopen"
12016
# if libdl is installed we need to link against it
12017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12018
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12019
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12020
$as_echo_n "(cached) " >&6
12022
ac_check_lib_save_LIBS=$LIBS
12024
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025
/* end confdefs.h. */
12027
/* Override any GCC internal prototype to avoid an error.
12028
Use char because int might match the return type of a GCC
12029
builtin and then its argument prototype would still apply. */
12042
if ac_fn_c_try_link "$LINENO"; then :
12043
ac_cv_lib_dl_dlopen=yes
12045
ac_cv_lib_dl_dlopen=no
12047
rm -f core conftest.err conftest.$ac_objext \
12048
conftest$ac_exeext conftest.$ac_ext
12049
LIBS=$ac_check_lib_save_LIBS
12051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12052
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12053
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12054
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12057
lt_cv_dlopen="dyld"
12059
lt_cv_dlopen_self=yes
12066
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12067
if test "x$ac_cv_func_shl_load" = x""yes; then :
12068
lt_cv_dlopen="shl_load"
12070
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12071
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12072
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12073
$as_echo_n "(cached) " >&6
12075
ac_check_lib_save_LIBS=$LIBS
12077
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078
/* end confdefs.h. */
12080
/* Override any GCC internal prototype to avoid an error.
12081
Use char because int might match the return type of a GCC
12082
builtin and then its argument prototype would still apply. */
12090
return shl_load ();
12095
if ac_fn_c_try_link "$LINENO"; then :
12096
ac_cv_lib_dld_shl_load=yes
12098
ac_cv_lib_dld_shl_load=no
12100
rm -f core conftest.err conftest.$ac_objext \
12101
conftest$ac_exeext conftest.$ac_ext
12102
LIBS=$ac_check_lib_save_LIBS
12104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12105
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12106
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12107
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12109
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12110
if test "x$ac_cv_func_dlopen" = x""yes; then :
12111
lt_cv_dlopen="dlopen"
12113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12114
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12115
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12116
$as_echo_n "(cached) " >&6
12118
ac_check_lib_save_LIBS=$LIBS
12120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121
/* end confdefs.h. */
12123
/* Override any GCC internal prototype to avoid an error.
12124
Use char because int might match the return type of a GCC
12125
builtin and then its argument prototype would still apply. */
12138
if ac_fn_c_try_link "$LINENO"; then :
12139
ac_cv_lib_dl_dlopen=yes
12141
ac_cv_lib_dl_dlopen=no
12143
rm -f core conftest.err conftest.$ac_objext \
12144
conftest$ac_exeext conftest.$ac_ext
12145
LIBS=$ac_check_lib_save_LIBS
12147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12148
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12149
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12150
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12153
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12154
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12155
$as_echo_n "(cached) " >&6
12157
ac_check_lib_save_LIBS=$LIBS
12158
LIBS="-lsvld $LIBS"
12159
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160
/* end confdefs.h. */
12162
/* Override any GCC internal prototype to avoid an error.
12163
Use char because int might match the return type of a GCC
12164
builtin and then its argument prototype would still apply. */
12177
if ac_fn_c_try_link "$LINENO"; then :
12178
ac_cv_lib_svld_dlopen=yes
12180
ac_cv_lib_svld_dlopen=no
12182
rm -f core conftest.err conftest.$ac_objext \
12183
conftest$ac_exeext conftest.$ac_ext
12184
LIBS=$ac_check_lib_save_LIBS
12186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12187
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12188
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12189
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12192
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12193
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12194
$as_echo_n "(cached) " >&6
12196
ac_check_lib_save_LIBS=$LIBS
12198
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199
/* end confdefs.h. */
12201
/* Override any GCC internal prototype to avoid an error.
12202
Use char because int might match the return type of a GCC
12203
builtin and then its argument prototype would still apply. */
12211
return dld_link ();
12216
if ac_fn_c_try_link "$LINENO"; then :
12217
ac_cv_lib_dld_dld_link=yes
12219
ac_cv_lib_dld_dld_link=no
12221
rm -f core conftest.err conftest.$ac_objext \
12222
conftest$ac_exeext conftest.$ac_ext
12223
LIBS=$ac_check_lib_save_LIBS
12225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12226
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12227
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12228
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12249
if test "x$lt_cv_dlopen" != xno; then
12255
case $lt_cv_dlopen in
12257
save_CPPFLAGS="$CPPFLAGS"
12258
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12260
save_LDFLAGS="$LDFLAGS"
12261
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12264
LIBS="$lt_cv_dlopen_libs $LIBS"
12266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12267
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12268
if test "${lt_cv_dlopen_self+set}" = set; then :
12269
$as_echo_n "(cached) " >&6
12271
if test "$cross_compiling" = yes; then :
12272
lt_cv_dlopen_self=cross
12274
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12275
lt_status=$lt_dlunknown
12276
cat > conftest.$ac_ext <<_LT_EOF
12277
#line 12277 "configure"
12278
#include "confdefs.h"
12287
# define LT_DLGLOBAL RTLD_GLOBAL
12290
# define LT_DLGLOBAL DL_GLOBAL
12292
# define LT_DLGLOBAL 0
12296
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12297
find out it does not work in some platform. */
12298
#ifndef LT_DLLAZY_OR_NOW
12300
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12303
# define LT_DLLAZY_OR_NOW DL_LAZY
12306
# define LT_DLLAZY_OR_NOW RTLD_NOW
12309
# define LT_DLLAZY_OR_NOW DL_NOW
12311
# define LT_DLLAZY_OR_NOW 0
12318
void fnord() { int i=42;}
12321
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12322
int status = $lt_dlunknown;
12326
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12327
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12328
/* dlclose (self); */
12336
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12337
(eval $ac_link) 2>&5
12339
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12341
(./conftest; exit; ) >&5 2>/dev/null
12343
case x$lt_status in
12344
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12345
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12346
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12349
# compilation failed
12350
lt_cv_dlopen_self=no
12357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12358
$as_echo "$lt_cv_dlopen_self" >&6; }
12360
if test "x$lt_cv_dlopen_self" = xyes; then
12361
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12363
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12364
if test "${lt_cv_dlopen_self_static+set}" = set; then :
12365
$as_echo_n "(cached) " >&6
12367
if test "$cross_compiling" = yes; then :
12368
lt_cv_dlopen_self_static=cross
12370
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12371
lt_status=$lt_dlunknown
12372
cat > conftest.$ac_ext <<_LT_EOF
12373
#line 12373 "configure"
12374
#include "confdefs.h"
12383
# define LT_DLGLOBAL RTLD_GLOBAL
12386
# define LT_DLGLOBAL DL_GLOBAL
12388
# define LT_DLGLOBAL 0
12392
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12393
find out it does not work in some platform. */
12394
#ifndef LT_DLLAZY_OR_NOW
12396
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12399
# define LT_DLLAZY_OR_NOW DL_LAZY
12402
# define LT_DLLAZY_OR_NOW RTLD_NOW
12405
# define LT_DLLAZY_OR_NOW DL_NOW
12407
# define LT_DLLAZY_OR_NOW 0
12414
void fnord() { int i=42;}
12417
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12418
int status = $lt_dlunknown;
12422
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12423
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12424
/* dlclose (self); */
12432
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12433
(eval $ac_link) 2>&5
12435
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12436
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12437
(./conftest; exit; ) >&5 2>/dev/null
12439
case x$lt_status in
12440
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12441
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12442
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12445
# compilation failed
12446
lt_cv_dlopen_self_static=no
12453
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12454
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12457
CPPFLAGS="$save_CPPFLAGS"
12458
LDFLAGS="$save_LDFLAGS"
12463
case $lt_cv_dlopen_self in
12464
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12465
*) enable_dlopen_self=unknown ;;
12468
case $lt_cv_dlopen_self_static in
12469
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12470
*) enable_dlopen_self_static=unknown ;;
12492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12493
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12494
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12495
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12496
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12498
$as_echo "yes" >&6; }
12500
# FIXME - insert some real tests, host_os isn't really good enough
12503
if test -n "$STRIP" ; then
12504
striplib="$STRIP -x"
12505
old_striplib="$STRIP -S"
12506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12507
$as_echo "yes" >&6; }
12509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510
$as_echo "no" >&6; }
12514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515
$as_echo "no" >&6; }
12531
# Report which library types will actually be built
12532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12533
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12535
$as_echo "$can_build_shared" >&6; }
12537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12538
$as_echo_n "checking whether to build shared libraries... " >&6; }
12539
test "$can_build_shared" = "no" && enable_shared=no
12541
# On AIX, shared libraries and static libraries use the same namespace, and
12542
# are all built from PIC.
12545
test "$enable_shared" = yes && enable_static=no
12546
if test -n "$RANLIB"; then
12547
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12548
postinstall_cmds='$RANLIB $lib'
12553
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12554
test "$enable_shared" = yes && enable_static=no
12558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12559
$as_echo "$enable_shared" >&6; }
12561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12562
$as_echo_n "checking whether to build static libraries... " >&6; }
12563
# Make sure either enable_shared or enable_static is yes.
12564
test "$enable_shared" = yes || enable_static=yes
12565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12566
$as_echo "$enable_static" >&6; }
12573
ac_cpp='$CPP $CPPFLAGS'
12574
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12575
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12576
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12582
ac_cpp='$CXXCPP $CPPFLAGS'
12583
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12584
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12585
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12587
archive_cmds_need_lc_CXX=no
12588
allow_undefined_flag_CXX=
12589
always_export_symbols_CXX=no
12590
archive_expsym_cmds_CXX=
12591
compiler_needs_object_CXX=no
12592
export_dynamic_flag_spec_CXX=
12593
hardcode_direct_CXX=no
12594
hardcode_direct_absolute_CXX=no
12595
hardcode_libdir_flag_spec_CXX=
12596
hardcode_libdir_flag_spec_ld_CXX=
12597
hardcode_libdir_separator_CXX=
12598
hardcode_minus_L_CXX=no
12599
hardcode_shlibpath_var_CXX=unsupported
12600
hardcode_automatic_CXX=no
12601
inherit_rpath_CXX=no
12603
module_expsym_cmds_CXX=
12604
link_all_deplibs_CXX=unknown
12605
old_archive_cmds_CXX=$old_archive_cmds
12606
no_undefined_flag_CXX=
12607
whole_archive_flag_spec_CXX=
12608
enable_shared_with_static_runtimes_CXX=no
12610
# Source file extension for C++ test sources.
12613
# Object file extension for compiled C++ test sources.
12617
# No sense in running all these tests if we already determined that
12618
# the CXX compiler isn't working. Some variables (like enable_shared)
12619
# are currently assumed to apply to all compilers on this platform,
12620
# and will be corrupted by setting them based on a non-working compiler.
12621
if test "$_lt_caught_CXX_error" != yes; then
12622
# Code to be used in simple compile tests
12623
lt_simple_compile_test_code="int some_variable = 0;"
12625
# Code to be used in simple link tests
12626
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12628
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12635
# If no C compiler was specified, use CC.
12638
# If no C compiler flags were specified, use CFLAGS.
12639
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12641
# Allow CC to be a program name with arguments.
12645
# save warnings/boilerplate of simple test code
12646
ac_outfile=conftest.$ac_objext
12647
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12648
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12649
_lt_compiler_boilerplate=`cat conftest.err`
12652
ac_outfile=conftest.$ac_objext
12653
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12654
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655
_lt_linker_boilerplate=`cat conftest.err`
12659
# Allow CC to be a program name with arguments.
12664
lt_save_with_gnu_ld=$with_gnu_ld
12665
lt_save_path_LD=$lt_cv_path_LD
12666
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12667
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12669
$as_unset lt_cv_prog_gnu_ld
12671
if test -n "${lt_cv_path_LDCXX+set}"; then
12672
lt_cv_path_LD=$lt_cv_path_LDCXX
12674
$as_unset lt_cv_path_LD
12676
test -z "${LDCXX+set}" || LD=$LDCXX
12680
for cc_temp in $compiler""; do
12682
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12683
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12688
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12691
if test -n "$compiler"; then
12692
# We don't want -fno-exception when compiling C++ code, so set the
12693
# no_builtin_flag separately
12694
if test "$GXX" = yes; then
12695
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12697
lt_prog_compiler_no_builtin_flag_CXX=
12700
if test "$GXX" = yes; then
12701
# Set up default GNU C++ configuration
12705
# Check whether --with-gnu-ld was given.
12706
if test "${with_gnu_ld+set}" = set; then :
12707
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12713
if test "$GCC" = yes; then
12714
# Check if gcc -print-prog-name=ld gives a path.
12715
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12716
$as_echo_n "checking for ld used by $CC... " >&6; }
12719
# gcc leaves a trailing carriage return which upsets mingw
12720
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12722
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12725
# Accept absolute paths.
12727
re_direlt='/[^/][^/]*/\.\./'
12728
# Canonicalize the pathname of ld
12729
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12730
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12731
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12733
test -z "$LD" && LD="$ac_prog"
12736
# If it fails, then pretend we aren't using GCC.
12740
# If it is relative, then search for the first ld in PATH.
12741
with_gnu_ld=unknown
12744
elif test "$with_gnu_ld" = yes; then
12745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12746
$as_echo_n "checking for GNU ld... " >&6; }
12748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12749
$as_echo_n "checking for non-GNU ld... " >&6; }
12751
if test "${lt_cv_path_LD+set}" = set; then :
12752
$as_echo_n "(cached) " >&6
12754
if test -z "$LD"; then
12755
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12756
for ac_dir in $PATH; do
12758
test -z "$ac_dir" && ac_dir=.
12759
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12760
lt_cv_path_LD="$ac_dir/$ac_prog"
12761
# Check to see if the program is GNU ld. I'd rather use --version,
12762
# but apparently some variants of GNU ld only accept -v.
12763
# Break only if it was the GNU/non-GNU ld that we prefer.
12764
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12765
*GNU* | *'with BFD'*)
12766
test "$with_gnu_ld" != no && break
12769
test "$with_gnu_ld" != yes && break
12776
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12780
LD="$lt_cv_path_LD"
12781
if test -n "$LD"; then
12782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12783
$as_echo "$LD" >&6; }
12785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786
$as_echo "no" >&6; }
12788
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12790
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12791
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12792
$as_echo_n "(cached) " >&6
12794
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12795
case `$LD -v 2>&1 </dev/null` in
12796
*GNU* | *'with BFD'*)
12797
lt_cv_prog_gnu_ld=yes
12800
lt_cv_prog_gnu_ld=no
12804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12805
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12806
with_gnu_ld=$lt_cv_prog_gnu_ld
12814
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12815
# archiving commands below assume that GNU ld is being used.
12816
if test "$with_gnu_ld" = yes; then
12817
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12818
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'
12820
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12821
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12823
# If archive_cmds runs LD, not CC, wlarc should be empty
12824
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12825
# investigate it a little bit more. (MM)
12828
# ancient GNU ld didn't support --whole-archive et. al.
12829
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12830
$GREP 'no-whole-archive' > /dev/null; then
12831
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12833
whole_archive_flag_spec_CXX=
12839
# A generic and very simple default shared library creation
12840
# command for GNU C++ for the case where it uses the native
12841
# linker, instead of GNU ld. If possible, this setting should
12842
# overridden to take advantage of the native linker features on
12843
# the platform it is being used on.
12844
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12847
# Commands to make compiler produce verbose output that lists
12848
# what "hidden" libraries, object files and flags are used when
12849
# linking a shared library.
12850
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12858
# PORTME: fill in a description of your system's C++ link characteristics
12859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12860
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12864
# FIXME: insert proper C++ library support
12868
if test "$host_cpu" = ia64; then
12869
# On IA64, the linker does run time linking by default, so we don't
12870
# have to do anything special.
12871
aix_use_runtimelinking=no
12872
exp_sym_flag='-Bexport'
12875
aix_use_runtimelinking=no
12877
# Test if we are trying to use run time linking or normal
12878
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12879
# need to do runtime linking.
12880
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12881
for ld_flag in $LDFLAGS; do
12884
aix_use_runtimelinking=yes
12892
exp_sym_flag='-bexport'
12893
no_entry_flag='-bnoentry'
12896
# When large executables or shared objects are built, AIX ld can
12897
# have problems creating the table of contents. If linking a library
12898
# or program results in "error TOC overflow" add -mminimal-toc to
12899
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12900
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12902
archive_cmds_CXX=''
12903
hardcode_direct_CXX=yes
12904
hardcode_direct_absolute_CXX=yes
12905
hardcode_libdir_separator_CXX=':'
12906
link_all_deplibs_CXX=yes
12907
file_list_spec_CXX='${wl}-f,'
12909
if test "$GXX" = yes; then
12910
case $host_os in aix4.[012]|aix4.[012].*)
12911
# We only want to do this on AIX 4.2 and lower, the check
12912
# below for broken collect2 doesn't work under 4.3+
12913
collect2name=`${CC} -print-prog-name=collect2`
12914
if test -f "$collect2name" &&
12915
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12917
# We have reworked collect2
12920
# We have old collect2
12921
hardcode_direct_CXX=unsupported
12922
# It fails to find uninstalled libraries when the uninstalled
12923
# path is not listed in the libpath. Setting hardcode_minus_L
12924
# to unsupported forces relinking
12925
hardcode_minus_L_CXX=yes
12926
hardcode_libdir_flag_spec_CXX='-L$libdir'
12927
hardcode_libdir_separator_CXX=
12930
shared_flag='-shared'
12931
if test "$aix_use_runtimelinking" = yes; then
12932
shared_flag="$shared_flag "'${wl}-G'
12936
if test "$host_cpu" = ia64; then
12937
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12938
# chokes on -Wl,-G. The following line is correct:
12941
if test "$aix_use_runtimelinking" = yes; then
12942
shared_flag='${wl}-G'
12944
shared_flag='${wl}-bM:SRE'
12949
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12950
# It seems that -bexpall does not export symbols beginning with
12951
# underscore (_), so it is better to generate a list of symbols to
12953
always_export_symbols_CXX=yes
12954
if test "$aix_use_runtimelinking" = yes; then
12955
# Warning - without using the other runtime loading flags (-brtl),
12956
# -berok will link without error, but may produce a broken library.
12957
allow_undefined_flag_CXX='-berok'
12958
# Determine the default libpath from the value encoded in an empty
12960
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961
/* end confdefs.h. */
12971
if ac_fn_cxx_try_link "$LINENO"; then :
12973
lt_aix_libpath_sed='
12974
/Import File Strings/,/^$/ {
12980
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12981
# Check for a 64-bit object if we didn't find anything.
12982
if test -z "$aix_libpath"; then
12983
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12986
rm -f core conftest.err conftest.$ac_objext \
12987
conftest$ac_exeext conftest.$ac_ext
12988
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12990
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12992
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"
12994
if test "$host_cpu" = ia64; then
12995
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12996
allow_undefined_flag_CXX="-z nodefs"
12997
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"
12999
# Determine the default libpath from the value encoded in an
13000
# empty executable.
13001
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002
/* end confdefs.h. */
13012
if ac_fn_cxx_try_link "$LINENO"; then :
13014
lt_aix_libpath_sed='
13015
/Import File Strings/,/^$/ {
13021
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13022
# Check for a 64-bit object if we didn't find anything.
13023
if test -z "$aix_libpath"; then
13024
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027
rm -f core conftest.err conftest.$ac_objext \
13028
conftest$ac_exeext conftest.$ac_ext
13029
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13031
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13032
# Warning - without using the other run time loading flags,
13033
# -berok will link without error, but may produce a broken library.
13034
no_undefined_flag_CXX=' ${wl}-bernotok'
13035
allow_undefined_flag_CXX=' ${wl}-berok'
13036
# Exported symbols can be pulled into shared objects from archives
13037
whole_archive_flag_spec_CXX='$convenience'
13038
archive_cmds_need_lc_CXX=yes
13039
# This is similar to how AIX traditionally builds its shared
13041
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'
13047
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13048
allow_undefined_flag_CXX=unsupported
13049
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13050
# support --undefined. This deserves some investigation. FIXME
13051
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13058
case $cc_basename in
13060
# FIXME: insert proper C++ library support
13066
cygwin* | mingw* | pw32* | cegcc*)
13067
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13068
# as there is no search path for DLLs.
13069
hardcode_libdir_flag_spec_CXX='-L$libdir'
13070
allow_undefined_flag_CXX=unsupported
13071
always_export_symbols_CXX=no
13072
enable_shared_with_static_runtimes_CXX=yes
13074
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13075
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'
13076
# If the export-symbols file already is a .def file (1st line
13077
# is EXPORTS), use it as is; otherwise, prepend...
13078
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13079
cp $export_symbols $output_objdir/$soname.def;
13081
echo EXPORTS > $output_objdir/$soname.def;
13082
cat $export_symbols >> $output_objdir/$soname.def;
13084
$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'
13089
darwin* | rhapsody*)
13092
archive_cmds_need_lc_CXX=no
13093
hardcode_direct_CXX=no
13094
hardcode_automatic_CXX=yes
13095
hardcode_shlibpath_var_CXX=unsupported
13096
whole_archive_flag_spec_CXX=''
13097
link_all_deplibs_CXX=yes
13098
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13099
case $cc_basename in
13100
ifort*) _lt_dar_can_shared=yes ;;
13101
*) _lt_dar_can_shared=$GCC ;;
13103
if test "$_lt_dar_can_shared" = "yes"; then
13104
output_verbose_link_cmd=echo
13105
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}"
13106
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13107
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}"
13108
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}"
13109
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13110
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}"
13111
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}"
13121
case $cc_basename in
13123
# FIXME: insert proper C++ library support
13127
# Green Hills C++ Compiler
13128
# FIXME: insert proper C++ library support
13132
# FIXME: insert proper C++ library support
13139
# C++ shared libraries reported to be fairly broken before
13145
archive_cmds_need_lc_CXX=no
13148
freebsd* | dragonfly*)
13149
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13158
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13159
hardcode_libdir_separator_CXX=:
13160
export_dynamic_flag_spec_CXX='${wl}-E'
13161
hardcode_direct_CXX=yes
13162
hardcode_minus_L_CXX=yes # Not in the search PATH,
13163
# but as the default
13164
# location of the library.
13166
case $cc_basename in
13168
# FIXME: insert proper C++ library support
13172
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'
13173
# Commands to make compiler produce verbose output that lists
13174
# what "hidden" libraries, object files and flags are used when
13175
# linking a shared library.
13177
# There doesn't appear to be a way to prevent this compiler from
13178
# explicitly linking system object files so we need to strip them
13179
# from the output so that they don't get included in the library
13181
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'
13184
if test "$GXX" = yes; then
13185
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'
13187
# FIXME: insert proper C++ library support
13195
if test $with_gnu_ld = no; then
13196
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13197
hardcode_libdir_separator_CXX=:
13203
export_dynamic_flag_spec_CXX='${wl}-E'
13209
hardcode_direct_CXX=no
13210
hardcode_shlibpath_var_CXX=no
13213
hardcode_direct_CXX=yes
13214
hardcode_direct_absolute_CXX=yes
13215
hardcode_minus_L_CXX=yes # Not in the search PATH,
13216
# but as the default
13217
# location of the library.
13221
case $cc_basename in
13223
# FIXME: insert proper C++ library support
13229
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13232
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13235
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13238
# Commands to make compiler produce verbose output that lists
13239
# what "hidden" libraries, object files and flags are used when
13240
# linking a shared library.
13242
# There doesn't appear to be a way to prevent this compiler from
13243
# explicitly linking system object files so we need to strip them
13244
# from the output so that they don't get included in the library
13246
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'
13249
if test "$GXX" = yes; then
13250
if test $with_gnu_ld = no; then
13253
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13256
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13259
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'
13264
# FIXME: insert proper C++ library support
13272
hardcode_direct_CXX=no
13273
hardcode_shlibpath_var_CXX=no
13274
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13275
export_dynamic_flag_spec_CXX='${wl}-E'
13276
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13277
# Instead, shared libraries are loaded at an image base (0x10000000 by
13278
# default) and relocated if they conflict, which is a slow very memory
13279
# consuming and fragmenting process. To avoid this, we pick a random,
13280
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13281
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13282
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'
13283
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'
13286
case $cc_basename in
13289
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'
13291
# Archives containing C++ object files must be created using
13292
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13293
# necessary to make sure instantiated templates are included
13295
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13298
if test "$GXX" = yes; then
13299
if test "$with_gnu_ld" = no; then
13300
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'
13302
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'
13305
link_all_deplibs_CXX=yes
13308
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13309
hardcode_libdir_separator_CXX=:
13310
inherit_rpath_CXX=yes
13313
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13314
case $cc_basename in
13316
# Kuck and Associates, Inc. (KAI) C++ Compiler
13318
# KCC will only create a shared library if the output file
13319
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13320
# to its proper name (with version) after linking.
13321
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'
13322
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'
13323
# Commands to make compiler produce verbose output that lists
13324
# what "hidden" libraries, object files and flags are used when
13325
# linking a shared library.
13327
# There doesn't appear to be a way to prevent this compiler from
13328
# explicitly linking system object files so we need to strip them
13329
# from the output so that they don't get included in the library
13331
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'
13333
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13334
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13336
# Archives containing C++ object files must be created using
13337
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13338
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13343
# version 8.0 and above of icpc choke on multiply defined symbols
13344
# if we add $predep_objects and $postdep_objects, however 7.1 and
13345
# earlier do not add the objects themselves.
13346
case `$CC -V 2>&1` in
13348
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13349
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'
13351
*) # Version 8.0 or newer
13354
ia64*) tmp_idyn=' -i_dynamic';;
13356
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13357
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'
13360
archive_cmds_need_lc_CXX=no
13361
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13362
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13363
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13366
# Portland Group C++ compiler
13368
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13369
prelink_cmds_CXX='tpldir=Template.dir~
13371
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13372
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13373
old_archive_cmds_CXX='tpldir=Template.dir~
13375
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13376
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13378
archive_cmds_CXX='tpldir=Template.dir~
13380
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13381
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13382
archive_expsym_cmds_CXX='tpldir=Template.dir~
13384
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13385
$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'
13387
*) # Version 6 will use weak symbols
13388
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13389
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'
13393
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13394
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13395
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'
13399
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13400
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'
13402
runpath_var=LD_RUN_PATH
13403
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13404
hardcode_libdir_separator_CXX=:
13406
# Commands to make compiler produce verbose output that lists
13407
# what "hidden" libraries, object files and flags are used when
13408
# linking a shared library.
13410
# There doesn't appear to be a way to prevent this compiler from
13411
# explicitly linking system object files so we need to strip them
13412
# from the output so that they don't get included in the library
13414
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'
13417
# IBM XL 8.0 on PPC, with GNU ld
13418
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13419
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13420
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13421
if test "x$supports_anon_versioning" = xyes; then
13422
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13423
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13424
echo "local: *; };" >> $output_objdir/$libname.ver~
13425
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13429
case `$CC -V 2>&1 | sed 5q` in
13432
no_undefined_flag_CXX=' -zdefs'
13433
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13434
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'
13435
hardcode_libdir_flag_spec_CXX='-R$libdir'
13436
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'
13437
compiler_needs_object_CXX=yes
13439
# Not sure whether something based on
13440
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13442
output_verbose_link_cmd='echo'
13444
# Archives containing C++ object files must be created using
13445
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13446
# necessary to make sure instantiated templates are included
13448
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13456
# FIXME: insert proper C++ library support
13461
# FIXME: insert proper C++ library support
13466
case $cc_basename in
13468
# FIXME: insert proper C++ library support
13472
# FIXME: insert proper C++ library support
13479
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13480
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13482
hardcode_libdir_flag_spec_CXX='-R$libdir'
13483
hardcode_direct_CXX=yes
13484
hardcode_shlibpath_var_CXX=no
13486
# Workaround some broken pre-1.5 toolchains
13487
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13495
# C++ shared libraries are fairly broken
13500
if test -f /usr/libexec/ld.so; then
13501
hardcode_direct_CXX=yes
13502
hardcode_shlibpath_var_CXX=no
13503
hardcode_direct_absolute_CXX=yes
13504
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13505
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13506
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13507
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13508
export_dynamic_flag_spec_CXX='${wl}-E'
13509
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13511
output_verbose_link_cmd=echo
13517
osf3* | osf4* | osf5*)
13518
case $cc_basename in
13520
# Kuck and Associates, Inc. (KAI) C++ Compiler
13522
# KCC will only create a shared library if the output file
13523
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13524
# to its proper name (with version) after linking.
13525
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'
13527
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13528
hardcode_libdir_separator_CXX=:
13530
# Archives containing C++ object files must be created using
13531
# the KAI C++ compiler.
13533
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13534
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13538
# Rational C++ 2.4.1
13539
# FIXME: insert proper C++ library support
13545
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13546
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'
13547
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13550
allow_undefined_flag_CXX=' -expect_unresolved \*'
13551
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'
13552
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13553
echo "-hidden">> $lib.exp~
13554
$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~
13556
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13560
hardcode_libdir_separator_CXX=:
13562
# Commands to make compiler produce verbose output that lists
13563
# what "hidden" libraries, object files and flags are used when
13564
# linking a shared library.
13566
# There doesn't appear to be a way to prevent this compiler from
13567
# explicitly linking system object files so we need to strip them
13568
# from the output so that they don't get included in the library
13570
output_verbose_link_cmd='templist=`$CC -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'
13573
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13574
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13577
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'
13580
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'
13584
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13585
hardcode_libdir_separator_CXX=:
13587
# Commands to make compiler produce verbose output that lists
13588
# what "hidden" libraries, object files and flags are used when
13589
# linking a shared library.
13590
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13593
# FIXME: insert proper C++ library support
13601
# FIXME: insert proper C++ library support
13606
case $cc_basename in
13609
# FIXME: insert proper C++ library support
13614
# FIXME: insert proper C++ library support
13618
# FIXME: insert proper C++ library support
13625
case $cc_basename in
13627
# Sun C++ 4.2, 5.x and Centerline C++
13628
archive_cmds_need_lc_CXX=yes
13629
no_undefined_flag_CXX=' -zdefs'
13630
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13631
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13632
$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'
13634
hardcode_libdir_flag_spec_CXX='-R$libdir'
13635
hardcode_shlibpath_var_CXX=no
13637
solaris2.[0-5] | solaris2.[0-5].*) ;;
13639
# The compiler driver will combine and reorder linker options,
13640
# but understands `-z linker_flag'.
13641
# Supported since Solaris 2.6 (maybe 2.5.1?)
13642
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13645
link_all_deplibs_CXX=yes
13647
output_verbose_link_cmd='echo'
13649
# Archives containing C++ object files must be created using
13650
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13651
# necessary to make sure instantiated templates are included
13653
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13656
# Green Hills C++ Compiler
13657
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13659
# The C++ compiler must be used to create the archive.
13660
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13663
# GNU C++ compiler with Solaris linker
13664
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13665
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13666
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13667
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13668
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13669
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13671
# Commands to make compiler produce verbose output that lists
13672
# what "hidden" libraries, object files and flags are used when
13673
# linking a shared library.
13674
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13676
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13678
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13679
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13680
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13682
# Commands to make compiler produce verbose output that lists
13683
# what "hidden" libraries, object files and flags are used when
13684
# linking a shared library.
13685
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13688
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13690
solaris2.[0-5] | solaris2.[0-5].*) ;;
13692
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13700
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13701
no_undefined_flag_CXX='${wl}-z,text'
13702
archive_cmds_need_lc_CXX=no
13703
hardcode_shlibpath_var_CXX=no
13704
runpath_var='LD_RUN_PATH'
13706
case $cc_basename in
13708
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13709
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13712
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13713
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13718
sysv5* | sco3.2v5* | sco5v6*)
13719
# Note: We can NOT use -z defs as we might desire, because we do not
13720
# link with -lc, and that would cause any symbols used from libc to
13721
# always be unresolved, which means just about no library would
13722
# ever link correctly. If we're not using GNU ld we use -z text
13723
# though, which does catch some bad symbols but isn't as heavy-handed
13725
no_undefined_flag_CXX='${wl}-z,text'
13726
allow_undefined_flag_CXX='${wl}-z,nodefs'
13727
archive_cmds_need_lc_CXX=no
13728
hardcode_shlibpath_var_CXX=no
13729
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13730
hardcode_libdir_separator_CXX=':'
13731
link_all_deplibs_CXX=yes
13732
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13733
runpath_var='LD_RUN_PATH'
13735
case $cc_basename in
13737
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13742
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13748
case $cc_basename in
13750
# NonStop-UX NCC 3.20
13751
# FIXME: insert proper C++ library support
13755
# FIXME: insert proper C++ library support
13762
# FIXME: insert proper C++ library support
13767
# FIXME: insert proper C++ library support
13772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13773
$as_echo "$ld_shlibs_CXX" >&6; }
13774
test "$ld_shlibs_CXX" = no && can_build_shared=no
13780
## There is no encapsulation within the following macros, do not change
13781
## the running order or otherwise move them around unless you know exactly
13782
## what you are doing...
13783
# Dependencies to place before and after the object being linked:
13784
predep_objects_CXX=
13785
postdep_objects_CXX=
13788
compiler_lib_search_path_CXX=
13790
cat > conftest.$ac_ext <<_LT_EOF
13794
Foo (void) { a = 0; }
13800
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13801
(eval $ac_compile) 2>&5
13803
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13804
test $ac_status = 0; }; then
13805
# Parse the compiler output and extract the necessary
13806
# objects, libraries and library flags.
13808
# Sentinel used to keep track of whether or not we are before
13809
# the conftest object file.
13810
pre_test_object_deps_done=no
13812
for p in `eval "$output_verbose_link_cmd"`; do
13816
# Some compilers place space between "-{L,R}" and the path.
13817
# Remove the space.
13818
if test $p = "-L" ||
13819
test $p = "-R"; then
13826
if test "$pre_test_object_deps_done" = no; then
13829
# Internal compiler library paths should come after those
13830
# provided the user. The postdeps already come after the
13831
# user supplied libs so there is no need to process them.
13832
if test -z "$compiler_lib_search_path_CXX"; then
13833
compiler_lib_search_path_CXX="${prev}${p}"
13835
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13838
# The "-l" case would never come before the object being
13839
# linked, so don't bother handling this case.
13842
if test -z "$postdeps_CXX"; then
13843
postdeps_CXX="${prev}${p}"
13845
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13851
# This assumes that the test object file only shows up
13852
# once in the compiler output.
13853
if test "$p" = "conftest.$objext"; then
13854
pre_test_object_deps_done=yes
13858
if test "$pre_test_object_deps_done" = no; then
13859
if test -z "$predep_objects_CXX"; then
13860
predep_objects_CXX="$p"
13862
predep_objects_CXX="$predep_objects_CXX $p"
13865
if test -z "$postdep_objects_CXX"; then
13866
postdep_objects_CXX="$p"
13868
postdep_objects_CXX="$postdep_objects_CXX $p"
13873
*) ;; # Ignore the rest.
13881
echo "libtool.m4: error: problem compiling CXX test program"
13884
$RM -f confest.$objext
13886
# PORTME: override above test on systems where it is broken
13889
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13890
# hack all around it, let's just trust "g++" to DTRT.
13891
predep_objects_CXX=
13892
postdep_objects_CXX=
13897
case `$CC -V 2>&1 | sed 5q` in
13901
# The more standards-conforming stlport4 library is
13902
# incompatible with the Cstd library. Avoid specifying
13903
# it if it's in CXXFLAGS. Ignore libCrun as
13904
# -library=stlport4 depends on it.
13905
case " $CXX $CXXFLAGS " in
13906
*" -library=stlport4 "*)
13907
solaris_use_stlport4=yes
13911
if test "$solaris_use_stlport4" != yes; then
13912
postdeps_CXX='-library=Cstd -library=Crun'
13919
case $cc_basename in
13921
# The more standards-conforming stlport4 library is
13922
# incompatible with the Cstd library. Avoid specifying
13923
# it if it's in CXXFLAGS. Ignore libCrun as
13924
# -library=stlport4 depends on it.
13925
case " $CXX $CXXFLAGS " in
13926
*" -library=stlport4 "*)
13927
solaris_use_stlport4=yes
13931
# Adding this requires a known-good setup of shared libraries for
13932
# Sun compiler versions before 5.6, else PIC objects from an old
13933
# archive will be linked into the output, leading to subtle bugs.
13934
if test "$solaris_use_stlport4" != yes; then
13935
postdeps_CXX='-library=Cstd -library=Crun'
13943
case " $postdeps_CXX " in
13944
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13946
compiler_lib_search_dirs_CXX=
13947
if test -n "${compiler_lib_search_path_CXX}"; then
13948
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13981
lt_prog_compiler_wl_CXX=
13982
lt_prog_compiler_pic_CXX=
13983
lt_prog_compiler_static_CXX=
13985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13986
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13988
# C++ specific cases for pic, static, wl, etc.
13989
if test "$GXX" = yes; then
13990
lt_prog_compiler_wl_CXX='-Wl,'
13991
lt_prog_compiler_static_CXX='-static'
13995
# All AIX code is PIC.
13996
if test "$host_cpu" = ia64; then
13997
# AIX 5 now supports IA64 processor
13998
lt_prog_compiler_static_CXX='-Bstatic'
14005
# see comment about AmigaOS4 .so support
14006
lt_prog_compiler_pic_CXX='-fPIC'
14009
# FIXME: we need at least 68020 code to build shared libraries, but
14010
# adding the `-m68020' flag to GCC prevents building anything better,
14012
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14017
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14018
# PIC is the default for these OSes.
14020
mingw* | cygwin* | os2* | pw32* | cegcc*)
14021
# This hack is so that the source file can tell whether it is being
14022
# built for inclusion in a dll (and should export symbols for example).
14023
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14024
# (--disable-auto-import) libraries
14025
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14027
darwin* | rhapsody*)
14028
# PIC is the default on this platform
14029
# Common symbols not allowed in MH_DYLIB files
14030
lt_prog_compiler_pic_CXX='-fno-common'
14033
# DJGPP does not support shared libraries at all
14034
lt_prog_compiler_pic_CXX=
14037
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14038
# Instead, we relocate shared libraries at runtime.
14041
if test -d /usr/nec; then
14042
lt_prog_compiler_pic_CXX=-Kconform_pic
14046
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14047
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14048
# sets the default TLS model and affects inlining.
14053
lt_prog_compiler_pic_CXX='-fPIC'
14058
# QNX uses GNU C++, but need to define -shared option too, otherwise
14059
# it will coredump.
14060
lt_prog_compiler_pic_CXX='-fPIC -shared'
14063
lt_prog_compiler_pic_CXX='-fPIC'
14069
# All AIX code is PIC.
14070
if test "$host_cpu" = ia64; then
14071
# AIX 5 now supports IA64 processor
14072
lt_prog_compiler_static_CXX='-Bstatic'
14074
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14078
case $cc_basename in
14080
# Green Hills C++ Compiler
14081
# _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"
14086
case $cc_basename in
14088
lt_prog_compiler_pic_CXX='-KPIC'
14091
# Green Hills C++ Compiler
14092
lt_prog_compiler_pic_CXX='-pic'
14098
freebsd* | dragonfly*)
14099
# FreeBSD uses GNU C++
14101
hpux9* | hpux10* | hpux11*)
14102
case $cc_basename in
14104
lt_prog_compiler_wl_CXX='-Wl,'
14105
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14106
if test "$host_cpu" != ia64; then
14107
lt_prog_compiler_pic_CXX='+Z'
14111
lt_prog_compiler_wl_CXX='-Wl,'
14112
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14118
lt_prog_compiler_pic_CXX='+Z'
14127
# This is c89, which is MS Visual C++ (no shared libs)
14128
# Anyone wants to do a port?
14130
irix5* | irix6* | nonstopux*)
14131
case $cc_basename in
14133
lt_prog_compiler_wl_CXX='-Wl,'
14134
lt_prog_compiler_static_CXX='-non_shared'
14135
# CC pic flag -KPIC is the default.
14141
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14142
case $cc_basename in
14145
lt_prog_compiler_wl_CXX='--backend -Wl,'
14146
lt_prog_compiler_pic_CXX='-fPIC'
14149
# old Intel C++ for x86_64 which still supported -KPIC.
14150
lt_prog_compiler_wl_CXX='-Wl,'
14151
lt_prog_compiler_pic_CXX='-KPIC'
14152
lt_prog_compiler_static_CXX='-static'
14155
# Intel C++, used to be incompatible with GCC.
14156
# ICC 10 doesn't accept -KPIC any more.
14157
lt_prog_compiler_wl_CXX='-Wl,'
14158
lt_prog_compiler_pic_CXX='-fPIC'
14159
lt_prog_compiler_static_CXX='-static'
14162
# Portland Group C++ compiler
14163
lt_prog_compiler_wl_CXX='-Wl,'
14164
lt_prog_compiler_pic_CXX='-fpic'
14165
lt_prog_compiler_static_CXX='-Bstatic'
14169
# Make sure the PIC flag is empty. It appears that all Alpha
14170
# Linux and Compaq Tru64 Unix objects are PIC.
14171
lt_prog_compiler_pic_CXX=
14172
lt_prog_compiler_static_CXX='-non_shared'
14175
# IBM XL 8.0 on PPC
14176
lt_prog_compiler_wl_CXX='-Wl,'
14177
lt_prog_compiler_pic_CXX='-qpic'
14178
lt_prog_compiler_static_CXX='-qstaticlink'
14181
case `$CC -V 2>&1 | sed 5q` in
14184
lt_prog_compiler_pic_CXX='-KPIC'
14185
lt_prog_compiler_static_CXX='-Bstatic'
14186
lt_prog_compiler_wl_CXX='-Qoption ld '
14197
case $cc_basename in
14199
lt_prog_compiler_pic_CXX='-W c,exportall'
14205
netbsd* | netbsdelf*-gnu)
14208
# QNX uses GNU C++, but need to define -shared option too, otherwise
14209
# it will coredump.
14210
lt_prog_compiler_pic_CXX='-fPIC -shared'
14212
osf3* | osf4* | osf5*)
14213
case $cc_basename in
14215
lt_prog_compiler_wl_CXX='--backend -Wl,'
14218
# Rational C++ 2.4.1
14219
lt_prog_compiler_pic_CXX='-pic'
14222
# Digital/Compaq C++
14223
lt_prog_compiler_wl_CXX='-Wl,'
14224
# Make sure the PIC flag is empty. It appears that all Alpha
14225
# Linux and Compaq Tru64 Unix objects are PIC.
14226
lt_prog_compiler_pic_CXX=
14227
lt_prog_compiler_static_CXX='-non_shared'
14236
case $cc_basename in
14238
# Sun C++ 4.2, 5.x and Centerline C++
14239
lt_prog_compiler_pic_CXX='-KPIC'
14240
lt_prog_compiler_static_CXX='-Bstatic'
14241
lt_prog_compiler_wl_CXX='-Qoption ld '
14244
# Green Hills C++ Compiler
14245
lt_prog_compiler_pic_CXX='-PIC'
14252
case $cc_basename in
14255
lt_prog_compiler_pic_CXX='-pic'
14256
lt_prog_compiler_static_CXX='-Bstatic'
14260
lt_prog_compiler_pic_CXX='-pic'
14266
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14267
case $cc_basename in
14269
lt_prog_compiler_wl_CXX='-Wl,'
14270
lt_prog_compiler_pic_CXX='-KPIC'
14271
lt_prog_compiler_static_CXX='-Bstatic'
14276
case $cc_basename in
14278
# NonStop-UX NCC 3.20
14279
lt_prog_compiler_pic_CXX='-KPIC'
14288
lt_prog_compiler_can_build_shared_CXX=no
14294
# For platforms which do not support PIC, -DPIC is meaningless:
14296
lt_prog_compiler_pic_CXX=
14299
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14303
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14308
# Check to make sure the PIC flag actually works.
14310
if test -n "$lt_prog_compiler_pic_CXX"; then
14311
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14312
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14313
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14314
$as_echo_n "(cached) " >&6
14316
lt_cv_prog_compiler_pic_works_CXX=no
14317
ac_outfile=conftest.$ac_objext
14318
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14319
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14320
# Insert the option either (1) after the last *FLAGS variable, or
14321
# (2) before a word containing "conftest.", or (3) at the end.
14322
# Note that $ac_compile itself does not contain backslashes and begins
14323
# with a dollar sign (not a hyphen), so the echo should work correctly.
14324
# The option is referenced via a variable to avoid confusing sed.
14325
lt_compile=`echo "$ac_compile" | $SED \
14326
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14327
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14328
-e 's:$: $lt_compiler_flag:'`
14329
(eval echo "\"\$as_me:14329: $lt_compile\"" >&5)
14330
(eval "$lt_compile" 2>conftest.err)
14332
cat conftest.err >&5
14333
echo "$as_me:14333: \$? = $ac_status" >&5
14334
if (exit $ac_status) && test -s "$ac_outfile"; then
14335
# The compiler can only warn and ignore the option if not recognized
14336
# So say no if there are warnings other than the usual output.
14337
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14338
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14339
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14340
lt_cv_prog_compiler_pic_works_CXX=yes
14346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14347
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14349
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14350
case $lt_prog_compiler_pic_CXX in
14352
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14355
lt_prog_compiler_pic_CXX=
14356
lt_prog_compiler_can_build_shared_CXX=no
14364
# Check to make sure the static flag actually works.
14366
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14368
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14369
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14370
$as_echo_n "(cached) " >&6
14372
lt_cv_prog_compiler_static_works_CXX=no
14373
save_LDFLAGS="$LDFLAGS"
14374
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14375
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14376
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14377
# The linker can only warn and ignore the option if not recognized
14378
# So say no if there are warnings
14379
if test -s conftest.err; then
14380
# Append any errors to the config.log.
14381
cat conftest.err 1>&5
14382
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14383
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14384
if diff conftest.exp conftest.er2 >/dev/null; then
14385
lt_cv_prog_compiler_static_works_CXX=yes
14388
lt_cv_prog_compiler_static_works_CXX=yes
14392
LDFLAGS="$save_LDFLAGS"
14395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14396
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14398
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14401
lt_prog_compiler_static_CXX=
14407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14408
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14409
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14410
$as_echo_n "(cached) " >&6
14412
lt_cv_prog_compiler_c_o_CXX=no
14413
$RM -r conftest 2>/dev/null
14417
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14419
lt_compiler_flag="-o out/conftest2.$ac_objext"
14420
# Insert the option either (1) after the last *FLAGS variable, or
14421
# (2) before a word containing "conftest.", or (3) at the end.
14422
# Note that $ac_compile itself does not contain backslashes and begins
14423
# with a dollar sign (not a hyphen), so the echo should work correctly.
14424
lt_compile=`echo "$ac_compile" | $SED \
14425
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14426
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14427
-e 's:$: $lt_compiler_flag:'`
14428
(eval echo "\"\$as_me:14428: $lt_compile\"" >&5)
14429
(eval "$lt_compile" 2>out/conftest.err)
14431
cat out/conftest.err >&5
14432
echo "$as_me:14432: \$? = $ac_status" >&5
14433
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14435
# The compiler can only warn and ignore the option if not recognized
14436
# So say no if there are warnings
14437
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14438
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14439
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14440
lt_cv_prog_compiler_c_o_CXX=yes
14445
# SGI C++ compiler will create directory out/ii_files/ for
14446
# template instantiation
14447
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14448
$RM out/* && rmdir out
14454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14455
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14460
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14461
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14462
$as_echo_n "(cached) " >&6
14464
lt_cv_prog_compiler_c_o_CXX=no
14465
$RM -r conftest 2>/dev/null
14469
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14471
lt_compiler_flag="-o out/conftest2.$ac_objext"
14472
# Insert the option either (1) after the last *FLAGS variable, or
14473
# (2) before a word containing "conftest.", or (3) at the end.
14474
# Note that $ac_compile itself does not contain backslashes and begins
14475
# with a dollar sign (not a hyphen), so the echo should work correctly.
14476
lt_compile=`echo "$ac_compile" | $SED \
14477
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479
-e 's:$: $lt_compiler_flag:'`
14480
(eval echo "\"\$as_me:14480: $lt_compile\"" >&5)
14481
(eval "$lt_compile" 2>out/conftest.err)
14483
cat out/conftest.err >&5
14484
echo "$as_me:14484: \$? = $ac_status" >&5
14485
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14487
# The compiler can only warn and ignore the option if not recognized
14488
# So say no if there are warnings
14489
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14490
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14491
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14492
lt_cv_prog_compiler_c_o_CXX=yes
14497
# SGI C++ compiler will create directory out/ii_files/ for
14498
# template instantiation
14499
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14500
$RM out/* && rmdir out
14506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14507
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14512
hard_links="nottested"
14513
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14514
# do not overwrite the value of need_locks provided by the user
14515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14516
$as_echo_n "checking if we can lock with hard links... " >&6; }
14519
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14521
ln conftest.a conftest.b 2>&5 || hard_links=no
14522
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14524
$as_echo "$hard_links" >&6; }
14525
if test "$hard_links" = no; then
14526
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14527
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14537
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14539
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14542
# If we're using GNU nm, then we don't want the "-C" option.
14543
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14544
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14545
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'
14547
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'
14551
export_symbols_cmds_CXX="$ltdll_cmds"
14553
cygwin* | mingw* | cegcc*)
14554
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'
14556
linux* | k*bsd*-gnu)
14557
link_all_deplibs_CXX=no
14560
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14563
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14566
$as_echo "$ld_shlibs_CXX" >&6; }
14567
test "$ld_shlibs_CXX" = no && can_build_shared=no
14569
with_gnu_ld_CXX=$with_gnu_ld
14577
# Do we need to explicitly link libc?
14579
case "x$archive_cmds_need_lc_CXX" in
14581
# Assume -lc should be added
14582
archive_cmds_need_lc_CXX=yes
14584
if test "$enable_shared" = yes && test "$GCC" = yes; then
14585
case $archive_cmds_CXX in
14587
# FIXME: we may have to deal with multi-command sequences.
14590
# Test whether the compiler implicitly links with -lc since on some
14591
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14592
# to ld, don't add -lc before -lgcc.
14593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14594
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14596
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14598
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14599
(eval $ac_compile) 2>&5
14601
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14602
test $ac_status = 0; } 2>conftest.err; then
14605
libobjs=conftest.$ac_objext
14607
wl=$lt_prog_compiler_wl_CXX
14608
pic_flag=$lt_prog_compiler_pic_CXX
14614
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14615
allow_undefined_flag_CXX=
14616
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14617
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14619
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14620
test $ac_status = 0; }
14622
archive_cmds_need_lc_CXX=no
14624
archive_cmds_need_lc_CXX=yes
14626
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14628
cat conftest.err 1>&5
14631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14632
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14703
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14705
library_names_spec=
14706
libname_spec='lib$name'
14710
postuninstall_cmds=
14714
shlibpath_overrides_runpath=unknown
14716
dynamic_linker="$host_os ld.so"
14717
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14718
need_lib_prefix=unknown
14719
hardcode_into_libs=no
14721
# when you set need_version to no, make sure it does not cause -set_version
14722
# flags to be left without arguments
14723
need_version=unknown
14728
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14729
shlibpath_var=LIBPATH
14731
# AIX 3 has no versioning support, so we append a major version to the name.
14732
soname_spec='${libname}${release}${shared_ext}$major'
14739
hardcode_into_libs=yes
14740
if test "$host_cpu" = ia64; then
14741
# AIX 5 supports IA64
14742
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14743
shlibpath_var=LD_LIBRARY_PATH
14745
# With GCC up to 2.95.x, collect2 would create an import file
14746
# for dependence libraries. The import file would start with
14747
# the line `#! .'. This would cause the generated library to
14748
# depend on `.', always an invalid library. This was fixed in
14749
# development snapshots of GCC prior to 3.0.
14751
aix4 | aix4.[01] | aix4.[01].*)
14752
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14754
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14757
can_build_shared=no
14761
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14762
# soname into executable. Probably we can add versioning support to
14763
# collect2, so additional links can be useful in future.
14764
if test "$aix_use_runtimelinking" = yes; then
14765
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14766
# instead of lib<name>.a to let people know that these are not
14767
# typical AIX shared libraries.
14768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14770
# We preserve .a as extension for shared libraries through AIX4.2
14771
# and later when we are not doing run time linking.
14772
library_names_spec='${libname}${release}.a $libname.a'
14773
soname_spec='${libname}${release}${shared_ext}$major'
14775
shlibpath_var=LIBPATH
14782
# Since July 2007 AmigaOS4 officially supports .so libraries.
14783
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787
library_names_spec='$libname.ixlibrary $libname.a'
14788
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14789
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'
14795
library_names_spec='${libname}${shared_ext}'
14796
dynamic_linker="$host_os ld.so"
14797
shlibpath_var=LIBRARY_PATH
14803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804
soname_spec='${libname}${release}${shared_ext}$major'
14805
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14806
shlibpath_var=LD_LIBRARY_PATH
14807
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14808
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14809
# the default ld.so.conf also contains /usr/contrib/lib and
14810
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14811
# libtool to hard-code these into programs
14814
cygwin* | mingw* | pw32* | cegcc*)
14815
version_type=windows
14820
case $GCC,$host_os in
14821
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14822
library_names_spec='$libname.dll.a'
14823
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14824
postinstall_cmds='base_file=`basename \${file}`~
14825
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14826
dldir=$destdir/`dirname \$dlpath`~
14827
test -d \$dldir || mkdir -p \$dldir~
14828
$install_prog $dir/$dlname \$dldir/$dlname~
14829
chmod a+x \$dldir/$dlname~
14830
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14831
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14833
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14834
dlpath=$dir/\$dldll~
14836
shlibpath_overrides_runpath=yes
14840
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14841
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14842
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14845
# MinGW DLLs use traditional 'lib' prefix
14846
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14847
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14848
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14849
# It is most probably a Windows format PATH printed by
14850
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14851
# path with ; separators, and with drive letters. We can handle the
14852
# drive letters (cygwin fileutils understands them), so leave them,
14853
# especially as we might pass files found there to a mingw objdump,
14854
# which wouldn't understand a cygwinified path. Ahh.
14855
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14857
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14861
# pw32 DLLs use 'pw' prefix rather than 'lib'
14862
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14868
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14871
dynamic_linker='Win32 ld.exe'
14872
# FIXME: first we should search . and the directory the executable is in
14876
darwin* | rhapsody*)
14877
dynamic_linker="$host_os dyld"
14878
version_type=darwin
14881
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14882
soname_spec='${libname}${release}${major}$shared_ext'
14883
shlibpath_overrides_runpath=yes
14884
shlibpath_var=DYLD_LIBRARY_PATH
14885
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14887
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14894
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14895
soname_spec='${libname}${release}${shared_ext}$major'
14896
shlibpath_var=LD_LIBRARY_PATH
14903
freebsd* | dragonfly*)
14904
# DragonFly does not have aout. When/if they implement a new
14905
# versioning mechanism, adjust this.
14906
if test -x /usr/bin/objformat; then
14907
objformat=`/usr/bin/objformat`
14910
freebsd[123]*) objformat=aout ;;
14911
*) objformat=elf ;;
14914
version_type=freebsd-$objformat
14915
case $version_type in
14917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14922
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14926
shlibpath_var=LD_LIBRARY_PATH
14929
shlibpath_overrides_runpath=yes
14931
freebsd3.[01]* | freebsdelf3.[01]*)
14932
shlibpath_overrides_runpath=yes
14933
hardcode_into_libs=yes
14935
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14936
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14937
shlibpath_overrides_runpath=no
14938
hardcode_into_libs=yes
14940
*) # from 4.6 on, and DragonFly
14941
shlibpath_overrides_runpath=yes
14942
hardcode_into_libs=yes
14951
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14952
soname_spec='${libname}${release}${shared_ext}$major'
14953
shlibpath_var=LD_LIBRARY_PATH
14954
hardcode_into_libs=yes
14957
hpux9* | hpux10* | hpux11*)
14958
# Give a soname corresponding to the major version so that dld.sl refuses to
14959
# link against other versions.
14966
hardcode_into_libs=yes
14967
dynamic_linker="$host_os dld.so"
14968
shlibpath_var=LD_LIBRARY_PATH
14969
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971
soname_spec='${libname}${release}${shared_ext}$major'
14972
if test "X$HPUX_IA64_MODE" = X32; then
14973
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14975
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14977
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14981
hardcode_into_libs=yes
14982
dynamic_linker="$host_os dld.sl"
14983
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14984
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14985
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986
soname_spec='${libname}${release}${shared_ext}$major'
14987
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14988
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14992
dynamic_linker="$host_os dld.sl"
14993
shlibpath_var=SHLIB_PATH
14994
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996
soname_spec='${libname}${release}${shared_ext}$major'
14999
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15000
postinstall_cmds='chmod 555 $lib'
15007
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15008
soname_spec='${libname}${release}${shared_ext}$major'
15009
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15010
shlibpath_var=LD_LIBRARY_PATH
15011
shlibpath_overrides_runpath=no
15012
hardcode_into_libs=yes
15015
irix5* | irix6* | nonstopux*)
15017
nonstopux*) version_type=nonstopux ;;
15019
if test "$lt_cv_prog_gnu_ld" = yes; then
15027
soname_spec='${libname}${release}${shared_ext}$major'
15028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15030
irix5* | nonstopux*)
15031
libsuff= shlibsuff=
15034
case $LD in # libtool.m4 will add one of these switches to LD
15035
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15036
libsuff= shlibsuff= libmagic=32-bit;;
15037
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15038
libsuff=32 shlibsuff=N32 libmagic=N32;;
15039
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15040
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15041
*) libsuff= shlibsuff= libmagic=never-match;;
15045
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15046
shlibpath_overrides_runpath=no
15047
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15048
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15049
hardcode_into_libs=yes
15052
# No shared lib support for Linux oldld, aout, or coff.
15053
linux*oldld* | linux*aout* | linux*coff*)
15057
# This must be Linux ELF.
15058
linux* | k*bsd*-gnu | kopensolaris*-gnu)
15062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063
soname_spec='${libname}${release}${shared_ext}$major'
15064
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15065
shlibpath_var=LD_LIBRARY_PATH
15066
shlibpath_overrides_runpath=no
15067
# Some binutils ld are patched to set DT_RUNPATH
15068
save_LDFLAGS=$LDFLAGS
15069
save_libdir=$libdir
15070
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15071
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15072
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073
/* end confdefs.h. */
15083
if ac_fn_cxx_try_link "$LINENO"; then :
15084
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15085
shlibpath_overrides_runpath=yes
15088
rm -f core conftest.err conftest.$ac_objext \
15089
conftest$ac_exeext conftest.$ac_ext
15090
LDFLAGS=$save_LDFLAGS
15091
libdir=$save_libdir
15093
# This implies no fast_install, which is unacceptable.
15094
# Some rework will be needed to allow for fast_install
15095
# before this can be enabled.
15096
hardcode_into_libs=yes
15098
# Append ld.so.conf contents to the search path
15099
if test -f /etc/ld.so.conf; then
15100
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' ' '`
15101
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15104
# We used to test for /lib/ld.so.1 and disable shared libraries on
15105
# powerpc, because MkLinux only supported shared libraries with the
15106
# GNU dynamic linker. Since this was broken with cross compilers,
15107
# most powerpc-linux boxes support dynamic linking these days and
15108
# people can always --disable-shared, the test was removed, and we
15109
# assume the GNU/Linux dynamic linker is in use.
15110
dynamic_linker='GNU/Linux ld.so'
15117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15118
soname_spec='${libname}${release}${shared_ext}$major'
15119
shlibpath_var=LD_LIBRARY_PATH
15120
shlibpath_overrides_runpath=no
15121
hardcode_into_libs=yes
15122
dynamic_linker='NetBSD ld.elf_so'
15129
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15131
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15132
dynamic_linker='NetBSD (a.out) ld.so'
15134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15135
soname_spec='${libname}${release}${shared_ext}$major'
15136
dynamic_linker='NetBSD ld.elf_so'
15138
shlibpath_var=LD_LIBRARY_PATH
15139
shlibpath_overrides_runpath=yes
15140
hardcode_into_libs=yes
15145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15146
shlibpath_var=LD_LIBRARY_PATH
15147
shlibpath_overrides_runpath=yes
15154
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155
soname_spec='${libname}${release}${shared_ext}$major'
15156
shlibpath_var=LD_LIBRARY_PATH
15157
shlibpath_overrides_runpath=no
15158
hardcode_into_libs=yes
15159
dynamic_linker='ldqnx.so'
15164
sys_lib_dlsearch_path_spec="/usr/lib"
15166
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15168
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15169
*) need_version=no ;;
15171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15172
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15173
shlibpath_var=LD_LIBRARY_PATH
15174
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15176
openbsd2.[89] | openbsd2.[89].*)
15177
shlibpath_overrides_runpath=no
15180
shlibpath_overrides_runpath=yes
15184
shlibpath_overrides_runpath=yes
15189
libname_spec='$name'
15192
library_names_spec='$libname${shared_ext} $libname.a'
15193
dynamic_linker='OS/2 ld.exe'
15194
shlibpath_var=LIBPATH
15197
osf3* | osf4* | osf5*)
15201
soname_spec='${libname}${release}${shared_ext}$major'
15202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203
shlibpath_var=LD_LIBRARY_PATH
15204
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15205
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217
soname_spec='${libname}${release}${shared_ext}$major'
15218
shlibpath_var=LD_LIBRARY_PATH
15219
shlibpath_overrides_runpath=yes
15220
hardcode_into_libs=yes
15221
# ldd complains unless libraries are executable
15222
postinstall_cmds='chmod +x $lib'
15227
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15228
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15229
shlibpath_var=LD_LIBRARY_PATH
15230
shlibpath_overrides_runpath=yes
15231
if test "$with_gnu_ld" = yes; then
15239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15240
soname_spec='${libname}${release}${shared_ext}$major'
15241
shlibpath_var=LD_LIBRARY_PATH
15242
case $host_vendor in
15244
shlibpath_overrides_runpath=no
15246
runpath_var=LD_RUN_PATH
15254
shlibpath_overrides_runpath=no
15255
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15261
if test -d /usr/nec ;then
15263
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15264
soname_spec='$libname${shared_ext}.$major'
15265
shlibpath_var=LD_LIBRARY_PATH
15269
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15270
version_type=freebsd-elf
15273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15274
soname_spec='${libname}${release}${shared_ext}$major'
15275
shlibpath_var=LD_LIBRARY_PATH
15276
shlibpath_overrides_runpath=yes
15277
hardcode_into_libs=yes
15278
if test "$with_gnu_ld" = yes; then
15279
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15281
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15284
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15288
sys_lib_dlsearch_path_spec='/usr/lib'
15292
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297
shlibpath_var=LD_LIBRARY_PATH
15298
shlibpath_overrides_runpath=no
15299
hardcode_into_libs=yes
15304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305
soname_spec='${libname}${release}${shared_ext}$major'
15306
shlibpath_var=LD_LIBRARY_PATH
15313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15314
$as_echo "$dynamic_linker" >&6; }
15315
test "$dynamic_linker" = no && can_build_shared=no
15317
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15318
if test "$GCC" = yes; then
15319
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15322
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15323
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15325
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15326
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15365
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15366
hardcode_action_CXX=
15367
if test -n "$hardcode_libdir_flag_spec_CXX" ||
15368
test -n "$runpath_var_CXX" ||
15369
test "X$hardcode_automatic_CXX" = "Xyes" ; then
15371
# We can hardcode non-existent directories.
15372
if test "$hardcode_direct_CXX" != no &&
15373
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15374
# have to relink, otherwise we might link with an installed library
15375
# when we should be linking with a yet-to-be-installed one
15376
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15377
test "$hardcode_minus_L_CXX" != no; then
15378
# Linking always hardcodes the temporary library directory.
15379
hardcode_action_CXX=relink
15381
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15382
hardcode_action_CXX=immediate
15385
# We cannot hardcode anything, or else we can only hardcode existing
15387
hardcode_action_CXX=unsupported
15389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15390
$as_echo "$hardcode_action_CXX" >&6; }
15392
if test "$hardcode_action_CXX" = relink ||
15393
test "$inherit_rpath_CXX" = yes; then
15394
# Fast installation is not supported
15395
enable_fast_install=no
15396
elif test "$shlibpath_overrides_runpath" = yes ||
15397
test "$enable_shared" = no; then
15398
# Fast installation is not necessary
15399
enable_fast_install=needless
15408
fi # test -n "$compiler"
15414
with_gnu_ld=$lt_save_with_gnu_ld
15415
lt_cv_path_LDCXX=$lt_cv_path_LD
15416
lt_cv_path_LD=$lt_save_path_LD
15417
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15418
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15419
fi # test "$_lt_caught_CXX_error" != yes
15422
ac_cpp='$CPP $CPPFLAGS'
15423
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15424
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15425
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15439
ac_config_commands="$ac_config_commands libtool"
15444
# Only expand once:
15451
# Find any Python interpreter.
15452
if test -z "$PYTHON"; then
15453
for ac_prog in python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
15455
# Extract the first word of "$ac_prog", so it can be a program name with args.
15456
set dummy $ac_prog; ac_word=$2
15457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15458
$as_echo_n "checking for $ac_word... " >&6; }
15459
if test "${ac_cv_path_PYTHON+set}" = set; then :
15460
$as_echo_n "(cached) " >&6
15464
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468
for as_dir in $PATH
15471
test -z "$as_dir" && as_dir=.
15472
for ac_exec_ext in '' $ac_executable_extensions; do
15473
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15474
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15475
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15485
PYTHON=$ac_cv_path_PYTHON
15486
if test -n "$PYTHON"; then
15487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15488
$as_echo "$PYTHON" >&6; }
15490
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491
$as_echo "no" >&6; }
15495
test -n "$PYTHON" && break
15497
test -n "$PYTHON" || PYTHON=":"
15500
am_display_PYTHON=python
15503
if test "$PYTHON" = :; then
15504
as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
15508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
15509
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
15510
if test "${am_cv_python_version+set}" = set; then :
15511
$as_echo_n "(cached) " >&6
15513
am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
15515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
15516
$as_echo "$am_cv_python_version" >&6; }
15517
PYTHON_VERSION=$am_cv_python_version
15521
PYTHON_PREFIX='${prefix}'
15523
PYTHON_EXEC_PREFIX='${exec_prefix}'
15527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
15528
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
15529
if test "${am_cv_python_platform+set}" = set; then :
15530
$as_echo_n "(cached) " >&6
15532
am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
15534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
15535
$as_echo "$am_cv_python_platform" >&6; }
15536
PYTHON_PLATFORM=$am_cv_python_platform
15541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
15542
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
15543
if test "${am_cv_python_pythondir+set}" = set; then :
15544
$as_echo_n "(cached) " >&6
15546
if test "x$prefix" = xNONE
15548
am_py_prefix=$ac_default_prefix
15550
am_py_prefix=$prefix
15552
am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
15553
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
15554
case $am_cv_python_pythondir in
15556
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
15557
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
15560
case $am_py_prefix in
15563
am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
15570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
15571
$as_echo "$am_cv_python_pythondir" >&6; }
15572
pythondir=$am_cv_python_pythondir
15576
pkgpythondir=\${pythondir}/$PACKAGE
15579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
15580
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
15581
if test "${am_cv_python_pyexecdir+set}" = set; then :
15582
$as_echo_n "(cached) " >&6
15584
if test "x$exec_prefix" = xNONE
15586
am_py_exec_prefix=$am_py_prefix
15588
am_py_exec_prefix=$exec_prefix
15590
am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
15591
echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
15592
case $am_cv_python_pyexecdir in
15593
$am_py_exec_prefix*)
15594
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15595
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
15598
case $am_py_exec_prefix in
15601
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
15608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15609
$as_echo "$am_cv_python_pyexecdir" >&6; }
15610
pyexecdir=$am_cv_python_pyexecdir
15614
pkgpyexecdir=\${pyexecdir}/$PACKAGE
15622
if test "$GCC" = "yes"; then :
15624
SUBUNIT_CFLAGS="-Wall -Werror -Wextra -Wstrict-prototypes "
15625
SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wmissing-prototypes -Wwrite-strings "
15626
SUBUNIT_CFLAGS="$SUBUNIT_CFLAGS -Wno-variadic-macros "
15627
SUBUNIT_CXXFLAGS="-Wall -Werror -Wextra -Wwrite-strings -Wno-variadic-macros"
15631
AM_CFLAGS="$SUBUNIT_CFLAGS -I\$(top_srcdir)/c/include"
15632
AM_CXXFLAGS="$SUBUNIT_CXXFLAGS -I\$(top_srcdir)/c/include"
15636
# Checks for libraries.
15638
# Checks for header files.
15639
for ac_header in stdlib.h
15641
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15642
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15643
cat >>confdefs.h <<_ACEOF
15644
#define HAVE_STDLIB_H 1
15652
# Checks for typedefs, structures, and compiler characteristics.
15653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15654
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15655
if test "${ac_cv_c_const+set}" = set; then :
15656
$as_echo_n "(cached) " >&6
15658
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659
/* end confdefs.h. */
15664
/* FIXME: Include the comments suggested by Paul. */
15665
#ifndef __cplusplus
15666
/* Ultrix mips cc rejects this. */
15667
typedef int charset[2];
15669
/* SunOS 4.1.1 cc rejects this. */
15670
char const *const *pcpcc;
15672
/* NEC SVR4.0.2 mips cc rejects this. */
15673
struct point {int x, y;};
15674
static struct point const zero = {0,0};
15675
/* AIX XL C 1.02.0.0 rejects this.
15676
It does not let you subtract one const X* pointer from another in
15677
an arm of an if-expression whose if-part is not a constant
15679
const char *g = "string";
15680
pcpcc = &g + (g ? g-g : 0);
15681
/* HPUX 7.0 cc rejects these. */
15683
ppc = (char**) pcpcc;
15684
pcpcc = (char const *const *) ppc;
15685
{ /* SCO 3.2v4 cc rejects this. */
15687
char const *s = 0 ? (char *) 0 : (char const *) 0;
15692
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15693
int x[] = {25, 17};
15694
const int *foo = &x[0];
15697
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15698
typedef const int *iptr;
15702
{ /* AIX XL C 1.02.0.0 rejects this saying
15703
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15704
struct s { int j; const int *ap[3]; };
15705
struct s *b; b->j = 5;
15707
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15708
const int foo = 10;
15709
if (!foo) return 0;
15711
return !cs[0] && !zero.x;
15718
if ac_fn_c_try_compile "$LINENO"; then :
15723
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15726
$as_echo "$ac_cv_c_const" >&6; }
15727
if test $ac_cv_c_const = no; then
15729
$as_echo "#define const /**/" >>confdefs.h
15733
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15734
if test "x$ac_cv_type_pid_t" = x""yes; then :
15738
cat >>confdefs.h <<_ACEOF
15744
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15745
if test "x$ac_cv_type_size_t" = x""yes; then :
15749
cat >>confdefs.h <<_ACEOF
15750
#define size_t unsigned int
15755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15756
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15757
if test "${ac_cv_header_time+set}" = set; then :
15758
$as_echo_n "(cached) " >&6
15760
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761
/* end confdefs.h. */
15762
#include <sys/types.h>
15763
#include <sys/time.h>
15769
if ((struct tm *) 0)
15775
if ac_fn_c_try_compile "$LINENO"; then :
15776
ac_cv_header_time=yes
15778
ac_cv_header_time=no
15780
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15783
$as_echo "$ac_cv_header_time" >&6; }
15784
if test $ac_cv_header_time = yes; then
15786
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
15791
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15792
if test "${ac_cv_struct_tm+set}" = set; then :
15793
$as_echo_n "(cached) " >&6
15795
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796
/* end confdefs.h. */
15797
#include <sys/types.h>
15804
int *p = &tm.tm_sec;
15810
if ac_fn_c_try_compile "$LINENO"; then :
15811
ac_cv_struct_tm=time.h
15813
ac_cv_struct_tm=sys/time.h
15815
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
15818
$as_echo "$ac_cv_struct_tm" >&6; }
15819
if test $ac_cv_struct_tm = sys/time.h; then
15821
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
15826
# The cast to long int works around a bug in the HP C Compiler
15827
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15828
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15829
# This bug is HP SR number 8606223364.
15830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15831
$as_echo_n "checking size of int... " >&6; }
15832
if test "${ac_cv_sizeof_int+set}" = set; then :
15833
$as_echo_n "(cached) " >&6
15835
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15838
if test "$ac_cv_type_int" = yes; then
15839
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15840
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15841
as_fn_error 77 "cannot compute sizeof (int)
15842
See \`config.log' for more details" "$LINENO" 5 ; }
15849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15850
$as_echo "$ac_cv_sizeof_int" >&6; }
15854
cat >>confdefs.h <<_ACEOF
15855
#define SIZEOF_INT $ac_cv_sizeof_int
15859
# The cast to long int works around a bug in the HP C Compiler
15860
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15861
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15862
# This bug is HP SR number 8606223364.
15863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15864
$as_echo_n "checking size of short... " >&6; }
15865
if test "${ac_cv_sizeof_short+set}" = set; then :
15866
$as_echo_n "(cached) " >&6
15868
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15871
if test "$ac_cv_type_short" = yes; then
15872
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15873
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15874
as_fn_error 77 "cannot compute sizeof (short)
15875
See \`config.log' for more details" "$LINENO" 5 ; }
15877
ac_cv_sizeof_short=0
15882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15883
$as_echo "$ac_cv_sizeof_short" >&6; }
15887
cat >>confdefs.h <<_ACEOF
15888
#define SIZEOF_SHORT $ac_cv_sizeof_short
15892
# The cast to long int works around a bug in the HP C Compiler
15893
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15894
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15895
# This bug is HP SR number 8606223364.
15896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15897
$as_echo_n "checking size of long... " >&6; }
15898
if test "${ac_cv_sizeof_long+set}" = set; then :
15899
$as_echo_n "(cached) " >&6
15901
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15904
if test "$ac_cv_type_long" = yes; then
15905
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15906
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15907
as_fn_error 77 "cannot compute sizeof (long)
15908
See \`config.log' for more details" "$LINENO" 5 ; }
15910
ac_cv_sizeof_long=0
15915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15916
$as_echo "$ac_cv_sizeof_long" >&6; }
15920
cat >>confdefs.h <<_ACEOF
15921
#define SIZEOF_LONG $ac_cv_sizeof_long
15926
# Checks for library functions.
15927
for ac_header in stdlib.h
15929
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15930
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15931
cat >>confdefs.h <<_ACEOF
15932
#define HAVE_STDLIB_H 1
15939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15940
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15941
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
15942
$as_echo_n "(cached) " >&6
15944
if test "$cross_compiling" = yes; then :
15945
ac_cv_func_malloc_0_nonnull=no
15947
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948
/* end confdefs.h. */
15949
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15950
# include <stdlib.h>
15958
return ! malloc (0);
15963
if ac_fn_c_try_run "$LINENO"; then :
15964
ac_cv_func_malloc_0_nonnull=yes
15966
ac_cv_func_malloc_0_nonnull=no
15968
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15969
conftest.$ac_objext conftest.beam conftest.$ac_ext
15973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15974
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15975
if test $ac_cv_func_malloc_0_nonnull = yes; then :
15977
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15980
$as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15982
case " $LIBOBJS " in
15983
*" malloc.$ac_objext "* ) ;;
15984
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15989
$as_echo "#define malloc rpl_malloc" >>confdefs.h
15994
for ac_header in stdlib.h
15996
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15997
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15998
cat >>confdefs.h <<_ACEOF
15999
#define HAVE_STDLIB_H 1
16006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16007
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16008
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
16009
$as_echo_n "(cached) " >&6
16011
if test "$cross_compiling" = yes; then :
16012
ac_cv_func_realloc_0_nonnull=no
16014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015
/* end confdefs.h. */
16016
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16017
# include <stdlib.h>
16025
return ! realloc (0, 0);
16030
if ac_fn_c_try_run "$LINENO"; then :
16031
ac_cv_func_realloc_0_nonnull=yes
16033
ac_cv_func_realloc_0_nonnull=no
16035
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16036
conftest.$ac_objext conftest.beam conftest.$ac_ext
16040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16041
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16042
if test $ac_cv_func_realloc_0_nonnull = yes; then :
16044
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16047
$as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16049
case " $LIBOBJS " in
16050
*" realloc.$ac_objext "* ) ;;
16051
*) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16056
$as_echo "#define realloc rpl_realloc" >>confdefs.h
16062
# Easier memory management.
16070
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16071
if test -n "$ac_tool_prefix"; then
16072
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16073
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16074
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16075
$as_echo_n "checking for $ac_word... " >&6; }
16076
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16077
$as_echo_n "(cached) " >&6
16079
case $PKG_CONFIG in
16081
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16085
for as_dir in $PATH
16088
test -z "$as_dir" && as_dir=.
16089
for ac_exec_ext in '' $ac_executable_extensions; do
16090
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16091
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16092
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16102
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16103
if test -n "$PKG_CONFIG"; then
16104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16105
$as_echo "$PKG_CONFIG" >&6; }
16107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16108
$as_echo "no" >&6; }
16113
if test -z "$ac_cv_path_PKG_CONFIG"; then
16114
ac_pt_PKG_CONFIG=$PKG_CONFIG
16115
# Extract the first word of "pkg-config", so it can be a program name with args.
16116
set dummy pkg-config; ac_word=$2
16117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16118
$as_echo_n "checking for $ac_word... " >&6; }
16119
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16120
$as_echo_n "(cached) " >&6
16122
case $ac_pt_PKG_CONFIG in
16124
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16128
for as_dir in $PATH
16131
test -z "$as_dir" && as_dir=.
16132
for ac_exec_ext in '' $ac_executable_extensions; do
16133
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16134
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16135
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16145
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16146
if test -n "$ac_pt_PKG_CONFIG"; then
16147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16148
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151
$as_echo "no" >&6; }
16154
if test "x$ac_pt_PKG_CONFIG" = x; then
16157
case $cross_compiling:$ac_tool_warned in
16159
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16160
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16161
ac_tool_warned=yes ;;
16163
PKG_CONFIG=$ac_pt_PKG_CONFIG
16166
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16170
if test -n "$PKG_CONFIG"; then
16171
_pkg_min_version=0.9.0
16172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16173
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16174
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16176
$as_echo "yes" >&6; }
16178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16179
$as_echo "no" >&6; }
16185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
16186
$as_echo_n "checking for CHECK... " >&6; }
16188
if test -n "$CHECK_CFLAGS"; then
16189
pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
16190
elif test -n "$PKG_CONFIG"; then
16191
if test -n "$PKG_CONFIG" && \
16192
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
16193
($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
16195
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16196
test $ac_status = 0; }; then
16197
pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
16204
if test -n "$CHECK_LIBS"; then
16205
pkg_cv_CHECK_LIBS="$CHECK_LIBS"
16206
elif test -n "$PKG_CONFIG"; then
16207
if test -n "$PKG_CONFIG" && \
16208
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
16209
($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
16211
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16212
test $ac_status = 0; }; then
16213
pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
16223
if test $pkg_failed = yes; then
16224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225
$as_echo "no" >&6; }
16227
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16228
_pkg_short_errors_supported=yes
16230
_pkg_short_errors_supported=no
16232
if test $_pkg_short_errors_supported = yes; then
16233
CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.4" 2>&1`
16235
CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.4" 2>&1`
16237
# Put the nasty error message in config.log where it belongs
16238
echo "$CHECK_PKG_ERRORS" >&5
16240
as_fn_error $? "Package requirements (check >= 0.9.4) were not met:
16244
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16245
installed software in a non-standard prefix.
16247
Alternatively, you may set the environment variables CHECK_CFLAGS
16248
and CHECK_LIBS to avoid the need to call pkg-config.
16249
See the pkg-config man page for more details." "$LINENO" 5
16250
elif test $pkg_failed = untried; then
16251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252
$as_echo "no" >&6; }
16253
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16254
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16255
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16256
is in your PATH or set the PKG_CONFIG environment variable to the full
16257
path to pkg-config.
16259
Alternatively, you may set the environment variables CHECK_CFLAGS
16260
and CHECK_LIBS to avoid the need to call pkg-config.
16261
See the pkg-config man page for more details.
16263
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16264
See \`config.log' for more details" "$LINENO" 5 ; }
16266
CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
16267
CHECK_LIBS=$pkg_cv_CHECK_LIBS
16268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16269
$as_echo "yes" >&6; }
16272
# C++ unit testing.
16275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
16276
$as_echo_n "checking for CPPUNIT... " >&6; }
16278
if test -n "$CPPUNIT_CFLAGS"; then
16279
pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
16280
elif test -n "$PKG_CONFIG"; then
16281
if test -n "$PKG_CONFIG" && \
16282
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
16283
($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
16285
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16286
test $ac_status = 0; }; then
16287
pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
16294
if test -n "$CPPUNIT_LIBS"; then
16295
pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
16296
elif test -n "$PKG_CONFIG"; then
16297
if test -n "$PKG_CONFIG" && \
16298
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
16299
($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
16301
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16302
test $ac_status = 0; }; then
16303
pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
16313
if test $pkg_failed = yes; then
16314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16315
$as_echo "no" >&6; }
16317
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16318
_pkg_short_errors_supported=yes
16320
_pkg_short_errors_supported=no
16322
if test $_pkg_short_errors_supported = yes; then
16323
CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cppunit" 2>&1`
16325
CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cppunit" 2>&1`
16327
# Put the nasty error message in config.log where it belongs
16328
echo "$CPPUNIT_PKG_ERRORS" >&5
16330
as_fn_error $? "Package requirements (cppunit) were not met:
16332
$CPPUNIT_PKG_ERRORS
16334
Consider adjusting the PKG_CONFIG_PATH environment variable if you
16335
installed software in a non-standard prefix.
16337
Alternatively, you may set the environment variables CPPUNIT_CFLAGS
16338
and CPPUNIT_LIBS to avoid the need to call pkg-config.
16339
See the pkg-config man page for more details." "$LINENO" 5
16340
elif test $pkg_failed = untried; then
16341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16342
$as_echo "no" >&6; }
16343
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16344
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16345
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16346
is in your PATH or set the PKG_CONFIG environment variable to the full
16347
path to pkg-config.
16349
Alternatively, you may set the environment variables CPPUNIT_CFLAGS
16350
and CPPUNIT_LIBS to avoid the need to call pkg-config.
16351
See the pkg-config man page for more details.
16353
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16354
See \`config.log' for more details" "$LINENO" 5 ; }
16356
CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
16357
CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
16358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16359
$as_echo "yes" >&6; }
16364
ac_config_headers="$ac_config_headers config.h"
16367
ac_config_files="$ac_config_files libsubunit.pc libcppunit_subunit.pc Makefile perl/Makefile.PL"
16369
cat >confcache <<\_ACEOF
16370
# This file is a shell script that caches the results of configure
16371
# tests run on this system so they can be shared between configure
16372
# scripts and configure runs, see configure's option --config-cache.
16373
# It is not useful on other systems. If it contains results you don't
16374
# want to keep, you may remove or edit it.
16376
# config.status only pays attention to the cache file if you give it
16377
# the --recheck option to rerun configure.
16379
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16380
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16381
# following values.
16385
# The following way of writing the cache mishandles newlines in values,
16386
# but we know of no workaround that is simple, portable, and efficient.
16387
# So, we kill variables containing newlines.
16388
# Ultrix sh set writes to stderr and can't be redirected directly,
16389
# and sets the high bit in the cache file unless we assign to the vars.
16391
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16392
eval ac_val=\$$ac_var
16396
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16397
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16400
_ | IFS | as_nl) ;; #(
16401
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16402
*) { eval $ac_var=; unset $ac_var;} ;;
16408
case $as_nl`(ac_space=' '; set) 2>&1` in #(
16409
*${as_nl}ac_space=\ *)
16410
# `set' does not quote correctly, so add quotes: double-quote
16411
# substitution turns \\\\ into \\, and sed turns \\ into \.
16414
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16417
# `set' quotes correctly as required by POSIX, so do not add quotes.
16418
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16427
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16429
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16431
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16432
if test -w "$cache_file"; then
16433
test "x$cache_file" != "x/dev/null" &&
16434
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16435
$as_echo "$as_me: updating cache $cache_file" >&6;}
16436
cat confcache >$cache_file
16438
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16439
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16444
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16445
# Let make expand exec_prefix.
16446
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16448
DEFS=-DHAVE_CONFIG_H
16453
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16454
# 1. Remove the extension, and $U if already installed.
16455
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16456
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16457
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16458
# will be set to the directory where LIBOBJS objects are built.
16459
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16460
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16462
LIBOBJS=$ac_libobjs
16464
LTLIBOBJS=$ac_ltlibobjs
16467
if test -n "$EXEEXT"; then
16469
am__EXEEXT_FALSE='#'
16471
am__EXEEXT_TRUE='#'
16475
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16476
as_fn_error $? "conditional \"AMDEP\" was never defined.
16477
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16479
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16480
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16481
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16483
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16484
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16485
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16487
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16488
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16489
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16491
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16492
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16493
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16496
: ${CONFIG_STATUS=./config.status}
16498
ac_clean_files_save=$ac_clean_files
16499
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16500
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16501
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16503
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16505
# Generated by $as_me.
16506
# Run this file to recreate the current configuration.
16507
# Compiler output produced by configure, useful for debugging
16508
# configure, is in config.log if it exists.
16511
ac_cs_recheck=false
16514
SHELL=\${CONFIG_SHELL-$SHELL}
16517
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16518
## -------------------- ##
16519
## M4sh Initialization. ##
16520
## -------------------- ##
16522
# Be more Bourne compatible
16523
DUALCASE=1; export DUALCASE # for MKS sh
16524
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16527
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16528
# is contrary to our usage. Disable this feature.
16529
alias -g '${1+"$@"}'='"$@"'
16530
setopt NO_GLOB_SUBST
16532
case `(set -o) 2>/dev/null` in #(
16544
# Printing a long string crashes Solaris 7 /usr/bin/printf.
16545
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16546
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16547
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16548
# Prefer a ksh shell builtin over an external printf program on Solaris,
16549
# but without wasting forks for bash or zsh.
16550
if test -z "$BASH_VERSION$ZSH_VERSION" \
16551
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16552
as_echo='print -r --'
16553
as_echo_n='print -rn --'
16554
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16555
as_echo='printf %s\n'
16556
as_echo_n='printf %s'
16558
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16559
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16560
as_echo_n='/usr/ucb/echo -n'
16562
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16563
as_echo_n_body='eval
16567
expr "X$arg" : "X\\(.*\\)$as_nl";
16568
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16570
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16572
export as_echo_n_body
16573
as_echo_n='sh -c $as_echo_n_body as_echo'
16575
export as_echo_body
16576
as_echo='sh -c $as_echo_body as_echo'
16579
# The user is always right.
16580
if test "${PATH_SEPARATOR+set}" != set; then
16582
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16583
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16590
# We need space, tab and new line, in precisely that order. Quoting is
16591
# there to prevent editors from complaining about space-tab.
16592
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16593
# splitting by setting IFS to empty value.)
16596
# Find who we are. Look in the path if we contain no directory separator.
16598
*[\\/]* ) as_myself=$0 ;;
16599
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16600
for as_dir in $PATH
16603
test -z "$as_dir" && as_dir=.
16604
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16610
# We did not find ourselves, most probably we were run as `sh COMMAND'
16611
# in which case we are not to be found in the path.
16612
if test "x$as_myself" = x; then
16615
if test ! -f "$as_myself"; then
16616
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16620
# Unset variables that we do not need and which cause bugs (e.g. in
16621
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16622
# suppresses any "Segmentation fault" message there. '((' could
16623
# trigger a bug in pdksh 5.2.14.
16624
for as_var in BASH_ENV ENV MAIL MAILPATH
16625
do eval test x\${$as_var+set} = xset \
16626
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16639
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16642
# as_fn_error STATUS ERROR [LINENO LOG_FD]
16643
# ----------------------------------------
16644
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16645
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16646
# script with STATUS, using 1 if that was 0.
16649
as_status=$1; test $as_status -eq 0 && as_status=1
16651
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16652
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16654
$as_echo "$as_me: error: $2" >&2
16655
as_fn_exit $as_status
16659
# as_fn_set_status STATUS
16660
# -----------------------
16661
# Set $? to STATUS, without forking.
16662
as_fn_set_status ()
16665
} # as_fn_set_status
16667
# as_fn_exit STATUS
16668
# -----------------
16669
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16673
as_fn_set_status $1
16679
# Portably unset VAR.
16682
{ eval $1=; unset $1;}
16684
as_unset=as_fn_unset
16685
# as_fn_append VAR VALUE
16686
# ----------------------
16687
# Append the text in VALUE to the end of the definition contained in VAR. Take
16688
# advantage of any shell optimizations that allow amortized linear growth over
16689
# repeated appends, instead of the typical quadratic growth present in naive
16691
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16692
eval 'as_fn_append ()
16703
# as_fn_arith ARG...
16704
# ------------------
16705
# Perform arithmetic evaluation on the ARGs, and store the result in the
16706
# global $as_val. Take advantage of shells that can avoid forks. The arguments
16707
# must be portable across $(()) and expr.
16708
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16709
eval 'as_fn_arith ()
16716
as_val=`expr "$@" || test $? -eq 1`
16721
if expr a : '\(a\)' >/dev/null 2>&1 &&
16722
test "X`expr 00001 : '.*\(...\)'`" = X001; then
16728
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16729
as_basename=basename
16734
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16740
as_me=`$as_basename -- "$0" ||
16741
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16742
X"$0" : 'X\(//\)$' \| \
16743
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16745
sed '/^.*\/\([^/][^/]*\)\/*$/{
16759
# Avoid depending upon Character Ranges.
16760
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16761
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16762
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16763
as_cr_digits='0123456789'
16764
as_cr_alnum=$as_cr_Letters$as_cr_digits
16766
ECHO_C= ECHO_N= ECHO_T=
16767
case `echo -n x` in #(((((
16769
case `echo 'xy\c'` in
16770
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
16772
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16779
rm -f conf$$ conf$$.exe conf$$.file
16780
if test -d conf$$.dir; then
16781
rm -f conf$$.dir/conf$$.file
16784
mkdir conf$$.dir 2>/dev/null
16786
if (echo >conf$$.file) 2>/dev/null; then
16787
if ln -s conf$$.file conf$$ 2>/dev/null; then
16789
# ... but there are two gotchas:
16790
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16791
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16792
# In both cases, we have to default to `cp -p'.
16793
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16795
elif ln conf$$.file conf$$ 2>/dev/null; then
16803
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16804
rmdir conf$$.dir 2>/dev/null
16809
# Create "$as_dir" as a directory, including parents if necessary.
16814
-*) as_dir=./$as_dir;;
16816
test -d "$as_dir" || eval $as_mkdir_p || {
16820
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16821
*) as_qdir=$as_dir;;
16823
as_dirs="'$as_qdir' $as_dirs"
16824
as_dir=`$as_dirname -- "$as_dir" ||
16825
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16826
X"$as_dir" : 'X\(//\)[^/]' \| \
16827
X"$as_dir" : 'X\(//\)$' \| \
16828
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16829
$as_echo X"$as_dir" |
16830
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16834
/^X\(\/\/\)[^/].*/{
16847
test -d "$as_dir" && break
16849
test -z "$as_dirs" || eval "mkdir $as_dirs"
16850
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16854
if mkdir -p . 2>/dev/null; then
16855
as_mkdir_p='mkdir -p "$as_dir"'
16857
test -d ./-p && rmdir ./-p
16861
if test -x / >/dev/null 2>&1; then
16862
as_test_x='test -x'
16864
if ls -dL / >/dev/null 2>&1; then
16871
if test -d "$1"; then
16877
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16878
???[sx]*):;;*)false;;esac;fi
16882
as_executable_p=$as_test_x
16884
# Sed expression to map a string onto a valid CPP name.
16885
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16887
# Sed expression to map a string onto a valid variable name.
16888
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16892
## ----------------------------------- ##
16893
## Main body of $CONFIG_STATUS script. ##
16894
## ----------------------------------- ##
16896
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16898
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16899
# Save the log message, to keep $0 and so on meaningful, and to
16900
# report actual input values of CONFIG_FILES etc. instead of their
16901
# values after options handling.
16903
This file was extended by subunit $as_me 0.0.7, which was
16904
generated by GNU Autoconf 2.67. Invocation command line was
16906
CONFIG_FILES = $CONFIG_FILES
16907
CONFIG_HEADERS = $CONFIG_HEADERS
16908
CONFIG_LINKS = $CONFIG_LINKS
16909
CONFIG_COMMANDS = $CONFIG_COMMANDS
16912
on `(hostname || uname -n) 2>/dev/null | sed 1q`
16917
case $ac_config_files in *"
16918
"*) set x $ac_config_files; shift; ac_config_files=$*;;
16921
case $ac_config_headers in *"
16922
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16926
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16927
# Files that config.status was made for.
16928
config_files="$ac_config_files"
16929
config_headers="$ac_config_headers"
16930
config_commands="$ac_config_commands"
16934
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16936
\`$as_me' instantiates files and other configuration actions
16937
from templates according to the current configuration. Unless the files
16938
and actions are specified as TAGs, all are instantiated by default.
16940
Usage: $0 [OPTION]... [TAG]...
16942
-h, --help print this help, then exit
16943
-V, --version print version number and configuration settings, then exit
16944
--config print configuration, then exit
16945
-q, --quiet, --silent
16946
do not print progress messages
16947
-d, --debug don't remove temporary files
16948
--recheck update $as_me by reconfiguring in the same conditions
16949
--file=FILE[:TEMPLATE]
16950
instantiate the configuration file FILE
16951
--header=FILE[:TEMPLATE]
16952
instantiate the configuration header FILE
16954
Configuration files:
16957
Configuration headers:
16960
Configuration commands:
16963
Report bugs to <subunit-dev@lists.launchpad.net>."
16966
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16967
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16969
subunit config.status 0.0.7
16970
configured by $0, generated by GNU Autoconf 2.67,
16971
with options \\"\$ac_cs_config\\"
16973
Copyright (C) 2010 Free Software Foundation, Inc.
16974
This config.status script is free software; the Free Software Foundation
16975
gives unlimited permission to copy, distribute and modify it."
16982
test -n "\$AWK" || AWK=awk
16985
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16986
# The default lists apply if the user does not specify any file.
16992
ac_option=`expr "X$1" : 'X\([^=]*\)='`
16993
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16997
ac_option=`expr "X$1" : 'X\([^=]*\)='`
17009
# Handling of the options.
17010
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17012
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17013
$as_echo "$ac_cs_version"; exit ;;
17014
--config | --confi | --conf | --con | --co | --c )
17015
$as_echo "$ac_cs_config"; exit ;;
17016
--debug | --debu | --deb | --de | --d | -d )
17018
--file | --fil | --fi | --f )
17021
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17022
'') as_fn_error $? "missing file argument" ;;
17024
as_fn_append CONFIG_FILES " '$ac_optarg'"
17025
ac_need_defaults=false;;
17026
--header | --heade | --head | --hea )
17029
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17031
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17032
ac_need_defaults=false;;
17034
# Conflict between --help and --header
17035
as_fn_error $? "ambiguous option: \`$1'
17036
Try \`$0 --help' for more information.";;
17037
--help | --hel | -h )
17038
$as_echo "$ac_cs_usage"; exit ;;
17039
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
17040
| -silent | --silent | --silen | --sile | --sil | --si | --s)
17043
# This is an error.
17044
-*) as_fn_error $? "unrecognized option: \`$1'
17045
Try \`$0 --help' for more information." ;;
17047
*) as_fn_append ac_config_targets " $1"
17048
ac_need_defaults=false ;;
17054
ac_configure_extra_args=
17056
if $ac_cs_silent; then
17058
ac_configure_extra_args="$ac_configure_extra_args --silent"
17062
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17063
if \$ac_cs_recheck; then
17064
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17066
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17067
CONFIG_SHELL='$SHELL'
17068
export CONFIG_SHELL
17073
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17077
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17078
## Running $as_me. ##
17084
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17088
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17091
# The HP-UX ksh and POSIX shell print the target directory to stdout
17092
# if CDPATH is set.
17093
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17095
sed_quote_subst='$sed_quote_subst'
17096
double_quote_subst='$double_quote_subst'
17097
delay_variable_subst='$delay_variable_subst'
17098
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17099
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17100
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17101
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17102
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17103
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17104
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17105
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17106
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17107
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17108
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17109
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17110
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17111
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17112
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17113
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17114
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17115
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17116
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17117
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17118
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17119
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17120
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17121
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17122
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17123
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17124
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17125
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17126
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17127
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17128
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17129
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17130
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17131
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17132
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17133
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17134
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17135
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17136
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17137
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17138
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17139
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17140
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17141
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17142
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"`'
17143
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"`'
17144
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17145
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17146
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17147
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17148
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17149
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17150
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17151
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17152
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17153
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17154
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17155
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17156
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17157
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17158
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17159
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17160
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17161
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17162
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17163
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17164
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17165
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17166
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17167
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17168
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17169
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17170
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17171
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17172
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17173
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17174
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17175
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17176
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17177
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17178
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17179
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17180
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17181
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17182
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17183
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17184
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17185
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17186
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17187
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17188
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17189
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17190
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17191
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17192
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17193
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17194
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17195
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17196
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17197
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17198
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17199
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17200
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17201
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17202
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17203
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17204
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17205
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17206
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17207
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17208
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17209
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17210
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17211
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17212
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17213
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17214
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17215
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17216
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17217
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17218
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17219
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17220
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17221
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17222
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17223
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17224
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17225
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17226
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17227
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17228
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17229
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17230
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17231
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17232
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17233
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17234
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17235
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17236
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17237
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17238
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17239
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17240
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17241
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17242
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17243
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17244
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17245
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17246
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17247
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17248
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17249
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17250
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17251
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17252
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17253
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17254
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17255
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17256
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17257
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17258
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17259
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17260
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17261
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17262
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17263
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17264
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17265
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17266
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17267
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17268
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17271
LTCFLAGS='$LTCFLAGS'
17272
compiler='$compiler_DEFAULT'
17274
# Quote evaled strings.
17286
deplibs_check_method \
17295
lt_cv_sys_global_symbol_pipe \
17296
lt_cv_sys_global_symbol_to_cdecl \
17297
lt_cv_sys_global_symbol_to_c_name_address \
17298
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17301
lt_prog_compiler_no_builtin_flag \
17302
lt_prog_compiler_wl \
17303
lt_prog_compiler_pic \
17304
lt_prog_compiler_static \
17305
lt_cv_prog_compiler_c_o \
17313
export_dynamic_flag_spec \
17314
whole_archive_flag_spec \
17315
compiler_needs_object \
17317
allow_undefined_flag \
17318
no_undefined_flag \
17319
hardcode_libdir_flag_spec \
17320
hardcode_libdir_flag_spec_ld \
17321
hardcode_libdir_separator \
17326
variables_saved_for_relink \
17328
library_names_spec \
17333
compiler_lib_search_dirs \
17338
compiler_lib_search_path \
17341
lt_prog_compiler_no_builtin_flag_CXX \
17342
lt_prog_compiler_wl_CXX \
17343
lt_prog_compiler_pic_CXX \
17344
lt_prog_compiler_static_CXX \
17345
lt_cv_prog_compiler_c_o_CXX \
17346
export_dynamic_flag_spec_CXX \
17347
whole_archive_flag_spec_CXX \
17348
compiler_needs_object_CXX \
17350
allow_undefined_flag_CXX \
17351
no_undefined_flag_CXX \
17352
hardcode_libdir_flag_spec_CXX \
17353
hardcode_libdir_flag_spec_ld_CXX \
17354
hardcode_libdir_separator_CXX \
17355
fix_srcfile_path_CXX \
17356
exclude_expsyms_CXX \
17357
include_expsyms_CXX \
17358
file_list_spec_CXX \
17359
compiler_lib_search_dirs_CXX \
17360
predep_objects_CXX \
17361
postdep_objects_CXX \
17364
compiler_lib_search_path_CXX; do
17365
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17366
*[\\\\\\\`\\"\\\$]*)
17367
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17370
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17375
# Double-quote double-evaled strings.
17376
for var in reload_cmds \
17377
old_postinstall_cmds \
17378
old_postuninstall_cmds \
17380
extract_expsyms_cmds \
17381
old_archive_from_new_cmds \
17382
old_archive_from_expsyms_cmds \
17384
archive_expsym_cmds \
17386
module_expsym_cmds \
17387
export_symbols_cmds \
17390
postuninstall_cmds \
17392
sys_lib_search_path_spec \
17393
sys_lib_dlsearch_path_spec \
17394
old_archive_cmds_CXX \
17395
old_archive_from_new_cmds_CXX \
17396
old_archive_from_expsyms_cmds_CXX \
17398
archive_expsym_cmds_CXX \
17400
module_expsym_cmds_CXX \
17401
export_symbols_cmds_CXX \
17402
prelink_cmds_CXX; do
17403
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17404
*[\\\\\\\`\\"\\\$]*)
17405
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17408
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17413
# Fix-up fallback echo if it was mangled by the above quoting rules.
17415
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17419
ac_aux_dir='$ac_aux_dir'
17420
xsi_shell='$xsi_shell'
17421
lt_shell_append='$lt_shell_append'
17423
# See if we are running on zsh, and set the options which allow our
17424
# commands through without removal of \ escapes INIT.
17425
if test -n "\${ZSH_VERSION+set}" ; then
17426
setopt NO_GLOB_SUBST
17432
TIMESTAMP='$TIMESTAMP'
17443
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17445
# Handling of arguments.
17446
for ac_config_target in $ac_config_targets
17448
case $ac_config_target in
17449
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17450
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17451
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17452
"libsubunit.pc") CONFIG_FILES="$CONFIG_FILES libsubunit.pc" ;;
17453
"libcppunit_subunit.pc") CONFIG_FILES="$CONFIG_FILES libcppunit_subunit.pc" ;;
17454
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17455
"perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/Makefile.PL" ;;
17457
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17462
# If the user did not use the arguments to specify the items to instantiate,
17463
# then the envvar interface is used. Set only those that are not.
17464
# We use the long form for the default assignment because of an extremely
17465
# bizarre bug on SunOS 4.1.3.
17466
if $ac_need_defaults; then
17467
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17468
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17469
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17472
# Have a temporary directory for convenience. Make it in the build tree
17473
# simply because there is no reason against having it here, and in addition,
17474
# creating and moving files from /tmp can sometimes cause problems.
17475
# Hook for its removal unless debugging.
17476
# Note that there is a small window in which the directory will not be cleaned:
17477
# after its creation but before its name has been assigned to `$tmp'.
17481
trap 'exit_status=$?
17482
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17484
trap 'as_fn_exit 1' 1 2 13 15
17486
# Create a (secure) tmp directory for tmp files.
17489
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17490
test -n "$tmp" && test -d "$tmp"
17493
tmp=./conf$$-$RANDOM
17494
(umask 077 && mkdir "$tmp")
17495
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17497
# Set up the scripts for CONFIG_FILES section.
17498
# No need to generate them if there are no CONFIG_FILES.
17499
# This happens for instance with `./config.status config.h'.
17500
if test -n "$CONFIG_FILES"; then
17503
ac_cr=`echo X | tr X '\015'`
17504
# On cygwin, bash can eat \r inside `` if the user requested igncr.
17505
# But we know of no other shell where ac_cr would be empty at this
17506
# point, so we can use a bashism as a fallback.
17507
if test "x$ac_cr" = x; then
17508
eval ac_cr=\$\'\\r\'
17510
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17511
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17514
ac_cs_awk_cr=$ac_cr
17517
echo 'BEGIN {' >"$tmp/subs1.awk" &&
17522
echo "cat >conf$$subs.awk <<_ACEOF" &&
17523
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17525
} >conf$$subs.sh ||
17526
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17527
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17529
for ac_last_try in false false false false false :; do
17530
. ./conf$$subs.sh ||
17531
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17533
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17534
if test $ac_delim_n = $ac_delim_num; then
17536
elif $ac_last_try; then
17537
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17539
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17542
rm -f conf$$subs.sh
17544
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17545
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17549
s/^/S["/; s/!.*/"]=/
17559
s/\(.\{148\}\)..*/\1/
17561
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17566
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17573
s/\(.\{148\}\)..*/\1/
17575
s/["\\]/\\&/g; s/^/"/; s/$/"/
17579
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17584
' <conf$$subs.awk | sed '
17589
' >>$CONFIG_STATUS || ac_write_fail=1
17590
rm -f conf$$subs.awk
17591
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17593
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17594
for (key in S) S_is_set[key] = 1
17600
nfields = split(line, field, "@")
17602
len = length(field[1])
17603
for (i = 2; i < nfields; i++) {
17605
keylen = length(key)
17606
if (S_is_set[key]) {
17608
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17609
len += length(value) + length(field[++i])
17620
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17621
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17622
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17625
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17626
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17629
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17630
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17631
# trailing colons and then remove the whole line if VPATH becomes empty
17632
# (actually we leave an empty line to preserve line numbers).
17633
if test "x$srcdir" = x.; then
17634
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17652
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17653
fi # test -n "$CONFIG_FILES"
17655
# Set up the scripts for CONFIG_HEADERS section.
17656
# No need to generate them if there are no CONFIG_HEADERS.
17657
# This happens for instance with `./config.status Makefile'.
17658
if test -n "$CONFIG_HEADERS"; then
17659
cat >"$tmp/defines.awk" <<\_ACAWK ||
17663
# Transform confdefs.h into an awk script `defines.awk', embedded as
17664
# here-document in config.status, that substitutes the proper values into
17665
# config.h.in to produce config.h.
17667
# Create a delimiter string that does not exist in confdefs.h, to ease
17668
# handling of long lines.
17670
for ac_last_try in false false :; do
17671
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17672
if test -z "$ac_t"; then
17674
elif $ac_last_try; then
17675
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17677
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17681
# For the awk script, D is an array of macro values keyed by name,
17682
# likewise P contains macro parameters if any. Preserve backslash
17683
# newline sequences.
17685
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17687
s/.\{148\}/&'"$ac_delim"'/g
17690
s/^[ ]*#[ ]*define[ ][ ]*/ /
17697
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17699
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17703
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17704
D["\1"]=" \3\\\\\\n"\\/p
17706
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17711
s/.\{148\}/&'"$ac_delim"'/g
17716
s/["\\]/\\&/g; s/^/"/; s/$/"/p
17719
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17721
' <confdefs.h | sed '
17722
s/'"$ac_delim"'/"\\\
17723
"/g' >>$CONFIG_STATUS || ac_write_fail=1
17725
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17726
for (key in D) D_is_set[key] = 1
17729
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17731
split(line, arg, " ")
17732
if (arg[1] == "#") {
17736
defundef = substr(arg[1], 2)
17739
split(mac1, mac2, "(") #)
17741
prefix = substr(line, 1, index(line, defundef) - 1)
17742
if (D_is_set[macro]) {
17743
# Preserve the white space surrounding the "#".
17744
print prefix "define", macro P[macro] D[macro]
17747
# Replace #undef with comments. This is necessary, for example,
17748
# in the case of _POSIX_SOURCE, which is predefined and required
17749
# on some systems where configure will not decide to define it.
17750
if (defundef == "undef") {
17751
print "/*", prefix defundef, macro, "*/"
17759
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17760
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17761
fi # test -n "$CONFIG_HEADERS"
17764
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17769
:[FHLC]) ac_mode=$ac_tag; continue;;
17771
case $ac_mode$ac_tag in
17773
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17774
:[FH]-) ac_tag=-:-;;
17775
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17792
-) ac_f="$tmp/stdin";;
17793
*) # Look for the file first in the build tree, then in the source tree
17794
# (if the path is not absolute). The absolute path cannot be DOS-style,
17795
# because $ac_f cannot contain `:'.
17799
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17801
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17803
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17804
as_fn_append ac_file_inputs " '$ac_f'"
17807
# Let's still pretend it is `configure' which instantiates (i.e., don't
17808
# use $as_me), people would be surprised to read:
17809
# /* config.h. Generated by config.status. */
17810
configure_input='Generated from '`
17811
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17813
if test x"$ac_file" != x-; then
17814
configure_input="$ac_file. $configure_input"
17815
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17816
$as_echo "$as_me: creating $ac_file" >&6;}
17818
# Neutralize special characters interpreted by sed in replacement strings.
17819
case $configure_input in #(
17820
*\&* | *\|* | *\\* )
17821
ac_sed_conf_input=`$as_echo "$configure_input" |
17822
sed 's/[\\\\&|]/\\\\&/g'`;; #(
17823
*) ac_sed_conf_input=$configure_input;;
17827
*:-:* | *:-) cat >"$tmp/stdin" \
17828
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17833
ac_dir=`$as_dirname -- "$ac_file" ||
17834
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17835
X"$ac_file" : 'X\(//\)[^/]' \| \
17836
X"$ac_file" : 'X\(//\)$' \| \
17837
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17838
$as_echo X"$ac_file" |
17839
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17843
/^X\(\/\/\)[^/].*/{
17856
as_dir="$ac_dir"; as_fn_mkdir_p
17860
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17862
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17863
# A ".." for each directory in $ac_dir_suffix.
17864
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17865
case $ac_top_builddir_sub in
17866
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17867
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17870
ac_abs_top_builddir=$ac_pwd
17871
ac_abs_builddir=$ac_pwd$ac_dir_suffix
17872
# for backward compatibility:
17873
ac_top_builddir=$ac_top_build_prefix
17876
.) # We are building in place.
17878
ac_top_srcdir=$ac_top_builddir_sub
17879
ac_abs_top_srcdir=$ac_pwd ;;
17880
[\\/]* | ?:[\\/]* ) # Absolute name.
17881
ac_srcdir=$srcdir$ac_dir_suffix;
17882
ac_top_srcdir=$srcdir
17883
ac_abs_top_srcdir=$srcdir ;;
17884
*) # Relative name.
17885
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17886
ac_top_srcdir=$ac_top_build_prefix$srcdir
17887
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17889
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17899
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17900
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17902
ac_MKDIR_P=$MKDIR_P
17904
[\\/$]* | ?:[\\/]* ) ;;
17905
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17909
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17910
# If the template does not know about datarootdir, expand it.
17911
# FIXME: This hack should be removed a few years after 2.60.
17912
ac_datarootdir_hack=; ac_datarootdir_seen=
17923
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17924
*datarootdir*) ac_datarootdir_seen=yes;;
17925
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17926
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17927
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17929
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17930
ac_datarootdir_hack='
17931
s&@datadir@&$datadir&g
17932
s&@docdir@&$docdir&g
17933
s&@infodir@&$infodir&g
17934
s&@localedir@&$localedir&g
17935
s&@mandir@&$mandir&g
17936
s&\\\${datarootdir}&$datarootdir&g' ;;
17940
# Neutralize VPATH when `$srcdir' = `.'.
17941
# Shell code in configure.ac might set extrasub.
17942
# FIXME: do we really want to maintain this feature?
17943
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17944
ac_sed_extra="$ac_vpsub
17947
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17949
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17950
s|@configure_input@|$ac_sed_conf_input|;t t
17951
s&@top_builddir@&$ac_top_builddir_sub&;t t
17952
s&@top_build_prefix@&$ac_top_build_prefix&;t t
17953
s&@srcdir@&$ac_srcdir&;t t
17954
s&@abs_srcdir@&$ac_abs_srcdir&;t t
17955
s&@top_srcdir@&$ac_top_srcdir&;t t
17956
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17957
s&@builddir@&$ac_builddir&;t t
17958
s&@abs_builddir@&$ac_abs_builddir&;t t
17959
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17960
s&@INSTALL@&$ac_INSTALL&;t t
17961
s&@MKDIR_P@&$ac_MKDIR_P&;t t
17962
$ac_datarootdir_hack
17964
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17965
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17967
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17968
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17969
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17970
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17971
which seems to be undefined. Please make sure it is defined" >&5
17972
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17973
which seems to be undefined. Please make sure it is defined" >&2;}
17977
-) cat "$tmp/out" && rm -f "$tmp/out";;
17978
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17980
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17986
if test x"$ac_file" != x-; then
17988
$as_echo "/* $configure_input */" \
17989
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17990
} >"$tmp/config.h" \
17991
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17992
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17993
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17994
$as_echo "$as_me: $ac_file is unchanged" >&6;}
17997
mv "$tmp/config.h" "$ac_file" \
17998
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18001
$as_echo "/* $configure_input */" \
18002
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18003
|| as_fn_error $? "could not create -" "$LINENO" 5
18005
# Compute "$ac_file"'s index in $config_headers.
18008
for _am_header in $config_headers :; do
18009
case $_am_header in
18010
$_am_arg | $_am_arg:* )
18013
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
18016
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18017
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18018
X"$_am_arg" : 'X\(//\)[^/]' \| \
18019
X"$_am_arg" : 'X\(//\)$' \| \
18020
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18021
$as_echo X"$_am_arg" |
18022
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18026
/^X\(\/\/\)[^/].*/{
18038
s/.*/./; q'`/stamp-h$_am_stamp_count
18041
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18042
$as_echo "$as_me: executing $ac_file commands" >&6;}
18047
case $ac_file$ac_mode in
18048
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18049
# Autoconf 2.62 quotes --file arguments for eval, but not when files
18050
# are listed without --file. Let's play safe and only enable the eval
18051
# if we detect the quoting.
18052
case $CONFIG_FILES in
18053
*\'*) eval set x "$CONFIG_FILES" ;;
18054
*) set x $CONFIG_FILES ;;
18059
# Strip MF so we end up with the name of the file.
18060
mf=`echo "$mf" | sed -e 's/:.*$//'`
18061
# Check whether this is an Automake generated Makefile or not.
18062
# We used to match only the files named `Makefile.in', but
18063
# some people rename them; so instead we look at the file content.
18064
# Grep'ing the first line is not enough: some people post-process
18065
# each Makefile.in and add a new line on top of each file to say so.
18066
# Grep'ing the whole file is not good either: AIX grep has a line
18067
# limit of 2048, but all sed's we know have understand at least 4000.
18068
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18069
dirpart=`$as_dirname -- "$mf" ||
18070
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18071
X"$mf" : 'X\(//\)[^/]' \| \
18072
X"$mf" : 'X\(//\)$' \| \
18073
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18075
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18079
/^X\(\/\/\)[^/].*/{
18095
# Extract the definition of DEPDIR, am__include, and am__quote
18096
# from the Makefile without running `make'.
18097
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18098
test -z "$DEPDIR" && continue
18099
am__include=`sed -n 's/^am__include = //p' < "$mf"`
18100
test -z "am__include" && continue
18101
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18102
# When using ansi2knr, U may be empty or an underscore; expand it
18103
U=`sed -n 's/^U = //p' < "$mf"`
18104
# Find all dependency output files, they are included files with
18105
# $(DEPDIR) in their names. We invoke sed twice because it is the
18106
# simplest approach to changing $(DEPDIR) to its actual value in the
18108
for file in `sed -n "
18109
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18110
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18111
# Make sure the directory exists.
18112
test -f "$dirpart/$file" && continue
18113
fdir=`$as_dirname -- "$file" ||
18114
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18115
X"$file" : 'X\(//\)[^/]' \| \
18116
X"$file" : 'X\(//\)$' \| \
18117
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18118
$as_echo X"$file" |
18119
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18123
/^X\(\/\/\)[^/].*/{
18136
as_dir=$dirpart/$fdir; as_fn_mkdir_p
18137
# echo "creating $dirpart/$file"
18138
echo '# dummy' > "$dirpart/$file"
18145
# See if we are running on zsh, and set the options which allow our
18146
# commands through without removal of \ escapes.
18147
if test -n "${ZSH_VERSION+set}" ; then
18148
setopt NO_GLOB_SUBST
18151
cfgfile="${ofile}T"
18152
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18155
cat <<_LT_EOF >> "$cfgfile"
18158
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18159
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18160
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18161
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18163
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18164
# 2006, 2007, 2008 Free Software Foundation, Inc.
18165
# Written by Gordon Matzigkeit, 1996
18167
# This file is part of GNU Libtool.
18169
# GNU Libtool is free software; you can redistribute it and/or
18170
# modify it under the terms of the GNU General Public License as
18171
# published by the Free Software Foundation; either version 2 of
18172
# the License, or (at your option) any later version.
18174
# As a special exception to the GNU General Public License,
18175
# if you distribute this file as part of a program or library that
18176
# is built using GNU Libtool, you may include this file under the
18177
# same distribution terms that you use for the rest of that program.
18179
# GNU Libtool is distributed in the hope that it will be useful,
18180
# but WITHOUT ANY WARRANTY; without even the implied warranty of
18181
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18182
# GNU General Public License for more details.
18184
# You should have received a copy of the GNU General Public License
18185
# along with GNU Libtool; see the file COPYING. If not, a copy
18186
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18187
# obtained by writing to the Free Software Foundation, Inc.,
18188
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18191
# The names of the tagged configurations supported by this script.
18192
available_tags="CXX "
18194
# ### BEGIN LIBTOOL CONFIG
18196
# Which release of libtool.m4 was used?
18197
macro_version=$macro_version
18198
macro_revision=$macro_revision
18200
# Whether or not to build shared libraries.
18201
build_libtool_libs=$enable_shared
18203
# Whether or not to build static libraries.
18204
build_old_libs=$enable_static
18206
# What type of objects to build.
18209
# Whether or not to optimize for fast installation.
18210
fast_install=$enable_fast_install
18213
host_alias=$host_alias
18217
# The build system.
18218
build_alias=$build_alias
18222
# A sed program that does not truncate output.
18225
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18226
Xsed="\$SED -e 1s/^X//"
18228
# A grep program that handles long lines.
18234
# A literal string matcher.
18237
# A BSD- or MS-compatible name lister.
18240
# Whether we need soft or hard links.
18243
# What is the maximum length of a command?
18244
max_cmd_len=$max_cmd_len
18246
# Object file suffix (normally "o").
18249
# Executable file suffix (normally "").
18252
# whether the shell understands "unset".
18255
# turn spaces into newlines.
18258
# turn newlines into spaces.
18261
# How to create reloadable object files.
18262
reload_flag=$lt_reload_flag
18263
reload_cmds=$lt_reload_cmds
18265
# An object symbol dumper.
18266
OBJDUMP=$lt_OBJDUMP
18268
# Method to check whether dependent libraries are shared objects.
18269
deplibs_check_method=$lt_deplibs_check_method
18271
# Command to use when deplibs_check_method == "file_magic".
18272
file_magic_cmd=$lt_file_magic_cmd
18276
AR_FLAGS=$lt_AR_FLAGS
18278
# A symbol stripping program.
18281
# Commands used to install an old-style archive.
18283
old_postinstall_cmds=$lt_old_postinstall_cmds
18284
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18289
# LTCC compiler flags.
18290
LTCFLAGS=$lt_CFLAGS
18292
# Take the output of nm and produce a listing of raw symbols and C names.
18293
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18295
# Transform the output of nm in a proper C declaration.
18296
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18298
# Transform the output of nm in a C name address pair.
18299
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18301
# Transform the output of nm in a C name address pair when lib prefix is needed.
18302
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18304
# The name of the directory that contains temporary libtool files.
18307
# Shell to use when invoking shell scripts.
18310
# An echo program that does not interpret backslashes.
18313
# Used to examine libraries when file_magic_cmd begins with "file".
18314
MAGIC_CMD=$MAGIC_CMD
18316
# Must we lock files when doing compilation?
18317
need_locks=$lt_need_locks
18319
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18320
DSYMUTIL=$lt_DSYMUTIL
18322
# Tool to change global to local symbols on Mac OS X.
18325
# Tool to manipulate fat objects and archives on Mac OS X.
18328
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18331
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18332
OTOOL64=$lt_OTOOL64
18334
# Old archive suffix (normally "a").
18337
# Shared library suffix (normally ".so").
18338
shrext_cmds=$lt_shrext_cmds
18340
# The commands to extract the exported symbol list from a shared archive.
18341
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18343
# Variables whose values should be saved in libtool wrapper scripts and
18344
# restored at link time.
18345
variables_saved_for_relink=$lt_variables_saved_for_relink
18347
# Do we need the "lib" prefix for modules?
18348
need_lib_prefix=$need_lib_prefix
18350
# Do we need a version for libraries?
18351
need_version=$need_version
18353
# Library versioning type.
18354
version_type=$version_type
18356
# Shared library runtime path variable.
18357
runpath_var=$runpath_var
18359
# Shared library path variable.
18360
shlibpath_var=$shlibpath_var
18362
# Is shlibpath searched before the hard-coded library search path?
18363
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18365
# Format of library name prefix.
18366
libname_spec=$lt_libname_spec
18368
# List of archive names. First name is the real one, the rest are links.
18369
# The last name is the one that the linker finds with -lNAME
18370
library_names_spec=$lt_library_names_spec
18372
# The coded name of the library, if different from the real name.
18373
soname_spec=$lt_soname_spec
18375
# Command to use after installation of a shared archive.
18376
postinstall_cmds=$lt_postinstall_cmds
18378
# Command to use after uninstallation of a shared archive.
18379
postuninstall_cmds=$lt_postuninstall_cmds
18381
# Commands used to finish a libtool library installation in a directory.
18382
finish_cmds=$lt_finish_cmds
18384
# As "finish_cmds", except a single script fragment to be evaled but
18386
finish_eval=$lt_finish_eval
18388
# Whether we should hardcode library paths into libraries.
18389
hardcode_into_libs=$hardcode_into_libs
18391
# Compile-time system search path for libraries.
18392
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18394
# Run-time system search path for libraries.
18395
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18397
# Whether dlopen is supported.
18398
dlopen_support=$enable_dlopen
18400
# Whether dlopen of programs is supported.
18401
dlopen_self=$enable_dlopen_self
18403
# Whether dlopen of statically linked programs is supported.
18404
dlopen_self_static=$enable_dlopen_self_static
18406
# Commands to strip libraries.
18407
old_striplib=$lt_old_striplib
18408
striplib=$lt_striplib
18411
# The linker used to build libraries.
18414
# Commands used to build an old-style archive.
18415
old_archive_cmds=$lt_old_archive_cmds
18417
# A language specific compiler.
18420
# Is the compiler the GNU compiler?
18423
# Compiler flag to turn off builtin functions.
18424
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18426
# How to pass a linker flag through the compiler.
18427
wl=$lt_lt_prog_compiler_wl
18429
# Additional compiler flags for building library objects.
18430
pic_flag=$lt_lt_prog_compiler_pic
18432
# Compiler flag to prevent dynamic linking.
18433
link_static_flag=$lt_lt_prog_compiler_static
18435
# Does compiler simultaneously support -c and -o options?
18436
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18438
# Whether or not to add -lc for building shared libraries.
18439
build_libtool_need_lc=$archive_cmds_need_lc
18441
# Whether or not to disallow shared libs when runtime libs are static.
18442
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18444
# Compiler flag to allow reflexive dlopens.
18445
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18447
# Compiler flag to generate shared objects directly from archives.
18448
whole_archive_flag_spec=$lt_whole_archive_flag_spec
18450
# Whether the compiler copes with passing no objects directly.
18451
compiler_needs_object=$lt_compiler_needs_object
18453
# Create an old-style archive from a shared archive.
18454
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18456
# Create a temporary old-style archive to link instead of a shared archive.
18457
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18459
# Commands used to build a shared archive.
18460
archive_cmds=$lt_archive_cmds
18461
archive_expsym_cmds=$lt_archive_expsym_cmds
18463
# Commands used to build a loadable module if different from building
18464
# a shared archive.
18465
module_cmds=$lt_module_cmds
18466
module_expsym_cmds=$lt_module_expsym_cmds
18468
# Whether we are building with GNU ld or not.
18469
with_gnu_ld=$lt_with_gnu_ld
18471
# Flag that allows shared libraries with undefined symbols to be built.
18472
allow_undefined_flag=$lt_allow_undefined_flag
18474
# Flag that enforces no undefined symbols.
18475
no_undefined_flag=$lt_no_undefined_flag
18477
# Flag to hardcode \$libdir into a binary during linking.
18478
# This must work even if \$libdir does not exist
18479
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18481
# If ld is used when linking, flag to hardcode \$libdir into a binary
18482
# during linking. This must work even if \$libdir does not exist.
18483
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18485
# Whether we need a single "-rpath" flag with a separated argument.
18486
hardcode_libdir_separator=$lt_hardcode_libdir_separator
18488
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18489
# DIR into the resulting binary.
18490
hardcode_direct=$hardcode_direct
18492
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18493
# DIR into the resulting binary and the resulting library dependency is
18494
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18495
# library is relocated.
18496
hardcode_direct_absolute=$hardcode_direct_absolute
18498
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18499
# into the resulting binary.
18500
hardcode_minus_L=$hardcode_minus_L
18502
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18503
# into the resulting binary.
18504
hardcode_shlibpath_var=$hardcode_shlibpath_var
18506
# Set to "yes" if building a shared library automatically hardcodes DIR
18507
# into the library and all subsequent libraries and executables linked
18509
hardcode_automatic=$hardcode_automatic
18511
# Set to yes if linker adds runtime paths of dependent libraries
18512
# to runtime path list.
18513
inherit_rpath=$inherit_rpath
18515
# Whether libtool must link a program against all its dependency libraries.
18516
link_all_deplibs=$link_all_deplibs
18518
# Fix the shell variable \$srcfile for the compiler.
18519
fix_srcfile_path=$lt_fix_srcfile_path
18521
# Set to "yes" if exported symbols are required.
18522
always_export_symbols=$always_export_symbols
18524
# The commands to list exported symbols.
18525
export_symbols_cmds=$lt_export_symbols_cmds
18527
# Symbols that should not be listed in the preloaded symbols.
18528
exclude_expsyms=$lt_exclude_expsyms
18530
# Symbols that must always be exported.
18531
include_expsyms=$lt_include_expsyms
18533
# Commands necessary for linking programs (against libraries) with templates.
18534
prelink_cmds=$lt_prelink_cmds
18536
# Specify filename containing input files.
18537
file_list_spec=$lt_file_list_spec
18539
# How to hardcode a shared library path into an executable.
18540
hardcode_action=$hardcode_action
18542
# The directories searched by this compiler when creating a shared library.
18543
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18545
# Dependencies to place before and after the objects being linked to
18546
# create a shared library.
18547
predep_objects=$lt_predep_objects
18548
postdep_objects=$lt_postdep_objects
18549
predeps=$lt_predeps
18550
postdeps=$lt_postdeps
18552
# The library search path used internally by the compiler when linking
18553
# a shared library.
18554
compiler_lib_search_path=$lt_compiler_lib_search_path
18556
# ### END LIBTOOL CONFIG
18562
cat <<\_LT_EOF >> "$cfgfile"
18563
# AIX sometimes has problems with the GCC collect2 program. For some
18564
# reason, if we set the COLLECT_NAMES environment variable, the problems
18565
# vanish in a puff of smoke.
18566
if test "X${COLLECT_NAMES+set}" != Xset; then
18568
export COLLECT_NAMES
18575
ltmain="$ac_aux_dir/ltmain.sh"
18578
# We use sed instead of cat because bash on DJGPP gets confused if
18579
# if finds mixed CR/LF and LF-only lines. Since sed operates in
18580
# text mode, it properly converts lines to CR/LF. This bash problem
18581
# is reportedly fixed, but why not run on old versions too?
18582
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18583
|| (rm -f "$cfgfile"; exit 1)
18587
cat << \_LT_EOF >> "$cfgfile"
18589
# func_dirname file append nondir_replacement
18590
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18591
# otherwise set result to NONDIR_REPLACEMENT.
18595
*/*) func_dirname_result="${1%/*}${2}" ;;
18596
* ) func_dirname_result="${3}" ;;
18600
# func_basename file
18603
func_basename_result="${1##*/}"
18606
# func_dirname_and_basename file append nondir_replacement
18607
# perform func_basename and func_dirname in a single function
18609
# dirname: Compute the dirname of FILE. If nonempty,
18610
# add APPEND to the result, otherwise set result
18611
# to NONDIR_REPLACEMENT.
18612
# value returned in "$func_dirname_result"
18613
# basename: Compute filename of FILE.
18614
# value retuned in "$func_basename_result"
18615
# Implementation must be kept synchronized with func_dirname
18616
# and func_basename. For efficiency, we do not delegate to
18617
# those functions but instead duplicate the functionality here.
18618
func_dirname_and_basename ()
18621
*/*) func_dirname_result="${1%/*}${2}" ;;
18622
* ) func_dirname_result="${3}" ;;
18624
func_basename_result="${1##*/}"
18627
# func_stripname prefix suffix name
18628
# strip PREFIX and SUFFIX off of NAME.
18629
# PREFIX and SUFFIX must not contain globbing or regex special
18630
# characters, hashes, percent signs, but SUFFIX may contain a leading
18631
# dot (in which case that matches only a dot).
18634
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18635
# positional parameters, so assign one to ordinary parameter first.
18636
func_stripname_result=${3}
18637
func_stripname_result=${func_stripname_result#"${1}"}
18638
func_stripname_result=${func_stripname_result%"${2}"}
18644
func_opt_split_opt=${1%%=*}
18645
func_opt_split_arg=${1#*=}
18652
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18653
*) func_lo2o_result=${1} ;;
18657
# func_xform libobj-or-source
18660
func_xform_result=${1%.*}.lo
18663
# func_arith arithmetic-term...
18666
func_arith_result=$(( $* ))
18670
# STRING may not start with a hyphen.
18673
func_len_result=${#1}
18678
*) # Bourne compatible functions.
18679
cat << \_LT_EOF >> "$cfgfile"
18681
# func_dirname file append nondir_replacement
18682
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18683
# otherwise set result to NONDIR_REPLACEMENT.
18686
# Extract subdirectory from the argument.
18687
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18688
if test "X$func_dirname_result" = "X${1}"; then
18689
func_dirname_result="${3}"
18691
func_dirname_result="$func_dirname_result${2}"
18695
# func_basename file
18698
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18702
# func_stripname prefix suffix name
18703
# strip PREFIX and SUFFIX off of NAME.
18704
# PREFIX and SUFFIX must not contain globbing or regex special
18705
# characters, hashes, percent signs, but SUFFIX may contain a leading
18706
# dot (in which case that matches only a dot).
18707
# func_strip_suffix prefix name
18711
.*) func_stripname_result=`$ECHO "X${3}" \
18712
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18713
*) func_stripname_result=`$ECHO "X${3}" \
18714
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18719
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18720
my_sed_long_arg='1s/^-[^=]*=//'
18725
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18726
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18732
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18735
# func_xform libobj-or-source
18738
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18741
# func_arith arithmetic-term...
18744
func_arith_result=`expr "$@"`
18748
# STRING may not start with a hyphen.
18751
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18757
case $lt_shell_append in
18759
cat << \_LT_EOF >> "$cfgfile"
18761
# func_append var value
18762
# Append VALUE to the end of shell variable VAR.
18770
cat << \_LT_EOF >> "$cfgfile"
18772
# func_append var value
18773
# Append VALUE to the end of shell variable VAR.
18784
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18785
|| (rm -f "$cfgfile"; exit 1)
18787
mv -f "$cfgfile" "$ofile" ||
18788
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18792
cat <<_LT_EOF >> "$ofile"
18794
# ### BEGIN LIBTOOL TAG CONFIG: CXX
18796
# The linker used to build libraries.
18799
# Commands used to build an old-style archive.
18800
old_archive_cmds=$lt_old_archive_cmds_CXX
18802
# A language specific compiler.
18803
CC=$lt_compiler_CXX
18805
# Is the compiler the GNU compiler?
18808
# Compiler flag to turn off builtin functions.
18809
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18811
# How to pass a linker flag through the compiler.
18812
wl=$lt_lt_prog_compiler_wl_CXX
18814
# Additional compiler flags for building library objects.
18815
pic_flag=$lt_lt_prog_compiler_pic_CXX
18817
# Compiler flag to prevent dynamic linking.
18818
link_static_flag=$lt_lt_prog_compiler_static_CXX
18820
# Does compiler simultaneously support -c and -o options?
18821
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18823
# Whether or not to add -lc for building shared libraries.
18824
build_libtool_need_lc=$archive_cmds_need_lc_CXX
18826
# Whether or not to disallow shared libs when runtime libs are static.
18827
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18829
# Compiler flag to allow reflexive dlopens.
18830
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18832
# Compiler flag to generate shared objects directly from archives.
18833
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18835
# Whether the compiler copes with passing no objects directly.
18836
compiler_needs_object=$lt_compiler_needs_object_CXX
18838
# Create an old-style archive from a shared archive.
18839
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18841
# Create a temporary old-style archive to link instead of a shared archive.
18842
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18844
# Commands used to build a shared archive.
18845
archive_cmds=$lt_archive_cmds_CXX
18846
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18848
# Commands used to build a loadable module if different from building
18849
# a shared archive.
18850
module_cmds=$lt_module_cmds_CXX
18851
module_expsym_cmds=$lt_module_expsym_cmds_CXX
18853
# Whether we are building with GNU ld or not.
18854
with_gnu_ld=$lt_with_gnu_ld_CXX
18856
# Flag that allows shared libraries with undefined symbols to be built.
18857
allow_undefined_flag=$lt_allow_undefined_flag_CXX
18859
# Flag that enforces no undefined symbols.
18860
no_undefined_flag=$lt_no_undefined_flag_CXX
18862
# Flag to hardcode \$libdir into a binary during linking.
18863
# This must work even if \$libdir does not exist
18864
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18866
# If ld is used when linking, flag to hardcode \$libdir into a binary
18867
# during linking. This must work even if \$libdir does not exist.
18868
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18870
# Whether we need a single "-rpath" flag with a separated argument.
18871
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18873
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18874
# DIR into the resulting binary.
18875
hardcode_direct=$hardcode_direct_CXX
18877
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18878
# DIR into the resulting binary and the resulting library dependency is
18879
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18880
# library is relocated.
18881
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18883
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18884
# into the resulting binary.
18885
hardcode_minus_L=$hardcode_minus_L_CXX
18887
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18888
# into the resulting binary.
18889
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18891
# Set to "yes" if building a shared library automatically hardcodes DIR
18892
# into the library and all subsequent libraries and executables linked
18894
hardcode_automatic=$hardcode_automatic_CXX
18896
# Set to yes if linker adds runtime paths of dependent libraries
18897
# to runtime path list.
18898
inherit_rpath=$inherit_rpath_CXX
18900
# Whether libtool must link a program against all its dependency libraries.
18901
link_all_deplibs=$link_all_deplibs_CXX
18903
# Fix the shell variable \$srcfile for the compiler.
18904
fix_srcfile_path=$lt_fix_srcfile_path_CXX
18906
# Set to "yes" if exported symbols are required.
18907
always_export_symbols=$always_export_symbols_CXX
18909
# The commands to list exported symbols.
18910
export_symbols_cmds=$lt_export_symbols_cmds_CXX
18912
# Symbols that should not be listed in the preloaded symbols.
18913
exclude_expsyms=$lt_exclude_expsyms_CXX
18915
# Symbols that must always be exported.
18916
include_expsyms=$lt_include_expsyms_CXX
18918
# Commands necessary for linking programs (against libraries) with templates.
18919
prelink_cmds=$lt_prelink_cmds_CXX
18921
# Specify filename containing input files.
18922
file_list_spec=$lt_file_list_spec_CXX
18924
# How to hardcode a shared library path into an executable.
18925
hardcode_action=$hardcode_action_CXX
18927
# The directories searched by this compiler when creating a shared library.
18928
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18930
# Dependencies to place before and after the objects being linked to
18931
# create a shared library.
18932
predep_objects=$lt_predep_objects_CXX
18933
postdep_objects=$lt_postdep_objects_CXX
18934
predeps=$lt_predeps_CXX
18935
postdeps=$lt_postdeps_CXX
18937
# The library search path used internally by the compiler when linking
18938
# a shared library.
18939
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18941
# ### END LIBTOOL TAG CONFIG: CXX
18952
ac_clean_files=$ac_clean_files_save
18954
test $ac_write_fail = 0 ||
18955
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18958
# configure is writing to config.log, and then calls config.status.
18959
# config.status does its own redirection, appending to config.log.
18960
# Unfortunately, on DOS this fails, as config.log is still kept open
18961
# by configure, so config.status won't be able to write to it; its
18962
# output is simply discarded. So we exec the FD to /dev/null,
18963
# effectively closing config.log, so it can be properly (re)opened and
18964
# appended to by config.status. When coming back to configure, we
18965
# need to make the FD available again.
18966
if test "$no_create" != yes; then
18968
ac_config_status_args=
18969
test "$silent" = yes &&
18970
ac_config_status_args="$ac_config_status_args --quiet"
18972
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18974
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
18975
# would make configure fail if this is the last instruction.
18976
$ac_cs_success || as_fn_exit 1
18978
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18979
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18980
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}