2
# From configure.ac Revision.
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated by GNU Autoconf 2.67 for sflphone 0.9.13.
6
# Report bugs to <sflphoneteam@savoirfairelinux.com>.
9
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14
# This configure script is free software; the Free Software Foundation
15
# gives unlimited permission to copy, distribute and modify it.
17
# Copyright (c) Savoir-Faire Linux 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
18
## -------------------- ##
19
## M4sh Initialization. ##
20
## -------------------- ##
22
# Be more Bourne compatible
23
DUALCASE=1; export DUALCASE # for MKS sh
24
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28
# is contrary to our usage. Disable this feature.
29
alias -g '${1+"$@"}'='"$@"'
32
case `(set -o) 2>/dev/null` in #(
44
# Printing a long string crashes Solaris 7 /usr/bin/printf.
45
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48
# Prefer a ksh shell builtin over an external printf program on Solaris,
49
# but without wasting forks for bash or zsh.
50
if test -z "$BASH_VERSION$ZSH_VERSION" \
51
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53
as_echo_n='print -rn --'
54
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60
as_echo_n='/usr/ucb/echo -n'
62
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67
expr "X$arg" : "X\\(.*\\)$as_nl";
68
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73
as_echo_n='sh -c $as_echo_n_body as_echo'
76
as_echo='sh -c $as_echo_body as_echo'
79
# The user is always right.
80
if test "${PATH_SEPARATOR+set}" != set; then
82
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90
# We need space, tab and new line, in precisely that order. Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
96
# Find who we are. Look in the path if we contain no directory separator.
98
*[\\/]* ) as_myself=$0 ;;
99
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103
test -z "$as_dir" && as_dir=.
104
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
115
if test ! -f "$as_myself"; then
116
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120
# Unset variables that we do not need and which cause bugs (e.g. in
121
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122
# suppresses any "Segmentation fault" message there. '((' could
123
# trigger a bug in pdksh 5.2.14.
124
for as_var in BASH_ENV ENV MAIL MAILPATH
125
do eval test x\${$as_var+set} = xset \
126
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141
if test "x$CONFIG_SHELL" = x; then
142
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146
# is contrary to our usage. Disable this feature.
147
alias -g '\${1+\"\$@\"}'='\"\$@\"'
150
case \`(set -o) 2>/dev/null\` in #(
158
as_required="as_fn_return () { (exit \$1); }
159
as_fn_success () { as_fn_return 0; }
160
as_fn_failure () { as_fn_return 1; }
161
as_fn_ret_success () { return 0; }
162
as_fn_ret_failure () { return 1; }
165
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172
exitcode=1; echo positional parameters were not saved.
174
test x\$exitcode = x0 || exit 1"
175
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179
test \$(( 1 + 1 )) = 2 || exit 1"
180
if (eval "$as_required") 2>/dev/null; then :
185
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193
test -z "$as_dir" && as_dir=.
197
for as_base in sh bash ksh sh5; do
198
# Try only shells that exist, to save several forks.
199
as_shell=$as_dir/$as_base
200
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202
CONFIG_SHELL=$as_shell as_have_required=yes
203
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213
CONFIG_SHELL=$SHELL as_have_required=yes
218
if test "x$CONFIG_SHELL" != x; then :
219
# We cannot yet assume a decent shell, so we have to provide a
220
# neutralization value for shells without unset; and this also
221
# works around shells that cannot unset nonexistent variables.
224
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
229
if test x$as_have_required = xno; then :
230
$as_echo "$0: This script requires a shell more modern than all"
231
$as_echo "$0: the shells that I found on your system."
232
if test x${ZSH_VERSION+set} = xset ; then
233
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
234
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
236
$as_echo "$0: Please tell bug-autoconf@gnu.org and
237
$0: sflphoneteam@savoirfairelinux.com about your system,
238
$0: including any error possibly output before this
239
$0: message. Then install a modern shell, or manually run
240
$0: the script under such a shell if you do have one."
246
SHELL=${CONFIG_SHELL-/bin/sh}
248
# Unset more variables known to interfere with behavior of common tools.
249
CLICOLOR_FORCE= GREP_OPTIONS=
250
unset CLICOLOR_FORCE GREP_OPTIONS
252
## --------------------- ##
253
## M4sh Shell Functions. ##
254
## --------------------- ##
257
# Portably unset VAR.
260
{ eval $1=; unset $1;}
264
# as_fn_set_status STATUS
265
# -----------------------
266
# Set $? to STATUS, without forking.
274
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284
# Create "$as_dir" as a directory, including parents if necessary.
289
-*) as_dir=./$as_dir;;
291
test -d "$as_dir" || eval $as_mkdir_p || {
295
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298
as_dirs="'$as_qdir' $as_dirs"
299
as_dir=`$as_dirname -- "$as_dir" ||
300
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301
X"$as_dir" : 'X\(//\)[^/]' \| \
302
X"$as_dir" : 'X\(//\)$' \| \
303
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304
$as_echo X"$as_dir" |
305
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322
test -d "$as_dir" && break
324
test -z "$as_dirs" || eval "mkdir $as_dirs"
325
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
329
# as_fn_append VAR VALUE
330
# ----------------------
331
# Append the text in VALUE to the end of the definition contained in VAR. Take
332
# advantage of any shell optimizations that allow amortized linear growth over
333
# repeated appends, instead of the typical quadratic growth present in naive
335
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336
eval 'as_fn_append ()
349
# Perform arithmetic evaluation on the ARGs, and store the result in the
350
# global $as_val. Take advantage of shells that can avoid forks. The arguments
351
# must be portable across $(()) and expr.
352
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360
as_val=`expr "$@" || test $? -eq 1`
365
# as_fn_error STATUS ERROR [LINENO LOG_FD]
366
# ----------------------------------------
367
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369
# script with STATUS, using 1 if that was 0.
372
as_status=$1; test $as_status -eq 0 && as_status=1
374
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
377
$as_echo "$as_me: error: $2" >&2
378
as_fn_exit $as_status
381
if expr a : '\(a\)' >/dev/null 2>&1 &&
382
test "X`expr 00001 : '.*\(...\)'`" = X001; then
388
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400
as_me=`$as_basename -- "$0" ||
401
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402
X"$0" : 'X\(//\)$' \| \
403
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405
sed '/^.*\/\([^/][^/]*\)\/*$/{
419
# Avoid depending upon Character Ranges.
420
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423
as_cr_digits='0123456789'
424
as_cr_alnum=$as_cr_Letters$as_cr_digits
427
as_lineno_1=$LINENO as_lineno_1a=$LINENO
428
as_lineno_2=$LINENO as_lineno_2a=$LINENO
429
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447
chmod +x "$as_me.lineno" ||
448
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450
# Don't try to exec as it changes $[0], causing all sort of problems
451
# (the dirname of $[0] is not the place where we might find the
452
# original and so on. Autoconf is especially sensitive to this).
454
# Exit status is that of the last command.
458
ECHO_C= ECHO_N= ECHO_T=
459
case `echo -n x` in #(((((
461
case `echo 'xy\c'` in
462
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
464
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471
rm -f conf$$ conf$$.exe conf$$.file
472
if test -d conf$$.dir; then
473
rm -f conf$$.dir/conf$$.file
476
mkdir conf$$.dir 2>/dev/null
478
if (echo >conf$$.file) 2>/dev/null; then
479
if ln -s conf$$.file conf$$ 2>/dev/null; then
481
# ... but there are two gotchas:
482
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484
# In both cases, we have to default to `cp -p'.
485
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487
elif ln conf$$.file conf$$ 2>/dev/null; then
495
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496
rmdir conf$$.dir 2>/dev/null
498
if mkdir -p . 2>/dev/null; then
499
as_mkdir_p='mkdir -p "$as_dir"'
501
test -d ./-p && rmdir ./-p
505
if test -x / >/dev/null 2>&1; then
508
if ls -dL / >/dev/null 2>&1; then
515
if test -d "$1"; then
521
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522
???[sx]*):;;*)false;;esac;fi
526
as_executable_p=$as_test_x
528
# Sed expression to map a string onto a valid CPP name.
529
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
# Sed expression to map a string onto a valid variable name.
532
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
# Check that we are running under the correct shell.
537
SHELL=${CONFIG_SHELL-/bin/sh}
541
# Remove one level of quotation (which was required for Make).
542
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
547
if test "X$1" = X--no-reexec; then
548
# Discard the --no-reexec flag, and continue.
550
elif test "X$1" = X--fallback-echo; then
551
# Avoid inline document here, it may be left over
553
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
554
# Yippee, $ECHO works!
557
# Restart under the correct shell.
558
exec $SHELL "$0" --no-reexec ${1+"$@"}
561
if test "X$1" = X--fallback-echo; then
562
# used as fallback echo
570
# The HP-UX ksh and POSIX shell print the target directory to stdout
572
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
574
if test -z "$lt_ECHO"; then
575
if test "X${echo_test_string+set}" != Xset; then
576
# find a string as large as possible, as long as the shell can cope with it
577
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
578
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
579
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
580
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
587
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
588
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
589
test "X$echo_testing_string" = "X$echo_test_string"; then
592
# The Solaris, AIX, and Digital Unix default echo programs unquote
593
# backslashes. This makes it impossible to quote backslashes using
594
# echo "$something" | sed 's/\\/\\\\/g'
596
# So, first we look for a working echo in the user's PATH.
598
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
599
for dir in $PATH /usr/ucb; do
601
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
602
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
603
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
604
test "X$echo_testing_string" = "X$echo_test_string"; then
611
if test "X$ECHO" = Xecho; then
612
# We didn't find a better echo, so look for alternatives.
613
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
614
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
615
test "X$echo_testing_string" = "X$echo_test_string"; then
616
# This shell has a builtin print -r that does the trick.
618
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
619
test "X$CONFIG_SHELL" != X/bin/ksh; then
620
# If we have ksh, try running configure again with it.
621
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
622
export ORIGINAL_CONFIG_SHELL
623
CONFIG_SHELL=/bin/ksh
625
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
630
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
631
test "X$echo_testing_string" = "X$echo_test_string"; then
634
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
635
test "X$echo_testing_string" = 'X\t' &&
636
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
637
test "X$echo_testing_string" = "X$echo_test_string"; then
638
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
640
SHELL="$CONFIG_SHELL"
642
ECHO="$CONFIG_SHELL $0 --fallback-echo"
643
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
644
test "X$echo_testing_string" = 'X\t' &&
645
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
646
test "X$echo_testing_string" = "X$echo_test_string"; then
647
ECHO="$CONFIG_SHELL $0 --fallback-echo"
649
# maybe with a smaller string...
652
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
653
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
660
if test "$prev" != 'sed 50q "$0"'; then
661
echo_test_string=`eval $prev`
662
export echo_test_string
663
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
665
# Oops. We lost completely, so just stick with echo.
674
# Copy echo and quote the copy suitably for passing to libtool from
675
# the Makefile, instead of quoting the original, which is used later.
677
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
678
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684
test -n "$DJDIR" || exec 7<&0 </dev/null
688
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
689
# so uname gets run too.
690
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695
ac_default_prefix=/usr/local
697
ac_config_libobj_dir=.
704
# Identity of this package.
705
PACKAGE_NAME='sflphone'
706
PACKAGE_TARNAME='sflphone'
707
PACKAGE_VERSION='0.9.13'
708
PACKAGE_STRING='sflphone 0.9.13'
709
PACKAGE_BUGREPORT='sflphoneteam@savoirfairelinux.com'
712
# Factoring default headers for most tests.
713
ac_includes_default="\
715
#ifdef HAVE_SYS_TYPES_H
716
# include <sys/types.h>
718
#ifdef HAVE_SYS_STAT_H
719
# include <sys/stat.h>
725
# ifdef HAVE_STDLIB_H
730
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
735
#ifdef HAVE_STRINGS_H
736
# include <strings.h>
738
#ifdef HAVE_INTTYPES_H
739
# include <inttypes.h>
749
ac_subst_vars='am__EXEEXT_FALSE
765
USE_NETWORKMANAGER_FALSE
766
USE_NETWORKMANAGER_TRUE
777
ENABLE_SPEEXDSP_FALSE
787
BUILD_LIBDBUS_CXX_DIR
788
CROSS_COMPILING_FALSE
878
INSTALL_STRIP_PROGRAM
932
program_transform_name
945
enable_option_checking
947
enable_dependency_tracking
955
with_build_libdbus_cxx
966
ac_precious_vars='build_alias
1008
# Initialize some variables set by options.
1010
ac_init_version=false
1011
ac_unrecognized_opts=
1012
ac_unrecognized_sep=
1013
# The variables have the same names as the options, with
1014
# dashes changed to underlines.
1015
cache_file=/dev/null
1022
program_transform_name=s,x,x,
1030
# Installation directory options.
1031
# These are left unexpanded so users can "make install exec_prefix=/foo"
1032
# and all the variables that are supposed to be based on exec_prefix
1033
# by default will actually change.
1034
# Use braces instead of parens because sh, perl, etc. also accept them.
1035
# (The list follows the same order as the GNU Coding Standards.)
1036
bindir='${exec_prefix}/bin'
1037
sbindir='${exec_prefix}/sbin'
1038
libexecdir='${exec_prefix}/libexec'
1039
datarootdir='${prefix}/share'
1040
datadir='${datarootdir}'
1041
sysconfdir='${prefix}/etc'
1042
sharedstatedir='${prefix}/com'
1043
localstatedir='${prefix}/var'
1044
includedir='${prefix}/include'
1045
oldincludedir='/usr/include'
1046
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1047
infodir='${datarootdir}/info'
1052
libdir='${exec_prefix}/lib'
1053
localedir='${datarootdir}/locale'
1054
mandir='${datarootdir}/man'
1060
# If the previous option needs an argument, assign it.
1061
if test -n "$ac_prev"; then
1062
eval $ac_prev=\$ac_option
1068
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1073
# Accept the important Cygnus configure options, so we can diagnose typos.
1075
case $ac_dashdash$ac_option in
1079
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1081
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082
bindir=$ac_optarg ;;
1084
-build | --build | --buil | --bui | --bu)
1085
ac_prev=build_alias ;;
1086
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087
build_alias=$ac_optarg ;;
1089
-cache-file | --cache-file | --cache-fil | --cache-fi \
1090
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091
ac_prev=cache_file ;;
1092
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094
cache_file=$ac_optarg ;;
1096
--config-cache | -C)
1097
cache_file=config.cache ;;
1099
-datadir | --datadir | --datadi | --datad)
1101
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1102
datadir=$ac_optarg ;;
1104
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105
| --dataroo | --dataro | --datar)
1106
ac_prev=datarootdir ;;
1107
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109
datarootdir=$ac_optarg ;;
1111
-disable-* | --disable-*)
1112
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113
# Reject names that are not valid shell variable names.
1114
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115
as_fn_error $? "invalid feature name: $ac_useropt"
1116
ac_useropt_orig=$ac_useropt
1117
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118
case $ac_user_opts in
1120
"enable_$ac_useropt"
1122
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123
ac_unrecognized_sep=', ';;
1125
eval enable_$ac_useropt=no ;;
1127
-docdir | --docdir | --docdi | --doc | --do)
1129
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130
docdir=$ac_optarg ;;
1132
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135
dvidir=$ac_optarg ;;
1137
-enable-* | --enable-*)
1138
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139
# Reject names that are not valid shell variable names.
1140
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141
as_fn_error $? "invalid feature name: $ac_useropt"
1142
ac_useropt_orig=$ac_useropt
1143
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144
case $ac_user_opts in
1146
"enable_$ac_useropt"
1148
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149
ac_unrecognized_sep=', ';;
1151
eval enable_$ac_useropt=\$ac_optarg ;;
1153
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1154
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1155
| --exec | --exe | --ex)
1156
ac_prev=exec_prefix ;;
1157
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1158
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1159
| --exec=* | --exe=* | --ex=*)
1160
exec_prefix=$ac_optarg ;;
1162
-gas | --gas | --ga | --g)
1163
# Obsolete; use --with-gas.
1166
-help | --help | --hel | --he | -h)
1167
ac_init_help=long ;;
1168
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1169
ac_init_help=recursive ;;
1170
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1171
ac_init_help=short ;;
1173
-host | --host | --hos | --ho)
1174
ac_prev=host_alias ;;
1175
-host=* | --host=* | --hos=* | --ho=*)
1176
host_alias=$ac_optarg ;;
1178
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182
htmldir=$ac_optarg ;;
1184
-includedir | --includedir | --includedi | --included | --include \
1185
| --includ | --inclu | --incl | --inc)
1186
ac_prev=includedir ;;
1187
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1188
| --includ=* | --inclu=* | --incl=* | --inc=*)
1189
includedir=$ac_optarg ;;
1191
-infodir | --infodir | --infodi | --infod | --info | --inf)
1193
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1194
infodir=$ac_optarg ;;
1196
-libdir | --libdir | --libdi | --libd)
1198
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1199
libdir=$ac_optarg ;;
1201
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1202
| --libexe | --libex | --libe)
1203
ac_prev=libexecdir ;;
1204
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1205
| --libexe=* | --libex=* | --libe=*)
1206
libexecdir=$ac_optarg ;;
1208
-localedir | --localedir | --localedi | --localed | --locale)
1209
ac_prev=localedir ;;
1210
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1211
localedir=$ac_optarg ;;
1213
-localstatedir | --localstatedir | --localstatedi | --localstated \
1214
| --localstate | --localstat | --localsta | --localst | --locals)
1215
ac_prev=localstatedir ;;
1216
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1217
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1218
localstatedir=$ac_optarg ;;
1220
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1223
mandir=$ac_optarg ;;
1225
-nfp | --nfp | --nf)
1226
# Obsolete; use --without-fp.
1229
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1230
| --no-cr | --no-c | -n)
1233
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1234
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1238
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1239
| --oldin | --oldi | --old | --ol | --o)
1240
ac_prev=oldincludedir ;;
1241
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1242
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1243
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1244
oldincludedir=$ac_optarg ;;
1246
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1249
prefix=$ac_optarg ;;
1251
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1252
| --program-pre | --program-pr | --program-p)
1253
ac_prev=program_prefix ;;
1254
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1255
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1256
program_prefix=$ac_optarg ;;
1258
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1259
| --program-suf | --program-su | --program-s)
1260
ac_prev=program_suffix ;;
1261
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1262
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1263
program_suffix=$ac_optarg ;;
1265
-program-transform-name | --program-transform-name \
1266
| --program-transform-nam | --program-transform-na \
1267
| --program-transform-n | --program-transform- \
1268
| --program-transform | --program-transfor \
1269
| --program-transfo | --program-transf \
1270
| --program-trans | --program-tran \
1271
| --progr-tra | --program-tr | --program-t)
1272
ac_prev=program_transform_name ;;
1273
-program-transform-name=* | --program-transform-name=* \
1274
| --program-transform-nam=* | --program-transform-na=* \
1275
| --program-transform-n=* | --program-transform-=* \
1276
| --program-transform=* | --program-transfor=* \
1277
| --program-transfo=* | --program-transf=* \
1278
| --program-trans=* | --program-tran=* \
1279
| --progr-tra=* | --program-tr=* | --program-t=*)
1280
program_transform_name=$ac_optarg ;;
1282
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1285
pdfdir=$ac_optarg ;;
1287
-psdir | --psdir | --psdi | --psd | --ps)
1289
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293
| -silent | --silent | --silen | --sile | --sil)
1296
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1298
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1300
sbindir=$ac_optarg ;;
1302
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1303
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1304
| --sharedst | --shareds | --shared | --share | --shar \
1306
ac_prev=sharedstatedir ;;
1307
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1308
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1309
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1311
sharedstatedir=$ac_optarg ;;
1313
-site | --site | --sit)
1315
-site=* | --site=* | --sit=*)
1318
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1320
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1321
srcdir=$ac_optarg ;;
1323
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1324
| --syscon | --sysco | --sysc | --sys | --sy)
1325
ac_prev=sysconfdir ;;
1326
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1327
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1328
sysconfdir=$ac_optarg ;;
1330
-target | --target | --targe | --targ | --tar | --ta | --t)
1331
ac_prev=target_alias ;;
1332
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1333
target_alias=$ac_optarg ;;
1335
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1338
-version | --version | --versio | --versi | --vers | -V)
1339
ac_init_version=: ;;
1342
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1343
# Reject names that are not valid shell variable names.
1344
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345
as_fn_error $? "invalid package name: $ac_useropt"
1346
ac_useropt_orig=$ac_useropt
1347
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348
case $ac_user_opts in
1352
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1353
ac_unrecognized_sep=', ';;
1355
eval with_$ac_useropt=\$ac_optarg ;;
1357
-without-* | --without-*)
1358
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1359
# Reject names that are not valid shell variable names.
1360
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361
as_fn_error $? "invalid package name: $ac_useropt"
1362
ac_useropt_orig=$ac_useropt
1363
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364
case $ac_user_opts in
1368
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369
ac_unrecognized_sep=', ';;
1371
eval with_$ac_useropt=no ;;
1374
# Obsolete; use --with-x.
1377
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378
| --x-incl | --x-inc | --x-in | --x-i)
1379
ac_prev=x_includes ;;
1380
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382
x_includes=$ac_optarg ;;
1384
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1385
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386
ac_prev=x_libraries ;;
1387
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389
x_libraries=$ac_optarg ;;
1391
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1392
Try \`$0 --help' for more information"
1396
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1397
# Reject names that are not valid shell variable names.
1398
case $ac_envvar in #(
1399
'' | [0-9]* | *[!_$as_cr_alnum]* )
1400
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1402
eval $ac_envvar=\$ac_optarg
1403
export $ac_envvar ;;
1406
# FIXME: should be removed in autoconf 3.0.
1407
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1416
if test -n "$ac_prev"; then
1417
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418
as_fn_error $? "missing argument to $ac_option"
1421
if test -n "$ac_unrecognized_opts"; then
1422
case $enable_option_checking in
1424
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1425
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429
# Check all directory arguments for consistency.
1430
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431
datadir sysconfdir sharedstatedir localstatedir includedir \
1432
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433
libdir localedir mandir
1435
eval ac_val=\$$ac_var
1436
# Remove trailing slashes.
1439
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440
eval $ac_var=\$ac_val;;
1442
# Be sure to have absolute directory names.
1444
[\\/$]* | ?:[\\/]* ) continue;;
1445
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1447
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1450
# There might be people who depend on the old broken behavior: `$host'
1451
# used to hold the argument of --host etc.
1452
# FIXME: To remove some day.
1455
target=$target_alias
1457
# FIXME: To remove some day.
1458
if test "x$host_alias" != x; then
1459
if test "x$build_alias" = x; then
1460
cross_compiling=maybe
1461
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1462
If a cross compiler is detected then cross compile mode will be used" >&2
1463
elif test "x$build_alias" != "x$host_alias"; then
1469
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1471
test "$silent" = yes && exec 6>/dev/null
1474
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1475
ac_ls_di=`ls -di .` &&
1476
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1477
as_fn_error $? "working directory cannot be determined"
1478
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1479
as_fn_error $? "pwd does not report name of working directory"
1482
# Find the source files, if location was not specified.
1483
if test -z "$srcdir"; then
1484
ac_srcdir_defaulted=yes
1485
# Try the directory containing this script, then the parent directory.
1486
ac_confdir=`$as_dirname -- "$as_myself" ||
1487
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488
X"$as_myself" : 'X\(//\)[^/]' \| \
1489
X"$as_myself" : 'X\(//\)$' \| \
1490
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1491
$as_echo X"$as_myself" |
1492
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510
if test ! -r "$srcdir/$ac_unique_file"; then
1514
ac_srcdir_defaulted=no
1516
if test ! -r "$srcdir/$ac_unique_file"; then
1517
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1520
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1524
# When building in place, set srcdir=.
1525
if test "$ac_abs_confdir" = "$ac_pwd"; then
1528
# Remove unnecessary trailing slashes from srcdir.
1529
# Double slashes in file names in object file debugging info
1530
# mess up M-x gdb in Emacs.
1532
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534
for ac_var in $ac_precious_vars; do
1535
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1536
eval ac_env_${ac_var}_value=\$${ac_var}
1537
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1538
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1542
# Report the --help message.
1544
if test "$ac_init_help" = "long"; then
1545
# Omit some internal or obsolete options to make the list less imposing.
1546
# This message is too long to be a string in the A/UX 3.1 sh.
1548
\`configure' configures sflphone 0.9.13 to adapt to many kinds of systems.
1550
Usage: $0 [OPTION]... [VAR=VALUE]...
1552
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1553
VAR=VALUE. See below for descriptions of some of the useful variables.
1555
Defaults for the options are specified in brackets.
1558
-h, --help display this help and exit
1559
--help=short display options specific to this package
1560
--help=recursive display the short help of all the included packages
1561
-V, --version display version information and exit
1562
-q, --quiet, --silent do not print \`checking ...' messages
1563
--cache-file=FILE cache test results in FILE [disabled]
1564
-C, --config-cache alias for \`--cache-file=config.cache'
1565
-n, --no-create do not create output files
1566
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1568
Installation directories:
1569
--prefix=PREFIX install architecture-independent files in PREFIX
1570
[$ac_default_prefix]
1571
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1574
By default, \`make install' will install all the files in
1575
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1576
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1577
for instance \`--prefix=\$HOME'.
1579
For better control, use the options below.
1581
Fine tuning of the installation directories:
1582
--bindir=DIR user executables [EPREFIX/bin]
1583
--sbindir=DIR system admin executables [EPREFIX/sbin]
1584
--libexecdir=DIR program executables [EPREFIX/libexec]
1585
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1586
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1587
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1588
--libdir=DIR object code libraries [EPREFIX/lib]
1589
--includedir=DIR C header files [PREFIX/include]
1590
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1591
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1592
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1593
--infodir=DIR info documentation [DATAROOTDIR/info]
1594
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1595
--mandir=DIR man documentation [DATAROOTDIR/man]
1596
--docdir=DIR documentation root [DATAROOTDIR/doc/sflphone]
1597
--htmldir=DIR html documentation [DOCDIR]
1598
--dvidir=DIR dvi documentation [DOCDIR]
1599
--pdfdir=DIR pdf documentation [DOCDIR]
1600
--psdir=DIR ps documentation [DOCDIR]
1606
--program-prefix=PREFIX prepend PREFIX to installed program names
1607
--program-suffix=SUFFIX append SUFFIX to installed program names
1608
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1611
--build=BUILD configure for building on BUILD [guessed]
1612
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1613
--target=TARGET configure for building compilers for TARGET [HOST]
1617
if test -n "$ac_init_help"; then
1618
case $ac_init_help in
1619
short | recursive ) echo "Configuration of sflphone 0.9.13:";;
1624
--disable-option-checking ignore unrecognized --enable/--with options
1625
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1626
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1627
--enable-silent-rules less verbose build output (undo: `make V=1')
1628
--disable-silent-rules verbose build output (undo: `make V=0')
1629
--disable-dependency-tracking speeds up one-time build
1630
--enable-dependency-tracking do not reject slow dependency extractors
1631
--enable-shared[=PKGS] build shared libraries [default=yes]
1632
--enable-static[=PKGS] build static libraries [default=yes]
1633
--enable-fast-install[=PKGS]
1634
optimize for fast installation [default=yes]
1635
--disable-libtool-lock avoid locking (might break parallel builds)
1636
--enable-doxygen enable documentation generation with doxygen (auto)
1637
--enable-dot use 'dot' to generate graphs in doxygen (auto)
1638
--enable-html-docs enable HTML generation with doxygen (yes)
1639
--enable-latex-docs enable LaTeX documentation generation with doxygen (no)
1642
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1643
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1644
--with-pic try to use only PIC/non-PIC objects [default=use
1646
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1647
--with-debug Set 'full' to enable debugging information
1649
--with-build-libdbus-cxx
1650
For cross compilation: path to libdbus-cxx which was
1651
compiled for the 'build' system.
1652
--without-gsm disable support for gsm codec
1653
--without-speex disable support for speex codec
1654
--without-celt disable support for celt codec
1655
--without-iax2 disable support for the iax2 protocol
1656
--without-networkmanager
1657
disable support for network-manager events
1659
Some influential environment variables:
1660
CC C compiler command
1661
CFLAGS C compiler flags
1662
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663
nonstandard directory <lib dir>
1664
LIBS libraries to pass to the linker, e.g. -l<library>
1665
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666
you have headers in a nonstandard directory <include dir>
1667
CXX C++ compiler command
1668
CXXFLAGS C++ compiler flags
1670
CXXCPP C++ preprocessor
1671
PKG_CONFIG path to pkg-config utility
1673
directories to add to pkg-config's search path
1675
path overriding pkg-config's built-in search path
1676
UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1677
UUID_LIBS linker flags for UUID, overriding pkg-config
1678
ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1679
ALSA_LIBS linker flags for ALSA, overriding pkg-config
1681
C compiler flags for PULSEAUDIO, overriding pkg-config
1683
linker flags for PULSEAUDIO, overriding pkg-config
1685
C compiler flags for SAMPLERATE, overriding pkg-config
1687
linker flags for SAMPLERATE, overriding pkg-config
1689
C compiler flags for CCGNU2, overriding pkg-config
1690
CCGNU2_LIBS linker flags for CCGNU2, overriding pkg-config
1692
C compiler flags for CCEXT2, overriding pkg-config
1693
CCEXT2_LIBS linker flags for CCEXT2, overriding pkg-config
1695
C compiler flags for CCRTP, overriding pkg-config
1696
CCRTP_LIBS linker flags for CCRTP, overriding pkg-config
1698
C compiler flags for libssl, overriding pkg-config
1699
libssl_LIBS linker flags for libssl, overriding pkg-config
1701
C compiler flags for ZRTPCPP, overriding pkg-config
1703
linker flags for ZRTPCPP, overriding pkg-config
1704
dbus_CFLAGS C compiler flags for dbus, overriding pkg-config
1705
dbus_LIBS linker flags for dbus, overriding pkg-config
1707
C compiler flags for CPPUNIT, overriding pkg-config
1709
linker flags for CPPUNIT, overriding pkg-config
1711
Use these variables to override the choices made by `configure' or to help
1712
it to find libraries and programs with nonstandard names/locations.
1714
Report bugs to <sflphoneteam@savoirfairelinux.com>.
1719
if test "$ac_init_help" = "recursive"; then
1720
# If there are subdirs, report their specific --help.
1721
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722
test -d "$ac_dir" ||
1723
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731
# A ".." for each directory in $ac_dir_suffix.
1732
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733
case $ac_top_builddir_sub in
1734
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738
ac_abs_top_builddir=$ac_pwd
1739
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740
# for backward compatibility:
1741
ac_top_builddir=$ac_top_build_prefix
1744
.) # We are building in place.
1746
ac_top_srcdir=$ac_top_builddir_sub
1747
ac_abs_top_srcdir=$ac_pwd ;;
1748
[\\/]* | ?:[\\/]* ) # Absolute name.
1749
ac_srcdir=$srcdir$ac_dir_suffix;
1750
ac_top_srcdir=$srcdir
1751
ac_abs_top_srcdir=$srcdir ;;
1753
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754
ac_top_srcdir=$ac_top_build_prefix$srcdir
1755
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1757
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1759
cd "$ac_dir" || { ac_status=$?; continue; }
1760
# Check for guested configure.
1761
if test -f "$ac_srcdir/configure.gnu"; then
1763
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764
elif test -f "$ac_srcdir/configure"; then
1766
$SHELL "$ac_srcdir/configure" --help=recursive
1768
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1770
cd "$ac_pwd" || { ac_status=$?; break; }
1774
test -n "$ac_init_help" && exit $ac_status
1775
if $ac_init_version; then
1777
sflphone configure 0.9.13
1778
generated by GNU Autoconf 2.67
1780
Copyright (C) 2010 Free Software Foundation, Inc.
1781
This configure script is free software; the Free Software Foundation
1782
gives unlimited permission to copy, distribute and modify it.
1784
Copyright (c) Savoir-Faire Linux 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
1789
## ------------------------ ##
1790
## Autoconf initialization. ##
1791
## ------------------------ ##
1793
# ac_fn_c_try_compile LINENO
1794
# --------------------------
1795
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1796
ac_fn_c_try_compile ()
1798
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799
rm -f conftest.$ac_objext
1800
if { { ac_try="$ac_compile"
1802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803
*) ac_try_echo=$ac_try;;
1805
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806
$as_echo "$ac_try_echo"; } >&5
1807
(eval "$ac_compile") 2>conftest.err
1809
if test -s conftest.err; then
1810
grep -v '^ *+' conftest.err >conftest.er1
1811
cat conftest.er1 >&5
1812
mv -f conftest.er1 conftest.err
1814
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815
test $ac_status = 0; } && {
1816
test -z "$ac_c_werror_flag" ||
1817
test ! -s conftest.err
1818
} && test -s conftest.$ac_objext; then :
1821
$as_echo "$as_me: failed program was:" >&5
1822
sed 's/^/| /' conftest.$ac_ext >&5
1826
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
as_fn_set_status $ac_retval
1829
} # ac_fn_c_try_compile
1831
# ac_fn_cxx_try_compile LINENO
1832
# ----------------------------
1833
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1834
ac_fn_cxx_try_compile ()
1836
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837
rm -f conftest.$ac_objext
1838
if { { ac_try="$ac_compile"
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_compile") 2>conftest.err
1847
if test -s conftest.err; then
1848
grep -v '^ *+' conftest.err >conftest.er1
1849
cat conftest.er1 >&5
1850
mv -f conftest.er1 conftest.err
1852
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853
test $ac_status = 0; } && {
1854
test -z "$ac_cxx_werror_flag" ||
1855
test ! -s conftest.err
1856
} && test -s conftest.$ac_objext; then :
1859
$as_echo "$as_me: failed program was:" >&5
1860
sed 's/^/| /' conftest.$ac_ext >&5
1864
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865
as_fn_set_status $ac_retval
1867
} # ac_fn_cxx_try_compile
1869
# ac_fn_c_try_cpp LINENO
1870
# ----------------------
1871
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875
if { { ac_try="$ac_cpp conftest.$ac_ext"
1877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878
*) ac_try_echo=$ac_try;;
1880
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881
$as_echo "$ac_try_echo"; } >&5
1882
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884
if test -s conftest.err; then
1885
grep -v '^ *+' conftest.err >conftest.er1
1886
cat conftest.er1 >&5
1887
mv -f conftest.er1 conftest.err
1889
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890
test $ac_status = 0; } > conftest.i && {
1891
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892
test ! -s conftest.err
1896
$as_echo "$as_me: failed program was:" >&5
1897
sed 's/^/| /' conftest.$ac_ext >&5
1901
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
as_fn_set_status $ac_retval
1906
# ac_fn_c_try_link LINENO
1907
# -----------------------
1908
# Try to link conftest.$ac_ext, and return whether this succeeded.
1911
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912
rm -f conftest.$ac_objext conftest$ac_exeext
1913
if { { ac_try="$ac_link"
1915
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916
*) ac_try_echo=$ac_try;;
1918
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919
$as_echo "$ac_try_echo"; } >&5
1920
(eval "$ac_link") 2>conftest.err
1922
if test -s conftest.err; then
1923
grep -v '^ *+' conftest.err >conftest.er1
1924
cat conftest.er1 >&5
1925
mv -f conftest.er1 conftest.err
1927
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928
test $ac_status = 0; } && {
1929
test -z "$ac_c_werror_flag" ||
1930
test ! -s conftest.err
1931
} && test -s conftest$ac_exeext && {
1932
test "$cross_compiling" = yes ||
1933
$as_test_x conftest$ac_exeext
1937
$as_echo "$as_me: failed program was:" >&5
1938
sed 's/^/| /' conftest.$ac_ext >&5
1942
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944
# interfere with the next link command; also delete a directory that is
1945
# left behind by Apple's compiler. We do this before executing the actions.
1946
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948
as_fn_set_status $ac_retval
1950
} # ac_fn_c_try_link
1952
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1953
# -------------------------------------------------------
1954
# Tests whether HEADER exists and can be compiled using the include files in
1955
# INCLUDES, setting the cache variable VAR accordingly.
1956
ac_fn_c_check_header_compile ()
1958
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960
$as_echo_n "checking for $2... " >&6; }
1961
if eval "test \"\${$3+set}\"" = set; then :
1962
$as_echo_n "(cached) " >&6
1964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965
/* end confdefs.h. */
1969
if ac_fn_c_try_compile "$LINENO"; then :
1974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978
$as_echo "$ac_res" >&6; }
1979
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
} # ac_fn_c_check_header_compile
1983
# ac_fn_c_try_run LINENO
1984
# ----------------------
1985
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986
# that executables *can* be run.
1989
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990
if { { ac_try="$ac_link"
1992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993
*) ac_try_echo=$ac_try;;
1995
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996
$as_echo "$ac_try_echo"; } >&5
1997
(eval "$ac_link") 2>&5
1999
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001
{ { case "(($ac_try" in
2002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003
*) ac_try_echo=$ac_try;;
2005
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006
$as_echo "$ac_try_echo"; } >&5
2007
(eval "$ac_try") 2>&5
2009
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010
test $ac_status = 0; }; }; then :
2013
$as_echo "$as_me: program exited with status $ac_status" >&5
2014
$as_echo "$as_me: failed program was:" >&5
2015
sed 's/^/| /' conftest.$ac_ext >&5
2017
ac_retval=$ac_status
2019
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021
as_fn_set_status $ac_retval
2025
# ac_fn_c_check_func LINENO FUNC VAR
2026
# ----------------------------------
2027
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2028
ac_fn_c_check_func ()
2030
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032
$as_echo_n "checking for $2... " >&6; }
2033
if eval "test \"\${$3+set}\"" = set; then :
2034
$as_echo_n "(cached) " >&6
2036
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037
/* end confdefs.h. */
2038
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2039
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2040
#define $2 innocuous_$2
2042
/* System header to define __stub macros and hopefully few prototypes,
2043
which can conflict with char $2 (); below.
2044
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2045
<limits.h> exists even on freestanding compilers. */
2048
# include <limits.h>
2050
# include <assert.h>
2055
/* Override any GCC internal prototype to avoid an error.
2056
Use char because int might match the return type of a GCC
2057
builtin and then its argument prototype would still apply. */
2062
/* The GNU C library defines this for functions which it implements
2063
to always fail with ENOSYS. Some functions are actually named
2064
something starting with __ and the normal name is an alias. */
2065
#if defined __stub_$2 || defined __stub___$2
2077
if ac_fn_c_try_link "$LINENO"; then :
2082
rm -f core conftest.err conftest.$ac_objext \
2083
conftest$ac_exeext conftest.$ac_ext
2086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087
$as_echo "$ac_res" >&6; }
2088
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090
} # ac_fn_c_check_func
2092
# ac_fn_cxx_try_cpp LINENO
2093
# ------------------------
2094
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2095
ac_fn_cxx_try_cpp ()
2097
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098
if { { ac_try="$ac_cpp conftest.$ac_ext"
2100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101
*) ac_try_echo=$ac_try;;
2103
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2104
$as_echo "$ac_try_echo"; } >&5
2105
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2107
if test -s conftest.err; then
2108
grep -v '^ *+' conftest.err >conftest.er1
2109
cat conftest.er1 >&5
2110
mv -f conftest.er1 conftest.err
2112
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113
test $ac_status = 0; } > conftest.i && {
2114
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2115
test ! -s conftest.err
2119
$as_echo "$as_me: failed program was:" >&5
2120
sed 's/^/| /' conftest.$ac_ext >&5
2124
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125
as_fn_set_status $ac_retval
2127
} # ac_fn_cxx_try_cpp
2129
# ac_fn_cxx_try_link LINENO
2130
# -------------------------
2131
# Try to link conftest.$ac_ext, and return whether this succeeded.
2132
ac_fn_cxx_try_link ()
2134
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135
rm -f conftest.$ac_objext conftest$ac_exeext
2136
if { { ac_try="$ac_link"
2138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2139
*) ac_try_echo=$ac_try;;
2141
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2142
$as_echo "$ac_try_echo"; } >&5
2143
(eval "$ac_link") 2>conftest.err
2145
if test -s conftest.err; then
2146
grep -v '^ *+' conftest.err >conftest.er1
2147
cat conftest.er1 >&5
2148
mv -f conftest.er1 conftest.err
2150
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2151
test $ac_status = 0; } && {
2152
test -z "$ac_cxx_werror_flag" ||
2153
test ! -s conftest.err
2154
} && test -s conftest$ac_exeext && {
2155
test "$cross_compiling" = yes ||
2156
$as_test_x conftest$ac_exeext
2160
$as_echo "$as_me: failed program was:" >&5
2161
sed 's/^/| /' conftest.$ac_ext >&5
2165
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2166
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2167
# interfere with the next link command; also delete a directory that is
2168
# left behind by Apple's compiler. We do this before executing the actions.
2169
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2170
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2171
as_fn_set_status $ac_retval
2173
} # ac_fn_cxx_try_link
2175
# ac_fn_cxx_check_func LINENO FUNC VAR
2176
# ------------------------------------
2177
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2178
ac_fn_cxx_check_func ()
2180
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182
$as_echo_n "checking for $2... " >&6; }
2183
if eval "test \"\${$3+set}\"" = set; then :
2184
$as_echo_n "(cached) " >&6
2186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187
/* end confdefs.h. */
2188
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2189
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2190
#define $2 innocuous_$2
2192
/* System header to define __stub macros and hopefully few prototypes,
2193
which can conflict with char $2 (); below.
2194
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2195
<limits.h> exists even on freestanding compilers. */
2198
# include <limits.h>
2200
# include <assert.h>
2205
/* Override any GCC internal prototype to avoid an error.
2206
Use char because int might match the return type of a GCC
2207
builtin and then its argument prototype would still apply. */
2212
/* The GNU C library defines this for functions which it implements
2213
to always fail with ENOSYS. Some functions are actually named
2214
something starting with __ and the normal name is an alias. */
2215
#if defined __stub_$2 || defined __stub___$2
2227
if ac_fn_cxx_try_link "$LINENO"; then :
2232
rm -f core conftest.err conftest.$ac_objext \
2233
conftest$ac_exeext conftest.$ac_ext
2236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237
$as_echo "$ac_res" >&6; }
2238
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240
} # ac_fn_cxx_check_func
2242
# ac_fn_cxx_try_run LINENO
2243
# ------------------------
2244
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2245
# that executables *can* be run.
2246
ac_fn_cxx_try_run ()
2248
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249
if { { ac_try="$ac_link"
2251
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252
*) ac_try_echo=$ac_try;;
2254
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2255
$as_echo "$ac_try_echo"; } >&5
2256
(eval "$ac_link") 2>&5
2258
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2260
{ { case "(($ac_try" in
2261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262
*) ac_try_echo=$ac_try;;
2264
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265
$as_echo "$ac_try_echo"; } >&5
2266
(eval "$ac_try") 2>&5
2268
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269
test $ac_status = 0; }; }; then :
2272
$as_echo "$as_me: program exited with status $ac_status" >&5
2273
$as_echo "$as_me: failed program was:" >&5
2274
sed 's/^/| /' conftest.$ac_ext >&5
2276
ac_retval=$ac_status
2278
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2279
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280
as_fn_set_status $ac_retval
2282
} # ac_fn_cxx_try_run
2284
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2285
# ---------------------------------------------------------
2286
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2287
# the include files in INCLUDES and setting the cache variable VAR
2289
ac_fn_cxx_check_header_mongrel ()
2291
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292
if eval "test \"\${$3+set}\"" = set; then :
2293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294
$as_echo_n "checking for $2... " >&6; }
2295
if eval "test \"\${$3+set}\"" = set; then :
2296
$as_echo_n "(cached) " >&6
2299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300
$as_echo "$ac_res" >&6; }
2302
# Is the header compilable?
2303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2304
$as_echo_n "checking $2 usability... " >&6; }
2305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306
/* end confdefs.h. */
2310
if ac_fn_cxx_try_compile "$LINENO"; then :
2311
ac_header_compiler=yes
2313
ac_header_compiler=no
2315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2317
$as_echo "$ac_header_compiler" >&6; }
2319
# Is the header present?
2320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2321
$as_echo_n "checking $2 presence... " >&6; }
2322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323
/* end confdefs.h. */
2326
if ac_fn_cxx_try_cpp "$LINENO"; then :
2327
ac_header_preproc=yes
2329
ac_header_preproc=no
2331
rm -f conftest.err conftest.i conftest.$ac_ext
2332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2333
$as_echo "$ac_header_preproc" >&6; }
2335
# So? What about this header?
2336
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2338
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2339
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2340
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2341
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2344
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2345
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2346
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2347
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2348
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2349
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2350
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2351
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2352
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2353
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354
( $as_echo "## ------------------------------------------------ ##
2355
## Report this to sflphoneteam@savoirfairelinux.com ##
2356
## ------------------------------------------------ ##"
2357
) | sed "s/^/$as_me: WARNING: /" >&2
2360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2361
$as_echo_n "checking for $2... " >&6; }
2362
if eval "test \"\${$3+set}\"" = set; then :
2363
$as_echo_n "(cached) " >&6
2365
eval "$3=\$ac_header_compiler"
2368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369
$as_echo "$ac_res" >&6; }
2371
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373
} # ac_fn_cxx_check_header_mongrel
2375
# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2376
# ---------------------------------------------
2377
# Tests whether TYPE exists after having included INCLUDES, setting cache
2378
# variable VAR accordingly.
2379
ac_fn_cxx_check_type ()
2381
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2383
$as_echo_n "checking for $2... " >&6; }
2384
if eval "test \"\${$3+set}\"" = set; then :
2385
$as_echo_n "(cached) " >&6
2388
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389
/* end confdefs.h. */
2400
if ac_fn_cxx_try_compile "$LINENO"; then :
2401
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402
/* end confdefs.h. */
2413
if ac_fn_cxx_try_compile "$LINENO"; then :
2418
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2424
$as_echo "$ac_res" >&6; }
2425
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2427
} # ac_fn_cxx_check_type
2429
# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2430
# ---------------------------------------------------------
2431
# Tests whether HEADER exists and can be compiled using the include files in
2432
# INCLUDES, setting the cache variable VAR accordingly.
2433
ac_fn_cxx_check_header_compile ()
2435
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437
$as_echo_n "checking for $2... " >&6; }
2438
if eval "test \"\${$3+set}\"" = set; then :
2439
$as_echo_n "(cached) " >&6
2441
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442
/* end confdefs.h. */
2446
if ac_fn_cxx_try_compile "$LINENO"; then :
2451
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455
$as_echo "$ac_res" >&6; }
2456
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458
} # ac_fn_cxx_check_header_compile
2459
cat >config.log <<_ACEOF
2460
This file contains any messages produced by compilers while
2461
running configure, to aid debugging if configure makes a mistake.
2463
It was created by sflphone $as_me 0.9.13, which was
2464
generated by GNU Autoconf 2.67. Invocation command line was
2476
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2477
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2478
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2479
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2480
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2482
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2483
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2485
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2486
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2487
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2488
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2489
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2490
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2491
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499
test -z "$as_dir" && as_dir=.
2500
$as_echo "PATH: $as_dir"
2516
# Keep a trace of the command line.
2517
# Strip out --no-create and --no-recursion so they do not pile up.
2518
# Strip out --silent because we don't want to record it for future runs.
2519
# Also quote any args containing shell meta-characters.
2520
# Make two passes to allow for proper duplicate-argument suppression.
2524
ac_must_keep_next=false
2530
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2531
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2532
| -silent | --silent | --silen | --sile | --sil)
2535
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2538
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2540
as_fn_append ac_configure_args1 " '$ac_arg'"
2541
if test $ac_must_keep_next = true; then
2542
ac_must_keep_next=false # Got value, back to normal.
2545
*=* | --config-cache | -C | -disable-* | --disable-* \
2546
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2547
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2548
| -with-* | --with-* | -without-* | --without-* | --x)
2549
case "$ac_configure_args0 " in
2550
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2553
-* ) ac_must_keep_next=true ;;
2556
as_fn_append ac_configure_args " '$ac_arg'"
2561
{ ac_configure_args0=; unset ac_configure_args0;}
2562
{ ac_configure_args1=; unset ac_configure_args1;}
2564
# When interrupted or exit'd, cleanup temporary files, and complete
2565
# config.log. We remove comments because anyway the quotes in there
2566
# would cause problems or look ugly.
2567
# WARNING: Use '\'' to represent an apostrophe within the trap.
2568
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2569
trap 'exit_status=$?
2570
# Save into config.log some information that might help in debugging.
2574
$as_echo "## ---------------- ##
2575
## Cache variables. ##
2576
## ---------------- ##"
2578
# The following way of writing the cache mishandles newlines in values,
2580
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2581
eval ac_val=\$$ac_var
2585
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2586
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2589
_ | IFS | as_nl) ;; #(
2590
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2591
*) { eval $ac_var=; unset $ac_var;} ;;
2596
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2597
*${as_nl}ac_space=\ *)
2599
"s/'\''/'\''\\\\'\'''\''/g;
2600
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2603
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2610
$as_echo "## ----------------- ##
2611
## Output variables. ##
2612
## ----------------- ##"
2614
for ac_var in $ac_subst_vars
2616
eval ac_val=\$$ac_var
2618
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2620
$as_echo "$ac_var='\''$ac_val'\''"
2624
if test -n "$ac_subst_files"; then
2625
$as_echo "## ------------------- ##
2626
## File substitutions. ##
2627
## ------------------- ##"
2629
for ac_var in $ac_subst_files
2631
eval ac_val=\$$ac_var
2633
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2635
$as_echo "$ac_var='\''$ac_val'\''"
2640
if test -s confdefs.h; then
2641
$as_echo "## ----------- ##
2648
test "$ac_signal" != 0 &&
2649
$as_echo "$as_me: caught signal $ac_signal"
2650
$as_echo "$as_me: exit $exit_status"
2652
rm -f core *.core core.conftest.* &&
2653
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2656
for ac_signal in 1 2 13 15; do
2657
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2661
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2662
rm -f -r conftest* confdefs.h
2664
$as_echo "/* confdefs.h */" > confdefs.h
2666
# Predefined preprocessor variables.
2668
cat >>confdefs.h <<_ACEOF
2669
#define PACKAGE_NAME "$PACKAGE_NAME"
2672
cat >>confdefs.h <<_ACEOF
2673
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2676
cat >>confdefs.h <<_ACEOF
2677
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2680
cat >>confdefs.h <<_ACEOF
2681
#define PACKAGE_STRING "$PACKAGE_STRING"
2684
cat >>confdefs.h <<_ACEOF
2685
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2688
cat >>confdefs.h <<_ACEOF
2689
#define PACKAGE_URL "$PACKAGE_URL"
2693
# Let the site file select an alternate cache file if it wants to.
2694
# Prefer an explicitly selected file to automatically selected ones.
2697
if test -n "$CONFIG_SITE"; then
2698
# We do not want a PATH search for config.site.
2699
case $CONFIG_SITE in #((
2700
-*) ac_site_file1=./$CONFIG_SITE;;
2701
*/*) ac_site_file1=$CONFIG_SITE;;
2702
*) ac_site_file1=./$CONFIG_SITE;;
2704
elif test "x$prefix" != xNONE; then
2705
ac_site_file1=$prefix/share/config.site
2706
ac_site_file2=$prefix/etc/config.site
2708
ac_site_file1=$ac_default_prefix/share/config.site
2709
ac_site_file2=$ac_default_prefix/etc/config.site
2711
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2713
test "x$ac_site_file" = xNONE && continue
2714
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2715
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2716
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2717
sed 's/^/| /' "$ac_site_file" >&5
2719
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721
as_fn_error $? "failed to load site script $ac_site_file
2722
See \`config.log' for more details" "$LINENO" 5 ; }
2726
if test -r "$cache_file"; then
2727
# Some versions of bash will fail to source /dev/null (special files
2728
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2729
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2730
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2731
$as_echo "$as_me: loading cache $cache_file" >&6;}
2733
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2734
*) . "./$cache_file";;
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2739
$as_echo "$as_me: creating cache $cache_file" >&6;}
2743
as_fn_append ac_header_list " utime.h"
2744
# Check that the precious variables saved in the cache have kept the same
2746
ac_cache_corrupted=false
2747
for ac_var in $ac_precious_vars; do
2748
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2749
eval ac_new_set=\$ac_env_${ac_var}_set
2750
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2751
eval ac_new_val=\$ac_env_${ac_var}_value
2752
case $ac_old_set,$ac_new_set in
2754
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2755
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2756
ac_cache_corrupted=: ;;
2758
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2759
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2760
ac_cache_corrupted=: ;;
2763
if test "x$ac_old_val" != "x$ac_new_val"; then
2764
# differences in whitespace do not lead to failure.
2765
ac_old_val_w=`echo x $ac_old_val`
2766
ac_new_val_w=`echo x $ac_new_val`
2767
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2768
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2769
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2770
ac_cache_corrupted=:
2772
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2773
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2774
eval $ac_var=\$ac_old_val
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2777
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2778
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2779
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2782
# Pass precious variables to config.status.
2783
if test "$ac_new_set" = set; then
2785
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2786
*) ac_arg=$ac_var=$ac_new_val ;;
2788
case " $ac_configure_args " in
2789
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2790
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2794
if $ac_cache_corrupted; then
2795
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2798
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2799
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2801
## -------------------- ##
2802
## Main body of script. ##
2803
## -------------------- ##
2806
ac_cpp='$CPP $CPPFLAGS'
2807
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2808
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2809
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2817
if test -f "$ac_dir/install-sh"; then
2819
ac_install_sh="$ac_aux_dir/install-sh -c"
2821
elif test -f "$ac_dir/install.sh"; then
2823
ac_install_sh="$ac_aux_dir/install.sh -c"
2825
elif test -f "$ac_dir/shtool"; then
2827
ac_install_sh="$ac_aux_dir/shtool install -c"
2831
if test -z "$ac_aux_dir"; then
2832
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2835
# These three variables are undocumented and unsupported,
2836
# and are intended to be withdrawn in a future Autoconf release.
2837
# They can cause serious problems if a builder's source tree is in a directory
2838
# whose full name contains unusual characters.
2839
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2840
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2841
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2844
# Make sure we can run config.sub.
2845
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2846
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2848
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2849
$as_echo_n "checking build system type... " >&6; }
2850
if test "${ac_cv_build+set}" = set; then :
2851
$as_echo_n "(cached) " >&6
2853
ac_build_alias=$build_alias
2854
test "x$ac_build_alias" = x &&
2855
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2856
test "x$ac_build_alias" = x &&
2857
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2858
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2859
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2863
$as_echo "$ac_cv_build" >&6; }
2864
case $ac_cv_build in
2866
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2869
ac_save_IFS=$IFS; IFS='-'
2875
# Remember, the first character of IFS is used to create $*,
2876
# except with old shells:
2879
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2883
$as_echo_n "checking host system type... " >&6; }
2884
if test "${ac_cv_host+set}" = set; then :
2885
$as_echo_n "(cached) " >&6
2887
if test "x$host_alias" = x; then
2888
ac_cv_host=$ac_cv_build
2890
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2891
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2896
$as_echo "$ac_cv_host" >&6; }
2899
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2902
ac_save_IFS=$IFS; IFS='-'
2908
# Remember, the first character of IFS is used to create $*,
2909
# except with old shells:
2912
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2916
$as_echo_n "checking target system type... " >&6; }
2917
if test "${ac_cv_target+set}" = set; then :
2918
$as_echo_n "(cached) " >&6
2920
if test "x$target_alias" = x; then
2921
ac_cv_target=$ac_cv_host
2923
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2924
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2929
$as_echo "$ac_cv_target" >&6; }
2930
case $ac_cv_target in
2932
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2934
target=$ac_cv_target
2935
ac_save_IFS=$IFS; IFS='-'
2941
# Remember, the first character of IFS is used to create $*,
2942
# except with old shells:
2945
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2948
# The aliases save the names the user supplied, while $host etc.
2949
# will get canonicalized.
2950
test -n "$target_alias" &&
2951
test "$program_prefix$program_suffix$program_transform_name" = \
2953
program_prefix=${target_alias}-
2956
VERSION=`cat VERSION`
2958
am__api_version='1.11'
2960
# Find a good install program. We prefer a C program (faster),
2961
# so one script is as good as another. But avoid the broken or
2962
# incompatible versions:
2963
# SysV /etc/install, /usr/sbin/install
2964
# SunOS /usr/etc/install
2965
# IRIX /sbin/install
2967
# AmigaOS /C/install, which installs bootblocks on floppy discs
2968
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2969
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2970
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2971
# OS/2's system install, which has a completely different semantic
2972
# ./install, which can be erroneously created by make from ./install.sh.
2973
# Reject install programs that cannot install multiple files.
2974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2975
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2976
if test -z "$INSTALL"; then
2977
if test "${ac_cv_path_install+set}" = set; then :
2978
$as_echo_n "(cached) " >&6
2980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984
test -z "$as_dir" && as_dir=.
2985
# Account for people who put trailing slashes in PATH elements.
2986
case $as_dir/ in #((
2987
./ | .// | /[cC]/* | \
2988
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2989
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2992
# OSF1 and SCO ODT 3.0 have their own names for install.
2993
# Don't use installbsd from OSF since it installs stuff as root
2995
for ac_prog in ginstall scoinst install; do
2996
for ac_exec_ext in '' $ac_executable_extensions; do
2997
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2998
if test $ac_prog = install &&
2999
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3000
# AIX install. It has an incompatible calling convention.
3002
elif test $ac_prog = install &&
3003
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3004
# program-specific install script used by HP pwplus--don't use.
3007
rm -rf conftest.one conftest.two conftest.dir
3008
echo one > conftest.one
3009
echo two > conftest.two
3011
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3012
test -s conftest.one && test -s conftest.two &&
3013
test -s conftest.dir/conftest.one &&
3014
test -s conftest.dir/conftest.two
3016
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3029
rm -rf conftest.one conftest.two conftest.dir
3032
if test "${ac_cv_path_install+set}" = set; then
3033
INSTALL=$ac_cv_path_install
3035
# As a last resort, use the slow shell script. Don't cache a
3036
# value for INSTALL within a source directory, because that will
3037
# break other packages using the cache if that directory is
3038
# removed, or if the value is a relative name.
3039
INSTALL=$ac_install_sh
3042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3043
$as_echo "$INSTALL" >&6; }
3045
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3046
# It thinks the first close brace ends the variable substitution.
3047
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3049
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3051
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3054
$as_echo_n "checking whether build environment is sane... " >&6; }
3057
echo timestamp > conftest.file
3058
# Reject unsafe characters in $srcdir or the absolute working directory
3059
# name. Accept space and tab only in the latter.
3063
*[\\\"\#\$\&\'\`$am_lf]*)
3064
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
3067
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3068
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
3071
# Do `set' in a subshell so we don't clobber the current shell's
3072
# arguments. Must try -L first in case configure is actually a
3073
# symlink; some systems play weird games with the mod time of symlinks
3074
# (eg FreeBSD returns the mod time of the symlink's containing
3077
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3078
if test "$*" = "X"; then
3080
set X `ls -t "$srcdir/configure" conftest.file`
3083
if test "$*" != "X $srcdir/configure conftest.file" \
3084
&& test "$*" != "X conftest.file $srcdir/configure"; then
3086
# If neither matched, then we have a broken ls. This can happen
3087
# if, for instance, CONFIG_SHELL is bash and it inherits a
3088
# broken ls alias from the environment. This has actually
3089
# happened. Such a system could not be considered "sane".
3090
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3091
alias in your environment" "$LINENO" 5
3094
test "$2" = conftest.file
3100
as_fn_error $? "newly created file is older than distributed files!
3101
Check your system clock" "$LINENO" 5
3103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3104
$as_echo "yes" >&6; }
3105
test "$program_prefix" != NONE &&
3106
program_transform_name="s&^&$program_prefix&;$program_transform_name"
3107
# Use a double $ so make ignores it.
3108
test "$program_suffix" != NONE &&
3109
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3110
# Double any \ or $.
3111
# By default was `s,x,x', remove it if useless.
3112
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3113
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3115
# expand $ac_aux_dir to an absolute path
3116
am_aux_dir=`cd $ac_aux_dir && pwd`
3118
if test x"${MISSING+set}" != xset; then
3121
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3123
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3126
# Use eval to expand $SHELL
3127
if eval "$MISSING --run true"; then
3128
am_missing_run="$MISSING --run "
3131
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3132
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3135
if test x"${install_sh}" != xset; then
3138
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3140
install_sh="\${SHELL} $am_aux_dir/install-sh"
3144
# Installed binaries are usually stripped using `strip' when the user
3145
# run `make install-strip'. However `strip' might not be the right
3146
# tool to use in cross-compilation environments, therefore Automake
3147
# will honor the `STRIP' environment variable to overrule this program.
3148
if test "$cross_compiling" != no; then
3149
if test -n "$ac_tool_prefix"; then
3150
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3151
set dummy ${ac_tool_prefix}strip; ac_word=$2
3152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153
$as_echo_n "checking for $ac_word... " >&6; }
3154
if test "${ac_cv_prog_STRIP+set}" = set; then :
3155
$as_echo_n "(cached) " >&6
3157
if test -n "$STRIP"; then
3158
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164
test -z "$as_dir" && as_dir=.
3165
for ac_exec_ext in '' $ac_executable_extensions; do
3166
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3168
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177
STRIP=$ac_cv_prog_STRIP
3178
if test -n "$STRIP"; then
3179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3180
$as_echo "$STRIP" >&6; }
3182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183
$as_echo "no" >&6; }
3188
if test -z "$ac_cv_prog_STRIP"; then
3190
# Extract the first word of "strip", so it can be a program name with args.
3191
set dummy strip; ac_word=$2
3192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193
$as_echo_n "checking for $ac_word... " >&6; }
3194
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3195
$as_echo_n "(cached) " >&6
3197
if test -n "$ac_ct_STRIP"; then
3198
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204
test -z "$as_dir" && as_dir=.
3205
for ac_exec_ext in '' $ac_executable_extensions; do
3206
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207
ac_cv_prog_ac_ct_STRIP="strip"
3208
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3218
if test -n "$ac_ct_STRIP"; then
3219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3220
$as_echo "$ac_ct_STRIP" >&6; }
3222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223
$as_echo "no" >&6; }
3226
if test "x$ac_ct_STRIP" = x; then
3229
case $cross_compiling:$ac_tool_warned in
3231
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233
ac_tool_warned=yes ;;
3238
STRIP="$ac_cv_prog_STRIP"
3242
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3245
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3246
if test -z "$MKDIR_P"; then
3247
if test "${ac_cv_path_mkdir+set}" = set; then :
3248
$as_echo_n "(cached) " >&6
3250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3254
test -z "$as_dir" && as_dir=.
3255
for ac_prog in mkdir gmkdir; do
3256
for ac_exec_ext in '' $ac_executable_extensions; do
3257
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3258
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3259
'mkdir (GNU coreutils) '* | \
3260
'mkdir (coreutils) '* | \
3261
'mkdir (fileutils) '4.1*)
3262
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3272
test -d ./--version && rmdir ./--version
3273
if test "${ac_cv_path_mkdir+set}" = set; then
3274
MKDIR_P="$ac_cv_path_mkdir -p"
3276
# As a last resort, use the slow shell script. Don't cache a
3277
# value for MKDIR_P within a source directory, because that will
3278
# break other packages using the cache if that directory is
3279
# removed, or if the value is a relative name.
3280
MKDIR_P="$ac_install_sh -d"
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3284
$as_echo "$MKDIR_P" >&6; }
3288
[\\/$]* | ?:[\\/]*) ;;
3289
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3292
for ac_prog in gawk mawk nawk awk
3294
# Extract the first word of "$ac_prog", so it can be a program name with args.
3295
set dummy $ac_prog; ac_word=$2
3296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297
$as_echo_n "checking for $ac_word... " >&6; }
3298
if test "${ac_cv_prog_AWK+set}" = set; then :
3299
$as_echo_n "(cached) " >&6
3301
if test -n "$AWK"; then
3302
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308
test -z "$as_dir" && as_dir=.
3309
for ac_exec_ext in '' $ac_executable_extensions; do
3310
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311
ac_cv_prog_AWK="$ac_prog"
3312
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322
if test -n "$AWK"; then
3323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3324
$as_echo "$AWK" >&6; }
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327
$as_echo "no" >&6; }
3331
test -n "$AWK" && break
3334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3335
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3337
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3338
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3339
$as_echo_n "(cached) " >&6
3341
cat >conftest.make <<\_ACEOF
3344
@echo '@@@%%%=$(MAKE)=@@@%%%'
3346
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3347
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3349
eval ac_cv_prog_make_${ac_make}_set=yes;;
3351
eval ac_cv_prog_make_${ac_make}_set=no;;
3355
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3357
$as_echo "yes" >&6; }
3360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361
$as_echo "no" >&6; }
3362
SET_MAKE="MAKE=${MAKE-make}"
3365
rm -rf .tst 2>/dev/null
3366
mkdir .tst 2>/dev/null
3367
if test -d .tst; then
3372
rmdir .tst 2>/dev/null
3374
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3375
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3376
# is not polluted with repeated "-I."
3377
am__isrc=' -I$(srcdir)'
3378
# test to see if srcdir already configured
3379
if test -f $srcdir/config.status; then
3380
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3384
# test whether we have cygpath
3385
if test -z "$CYGPATH_W"; then
3386
if (cygpath --version) >/dev/null 2>/dev/null; then
3387
CYGPATH_W='cygpath -w'
3394
# Define the identity of the package.
3399
cat >>confdefs.h <<_ACEOF
3400
#define PACKAGE "$PACKAGE"
3404
cat >>confdefs.h <<_ACEOF
3405
#define VERSION "$VERSION"
3408
# Some tools Automake needs.
3410
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3413
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3416
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3419
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3422
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3424
# We need awk for the "check" target. The system "awk" is bad on
3426
# Always define AMTAR for backward compatibility.
3428
AMTAR=${AMTAR-"${am_missing_run}tar"}
3430
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3436
ac_config_headers="$ac_config_headers config.h"
3439
# Silent build by default. Use make V=1 to increase verbosity
3440
# Check whether --enable-silent-rules was given.
3441
if test "${enable_silent_rules+set}" = set; then :
3442
enableval=$enable_silent_rules;
3445
case $enable_silent_rules in
3446
yes) AM_DEFAULT_VERBOSITY=0;;
3447
no) AM_DEFAULT_VERBOSITY=1;;
3448
*) AM_DEFAULT_VERBOSITY=0;;
3457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3458
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3460
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3461
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3462
$as_echo_n "(cached) " >&6
3464
cat >conftest.make <<\_ACEOF
3467
@echo '@@@%%%=$(MAKE)=@@@%%%'
3469
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3470
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3472
eval ac_cv_prog_make_${ac_make}_set=yes;;
3474
eval ac_cv_prog_make_${ac_make}_set=no;;
3478
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3480
$as_echo "yes" >&6; }
3483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484
$as_echo "no" >&6; }
3485
SET_MAKE="MAKE=${MAKE-make}"
3491
ac_config_files="$ac_config_files Makefile"
3493
ac_config_files="$ac_config_files libs/Makefile libs/utilspp/Makefile libs/utilspp/functor/Makefile libs/utilspp/singleton/Makefile libs/dbus-c++/Makefile libs/dbus-c++/src/Makefile libs/dbus-c++/tools/Makefile libs/dbus-c++/data/Makefile libs/iax2/Makefile"
3496
ac_config_files="$ac_config_files src/Makefile src/sip/Makefile src/im/Makefile src/iax/Makefile src/audio/Makefile src/audio/audiortp/Makefile src/audio/pulseaudio/Makefile src/audio/alsa/Makefile src/audio/sound/Makefile src/audio/codecs/Makefile src/config/Makefile src/dbus/Makefile src/plug-in/Makefile src/plug-in/test/Makefile src/hooks/Makefile src/history/Makefile"
3499
ac_config_files="$ac_config_files test/Makefile"
3502
ac_config_files="$ac_config_files ringtones/Makefile"
3505
ac_config_files="$ac_config_files man/Makefile"
3508
ac_config_files="$ac_config_files doc/Makefile doc/dbus-api/Makefile doc/doxygen/Makefile"
3512
LIBS="$LIBS -lstdc++"
3514
PKGADD_PKG="SFLphone"
3515
PKGADD_NAME="SFLphone - a SIP client and daemon"
3516
PKGADD_VENDOR="http://www.sflphone.org/"
3522
ac_cpp='$CPP $CPPFLAGS'
3523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
if test -n "$ac_tool_prefix"; then
3527
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3528
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530
$as_echo_n "checking for $ac_word... " >&6; }
3531
if test "${ac_cv_prog_CC+set}" = set; then :
3532
$as_echo_n "(cached) " >&6
3534
if test -n "$CC"; then
3535
ac_cv_prog_CC="$CC" # Let the user override the test.
3537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541
test -z "$as_dir" && as_dir=.
3542
for ac_exec_ext in '' $ac_executable_extensions; do
3543
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3545
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555
if test -n "$CC"; then
3556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557
$as_echo "$CC" >&6; }
3559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560
$as_echo "no" >&6; }
3565
if test -z "$ac_cv_prog_CC"; then
3567
# Extract the first word of "gcc", so it can be a program name with args.
3568
set dummy gcc; ac_word=$2
3569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570
$as_echo_n "checking for $ac_word... " >&6; }
3571
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3572
$as_echo_n "(cached) " >&6
3574
if test -n "$ac_ct_CC"; then
3575
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581
test -z "$as_dir" && as_dir=.
3582
for ac_exec_ext in '' $ac_executable_extensions; do
3583
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584
ac_cv_prog_ac_ct_CC="gcc"
3585
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595
if test -n "$ac_ct_CC"; then
3596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597
$as_echo "$ac_ct_CC" >&6; }
3599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600
$as_echo "no" >&6; }
3603
if test "x$ac_ct_CC" = x; then
3606
case $cross_compiling:$ac_tool_warned in
3608
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610
ac_tool_warned=yes ;;
3618
if test -z "$CC"; then
3619
if test -n "$ac_tool_prefix"; then
3620
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3621
set dummy ${ac_tool_prefix}cc; ac_word=$2
3622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623
$as_echo_n "checking for $ac_word... " >&6; }
3624
if test "${ac_cv_prog_CC+set}" = set; then :
3625
$as_echo_n "(cached) " >&6
3627
if test -n "$CC"; then
3628
ac_cv_prog_CC="$CC" # Let the user override the test.
3630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634
test -z "$as_dir" && as_dir=.
3635
for ac_exec_ext in '' $ac_executable_extensions; do
3636
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637
ac_cv_prog_CC="${ac_tool_prefix}cc"
3638
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648
if test -n "$CC"; then
3649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650
$as_echo "$CC" >&6; }
3652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653
$as_echo "no" >&6; }
3659
if test -z "$CC"; then
3660
# Extract the first word of "cc", so it can be a program name with args.
3661
set dummy cc; ac_word=$2
3662
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663
$as_echo_n "checking for $ac_word... " >&6; }
3664
if test "${ac_cv_prog_CC+set}" = set; then :
3665
$as_echo_n "(cached) " >&6
3667
if test -n "$CC"; then
3668
ac_cv_prog_CC="$CC" # Let the user override the test.
3671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675
test -z "$as_dir" && as_dir=.
3676
for ac_exec_ext in '' $ac_executable_extensions; do
3677
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3679
ac_prog_rejected=yes
3683
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690
if test $ac_prog_rejected = yes; then
3691
# We found a bogon in the path, so make sure we never use it.
3692
set dummy $ac_cv_prog_CC
3694
if test $# != 0; then
3695
# We chose a different compiler from the bogus one.
3696
# However, it has the same basename, so the bogon will be chosen
3697
# first if we set CC to just the basename; use the full file name.
3699
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3705
if test -n "$CC"; then
3706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707
$as_echo "$CC" >&6; }
3709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710
$as_echo "no" >&6; }
3715
if test -z "$CC"; then
3716
if test -n "$ac_tool_prefix"; then
3717
for ac_prog in cl.exe
3719
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722
$as_echo_n "checking for $ac_word... " >&6; }
3723
if test "${ac_cv_prog_CC+set}" = set; then :
3724
$as_echo_n "(cached) " >&6
3726
if test -n "$CC"; then
3727
ac_cv_prog_CC="$CC" # Let the user override the test.
3729
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733
test -z "$as_dir" && as_dir=.
3734
for ac_exec_ext in '' $ac_executable_extensions; do
3735
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3737
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747
if test -n "$CC"; then
3748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749
$as_echo "$CC" >&6; }
3751
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752
$as_echo "no" >&6; }
3756
test -n "$CC" && break
3759
if test -z "$CC"; then
3761
for ac_prog in cl.exe
3763
# Extract the first word of "$ac_prog", so it can be a program name with args.
3764
set dummy $ac_prog; ac_word=$2
3765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766
$as_echo_n "checking for $ac_word... " >&6; }
3767
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3768
$as_echo_n "(cached) " >&6
3770
if test -n "$ac_ct_CC"; then
3771
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777
test -z "$as_dir" && as_dir=.
3778
for ac_exec_ext in '' $ac_executable_extensions; do
3779
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780
ac_cv_prog_ac_ct_CC="$ac_prog"
3781
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791
if test -n "$ac_ct_CC"; then
3792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793
$as_echo "$ac_ct_CC" >&6; }
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796
$as_echo "no" >&6; }
3800
test -n "$ac_ct_CC" && break
3803
if test "x$ac_ct_CC" = x; then
3806
case $cross_compiling:$ac_tool_warned in
3808
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3809
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810
ac_tool_warned=yes ;;
3819
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821
as_fn_error $? "no acceptable C compiler found in \$PATH
3822
See \`config.log' for more details" "$LINENO" 5 ; }
3824
# Provide some information about the compiler.
3825
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3828
for ac_option in --version -v -V -qversion; do
3829
{ { ac_try="$ac_compiler $ac_option >&5"
3831
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832
*) ac_try_echo=$ac_try;;
3834
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835
$as_echo "$ac_try_echo"; } >&5
3836
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3838
if test -s conftest.err; then
3840
... rest of stderr output deleted ...
3841
10q' conftest.err >conftest.er1
3842
cat conftest.er1 >&5
3844
rm -f conftest.er1 conftest.err
3845
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846
test $ac_status = 0; }
3849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850
/* end confdefs.h. */
3860
ac_clean_files_save=$ac_clean_files
3861
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3862
# Try to create an executable without -o first, disregard a.out.
3863
# It will help us diagnose broken compilers, and finding out an intuition
3865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3866
$as_echo_n "checking whether the C compiler works... " >&6; }
3867
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3869
# The possible output files:
3870
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3873
for ac_file in $ac_files
3876
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3877
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3882
if { { ac_try="$ac_link_default"
3884
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885
*) ac_try_echo=$ac_try;;
3887
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888
$as_echo "$ac_try_echo"; } >&5
3889
(eval "$ac_link_default") 2>&5
3891
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892
test $ac_status = 0; }; then :
3893
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3894
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3895
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3896
# so that the user can short-circuit this test for compilers unknown to
3898
for ac_file in $ac_files ''
3900
test -f "$ac_file" || continue
3902
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3905
# We found the default executable, but exeext='' is most
3909
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3911
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3913
# We set ac_cv_exeext here because the later test for it is not
3914
# safe: cross compilers may not add the suffix if given an `-o'
3915
# argument, so we may need to know it at that point already.
3916
# Even if this section looks crufty: it has the advantage of
3923
test "$ac_cv_exeext" = no && ac_cv_exeext=
3928
if test -z "$ac_file"; then :
3929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930
$as_echo "no" >&6; }
3931
$as_echo "$as_me: failed program was:" >&5
3932
sed 's/^/| /' conftest.$ac_ext >&5
3934
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936
as_fn_error 77 "C compiler cannot create executables
3937
See \`config.log' for more details" "$LINENO" 5 ; }
3939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940
$as_echo "yes" >&6; }
3942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3943
$as_echo_n "checking for C compiler default output file name... " >&6; }
3944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3945
$as_echo "$ac_file" >&6; }
3946
ac_exeext=$ac_cv_exeext
3948
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3949
ac_clean_files=$ac_clean_files_save
3950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3951
$as_echo_n "checking for suffix of executables... " >&6; }
3952
if { { ac_try="$ac_link"
3954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955
*) ac_try_echo=$ac_try;;
3957
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958
$as_echo "$ac_try_echo"; } >&5
3959
(eval "$ac_link") 2>&5
3961
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3962
test $ac_status = 0; }; then :
3963
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3964
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3965
# work properly (i.e., refer to `conftest.exe'), while it won't with
3967
for ac_file in conftest.exe conftest conftest.*; do
3968
test -f "$ac_file" || continue
3970
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3971
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3977
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3980
See \`config.log' for more details" "$LINENO" 5 ; }
3982
rm -f conftest conftest$ac_cv_exeext
3983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3984
$as_echo "$ac_cv_exeext" >&6; }
3986
rm -f conftest.$ac_ext
3987
EXEEXT=$ac_cv_exeext
3989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990
/* end confdefs.h. */
3995
FILE *f = fopen ("conftest.out", "w");
3996
return ferror (f) || fclose (f) != 0;
4002
ac_clean_files="$ac_clean_files conftest.out"
4003
# Check that the compiler produces executables we can run. If not, either
4004
# the compiler is broken, or we cross compile.
4005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4006
$as_echo_n "checking whether we are cross compiling... " >&6; }
4007
if test "$cross_compiling" != yes; then
4008
{ { ac_try="$ac_link"
4010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011
*) ac_try_echo=$ac_try;;
4013
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014
$as_echo "$ac_try_echo"; } >&5
4015
(eval "$ac_link") 2>&5
4017
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018
test $ac_status = 0; }
4019
if { ac_try='./conftest$ac_cv_exeext'
4020
{ { case "(($ac_try" in
4021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022
*) ac_try_echo=$ac_try;;
4024
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025
$as_echo "$ac_try_echo"; } >&5
4026
(eval "$ac_try") 2>&5
4028
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029
test $ac_status = 0; }; }; then
4032
if test "$cross_compiling" = maybe; then
4035
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037
as_fn_error $? "cannot run C compiled programs.
4038
If you meant to cross compile, use \`--host'.
4039
See \`config.log' for more details" "$LINENO" 5 ; }
4043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4044
$as_echo "$cross_compiling" >&6; }
4046
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4047
ac_clean_files=$ac_clean_files_save
4048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4049
$as_echo_n "checking for suffix of object files... " >&6; }
4050
if test "${ac_cv_objext+set}" = set; then :
4051
$as_echo_n "(cached) " >&6
4053
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054
/* end confdefs.h. */
4064
rm -f conftest.o conftest.obj
4065
if { { ac_try="$ac_compile"
4067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068
*) ac_try_echo=$ac_try;;
4070
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4071
$as_echo "$ac_try_echo"; } >&5
4072
(eval "$ac_compile") 2>&5
4074
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075
test $ac_status = 0; }; then :
4076
for ac_file in conftest.o conftest.obj conftest.*; do
4077
test -f "$ac_file" || continue;
4079
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4080
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4085
$as_echo "$as_me: failed program was:" >&5
4086
sed 's/^/| /' conftest.$ac_ext >&5
4088
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090
as_fn_error $? "cannot compute suffix of object files: cannot compile
4091
See \`config.log' for more details" "$LINENO" 5 ; }
4093
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4096
$as_echo "$ac_cv_objext" >&6; }
4097
OBJEXT=$ac_cv_objext
4099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4100
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4101
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4102
$as_echo_n "(cached) " >&6
4104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105
/* end confdefs.h. */
4118
if ac_fn_c_try_compile "$LINENO"; then :
4123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4128
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4129
if test $ac_compiler_gnu = yes; then
4134
ac_test_CFLAGS=${CFLAGS+set}
4135
ac_save_CFLAGS=$CFLAGS
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4137
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4138
if test "${ac_cv_prog_cc_g+set}" = set; then :
4139
$as_echo_n "(cached) " >&6
4141
ac_save_c_werror_flag=$ac_c_werror_flag
4142
ac_c_werror_flag=yes
4145
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146
/* end confdefs.h. */
4156
if ac_fn_c_try_compile "$LINENO"; then :
4160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161
/* end confdefs.h. */
4171
if ac_fn_c_try_compile "$LINENO"; then :
4174
ac_c_werror_flag=$ac_save_c_werror_flag
4176
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177
/* end confdefs.h. */
4187
if ac_fn_c_try_compile "$LINENO"; then :
4190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195
ac_c_werror_flag=$ac_save_c_werror_flag
4197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4198
$as_echo "$ac_cv_prog_cc_g" >&6; }
4199
if test "$ac_test_CFLAGS" = set; then
4200
CFLAGS=$ac_save_CFLAGS
4201
elif test $ac_cv_prog_cc_g = yes; then
4202
if test "$GCC" = yes; then
4208
if test "$GCC" = yes; then
4214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4215
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4216
if test "${ac_cv_prog_cc_c89+set}" = set; then :
4217
$as_echo_n "(cached) " >&6
4219
ac_cv_prog_cc_c89=no
4221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222
/* end confdefs.h. */
4225
#include <sys/types.h>
4226
#include <sys/stat.h>
4227
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4228
struct buf { int x; };
4229
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4230
static char *e (p, i)
4236
static char *f (char * (*g) (char **, int), char **p, ...)
4241
s = g (p, va_arg (v,int));
4246
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4247
function prototypes and stuff, but not '\xHH' hex character constants.
4248
These don't provoke an error unfortunately, instead are silently treated
4249
as 'x'. The following induces an error, until -std is added to get
4250
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4251
array size at least. It's necessary to write '\x00'==0 to get something
4252
that's true only with -std. */
4253
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4255
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4256
inside strings and character constants. */
4258
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4260
int test (int i, double x);
4261
struct s1 {int (*f) (int a);};
4262
struct s2 {int (*f) (double a);};
4263
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4269
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4274
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4275
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4277
CC="$ac_save_CC $ac_arg"
4278
if ac_fn_c_try_compile "$LINENO"; then :
4279
ac_cv_prog_cc_c89=$ac_arg
4281
rm -f core conftest.err conftest.$ac_objext
4282
test "x$ac_cv_prog_cc_c89" != "xno" && break
4284
rm -f conftest.$ac_ext
4289
case "x$ac_cv_prog_cc_c89" in
4291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292
$as_echo "none needed" >&6; } ;;
4294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295
$as_echo "unsupported" >&6; } ;;
4297
CC="$CC $ac_cv_prog_cc_c89"
4298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4299
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4301
if test "x$ac_cv_prog_cc_c89" != xno; then :
4306
ac_cpp='$CPP $CPPFLAGS'
4307
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310
DEPDIR="${am__leading_dot}deps"
4312
ac_config_commands="$ac_config_commands depfiles"
4315
am_make=${MAKE-make}
4316
cat > confinc << 'END'
4318
@echo this is the am__doit target
4321
# If we don't find an include directive, just comment out the code.
4322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4323
$as_echo_n "checking for style of include used by $am_make... " >&6; }
4327
# First try GNU make style include.
4328
echo "include confinc" > confmf
4329
# Ignore all kinds of additional output from `make'.
4330
case `$am_make -s -f confmf 2> /dev/null` in #(
4331
*the\ am__doit\ target*)
4337
# Now try BSD make style include.
4338
if test "$am__include" = "#"; then
4339
echo '.include "confinc"' > confmf
4340
case `$am_make -s -f confmf 2> /dev/null` in #(
4341
*the\ am__doit\ target*)
4342
am__include=.include
4350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4351
$as_echo "$_am_result" >&6; }
4352
rm -f confinc confmf
4354
# Check whether --enable-dependency-tracking was given.
4355
if test "${enable_dependency_tracking+set}" = set; then :
4356
enableval=$enable_dependency_tracking;
4359
if test "x$enable_dependency_tracking" != xno; then
4360
am_depcomp="$ac_aux_dir/depcomp"
4363
if test "x$enable_dependency_tracking" != xno; then
4373
depcc="$CC" am_compiler_list=
4375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4376
$as_echo_n "checking dependency style of $depcc... " >&6; }
4377
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4378
$as_echo_n "(cached) " >&6
4380
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4381
# We make a subdir and do the tests there. Otherwise we can end up
4382
# making bogus files that we don't know about and never remove. For
4383
# instance it was reported that on HP-UX the gcc test will end up
4384
# making a dummy file named `D' -- because `-MD' means `put the output
4387
# Copy depcomp to subdir because otherwise we won't find it if we're
4388
# using a relative directory.
4389
cp "$am_depcomp" conftest.dir
4391
# We will build objects and dependencies in a subdirectory because
4392
# it helps to detect inapplicable dependency modes. For instance
4393
# both Tru64's cc and ICC support -MD to output dependencies as a
4394
# side effect of compilation, but ICC will put the dependencies in
4395
# the current directory while Tru64 will put them in the object
4399
am_cv_CC_dependencies_compiler_type=none
4400
if test "$am_compiler_list" = ""; then
4401
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4404
case " $depcc " in #(
4405
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4408
for depmode in $am_compiler_list; do
4409
# Setup a source with many dependencies, because some compilers
4410
# like to wrap large dependency lists on column 80 (with \), and
4411
# we should not choose a depcomp mode which is confused by this.
4413
# We need to recreate these files for each test, as the compiler may
4414
# overwrite some of them when testing with obscure command lines.
4415
# This happens at least with the AIX C compiler.
4417
for i in 1 2 3 4 5 6; do
4418
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4419
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4420
# Solaris 8's {/usr,}/bin/sh.
4421
touch sub/conftst$i.h
4423
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4425
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4426
# mode. It turns out that the SunPro C++ compiler does not properly
4427
# handle `-M -o', and we need to detect this. Also, some Intel
4428
# versions had trouble with output in subdirs
4429
am__obj=sub/conftest.${OBJEXT-o}
4430
am__minus_obj="-o $am__obj"
4433
# This depmode causes a compiler race in universal mode.
4434
test "$am__universal" = false || continue
4437
# after this tag, mechanisms are not by side-effect, so they'll
4438
# only be used when explicitly requested
4439
if test "x$enable_dependency_tracking" = xyes; then
4445
msvisualcpp | msvcmsys)
4446
# This compiler won't grok `-c -o', but also, the minuso test has
4447
# not run yet. These depmodes are late enough in the game, and
4448
# so weak that their functioning should not be impacted.
4449
am__obj=conftest.${OBJEXT-o}
4454
if depmode=$depmode \
4455
source=sub/conftest.c object=$am__obj \
4456
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4457
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4458
>/dev/null 2>conftest.err &&
4459
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4460
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4461
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4462
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4463
# icc doesn't choke on unknown options, it will just issue warnings
4464
# or remarks (even with -Werror). So we grep stderr for any message
4465
# that says an option was ignored or not supported.
4466
# When given -MP, icc 7.0 and 7.1 complain thusly:
4467
# icc: Command line warning: ignoring option '-M'; no argument required
4468
# The diagnosis changed in icc 8.0:
4469
# icc: Command line remark: option '-MP' not supported
4470
if (grep 'ignoring option' conftest.err ||
4471
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4472
am_cv_CC_dependencies_compiler_type=$depmode
4481
am_cv_CC_dependencies_compiler_type=none
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4486
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4487
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4490
test "x$enable_dependency_tracking" != xno \
4491
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4493
am__fastdepCC_FALSE='#'
4495
am__fastdepCC_TRUE='#'
4496
am__fastdepCC_FALSE=
4501
ac_cpp='$CXXCPP $CPPFLAGS'
4502
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4505
if test -z "$CXX"; then
4506
if test -n "$CCC"; then
4509
if test -n "$ac_tool_prefix"; then
4510
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4512
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4513
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515
$as_echo_n "checking for $ac_word... " >&6; }
4516
if test "${ac_cv_prog_CXX+set}" = set; then :
4517
$as_echo_n "(cached) " >&6
4519
if test -n "$CXX"; then
4520
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526
test -z "$as_dir" && as_dir=.
4527
for ac_exec_ext in '' $ac_executable_extensions; do
4528
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4530
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540
if test -n "$CXX"; then
4541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4542
$as_echo "$CXX" >&6; }
4544
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545
$as_echo "no" >&6; }
4549
test -n "$CXX" && break
4552
if test -z "$CXX"; then
4554
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4556
# Extract the first word of "$ac_prog", so it can be a program name with args.
4557
set dummy $ac_prog; ac_word=$2
4558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559
$as_echo_n "checking for $ac_word... " >&6; }
4560
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4561
$as_echo_n "(cached) " >&6
4563
if test -n "$ac_ct_CXX"; then
4564
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570
test -z "$as_dir" && as_dir=.
4571
for ac_exec_ext in '' $ac_executable_extensions; do
4572
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573
ac_cv_prog_ac_ct_CXX="$ac_prog"
4574
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4584
if test -n "$ac_ct_CXX"; then
4585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4586
$as_echo "$ac_ct_CXX" >&6; }
4588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589
$as_echo "no" >&6; }
4593
test -n "$ac_ct_CXX" && break
4596
if test "x$ac_ct_CXX" = x; then
4599
case $cross_compiling:$ac_tool_warned in
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4602
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4603
ac_tool_warned=yes ;;
4611
# Provide some information about the compiler.
4612
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4615
for ac_option in --version -v -V -qversion; do
4616
{ { ac_try="$ac_compiler $ac_option >&5"
4618
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619
*) ac_try_echo=$ac_try;;
4621
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4622
$as_echo "$ac_try_echo"; } >&5
4623
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4625
if test -s conftest.err; then
4627
... rest of stderr output deleted ...
4628
10q' conftest.err >conftest.er1
4629
cat conftest.er1 >&5
4631
rm -f conftest.er1 conftest.err
4632
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4633
test $ac_status = 0; }
4636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4637
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4638
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4639
$as_echo_n "(cached) " >&6
4641
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642
/* end confdefs.h. */
4655
if ac_fn_cxx_try_compile "$LINENO"; then :
4660
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4664
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4665
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4666
if test $ac_compiler_gnu = yes; then
4671
ac_test_CXXFLAGS=${CXXFLAGS+set}
4672
ac_save_CXXFLAGS=$CXXFLAGS
4673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4674
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4675
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4676
$as_echo_n "(cached) " >&6
4678
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4679
ac_cxx_werror_flag=yes
4682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683
/* end confdefs.h. */
4693
if ac_fn_cxx_try_compile "$LINENO"; then :
4694
ac_cv_prog_cxx_g=yes
4697
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698
/* end confdefs.h. */
4708
if ac_fn_cxx_try_compile "$LINENO"; then :
4711
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714
/* end confdefs.h. */
4724
if ac_fn_cxx_try_compile "$LINENO"; then :
4725
ac_cv_prog_cxx_g=yes
4727
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4735
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4736
if test "$ac_test_CXXFLAGS" = set; then
4737
CXXFLAGS=$ac_save_CXXFLAGS
4738
elif test $ac_cv_prog_cxx_g = yes; then
4739
if test "$GXX" = yes; then
4745
if test "$GXX" = yes; then
4752
ac_cpp='$CPP $CPPFLAGS'
4753
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757
depcc="$CXX" am_compiler_list=
4759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760
$as_echo_n "checking dependency style of $depcc... " >&6; }
4761
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4762
$as_echo_n "(cached) " >&6
4764
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765
# We make a subdir and do the tests there. Otherwise we can end up
4766
# making bogus files that we don't know about and never remove. For
4767
# instance it was reported that on HP-UX the gcc test will end up
4768
# making a dummy file named `D' -- because `-MD' means `put the output
4771
# Copy depcomp to subdir because otherwise we won't find it if we're
4772
# using a relative directory.
4773
cp "$am_depcomp" conftest.dir
4775
# We will build objects and dependencies in a subdirectory because
4776
# it helps to detect inapplicable dependency modes. For instance
4777
# both Tru64's cc and ICC support -MD to output dependencies as a
4778
# side effect of compilation, but ICC will put the dependencies in
4779
# the current directory while Tru64 will put them in the object
4783
am_cv_CXX_dependencies_compiler_type=none
4784
if test "$am_compiler_list" = ""; then
4785
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4788
case " $depcc " in #(
4789
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4792
for depmode in $am_compiler_list; do
4793
# Setup a source with many dependencies, because some compilers
4794
# like to wrap large dependency lists on column 80 (with \), and
4795
# we should not choose a depcomp mode which is confused by this.
4797
# We need to recreate these files for each test, as the compiler may
4798
# overwrite some of them when testing with obscure command lines.
4799
# This happens at least with the AIX C compiler.
4801
for i in 1 2 3 4 5 6; do
4802
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4803
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4804
# Solaris 8's {/usr,}/bin/sh.
4805
touch sub/conftst$i.h
4807
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4809
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4810
# mode. It turns out that the SunPro C++ compiler does not properly
4811
# handle `-M -o', and we need to detect this. Also, some Intel
4812
# versions had trouble with output in subdirs
4813
am__obj=sub/conftest.${OBJEXT-o}
4814
am__minus_obj="-o $am__obj"
4817
# This depmode causes a compiler race in universal mode.
4818
test "$am__universal" = false || continue
4821
# after this tag, mechanisms are not by side-effect, so they'll
4822
# only be used when explicitly requested
4823
if test "x$enable_dependency_tracking" = xyes; then
4829
msvisualcpp | msvcmsys)
4830
# This compiler won't grok `-c -o', but also, the minuso test has
4831
# not run yet. These depmodes are late enough in the game, and
4832
# so weak that their functioning should not be impacted.
4833
am__obj=conftest.${OBJEXT-o}
4838
if depmode=$depmode \
4839
source=sub/conftest.c object=$am__obj \
4840
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4841
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4842
>/dev/null 2>conftest.err &&
4843
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4844
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4845
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4846
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4847
# icc doesn't choke on unknown options, it will just issue warnings
4848
# or remarks (even with -Werror). So we grep stderr for any message
4849
# that says an option was ignored or not supported.
4850
# When given -MP, icc 7.0 and 7.1 complain thusly:
4851
# icc: Command line warning: ignoring option '-M'; no argument required
4852
# The diagnosis changed in icc 8.0:
4853
# icc: Command line remark: option '-MP' not supported
4854
if (grep 'ignoring option' conftest.err ||
4855
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4856
am_cv_CXX_dependencies_compiler_type=$depmode
4865
am_cv_CXX_dependencies_compiler_type=none
4869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4870
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4871
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4874
test "x$enable_dependency_tracking" != xno \
4875
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4876
am__fastdepCXX_TRUE=
4877
am__fastdepCXX_FALSE='#'
4879
am__fastdepCXX_TRUE='#'
4880
am__fastdepCXX_FALSE=
4885
ac_cpp='$CPP $CPPFLAGS'
4886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4890
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4891
# On Suns, sometimes $CPP names a directory.
4892
if test -n "$CPP" && test -d "$CPP"; then
4895
if test -z "$CPP"; then
4896
if test "${ac_cv_prog_CPP+set}" = set; then :
4897
$as_echo_n "(cached) " >&6
4899
# Double quotes because CPP needs to be expanded
4900
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4903
for ac_c_preproc_warn_flag in '' yes
4905
# Use a header file that comes with gcc, so configuring glibc
4906
# with a fresh cross-compiler works.
4907
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4908
# <limits.h> exists even on freestanding compilers.
4909
# On the NeXT, cc -E runs the code through the compiler's parser,
4910
# not just through cpp. "Syntax error" is here to catch this case.
4911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912
/* end confdefs.h. */
4914
# include <limits.h>
4916
# include <assert.h>
4920
if ac_fn_c_try_cpp "$LINENO"; then :
4923
# Broken: fails on valid input.
4926
rm -f conftest.err conftest.i conftest.$ac_ext
4928
# OK, works on sane cases. Now check whether nonexistent headers
4929
# can be detected and how.
4930
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931
/* end confdefs.h. */
4932
#include <ac_nonexistent.h>
4934
if ac_fn_c_try_cpp "$LINENO"; then :
4935
# Broken: success on invalid input.
4938
# Passes both tests.
4942
rm -f conftest.err conftest.i conftest.$ac_ext
4945
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4946
rm -f conftest.i conftest.err conftest.$ac_ext
4947
if $ac_preproc_ok; then :
4959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4960
$as_echo "$CPP" >&6; }
4962
for ac_c_preproc_warn_flag in '' yes
4964
# Use a header file that comes with gcc, so configuring glibc
4965
# with a fresh cross-compiler works.
4966
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4967
# <limits.h> exists even on freestanding compilers.
4968
# On the NeXT, cc -E runs the code through the compiler's parser,
4969
# not just through cpp. "Syntax error" is here to catch this case.
4970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971
/* end confdefs.h. */
4973
# include <limits.h>
4975
# include <assert.h>
4979
if ac_fn_c_try_cpp "$LINENO"; then :
4982
# Broken: fails on valid input.
4985
rm -f conftest.err conftest.i conftest.$ac_ext
4987
# OK, works on sane cases. Now check whether nonexistent headers
4988
# can be detected and how.
4989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990
/* end confdefs.h. */
4991
#include <ac_nonexistent.h>
4993
if ac_fn_c_try_cpp "$LINENO"; then :
4994
# Broken: success on invalid input.
4997
# Passes both tests.
5001
rm -f conftest.err conftest.i conftest.$ac_ext
5004
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005
rm -f conftest.i conftest.err conftest.$ac_ext
5006
if $ac_preproc_ok; then :
5009
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5010
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5011
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5012
See \`config.log' for more details" "$LINENO" 5 ; }
5016
ac_cpp='$CPP $CPPFLAGS'
5017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5023
$as_echo_n "checking whether ln -s works... " >&6; }
5025
if test "$LN_S" = "ln -s"; then
5026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027
$as_echo "yes" >&6; }
5029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5030
$as_echo "no, using $LN_S" >&6; }
5033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5034
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5036
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5037
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5038
$as_echo_n "(cached) " >&6
5040
cat >conftest.make <<\_ACEOF
5043
@echo '@@@%%%=$(MAKE)=@@@%%%'
5045
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5046
case `${MAKE-make} -f conftest.make 2>/dev/null` in
5048
eval ac_cv_prog_make_${ac_make}_set=yes;;
5050
eval ac_cv_prog_make_${ac_make}_set=no;;
5054
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5056
$as_echo "yes" >&6; }
5059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060
$as_echo "no" >&6; }
5061
SET_MAKE="MAKE=${MAKE-make}"
5067
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5068
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5073
macro_version='2.2.6b'
5074
macro_revision='1.3017'
5088
ltmain="$ac_aux_dir/ltmain.sh"
5090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5091
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5092
if test "${ac_cv_path_SED+set}" = set; then :
5093
$as_echo_n "(cached) " >&6
5095
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5096
for ac_i in 1 2 3 4 5 6 7; do
5097
ac_script="$ac_script$as_nl$ac_script"
5099
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5100
{ ac_script=; unset ac_script;}
5101
if test -z "$SED"; then
5102
ac_path_SED_found=false
5103
# Loop through the user's path and test for each of PROGNAME-LIST
5104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108
test -z "$as_dir" && as_dir=.
5109
for ac_prog in sed gsed; do
5110
for ac_exec_ext in '' $ac_executable_extensions; do
5111
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5112
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5113
# Check for GNU ac_path_SED and select it if it is found.
5114
# Check for GNU $ac_path_SED
5115
case `"$ac_path_SED" --version 2>&1` in
5117
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5120
$as_echo_n 0123456789 >"conftest.in"
5123
cat "conftest.in" "conftest.in" >"conftest.tmp"
5124
mv "conftest.tmp" "conftest.in"
5125
cp "conftest.in" "conftest.nl"
5126
$as_echo '' >> "conftest.nl"
5127
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5128
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5129
as_fn_arith $ac_count + 1 && ac_count=$as_val
5130
if test $ac_count -gt ${ac_path_SED_max-0}; then
5131
# Best one so far, save it but keep looking for a better one
5132
ac_cv_path_SED="$ac_path_SED"
5133
ac_path_SED_max=$ac_count
5135
# 10*(2^10) chars as input seems more than enough
5136
test $ac_count -gt 10 && break
5138
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141
$ac_path_SED_found && break 3
5146
if test -z "$ac_cv_path_SED"; then
5147
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5155
$as_echo "$ac_cv_path_SED" >&6; }
5156
SED="$ac_cv_path_SED"
5159
test -z "$SED" && SED=sed
5160
Xsed="$SED -e 1s/^X//"
5172
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5173
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5174
if test "${ac_cv_path_GREP+set}" = set; then :
5175
$as_echo_n "(cached) " >&6
5177
if test -z "$GREP"; then
5178
ac_path_GREP_found=false
5179
# Loop through the user's path and test for each of PROGNAME-LIST
5180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184
test -z "$as_dir" && as_dir=.
5185
for ac_prog in grep ggrep; do
5186
for ac_exec_ext in '' $ac_executable_extensions; do
5187
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5188
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5189
# Check for GNU ac_path_GREP and select it if it is found.
5190
# Check for GNU $ac_path_GREP
5191
case `"$ac_path_GREP" --version 2>&1` in
5193
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5196
$as_echo_n 0123456789 >"conftest.in"
5199
cat "conftest.in" "conftest.in" >"conftest.tmp"
5200
mv "conftest.tmp" "conftest.in"
5201
cp "conftest.in" "conftest.nl"
5202
$as_echo 'GREP' >> "conftest.nl"
5203
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205
as_fn_arith $ac_count + 1 && ac_count=$as_val
5206
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5207
# Best one so far, save it but keep looking for a better one
5208
ac_cv_path_GREP="$ac_path_GREP"
5209
ac_path_GREP_max=$ac_count
5211
# 10*(2^10) chars as input seems more than enough
5212
test $ac_count -gt 10 && break
5214
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217
$ac_path_GREP_found && break 3
5222
if test -z "$ac_cv_path_GREP"; then
5223
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226
ac_cv_path_GREP=$GREP
5230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5231
$as_echo "$ac_cv_path_GREP" >&6; }
5232
GREP="$ac_cv_path_GREP"
5235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5236
$as_echo_n "checking for egrep... " >&6; }
5237
if test "${ac_cv_path_EGREP+set}" = set; then :
5238
$as_echo_n "(cached) " >&6
5240
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5241
then ac_cv_path_EGREP="$GREP -E"
5243
if test -z "$EGREP"; then
5244
ac_path_EGREP_found=false
5245
# Loop through the user's path and test for each of PROGNAME-LIST
5246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5250
test -z "$as_dir" && as_dir=.
5251
for ac_prog in egrep; do
5252
for ac_exec_ext in '' $ac_executable_extensions; do
5253
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5254
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5255
# Check for GNU ac_path_EGREP and select it if it is found.
5256
# Check for GNU $ac_path_EGREP
5257
case `"$ac_path_EGREP" --version 2>&1` in
5259
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5262
$as_echo_n 0123456789 >"conftest.in"
5265
cat "conftest.in" "conftest.in" >"conftest.tmp"
5266
mv "conftest.tmp" "conftest.in"
5267
cp "conftest.in" "conftest.nl"
5268
$as_echo 'EGREP' >> "conftest.nl"
5269
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271
as_fn_arith $ac_count + 1 && ac_count=$as_val
5272
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5273
# Best one so far, save it but keep looking for a better one
5274
ac_cv_path_EGREP="$ac_path_EGREP"
5275
ac_path_EGREP_max=$ac_count
5277
# 10*(2^10) chars as input seems more than enough
5278
test $ac_count -gt 10 && break
5280
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283
$ac_path_EGREP_found && break 3
5288
if test -z "$ac_cv_path_EGREP"; then
5289
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5292
ac_cv_path_EGREP=$EGREP
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5298
$as_echo "$ac_cv_path_EGREP" >&6; }
5299
EGREP="$ac_cv_path_EGREP"
5302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5303
$as_echo_n "checking for fgrep... " >&6; }
5304
if test "${ac_cv_path_FGREP+set}" = set; then :
5305
$as_echo_n "(cached) " >&6
5307
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5308
then ac_cv_path_FGREP="$GREP -F"
5310
if test -z "$FGREP"; then
5311
ac_path_FGREP_found=false
5312
# Loop through the user's path and test for each of PROGNAME-LIST
5313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5317
test -z "$as_dir" && as_dir=.
5318
for ac_prog in fgrep; do
5319
for ac_exec_ext in '' $ac_executable_extensions; do
5320
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5321
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5322
# Check for GNU ac_path_FGREP and select it if it is found.
5323
# Check for GNU $ac_path_FGREP
5324
case `"$ac_path_FGREP" --version 2>&1` in
5326
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5329
$as_echo_n 0123456789 >"conftest.in"
5332
cat "conftest.in" "conftest.in" >"conftest.tmp"
5333
mv "conftest.tmp" "conftest.in"
5334
cp "conftest.in" "conftest.nl"
5335
$as_echo 'FGREP' >> "conftest.nl"
5336
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5337
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5338
as_fn_arith $ac_count + 1 && ac_count=$as_val
5339
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5340
# Best one so far, save it but keep looking for a better one
5341
ac_cv_path_FGREP="$ac_path_FGREP"
5342
ac_path_FGREP_max=$ac_count
5344
# 10*(2^10) chars as input seems more than enough
5345
test $ac_count -gt 10 && break
5347
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5350
$ac_path_FGREP_found && break 3
5355
if test -z "$ac_cv_path_FGREP"; then
5356
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5359
ac_cv_path_FGREP=$FGREP
5364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5365
$as_echo "$ac_cv_path_FGREP" >&6; }
5366
FGREP="$ac_cv_path_FGREP"
5369
test -z "$GREP" && GREP=grep
5389
# Check whether --with-gnu-ld was given.
5390
if test "${with_gnu_ld+set}" = set; then :
5391
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5397
if test "$GCC" = yes; then
5398
# Check if gcc -print-prog-name=ld gives a path.
5399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5400
$as_echo_n "checking for ld used by $CC... " >&6; }
5403
# gcc leaves a trailing carriage return which upsets mingw
5404
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5406
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5409
# Accept absolute paths.
5411
re_direlt='/[^/][^/]*/\.\./'
5412
# Canonicalize the pathname of ld
5413
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5414
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5415
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5417
test -z "$LD" && LD="$ac_prog"
5420
# If it fails, then pretend we aren't using GCC.
5424
# If it is relative, then search for the first ld in PATH.
5428
elif test "$with_gnu_ld" = yes; then
5429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5430
$as_echo_n "checking for GNU ld... " >&6; }
5432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5433
$as_echo_n "checking for non-GNU ld... " >&6; }
5435
if test "${lt_cv_path_LD+set}" = set; then :
5436
$as_echo_n "(cached) " >&6
5438
if test -z "$LD"; then
5439
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5440
for ac_dir in $PATH; do
5442
test -z "$ac_dir" && ac_dir=.
5443
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5444
lt_cv_path_LD="$ac_dir/$ac_prog"
5445
# Check to see if the program is GNU ld. I'd rather use --version,
5446
# but apparently some variants of GNU ld only accept -v.
5447
# Break only if it was the GNU/non-GNU ld that we prefer.
5448
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5449
*GNU* | *'with BFD'*)
5450
test "$with_gnu_ld" != no && break
5453
test "$with_gnu_ld" != yes && break
5460
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5465
if test -n "$LD"; then
5466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5467
$as_echo "$LD" >&6; }
5469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470
$as_echo "no" >&6; }
5472
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5474
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5475
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5476
$as_echo_n "(cached) " >&6
5478
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5479
case `$LD -v 2>&1 </dev/null` in
5480
*GNU* | *'with BFD'*)
5481
lt_cv_prog_gnu_ld=yes
5484
lt_cv_prog_gnu_ld=no
5488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5489
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5490
with_gnu_ld=$lt_cv_prog_gnu_ld
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5501
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5502
if test "${lt_cv_path_NM+set}" = set; then :
5503
$as_echo_n "(cached) " >&6
5505
if test -n "$NM"; then
5506
# Let the user override the test.
5509
lt_nm_to_check="${ac_tool_prefix}nm"
5510
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5511
lt_nm_to_check="$lt_nm_to_check nm"
5513
for lt_tmp_nm in $lt_nm_to_check; do
5514
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5515
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5517
test -z "$ac_dir" && ac_dir=.
5518
tmp_nm="$ac_dir/$lt_tmp_nm"
5519
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5520
# Check to see if the nm accepts a BSD-compat flag.
5521
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5522
# nm: unknown option "B" ignored
5523
# Tru64's nm complains that /dev/null is an invalid object file
5524
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5525
*/dev/null* | *'Invalid file or object type'*)
5526
lt_cv_path_NM="$tmp_nm -B"
5530
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5532
lt_cv_path_NM="$tmp_nm -p"
5536
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5537
continue # so that we can try to find one that supports BSD flags
5546
: ${lt_cv_path_NM=no}
5549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5550
$as_echo "$lt_cv_path_NM" >&6; }
5551
if test "$lt_cv_path_NM" != "no"; then
5554
# Didn't find any BSD compatible name lister, look for dumpbin.
5555
if test -n "$ac_tool_prefix"; then
5556
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5558
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561
$as_echo_n "checking for $ac_word... " >&6; }
5562
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5563
$as_echo_n "(cached) " >&6
5565
if test -n "$DUMPBIN"; then
5566
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572
test -z "$as_dir" && as_dir=.
5573
for ac_exec_ext in '' $ac_executable_extensions; do
5574
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5576
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585
DUMPBIN=$ac_cv_prog_DUMPBIN
5586
if test -n "$DUMPBIN"; then
5587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5588
$as_echo "$DUMPBIN" >&6; }
5590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591
$as_echo "no" >&6; }
5595
test -n "$DUMPBIN" && break
5598
if test -z "$DUMPBIN"; then
5599
ac_ct_DUMPBIN=$DUMPBIN
5600
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5602
# Extract the first word of "$ac_prog", so it can be a program name with args.
5603
set dummy $ac_prog; ac_word=$2
5604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605
$as_echo_n "checking for $ac_word... " >&6; }
5606
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5607
$as_echo_n "(cached) " >&6
5609
if test -n "$ac_ct_DUMPBIN"; then
5610
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616
test -z "$as_dir" && as_dir=.
5617
for ac_exec_ext in '' $ac_executable_extensions; do
5618
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5620
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5630
if test -n "$ac_ct_DUMPBIN"; then
5631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5632
$as_echo "$ac_ct_DUMPBIN" >&6; }
5634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635
$as_echo "no" >&6; }
5639
test -n "$ac_ct_DUMPBIN" && break
5642
if test "x$ac_ct_DUMPBIN" = x; then
5645
case $cross_compiling:$ac_tool_warned in
5647
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649
ac_tool_warned=yes ;;
5651
DUMPBIN=$ac_ct_DUMPBIN
5656
if test "$DUMPBIN" != ":"; then
5660
test -z "$NM" && NM=nm
5667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5668
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5669
if test "${lt_cv_nm_interface+set}" = set; then :
5670
$as_echo_n "(cached) " >&6
5672
lt_cv_nm_interface="BSD nm"
5673
echo "int some_variable = 0;" > conftest.$ac_ext
5674
(eval echo "\"\$as_me:5674: $ac_compile\"" >&5)
5675
(eval "$ac_compile" 2>conftest.err)
5676
cat conftest.err >&5
5677
(eval echo "\"\$as_me:5677: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5678
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5679
cat conftest.err >&5
5680
(eval echo "\"\$as_me:5680: output\"" >&5)
5681
cat conftest.out >&5
5682
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5683
lt_cv_nm_interface="MS dumpbin"
5687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5688
$as_echo "$lt_cv_nm_interface" >&6; }
5690
# find the maximum length of command line arguments
5691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5692
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5693
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5694
$as_echo_n "(cached) " >&6
5701
# On DJGPP, this test can blow up pretty badly due to problems in libc
5702
# (any single argument exceeding 2000 bytes causes a buffer overrun
5703
# during glob expansion). Even if it were fixed, the result of this
5704
# check would be larger than it should be.
5705
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5709
# Under GNU Hurd, this test is not required because there is
5710
# no limit to the length of command line arguments.
5711
# Libtool will interpret -1 as no limit whatsoever
5712
lt_cv_sys_max_cmd_len=-1;
5715
cygwin* | mingw* | cegcc*)
5716
# On Win9x/ME, this test blows up -- it succeeds, but takes
5717
# about 5 minutes as the teststring grows exponentially.
5718
# Worse, since 9x/ME are not pre-emptively multitasking,
5719
# you end up with a "frozen" computer, even though with patience
5720
# the test eventually succeeds (with a max line length of 256k).
5721
# Instead, let's just punt: use the minimum linelength reported by
5722
# all of the supported platforms: 8192 (on NT/2K/XP).
5723
lt_cv_sys_max_cmd_len=8192;
5727
# On AmigaOS with pdksh, this test takes hours, literally.
5728
# So we just punt and use a minimum line length of 8192.
5729
lt_cv_sys_max_cmd_len=8192;
5732
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5733
# This has been around since 386BSD, at least. Likely further.
5734
if test -x /sbin/sysctl; then
5735
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5736
elif test -x /usr/sbin/sysctl; then
5737
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5739
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5741
# And add a safety zone
5742
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5743
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5747
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5748
lt_cv_sys_max_cmd_len=196608
5752
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5753
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5754
# nice to cause kernel panics so lets avoid the loop below.
5755
# First set a reasonable default.
5756
lt_cv_sys_max_cmd_len=16384
5758
if test -x /sbin/sysconfig; then
5759
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5760
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5765
lt_cv_sys_max_cmd_len=102400
5767
sysv5* | sco5v6* | sysv4.2uw2*)
5768
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5769
if test -n "$kargmax"; then
5770
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5772
lt_cv_sys_max_cmd_len=32768
5776
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5777
if test -n "$lt_cv_sys_max_cmd_len"; then
5778
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5779
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5781
# Make teststring a little bigger before we do anything with it.
5782
# a 1K string should be a reasonable start.
5783
for i in 1 2 3 4 5 6 7 8 ; do
5784
teststring=$teststring$teststring
5786
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5787
# If test is not a shell built-in, we'll probably end up computing a
5788
# maximum length that is only half of the actual maximum length, but
5790
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5791
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5792
test $i != 17 # 1/2 MB should be enough
5795
teststring=$teststring$teststring
5797
# Only check the string length outside the loop.
5798
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5800
# Add a significant safety factor because C++ compilers can tack on
5801
# massive amounts of additional arguments before passing them to the
5802
# linker. It appears as though 1/2 is a usable value.
5803
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5810
if test -n $lt_cv_sys_max_cmd_len ; then
5811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5812
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5815
$as_echo "none" >&6; }
5817
max_cmd_len=$lt_cv_sys_max_cmd_len
5828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5829
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5830
# Try some XSI features
5833
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5835
&& eval 'test $(( 1 + 1 )) -eq 2 \
5836
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5839
$as_echo "$xsi_shell" >&6; }
5842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5843
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5845
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5847
&& lt_shell_append=yes
5848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5849
$as_echo "$lt_shell_append" >&6; }
5852
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5862
# test EBCDIC or ASCII
5863
case `echo X|tr X '\101'` in
5864
A) # ASCII based system
5865
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5866
lt_SP2NL='tr \040 \012'
5867
lt_NL2SP='tr \015\012 \040\040'
5869
*) # EBCDIC based system
5870
lt_SP2NL='tr \100 \n'
5871
lt_NL2SP='tr \r\n \100\100'
5883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5884
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5885
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5886
$as_echo_n "(cached) " >&6
5888
lt_cv_ld_reload_flag='-r'
5890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5891
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5892
reload_flag=$lt_cv_ld_reload_flag
5893
case $reload_flag in
5895
*) reload_flag=" $reload_flag" ;;
5897
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5900
if test "$GCC" = yes; then
5901
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5903
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5916
if test -n "$ac_tool_prefix"; then
5917
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5918
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5919
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920
$as_echo_n "checking for $ac_word... " >&6; }
5921
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5922
$as_echo_n "(cached) " >&6
5924
if test -n "$OBJDUMP"; then
5925
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931
test -z "$as_dir" && as_dir=.
5932
for ac_exec_ext in '' $ac_executable_extensions; do
5933
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5934
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5935
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944
OBJDUMP=$ac_cv_prog_OBJDUMP
5945
if test -n "$OBJDUMP"; then
5946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5947
$as_echo "$OBJDUMP" >&6; }
5949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950
$as_echo "no" >&6; }
5955
if test -z "$ac_cv_prog_OBJDUMP"; then
5956
ac_ct_OBJDUMP=$OBJDUMP
5957
# Extract the first word of "objdump", so it can be a program name with args.
5958
set dummy objdump; ac_word=$2
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960
$as_echo_n "checking for $ac_word... " >&6; }
5961
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5962
$as_echo_n "(cached) " >&6
5964
if test -n "$ac_ct_OBJDUMP"; then
5965
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971
test -z "$as_dir" && as_dir=.
5972
for ac_exec_ext in '' $ac_executable_extensions; do
5973
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5975
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5985
if test -n "$ac_ct_OBJDUMP"; then
5986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5987
$as_echo "$ac_ct_OBJDUMP" >&6; }
5989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990
$as_echo "no" >&6; }
5993
if test "x$ac_ct_OBJDUMP" = x; then
5996
case $cross_compiling:$ac_tool_warned in
5998
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000
ac_tool_warned=yes ;;
6002
OBJDUMP=$ac_ct_OBJDUMP
6005
OBJDUMP="$ac_cv_prog_OBJDUMP"
6008
test -z "$OBJDUMP" && OBJDUMP=objdump
6018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6019
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6020
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6021
$as_echo_n "(cached) " >&6
6023
lt_cv_file_magic_cmd='$MAGIC_CMD'
6024
lt_cv_file_magic_test_file=
6025
lt_cv_deplibs_check_method='unknown'
6026
# Need to set the preceding variable on all platforms that support
6027
# interlibrary dependencies.
6028
# 'none' -- dependencies not supported.
6029
# `unknown' -- same as none, but documents that we really don't know.
6030
# 'pass_all' -- all dependencies passed with no checks.
6031
# 'test_compile' -- check by making test program.
6032
# 'file_magic [[regex]]' -- check by looking for files in library path
6033
# which responds to the $file_magic_cmd with a given extended regex.
6034
# If you have `file' or equivalent on your system and you're not sure
6035
# whether `pass_all' will *always* work, you probably want this one.
6039
lt_cv_deplibs_check_method=pass_all
6043
lt_cv_deplibs_check_method=pass_all
6047
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6048
lt_cv_file_magic_cmd='/usr/bin/file -L'
6049
lt_cv_file_magic_test_file=/shlib/libc.so
6053
# func_win32_libid is a shell function defined in ltmain.sh
6054
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6055
lt_cv_file_magic_cmd='func_win32_libid'
6059
# Base MSYS/MinGW do not provide the 'file' command needed by
6060
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6061
# unless we find 'file', for example because we are cross-compiling.
6062
if ( file / ) >/dev/null 2>&1; then
6063
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6064
lt_cv_file_magic_cmd='func_win32_libid'
6066
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6067
lt_cv_file_magic_cmd='$OBJDUMP -f'
6072
# use the weaker test based on 'objdump'. See mingw*.
6073
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6074
lt_cv_file_magic_cmd='$OBJDUMP -f'
6077
darwin* | rhapsody*)
6078
lt_cv_deplibs_check_method=pass_all
6081
freebsd* | dragonfly*)
6082
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6085
# Not sure whether the presence of OpenBSD here was a mistake.
6086
# Let's accept both of them until this is cleared up.
6087
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6088
lt_cv_file_magic_cmd=/usr/bin/file
6089
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6093
lt_cv_deplibs_check_method=pass_all
6098
lt_cv_deplibs_check_method=pass_all
6101
hpux10.20* | hpux11*)
6102
lt_cv_file_magic_cmd=/usr/bin/file
6105
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6106
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6109
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]'
6110
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6113
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6114
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6120
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6121
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6124
irix5* | irix6* | nonstopux*)
6126
*-32|*"-32 ") libmagic=32-bit;;
6127
*-n32|*"-n32 ") libmagic=N32;;
6128
*-64|*"-64 ") libmagic=64-bit;;
6129
*) libmagic=never-match;;
6131
lt_cv_deplibs_check_method=pass_all
6134
# This must be Linux ELF.
6135
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6136
lt_cv_deplibs_check_method=pass_all
6139
netbsd* | netbsdelf*-gnu)
6140
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6141
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6143
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6148
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6149
lt_cv_file_magic_cmd=/usr/bin/file
6150
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6154
lt_cv_deplibs_check_method=pass_all
6158
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6159
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6161
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6165
osf3* | osf4* | osf5*)
6166
lt_cv_deplibs_check_method=pass_all
6170
lt_cv_deplibs_check_method=pass_all
6174
lt_cv_deplibs_check_method=pass_all
6177
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6178
lt_cv_deplibs_check_method=pass_all
6182
case $host_vendor in
6184
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]'
6185
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6188
lt_cv_deplibs_check_method=pass_all
6191
lt_cv_file_magic_cmd='/bin/file'
6192
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6195
lt_cv_file_magic_cmd='/bin/file'
6196
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6197
lt_cv_file_magic_test_file=/lib/libc.so
6200
lt_cv_deplibs_check_method=pass_all
6203
lt_cv_deplibs_check_method=pass_all
6209
lt_cv_deplibs_check_method=pass_all
6214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6215
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6216
file_magic_cmd=$lt_cv_file_magic_cmd
6217
deplibs_check_method=$lt_cv_deplibs_check_method
6218
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6231
if test -n "$ac_tool_prefix"; then
6232
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6233
set dummy ${ac_tool_prefix}ar; ac_word=$2
6234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235
$as_echo_n "checking for $ac_word... " >&6; }
6236
if test "${ac_cv_prog_AR+set}" = set; then :
6237
$as_echo_n "(cached) " >&6
6239
if test -n "$AR"; then
6240
ac_cv_prog_AR="$AR" # Let the user override the test.
6242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246
test -z "$as_dir" && as_dir=.
6247
for ac_exec_ext in '' $ac_executable_extensions; do
6248
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249
ac_cv_prog_AR="${ac_tool_prefix}ar"
6250
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260
if test -n "$AR"; then
6261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6262
$as_echo "$AR" >&6; }
6264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265
$as_echo "no" >&6; }
6270
if test -z "$ac_cv_prog_AR"; then
6272
# Extract the first word of "ar", so it can be a program name with args.
6273
set dummy ar; ac_word=$2
6274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275
$as_echo_n "checking for $ac_word... " >&6; }
6276
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6277
$as_echo_n "(cached) " >&6
6279
if test -n "$ac_ct_AR"; then
6280
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286
test -z "$as_dir" && as_dir=.
6287
for ac_exec_ext in '' $ac_executable_extensions; do
6288
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289
ac_cv_prog_ac_ct_AR="ar"
6290
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6300
if test -n "$ac_ct_AR"; then
6301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6302
$as_echo "$ac_ct_AR" >&6; }
6304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305
$as_echo "no" >&6; }
6308
if test "x$ac_ct_AR" = x; then
6311
case $cross_compiling:$ac_tool_warned in
6313
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315
ac_tool_warned=yes ;;
6323
test -z "$AR" && AR=ar
6324
test -z "$AR_FLAGS" && AR_FLAGS=cru
6336
if test -n "$ac_tool_prefix"; then
6337
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6338
set dummy ${ac_tool_prefix}strip; ac_word=$2
6339
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340
$as_echo_n "checking for $ac_word... " >&6; }
6341
if test "${ac_cv_prog_STRIP+set}" = set; then :
6342
$as_echo_n "(cached) " >&6
6344
if test -n "$STRIP"; then
6345
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351
test -z "$as_dir" && as_dir=.
6352
for ac_exec_ext in '' $ac_executable_extensions; do
6353
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6355
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364
STRIP=$ac_cv_prog_STRIP
6365
if test -n "$STRIP"; then
6366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6367
$as_echo "$STRIP" >&6; }
6369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370
$as_echo "no" >&6; }
6375
if test -z "$ac_cv_prog_STRIP"; then
6377
# Extract the first word of "strip", so it can be a program name with args.
6378
set dummy strip; ac_word=$2
6379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380
$as_echo_n "checking for $ac_word... " >&6; }
6381
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6382
$as_echo_n "(cached) " >&6
6384
if test -n "$ac_ct_STRIP"; then
6385
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391
test -z "$as_dir" && as_dir=.
6392
for ac_exec_ext in '' $ac_executable_extensions; do
6393
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394
ac_cv_prog_ac_ct_STRIP="strip"
6395
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6404
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6405
if test -n "$ac_ct_STRIP"; then
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6407
$as_echo "$ac_ct_STRIP" >&6; }
6409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410
$as_echo "no" >&6; }
6413
if test "x$ac_ct_STRIP" = x; then
6416
case $cross_compiling:$ac_tool_warned in
6418
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420
ac_tool_warned=yes ;;
6425
STRIP="$ac_cv_prog_STRIP"
6428
test -z "$STRIP" && STRIP=:
6435
if test -n "$ac_tool_prefix"; then
6436
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6437
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439
$as_echo_n "checking for $ac_word... " >&6; }
6440
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6441
$as_echo_n "(cached) " >&6
6443
if test -n "$RANLIB"; then
6444
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450
test -z "$as_dir" && as_dir=.
6451
for ac_exec_ext in '' $ac_executable_extensions; do
6452
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6454
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463
RANLIB=$ac_cv_prog_RANLIB
6464
if test -n "$RANLIB"; then
6465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6466
$as_echo "$RANLIB" >&6; }
6468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469
$as_echo "no" >&6; }
6474
if test -z "$ac_cv_prog_RANLIB"; then
6475
ac_ct_RANLIB=$RANLIB
6476
# Extract the first word of "ranlib", so it can be a program name with args.
6477
set dummy ranlib; ac_word=$2
6478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479
$as_echo_n "checking for $ac_word... " >&6; }
6480
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6481
$as_echo_n "(cached) " >&6
6483
if test -n "$ac_ct_RANLIB"; then
6484
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490
test -z "$as_dir" && as_dir=.
6491
for ac_exec_ext in '' $ac_executable_extensions; do
6492
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493
ac_cv_prog_ac_ct_RANLIB="ranlib"
6494
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6504
if test -n "$ac_ct_RANLIB"; then
6505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6506
$as_echo "$ac_ct_RANLIB" >&6; }
6508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509
$as_echo "no" >&6; }
6512
if test "x$ac_ct_RANLIB" = x; then
6515
case $cross_compiling:$ac_tool_warned in
6517
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519
ac_tool_warned=yes ;;
6521
RANLIB=$ac_ct_RANLIB
6524
RANLIB="$ac_cv_prog_RANLIB"
6527
test -z "$RANLIB" && RANLIB=:
6534
# Determine commands to create old-style static archives.
6535
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6536
old_postinstall_cmds='chmod 644 $oldlib'
6537
old_postuninstall_cmds=
6539
if test -n "$RANLIB"; then
6542
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6545
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6548
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6584
# If no C compiler was specified, use CC.
6587
# If no C compiler flags were specified, use CFLAGS.
6588
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6590
# Allow CC to be a program name with arguments.
6594
# Check for command to grab the raw symbol name followed by C symbol from nm.
6595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6596
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6597
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6598
$as_echo_n "(cached) " >&6
6601
# These are sane defaults that work on at least a few old systems.
6602
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6604
# Character class describing NM global symbol codes.
6605
symcode='[BCDEGRST]'
6607
# Regexp to match symbols that can be accessed directly from C.
6608
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6610
# Define system-specific variables.
6615
cygwin* | mingw* | pw32* | cegcc*)
6616
symcode='[ABCDGISTW]'
6619
if test "$host_cpu" = ia64; then
6620
symcode='[ABCDEGRST]'
6624
symcode='[BCDEGRST]'
6627
symcode='[BCDEGQRST]'
6638
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6646
# If we're using GNU nm, then use its standard symbol codes.
6647
case `$NM -V 2>&1` in
6648
*GNU* | *'with BFD'*)
6649
symcode='[ABCDGIRSTW]' ;;
6652
# Transform an extracted symbol line into a proper C declaration.
6653
# Some systems (esp. on ia64) link data and code symbols differently,
6654
# so use this general approach.
6655
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6657
# Transform an extracted symbol line into symbol name and symbol address
6658
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6659
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'"
6661
# Handle CRLF in mingw tool chain
6665
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6669
# Try without a prefix underscore, then with it.
6670
for ac_symprfx in "" "_"; do
6672
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6673
symxfrm="\\1 $ac_symprfx\\2 \\2"
6675
# Write the raw and C identifiers.
6676
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6677
# Fake it for dumpbin and say T for any non-static function
6678
# and D for any global variable.
6679
# Also find C++ and __fastcall symbols from MSVC++,
6680
# which start with @ or ?.
6681
lt_cv_sys_global_symbol_pipe="$AWK '"\
6682
" {last_section=section; section=\$ 3};"\
6683
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6684
" \$ 0!~/External *\|/{next};"\
6685
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6686
" {if(hide[section]) next};"\
6687
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6688
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6689
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6690
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6691
" ' prfx=^$ac_symprfx"
6693
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6696
# Check to see that the pipe works correctly.
6700
cat > conftest.$ac_ext <<_LT_EOF
6705
void nm_test_func(void);
6706
void nm_test_func(void){}
6710
int main(){nm_test_var='a';nm_test_func();return(0);}
6713
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6714
(eval $ac_compile) 2>&5
6716
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717
test $ac_status = 0; }; then
6718
# Now try to grab the symbols.
6720
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6721
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6723
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724
test $ac_status = 0; } && test -s "$nlist"; then
6725
# Try sorting and uniquifying the output.
6726
if sort "$nlist" | uniq > "$nlist"T; then
6727
mv -f "$nlist"T "$nlist"
6732
# Make sure that we snagged all the symbols we need.
6733
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6734
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6735
cat <<_LT_EOF > conftest.$ac_ext
6741
# Now generate the symbol file.
6742
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6744
cat <<_LT_EOF >> conftest.$ac_ext
6746
/* The mapping between symbol names and symbols. */
6751
lt__PROGRAM__LTX_preloaded_symbols[] =
6753
{ "@PROGRAM@", (void *) 0 },
6755
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6756
cat <<\_LT_EOF >> conftest.$ac_ext
6760
/* This works around a problem in FreeBSD linker */
6761
#ifdef FREEBSD_WORKAROUND
6762
static const void *lt_preloaded_setup() {
6763
return lt__PROGRAM__LTX_preloaded_symbols;
6771
# Now try linking the two files.
6772
mv conftest.$ac_objext conftstm.$ac_objext
6773
lt_save_LIBS="$LIBS"
6774
lt_save_CFLAGS="$CFLAGS"
6775
LIBS="conftstm.$ac_objext"
6776
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6777
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6778
(eval $ac_link) 2>&5
6780
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6781
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6784
LIBS="$lt_save_LIBS"
6785
CFLAGS="$lt_save_CFLAGS"
6787
echo "cannot find nm_test_func in $nlist" >&5
6790
echo "cannot find nm_test_var in $nlist" >&5
6793
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6796
echo "$progname: failed program was:" >&5
6797
cat conftest.$ac_ext >&5
6799
rm -rf conftest* conftst*
6801
# Do not use the global_symbol_pipe unless it works.
6802
if test "$pipe_works" = yes; then
6805
lt_cv_sys_global_symbol_pipe=
6811
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6812
lt_cv_sys_global_symbol_to_cdecl=
6814
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6816
$as_echo "failed" >&6; }
6818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6819
$as_echo "ok" >&6; }
6844
# Check whether --enable-libtool-lock was given.
6845
if test "${enable_libtool_lock+set}" = set; then :
6846
enableval=$enable_libtool_lock;
6849
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6851
# Some flags need to be propagated to the compiler or linker for good
6855
# Find out which ABI we are using.
6856
echo 'int i;' > conftest.$ac_ext
6857
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6858
(eval $ac_compile) 2>&5
6860
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861
test $ac_status = 0; }; then
6862
case `/usr/bin/file conftest.$ac_objext` in
6874
# Find out which ABI we are using.
6875
echo '#line 6875 "configure"' > conftest.$ac_ext
6876
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6877
(eval $ac_compile) 2>&5
6879
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880
test $ac_status = 0; }; then
6881
if test "$lt_cv_prog_gnu_ld" = yes; then
6882
case `/usr/bin/file conftest.$ac_objext` in
6884
LD="${LD-ld} -melf32bsmip"
6887
LD="${LD-ld} -melf32bmipn32"
6890
LD="${LD-ld} -melf64bmip"
6894
case `/usr/bin/file conftest.$ac_objext` in
6910
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6911
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6912
# Find out which ABI we are using.
6913
echo 'int i;' > conftest.$ac_ext
6914
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6915
(eval $ac_compile) 2>&5
6917
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918
test $ac_status = 0; }; then
6919
case `/usr/bin/file conftest.o` in
6922
x86_64-*kfreebsd*-gnu)
6923
LD="${LD-ld} -m elf_i386_fbsd"
6926
LD="${LD-ld} -m elf_i386"
6928
ppc64-*linux*|powerpc64-*linux*)
6929
LD="${LD-ld} -m elf32ppclinux"
6932
LD="${LD-ld} -m elf_s390"
6935
LD="${LD-ld} -m elf32_sparc"
6941
x86_64-*kfreebsd*-gnu)
6942
LD="${LD-ld} -m elf_x86_64_fbsd"
6945
LD="${LD-ld} -m elf_x86_64"
6947
ppc*-*linux*|powerpc*-*linux*)
6948
LD="${LD-ld} -m elf64ppc"
6950
s390*-*linux*|s390*-*tpf*)
6951
LD="${LD-ld} -m elf64_s390"
6954
LD="${LD-ld} -m elf64_sparc"
6964
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6965
SAVE_CFLAGS="$CFLAGS"
6966
CFLAGS="$CFLAGS -belf"
6967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6968
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6969
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6970
$as_echo_n "(cached) " >&6
6973
ac_cpp='$CPP $CPPFLAGS'
6974
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979
/* end confdefs.h. */
6989
if ac_fn_c_try_link "$LINENO"; then :
6990
lt_cv_cc_needs_belf=yes
6992
lt_cv_cc_needs_belf=no
6994
rm -f core conftest.err conftest.$ac_objext \
6995
conftest$ac_exeext conftest.$ac_ext
6997
ac_cpp='$CPP $CPPFLAGS'
6998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7004
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7005
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7006
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7007
CFLAGS="$SAVE_CFLAGS"
7011
# Find out which ABI we are using.
7012
echo 'int i;' > conftest.$ac_ext
7013
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7014
(eval $ac_compile) 2>&5
7016
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7017
test $ac_status = 0; }; then
7018
case `/usr/bin/file conftest.o` in
7020
case $lt_cv_prog_gnu_ld in
7021
yes*) LD="${LD-ld} -m elf64_sparc" ;;
7023
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7035
need_locks="$enable_libtool_lock"
7039
rhapsody* | darwin*)
7040
if test -n "$ac_tool_prefix"; then
7041
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7042
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044
$as_echo_n "checking for $ac_word... " >&6; }
7045
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7046
$as_echo_n "(cached) " >&6
7048
if test -n "$DSYMUTIL"; then
7049
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055
test -z "$as_dir" && as_dir=.
7056
for ac_exec_ext in '' $ac_executable_extensions; do
7057
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7059
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7069
if test -n "$DSYMUTIL"; then
7070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7071
$as_echo "$DSYMUTIL" >&6; }
7073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074
$as_echo "no" >&6; }
7079
if test -z "$ac_cv_prog_DSYMUTIL"; then
7080
ac_ct_DSYMUTIL=$DSYMUTIL
7081
# Extract the first word of "dsymutil", so it can be a program name with args.
7082
set dummy dsymutil; ac_word=$2
7083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084
$as_echo_n "checking for $ac_word... " >&6; }
7085
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7086
$as_echo_n "(cached) " >&6
7088
if test -n "$ac_ct_DSYMUTIL"; then
7089
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7091
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095
test -z "$as_dir" && as_dir=.
7096
for ac_exec_ext in '' $ac_executable_extensions; do
7097
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7099
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7109
if test -n "$ac_ct_DSYMUTIL"; then
7110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7111
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114
$as_echo "no" >&6; }
7117
if test "x$ac_ct_DSYMUTIL" = x; then
7120
case $cross_compiling:$ac_tool_warned in
7122
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7123
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7124
ac_tool_warned=yes ;;
7126
DSYMUTIL=$ac_ct_DSYMUTIL
7129
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7132
if test -n "$ac_tool_prefix"; then
7133
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7134
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136
$as_echo_n "checking for $ac_word... " >&6; }
7137
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7138
$as_echo_n "(cached) " >&6
7140
if test -n "$NMEDIT"; then
7141
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147
test -z "$as_dir" && as_dir=.
7148
for ac_exec_ext in '' $ac_executable_extensions; do
7149
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7151
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160
NMEDIT=$ac_cv_prog_NMEDIT
7161
if test -n "$NMEDIT"; then
7162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7163
$as_echo "$NMEDIT" >&6; }
7165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166
$as_echo "no" >&6; }
7171
if test -z "$ac_cv_prog_NMEDIT"; then
7172
ac_ct_NMEDIT=$NMEDIT
7173
# Extract the first word of "nmedit", so it can be a program name with args.
7174
set dummy nmedit; ac_word=$2
7175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176
$as_echo_n "checking for $ac_word... " >&6; }
7177
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7178
$as_echo_n "(cached) " >&6
7180
if test -n "$ac_ct_NMEDIT"; then
7181
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187
test -z "$as_dir" && as_dir=.
7188
for ac_exec_ext in '' $ac_executable_extensions; do
7189
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7191
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7201
if test -n "$ac_ct_NMEDIT"; then
7202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7203
$as_echo "$ac_ct_NMEDIT" >&6; }
7205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206
$as_echo "no" >&6; }
7209
if test "x$ac_ct_NMEDIT" = x; then
7212
case $cross_compiling:$ac_tool_warned in
7214
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216
ac_tool_warned=yes ;;
7218
NMEDIT=$ac_ct_NMEDIT
7221
NMEDIT="$ac_cv_prog_NMEDIT"
7224
if test -n "$ac_tool_prefix"; then
7225
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7226
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228
$as_echo_n "checking for $ac_word... " >&6; }
7229
if test "${ac_cv_prog_LIPO+set}" = set; then :
7230
$as_echo_n "(cached) " >&6
7232
if test -n "$LIPO"; then
7233
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239
test -z "$as_dir" && as_dir=.
7240
for ac_exec_ext in '' $ac_executable_extensions; do
7241
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7243
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252
LIPO=$ac_cv_prog_LIPO
7253
if test -n "$LIPO"; then
7254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7255
$as_echo "$LIPO" >&6; }
7257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258
$as_echo "no" >&6; }
7263
if test -z "$ac_cv_prog_LIPO"; then
7265
# Extract the first word of "lipo", so it can be a program name with args.
7266
set dummy lipo; ac_word=$2
7267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268
$as_echo_n "checking for $ac_word... " >&6; }
7269
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7270
$as_echo_n "(cached) " >&6
7272
if test -n "$ac_ct_LIPO"; then
7273
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279
test -z "$as_dir" && as_dir=.
7280
for ac_exec_ext in '' $ac_executable_extensions; do
7281
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282
ac_cv_prog_ac_ct_LIPO="lipo"
7283
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7293
if test -n "$ac_ct_LIPO"; then
7294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7295
$as_echo "$ac_ct_LIPO" >&6; }
7297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298
$as_echo "no" >&6; }
7301
if test "x$ac_ct_LIPO" = x; then
7304
case $cross_compiling:$ac_tool_warned in
7306
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308
ac_tool_warned=yes ;;
7313
LIPO="$ac_cv_prog_LIPO"
7316
if test -n "$ac_tool_prefix"; then
7317
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7318
set dummy ${ac_tool_prefix}otool; ac_word=$2
7319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320
$as_echo_n "checking for $ac_word... " >&6; }
7321
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7322
$as_echo_n "(cached) " >&6
7324
if test -n "$OTOOL"; then
7325
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331
test -z "$as_dir" && as_dir=.
7332
for ac_exec_ext in '' $ac_executable_extensions; do
7333
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7335
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344
OTOOL=$ac_cv_prog_OTOOL
7345
if test -n "$OTOOL"; then
7346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7347
$as_echo "$OTOOL" >&6; }
7349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350
$as_echo "no" >&6; }
7355
if test -z "$ac_cv_prog_OTOOL"; then
7357
# Extract the first word of "otool", so it can be a program name with args.
7358
set dummy otool; ac_word=$2
7359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360
$as_echo_n "checking for $ac_word... " >&6; }
7361
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7362
$as_echo_n "(cached) " >&6
7364
if test -n "$ac_ct_OTOOL"; then
7365
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7367
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371
test -z "$as_dir" && as_dir=.
7372
for ac_exec_ext in '' $ac_executable_extensions; do
7373
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374
ac_cv_prog_ac_ct_OTOOL="otool"
7375
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7385
if test -n "$ac_ct_OTOOL"; then
7386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7387
$as_echo "$ac_ct_OTOOL" >&6; }
7389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390
$as_echo "no" >&6; }
7393
if test "x$ac_ct_OTOOL" = x; then
7396
case $cross_compiling:$ac_tool_warned in
7398
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7399
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400
ac_tool_warned=yes ;;
7405
OTOOL="$ac_cv_prog_OTOOL"
7408
if test -n "$ac_tool_prefix"; then
7409
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7410
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412
$as_echo_n "checking for $ac_word... " >&6; }
7413
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7414
$as_echo_n "(cached) " >&6
7416
if test -n "$OTOOL64"; then
7417
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7419
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423
test -z "$as_dir" && as_dir=.
7424
for ac_exec_ext in '' $ac_executable_extensions; do
7425
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7427
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436
OTOOL64=$ac_cv_prog_OTOOL64
7437
if test -n "$OTOOL64"; then
7438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7439
$as_echo "$OTOOL64" >&6; }
7441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442
$as_echo "no" >&6; }
7447
if test -z "$ac_cv_prog_OTOOL64"; then
7448
ac_ct_OTOOL64=$OTOOL64
7449
# Extract the first word of "otool64", so it can be a program name with args.
7450
set dummy otool64; ac_word=$2
7451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452
$as_echo_n "checking for $ac_word... " >&6; }
7453
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7454
$as_echo_n "(cached) " >&6
7456
if test -n "$ac_ct_OTOOL64"; then
7457
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463
test -z "$as_dir" && as_dir=.
7464
for ac_exec_ext in '' $ac_executable_extensions; do
7465
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466
ac_cv_prog_ac_ct_OTOOL64="otool64"
7467
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7477
if test -n "$ac_ct_OTOOL64"; then
7478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7479
$as_echo "$ac_ct_OTOOL64" >&6; }
7481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482
$as_echo "no" >&6; }
7485
if test "x$ac_ct_OTOOL64" = x; then
7488
case $cross_compiling:$ac_tool_warned in
7490
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492
ac_tool_warned=yes ;;
7494
OTOOL64=$ac_ct_OTOOL64
7497
OTOOL64="$ac_cv_prog_OTOOL64"
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7527
$as_echo_n "checking for -single_module linker flag... " >&6; }
7528
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7529
$as_echo_n "(cached) " >&6
7531
lt_cv_apple_cc_single_mod=no
7532
if test -z "${LT_MULTI_MODULE}"; then
7533
# By default we will add the -single_module flag. You can override
7534
# by either setting the environment variable LT_MULTI_MODULE
7535
# non-empty at configure time, or by adding -multi_module to the
7537
rm -rf libconftest.dylib*
7538
echo "int foo(void){return 1;}" > conftest.c
7539
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7540
-dynamiclib -Wl,-single_module conftest.c" >&5
7541
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7542
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7544
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7545
lt_cv_apple_cc_single_mod=yes
7547
cat conftest.err >&5
7549
rm -rf libconftest.dylib*
7553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7554
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7555
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7556
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7557
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7558
$as_echo_n "(cached) " >&6
7560
lt_cv_ld_exported_symbols_list=no
7561
save_LDFLAGS=$LDFLAGS
7562
echo "_main" > conftest.sym
7563
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7564
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565
/* end confdefs.h. */
7575
if ac_fn_c_try_link "$LINENO"; then :
7576
lt_cv_ld_exported_symbols_list=yes
7578
lt_cv_ld_exported_symbols_list=no
7580
rm -f core conftest.err conftest.$ac_objext \
7581
conftest$ac_exeext conftest.$ac_ext
7582
LDFLAGS="$save_LDFLAGS"
7585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7586
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7588
rhapsody* | darwin1.[012])
7589
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7591
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7592
darwin*) # darwin 5.x on
7593
# if running on 10.5 or later, the deployment target defaults
7594
# to the OS version, if on x86, and 10.4, the deployment
7595
# target defaults to 10.4. Don't you love it?
7596
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7597
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7598
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7600
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7602
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7606
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7607
_lt_dar_single_mod='$single_module'
7609
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7610
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7612
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7614
if test "$DSYMUTIL" != ":"; then
7615
_lt_dsymutil='~$DSYMUTIL $lib || :'
7623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7624
$as_echo_n "checking for ANSI C header files... " >&6; }
7625
if test "${ac_cv_header_stdc+set}" = set; then :
7626
$as_echo_n "(cached) " >&6
7628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629
/* end confdefs.h. */
7643
if ac_fn_c_try_compile "$LINENO"; then :
7644
ac_cv_header_stdc=yes
7646
ac_cv_header_stdc=no
7648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650
if test $ac_cv_header_stdc = yes; then
7651
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653
/* end confdefs.h. */
7657
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7658
$EGREP "memchr" >/dev/null 2>&1; then :
7661
ac_cv_header_stdc=no
7667
if test $ac_cv_header_stdc = yes; then
7668
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7669
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670
/* end confdefs.h. */
7674
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675
$EGREP "free" >/dev/null 2>&1; then :
7678
ac_cv_header_stdc=no
7684
if test $ac_cv_header_stdc = yes; then
7685
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7686
if test "$cross_compiling" = yes; then :
7689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690
/* end confdefs.h. */
7693
#if ((' ' & 0x0FF) == 0x020)
7694
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7695
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7697
# define ISLOWER(c) \
7698
(('a' <= (c) && (c) <= 'i') \
7699
|| ('j' <= (c) && (c) <= 'r') \
7700
|| ('s' <= (c) && (c) <= 'z'))
7701
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7704
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7709
for (i = 0; i < 256; i++)
7710
if (XOR (islower (i), ISLOWER (i))
7711
|| toupper (i) != TOUPPER (i))
7716
if ac_fn_c_try_run "$LINENO"; then :
7719
ac_cv_header_stdc=no
7721
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7722
conftest.$ac_objext conftest.beam conftest.$ac_ext
7727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7728
$as_echo "$ac_cv_header_stdc" >&6; }
7729
if test $ac_cv_header_stdc = yes; then
7731
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7735
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7736
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7737
inttypes.h stdint.h unistd.h
7739
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7740
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7742
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7743
cat >>confdefs.h <<_ACEOF
7744
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7752
for ac_header in dlfcn.h
7754
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7756
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7757
cat >>confdefs.h <<_ACEOF
7758
#define HAVE_DLFCN_H 1
7768
ac_cpp='$CXXCPP $CPPFLAGS'
7769
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7772
if test -z "$CXX"; then
7773
if test -n "$CCC"; then
7776
if test -n "$ac_tool_prefix"; then
7777
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7779
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7780
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7781
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782
$as_echo_n "checking for $ac_word... " >&6; }
7783
if test "${ac_cv_prog_CXX+set}" = set; then :
7784
$as_echo_n "(cached) " >&6
7786
if test -n "$CXX"; then
7787
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793
test -z "$as_dir" && as_dir=.
7794
for ac_exec_ext in '' $ac_executable_extensions; do
7795
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7797
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807
if test -n "$CXX"; then
7808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7809
$as_echo "$CXX" >&6; }
7811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812
$as_echo "no" >&6; }
7816
test -n "$CXX" && break
7819
if test -z "$CXX"; then
7821
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7823
# Extract the first word of "$ac_prog", so it can be a program name with args.
7824
set dummy $ac_prog; ac_word=$2
7825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826
$as_echo_n "checking for $ac_word... " >&6; }
7827
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7828
$as_echo_n "(cached) " >&6
7830
if test -n "$ac_ct_CXX"; then
7831
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7833
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837
test -z "$as_dir" && as_dir=.
7838
for ac_exec_ext in '' $ac_executable_extensions; do
7839
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840
ac_cv_prog_ac_ct_CXX="$ac_prog"
7841
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7851
if test -n "$ac_ct_CXX"; then
7852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7853
$as_echo "$ac_ct_CXX" >&6; }
7855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856
$as_echo "no" >&6; }
7860
test -n "$ac_ct_CXX" && break
7863
if test "x$ac_ct_CXX" = x; then
7866
case $cross_compiling:$ac_tool_warned in
7868
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870
ac_tool_warned=yes ;;
7878
# Provide some information about the compiler.
7879
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7882
for ac_option in --version -v -V -qversion; do
7883
{ { ac_try="$ac_compiler $ac_option >&5"
7885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886
*) ac_try_echo=$ac_try;;
7888
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7889
$as_echo "$ac_try_echo"; } >&5
7890
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7892
if test -s conftest.err; then
7894
... rest of stderr output deleted ...
7895
10q' conftest.err >conftest.er1
7896
cat conftest.er1 >&5
7898
rm -f conftest.er1 conftest.err
7899
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900
test $ac_status = 0; }
7903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7904
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7905
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7906
$as_echo_n "(cached) " >&6
7908
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909
/* end confdefs.h. */
7922
if ac_fn_cxx_try_compile "$LINENO"; then :
7927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7932
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7933
if test $ac_compiler_gnu = yes; then
7938
ac_test_CXXFLAGS=${CXXFLAGS+set}
7939
ac_save_CXXFLAGS=$CXXFLAGS
7940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7941
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7942
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7943
$as_echo_n "(cached) " >&6
7945
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7946
ac_cxx_werror_flag=yes
7949
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950
/* end confdefs.h. */
7960
if ac_fn_cxx_try_compile "$LINENO"; then :
7961
ac_cv_prog_cxx_g=yes
7964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965
/* end confdefs.h. */
7975
if ac_fn_cxx_try_compile "$LINENO"; then :
7978
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981
/* end confdefs.h. */
7991
if ac_fn_cxx_try_compile "$LINENO"; then :
7992
ac_cv_prog_cxx_g=yes
7994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8002
$as_echo "$ac_cv_prog_cxx_g" >&6; }
8003
if test "$ac_test_CXXFLAGS" = set; then
8004
CXXFLAGS=$ac_save_CXXFLAGS
8005
elif test $ac_cv_prog_cxx_g = yes; then
8006
if test "$GXX" = yes; then
8012
if test "$GXX" = yes; then
8019
ac_cpp='$CPP $CPPFLAGS'
8020
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
depcc="$CXX" am_compiler_list=
8026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8027
$as_echo_n "checking dependency style of $depcc... " >&6; }
8028
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8029
$as_echo_n "(cached) " >&6
8031
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8032
# We make a subdir and do the tests there. Otherwise we can end up
8033
# making bogus files that we don't know about and never remove. For
8034
# instance it was reported that on HP-UX the gcc test will end up
8035
# making a dummy file named `D' -- because `-MD' means `put the output
8038
# Copy depcomp to subdir because otherwise we won't find it if we're
8039
# using a relative directory.
8040
cp "$am_depcomp" conftest.dir
8042
# We will build objects and dependencies in a subdirectory because
8043
# it helps to detect inapplicable dependency modes. For instance
8044
# both Tru64's cc and ICC support -MD to output dependencies as a
8045
# side effect of compilation, but ICC will put the dependencies in
8046
# the current directory while Tru64 will put them in the object
8050
am_cv_CXX_dependencies_compiler_type=none
8051
if test "$am_compiler_list" = ""; then
8052
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8055
case " $depcc " in #(
8056
*\ -arch\ *\ -arch\ *) am__universal=true ;;
8059
for depmode in $am_compiler_list; do
8060
# Setup a source with many dependencies, because some compilers
8061
# like to wrap large dependency lists on column 80 (with \), and
8062
# we should not choose a depcomp mode which is confused by this.
8064
# We need to recreate these files for each test, as the compiler may
8065
# overwrite some of them when testing with obscure command lines.
8066
# This happens at least with the AIX C compiler.
8068
for i in 1 2 3 4 5 6; do
8069
echo '#include "conftst'$i'.h"' >> sub/conftest.c
8070
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8071
# Solaris 8's {/usr,}/bin/sh.
8072
touch sub/conftst$i.h
8074
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8076
# We check with `-c' and `-o' for the sake of the "dashmstdout"
8077
# mode. It turns out that the SunPro C++ compiler does not properly
8078
# handle `-M -o', and we need to detect this. Also, some Intel
8079
# versions had trouble with output in subdirs
8080
am__obj=sub/conftest.${OBJEXT-o}
8081
am__minus_obj="-o $am__obj"
8084
# This depmode causes a compiler race in universal mode.
8085
test "$am__universal" = false || continue
8088
# after this tag, mechanisms are not by side-effect, so they'll
8089
# only be used when explicitly requested
8090
if test "x$enable_dependency_tracking" = xyes; then
8096
msvisualcpp | msvcmsys)
8097
# This compiler won't grok `-c -o', but also, the minuso test has
8098
# not run yet. These depmodes are late enough in the game, and
8099
# so weak that their functioning should not be impacted.
8100
am__obj=conftest.${OBJEXT-o}
8105
if depmode=$depmode \
8106
source=sub/conftest.c object=$am__obj \
8107
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8108
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8109
>/dev/null 2>conftest.err &&
8110
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8111
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8112
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8113
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8114
# icc doesn't choke on unknown options, it will just issue warnings
8115
# or remarks (even with -Werror). So we grep stderr for any message
8116
# that says an option was ignored or not supported.
8117
# When given -MP, icc 7.0 and 7.1 complain thusly:
8118
# icc: Command line warning: ignoring option '-M'; no argument required
8119
# The diagnosis changed in icc 8.0:
8120
# icc: Command line remark: option '-MP' not supported
8121
if (grep 'ignoring option' conftest.err ||
8122
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8123
am_cv_CXX_dependencies_compiler_type=$depmode
8132
am_cv_CXX_dependencies_compiler_type=none
8136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8137
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8138
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8141
test "x$enable_dependency_tracking" != xno \
8142
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8143
am__fastdepCXX_TRUE=
8144
am__fastdepCXX_FALSE='#'
8146
am__fastdepCXX_TRUE='#'
8147
am__fastdepCXX_FALSE=
8151
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8152
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8153
(test "X$CXX" != "Xg++"))) ; then
8155
ac_cpp='$CXXCPP $CPPFLAGS'
8156
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8157
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8158
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8160
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8161
if test -z "$CXXCPP"; then
8162
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8163
$as_echo_n "(cached) " >&6
8165
# Double quotes because CXXCPP needs to be expanded
8166
for CXXCPP in "$CXX -E" "/lib/cpp"
8169
for ac_cxx_preproc_warn_flag in '' yes
8171
# Use a header file that comes with gcc, so configuring glibc
8172
# with a fresh cross-compiler works.
8173
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174
# <limits.h> exists even on freestanding compilers.
8175
# On the NeXT, cc -E runs the code through the compiler's parser,
8176
# not just through cpp. "Syntax error" is here to catch this case.
8177
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178
/* end confdefs.h. */
8180
# include <limits.h>
8182
# include <assert.h>
8186
if ac_fn_cxx_try_cpp "$LINENO"; then :
8189
# Broken: fails on valid input.
8192
rm -f conftest.err conftest.i conftest.$ac_ext
8194
# OK, works on sane cases. Now check whether nonexistent headers
8195
# can be detected and how.
8196
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197
/* end confdefs.h. */
8198
#include <ac_nonexistent.h>
8200
if ac_fn_cxx_try_cpp "$LINENO"; then :
8201
# Broken: success on invalid input.
8204
# Passes both tests.
8208
rm -f conftest.err conftest.i conftest.$ac_ext
8211
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8212
rm -f conftest.i conftest.err conftest.$ac_ext
8213
if $ac_preproc_ok; then :
8218
ac_cv_prog_CXXCPP=$CXXCPP
8221
CXXCPP=$ac_cv_prog_CXXCPP
8223
ac_cv_prog_CXXCPP=$CXXCPP
8225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8226
$as_echo "$CXXCPP" >&6; }
8228
for ac_cxx_preproc_warn_flag in '' yes
8230
# Use a header file that comes with gcc, so configuring glibc
8231
# with a fresh cross-compiler works.
8232
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8233
# <limits.h> exists even on freestanding compilers.
8234
# On the NeXT, cc -E runs the code through the compiler's parser,
8235
# not just through cpp. "Syntax error" is here to catch this case.
8236
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237
/* end confdefs.h. */
8239
# include <limits.h>
8241
# include <assert.h>
8245
if ac_fn_cxx_try_cpp "$LINENO"; then :
8248
# Broken: fails on valid input.
8251
rm -f conftest.err conftest.i conftest.$ac_ext
8253
# OK, works on sane cases. Now check whether nonexistent headers
8254
# can be detected and how.
8255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256
/* end confdefs.h. */
8257
#include <ac_nonexistent.h>
8259
if ac_fn_cxx_try_cpp "$LINENO"; then :
8260
# Broken: success on invalid input.
8263
# Passes both tests.
8267
rm -f conftest.err conftest.i conftest.$ac_ext
8270
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8271
rm -f conftest.i conftest.err conftest.$ac_ext
8272
if $ac_preproc_ok; then :
8275
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8276
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8277
_lt_caught_CXX_error=yes; }
8281
ac_cpp='$CPP $CPPFLAGS'
8282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287
_lt_caught_CXX_error=yes
8304
# Check whether --enable-shared was given.
8305
if test "${enable_shared+set}" = set; then :
8306
enableval=$enable_shared; p=${PACKAGE-default}
8308
yes) enable_shared=yes ;;
8309
no) enable_shared=no ;;
8312
# Look at the argument we got. We use all the common list separators.
8313
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8314
for pkg in $enableval; do
8316
if test "X$pkg" = "X$p"; then
8335
# Check whether --enable-static was given.
8336
if test "${enable_static+set}" = set; then :
8337
enableval=$enable_static; p=${PACKAGE-default}
8339
yes) enable_static=yes ;;
8340
no) enable_static=no ;;
8343
# Look at the argument we got. We use all the common list separators.
8344
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345
for pkg in $enableval; do
8347
if test "X$pkg" = "X$p"; then
8367
# Check whether --with-pic was given.
8368
if test "${with_pic+set}" = set; then :
8369
withval=$with_pic; pic_mode="$withval"
8375
test -z "$pic_mode" && pic_mode=default
8383
# Check whether --enable-fast-install was given.
8384
if test "${enable_fast_install+set}" = set; then :
8385
enableval=$enable_fast_install; p=${PACKAGE-default}
8387
yes) enable_fast_install=yes ;;
8388
no) enable_fast_install=no ;;
8390
enable_fast_install=no
8391
# Look at the argument we got. We use all the common list separators.
8392
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8393
for pkg in $enableval; do
8395
if test "X$pkg" = "X$p"; then
8396
enable_fast_install=yes
8403
enable_fast_install=yes
8416
# This can be used to rebuild libtool when needed
8417
LIBTOOL_DEPS="$ltmain"
8419
# Always use our own libtool.
8420
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8446
test -z "$LN_S" && LN_S="ln -s"
8461
if test -n "${ZSH_VERSION+set}" ; then
8462
setopt NO_GLOB_SUBST
8465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8466
$as_echo_n "checking for objdir... " >&6; }
8467
if test "${lt_cv_objdir+set}" = set; then :
8468
$as_echo_n "(cached) " >&6
8470
rm -f .libs 2>/dev/null
8471
mkdir .libs 2>/dev/null
8472
if test -d .libs; then
8475
# MS-DOS does not allow filenames that begin with a dot.
8478
rmdir .libs 2>/dev/null
8480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8481
$as_echo "$lt_cv_objdir" >&6; }
8482
objdir=$lt_cv_objdir
8488
cat >>confdefs.h <<_ACEOF
8489
#define LT_OBJDIR "$lt_cv_objdir/"
8510
# AIX sometimes has problems with the GCC collect2 program. For some
8511
# reason, if we set the COLLECT_NAMES environment variable, the problems
8512
# vanish in a puff of smoke.
8513
if test "X${COLLECT_NAMES+set}" != Xset; then
8515
export COLLECT_NAMES
8520
# Sed substitution that helps us do robust quoting. It backslashifies
8521
# metacharacters that are still active within double-quoted strings.
8522
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8524
# Same as above, but do not quote variable references.
8525
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8527
# Sed substitution to delay expansion of an escaped shell variable in a
8528
# double_quote_subst'ed string.
8529
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8531
# Sed substitution to delay expansion of an escaped single quote.
8532
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8534
# Sed substitution to avoid accidental globbing in evaled expressions
8535
no_glob_subst='s/\*/\\\*/g'
8539
can_build_shared=yes
8541
# All known linkers require a `.a' archive for static linking (except MSVC,
8542
# which needs '.lib').
8545
with_gnu_ld="$lt_cv_prog_gnu_ld"
8548
old_CFLAGS="$CFLAGS"
8550
# Set sane defaults for various variables
8551
test -z "$CC" && CC=cc
8552
test -z "$LTCC" && LTCC=$CC
8553
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8554
test -z "$LD" && LD=ld
8555
test -z "$ac_objext" && ac_objext=o
8557
for cc_temp in $compiler""; do
8559
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8560
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8565
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8568
# Only perform the check for file, if the check method requires it
8569
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8570
case $deplibs_check_method in
8572
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8574
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8575
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8576
$as_echo_n "(cached) " >&6
8580
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8583
lt_save_MAGIC_CMD="$MAGIC_CMD"
8584
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8585
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8586
for ac_dir in $ac_dummy; do
8588
test -z "$ac_dir" && ac_dir=.
8589
if test -f $ac_dir/${ac_tool_prefix}file; then
8590
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8591
if test -n "$file_magic_test_file"; then
8592
case $deplibs_check_method in
8594
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8595
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8596
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8597
$EGREP "$file_magic_regex" > /dev/null; then
8602
*** Warning: the command libtool uses to detect shared libraries,
8603
*** $file_magic_cmd, produces output that libtool cannot recognize.
8604
*** The result is that libtool may fail to recognize shared libraries
8605
*** as such. This will affect the creation of libtool libraries that
8606
*** depend on shared libraries, but programs linked with such libtool
8607
*** libraries will work regardless of this problem. Nevertheless, you
8608
*** may want to report the problem to your system manager and/or to
8609
*** bug-libtool@gnu.org
8619
MAGIC_CMD="$lt_save_MAGIC_CMD"
8624
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8625
if test -n "$MAGIC_CMD"; then
8626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8627
$as_echo "$MAGIC_CMD" >&6; }
8629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630
$as_echo "no" >&6; }
8637
if test -z "$lt_cv_path_MAGIC_CMD"; then
8638
if test -n "$ac_tool_prefix"; then
8639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8640
$as_echo_n "checking for file... " >&6; }
8641
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8642
$as_echo_n "(cached) " >&6
8646
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8649
lt_save_MAGIC_CMD="$MAGIC_CMD"
8650
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8651
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8652
for ac_dir in $ac_dummy; do
8654
test -z "$ac_dir" && ac_dir=.
8655
if test -f $ac_dir/file; then
8656
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8657
if test -n "$file_magic_test_file"; then
8658
case $deplibs_check_method in
8660
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8661
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8662
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8663
$EGREP "$file_magic_regex" > /dev/null; then
8668
*** Warning: the command libtool uses to detect shared libraries,
8669
*** $file_magic_cmd, produces output that libtool cannot recognize.
8670
*** The result is that libtool may fail to recognize shared libraries
8671
*** as such. This will affect the creation of libtool libraries that
8672
*** depend on shared libraries, but programs linked with such libtool
8673
*** libraries will work regardless of this problem. Nevertheless, you
8674
*** may want to report the problem to your system manager and/or to
8675
*** bug-libtool@gnu.org
8685
MAGIC_CMD="$lt_save_MAGIC_CMD"
8690
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8691
if test -n "$MAGIC_CMD"; then
8692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8693
$as_echo "$MAGIC_CMD" >&6; }
8695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696
$as_echo "no" >&6; }
8709
# Use C for the default configuration in the libtool script
8713
ac_cpp='$CPP $CPPFLAGS'
8714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8719
# Source file extension for C test sources.
8722
# Object file extension for compiled C test sources.
8726
# Code to be used in simple compile tests
8727
lt_simple_compile_test_code="int some_variable = 0;"
8729
# Code to be used in simple link tests
8730
lt_simple_link_test_code='int main(){return(0);}'
8738
# If no C compiler was specified, use CC.
8741
# If no C compiler flags were specified, use CFLAGS.
8742
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8744
# Allow CC to be a program name with arguments.
8747
# Save the default compiler, since it gets overwritten when the other
8748
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8749
compiler_DEFAULT=$CC
8751
# save warnings/boilerplate of simple test code
8752
ac_outfile=conftest.$ac_objext
8753
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8754
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8755
_lt_compiler_boilerplate=`cat conftest.err`
8758
ac_outfile=conftest.$ac_objext
8759
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8760
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8761
_lt_linker_boilerplate=`cat conftest.err`
8766
## There is no encapsulation within the following macros, do not change
8767
## the running order or otherwise move them around unless you know exactly
8768
## what you are doing...
8769
if test -n "$compiler"; then
8771
lt_prog_compiler_no_builtin_flag=
8773
if test "$GCC" = yes; then
8774
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8777
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8778
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8779
$as_echo_n "(cached) " >&6
8781
lt_cv_prog_compiler_rtti_exceptions=no
8782
ac_outfile=conftest.$ac_objext
8783
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8784
lt_compiler_flag="-fno-rtti -fno-exceptions"
8785
# Insert the option either (1) after the last *FLAGS variable, or
8786
# (2) before a word containing "conftest.", or (3) at the end.
8787
# Note that $ac_compile itself does not contain backslashes and begins
8788
# with a dollar sign (not a hyphen), so the echo should work correctly.
8789
# The option is referenced via a variable to avoid confusing sed.
8790
lt_compile=`echo "$ac_compile" | $SED \
8791
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8792
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8793
-e 's:$: $lt_compiler_flag:'`
8794
(eval echo "\"\$as_me:8794: $lt_compile\"" >&5)
8795
(eval "$lt_compile" 2>conftest.err)
8797
cat conftest.err >&5
8798
echo "$as_me:8798: \$? = $ac_status" >&5
8799
if (exit $ac_status) && test -s "$ac_outfile"; then
8800
# The compiler can only warn and ignore the option if not recognized
8801
# So say no if there are warnings other than the usual output.
8802
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8803
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8804
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8805
lt_cv_prog_compiler_rtti_exceptions=yes
8811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8812
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8814
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8815
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8827
lt_prog_compiler_wl=
8828
lt_prog_compiler_pic=
8829
lt_prog_compiler_static=
8831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8832
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8834
if test "$GCC" = yes; then
8835
lt_prog_compiler_wl='-Wl,'
8836
lt_prog_compiler_static='-static'
8840
# All AIX code is PIC.
8841
if test "$host_cpu" = ia64; then
8842
# AIX 5 now supports IA64 processor
8843
lt_prog_compiler_static='-Bstatic'
8850
# see comment about AmigaOS4 .so support
8851
lt_prog_compiler_pic='-fPIC'
8854
# FIXME: we need at least 68020 code to build shared libraries, but
8855
# adding the `-m68020' flag to GCC prevents building anything better,
8857
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8862
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8863
# PIC is the default for these OSes.
8866
mingw* | cygwin* | pw32* | os2* | cegcc*)
8867
# This hack is so that the source file can tell whether it is being
8868
# built for inclusion in a dll (and should export symbols for example).
8869
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8870
# (--disable-auto-import) libraries
8871
lt_prog_compiler_pic='-DDLL_EXPORT'
8874
darwin* | rhapsody*)
8875
# PIC is the default on this platform
8876
# Common symbols not allowed in MH_DYLIB files
8877
lt_prog_compiler_pic='-fno-common'
8881
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8882
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8883
# sets the default TLS model and affects inlining.
8889
lt_prog_compiler_pic='-fPIC'
8895
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8896
# Instead, we relocate shared libraries at runtime.
8900
# Just because we use GCC doesn't mean we suddenly get shared libraries
8901
# on systems that don't support them.
8902
lt_prog_compiler_can_build_shared=no
8907
# QNX uses GNU C++, but need to define -shared option too, otherwise
8909
lt_prog_compiler_pic='-fPIC -shared'
8913
if test -d /usr/nec; then
8914
lt_prog_compiler_pic=-Kconform_pic
8919
lt_prog_compiler_pic='-fPIC'
8923
# PORTME Check for flag to pass linker flags through the system compiler.
8926
lt_prog_compiler_wl='-Wl,'
8927
if test "$host_cpu" = ia64; then
8928
# AIX 5 now supports IA64 processor
8929
lt_prog_compiler_static='-Bstatic'
8931
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8935
mingw* | cygwin* | pw32* | os2* | cegcc*)
8936
# This hack is so that the source file can tell whether it is being
8937
# built for inclusion in a dll (and should export symbols for example).
8938
lt_prog_compiler_pic='-DDLL_EXPORT'
8941
hpux9* | hpux10* | hpux11*)
8942
lt_prog_compiler_wl='-Wl,'
8943
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8950
lt_prog_compiler_pic='+Z'
8953
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8954
lt_prog_compiler_static='${wl}-a ${wl}archive'
8957
irix5* | irix6* | nonstopux*)
8958
lt_prog_compiler_wl='-Wl,'
8959
# PIC (with -KPIC) is the default.
8960
lt_prog_compiler_static='-non_shared'
8963
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8964
case $cc_basename in
8965
# old Intel for x86_64 which still supported -KPIC.
8967
lt_prog_compiler_wl='-Wl,'
8968
lt_prog_compiler_pic='-KPIC'
8969
lt_prog_compiler_static='-static'
8971
# icc used to be incompatible with GCC.
8972
# ICC 10 doesn't accept -KPIC any more.
8974
lt_prog_compiler_wl='-Wl,'
8975
lt_prog_compiler_pic='-fPIC'
8976
lt_prog_compiler_static='-static'
8978
# Lahey Fortran 8.1.
8980
lt_prog_compiler_wl='-Wl,'
8981
lt_prog_compiler_pic='--shared'
8982
lt_prog_compiler_static='--static'
8984
pgcc* | pgf77* | pgf90* | pgf95*)
8985
# Portland Group compilers (*not* the Pentium gcc compiler,
8986
# which looks to be a dead project)
8987
lt_prog_compiler_wl='-Wl,'
8988
lt_prog_compiler_pic='-fpic'
8989
lt_prog_compiler_static='-Bstatic'
8992
lt_prog_compiler_wl='-Wl,'
8993
# All Alpha code is PIC.
8994
lt_prog_compiler_static='-non_shared'
8997
# IBM XL C 8.0/Fortran 10.1 on PPC
8998
lt_prog_compiler_wl='-Wl,'
8999
lt_prog_compiler_pic='-qpic'
9000
lt_prog_compiler_static='-qstaticlink'
9003
case `$CC -V 2>&1 | sed 5q` in
9006
lt_prog_compiler_pic='-KPIC'
9007
lt_prog_compiler_static='-Bstatic'
9008
lt_prog_compiler_wl='-Wl,'
9011
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9012
lt_prog_compiler_pic='-KPIC'
9013
lt_prog_compiler_static='-Bstatic'
9014
lt_prog_compiler_wl=''
9022
lt_prog_compiler_pic='-KPIC'
9023
lt_prog_compiler_static='-Bstatic'
9027
# QNX uses GNU C++, but need to define -shared option too, otherwise
9029
lt_prog_compiler_pic='-fPIC -shared'
9032
osf3* | osf4* | osf5*)
9033
lt_prog_compiler_wl='-Wl,'
9034
# All OSF/1 code is PIC.
9035
lt_prog_compiler_static='-non_shared'
9039
lt_prog_compiler_static='-non_shared'
9043
lt_prog_compiler_pic='-KPIC'
9044
lt_prog_compiler_static='-Bstatic'
9045
case $cc_basename in
9047
lt_prog_compiler_wl='-Qoption ld ';;
9049
lt_prog_compiler_wl='-Wl,';;
9054
lt_prog_compiler_wl='-Qoption ld '
9055
lt_prog_compiler_pic='-PIC'
9056
lt_prog_compiler_static='-Bstatic'
9059
sysv4 | sysv4.2uw2* | sysv4.3*)
9060
lt_prog_compiler_wl='-Wl,'
9061
lt_prog_compiler_pic='-KPIC'
9062
lt_prog_compiler_static='-Bstatic'
9066
if test -d /usr/nec ;then
9067
lt_prog_compiler_pic='-Kconform_pic'
9068
lt_prog_compiler_static='-Bstatic'
9072
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9073
lt_prog_compiler_wl='-Wl,'
9074
lt_prog_compiler_pic='-KPIC'
9075
lt_prog_compiler_static='-Bstatic'
9079
lt_prog_compiler_wl='-Wl,'
9080
lt_prog_compiler_can_build_shared=no
9084
lt_prog_compiler_pic='-pic'
9085
lt_prog_compiler_static='-Bstatic'
9089
lt_prog_compiler_can_build_shared=no
9095
# For platforms which do not support PIC, -DPIC is meaningless:
9097
lt_prog_compiler_pic=
9100
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9104
$as_echo "$lt_prog_compiler_pic" >&6; }
9112
# Check to make sure the PIC flag actually works.
9114
if test -n "$lt_prog_compiler_pic"; then
9115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9116
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9117
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9118
$as_echo_n "(cached) " >&6
9120
lt_cv_prog_compiler_pic_works=no
9121
ac_outfile=conftest.$ac_objext
9122
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9124
# Insert the option either (1) after the last *FLAGS variable, or
9125
# (2) before a word containing "conftest.", or (3) at the end.
9126
# Note that $ac_compile itself does not contain backslashes and begins
9127
# with a dollar sign (not a hyphen), so the echo should work correctly.
9128
# The option is referenced via a variable to avoid confusing sed.
9129
lt_compile=`echo "$ac_compile" | $SED \
9130
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9131
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9132
-e 's:$: $lt_compiler_flag:'`
9133
(eval echo "\"\$as_me:9133: $lt_compile\"" >&5)
9134
(eval "$lt_compile" 2>conftest.err)
9136
cat conftest.err >&5
9137
echo "$as_me:9137: \$? = $ac_status" >&5
9138
if (exit $ac_status) && test -s "$ac_outfile"; then
9139
# The compiler can only warn and ignore the option if not recognized
9140
# So say no if there are warnings other than the usual output.
9141
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9142
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9143
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9144
lt_cv_prog_compiler_pic_works=yes
9150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9151
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9153
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9154
case $lt_prog_compiler_pic in
9156
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9159
lt_prog_compiler_pic=
9160
lt_prog_compiler_can_build_shared=no
9171
# Check to make sure the static flag actually works.
9173
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9174
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9175
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9176
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9177
$as_echo_n "(cached) " >&6
9179
lt_cv_prog_compiler_static_works=no
9180
save_LDFLAGS="$LDFLAGS"
9181
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9182
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9183
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9184
# The linker can only warn and ignore the option if not recognized
9185
# So say no if there are warnings
9186
if test -s conftest.err; then
9187
# Append any errors to the config.log.
9188
cat conftest.err 1>&5
9189
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9190
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9191
if diff conftest.exp conftest.er2 >/dev/null; then
9192
lt_cv_prog_compiler_static_works=yes
9195
lt_cv_prog_compiler_static_works=yes
9199
LDFLAGS="$save_LDFLAGS"
9202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9203
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9205
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9208
lt_prog_compiler_static=
9217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9218
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9219
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9220
$as_echo_n "(cached) " >&6
9222
lt_cv_prog_compiler_c_o=no
9223
$RM -r conftest 2>/dev/null
9227
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9229
lt_compiler_flag="-o out/conftest2.$ac_objext"
9230
# Insert the option either (1) after the last *FLAGS variable, or
9231
# (2) before a word containing "conftest.", or (3) at the end.
9232
# Note that $ac_compile itself does not contain backslashes and begins
9233
# with a dollar sign (not a hyphen), so the echo should work correctly.
9234
lt_compile=`echo "$ac_compile" | $SED \
9235
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9236
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9237
-e 's:$: $lt_compiler_flag:'`
9238
(eval echo "\"\$as_me:9238: $lt_compile\"" >&5)
9239
(eval "$lt_compile" 2>out/conftest.err)
9241
cat out/conftest.err >&5
9242
echo "$as_me:9242: \$? = $ac_status" >&5
9243
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9245
# The compiler can only warn and ignore the option if not recognized
9246
# So say no if there are warnings
9247
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9248
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9249
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9250
lt_cv_prog_compiler_c_o=yes
9255
# SGI C++ compiler will create directory out/ii_files/ for
9256
# template instantiation
9257
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9258
$RM out/* && rmdir out
9264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9265
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9273
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9274
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9275
$as_echo_n "(cached) " >&6
9277
lt_cv_prog_compiler_c_o=no
9278
$RM -r conftest 2>/dev/null
9282
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9284
lt_compiler_flag="-o out/conftest2.$ac_objext"
9285
# Insert the option either (1) after the last *FLAGS variable, or
9286
# (2) before a word containing "conftest.", or (3) at the end.
9287
# Note that $ac_compile itself does not contain backslashes and begins
9288
# with a dollar sign (not a hyphen), so the echo should work correctly.
9289
lt_compile=`echo "$ac_compile" | $SED \
9290
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9291
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9292
-e 's:$: $lt_compiler_flag:'`
9293
(eval echo "\"\$as_me:9293: $lt_compile\"" >&5)
9294
(eval "$lt_compile" 2>out/conftest.err)
9296
cat out/conftest.err >&5
9297
echo "$as_me:9297: \$? = $ac_status" >&5
9298
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9300
# The compiler can only warn and ignore the option if not recognized
9301
# So say no if there are warnings
9302
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9303
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9304
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9305
lt_cv_prog_compiler_c_o=yes
9310
# SGI C++ compiler will create directory out/ii_files/ for
9311
# template instantiation
9312
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9313
$RM out/* && rmdir out
9319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9320
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9325
hard_links="nottested"
9326
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9327
# do not overwrite the value of need_locks provided by the user
9328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9329
$as_echo_n "checking if we can lock with hard links... " >&6; }
9332
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9334
ln conftest.a conftest.b 2>&5 || hard_links=no
9335
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9337
$as_echo "$hard_links" >&6; }
9338
if test "$hard_links" = no; then
9339
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9340
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9353
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9356
allow_undefined_flag=
9357
always_export_symbols=no
9359
archive_expsym_cmds=
9360
compiler_needs_object=no
9361
enable_shared_with_static_runtimes=no
9362
export_dynamic_flag_spec=
9363
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9364
hardcode_automatic=no
9366
hardcode_direct_absolute=no
9367
hardcode_libdir_flag_spec=
9368
hardcode_libdir_flag_spec_ld=
9369
hardcode_libdir_separator=
9371
hardcode_shlibpath_var=unsupported
9373
link_all_deplibs=unknown
9376
old_archive_from_new_cmds=
9377
old_archive_from_expsyms_cmds=
9378
thread_safe_flag_spec=
9379
whole_archive_flag_spec=
9380
# include_expsyms should be a list of space-separated symbols to be *always*
9381
# included in the symbol list
9383
# exclude_expsyms can be an extended regexp of symbols to exclude
9384
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9385
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9386
# as well as any symbol that contains `d'.
9387
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9388
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9389
# platforms (ab)use it in PIC code, but their linkers get confused if
9390
# the symbol is explicitly referenced. Since portable code cannot
9391
# rely on this symbol name, it's probably fine to never include it in
9392
# preloaded symbol tables.
9393
# Exclude shared library initialization/finalization symbols.
9394
extract_expsyms_cmds=
9397
cygwin* | mingw* | pw32* | cegcc*)
9398
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9399
# When not using gcc, we currently assume that we are using
9400
# Microsoft Visual C++.
9401
if test "$GCC" != yes; then
9406
# we just hope/assume this is gcc and not c89 (= MSVC++)
9412
linux* | k*bsd*-gnu)
9418
if test "$with_gnu_ld" = yes; then
9419
# If archive_cmds runs LD, not CC, wlarc should be empty
9422
# Set some defaults for GNU ld with shared library support. These
9423
# are reset later if shared libraries are not supported. Putting them
9424
# here allows them to be overridden if necessary.
9425
runpath_var=LD_RUN_PATH
9426
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427
export_dynamic_flag_spec='${wl}--export-dynamic'
9428
# ancient GNU ld didn't support --whole-archive et. al.
9429
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9430
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9432
whole_archive_flag_spec=
9434
supports_anon_versioning=no
9435
case `$LD -v 2>&1` in
9436
*GNU\ gold*) supports_anon_versioning=yes ;;
9437
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9438
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9439
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9440
*\ 2.11.*) ;; # other 2.11 versions
9441
*) supports_anon_versioning=yes ;;
9444
# See if GNU ld supports shared libraries.
9447
# On AIX/PPC, the GNU linker is very broken
9448
if test "$host_cpu" != ia64; then
9452
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9453
*** to be unable to reliably create shared libraries on AIX.
9454
*** Therefore, libtool is disabling shared libraries support. If you
9455
*** really care for shared libraries, you may want to modify your PATH
9456
*** so that a non-GNU linker is found, and then restart.
9465
# see comment about AmigaOS4 .so support
9466
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467
archive_expsym_cmds=''
9470
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)'
9471
hardcode_libdir_flag_spec='-L$libdir'
9472
hardcode_minus_L=yes
9478
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479
allow_undefined_flag=unsupported
9480
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9481
# support --undefined. This deserves some investigation. FIXME
9482
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488
cygwin* | mingw* | pw32* | cegcc*)
9489
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9490
# as there is no search path for DLLs.
9491
hardcode_libdir_flag_spec='-L$libdir'
9492
allow_undefined_flag=unsupported
9493
always_export_symbols=no
9494
enable_shared_with_static_runtimes=yes
9495
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9497
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9498
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9499
# If the export-symbols file already is a .def file (1st line
9500
# is EXPORTS), use it as is; otherwise, prepend...
9501
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9502
cp $export_symbols $output_objdir/$soname.def;
9504
echo EXPORTS > $output_objdir/$soname.def;
9505
cat $export_symbols >> $output_objdir/$soname.def;
9507
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9515
hardcode_shlibpath_var=no
9516
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9517
export_dynamic_flag_spec='${wl}-E'
9518
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9519
# Instead, shared libraries are loaded at an image base (0x10000000 by
9520
# default) and relocated if they conflict, which is a slow very memory
9521
# consuming and fragmenting process. To avoid this, we pick a random,
9522
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9523
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9524
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9525
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'
9528
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9530
if test "$host_os" = linux-dietlibc; then
9531
case $cc_basename in
9532
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9535
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9536
&& test "$tmp_diet" = no
9539
tmp_sharedflag='-shared'
9540
case $cc_basename,$host_cpu in
9541
pgcc*) # Portland Group C compiler
9542
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'
9543
tmp_addflag=' $pic_flag'
9545
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9546
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'
9547
tmp_addflag=' $pic_flag -Mnomain' ;;
9548
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9549
tmp_addflag=' -i_dynamic' ;;
9550
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9551
tmp_addflag=' -i_dynamic -nofor_main' ;;
9552
ifc* | ifort*) # Intel Fortran compiler
9553
tmp_addflag=' -nofor_main' ;;
9554
lf95*) # Lahey Fortran 8.1
9555
whole_archive_flag_spec=
9556
tmp_sharedflag='--shared' ;;
9557
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9558
tmp_sharedflag='-qmkshrobj'
9561
case `$CC -V 2>&1 | sed 5q` in
9562
*Sun\ C*) # Sun C 5.9
9563
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'
9564
compiler_needs_object=yes
9565
tmp_sharedflag='-G' ;;
9566
*Sun\ F*) # Sun Fortran 8.3
9567
tmp_sharedflag='-G' ;;
9569
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571
if test "x$supports_anon_versioning" = xyes; then
9572
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9573
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9574
echo "local: *; };" >> $output_objdir/$libname.ver~
9575
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9578
case $cc_basename in
9580
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9581
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9582
hardcode_libdir_flag_spec=
9583
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9584
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9585
if test "x$supports_anon_versioning" = xyes; then
9586
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9587
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9588
echo "local: *; };" >> $output_objdir/$libname.ver~
9589
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9598
netbsd* | netbsdelf*-gnu)
9599
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9600
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9603
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9609
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9613
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9614
*** create shared libraries on Solaris systems. Therefore, libtool
9615
*** is disabling shared libraries support. We urge you to upgrade GNU
9616
*** binutils to release 2.9.1 or newer. Another option is to modify
9617
*** your PATH or compiler configuration so that the native linker is
9618
*** used, and then restart.
9621
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9629
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9630
case `$LD -v 2>&1` in
9631
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9635
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9636
*** reliably create shared libraries on SCO systems. Therefore, libtool
9637
*** is disabling shared libraries support. We urge you to upgrade GNU
9638
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9639
*** your PATH or compiler configuration so that the native linker is
9640
*** used, and then restart.
9645
# For security reasons, it is highly recommended that you always
9646
# use absolute paths for naming shared libraries, and exclude the
9647
# DT_RUNPATH tag from executables and libraries. But doing so
9648
# requires that you compile everything twice, which is a pain.
9649
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9650
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9651
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9652
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9661
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664
hardcode_shlibpath_var=no
9668
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9669
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9670
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9677
if test "$ld_shlibs" = no; then
9679
hardcode_libdir_flag_spec=
9680
export_dynamic_flag_spec=
9681
whole_archive_flag_spec=
9684
# PORTME fill in a description of your system's linker (not GNU ld)
9687
allow_undefined_flag=unsupported
9688
always_export_symbols=yes
9689
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'
9690
# Note: this linker hardcodes the directories in LIBPATH if there
9691
# are no directories specified by -L.
9692
hardcode_minus_L=yes
9693
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9694
# Neither direct hardcoding nor static linking is supported with a
9696
hardcode_direct=unsupported
9701
if test "$host_cpu" = ia64; then
9702
# On IA64, the linker does run time linking by default, so we don't
9703
# have to do anything special.
9704
aix_use_runtimelinking=no
9705
exp_sym_flag='-Bexport'
9708
# If we're using GNU nm, then we don't want the "-C" option.
9709
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9710
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9711
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'
9713
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'
9715
aix_use_runtimelinking=no
9717
# Test if we are trying to use run time linking or normal
9718
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9719
# need to do runtime linking.
9720
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9721
for ld_flag in $LDFLAGS; do
9722
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9723
aix_use_runtimelinking=yes
9730
exp_sym_flag='-bexport'
9731
no_entry_flag='-bnoentry'
9734
# When large executables or shared objects are built, AIX ld can
9735
# have problems creating the table of contents. If linking a library
9736
# or program results in "error TOC overflow" add -mminimal-toc to
9737
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9738
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9742
hardcode_direct_absolute=yes
9743
hardcode_libdir_separator=':'
9744
link_all_deplibs=yes
9745
file_list_spec='${wl}-f,'
9747
if test "$GCC" = yes; then
9748
case $host_os in aix4.[012]|aix4.[012].*)
9749
# We only want to do this on AIX 4.2 and lower, the check
9750
# below for broken collect2 doesn't work under 4.3+
9751
collect2name=`${CC} -print-prog-name=collect2`
9752
if test -f "$collect2name" &&
9753
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9755
# We have reworked collect2
9758
# We have old collect2
9759
hardcode_direct=unsupported
9760
# It fails to find uninstalled libraries when the uninstalled
9761
# path is not listed in the libpath. Setting hardcode_minus_L
9762
# to unsupported forces relinking
9763
hardcode_minus_L=yes
9764
hardcode_libdir_flag_spec='-L$libdir'
9765
hardcode_libdir_separator=
9769
shared_flag='-shared'
9770
if test "$aix_use_runtimelinking" = yes; then
9771
shared_flag="$shared_flag "'${wl}-G'
9776
if test "$host_cpu" = ia64; then
9777
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9778
# chokes on -Wl,-G. The following line is correct:
9781
if test "$aix_use_runtimelinking" = yes; then
9782
shared_flag='${wl}-G'
9784
shared_flag='${wl}-bM:SRE'
9789
export_dynamic_flag_spec='${wl}-bexpall'
9790
# It seems that -bexpall does not export symbols beginning with
9791
# underscore (_), so it is better to generate a list of symbols to export.
9792
always_export_symbols=yes
9793
if test "$aix_use_runtimelinking" = yes; then
9794
# Warning - without using the other runtime loading flags (-brtl),
9795
# -berok will link without error, but may produce a broken library.
9796
allow_undefined_flag='-berok'
9797
# Determine the default libpath from the value encoded in an
9799
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800
/* end confdefs.h. */
9810
if ac_fn_c_try_link "$LINENO"; then :
9812
lt_aix_libpath_sed='
9813
/Import File Strings/,/^$/ {
9819
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9820
# Check for a 64-bit object if we didn't find anything.
9821
if test -z "$aix_libpath"; then
9822
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9825
rm -f core conftest.err conftest.$ac_objext \
9826
conftest$ac_exeext conftest.$ac_ext
9827
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9829
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9830
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"
9832
if test "$host_cpu" = ia64; then
9833
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9834
allow_undefined_flag="-z nodefs"
9835
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"
9837
# Determine the default libpath from the value encoded in an
9839
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840
/* end confdefs.h. */
9850
if ac_fn_c_try_link "$LINENO"; then :
9852
lt_aix_libpath_sed='
9853
/Import File Strings/,/^$/ {
9859
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860
# Check for a 64-bit object if we didn't find anything.
9861
if test -z "$aix_libpath"; then
9862
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9865
rm -f core conftest.err conftest.$ac_objext \
9866
conftest$ac_exeext conftest.$ac_ext
9867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9869
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870
# Warning - without using the other run time loading flags,
9871
# -berok will link without error, but may produce a broken library.
9872
no_undefined_flag=' ${wl}-bernotok'
9873
allow_undefined_flag=' ${wl}-berok'
9874
# Exported symbols can be pulled into shared objects from archives
9875
whole_archive_flag_spec='$convenience'
9876
archive_cmds_need_lc=yes
9877
# This is similar to how AIX traditionally builds its shared libraries.
9878
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'
9886
# see comment about AmigaOS4 .so support
9887
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9888
archive_expsym_cmds=''
9891
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)'
9892
hardcode_libdir_flag_spec='-L$libdir'
9893
hardcode_minus_L=yes
9899
export_dynamic_flag_spec=-rdynamic
9902
cygwin* | mingw* | pw32* | cegcc*)
9903
# When not using gcc, we currently assume that we are using
9904
# Microsoft Visual C++.
9905
# hardcode_libdir_flag_spec is actually meaningless, as there is
9906
# no search path for DLLs.
9907
hardcode_libdir_flag_spec=' '
9908
allow_undefined_flag=unsupported
9909
# Tell ltmain to make .lib files, not .a files.
9911
# Tell ltmain to make .dll files, not .so files.
9913
# FIXME: Setting linknames here is a bad hack.
9914
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9915
# The linker will automatically build a .lib file if we build a DLL.
9916
old_archive_from_new_cmds='true'
9917
# FIXME: Should let the user specify the lib program.
9918
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9919
fix_srcfile_path='`cygpath -w "$srcfile"`'
9920
enable_shared_with_static_runtimes=yes
9923
darwin* | rhapsody*)
9926
archive_cmds_need_lc=no
9928
hardcode_automatic=yes
9929
hardcode_shlibpath_var=unsupported
9930
whole_archive_flag_spec=''
9931
link_all_deplibs=yes
9932
allow_undefined_flag="$_lt_dar_allow_undefined"
9933
case $cc_basename in
9934
ifort*) _lt_dar_can_shared=yes ;;
9935
*) _lt_dar_can_shared=$GCC ;;
9937
if test "$_lt_dar_can_shared" = "yes"; then
9938
output_verbose_link_cmd=echo
9939
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9940
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9941
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}"
9942
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}"
9951
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952
hardcode_libdir_flag_spec='-L$libdir'
9953
hardcode_shlibpath_var=no
9960
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9961
# support. Future versions do this automatically, but an explicit c++rt0.o
9962
# does not break anything, and helps significantly (at the cost of a little
9965
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9966
hardcode_libdir_flag_spec='-R$libdir'
9968
hardcode_shlibpath_var=no
9971
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9973
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975
hardcode_minus_L=yes
9976
hardcode_shlibpath_var=no
9979
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9980
freebsd* | dragonfly*)
9981
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9982
hardcode_libdir_flag_spec='-R$libdir'
9984
hardcode_shlibpath_var=no
9988
if test "$GCC" = yes; then
9989
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'
9991
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'
9993
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994
hardcode_libdir_separator=:
9997
# hardcode_minus_L: Not really in the search PATH,
9998
# but as the default location of the library.
9999
hardcode_minus_L=yes
10000
export_dynamic_flag_spec='${wl}-E'
10004
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10005
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10007
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10009
if test "$with_gnu_ld" = no; then
10010
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10011
hardcode_libdir_flag_spec_ld='+b $libdir'
10012
hardcode_libdir_separator=:
10013
hardcode_direct=yes
10014
hardcode_direct_absolute=yes
10015
export_dynamic_flag_spec='${wl}-E'
10016
# hardcode_minus_L: Not really in the search PATH,
10017
# but as the default location of the library.
10018
hardcode_minus_L=yes
10023
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10026
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10029
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10032
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10041
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10044
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10048
if test "$with_gnu_ld" = no; then
10049
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10050
hardcode_libdir_separator=:
10055
hardcode_shlibpath_var=no
10058
hardcode_direct=yes
10059
hardcode_direct_absolute=yes
10060
export_dynamic_flag_spec='${wl}-E'
10062
# hardcode_minus_L: Not really in the search PATH,
10063
# but as the default location of the library.
10064
hardcode_minus_L=yes
10070
irix5* | irix6* | nonstopux*)
10071
if test "$GCC" = yes; then
10072
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'
10073
# Try to use the -exported_symbol ld option, if it does not
10074
# work, assume that -exports_file does not work either and
10075
# implicitly export all symbols.
10076
save_LDFLAGS="$LDFLAGS"
10077
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079
/* end confdefs.h. */
10082
if ac_fn_c_try_link "$LINENO"; then :
10083
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'
10086
rm -f core conftest.err conftest.$ac_objext \
10087
conftest$ac_exeext conftest.$ac_ext
10088
LDFLAGS="$save_LDFLAGS"
10090
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'
10091
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'
10093
archive_cmds_need_lc='no'
10094
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095
hardcode_libdir_separator=:
10097
link_all_deplibs=yes
10100
netbsd* | netbsdelf*-gnu)
10101
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10102
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10104
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10106
hardcode_libdir_flag_spec='-R$libdir'
10107
hardcode_direct=yes
10108
hardcode_shlibpath_var=no
10112
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113
hardcode_direct=yes
10114
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115
hardcode_libdir_separator=:
10116
hardcode_shlibpath_var=no
10123
if test -f /usr/libexec/ld.so; then
10124
hardcode_direct=yes
10125
hardcode_shlibpath_var=no
10126
hardcode_direct_absolute=yes
10127
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10128
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10129
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10130
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10131
export_dynamic_flag_spec='${wl}-E'
10134
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10135
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10136
hardcode_libdir_flag_spec='-R$libdir'
10139
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10150
hardcode_libdir_flag_spec='-L$libdir'
10151
hardcode_minus_L=yes
10152
allow_undefined_flag=unsupported
10153
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'
10154
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10158
if test "$GCC" = yes; then
10159
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10160
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'
10162
allow_undefined_flag=' -expect_unresolved \*'
10163
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'
10165
archive_cmds_need_lc='no'
10166
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10167
hardcode_libdir_separator=:
10170
osf4* | osf5*) # as osf3* with the addition of -msym flag
10171
if test "$GCC" = yes; then
10172
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10173
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'
10174
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10176
allow_undefined_flag=' -expect_unresolved \*'
10177
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'
10178
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~
10179
$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'
10181
# Both c and cxx compiler support -rpath directly
10182
hardcode_libdir_flag_spec='-rpath $libdir'
10184
archive_cmds_need_lc='no'
10185
hardcode_libdir_separator=:
10189
no_undefined_flag=' -z defs'
10190
if test "$GCC" = yes; then
10192
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10193
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10194
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10196
case `$CC -V 2>&1` in
10199
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10201
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10205
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10206
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10211
hardcode_libdir_flag_spec='-R$libdir'
10212
hardcode_shlibpath_var=no
10214
solaris2.[0-5] | solaris2.[0-5].*) ;;
10216
# The compiler driver will combine and reorder linker options,
10217
# but understands `-z linker_flag'. GCC discards it without `$wl',
10218
# but is careful enough not to reorder.
10219
# Supported since Solaris 2.6 (maybe 2.5.1?)
10220
if test "$GCC" = yes; then
10221
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10223
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10227
link_all_deplibs=yes
10231
if test "x$host_vendor" = xsequent; then
10232
# Use $CC to link under sequent, because it throws in some extra .o
10233
# files that make .init and .fini sections work.
10234
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10236
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10238
hardcode_libdir_flag_spec='-L$libdir'
10239
hardcode_direct=yes
10240
hardcode_minus_L=yes
10241
hardcode_shlibpath_var=no
10245
case $host_vendor in
10247
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248
hardcode_direct=yes # is this really true???
10251
## LD is ld it makes a PLAMLIB
10252
## CC just makes a GrossModule.
10253
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10254
reload_cmds='$CC -r -o $output$reload_objs'
10258
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10262
runpath_var='LD_RUN_PATH'
10263
hardcode_shlibpath_var=no
10267
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268
hardcode_shlibpath_var=no
10269
export_dynamic_flag_spec='-Bexport'
10273
if test -d /usr/nec; then
10274
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275
hardcode_shlibpath_var=no
10276
runpath_var=LD_RUN_PATH
10277
hardcode_runpath_var=yes
10282
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10283
no_undefined_flag='${wl}-z,text'
10284
archive_cmds_need_lc=no
10285
hardcode_shlibpath_var=no
10286
runpath_var='LD_RUN_PATH'
10288
if test "$GCC" = yes; then
10289
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297
sysv5* | sco3.2v5* | sco5v6*)
10298
# Note: We can NOT use -z defs as we might desire, because we do not
10299
# link with -lc, and that would cause any symbols used from libc to
10300
# always be unresolved, which means just about no library would
10301
# ever link correctly. If we're not using GNU ld we use -z text
10302
# though, which does catch some bad symbols but isn't as heavy-handed
10304
no_undefined_flag='${wl}-z,text'
10305
allow_undefined_flag='${wl}-z,nodefs'
10306
archive_cmds_need_lc=no
10307
hardcode_shlibpath_var=no
10308
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10309
hardcode_libdir_separator=':'
10310
link_all_deplibs=yes
10311
export_dynamic_flag_spec='${wl}-Bexport'
10312
runpath_var='LD_RUN_PATH'
10314
if test "$GCC" = yes; then
10315
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325
hardcode_libdir_flag_spec='-L$libdir'
10326
hardcode_shlibpath_var=no
10334
if test x$host_vendor = xsni; then
10336
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10337
export_dynamic_flag_spec='${wl}-Blargedynsym'
10343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10344
$as_echo "$ld_shlibs" >&6; }
10345
test "$ld_shlibs" = no && can_build_shared=no
10347
with_gnu_ld=$with_gnu_ld
10364
# Do we need to explicitly link libc?
10366
case "x$archive_cmds_need_lc" in
10368
# Assume -lc should be added
10369
archive_cmds_need_lc=yes
10371
if test "$enable_shared" = yes && test "$GCC" = yes; then
10372
case $archive_cmds in
10374
# FIXME: we may have to deal with multi-command sequences.
10377
# Test whether the compiler implicitly links with -lc since on some
10378
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10379
# to ld, don't add -lc before -lgcc.
10380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10381
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10383
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10385
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10386
(eval $ac_compile) 2>&5
10388
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389
test $ac_status = 0; } 2>conftest.err; then
10392
libobjs=conftest.$ac_objext
10394
wl=$lt_prog_compiler_wl
10395
pic_flag=$lt_prog_compiler_pic
10401
lt_save_allow_undefined_flag=$allow_undefined_flag
10402
allow_undefined_flag=
10403
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10404
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10406
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10407
test $ac_status = 0; }
10409
archive_cmds_need_lc=no
10411
archive_cmds_need_lc=yes
10413
allow_undefined_flag=$lt_save_allow_undefined_flag
10415
cat conftest.err 1>&5
10418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10419
$as_echo "$archive_cmds_need_lc" >&6; }
10582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10583
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10585
if test "$GCC" = yes; then
10587
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10588
*) lt_awk_arg="/^libraries:/" ;;
10590
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10591
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10592
# if the path contains ";" then we assume it to be the separator
10593
# otherwise default to the standard path separator (i.e. ":") - it is
10594
# assumed that no part of a normal pathname contains ";" but that should
10595
# okay in the real world where ";" in dirpaths is itself problematic.
10596
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10598
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10600
# Ok, now we have the path, separated by spaces, we can step through it
10601
# and add multilib dir if necessary.
10602
lt_tmp_lt_search_path_spec=
10603
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10604
for lt_sys_path in $lt_search_path_spec; do
10605
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10606
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10608
test -d "$lt_sys_path" && \
10609
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10612
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10613
BEGIN {RS=" "; FS="/|\n";} {
10616
for (lt_i = NF; lt_i > 0; lt_i--) {
10617
if ($lt_i != "" && $lt_i != ".") {
10618
if ($lt_i == "..") {
10621
if (lt_count == 0) {
10622
lt_foo="/" $lt_i lt_foo;
10629
if (lt_foo != "") { lt_freq[lt_foo]++; }
10630
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10632
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10634
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10636
library_names_spec=
10637
libname_spec='lib$name'
10641
postuninstall_cmds=
10645
shlibpath_overrides_runpath=unknown
10647
dynamic_linker="$host_os ld.so"
10648
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10649
need_lib_prefix=unknown
10650
hardcode_into_libs=no
10652
# when you set need_version to no, make sure it does not cause -set_version
10653
# flags to be left without arguments
10654
need_version=unknown
10659
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10660
shlibpath_var=LIBPATH
10662
# AIX 3 has no versioning support, so we append a major version to the name.
10663
soname_spec='${libname}${release}${shared_ext}$major'
10670
hardcode_into_libs=yes
10671
if test "$host_cpu" = ia64; then
10672
# AIX 5 supports IA64
10673
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10674
shlibpath_var=LD_LIBRARY_PATH
10676
# With GCC up to 2.95.x, collect2 would create an import file
10677
# for dependence libraries. The import file would start with
10678
# the line `#! .'. This would cause the generated library to
10679
# depend on `.', always an invalid library. This was fixed in
10680
# development snapshots of GCC prior to 3.0.
10682
aix4 | aix4.[01] | aix4.[01].*)
10683
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10685
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10688
can_build_shared=no
10692
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10693
# soname into executable. Probably we can add versioning support to
10694
# collect2, so additional links can be useful in future.
10695
if test "$aix_use_runtimelinking" = yes; then
10696
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10697
# instead of lib<name>.a to let people know that these are not
10698
# typical AIX shared libraries.
10699
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701
# We preserve .a as extension for shared libraries through AIX4.2
10702
# and later when we are not doing run time linking.
10703
library_names_spec='${libname}${release}.a $libname.a'
10704
soname_spec='${libname}${release}${shared_ext}$major'
10706
shlibpath_var=LIBPATH
10713
# Since July 2007 AmigaOS4 officially supports .so libraries.
10714
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10715
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718
library_names_spec='$libname.ixlibrary $libname.a'
10719
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10720
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'
10726
library_names_spec='${libname}${shared_ext}'
10727
dynamic_linker="$host_os ld.so"
10728
shlibpath_var=LIBRARY_PATH
10734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735
soname_spec='${libname}${release}${shared_ext}$major'
10736
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10737
shlibpath_var=LD_LIBRARY_PATH
10738
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10739
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10740
# the default ld.so.conf also contains /usr/contrib/lib and
10741
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10742
# libtool to hard-code these into programs
10745
cygwin* | mingw* | pw32* | cegcc*)
10746
version_type=windows
10751
case $GCC,$host_os in
10752
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10753
library_names_spec='$libname.dll.a'
10754
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10755
postinstall_cmds='base_file=`basename \${file}`~
10756
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10757
dldir=$destdir/`dirname \$dlpath`~
10758
test -d \$dldir || mkdir -p \$dldir~
10759
$install_prog $dir/$dlname \$dldir/$dlname~
10760
chmod a+x \$dldir/$dlname~
10761
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10762
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10764
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10765
dlpath=$dir/\$dldll~
10767
shlibpath_overrides_runpath=yes
10771
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10772
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10776
# MinGW DLLs use traditional 'lib' prefix
10777
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10779
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10780
# It is most probably a Windows format PATH printed by
10781
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10782
# path with ; separators, and with drive letters. We can handle the
10783
# drive letters (cygwin fileutils understands them), so leave them,
10784
# especially as we might pass files found there to a mingw objdump,
10785
# which wouldn't understand a cygwinified path. Ahh.
10786
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10788
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10792
# pw32 DLLs use 'pw' prefix rather than 'lib'
10793
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10799
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10802
dynamic_linker='Win32 ld.exe'
10803
# FIXME: first we should search . and the directory the executable is in
10807
darwin* | rhapsody*)
10808
dynamic_linker="$host_os dyld"
10809
version_type=darwin
10812
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10813
soname_spec='${libname}${release}${major}$shared_ext'
10814
shlibpath_overrides_runpath=yes
10815
shlibpath_var=DYLD_LIBRARY_PATH
10816
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10818
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10819
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10826
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10827
soname_spec='${libname}${release}${shared_ext}$major'
10828
shlibpath_var=LD_LIBRARY_PATH
10835
freebsd* | dragonfly*)
10836
# DragonFly does not have aout. When/if they implement a new
10837
# versioning mechanism, adjust this.
10838
if test -x /usr/bin/objformat; then
10839
objformat=`/usr/bin/objformat`
10842
freebsd[123]*) objformat=aout ;;
10843
*) objformat=elf ;;
10846
version_type=freebsd-$objformat
10847
case $version_type in
10849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10854
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10858
shlibpath_var=LD_LIBRARY_PATH
10861
shlibpath_overrides_runpath=yes
10863
freebsd3.[01]* | freebsdelf3.[01]*)
10864
shlibpath_overrides_runpath=yes
10865
hardcode_into_libs=yes
10867
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10868
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10869
shlibpath_overrides_runpath=no
10870
hardcode_into_libs=yes
10872
*) # from 4.6 on, and DragonFly
10873
shlibpath_overrides_runpath=yes
10874
hardcode_into_libs=yes
10883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10884
soname_spec='${libname}${release}${shared_ext}$major'
10885
shlibpath_var=LD_LIBRARY_PATH
10886
hardcode_into_libs=yes
10889
hpux9* | hpux10* | hpux11*)
10890
# Give a soname corresponding to the major version so that dld.sl refuses to
10891
# link against other versions.
10898
hardcode_into_libs=yes
10899
dynamic_linker="$host_os dld.so"
10900
shlibpath_var=LD_LIBRARY_PATH
10901
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903
soname_spec='${libname}${release}${shared_ext}$major'
10904
if test "X$HPUX_IA64_MODE" = X32; then
10905
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10907
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10909
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10913
hardcode_into_libs=yes
10914
dynamic_linker="$host_os dld.sl"
10915
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10916
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918
soname_spec='${libname}${release}${shared_ext}$major'
10919
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10920
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10924
dynamic_linker="$host_os dld.sl"
10925
shlibpath_var=SHLIB_PATH
10926
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928
soname_spec='${libname}${release}${shared_ext}$major'
10931
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10932
postinstall_cmds='chmod 555 $lib'
10939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10940
soname_spec='${libname}${release}${shared_ext}$major'
10941
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10942
shlibpath_var=LD_LIBRARY_PATH
10943
shlibpath_overrides_runpath=no
10944
hardcode_into_libs=yes
10947
irix5* | irix6* | nonstopux*)
10949
nonstopux*) version_type=nonstopux ;;
10951
if test "$lt_cv_prog_gnu_ld" = yes; then
10959
soname_spec='${libname}${release}${shared_ext}$major'
10960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10962
irix5* | nonstopux*)
10963
libsuff= shlibsuff=
10966
case $LD in # libtool.m4 will add one of these switches to LD
10967
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10968
libsuff= shlibsuff= libmagic=32-bit;;
10969
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10970
libsuff=32 shlibsuff=N32 libmagic=N32;;
10971
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10972
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10973
*) libsuff= shlibsuff= libmagic=never-match;;
10977
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10978
shlibpath_overrides_runpath=no
10979
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10980
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10981
hardcode_into_libs=yes
10984
# No shared lib support for Linux oldld, aout, or coff.
10985
linux*oldld* | linux*aout* | linux*coff*)
10989
# This must be Linux ELF.
10990
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10994
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995
soname_spec='${libname}${release}${shared_ext}$major'
10996
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10997
shlibpath_var=LD_LIBRARY_PATH
10998
shlibpath_overrides_runpath=no
10999
# Some binutils ld are patched to set DT_RUNPATH
11000
save_LDFLAGS=$LDFLAGS
11001
save_libdir=$libdir
11002
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11003
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11004
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005
/* end confdefs.h. */
11015
if ac_fn_c_try_link "$LINENO"; then :
11016
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11017
shlibpath_overrides_runpath=yes
11020
rm -f core conftest.err conftest.$ac_objext \
11021
conftest$ac_exeext conftest.$ac_ext
11022
LDFLAGS=$save_LDFLAGS
11023
libdir=$save_libdir
11025
# This implies no fast_install, which is unacceptable.
11026
# Some rework will be needed to allow for fast_install
11027
# before this can be enabled.
11028
hardcode_into_libs=yes
11030
# Append ld.so.conf contents to the search path
11031
if test -f /etc/ld.so.conf; then
11032
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' ' '`
11033
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11036
# We used to test for /lib/ld.so.1 and disable shared libraries on
11037
# powerpc, because MkLinux only supported shared libraries with the
11038
# GNU dynamic linker. Since this was broken with cross compilers,
11039
# most powerpc-linux boxes support dynamic linking these days and
11040
# people can always --disable-shared, the test was removed, and we
11041
# assume the GNU/Linux dynamic linker is in use.
11042
dynamic_linker='GNU/Linux ld.so'
11049
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11050
soname_spec='${libname}${release}${shared_ext}$major'
11051
shlibpath_var=LD_LIBRARY_PATH
11052
shlibpath_overrides_runpath=no
11053
hardcode_into_libs=yes
11054
dynamic_linker='NetBSD ld.elf_so'
11061
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11063
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11064
dynamic_linker='NetBSD (a.out) ld.so'
11066
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11067
soname_spec='${libname}${release}${shared_ext}$major'
11068
dynamic_linker='NetBSD ld.elf_so'
11070
shlibpath_var=LD_LIBRARY_PATH
11071
shlibpath_overrides_runpath=yes
11072
hardcode_into_libs=yes
11077
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078
shlibpath_var=LD_LIBRARY_PATH
11079
shlibpath_overrides_runpath=yes
11086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087
soname_spec='${libname}${release}${shared_ext}$major'
11088
shlibpath_var=LD_LIBRARY_PATH
11089
shlibpath_overrides_runpath=no
11090
hardcode_into_libs=yes
11091
dynamic_linker='ldqnx.so'
11096
sys_lib_dlsearch_path_spec="/usr/lib"
11098
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11100
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11101
*) need_version=no ;;
11103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11105
shlibpath_var=LD_LIBRARY_PATH
11106
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11108
openbsd2.[89] | openbsd2.[89].*)
11109
shlibpath_overrides_runpath=no
11112
shlibpath_overrides_runpath=yes
11116
shlibpath_overrides_runpath=yes
11121
libname_spec='$name'
11124
library_names_spec='$libname${shared_ext} $libname.a'
11125
dynamic_linker='OS/2 ld.exe'
11126
shlibpath_var=LIBPATH
11129
osf3* | osf4* | osf5*)
11133
soname_spec='${libname}${release}${shared_ext}$major'
11134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135
shlibpath_var=LD_LIBRARY_PATH
11136
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11137
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149
soname_spec='${libname}${release}${shared_ext}$major'
11150
shlibpath_var=LD_LIBRARY_PATH
11151
shlibpath_overrides_runpath=yes
11152
hardcode_into_libs=yes
11153
# ldd complains unless libraries are executable
11154
postinstall_cmds='chmod +x $lib'
11159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11160
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11161
shlibpath_var=LD_LIBRARY_PATH
11162
shlibpath_overrides_runpath=yes
11163
if test "$with_gnu_ld" = yes; then
11171
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172
soname_spec='${libname}${release}${shared_ext}$major'
11173
shlibpath_var=LD_LIBRARY_PATH
11174
case $host_vendor in
11176
shlibpath_overrides_runpath=no
11178
runpath_var=LD_RUN_PATH
11186
shlibpath_overrides_runpath=no
11187
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11193
if test -d /usr/nec ;then
11195
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11196
soname_spec='$libname${shared_ext}.$major'
11197
shlibpath_var=LD_LIBRARY_PATH
11201
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11202
version_type=freebsd-elf
11205
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11206
soname_spec='${libname}${release}${shared_ext}$major'
11207
shlibpath_var=LD_LIBRARY_PATH
11208
shlibpath_overrides_runpath=yes
11209
hardcode_into_libs=yes
11210
if test "$with_gnu_ld" = yes; then
11211
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11213
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11216
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11220
sys_lib_dlsearch_path_spec='/usr/lib'
11224
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11228
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11229
shlibpath_var=LD_LIBRARY_PATH
11230
shlibpath_overrides_runpath=no
11231
hardcode_into_libs=yes
11236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237
soname_spec='${libname}${release}${shared_ext}$major'
11238
shlibpath_var=LD_LIBRARY_PATH
11245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11246
$as_echo "$dynamic_linker" >&6; }
11247
test "$dynamic_linker" = no && can_build_shared=no
11249
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11250
if test "$GCC" = yes; then
11251
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11254
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11255
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11257
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11258
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11348
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11350
if test -n "$hardcode_libdir_flag_spec" ||
11351
test -n "$runpath_var" ||
11352
test "X$hardcode_automatic" = "Xyes" ; then
11354
# We can hardcode non-existent directories.
11355
if test "$hardcode_direct" != no &&
11356
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11357
# have to relink, otherwise we might link with an installed library
11358
# when we should be linking with a yet-to-be-installed one
11359
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11360
test "$hardcode_minus_L" != no; then
11361
# Linking always hardcodes the temporary library directory.
11362
hardcode_action=relink
11364
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11365
hardcode_action=immediate
11368
# We cannot hardcode anything, or else we can only hardcode existing
11370
hardcode_action=unsupported
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11373
$as_echo "$hardcode_action" >&6; }
11375
if test "$hardcode_action" = relink ||
11376
test "$inherit_rpath" = yes; then
11377
# Fast installation is not supported
11378
enable_fast_install=no
11379
elif test "$shlibpath_overrides_runpath" = yes ||
11380
test "$enable_shared" = no; then
11381
# Fast installation is not necessary
11382
enable_fast_install=needless
11390
if test "x$enable_dlopen" != xyes; then
11391
enable_dlopen=unknown
11392
enable_dlopen_self=unknown
11393
enable_dlopen_self_static=unknown
11400
lt_cv_dlopen="load_add_on"
11402
lt_cv_dlopen_self=yes
11405
mingw* | pw32* | cegcc*)
11406
lt_cv_dlopen="LoadLibrary"
11411
lt_cv_dlopen="dlopen"
11416
# if libdl is installed we need to link against it
11417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11418
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11419
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11420
$as_echo_n "(cached) " >&6
11422
ac_check_lib_save_LIBS=$LIBS
11424
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425
/* end confdefs.h. */
11427
/* Override any GCC internal prototype to avoid an error.
11428
Use char because int might match the return type of a GCC
11429
builtin and then its argument prototype would still apply. */
11442
if ac_fn_c_try_link "$LINENO"; then :
11443
ac_cv_lib_dl_dlopen=yes
11445
ac_cv_lib_dl_dlopen=no
11447
rm -f core conftest.err conftest.$ac_objext \
11448
conftest$ac_exeext conftest.$ac_ext
11449
LIBS=$ac_check_lib_save_LIBS
11451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11452
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11453
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11454
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11457
lt_cv_dlopen="dyld"
11459
lt_cv_dlopen_self=yes
11466
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11467
if test "x$ac_cv_func_shl_load" = x""yes; then :
11468
lt_cv_dlopen="shl_load"
11470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11471
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11472
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11473
$as_echo_n "(cached) " >&6
11475
ac_check_lib_save_LIBS=$LIBS
11477
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478
/* end confdefs.h. */
11480
/* Override any GCC internal prototype to avoid an error.
11481
Use char because int might match the return type of a GCC
11482
builtin and then its argument prototype would still apply. */
11490
return shl_load ();
11495
if ac_fn_c_try_link "$LINENO"; then :
11496
ac_cv_lib_dld_shl_load=yes
11498
ac_cv_lib_dld_shl_load=no
11500
rm -f core conftest.err conftest.$ac_objext \
11501
conftest$ac_exeext conftest.$ac_ext
11502
LIBS=$ac_check_lib_save_LIBS
11504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11505
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11506
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11507
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11509
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11510
if test "x$ac_cv_func_dlopen" = x""yes; then :
11511
lt_cv_dlopen="dlopen"
11513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11514
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11515
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11516
$as_echo_n "(cached) " >&6
11518
ac_check_lib_save_LIBS=$LIBS
11520
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521
/* end confdefs.h. */
11523
/* Override any GCC internal prototype to avoid an error.
11524
Use char because int might match the return type of a GCC
11525
builtin and then its argument prototype would still apply. */
11538
if ac_fn_c_try_link "$LINENO"; then :
11539
ac_cv_lib_dl_dlopen=yes
11541
ac_cv_lib_dl_dlopen=no
11543
rm -f core conftest.err conftest.$ac_objext \
11544
conftest$ac_exeext conftest.$ac_ext
11545
LIBS=$ac_check_lib_save_LIBS
11547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11548
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11549
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11550
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11553
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11554
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11555
$as_echo_n "(cached) " >&6
11557
ac_check_lib_save_LIBS=$LIBS
11558
LIBS="-lsvld $LIBS"
11559
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560
/* end confdefs.h. */
11562
/* Override any GCC internal prototype to avoid an error.
11563
Use char because int might match the return type of a GCC
11564
builtin and then its argument prototype would still apply. */
11577
if ac_fn_c_try_link "$LINENO"; then :
11578
ac_cv_lib_svld_dlopen=yes
11580
ac_cv_lib_svld_dlopen=no
11582
rm -f core conftest.err conftest.$ac_objext \
11583
conftest$ac_exeext conftest.$ac_ext
11584
LIBS=$ac_check_lib_save_LIBS
11586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11587
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11588
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11589
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11592
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11593
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11594
$as_echo_n "(cached) " >&6
11596
ac_check_lib_save_LIBS=$LIBS
11598
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599
/* end confdefs.h. */
11601
/* Override any GCC internal prototype to avoid an error.
11602
Use char because int might match the return type of a GCC
11603
builtin and then its argument prototype would still apply. */
11611
return dld_link ();
11616
if ac_fn_c_try_link "$LINENO"; then :
11617
ac_cv_lib_dld_dld_link=yes
11619
ac_cv_lib_dld_dld_link=no
11621
rm -f core conftest.err conftest.$ac_objext \
11622
conftest$ac_exeext conftest.$ac_ext
11623
LIBS=$ac_check_lib_save_LIBS
11625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11626
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11627
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11628
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11649
if test "x$lt_cv_dlopen" != xno; then
11655
case $lt_cv_dlopen in
11657
save_CPPFLAGS="$CPPFLAGS"
11658
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11660
save_LDFLAGS="$LDFLAGS"
11661
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11664
LIBS="$lt_cv_dlopen_libs $LIBS"
11666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11667
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11668
if test "${lt_cv_dlopen_self+set}" = set; then :
11669
$as_echo_n "(cached) " >&6
11671
if test "$cross_compiling" = yes; then :
11672
lt_cv_dlopen_self=cross
11674
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11675
lt_status=$lt_dlunknown
11676
cat > conftest.$ac_ext <<_LT_EOF
11677
#line 11677 "configure"
11678
#include "confdefs.h"
11687
# define LT_DLGLOBAL RTLD_GLOBAL
11690
# define LT_DLGLOBAL DL_GLOBAL
11692
# define LT_DLGLOBAL 0
11696
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11697
find out it does not work in some platform. */
11698
#ifndef LT_DLLAZY_OR_NOW
11700
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11703
# define LT_DLLAZY_OR_NOW DL_LAZY
11706
# define LT_DLLAZY_OR_NOW RTLD_NOW
11709
# define LT_DLLAZY_OR_NOW DL_NOW
11711
# define LT_DLLAZY_OR_NOW 0
11718
void fnord() { int i=42;}
11721
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11722
int status = $lt_dlunknown;
11726
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11727
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11728
/* dlclose (self); */
11736
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11737
(eval $ac_link) 2>&5
11739
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11741
(./conftest; exit; ) >&5 2>/dev/null
11743
case x$lt_status in
11744
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11745
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11746
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11749
# compilation failed
11750
lt_cv_dlopen_self=no
11757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11758
$as_echo "$lt_cv_dlopen_self" >&6; }
11760
if test "x$lt_cv_dlopen_self" = xyes; then
11761
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11762
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11763
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11764
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11765
$as_echo_n "(cached) " >&6
11767
if test "$cross_compiling" = yes; then :
11768
lt_cv_dlopen_self_static=cross
11770
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11771
lt_status=$lt_dlunknown
11772
cat > conftest.$ac_ext <<_LT_EOF
11773
#line 11773 "configure"
11774
#include "confdefs.h"
11783
# define LT_DLGLOBAL RTLD_GLOBAL
11786
# define LT_DLGLOBAL DL_GLOBAL
11788
# define LT_DLGLOBAL 0
11792
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11793
find out it does not work in some platform. */
11794
#ifndef LT_DLLAZY_OR_NOW
11796
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11799
# define LT_DLLAZY_OR_NOW DL_LAZY
11802
# define LT_DLLAZY_OR_NOW RTLD_NOW
11805
# define LT_DLLAZY_OR_NOW DL_NOW
11807
# define LT_DLLAZY_OR_NOW 0
11814
void fnord() { int i=42;}
11817
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11818
int status = $lt_dlunknown;
11822
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11823
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11824
/* dlclose (self); */
11832
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11833
(eval $ac_link) 2>&5
11835
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11836
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11837
(./conftest; exit; ) >&5 2>/dev/null
11839
case x$lt_status in
11840
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11841
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11842
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11845
# compilation failed
11846
lt_cv_dlopen_self_static=no
11853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11854
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11857
CPPFLAGS="$save_CPPFLAGS"
11858
LDFLAGS="$save_LDFLAGS"
11863
case $lt_cv_dlopen_self in
11864
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11865
*) enable_dlopen_self=unknown ;;
11868
case $lt_cv_dlopen_self_static in
11869
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11870
*) enable_dlopen_self_static=unknown ;;
11892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11893
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11894
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11895
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11896
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898
$as_echo "yes" >&6; }
11900
# FIXME - insert some real tests, host_os isn't really good enough
11903
if test -n "$STRIP" ; then
11904
striplib="$STRIP -x"
11905
old_striplib="$STRIP -S"
11906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907
$as_echo "yes" >&6; }
11909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910
$as_echo "no" >&6; }
11914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915
$as_echo "no" >&6; }
11931
# Report which library types will actually be built
11932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11933
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11935
$as_echo "$can_build_shared" >&6; }
11937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11938
$as_echo_n "checking whether to build shared libraries... " >&6; }
11939
test "$can_build_shared" = "no" && enable_shared=no
11941
# On AIX, shared libraries and static libraries use the same namespace, and
11942
# are all built from PIC.
11945
test "$enable_shared" = yes && enable_static=no
11946
if test -n "$RANLIB"; then
11947
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11948
postinstall_cmds='$RANLIB $lib'
11953
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11954
test "$enable_shared" = yes && enable_static=no
11958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11959
$as_echo "$enable_shared" >&6; }
11961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11962
$as_echo_n "checking whether to build static libraries... " >&6; }
11963
# Make sure either enable_shared or enable_static is yes.
11964
test "$enable_shared" = yes || enable_static=yes
11965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11966
$as_echo "$enable_static" >&6; }
11973
ac_cpp='$CPP $CPPFLAGS'
11974
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11982
ac_cpp='$CXXCPP $CPPFLAGS'
11983
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11984
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11985
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11987
archive_cmds_need_lc_CXX=no
11988
allow_undefined_flag_CXX=
11989
always_export_symbols_CXX=no
11990
archive_expsym_cmds_CXX=
11991
compiler_needs_object_CXX=no
11992
export_dynamic_flag_spec_CXX=
11993
hardcode_direct_CXX=no
11994
hardcode_direct_absolute_CXX=no
11995
hardcode_libdir_flag_spec_CXX=
11996
hardcode_libdir_flag_spec_ld_CXX=
11997
hardcode_libdir_separator_CXX=
11998
hardcode_minus_L_CXX=no
11999
hardcode_shlibpath_var_CXX=unsupported
12000
hardcode_automatic_CXX=no
12001
inherit_rpath_CXX=no
12003
module_expsym_cmds_CXX=
12004
link_all_deplibs_CXX=unknown
12005
old_archive_cmds_CXX=$old_archive_cmds
12006
no_undefined_flag_CXX=
12007
whole_archive_flag_spec_CXX=
12008
enable_shared_with_static_runtimes_CXX=no
12010
# Source file extension for C++ test sources.
12013
# Object file extension for compiled C++ test sources.
12017
# No sense in running all these tests if we already determined that
12018
# the CXX compiler isn't working. Some variables (like enable_shared)
12019
# are currently assumed to apply to all compilers on this platform,
12020
# and will be corrupted by setting them based on a non-working compiler.
12021
if test "$_lt_caught_CXX_error" != yes; then
12022
# Code to be used in simple compile tests
12023
lt_simple_compile_test_code="int some_variable = 0;"
12025
# Code to be used in simple link tests
12026
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12028
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12035
# If no C compiler was specified, use CC.
12038
# If no C compiler flags were specified, use CFLAGS.
12039
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12041
# Allow CC to be a program name with arguments.
12045
# save warnings/boilerplate of simple test code
12046
ac_outfile=conftest.$ac_objext
12047
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12048
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12049
_lt_compiler_boilerplate=`cat conftest.err`
12052
ac_outfile=conftest.$ac_objext
12053
echo "$lt_simple_link_test_code" >conftest.$ac_ext
12054
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12055
_lt_linker_boilerplate=`cat conftest.err`
12059
# Allow CC to be a program name with arguments.
12064
lt_save_with_gnu_ld=$with_gnu_ld
12065
lt_save_path_LD=$lt_cv_path_LD
12066
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12067
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12069
$as_unset lt_cv_prog_gnu_ld
12071
if test -n "${lt_cv_path_LDCXX+set}"; then
12072
lt_cv_path_LD=$lt_cv_path_LDCXX
12074
$as_unset lt_cv_path_LD
12076
test -z "${LDCXX+set}" || LD=$LDCXX
12080
for cc_temp in $compiler""; do
12082
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12083
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12088
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12091
if test -n "$compiler"; then
12092
# We don't want -fno-exception when compiling C++ code, so set the
12093
# no_builtin_flag separately
12094
if test "$GXX" = yes; then
12095
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12097
lt_prog_compiler_no_builtin_flag_CXX=
12100
if test "$GXX" = yes; then
12101
# Set up default GNU C++ configuration
12105
# Check whether --with-gnu-ld was given.
12106
if test "${with_gnu_ld+set}" = set; then :
12107
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12113
if test "$GCC" = yes; then
12114
# Check if gcc -print-prog-name=ld gives a path.
12115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12116
$as_echo_n "checking for ld used by $CC... " >&6; }
12119
# gcc leaves a trailing carriage return which upsets mingw
12120
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12122
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12125
# Accept absolute paths.
12127
re_direlt='/[^/][^/]*/\.\./'
12128
# Canonicalize the pathname of ld
12129
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12130
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12131
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12133
test -z "$LD" && LD="$ac_prog"
12136
# If it fails, then pretend we aren't using GCC.
12140
# If it is relative, then search for the first ld in PATH.
12141
with_gnu_ld=unknown
12144
elif test "$with_gnu_ld" = yes; then
12145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12146
$as_echo_n "checking for GNU ld... " >&6; }
12148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12149
$as_echo_n "checking for non-GNU ld... " >&6; }
12151
if test "${lt_cv_path_LD+set}" = set; then :
12152
$as_echo_n "(cached) " >&6
12154
if test -z "$LD"; then
12155
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12156
for ac_dir in $PATH; do
12158
test -z "$ac_dir" && ac_dir=.
12159
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12160
lt_cv_path_LD="$ac_dir/$ac_prog"
12161
# Check to see if the program is GNU ld. I'd rather use --version,
12162
# but apparently some variants of GNU ld only accept -v.
12163
# Break only if it was the GNU/non-GNU ld that we prefer.
12164
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12165
*GNU* | *'with BFD'*)
12166
test "$with_gnu_ld" != no && break
12169
test "$with_gnu_ld" != yes && break
12176
lt_cv_path_LD="$LD" # Let the user override the test with a path.
12180
LD="$lt_cv_path_LD"
12181
if test -n "$LD"; then
12182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12183
$as_echo "$LD" >&6; }
12185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12186
$as_echo "no" >&6; }
12188
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12190
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12191
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12192
$as_echo_n "(cached) " >&6
12194
# I'd rather use --version here, but apparently some GNU lds only accept -v.
12195
case `$LD -v 2>&1 </dev/null` in
12196
*GNU* | *'with BFD'*)
12197
lt_cv_prog_gnu_ld=yes
12200
lt_cv_prog_gnu_ld=no
12204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12205
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12206
with_gnu_ld=$lt_cv_prog_gnu_ld
12214
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12215
# archiving commands below assume that GNU ld is being used.
12216
if test "$with_gnu_ld" = yes; then
12217
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218
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'
12220
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12221
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12223
# If archive_cmds runs LD, not CC, wlarc should be empty
12224
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12225
# investigate it a little bit more. (MM)
12228
# ancient GNU ld didn't support --whole-archive et. al.
12229
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12230
$GREP 'no-whole-archive' > /dev/null; then
12231
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12233
whole_archive_flag_spec_CXX=
12239
# A generic and very simple default shared library creation
12240
# command for GNU C++ for the case where it uses the native
12241
# linker, instead of GNU ld. If possible, this setting should
12242
# overridden to take advantage of the native linker features on
12243
# the platform it is being used on.
12244
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12247
# Commands to make compiler produce verbose output that lists
12248
# what "hidden" libraries, object files and flags are used when
12249
# linking a shared library.
12250
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12258
# PORTME: fill in a description of your system's C++ link characteristics
12259
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12260
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12264
# FIXME: insert proper C++ library support
12268
if test "$host_cpu" = ia64; then
12269
# On IA64, the linker does run time linking by default, so we don't
12270
# have to do anything special.
12271
aix_use_runtimelinking=no
12272
exp_sym_flag='-Bexport'
12275
aix_use_runtimelinking=no
12277
# Test if we are trying to use run time linking or normal
12278
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12279
# need to do runtime linking.
12280
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12281
for ld_flag in $LDFLAGS; do
12284
aix_use_runtimelinking=yes
12292
exp_sym_flag='-bexport'
12293
no_entry_flag='-bnoentry'
12296
# When large executables or shared objects are built, AIX ld can
12297
# have problems creating the table of contents. If linking a library
12298
# or program results in "error TOC overflow" add -mminimal-toc to
12299
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12300
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12302
archive_cmds_CXX=''
12303
hardcode_direct_CXX=yes
12304
hardcode_direct_absolute_CXX=yes
12305
hardcode_libdir_separator_CXX=':'
12306
link_all_deplibs_CXX=yes
12307
file_list_spec_CXX='${wl}-f,'
12309
if test "$GXX" = yes; then
12310
case $host_os in aix4.[012]|aix4.[012].*)
12311
# We only want to do this on AIX 4.2 and lower, the check
12312
# below for broken collect2 doesn't work under 4.3+
12313
collect2name=`${CC} -print-prog-name=collect2`
12314
if test -f "$collect2name" &&
12315
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12317
# We have reworked collect2
12320
# We have old collect2
12321
hardcode_direct_CXX=unsupported
12322
# It fails to find uninstalled libraries when the uninstalled
12323
# path is not listed in the libpath. Setting hardcode_minus_L
12324
# to unsupported forces relinking
12325
hardcode_minus_L_CXX=yes
12326
hardcode_libdir_flag_spec_CXX='-L$libdir'
12327
hardcode_libdir_separator_CXX=
12330
shared_flag='-shared'
12331
if test "$aix_use_runtimelinking" = yes; then
12332
shared_flag="$shared_flag "'${wl}-G'
12336
if test "$host_cpu" = ia64; then
12337
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12338
# chokes on -Wl,-G. The following line is correct:
12341
if test "$aix_use_runtimelinking" = yes; then
12342
shared_flag='${wl}-G'
12344
shared_flag='${wl}-bM:SRE'
12349
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12350
# It seems that -bexpall does not export symbols beginning with
12351
# underscore (_), so it is better to generate a list of symbols to
12353
always_export_symbols_CXX=yes
12354
if test "$aix_use_runtimelinking" = yes; then
12355
# Warning - without using the other runtime loading flags (-brtl),
12356
# -berok will link without error, but may produce a broken library.
12357
allow_undefined_flag_CXX='-berok'
12358
# Determine the default libpath from the value encoded in an empty
12360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361
/* end confdefs.h. */
12371
if ac_fn_cxx_try_link "$LINENO"; then :
12373
lt_aix_libpath_sed='
12374
/Import File Strings/,/^$/ {
12380
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12381
# Check for a 64-bit object if we didn't find anything.
12382
if test -z "$aix_libpath"; then
12383
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12386
rm -f core conftest.err conftest.$ac_objext \
12387
conftest$ac_exeext conftest.$ac_ext
12388
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12390
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12392
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"
12394
if test "$host_cpu" = ia64; then
12395
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12396
allow_undefined_flag_CXX="-z nodefs"
12397
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"
12399
# Determine the default libpath from the value encoded in an
12400
# empty executable.
12401
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402
/* end confdefs.h. */
12412
if ac_fn_cxx_try_link "$LINENO"; then :
12414
lt_aix_libpath_sed='
12415
/Import File Strings/,/^$/ {
12421
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12422
# Check for a 64-bit object if we didn't find anything.
12423
if test -z "$aix_libpath"; then
12424
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12427
rm -f core conftest.err conftest.$ac_objext \
12428
conftest$ac_exeext conftest.$ac_ext
12429
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12431
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12432
# Warning - without using the other run time loading flags,
12433
# -berok will link without error, but may produce a broken library.
12434
no_undefined_flag_CXX=' ${wl}-bernotok'
12435
allow_undefined_flag_CXX=' ${wl}-berok'
12436
# Exported symbols can be pulled into shared objects from archives
12437
whole_archive_flag_spec_CXX='$convenience'
12438
archive_cmds_need_lc_CXX=yes
12439
# This is similar to how AIX traditionally builds its shared
12441
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'
12447
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12448
allow_undefined_flag_CXX=unsupported
12449
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12450
# support --undefined. This deserves some investigation. FIXME
12451
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12458
case $cc_basename in
12460
# FIXME: insert proper C++ library support
12466
cygwin* | mingw* | pw32* | cegcc*)
12467
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12468
# as there is no search path for DLLs.
12469
hardcode_libdir_flag_spec_CXX='-L$libdir'
12470
allow_undefined_flag_CXX=unsupported
12471
always_export_symbols_CXX=no
12472
enable_shared_with_static_runtimes_CXX=yes
12474
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12475
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'
12476
# If the export-symbols file already is a .def file (1st line
12477
# is EXPORTS), use it as is; otherwise, prepend...
12478
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12479
cp $export_symbols $output_objdir/$soname.def;
12481
echo EXPORTS > $output_objdir/$soname.def;
12482
cat $export_symbols >> $output_objdir/$soname.def;
12484
$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'
12489
darwin* | rhapsody*)
12492
archive_cmds_need_lc_CXX=no
12493
hardcode_direct_CXX=no
12494
hardcode_automatic_CXX=yes
12495
hardcode_shlibpath_var_CXX=unsupported
12496
whole_archive_flag_spec_CXX=''
12497
link_all_deplibs_CXX=yes
12498
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12499
case $cc_basename in
12500
ifort*) _lt_dar_can_shared=yes ;;
12501
*) _lt_dar_can_shared=$GCC ;;
12503
if test "$_lt_dar_can_shared" = "yes"; then
12504
output_verbose_link_cmd=echo
12505
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}"
12506
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12507
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}"
12508
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}"
12509
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12510
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}"
12511
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}"
12521
case $cc_basename in
12523
# FIXME: insert proper C++ library support
12527
# Green Hills C++ Compiler
12528
# FIXME: insert proper C++ library support
12532
# FIXME: insert proper C++ library support
12539
# C++ shared libraries reported to be fairly broken before
12545
archive_cmds_need_lc_CXX=no
12548
freebsd* | dragonfly*)
12549
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12558
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12559
hardcode_libdir_separator_CXX=:
12560
export_dynamic_flag_spec_CXX='${wl}-E'
12561
hardcode_direct_CXX=yes
12562
hardcode_minus_L_CXX=yes # Not in the search PATH,
12563
# but as the default
12564
# location of the library.
12566
case $cc_basename in
12568
# FIXME: insert proper C++ library support
12572
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'
12573
# Commands to make compiler produce verbose output that lists
12574
# what "hidden" libraries, object files and flags are used when
12575
# linking a shared library.
12577
# There doesn't appear to be a way to prevent this compiler from
12578
# explicitly linking system object files so we need to strip them
12579
# from the output so that they don't get included in the library
12581
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'
12584
if test "$GXX" = yes; then
12585
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'
12587
# FIXME: insert proper C++ library support
12595
if test $with_gnu_ld = no; then
12596
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12597
hardcode_libdir_separator_CXX=:
12603
export_dynamic_flag_spec_CXX='${wl}-E'
12609
hardcode_direct_CXX=no
12610
hardcode_shlibpath_var_CXX=no
12613
hardcode_direct_CXX=yes
12614
hardcode_direct_absolute_CXX=yes
12615
hardcode_minus_L_CXX=yes # Not in the search PATH,
12616
# but as the default
12617
# location of the library.
12621
case $cc_basename in
12623
# FIXME: insert proper C++ library support
12629
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12632
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12635
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12638
# Commands to make compiler produce verbose output that lists
12639
# what "hidden" libraries, object files and flags are used when
12640
# linking a shared library.
12642
# There doesn't appear to be a way to prevent this compiler from
12643
# explicitly linking system object files so we need to strip them
12644
# from the output so that they don't get included in the library
12646
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'
12649
if test "$GXX" = yes; then
12650
if test $with_gnu_ld = no; then
12653
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12656
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12659
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'
12664
# FIXME: insert proper C++ library support
12672
hardcode_direct_CXX=no
12673
hardcode_shlibpath_var_CXX=no
12674
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12675
export_dynamic_flag_spec_CXX='${wl}-E'
12676
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12677
# Instead, shared libraries are loaded at an image base (0x10000000 by
12678
# default) and relocated if they conflict, which is a slow very memory
12679
# consuming and fragmenting process. To avoid this, we pick a random,
12680
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12681
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12682
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'
12683
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'
12686
case $cc_basename in
12689
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'
12691
# Archives containing C++ object files must be created using
12692
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12693
# necessary to make sure instantiated templates are included
12695
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12698
if test "$GXX" = yes; then
12699
if test "$with_gnu_ld" = no; then
12700
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'
12702
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'
12705
link_all_deplibs_CXX=yes
12708
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12709
hardcode_libdir_separator_CXX=:
12710
inherit_rpath_CXX=yes
12713
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12714
case $cc_basename in
12716
# Kuck and Associates, Inc. (KAI) C++ Compiler
12718
# KCC will only create a shared library if the output file
12719
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12720
# to its proper name (with version) after linking.
12721
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'
12722
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'
12723
# Commands to make compiler produce verbose output that lists
12724
# what "hidden" libraries, object files and flags are used when
12725
# linking a shared library.
12727
# There doesn't appear to be a way to prevent this compiler from
12728
# explicitly linking system object files so we need to strip them
12729
# from the output so that they don't get included in the library
12731
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'
12733
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12734
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12736
# Archives containing C++ object files must be created using
12737
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12738
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12743
# version 8.0 and above of icpc choke on multiply defined symbols
12744
# if we add $predep_objects and $postdep_objects, however 7.1 and
12745
# earlier do not add the objects themselves.
12746
case `$CC -V 2>&1` in
12748
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12749
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'
12751
*) # Version 8.0 or newer
12754
ia64*) tmp_idyn=' -i_dynamic';;
12756
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12757
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'
12760
archive_cmds_need_lc_CXX=no
12761
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12762
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12763
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12766
# Portland Group C++ compiler
12768
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12769
prelink_cmds_CXX='tpldir=Template.dir~
12771
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12772
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12773
old_archive_cmds_CXX='tpldir=Template.dir~
12775
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12776
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12778
archive_cmds_CXX='tpldir=Template.dir~
12780
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12781
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12782
archive_expsym_cmds_CXX='tpldir=Template.dir~
12784
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12785
$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'
12787
*) # Version 6 will use weak symbols
12788
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12789
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'
12793
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12794
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12795
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'
12799
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12800
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'
12802
runpath_var=LD_RUN_PATH
12803
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12804
hardcode_libdir_separator_CXX=:
12806
# Commands to make compiler produce verbose output that lists
12807
# what "hidden" libraries, object files and flags are used when
12808
# linking a shared library.
12810
# There doesn't appear to be a way to prevent this compiler from
12811
# explicitly linking system object files so we need to strip them
12812
# from the output so that they don't get included in the library
12814
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'
12817
# IBM XL 8.0 on PPC, with GNU ld
12818
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12819
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12820
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12821
if test "x$supports_anon_versioning" = xyes; then
12822
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12823
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12824
echo "local: *; };" >> $output_objdir/$libname.ver~
12825
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12829
case `$CC -V 2>&1 | sed 5q` in
12832
no_undefined_flag_CXX=' -zdefs'
12833
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12834
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'
12835
hardcode_libdir_flag_spec_CXX='-R$libdir'
12836
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'
12837
compiler_needs_object_CXX=yes
12839
# Not sure whether something based on
12840
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12842
output_verbose_link_cmd='echo'
12844
# Archives containing C++ object files must be created using
12845
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12846
# necessary to make sure instantiated templates are included
12848
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12856
# FIXME: insert proper C++ library support
12861
# FIXME: insert proper C++ library support
12866
case $cc_basename in
12868
# FIXME: insert proper C++ library support
12872
# FIXME: insert proper C++ library support
12879
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12880
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12882
hardcode_libdir_flag_spec_CXX='-R$libdir'
12883
hardcode_direct_CXX=yes
12884
hardcode_shlibpath_var_CXX=no
12886
# Workaround some broken pre-1.5 toolchains
12887
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12895
# C++ shared libraries are fairly broken
12900
if test -f /usr/libexec/ld.so; then
12901
hardcode_direct_CXX=yes
12902
hardcode_shlibpath_var_CXX=no
12903
hardcode_direct_absolute_CXX=yes
12904
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12905
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12906
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12907
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12908
export_dynamic_flag_spec_CXX='${wl}-E'
12909
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12911
output_verbose_link_cmd=echo
12917
osf3* | osf4* | osf5*)
12918
case $cc_basename in
12920
# Kuck and Associates, Inc. (KAI) C++ Compiler
12922
# KCC will only create a shared library if the output file
12923
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12924
# to its proper name (with version) after linking.
12925
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'
12927
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12928
hardcode_libdir_separator_CXX=:
12930
# Archives containing C++ object files must be created using
12931
# the KAI C++ compiler.
12933
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12934
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12938
# Rational C++ 2.4.1
12939
# FIXME: insert proper C++ library support
12945
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12946
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'
12947
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12950
allow_undefined_flag_CXX=' -expect_unresolved \*'
12951
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'
12952
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12953
echo "-hidden">> $lib.exp~
12954
$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~
12956
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12960
hardcode_libdir_separator_CXX=:
12962
# Commands to make compiler produce verbose output that lists
12963
# what "hidden" libraries, object files and flags are used when
12964
# linking a shared library.
12966
# There doesn't appear to be a way to prevent this compiler from
12967
# explicitly linking system object files so we need to strip them
12968
# from the output so that they don't get included in the library
12970
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'
12973
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12974
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12977
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'
12980
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'
12984
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12985
hardcode_libdir_separator_CXX=:
12987
# Commands to make compiler produce verbose output that lists
12988
# what "hidden" libraries, object files and flags are used when
12989
# linking a shared library.
12990
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12993
# FIXME: insert proper C++ library support
13001
# FIXME: insert proper C++ library support
13006
case $cc_basename in
13009
# FIXME: insert proper C++ library support
13014
# FIXME: insert proper C++ library support
13018
# FIXME: insert proper C++ library support
13025
case $cc_basename in
13027
# Sun C++ 4.2, 5.x and Centerline C++
13028
archive_cmds_need_lc_CXX=yes
13029
no_undefined_flag_CXX=' -zdefs'
13030
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13031
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13032
$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'
13034
hardcode_libdir_flag_spec_CXX='-R$libdir'
13035
hardcode_shlibpath_var_CXX=no
13037
solaris2.[0-5] | solaris2.[0-5].*) ;;
13039
# The compiler driver will combine and reorder linker options,
13040
# but understands `-z linker_flag'.
13041
# Supported since Solaris 2.6 (maybe 2.5.1?)
13042
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13045
link_all_deplibs_CXX=yes
13047
output_verbose_link_cmd='echo'
13049
# Archives containing C++ object files must be created using
13050
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13051
# necessary to make sure instantiated templates are included
13053
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13056
# Green Hills C++ Compiler
13057
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13059
# The C++ compiler must be used to create the archive.
13060
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13063
# GNU C++ compiler with Solaris linker
13064
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13065
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13066
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13067
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13068
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13069
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13071
# Commands to make compiler produce verbose output that lists
13072
# what "hidden" libraries, object files and flags are used when
13073
# linking a shared library.
13074
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13076
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13078
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13079
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13080
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13082
# Commands to make compiler produce verbose output that lists
13083
# what "hidden" libraries, object files and flags are used when
13084
# linking a shared library.
13085
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13088
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13090
solaris2.[0-5] | solaris2.[0-5].*) ;;
13092
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13100
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13101
no_undefined_flag_CXX='${wl}-z,text'
13102
archive_cmds_need_lc_CXX=no
13103
hardcode_shlibpath_var_CXX=no
13104
runpath_var='LD_RUN_PATH'
13106
case $cc_basename in
13108
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13109
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13112
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13113
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13118
sysv5* | sco3.2v5* | sco5v6*)
13119
# Note: We can NOT use -z defs as we might desire, because we do not
13120
# link with -lc, and that would cause any symbols used from libc to
13121
# always be unresolved, which means just about no library would
13122
# ever link correctly. If we're not using GNU ld we use -z text
13123
# though, which does catch some bad symbols but isn't as heavy-handed
13125
no_undefined_flag_CXX='${wl}-z,text'
13126
allow_undefined_flag_CXX='${wl}-z,nodefs'
13127
archive_cmds_need_lc_CXX=no
13128
hardcode_shlibpath_var_CXX=no
13129
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13130
hardcode_libdir_separator_CXX=':'
13131
link_all_deplibs_CXX=yes
13132
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13133
runpath_var='LD_RUN_PATH'
13135
case $cc_basename in
13137
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13138
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13141
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13142
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13148
case $cc_basename in
13150
# NonStop-UX NCC 3.20
13151
# FIXME: insert proper C++ library support
13155
# FIXME: insert proper C++ library support
13162
# FIXME: insert proper C++ library support
13167
# FIXME: insert proper C++ library support
13172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13173
$as_echo "$ld_shlibs_CXX" >&6; }
13174
test "$ld_shlibs_CXX" = no && can_build_shared=no
13180
## There is no encapsulation within the following macros, do not change
13181
## the running order or otherwise move them around unless you know exactly
13182
## what you are doing...
13183
# Dependencies to place before and after the object being linked:
13184
predep_objects_CXX=
13185
postdep_objects_CXX=
13188
compiler_lib_search_path_CXX=
13190
cat > conftest.$ac_ext <<_LT_EOF
13194
Foo (void) { a = 0; }
13200
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13201
(eval $ac_compile) 2>&5
13203
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204
test $ac_status = 0; }; then
13205
# Parse the compiler output and extract the necessary
13206
# objects, libraries and library flags.
13208
# Sentinel used to keep track of whether or not we are before
13209
# the conftest object file.
13210
pre_test_object_deps_done=no
13212
for p in `eval "$output_verbose_link_cmd"`; do
13216
# Some compilers place space between "-{L,R}" and the path.
13217
# Remove the space.
13218
if test $p = "-L" ||
13219
test $p = "-R"; then
13226
if test "$pre_test_object_deps_done" = no; then
13229
# Internal compiler library paths should come after those
13230
# provided the user. The postdeps already come after the
13231
# user supplied libs so there is no need to process them.
13232
if test -z "$compiler_lib_search_path_CXX"; then
13233
compiler_lib_search_path_CXX="${prev}${p}"
13235
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13238
# The "-l" case would never come before the object being
13239
# linked, so don't bother handling this case.
13242
if test -z "$postdeps_CXX"; then
13243
postdeps_CXX="${prev}${p}"
13245
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13251
# This assumes that the test object file only shows up
13252
# once in the compiler output.
13253
if test "$p" = "conftest.$objext"; then
13254
pre_test_object_deps_done=yes
13258
if test "$pre_test_object_deps_done" = no; then
13259
if test -z "$predep_objects_CXX"; then
13260
predep_objects_CXX="$p"
13262
predep_objects_CXX="$predep_objects_CXX $p"
13265
if test -z "$postdep_objects_CXX"; then
13266
postdep_objects_CXX="$p"
13268
postdep_objects_CXX="$postdep_objects_CXX $p"
13273
*) ;; # Ignore the rest.
13281
echo "libtool.m4: error: problem compiling CXX test program"
13284
$RM -f confest.$objext
13286
# PORTME: override above test on systems where it is broken
13289
# Interix 3.5 installs completely hosed .la files for C++, so rather than
13290
# hack all around it, let's just trust "g++" to DTRT.
13291
predep_objects_CXX=
13292
postdep_objects_CXX=
13297
case `$CC -V 2>&1 | sed 5q` in
13301
# The more standards-conforming stlport4 library is
13302
# incompatible with the Cstd library. Avoid specifying
13303
# it if it's in CXXFLAGS. Ignore libCrun as
13304
# -library=stlport4 depends on it.
13305
case " $CXX $CXXFLAGS " in
13306
*" -library=stlport4 "*)
13307
solaris_use_stlport4=yes
13311
if test "$solaris_use_stlport4" != yes; then
13312
postdeps_CXX='-library=Cstd -library=Crun'
13319
case $cc_basename in
13321
# The more standards-conforming stlport4 library is
13322
# incompatible with the Cstd library. Avoid specifying
13323
# it if it's in CXXFLAGS. Ignore libCrun as
13324
# -library=stlport4 depends on it.
13325
case " $CXX $CXXFLAGS " in
13326
*" -library=stlport4 "*)
13327
solaris_use_stlport4=yes
13331
# Adding this requires a known-good setup of shared libraries for
13332
# Sun compiler versions before 5.6, else PIC objects from an old
13333
# archive will be linked into the output, leading to subtle bugs.
13334
if test "$solaris_use_stlport4" != yes; then
13335
postdeps_CXX='-library=Cstd -library=Crun'
13343
case " $postdeps_CXX " in
13344
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13346
compiler_lib_search_dirs_CXX=
13347
if test -n "${compiler_lib_search_path_CXX}"; then
13348
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13381
lt_prog_compiler_wl_CXX=
13382
lt_prog_compiler_pic_CXX=
13383
lt_prog_compiler_static_CXX=
13385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13386
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13388
# C++ specific cases for pic, static, wl, etc.
13389
if test "$GXX" = yes; then
13390
lt_prog_compiler_wl_CXX='-Wl,'
13391
lt_prog_compiler_static_CXX='-static'
13395
# All AIX code is PIC.
13396
if test "$host_cpu" = ia64; then
13397
# AIX 5 now supports IA64 processor
13398
lt_prog_compiler_static_CXX='-Bstatic'
13405
# see comment about AmigaOS4 .so support
13406
lt_prog_compiler_pic_CXX='-fPIC'
13409
# FIXME: we need at least 68020 code to build shared libraries, but
13410
# adding the `-m68020' flag to GCC prevents building anything better,
13412
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13417
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13418
# PIC is the default for these OSes.
13420
mingw* | cygwin* | os2* | pw32* | cegcc*)
13421
# This hack is so that the source file can tell whether it is being
13422
# built for inclusion in a dll (and should export symbols for example).
13423
# Although the cygwin gcc ignores -fPIC, still need this for old-style
13424
# (--disable-auto-import) libraries
13425
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13427
darwin* | rhapsody*)
13428
# PIC is the default on this platform
13429
# Common symbols not allowed in MH_DYLIB files
13430
lt_prog_compiler_pic_CXX='-fno-common'
13433
# DJGPP does not support shared libraries at all
13434
lt_prog_compiler_pic_CXX=
13437
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13438
# Instead, we relocate shared libraries at runtime.
13441
if test -d /usr/nec; then
13442
lt_prog_compiler_pic_CXX=-Kconform_pic
13446
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13447
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13448
# sets the default TLS model and affects inlining.
13453
lt_prog_compiler_pic_CXX='-fPIC'
13458
# QNX uses GNU C++, but need to define -shared option too, otherwise
13459
# it will coredump.
13460
lt_prog_compiler_pic_CXX='-fPIC -shared'
13463
lt_prog_compiler_pic_CXX='-fPIC'
13469
# All AIX code is PIC.
13470
if test "$host_cpu" = ia64; then
13471
# AIX 5 now supports IA64 processor
13472
lt_prog_compiler_static_CXX='-Bstatic'
13474
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13478
case $cc_basename in
13480
# Green Hills C++ Compiler
13481
# _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"
13486
case $cc_basename in
13488
lt_prog_compiler_pic_CXX='-KPIC'
13491
# Green Hills C++ Compiler
13492
lt_prog_compiler_pic_CXX='-pic'
13498
freebsd* | dragonfly*)
13499
# FreeBSD uses GNU C++
13501
hpux9* | hpux10* | hpux11*)
13502
case $cc_basename in
13504
lt_prog_compiler_wl_CXX='-Wl,'
13505
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13506
if test "$host_cpu" != ia64; then
13507
lt_prog_compiler_pic_CXX='+Z'
13511
lt_prog_compiler_wl_CXX='-Wl,'
13512
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13518
lt_prog_compiler_pic_CXX='+Z'
13527
# This is c89, which is MS Visual C++ (no shared libs)
13528
# Anyone wants to do a port?
13530
irix5* | irix6* | nonstopux*)
13531
case $cc_basename in
13533
lt_prog_compiler_wl_CXX='-Wl,'
13534
lt_prog_compiler_static_CXX='-non_shared'
13535
# CC pic flag -KPIC is the default.
13541
linux* | k*bsd*-gnu | kopensolaris*-gnu)
13542
case $cc_basename in
13545
lt_prog_compiler_wl_CXX='--backend -Wl,'
13546
lt_prog_compiler_pic_CXX='-fPIC'
13549
# old Intel C++ for x86_64 which still supported -KPIC.
13550
lt_prog_compiler_wl_CXX='-Wl,'
13551
lt_prog_compiler_pic_CXX='-KPIC'
13552
lt_prog_compiler_static_CXX='-static'
13555
# Intel C++, used to be incompatible with GCC.
13556
# ICC 10 doesn't accept -KPIC any more.
13557
lt_prog_compiler_wl_CXX='-Wl,'
13558
lt_prog_compiler_pic_CXX='-fPIC'
13559
lt_prog_compiler_static_CXX='-static'
13562
# Portland Group C++ compiler
13563
lt_prog_compiler_wl_CXX='-Wl,'
13564
lt_prog_compiler_pic_CXX='-fpic'
13565
lt_prog_compiler_static_CXX='-Bstatic'
13569
# Make sure the PIC flag is empty. It appears that all Alpha
13570
# Linux and Compaq Tru64 Unix objects are PIC.
13571
lt_prog_compiler_pic_CXX=
13572
lt_prog_compiler_static_CXX='-non_shared'
13575
# IBM XL 8.0 on PPC
13576
lt_prog_compiler_wl_CXX='-Wl,'
13577
lt_prog_compiler_pic_CXX='-qpic'
13578
lt_prog_compiler_static_CXX='-qstaticlink'
13581
case `$CC -V 2>&1 | sed 5q` in
13584
lt_prog_compiler_pic_CXX='-KPIC'
13585
lt_prog_compiler_static_CXX='-Bstatic'
13586
lt_prog_compiler_wl_CXX='-Qoption ld '
13597
case $cc_basename in
13599
lt_prog_compiler_pic_CXX='-W c,exportall'
13605
netbsd* | netbsdelf*-gnu)
13608
# QNX uses GNU C++, but need to define -shared option too, otherwise
13609
# it will coredump.
13610
lt_prog_compiler_pic_CXX='-fPIC -shared'
13612
osf3* | osf4* | osf5*)
13613
case $cc_basename in
13615
lt_prog_compiler_wl_CXX='--backend -Wl,'
13618
# Rational C++ 2.4.1
13619
lt_prog_compiler_pic_CXX='-pic'
13622
# Digital/Compaq C++
13623
lt_prog_compiler_wl_CXX='-Wl,'
13624
# Make sure the PIC flag is empty. It appears that all Alpha
13625
# Linux and Compaq Tru64 Unix objects are PIC.
13626
lt_prog_compiler_pic_CXX=
13627
lt_prog_compiler_static_CXX='-non_shared'
13636
case $cc_basename in
13638
# Sun C++ 4.2, 5.x and Centerline C++
13639
lt_prog_compiler_pic_CXX='-KPIC'
13640
lt_prog_compiler_static_CXX='-Bstatic'
13641
lt_prog_compiler_wl_CXX='-Qoption ld '
13644
# Green Hills C++ Compiler
13645
lt_prog_compiler_pic_CXX='-PIC'
13652
case $cc_basename in
13655
lt_prog_compiler_pic_CXX='-pic'
13656
lt_prog_compiler_static_CXX='-Bstatic'
13660
lt_prog_compiler_pic_CXX='-pic'
13666
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13667
case $cc_basename in
13669
lt_prog_compiler_wl_CXX='-Wl,'
13670
lt_prog_compiler_pic_CXX='-KPIC'
13671
lt_prog_compiler_static_CXX='-Bstatic'
13676
case $cc_basename in
13678
# NonStop-UX NCC 3.20
13679
lt_prog_compiler_pic_CXX='-KPIC'
13688
lt_prog_compiler_can_build_shared_CXX=no
13694
# For platforms which do not support PIC, -DPIC is meaningless:
13696
lt_prog_compiler_pic_CXX=
13699
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13703
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13708
# Check to make sure the PIC flag actually works.
13710
if test -n "$lt_prog_compiler_pic_CXX"; then
13711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13712
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13713
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13714
$as_echo_n "(cached) " >&6
13716
lt_cv_prog_compiler_pic_works_CXX=no
13717
ac_outfile=conftest.$ac_objext
13718
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13719
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13720
# Insert the option either (1) after the last *FLAGS variable, or
13721
# (2) before a word containing "conftest.", or (3) at the end.
13722
# Note that $ac_compile itself does not contain backslashes and begins
13723
# with a dollar sign (not a hyphen), so the echo should work correctly.
13724
# The option is referenced via a variable to avoid confusing sed.
13725
lt_compile=`echo "$ac_compile" | $SED \
13726
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13727
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13728
-e 's:$: $lt_compiler_flag:'`
13729
(eval echo "\"\$as_me:13729: $lt_compile\"" >&5)
13730
(eval "$lt_compile" 2>conftest.err)
13732
cat conftest.err >&5
13733
echo "$as_me:13733: \$? = $ac_status" >&5
13734
if (exit $ac_status) && test -s "$ac_outfile"; then
13735
# The compiler can only warn and ignore the option if not recognized
13736
# So say no if there are warnings other than the usual output.
13737
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13738
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13739
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13740
lt_cv_prog_compiler_pic_works_CXX=yes
13746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13747
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13749
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13750
case $lt_prog_compiler_pic_CXX in
13752
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13755
lt_prog_compiler_pic_CXX=
13756
lt_prog_compiler_can_build_shared_CXX=no
13764
# Check to make sure the static flag actually works.
13766
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13768
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13769
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13770
$as_echo_n "(cached) " >&6
13772
lt_cv_prog_compiler_static_works_CXX=no
13773
save_LDFLAGS="$LDFLAGS"
13774
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13775
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13776
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13777
# The linker can only warn and ignore the option if not recognized
13778
# So say no if there are warnings
13779
if test -s conftest.err; then
13780
# Append any errors to the config.log.
13781
cat conftest.err 1>&5
13782
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13783
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13784
if diff conftest.exp conftest.er2 >/dev/null; then
13785
lt_cv_prog_compiler_static_works_CXX=yes
13788
lt_cv_prog_compiler_static_works_CXX=yes
13792
LDFLAGS="$save_LDFLAGS"
13795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13796
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13798
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13801
lt_prog_compiler_static_CXX=
13807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13808
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13809
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13810
$as_echo_n "(cached) " >&6
13812
lt_cv_prog_compiler_c_o_CXX=no
13813
$RM -r conftest 2>/dev/null
13817
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13819
lt_compiler_flag="-o out/conftest2.$ac_objext"
13820
# Insert the option either (1) after the last *FLAGS variable, or
13821
# (2) before a word containing "conftest.", or (3) at the end.
13822
# Note that $ac_compile itself does not contain backslashes and begins
13823
# with a dollar sign (not a hyphen), so the echo should work correctly.
13824
lt_compile=`echo "$ac_compile" | $SED \
13825
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13826
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13827
-e 's:$: $lt_compiler_flag:'`
13828
(eval echo "\"\$as_me:13828: $lt_compile\"" >&5)
13829
(eval "$lt_compile" 2>out/conftest.err)
13831
cat out/conftest.err >&5
13832
echo "$as_me:13832: \$? = $ac_status" >&5
13833
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13835
# The compiler can only warn and ignore the option if not recognized
13836
# So say no if there are warnings
13837
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13838
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13839
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13840
lt_cv_prog_compiler_c_o_CXX=yes
13845
# SGI C++ compiler will create directory out/ii_files/ for
13846
# template instantiation
13847
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13848
$RM out/* && rmdir out
13854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13855
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13860
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13861
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13862
$as_echo_n "(cached) " >&6
13864
lt_cv_prog_compiler_c_o_CXX=no
13865
$RM -r conftest 2>/dev/null
13869
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13871
lt_compiler_flag="-o out/conftest2.$ac_objext"
13872
# Insert the option either (1) after the last *FLAGS variable, or
13873
# (2) before a word containing "conftest.", or (3) at the end.
13874
# Note that $ac_compile itself does not contain backslashes and begins
13875
# with a dollar sign (not a hyphen), so the echo should work correctly.
13876
lt_compile=`echo "$ac_compile" | $SED \
13877
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13878
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13879
-e 's:$: $lt_compiler_flag:'`
13880
(eval echo "\"\$as_me:13880: $lt_compile\"" >&5)
13881
(eval "$lt_compile" 2>out/conftest.err)
13883
cat out/conftest.err >&5
13884
echo "$as_me:13884: \$? = $ac_status" >&5
13885
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13887
# The compiler can only warn and ignore the option if not recognized
13888
# So say no if there are warnings
13889
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13890
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13891
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13892
lt_cv_prog_compiler_c_o_CXX=yes
13897
# SGI C++ compiler will create directory out/ii_files/ for
13898
# template instantiation
13899
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13900
$RM out/* && rmdir out
13906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13907
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13912
hard_links="nottested"
13913
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13914
# do not overwrite the value of need_locks provided by the user
13915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13916
$as_echo_n "checking if we can lock with hard links... " >&6; }
13919
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13921
ln conftest.a conftest.b 2>&5 || hard_links=no
13922
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13924
$as_echo "$hard_links" >&6; }
13925
if test "$hard_links" = no; then
13926
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13927
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13937
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13939
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13942
# If we're using GNU nm, then we don't want the "-C" option.
13943
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13944
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13945
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'
13947
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'
13951
export_symbols_cmds_CXX="$ltdll_cmds"
13953
cygwin* | mingw* | cegcc*)
13954
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'
13956
linux* | k*bsd*-gnu)
13957
link_all_deplibs_CXX=no
13960
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13963
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13966
$as_echo "$ld_shlibs_CXX" >&6; }
13967
test "$ld_shlibs_CXX" = no && can_build_shared=no
13969
with_gnu_ld_CXX=$with_gnu_ld
13977
# Do we need to explicitly link libc?
13979
case "x$archive_cmds_need_lc_CXX" in
13981
# Assume -lc should be added
13982
archive_cmds_need_lc_CXX=yes
13984
if test "$enable_shared" = yes && test "$GCC" = yes; then
13985
case $archive_cmds_CXX in
13987
# FIXME: we may have to deal with multi-command sequences.
13990
# Test whether the compiler implicitly links with -lc since on some
13991
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13992
# to ld, don't add -lc before -lgcc.
13993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13994
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13996
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13998
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13999
(eval $ac_compile) 2>&5
14001
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002
test $ac_status = 0; } 2>conftest.err; then
14005
libobjs=conftest.$ac_objext
14007
wl=$lt_prog_compiler_wl_CXX
14008
pic_flag=$lt_prog_compiler_pic_CXX
14014
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14015
allow_undefined_flag_CXX=
14016
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14017
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14019
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020
test $ac_status = 0; }
14022
archive_cmds_need_lc_CXX=no
14024
archive_cmds_need_lc_CXX=yes
14026
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14028
cat conftest.err 1>&5
14031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14032
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14103
$as_echo_n "checking dynamic linker characteristics... " >&6; }
14105
library_names_spec=
14106
libname_spec='lib$name'
14110
postuninstall_cmds=
14114
shlibpath_overrides_runpath=unknown
14116
dynamic_linker="$host_os ld.so"
14117
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14118
need_lib_prefix=unknown
14119
hardcode_into_libs=no
14121
# when you set need_version to no, make sure it does not cause -set_version
14122
# flags to be left without arguments
14123
need_version=unknown
14128
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14129
shlibpath_var=LIBPATH
14131
# AIX 3 has no versioning support, so we append a major version to the name.
14132
soname_spec='${libname}${release}${shared_ext}$major'
14139
hardcode_into_libs=yes
14140
if test "$host_cpu" = ia64; then
14141
# AIX 5 supports IA64
14142
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14143
shlibpath_var=LD_LIBRARY_PATH
14145
# With GCC up to 2.95.x, collect2 would create an import file
14146
# for dependence libraries. The import file would start with
14147
# the line `#! .'. This would cause the generated library to
14148
# depend on `.', always an invalid library. This was fixed in
14149
# development snapshots of GCC prior to 3.0.
14151
aix4 | aix4.[01] | aix4.[01].*)
14152
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14154
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14157
can_build_shared=no
14161
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14162
# soname into executable. Probably we can add versioning support to
14163
# collect2, so additional links can be useful in future.
14164
if test "$aix_use_runtimelinking" = yes; then
14165
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14166
# instead of lib<name>.a to let people know that these are not
14167
# typical AIX shared libraries.
14168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170
# We preserve .a as extension for shared libraries through AIX4.2
14171
# and later when we are not doing run time linking.
14172
library_names_spec='${libname}${release}.a $libname.a'
14173
soname_spec='${libname}${release}${shared_ext}$major'
14175
shlibpath_var=LIBPATH
14182
# Since July 2007 AmigaOS4 officially supports .so libraries.
14183
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14184
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187
library_names_spec='$libname.ixlibrary $libname.a'
14188
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14189
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'
14195
library_names_spec='${libname}${shared_ext}'
14196
dynamic_linker="$host_os ld.so"
14197
shlibpath_var=LIBRARY_PATH
14203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14204
soname_spec='${libname}${release}${shared_ext}$major'
14205
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14206
shlibpath_var=LD_LIBRARY_PATH
14207
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14208
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14209
# the default ld.so.conf also contains /usr/contrib/lib and
14210
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14211
# libtool to hard-code these into programs
14214
cygwin* | mingw* | pw32* | cegcc*)
14215
version_type=windows
14220
case $GCC,$host_os in
14221
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14222
library_names_spec='$libname.dll.a'
14223
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14224
postinstall_cmds='base_file=`basename \${file}`~
14225
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14226
dldir=$destdir/`dirname \$dlpath`~
14227
test -d \$dldir || mkdir -p \$dldir~
14228
$install_prog $dir/$dlname \$dldir/$dlname~
14229
chmod a+x \$dldir/$dlname~
14230
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14231
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14233
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14234
dlpath=$dir/\$dldll~
14236
shlibpath_overrides_runpath=yes
14240
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14241
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14242
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14245
# MinGW DLLs use traditional 'lib' prefix
14246
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14247
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14248
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14249
# It is most probably a Windows format PATH printed by
14250
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14251
# path with ; separators, and with drive letters. We can handle the
14252
# drive letters (cygwin fileutils understands them), so leave them,
14253
# especially as we might pass files found there to a mingw objdump,
14254
# which wouldn't understand a cygwinified path. Ahh.
14255
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14257
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14261
# pw32 DLLs use 'pw' prefix rather than 'lib'
14262
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14268
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14271
dynamic_linker='Win32 ld.exe'
14272
# FIXME: first we should search . and the directory the executable is in
14276
darwin* | rhapsody*)
14277
dynamic_linker="$host_os dyld"
14278
version_type=darwin
14281
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14282
soname_spec='${libname}${release}${major}$shared_ext'
14283
shlibpath_overrides_runpath=yes
14284
shlibpath_var=DYLD_LIBRARY_PATH
14285
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14287
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14295
soname_spec='${libname}${release}${shared_ext}$major'
14296
shlibpath_var=LD_LIBRARY_PATH
14303
freebsd* | dragonfly*)
14304
# DragonFly does not have aout. When/if they implement a new
14305
# versioning mechanism, adjust this.
14306
if test -x /usr/bin/objformat; then
14307
objformat=`/usr/bin/objformat`
14310
freebsd[123]*) objformat=aout ;;
14311
*) objformat=elf ;;
14314
version_type=freebsd-$objformat
14315
case $version_type in
14317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14322
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14326
shlibpath_var=LD_LIBRARY_PATH
14329
shlibpath_overrides_runpath=yes
14331
freebsd3.[01]* | freebsdelf3.[01]*)
14332
shlibpath_overrides_runpath=yes
14333
hardcode_into_libs=yes
14335
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14336
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14337
shlibpath_overrides_runpath=no
14338
hardcode_into_libs=yes
14340
*) # from 4.6 on, and DragonFly
14341
shlibpath_overrides_runpath=yes
14342
hardcode_into_libs=yes
14351
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14352
soname_spec='${libname}${release}${shared_ext}$major'
14353
shlibpath_var=LD_LIBRARY_PATH
14354
hardcode_into_libs=yes
14357
hpux9* | hpux10* | hpux11*)
14358
# Give a soname corresponding to the major version so that dld.sl refuses to
14359
# link against other versions.
14366
hardcode_into_libs=yes
14367
dynamic_linker="$host_os dld.so"
14368
shlibpath_var=LD_LIBRARY_PATH
14369
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14370
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371
soname_spec='${libname}${release}${shared_ext}$major'
14372
if test "X$HPUX_IA64_MODE" = X32; then
14373
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14375
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14377
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14381
hardcode_into_libs=yes
14382
dynamic_linker="$host_os dld.sl"
14383
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14384
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14386
soname_spec='${libname}${release}${shared_ext}$major'
14387
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14388
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14392
dynamic_linker="$host_os dld.sl"
14393
shlibpath_var=SHLIB_PATH
14394
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14396
soname_spec='${libname}${release}${shared_ext}$major'
14399
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14400
postinstall_cmds='chmod 555 $lib'
14407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14408
soname_spec='${libname}${release}${shared_ext}$major'
14409
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14410
shlibpath_var=LD_LIBRARY_PATH
14411
shlibpath_overrides_runpath=no
14412
hardcode_into_libs=yes
14415
irix5* | irix6* | nonstopux*)
14417
nonstopux*) version_type=nonstopux ;;
14419
if test "$lt_cv_prog_gnu_ld" = yes; then
14427
soname_spec='${libname}${release}${shared_ext}$major'
14428
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14430
irix5* | nonstopux*)
14431
libsuff= shlibsuff=
14434
case $LD in # libtool.m4 will add one of these switches to LD
14435
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14436
libsuff= shlibsuff= libmagic=32-bit;;
14437
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14438
libsuff=32 shlibsuff=N32 libmagic=N32;;
14439
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14440
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14441
*) libsuff= shlibsuff= libmagic=never-match;;
14445
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14446
shlibpath_overrides_runpath=no
14447
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14448
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14449
hardcode_into_libs=yes
14452
# No shared lib support for Linux oldld, aout, or coff.
14453
linux*oldld* | linux*aout* | linux*coff*)
14457
# This must be Linux ELF.
14458
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14462
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463
soname_spec='${libname}${release}${shared_ext}$major'
14464
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14465
shlibpath_var=LD_LIBRARY_PATH
14466
shlibpath_overrides_runpath=no
14467
# Some binutils ld are patched to set DT_RUNPATH
14468
save_LDFLAGS=$LDFLAGS
14469
save_libdir=$libdir
14470
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14471
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14472
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473
/* end confdefs.h. */
14483
if ac_fn_cxx_try_link "$LINENO"; then :
14484
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14485
shlibpath_overrides_runpath=yes
14488
rm -f core conftest.err conftest.$ac_objext \
14489
conftest$ac_exeext conftest.$ac_ext
14490
LDFLAGS=$save_LDFLAGS
14491
libdir=$save_libdir
14493
# This implies no fast_install, which is unacceptable.
14494
# Some rework will be needed to allow for fast_install
14495
# before this can be enabled.
14496
hardcode_into_libs=yes
14498
# Append ld.so.conf contents to the search path
14499
if test -f /etc/ld.so.conf; then
14500
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' ' '`
14501
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14504
# We used to test for /lib/ld.so.1 and disable shared libraries on
14505
# powerpc, because MkLinux only supported shared libraries with the
14506
# GNU dynamic linker. Since this was broken with cross compilers,
14507
# most powerpc-linux boxes support dynamic linking these days and
14508
# people can always --disable-shared, the test was removed, and we
14509
# assume the GNU/Linux dynamic linker is in use.
14510
dynamic_linker='GNU/Linux ld.so'
14517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14518
soname_spec='${libname}${release}${shared_ext}$major'
14519
shlibpath_var=LD_LIBRARY_PATH
14520
shlibpath_overrides_runpath=no
14521
hardcode_into_libs=yes
14522
dynamic_linker='NetBSD ld.elf_so'
14529
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14531
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14532
dynamic_linker='NetBSD (a.out) ld.so'
14534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14535
soname_spec='${libname}${release}${shared_ext}$major'
14536
dynamic_linker='NetBSD ld.elf_so'
14538
shlibpath_var=LD_LIBRARY_PATH
14539
shlibpath_overrides_runpath=yes
14540
hardcode_into_libs=yes
14545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546
shlibpath_var=LD_LIBRARY_PATH
14547
shlibpath_overrides_runpath=yes
14554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14555
soname_spec='${libname}${release}${shared_ext}$major'
14556
shlibpath_var=LD_LIBRARY_PATH
14557
shlibpath_overrides_runpath=no
14558
hardcode_into_libs=yes
14559
dynamic_linker='ldqnx.so'
14564
sys_lib_dlsearch_path_spec="/usr/lib"
14566
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14568
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14569
*) need_version=no ;;
14571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14572
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14573
shlibpath_var=LD_LIBRARY_PATH
14574
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14576
openbsd2.[89] | openbsd2.[89].*)
14577
shlibpath_overrides_runpath=no
14580
shlibpath_overrides_runpath=yes
14584
shlibpath_overrides_runpath=yes
14589
libname_spec='$name'
14592
library_names_spec='$libname${shared_ext} $libname.a'
14593
dynamic_linker='OS/2 ld.exe'
14594
shlibpath_var=LIBPATH
14597
osf3* | osf4* | osf5*)
14601
soname_spec='${libname}${release}${shared_ext}$major'
14602
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603
shlibpath_var=LD_LIBRARY_PATH
14604
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14605
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617
soname_spec='${libname}${release}${shared_ext}$major'
14618
shlibpath_var=LD_LIBRARY_PATH
14619
shlibpath_overrides_runpath=yes
14620
hardcode_into_libs=yes
14621
# ldd complains unless libraries are executable
14622
postinstall_cmds='chmod +x $lib'
14627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14628
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14629
shlibpath_var=LD_LIBRARY_PATH
14630
shlibpath_overrides_runpath=yes
14631
if test "$with_gnu_ld" = yes; then
14639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14640
soname_spec='${libname}${release}${shared_ext}$major'
14641
shlibpath_var=LD_LIBRARY_PATH
14642
case $host_vendor in
14644
shlibpath_overrides_runpath=no
14646
runpath_var=LD_RUN_PATH
14654
shlibpath_overrides_runpath=no
14655
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14661
if test -d /usr/nec ;then
14663
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14664
soname_spec='$libname${shared_ext}.$major'
14665
shlibpath_var=LD_LIBRARY_PATH
14669
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14670
version_type=freebsd-elf
14673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14674
soname_spec='${libname}${release}${shared_ext}$major'
14675
shlibpath_var=LD_LIBRARY_PATH
14676
shlibpath_overrides_runpath=yes
14677
hardcode_into_libs=yes
14678
if test "$with_gnu_ld" = yes; then
14679
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14681
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14684
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14688
sys_lib_dlsearch_path_spec='/usr/lib'
14692
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697
shlibpath_var=LD_LIBRARY_PATH
14698
shlibpath_overrides_runpath=no
14699
hardcode_into_libs=yes
14704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705
soname_spec='${libname}${release}${shared_ext}$major'
14706
shlibpath_var=LD_LIBRARY_PATH
14713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14714
$as_echo "$dynamic_linker" >&6; }
14715
test "$dynamic_linker" = no && can_build_shared=no
14717
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14718
if test "$GCC" = yes; then
14719
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14722
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14723
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14725
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14726
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14765
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14766
hardcode_action_CXX=
14767
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14768
test -n "$runpath_var_CXX" ||
14769
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14771
# We can hardcode non-existent directories.
14772
if test "$hardcode_direct_CXX" != no &&
14773
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14774
# have to relink, otherwise we might link with an installed library
14775
# when we should be linking with a yet-to-be-installed one
14776
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14777
test "$hardcode_minus_L_CXX" != no; then
14778
# Linking always hardcodes the temporary library directory.
14779
hardcode_action_CXX=relink
14781
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14782
hardcode_action_CXX=immediate
14785
# We cannot hardcode anything, or else we can only hardcode existing
14787
hardcode_action_CXX=unsupported
14789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14790
$as_echo "$hardcode_action_CXX" >&6; }
14792
if test "$hardcode_action_CXX" = relink ||
14793
test "$inherit_rpath_CXX" = yes; then
14794
# Fast installation is not supported
14795
enable_fast_install=no
14796
elif test "$shlibpath_overrides_runpath" = yes ||
14797
test "$enable_shared" = no; then
14798
# Fast installation is not necessary
14799
enable_fast_install=needless
14808
fi # test -n "$compiler"
14814
with_gnu_ld=$lt_save_with_gnu_ld
14815
lt_cv_path_LDCXX=$lt_cv_path_LD
14816
lt_cv_path_LD=$lt_save_path_LD
14817
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14818
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14819
fi # test "$_lt_caught_CXX_error" != yes
14822
ac_cpp='$CPP $CPPFLAGS'
14823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839
ac_config_commands="$ac_config_commands libtool"
14844
# Only expand once:
14849
ac_cpp='$CXXCPP $CPPFLAGS'
14850
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14851
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14852
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14855
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -g -Wno-return-type"
14858
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14859
# for constant arguments. Useless!
14860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14861
$as_echo_n "checking for working alloca.h... " >&6; }
14862
if test "${ac_cv_working_alloca_h+set}" = set; then :
14863
$as_echo_n "(cached) " >&6
14865
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866
/* end confdefs.h. */
14867
#include <alloca.h>
14871
char *p = (char *) alloca (2 * sizeof (int));
14877
if ac_fn_cxx_try_link "$LINENO"; then :
14878
ac_cv_working_alloca_h=yes
14880
ac_cv_working_alloca_h=no
14882
rm -f core conftest.err conftest.$ac_objext \
14883
conftest$ac_exeext conftest.$ac_ext
14885
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14886
$as_echo "$ac_cv_working_alloca_h" >&6; }
14887
if test $ac_cv_working_alloca_h = yes; then
14889
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14894
$as_echo_n "checking for alloca... " >&6; }
14895
if test "${ac_cv_func_alloca_works+set}" = set; then :
14896
$as_echo_n "(cached) " >&6
14898
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899
/* end confdefs.h. */
14901
# define alloca __builtin_alloca
14904
# include <malloc.h>
14905
# define alloca _alloca
14907
# ifdef HAVE_ALLOCA_H
14908
# include <alloca.h>
14913
# ifndef alloca /* predefined by HP cc +Olibcalls */
14924
char *p = (char *) alloca (1);
14930
if ac_fn_cxx_try_link "$LINENO"; then :
14931
ac_cv_func_alloca_works=yes
14933
ac_cv_func_alloca_works=no
14935
rm -f core conftest.err conftest.$ac_objext \
14936
conftest$ac_exeext conftest.$ac_ext
14938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14939
$as_echo "$ac_cv_func_alloca_works" >&6; }
14941
if test $ac_cv_func_alloca_works = yes; then
14943
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14946
# The SVR3 libPW and SVR4 libucb both contain incompatible functions
14947
# that cause trouble. Some versions do not even contain alloca or
14948
# contain a buggy version. If you still want to use their alloca,
14949
# use ar to extract alloca.o from them instead of compiling alloca.c.
14951
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14953
$as_echo "#define C_ALLOCA 1" >>confdefs.h
14956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14957
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14958
if test "${ac_cv_os_cray+set}" = set; then :
14959
$as_echo_n "(cached) " >&6
14961
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962
/* end confdefs.h. */
14963
#if defined CRAY && ! defined CRAY2
14970
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14971
$EGREP "webecray" >/dev/null 2>&1; then :
14979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14980
$as_echo "$ac_cv_os_cray" >&6; }
14981
if test $ac_cv_os_cray = yes; then
14982
for ac_func in _getb67 GETB67 getb67; do
14983
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14984
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
14985
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14987
cat >>confdefs.h <<_ACEOF
14988
#define CRAY_STACKSEG_END $ac_func
14997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14998
$as_echo_n "checking stack direction for C alloca... " >&6; }
14999
if test "${ac_cv_c_stack_direction+set}" = set; then :
15000
$as_echo_n "(cached) " >&6
15002
if test "$cross_compiling" = yes; then :
15003
ac_cv_c_stack_direction=0
15005
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006
/* end confdefs.h. */
15007
$ac_includes_default
15009
find_stack_direction ()
15011
static char *addr = 0;
15016
return find_stack_direction ();
15019
return (&dummy > addr) ? 1 : -1;
15025
return find_stack_direction () < 0;
15028
if ac_fn_cxx_try_run "$LINENO"; then :
15029
ac_cv_c_stack_direction=1
15031
ac_cv_c_stack_direction=-1
15033
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15034
conftest.$ac_objext conftest.beam conftest.$ac_ext
15038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15039
$as_echo "$ac_cv_c_stack_direction" >&6; }
15040
cat >>confdefs.h <<_ACEOF
15041
#define STACK_DIRECTION $ac_cv_c_stack_direction
15047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15048
$as_echo_n "checking for ANSI C header files... " >&6; }
15049
if test "${ac_cv_header_stdc+set}" = set; then :
15050
$as_echo_n "(cached) " >&6
15052
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053
/* end confdefs.h. */
15054
#include <stdlib.h>
15055
#include <stdarg.h>
15056
#include <string.h>
15067
if ac_fn_cxx_try_compile "$LINENO"; then :
15068
ac_cv_header_stdc=yes
15070
ac_cv_header_stdc=no
15072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074
if test $ac_cv_header_stdc = yes; then
15075
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15076
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077
/* end confdefs.h. */
15078
#include <string.h>
15081
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15082
$EGREP "memchr" >/dev/null 2>&1; then :
15085
ac_cv_header_stdc=no
15091
if test $ac_cv_header_stdc = yes; then
15092
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15093
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094
/* end confdefs.h. */
15095
#include <stdlib.h>
15098
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15099
$EGREP "free" >/dev/null 2>&1; then :
15102
ac_cv_header_stdc=no
15108
if test $ac_cv_header_stdc = yes; then
15109
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15110
if test "$cross_compiling" = yes; then :
15113
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114
/* end confdefs.h. */
15116
#include <stdlib.h>
15117
#if ((' ' & 0x0FF) == 0x020)
15118
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15119
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15121
# define ISLOWER(c) \
15122
(('a' <= (c) && (c) <= 'i') \
15123
|| ('j' <= (c) && (c) <= 'r') \
15124
|| ('s' <= (c) && (c) <= 'z'))
15125
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15128
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15133
for (i = 0; i < 256; i++)
15134
if (XOR (islower (i), ISLOWER (i))
15135
|| toupper (i) != TOUPPER (i))
15140
if ac_fn_cxx_try_run "$LINENO"; then :
15143
ac_cv_header_stdc=no
15145
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15146
conftest.$ac_objext conftest.beam conftest.$ac_ext
15151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15152
$as_echo "$ac_cv_header_stdc" >&6; }
15153
if test $ac_cv_header_stdc = yes; then
15155
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15159
for ac_header in arpa/inet.h fcntl.h libintl.h limits.h malloc.h \
15160
memory.h netdb.h netinet/in.h stdlib.h string.h strings.h \
15161
sys/ioctl.h sys/socket.h sys/time.h unistd.h utime.h ostream
15163
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15165
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15166
cat >>confdefs.h <<_ACEOF
15167
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15176
$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15177
if test "${ac_cv_header_stat_broken+set}" = set; then :
15178
$as_echo_n "(cached) " >&6
15180
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181
/* end confdefs.h. */
15182
#include <sys/types.h>
15183
#include <sys/stat.h>
15185
#if defined S_ISBLK && defined S_IFDIR
15186
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15189
#if defined S_ISBLK && defined S_IFCHR
15190
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15193
#if defined S_ISLNK && defined S_IFREG
15194
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15197
#if defined S_ISSOCK && defined S_IFREG
15198
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15202
if ac_fn_cxx_try_compile "$LINENO"; then :
15203
ac_cv_header_stat_broken=no
15205
ac_cv_header_stat_broken=yes
15207
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15210
$as_echo "$ac_cv_header_stat_broken" >&6; }
15211
if test $ac_cv_header_stat_broken = yes; then
15213
$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15218
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15219
if test "${ac_cv_header_stdbool_h+set}" = set; then :
15220
$as_echo_n "(cached) " >&6
15222
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223
/* end confdefs.h. */
15225
#include <stdbool.h>
15227
"error: bool is not defined"
15230
"error: false is not defined"
15233
"error: false is not 0"
15236
"error: true is not defined"
15239
"error: true is not 1"
15241
#ifndef __bool_true_false_are_defined
15242
"error: __bool_true_false_are_defined is not defined"
15245
struct s { _Bool s: 1; _Bool t; } s;
15247
char a[true == 1 ? 1 : -1];
15248
char b[false == 0 ? 1 : -1];
15249
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15250
char d[(bool) 0.5 == true ? 1 : -1];
15252
char f[(_Bool) 0.0 == false ? 1 : -1];
15254
char h[sizeof (_Bool)];
15255
char i[sizeof s.t];
15256
enum { j = false, k = true, l = false * true, m = true * 256 };
15257
/* The following fails for
15258
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15260
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15261
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15262
# if defined __xlc__ || defined __GNUC__
15263
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
15264
reported by James Lemley on 2005-10-05; see
15265
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
15266
This test is not quite right, since xlc is allowed to
15267
reject this program, as the initializer for xlcbug is
15268
not one of the forms that C requires support for.
15269
However, doing the test right would require a runtime
15270
test, and that would make cross-compilation harder.
15271
Let us hope that IBM fixes the xlc bug, and also adds
15272
support for this kind of constant expression. In the
15273
meantime, this test will reject xlc, which is OK, since
15274
our stdbool.h substitute should suffice. We also test
15275
this with GCC, where it should work, to detect more
15276
quickly whether someone messes up the test in the
15278
char digs[] = "0123456789";
15279
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
15281
/* Catch a bug in an HP-UX C compiler. See
15282
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15283
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15294
/* Refer to every declared value, to avoid compiler optimizations. */
15295
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15296
+ !m + !n + !o + !p + !q + !pq);
15302
if ac_fn_cxx_try_compile "$LINENO"; then :
15303
ac_cv_header_stdbool_h=yes
15305
ac_cv_header_stdbool_h=no
15307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15310
$as_echo "$ac_cv_header_stdbool_h" >&6; }
15311
ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15312
if test "x$ac_cv_type__Bool" = x""yes; then :
15314
cat >>confdefs.h <<_ACEOF
15315
#define HAVE__BOOL 1
15321
if test $ac_cv_header_stdbool_h = yes; then
15323
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15327
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15328
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15329
if test "${ac_cv_c_const+set}" = set; then :
15330
$as_echo_n "(cached) " >&6
15332
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333
/* end confdefs.h. */
15338
/* FIXME: Include the comments suggested by Paul. */
15339
#ifndef __cplusplus
15340
/* Ultrix mips cc rejects this. */
15341
typedef int charset[2];
15343
/* SunOS 4.1.1 cc rejects this. */
15344
char const *const *pcpcc;
15346
/* NEC SVR4.0.2 mips cc rejects this. */
15347
struct point {int x, y;};
15348
static struct point const zero = {0,0};
15349
/* AIX XL C 1.02.0.0 rejects this.
15350
It does not let you subtract one const X* pointer from another in
15351
an arm of an if-expression whose if-part is not a constant
15353
const char *g = "string";
15354
pcpcc = &g + (g ? g-g : 0);
15355
/* HPUX 7.0 cc rejects these. */
15357
ppc = (char**) pcpcc;
15358
pcpcc = (char const *const *) ppc;
15359
{ /* SCO 3.2v4 cc rejects this. */
15361
char const *s = 0 ? (char *) 0 : (char const *) 0;
15366
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15367
int x[] = {25, 17};
15368
const int *foo = &x[0];
15371
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15372
typedef const int *iptr;
15376
{ /* AIX XL C 1.02.0.0 rejects this saying
15377
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15378
struct s { int j; const int *ap[3]; };
15379
struct s *b; b->j = 5;
15381
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15382
const int foo = 10;
15383
if (!foo) return 0;
15385
return !cs[0] && !zero.x;
15392
if ac_fn_cxx_try_compile "$LINENO"; then :
15397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15400
$as_echo "$ac_cv_c_const" >&6; }
15401
if test $ac_cv_c_const = no; then
15403
$as_echo "#define const /**/" >>confdefs.h
15407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15408
$as_echo_n "checking for inline... " >&6; }
15409
if test "${ac_cv_c_inline+set}" = set; then :
15410
$as_echo_n "(cached) " >&6
15413
for ac_kw in inline __inline__ __inline; do
15414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415
/* end confdefs.h. */
15416
#ifndef __cplusplus
15418
static $ac_kw foo_t static_foo () {return 0; }
15419
$ac_kw foo_t foo () {return 0; }
15423
if ac_fn_cxx_try_compile "$LINENO"; then :
15424
ac_cv_c_inline=$ac_kw
15426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427
test "$ac_cv_c_inline" != no && break
15431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15432
$as_echo "$ac_cv_c_inline" >&6; }
15434
case $ac_cv_c_inline in
15437
case $ac_cv_c_inline in
15439
*) ac_val=$ac_cv_c_inline;;
15441
cat >>confdefs.h <<_ACEOF
15442
#ifndef __cplusplus
15443
#define inline $ac_val
15449
ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15450
if test "x$ac_cv_type_pid_t" = x""yes; then :
15454
cat >>confdefs.h <<_ACEOF
15460
ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15461
if test "x$ac_cv_type_size_t" = x""yes; then :
15465
cat >>confdefs.h <<_ACEOF
15466
#define size_t unsigned int
15471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15472
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15473
if test "${ac_cv_header_time+set}" = set; then :
15474
$as_echo_n "(cached) " >&6
15476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477
/* end confdefs.h. */
15478
#include <sys/types.h>
15479
#include <sys/time.h>
15485
if ((struct tm *) 0)
15491
if ac_fn_cxx_try_compile "$LINENO"; then :
15492
ac_cv_header_time=yes
15494
ac_cv_header_time=no
15496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15499
$as_echo "$ac_cv_header_time" >&6; }
15500
if test $ac_cv_header_time = yes; then
15502
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15507
$as_echo_n "checking for working volatile... " >&6; }
15508
if test "${ac_cv_c_volatile+set}" = set; then :
15509
$as_echo_n "(cached) " >&6
15511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512
/* end confdefs.h. */
15519
int * volatile y = (int *) 0;
15525
if ac_fn_cxx_try_compile "$LINENO"; then :
15526
ac_cv_c_volatile=yes
15528
ac_cv_c_volatile=no
15530
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15533
$as_echo "$ac_cv_c_volatile" >&6; }
15534
if test $ac_cv_c_volatile = no; then
15536
$as_echo "#define volatile /**/" >>confdefs.h
15540
ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15541
if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15543
cat >>confdefs.h <<_ACEOF
15544
#define HAVE_PTRDIFF_T 1
15551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15552
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15553
if test "${ac_cv_type_uid_t+set}" = set; then :
15554
$as_echo_n "(cached) " >&6
15556
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557
/* end confdefs.h. */
15558
#include <sys/types.h>
15561
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15562
$EGREP "uid_t" >/dev/null 2>&1; then :
15563
ac_cv_type_uid_t=yes
15565
ac_cv_type_uid_t=no
15570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15571
$as_echo "$ac_cv_type_uid_t" >&6; }
15572
if test $ac_cv_type_uid_t = no; then
15574
$as_echo "#define uid_t int" >>confdefs.h
15577
$as_echo "#define gid_t int" >>confdefs.h
15581
for ac_header in unistd.h
15583
ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15584
if test "x$ac_cv_header_unistd_h" = x""yes; then :
15585
cat >>confdefs.h <<_ACEOF
15586
#define HAVE_UNISTD_H 1
15593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
15594
$as_echo_n "checking for working chown... " >&6; }
15595
if test "${ac_cv_func_chown_works+set}" = set; then :
15596
$as_echo_n "(cached) " >&6
15598
if test "$cross_compiling" = yes; then :
15599
ac_cv_func_chown_works=no
15601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602
/* end confdefs.h. */
15603
$ac_includes_default
15609
char *f = "conftest.chown";
15610
struct stat before, after;
15612
if (creat (f, 0600) < 0)
15614
if (stat (f, &before) < 0)
15616
if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
15618
if (stat (f, &after) < 0)
15620
return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
15626
if ac_fn_cxx_try_run "$LINENO"; then :
15627
ac_cv_func_chown_works=yes
15629
ac_cv_func_chown_works=no
15631
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15632
conftest.$ac_objext conftest.beam conftest.$ac_ext
15635
rm -f conftest.chown
15638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
15639
$as_echo "$ac_cv_func_chown_works" >&6; }
15640
if test $ac_cv_func_chown_works = yes; then
15642
$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
15646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
15647
$as_echo_n "checking for error_at_line... " >&6; }
15648
if test "${ac_cv_lib_error_at_line+set}" = set; then :
15649
$as_echo_n "(cached) " >&6
15651
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652
/* end confdefs.h. */
15657
error_at_line (0, 0, "", 0, "an error occurred");
15662
if ac_fn_cxx_try_link "$LINENO"; then :
15663
ac_cv_lib_error_at_line=yes
15665
ac_cv_lib_error_at_line=no
15667
rm -f core conftest.err conftest.$ac_objext \
15668
conftest$ac_exeext conftest.$ac_ext
15670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
15671
$as_echo "$ac_cv_lib_error_at_line" >&6; }
15672
if test $ac_cv_lib_error_at_line = no; then
15673
case " $LIBOBJS " in
15674
*" error.$ac_objext "* ) ;;
15675
*) LIBOBJS="$LIBOBJS error.$ac_objext"
15681
for ac_header in vfork.h
15683
ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15684
if test "x$ac_cv_header_vfork_h" = x""yes; then :
15685
cat >>confdefs.h <<_ACEOF
15686
#define HAVE_VFORK_H 1
15693
for ac_func in fork vfork
15695
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15696
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
15697
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15698
cat >>confdefs.h <<_ACEOF
15699
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15705
if test "x$ac_cv_func_fork" = xyes; then
15706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15707
$as_echo_n "checking for working fork... " >&6; }
15708
if test "${ac_cv_func_fork_works+set}" = set; then :
15709
$as_echo_n "(cached) " >&6
15711
if test "$cross_compiling" = yes; then :
15712
ac_cv_func_fork_works=cross
15714
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715
/* end confdefs.h. */
15716
$ac_includes_default
15721
/* By Ruediger Kuhlmann. */
15722
return fork () < 0;
15728
if ac_fn_cxx_try_run "$LINENO"; then :
15729
ac_cv_func_fork_works=yes
15731
ac_cv_func_fork_works=no
15733
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15734
conftest.$ac_objext conftest.beam conftest.$ac_ext
15738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15739
$as_echo "$ac_cv_func_fork_works" >&6; }
15742
ac_cv_func_fork_works=$ac_cv_func_fork
15744
if test "x$ac_cv_func_fork_works" = xcross; then
15746
*-*-amigaos* | *-*-msdosdjgpp*)
15747
# Override, as these systems have only a dummy fork() stub
15748
ac_cv_func_fork_works=no
15751
ac_cv_func_fork_works=yes
15754
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15755
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15757
ac_cv_func_vfork_works=$ac_cv_func_vfork
15758
if test "x$ac_cv_func_vfork" = xyes; then
15759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15760
$as_echo_n "checking for working vfork... " >&6; }
15761
if test "${ac_cv_func_vfork_works+set}" = set; then :
15762
$as_echo_n "(cached) " >&6
15764
if test "$cross_compiling" = yes; then :
15765
ac_cv_func_vfork_works=cross
15767
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768
/* end confdefs.h. */
15769
/* Thanks to Paul Eggert for this test. */
15770
$ac_includes_default
15771
#include <sys/wait.h>
15772
#ifdef HAVE_VFORK_H
15773
# include <vfork.h>
15775
/* On some sparc systems, changes by the child to local and incoming
15776
argument registers are propagated back to the parent. The compiler
15777
is told about this with #include <vfork.h>, but some compilers
15778
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15779
static variable whose address is put into a register that is
15780
clobbered by the vfork. */
15783
sparc_address_test (int arg)
15785
sparc_address_test (arg) int arg;
15788
static pid_t child;
15806
pid_t parent = getpid ();
15809
sparc_address_test (0);
15814
/* Here is another test for sparc vfork register problems. This
15815
test uses lots of local variables, at least as many local
15816
variables as main has allocated so far including compiler
15817
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15818
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15819
reuse the register of parent for one of the local variables,
15820
since it will think that parent can't possibly be used any more
15821
in this routine. Assigning to the local variable will thus
15822
munge parent in the parent process. */
15824
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15825
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15826
/* Convince the compiler that p..p7 are live; otherwise, it might
15827
use the same hardware register for all 8 local variables. */
15828
if (p != p1 || p != p2 || p != p3 || p != p4
15829
|| p != p5 || p != p6 || p != p7)
15832
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15833
from child file descriptors. If the child closes a descriptor
15834
before it execs or exits, this munges the parent's descriptor
15835
as well. Test for this by closing stdout in the child. */
15836
_exit(close(fileno(stdout)) != 0);
15841
while (wait(&status) != child)
15844
/* Was there some problem with vforking? */
15847
/* Did the child fail? (This shouldn't happen.) */
15850
/* Did the vfork/compiler bug occur? */
15851
|| parent != getpid()
15853
/* Did the file descriptor bug occur? */
15854
|| fstat(fileno(stdout), &st) != 0
15859
if ac_fn_cxx_try_run "$LINENO"; then :
15860
ac_cv_func_vfork_works=yes
15862
ac_cv_func_vfork_works=no
15864
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15865
conftest.$ac_objext conftest.beam conftest.$ac_ext
15869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15870
$as_echo "$ac_cv_func_vfork_works" >&6; }
15873
if test "x$ac_cv_func_fork_works" = xcross; then
15874
ac_cv_func_vfork_works=$ac_cv_func_vfork
15875
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15876
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15879
if test "x$ac_cv_func_vfork_works" = xyes; then
15881
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15885
$as_echo "#define vfork fork" >>confdefs.h
15888
if test "x$ac_cv_func_fork_works" = xyes; then
15890
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15894
if test $ac_cv_c_compiler_gnu = yes; then
15895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
15896
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
15897
if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
15898
$as_echo_n "(cached) " >&6
15900
ac_pattern="Autoconf.*'x'"
15901
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902
/* end confdefs.h. */
15906
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15907
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
15908
ac_cv_prog_gcc_traditional=yes
15910
ac_cv_prog_gcc_traditional=no
15915
if test $ac_cv_prog_gcc_traditional = no; then
15916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15917
/* end confdefs.h. */
15918
#include <termio.h>
15921
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15922
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
15923
ac_cv_prog_gcc_traditional=yes
15929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
15930
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
15931
if test $ac_cv_prog_gcc_traditional = yes; then
15932
CC="$CC -traditional"
15936
for ac_header in stdlib.h
15938
ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15939
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15940
cat >>confdefs.h <<_ACEOF
15941
#define HAVE_STDLIB_H 1
15948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15949
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15950
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
15951
$as_echo_n "(cached) " >&6
15953
if test "$cross_compiling" = yes; then :
15954
ac_cv_func_malloc_0_nonnull=no
15956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957
/* end confdefs.h. */
15958
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
15959
# include <stdlib.h>
15967
return ! malloc (0);
15972
if ac_fn_cxx_try_run "$LINENO"; then :
15973
ac_cv_func_malloc_0_nonnull=yes
15975
ac_cv_func_malloc_0_nonnull=no
15977
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15978
conftest.$ac_objext conftest.beam conftest.$ac_ext
15982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15983
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15984
if test $ac_cv_func_malloc_0_nonnull = yes; then :
15986
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15989
$as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15991
case " $LIBOBJS " in
15992
*" malloc.$ac_objext "* ) ;;
15993
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15998
$as_echo "#define malloc rpl_malloc" >>confdefs.h
16003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16004
$as_echo_n "checking for working memcmp... " >&6; }
16005
if test "${ac_cv_func_memcmp_working+set}" = set; then :
16006
$as_echo_n "(cached) " >&6
16008
if test "$cross_compiling" = yes; then :
16009
ac_cv_func_memcmp_working=no
16011
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012
/* end confdefs.h. */
16013
$ac_includes_default
16018
/* Some versions of memcmp are not 8-bit clean. */
16019
char c0 = '\100', c1 = '\200', c2 = '\201';
16020
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16023
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16024
or more and with at least one buffer not starting on a 4-byte boundary.
16025
William Lewis provided this test program. */
16030
for (i = 0; i < 4; i++)
16034
strcpy (a, "--------01111111");
16035
strcpy (b, "--------10000000");
16036
if (memcmp (a, b, 16) >= 0)
16046
if ac_fn_cxx_try_run "$LINENO"; then :
16047
ac_cv_func_memcmp_working=yes
16049
ac_cv_func_memcmp_working=no
16051
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16052
conftest.$ac_objext conftest.beam conftest.$ac_ext
16056
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16057
$as_echo "$ac_cv_func_memcmp_working" >&6; }
16058
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16059
*" memcmp.$ac_objext "* ) ;;
16060
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16065
for ac_header in stdlib.h
16067
ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16068
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16069
cat >>confdefs.h <<_ACEOF
16070
#define HAVE_STDLIB_H 1
16077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16078
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16079
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
16080
$as_echo_n "(cached) " >&6
16082
if test "$cross_compiling" = yes; then :
16083
ac_cv_func_realloc_0_nonnull=no
16085
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086
/* end confdefs.h. */
16087
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
16088
# include <stdlib.h>
16096
return ! realloc (0, 0);
16101
if ac_fn_cxx_try_run "$LINENO"; then :
16102
ac_cv_func_realloc_0_nonnull=yes
16104
ac_cv_func_realloc_0_nonnull=no
16106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16107
conftest.$ac_objext conftest.beam conftest.$ac_ext
16111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16112
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16113
if test $ac_cv_func_realloc_0_nonnull = yes; then :
16115
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16118
$as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16120
case " $LIBOBJS " in
16121
*" realloc.$ac_objext "* ) ;;
16122
*) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16127
$as_echo "#define realloc rpl_realloc" >>confdefs.h
16132
for ac_header in sys/select.h sys/socket.h
16134
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16135
ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16136
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16137
cat >>confdefs.h <<_ACEOF
16138
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
16146
$as_echo_n "checking types of arguments for select... " >&6; }
16147
if test "${ac_cv_func_select_args+set}" = set; then :
16148
$as_echo_n "(cached) " >&6
16150
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16151
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16152
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154
/* end confdefs.h. */
16155
$ac_includes_default
16156
#ifdef HAVE_SYS_SELECT_H
16157
# include <sys/select.h>
16159
#ifdef HAVE_SYS_SOCKET_H
16160
# include <sys/socket.h>
16166
extern int select ($ac_arg1,
16167
$ac_arg234, $ac_arg234, $ac_arg234,
16173
if ac_fn_cxx_try_compile "$LINENO"; then :
16174
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16176
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180
# Provide a safe default value.
16181
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
16185
$as_echo "$ac_cv_func_select_args" >&6; }
16186
ac_save_IFS=$IFS; IFS=','
16187
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16191
cat >>confdefs.h <<_ACEOF
16192
#define SELECT_TYPE_ARG1 $1
16196
cat >>confdefs.h <<_ACEOF
16197
#define SELECT_TYPE_ARG234 ($2)
16201
cat >>confdefs.h <<_ACEOF
16202
#define SELECT_TYPE_ARG5 ($3)
16207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
16208
$as_echo_n "checking return type of signal handlers... " >&6; }
16209
if test "${ac_cv_type_signal+set}" = set; then :
16210
$as_echo_n "(cached) " >&6
16212
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213
/* end confdefs.h. */
16214
#include <sys/types.h>
16215
#include <signal.h>
16220
return *(signal (0, 0)) (0) == 1;
16225
if ac_fn_cxx_try_compile "$LINENO"; then :
16226
ac_cv_type_signal=int
16228
ac_cv_type_signal=void
16230
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
16233
$as_echo "$ac_cv_type_signal" >&6; }
16235
cat >>confdefs.h <<_ACEOF
16236
#define RETSIGTYPE $ac_cv_type_signal
16240
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16241
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16242
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
16243
$as_echo_n "(cached) " >&6
16245
rm -f conftest.sym conftest.file
16246
echo >conftest.file
16247
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16248
if test "$cross_compiling" = yes; then :
16249
ac_cv_func_lstat_dereferences_slashed_symlink=no
16251
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252
/* end confdefs.h. */
16253
$ac_includes_default
16258
/* Linux will dereference the symlink and fail, as required by POSIX.
16259
That is better in the sense that it means we will not
16260
have to compile and use the lstat wrapper. */
16261
return lstat ("conftest.sym/", &sbuf) == 0;
16266
if ac_fn_cxx_try_run "$LINENO"; then :
16267
ac_cv_func_lstat_dereferences_slashed_symlink=yes
16269
ac_cv_func_lstat_dereferences_slashed_symlink=no
16271
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16272
conftest.$ac_objext conftest.beam conftest.$ac_ext
16276
# If the `ln -s' command failed, then we probably don't even
16277
# have an lstat function.
16278
ac_cv_func_lstat_dereferences_slashed_symlink=no
16280
rm -f conftest.sym conftest.file
16283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16284
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16286
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16288
cat >>confdefs.h <<_ACEOF
16289
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16293
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16294
case " $LIBOBJS " in
16295
*" lstat.$ac_objext "* ) ;;
16296
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16303
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
16304
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
16305
$as_echo_n "(cached) " >&6
16307
if test "$cross_compiling" = yes; then :
16308
ac_cv_func_stat_empty_string_bug=yes
16310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311
/* end confdefs.h. */
16312
$ac_includes_default
16317
return stat ("", &sbuf) == 0;
16322
if ac_fn_cxx_try_run "$LINENO"; then :
16323
ac_cv_func_stat_empty_string_bug=no
16325
ac_cv_func_stat_empty_string_bug=yes
16327
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16328
conftest.$ac_objext conftest.beam conftest.$ac_ext
16332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16333
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16334
if test $ac_cv_func_stat_empty_string_bug = yes; then
16335
case " $LIBOBJS " in
16336
*" stat.$ac_objext "* ) ;;
16337
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
16342
cat >>confdefs.h <<_ACEOF
16343
#define HAVE_STAT_EMPTY_STRING_BUG 1
16351
for ac_header in $ac_header_list
16353
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354
ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16356
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16357
cat >>confdefs.h <<_ACEOF
16358
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
16369
$as_echo_n "checking whether utime accepts a null argument... " >&6; }
16370
if test "${ac_cv_func_utime_null+set}" = set; then :
16371
$as_echo_n "(cached) " >&6
16373
rm -f conftest.data; >conftest.data
16374
# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
16375
if test "$cross_compiling" = yes; then :
16376
ac_cv_func_utime_null='guessing yes'
16378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379
/* end confdefs.h. */
16380
$ac_includes_default
16381
#ifdef HAVE_UTIME_H
16382
# include <utime.h>
16388
return ! (stat ("conftest.data", &s) == 0
16389
&& utime ("conftest.data", 0) == 0
16390
&& stat ("conftest.data", &t) == 0
16391
&& t.st_mtime >= s.st_mtime
16392
&& t.st_mtime - s.st_mtime < 120);
16397
if ac_fn_cxx_try_run "$LINENO"; then :
16398
ac_cv_func_utime_null=yes
16400
ac_cv_func_utime_null=no
16402
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16403
conftest.$ac_objext conftest.beam conftest.$ac_ext
16407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
16408
$as_echo "$ac_cv_func_utime_null" >&6; }
16409
if test "x$ac_cv_func_utime_null" != xno; then
16410
ac_cv_func_utime_null=yes
16412
$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
16415
rm -f conftest.data
16417
for ac_func in vprintf
16419
ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16420
if test "x$ac_cv_func_vprintf" = x""yes; then :
16421
cat >>confdefs.h <<_ACEOF
16422
#define HAVE_VPRINTF 1
16425
ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16426
if test "x$ac_cv_func__doprnt" = x""yes; then :
16428
$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16436
for ac_func in bzero floor gethostbyname gethrtime gettimeofday \
16437
inet_ntoa memset mkdir pathconf pow regcomp select setlocale socket \
16438
strchr strdup strerror strrchr strstr strtol utime
16440
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16441
ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16442
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16443
cat >>confdefs.h <<_ACEOF
16444
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16451
SFLPHONE_LIBS="$SFLPHONE_LIBS"
16459
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16460
if test -n "$ac_tool_prefix"; then
16461
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16462
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464
$as_echo_n "checking for $ac_word... " >&6; }
16465
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16466
$as_echo_n "(cached) " >&6
16468
case $PKG_CONFIG in
16470
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16474
for as_dir in $PATH
16477
test -z "$as_dir" && as_dir=.
16478
for ac_exec_ext in '' $ac_executable_extensions; do
16479
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16480
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16481
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16491
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16492
if test -n "$PKG_CONFIG"; then
16493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16494
$as_echo "$PKG_CONFIG" >&6; }
16496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497
$as_echo "no" >&6; }
16502
if test -z "$ac_cv_path_PKG_CONFIG"; then
16503
ac_pt_PKG_CONFIG=$PKG_CONFIG
16504
# Extract the first word of "pkg-config", so it can be a program name with args.
16505
set dummy pkg-config; ac_word=$2
16506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16507
$as_echo_n "checking for $ac_word... " >&6; }
16508
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16509
$as_echo_n "(cached) " >&6
16511
case $ac_pt_PKG_CONFIG in
16513
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16517
for as_dir in $PATH
16520
test -z "$as_dir" && as_dir=.
16521
for ac_exec_ext in '' $ac_executable_extensions; do
16522
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16523
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16524
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16534
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16535
if test -n "$ac_pt_PKG_CONFIG"; then
16536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16537
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540
$as_echo "no" >&6; }
16543
if test "x$ac_pt_PKG_CONFIG" = x; then
16546
case $cross_compiling:$ac_tool_warned in
16548
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16549
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16550
ac_tool_warned=yes ;;
16552
PKG_CONFIG=$ac_pt_PKG_CONFIG
16555
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16559
if test -n "$PKG_CONFIG"; then
16560
_pkg_min_version=0.9.0
16561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16562
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16563
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16565
$as_echo "yes" >&6; }
16567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16568
$as_echo "no" >&6; }
16573
#Trying to set PJSIP using pkg-config
16574
#PKG_CHECK_MODULES(SIP, libpj-sfl, have_libpj=true, have_libpj=false)
16575
#if test "x${have_libpj}" = "xfalse" ; then
16576
# AC_MSG_ERROR([PJSIP not found. http://www.pjsip.org/download.htm])
16578
#AC_SUBST(SIP_CFLAGS)
16580
UUID_MIN_VERSION=1.0
16583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
16584
$as_echo_n "checking for UUID... " >&6; }
16586
if test -n "$UUID_CFLAGS"; then
16587
pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
16588
elif test -n "$PKG_CONFIG"; then
16589
if test -n "$PKG_CONFIG" && \
16590
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= \${UUID_MIN_VERSION}\""; } >&5
16591
($PKG_CONFIG --exists --print-errors "uuid >= ${UUID_MIN_VERSION}") 2>&5
16593
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594
test $ac_status = 0; }; then
16595
pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= ${UUID_MIN_VERSION}" 2>/dev/null`
16602
if test -n "$UUID_LIBS"; then
16603
pkg_cv_UUID_LIBS="$UUID_LIBS"
16604
elif test -n "$PKG_CONFIG"; then
16605
if test -n "$PKG_CONFIG" && \
16606
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= \${UUID_MIN_VERSION}\""; } >&5
16607
($PKG_CONFIG --exists --print-errors "uuid >= ${UUID_MIN_VERSION}") 2>&5
16609
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16610
test $ac_status = 0; }; then
16611
pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid >= ${UUID_MIN_VERSION}" 2>/dev/null`
16621
if test $pkg_failed = yes; then
16622
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16623
$as_echo "no" >&6; }
16625
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16626
_pkg_short_errors_supported=yes
16628
_pkg_short_errors_supported=no
16630
if test $_pkg_short_errors_supported = yes; then
16631
UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid >= ${UUID_MIN_VERSION}" 2>&1`
16633
UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid >= ${UUID_MIN_VERSION}" 2>&1`
16635
# Put the nasty error message in config.log where it belongs
16636
echo "$UUID_PKG_ERRORS" >&5
16639
elif test $pkg_failed = untried; then
16640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16641
$as_echo "no" >&6; }
16644
UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
16645
UUID_LIBS=$pkg_cv_UUID_LIBS
16646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16647
$as_echo "yes" >&6; }
16653
ALSA_MIN_VERSION=1.0
16656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
16657
$as_echo_n "checking for ALSA... " >&6; }
16659
if test -n "$ALSA_CFLAGS"; then
16660
pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
16661
elif test -n "$PKG_CONFIG"; then
16662
if test -n "$PKG_CONFIG" && \
16663
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= \${ALSA_MIN_VERSION}\""; } >&5
16664
($PKG_CONFIG --exists --print-errors "alsa >= ${ALSA_MIN_VERSION}") 2>&5
16666
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16667
test $ac_status = 0; }; then
16668
pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= ${ALSA_MIN_VERSION}" 2>/dev/null`
16675
if test -n "$ALSA_LIBS"; then
16676
pkg_cv_ALSA_LIBS="$ALSA_LIBS"
16677
elif test -n "$PKG_CONFIG"; then
16678
if test -n "$PKG_CONFIG" && \
16679
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= \${ALSA_MIN_VERSION}\""; } >&5
16680
($PKG_CONFIG --exists --print-errors "alsa >= ${ALSA_MIN_VERSION}") 2>&5
16682
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683
test $ac_status = 0; }; then
16684
pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= ${ALSA_MIN_VERSION}" 2>/dev/null`
16694
if test $pkg_failed = yes; then
16695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16696
$as_echo "no" >&6; }
16698
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16699
_pkg_short_errors_supported=yes
16701
_pkg_short_errors_supported=no
16703
if test $_pkg_short_errors_supported = yes; then
16704
ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa >= ${ALSA_MIN_VERSION}" 2>&1`
16706
ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa >= ${ALSA_MIN_VERSION}" 2>&1`
16708
# Put the nasty error message in config.log where it belongs
16709
echo "$ALSA_PKG_ERRORS" >&5
16711
as_fn_error $? "Mising alsa development package: libasound2-dev or alsa-lib-devel" "$LINENO" 5
16712
elif test $pkg_failed = untried; then
16713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16714
$as_echo "no" >&6; }
16715
as_fn_error $? "Mising alsa development package: libasound2-dev or alsa-lib-devel" "$LINENO" 5
16717
ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
16718
ALSA_LIBS=$pkg_cv_ALSA_LIBS
16719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16720
$as_echo "yes" >&6; }
16726
LIBPULSE_MIN_VERSION=0.9.15
16729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
16730
$as_echo_n "checking for PULSEAUDIO... " >&6; }
16732
if test -n "$PULSEAUDIO_CFLAGS"; then
16733
pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
16734
elif test -n "$PKG_CONFIG"; then
16735
if test -n "$PKG_CONFIG" && \
16736
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= \${LIBPULSE_MIN_VERSION}\""; } >&5
16737
($PKG_CONFIG --exists --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}") 2>&5
16739
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16740
test $ac_status = 0; }; then
16741
pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>/dev/null`
16748
if test -n "$PULSEAUDIO_LIBS"; then
16749
pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
16750
elif test -n "$PKG_CONFIG"; then
16751
if test -n "$PKG_CONFIG" && \
16752
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= \${LIBPULSE_MIN_VERSION}\""; } >&5
16753
($PKG_CONFIG --exists --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}") 2>&5
16755
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16756
test $ac_status = 0; }; then
16757
pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>/dev/null`
16767
if test $pkg_failed = yes; then
16768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16769
$as_echo "no" >&6; }
16771
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16772
_pkg_short_errors_supported=yes
16774
_pkg_short_errors_supported=no
16776
if test $_pkg_short_errors_supported = yes; then
16777
PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>&1`
16779
PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse >= ${LIBPULSE_MIN_VERSION}" 2>&1`
16781
# Put the nasty error message in config.log where it belongs
16782
echo "$PULSEAUDIO_PKG_ERRORS" >&5
16784
as_fn_error $? "Mising pulseaudio development package: libpulse-dev" "$LINENO" 5
16785
elif test $pkg_failed = untried; then
16786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16787
$as_echo "no" >&6; }
16788
as_fn_error $? "Mising pulseaudio development package: libpulse-dev" "$LINENO" 5
16790
PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
16791
PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
16792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16793
$as_echo "yes" >&6; }
16799
LIBSAMPLERATE_MIN_VERSION=0.1.2
16802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAMPLERATE" >&5
16803
$as_echo_n "checking for SAMPLERATE... " >&6; }
16805
if test -n "$SAMPLERATE_CFLAGS"; then
16806
pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
16807
elif test -n "$PKG_CONFIG"; then
16808
if test -n "$PKG_CONFIG" && \
16809
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= \${LIBSAMPLERATE_MIN_VERSION}\""; } >&5
16810
($PKG_CONFIG --exists --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}") 2>&5
16812
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16813
test $ac_status = 0; }; then
16814
pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>/dev/null`
16821
if test -n "$SAMPLERATE_LIBS"; then
16822
pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
16823
elif test -n "$PKG_CONFIG"; then
16824
if test -n "$PKG_CONFIG" && \
16825
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= \${LIBSAMPLERATE_MIN_VERSION}\""; } >&5
16826
($PKG_CONFIG --exists --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}") 2>&5
16828
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16829
test $ac_status = 0; }; then
16830
pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>/dev/null`
16840
if test $pkg_failed = yes; then
16841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16842
$as_echo "no" >&6; }
16844
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16845
_pkg_short_errors_supported=yes
16847
_pkg_short_errors_supported=no
16849
if test $_pkg_short_errors_supported = yes; then
16850
SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>&1`
16852
SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors "samplerate >= ${LIBSAMPLERATE_MIN_VERSION}" 2>&1`
16854
# Put the nasty error message in config.log where it belongs
16855
echo "$SAMPLERATE_PKG_ERRORS" >&5
16857
as_fn_error $? "Mising libsamplerate development package: libsamplerate0-dev" "$LINENO" 5
16858
elif test $pkg_failed = untried; then
16859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860
$as_echo "no" >&6; }
16861
as_fn_error $? "Mising libsamplerate development package: libsamplerate0-dev" "$LINENO" 5
16863
SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
16864
SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
16865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16866
$as_echo "yes" >&6; }
16872
LIBCCGNU2_MIN_VERSION=1.3.1
16875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCGNU2" >&5
16876
$as_echo_n "checking for CCGNU2... " >&6; }
16878
if test -n "$CCGNU2_CFLAGS"; then
16879
pkg_cv_CCGNU2_CFLAGS="$CCGNU2_CFLAGS"
16880
elif test -n "$PKG_CONFIG"; then
16881
if test -n "$PKG_CONFIG" && \
16882
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
16883
($PKG_CONFIG --exists --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
16885
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16886
test $ac_status = 0; }; then
16887
pkg_cv_CCGNU2_CFLAGS=`$PKG_CONFIG --cflags "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
16894
if test -n "$CCGNU2_LIBS"; then
16895
pkg_cv_CCGNU2_LIBS="$CCGNU2_LIBS"
16896
elif test -n "$PKG_CONFIG"; then
16897
if test -n "$PKG_CONFIG" && \
16898
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccgnu2 >= \${LIBCCGNU2_MIN_VERSION}\""; } >&5
16899
($PKG_CONFIG --exists --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}") 2>&5
16901
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16902
test $ac_status = 0; }; then
16903
pkg_cv_CCGNU2_LIBS=`$PKG_CONFIG --libs "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>/dev/null`
16913
if test $pkg_failed = yes; then
16914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16915
$as_echo "no" >&6; }
16917
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16918
_pkg_short_errors_supported=yes
16920
_pkg_short_errors_supported=no
16922
if test $_pkg_short_errors_supported = yes; then
16923
CCGNU2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
16925
CCGNU2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccgnu2 >= ${LIBCCGNU2_MIN_VERSION}" 2>&1`
16927
# Put the nasty error message in config.log where it belongs
16928
echo "$CCGNU2_PKG_ERRORS" >&5
16930
as_fn_error $? "Mising common cpp development package: libcommoncpp2-dev" "$LINENO" 5
16931
elif test $pkg_failed = untried; then
16932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16933
$as_echo "no" >&6; }
16934
as_fn_error $? "Mising common cpp development package: libcommoncpp2-dev" "$LINENO" 5
16936
CCGNU2_CFLAGS=$pkg_cv_CCGNU2_CFLAGS
16937
CCGNU2_LIBS=$pkg_cv_CCGNU2_LIBS
16938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16939
$as_echo "yes" >&6; }
16945
LIBCCEXT2_MIN_VERSION=1.3.1
16948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCEXT2" >&5
16949
$as_echo_n "checking for CCEXT2... " >&6; }
16951
if test -n "$CCEXT2_CFLAGS"; then
16952
pkg_cv_CCEXT2_CFLAGS="$CCEXT2_CFLAGS"
16953
elif test -n "$PKG_CONFIG"; then
16954
if test -n "$PKG_CONFIG" && \
16955
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccext2 >= \${LIBCCEXT2_MIN_VERSION}\""; } >&5
16956
($PKG_CONFIG --exists --print-errors "libccext2 >= ${LIBCCEXT2_MIN_VERSION}") 2>&5
16958
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16959
test $ac_status = 0; }; then
16960
pkg_cv_CCEXT2_CFLAGS=`$PKG_CONFIG --cflags "libccext2 >= ${LIBCCEXT2_MIN_VERSION}" 2>/dev/null`
16967
if test -n "$CCEXT2_LIBS"; then
16968
pkg_cv_CCEXT2_LIBS="$CCEXT2_LIBS"
16969
elif test -n "$PKG_CONFIG"; then
16970
if test -n "$PKG_CONFIG" && \
16971
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccext2 >= \${LIBCCEXT2_MIN_VERSION}\""; } >&5
16972
($PKG_CONFIG --exists --print-errors "libccext2 >= ${LIBCCEXT2_MIN_VERSION}") 2>&5
16974
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16975
test $ac_status = 0; }; then
16976
pkg_cv_CCEXT2_LIBS=`$PKG_CONFIG --libs "libccext2 >= ${LIBCCEXT2_MIN_VERSION}" 2>/dev/null`
16986
if test $pkg_failed = yes; then
16987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16988
$as_echo "no" >&6; }
16990
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16991
_pkg_short_errors_supported=yes
16993
_pkg_short_errors_supported=no
16995
if test $_pkg_short_errors_supported = yes; then
16996
CCEXT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccext2 >= ${LIBCCEXT2_MIN_VERSION}" 2>&1`
16998
CCEXT2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccext2 >= ${LIBCCEXT2_MIN_VERSION}" 2>&1`
17000
# Put the nasty error message in config.log where it belongs
17001
echo "$CCEXT2_PKG_ERRORS" >&5
17003
as_fn_error $? "Package requirements (libccext2 >= ${LIBCCEXT2_MIN_VERSION}) were not met:
17007
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17008
installed software in a non-standard prefix.
17010
Alternatively, you may set the environment variables CCEXT2_CFLAGS
17011
and CCEXT2_LIBS to avoid the need to call pkg-config.
17012
See the pkg-config man page for more details." "$LINENO" 5
17013
elif test $pkg_failed = untried; then
17014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015
$as_echo "no" >&6; }
17016
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17017
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17018
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17019
is in your PATH or set the PKG_CONFIG environment variable to the full
17020
path to pkg-config.
17022
Alternatively, you may set the environment variables CCEXT2_CFLAGS
17023
and CCEXT2_LIBS to avoid the need to call pkg-config.
17024
See the pkg-config man page for more details.
17026
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17027
See \`config.log' for more details" "$LINENO" 5 ; }
17029
CCEXT2_CFLAGS=$pkg_cv_CCEXT2_CFLAGS
17030
CCEXT2_LIBS=$pkg_cv_CCEXT2_LIBS
17031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17032
$as_echo "yes" >&6; }
17038
LIBCCRT_MIN_VERSION=1.3.0
17041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCRTP" >&5
17042
$as_echo_n "checking for CCRTP... " >&6; }
17044
if test -n "$CCRTP_CFLAGS"; then
17045
pkg_cv_CCRTP_CFLAGS="$CCRTP_CFLAGS"
17046
elif test -n "$PKG_CONFIG"; then
17047
if test -n "$PKG_CONFIG" && \
17048
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp1 >= \${LIBCCRT_MIN_VERSION}\""; } >&5
17049
($PKG_CONFIG --exists --print-errors "libccrtp1 >= ${LIBCCRT_MIN_VERSION}") 2>&5
17051
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17052
test $ac_status = 0; }; then
17053
pkg_cv_CCRTP_CFLAGS=`$PKG_CONFIG --cflags "libccrtp1 >= ${LIBCCRT_MIN_VERSION}" 2>/dev/null`
17060
if test -n "$CCRTP_LIBS"; then
17061
pkg_cv_CCRTP_LIBS="$CCRTP_LIBS"
17062
elif test -n "$PKG_CONFIG"; then
17063
if test -n "$PKG_CONFIG" && \
17064
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccrtp1 >= \${LIBCCRT_MIN_VERSION}\""; } >&5
17065
($PKG_CONFIG --exists --print-errors "libccrtp1 >= ${LIBCCRT_MIN_VERSION}") 2>&5
17067
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17068
test $ac_status = 0; }; then
17069
pkg_cv_CCRTP_LIBS=`$PKG_CONFIG --libs "libccrtp1 >= ${LIBCCRT_MIN_VERSION}" 2>/dev/null`
17079
if test $pkg_failed = yes; then
17080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081
$as_echo "no" >&6; }
17083
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17084
_pkg_short_errors_supported=yes
17086
_pkg_short_errors_supported=no
17088
if test $_pkg_short_errors_supported = yes; then
17089
CCRTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccrtp1 >= ${LIBCCRT_MIN_VERSION}" 2>&1`
17091
CCRTP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccrtp1 >= ${LIBCCRT_MIN_VERSION}" 2>&1`
17093
# Put the nasty error message in config.log where it belongs
17094
echo "$CCRTP_PKG_ERRORS" >&5
17096
as_fn_error $? "Mising ccrtp development package: libccrtp-dev" "$LINENO" 5
17097
elif test $pkg_failed = untried; then
17098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099
$as_echo "no" >&6; }
17100
as_fn_error $? "Mising ccrtp development package: libccrtp-dev" "$LINENO" 5
17102
CCRTP_CFLAGS=$pkg_cv_CCRTP_CFLAGS
17103
CCRTP_LIBS=$pkg_cv_CCRTP_LIBS
17104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17105
$as_echo "yes" >&6; }
17113
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssl" >&5
17114
$as_echo_n "checking for libssl... " >&6; }
17116
if test -n "$libssl_CFLAGS"; then
17117
pkg_cv_libssl_CFLAGS="$libssl_CFLAGS"
17118
elif test -n "$PKG_CONFIG"; then
17119
if test -n "$PKG_CONFIG" && \
17120
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
17121
($PKG_CONFIG --exists --print-errors "libssl") 2>&5
17123
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17124
test $ac_status = 0; }; then
17125
pkg_cv_libssl_CFLAGS=`$PKG_CONFIG --cflags "libssl" 2>/dev/null`
17132
if test -n "$libssl_LIBS"; then
17133
pkg_cv_libssl_LIBS="$libssl_LIBS"
17134
elif test -n "$PKG_CONFIG"; then
17135
if test -n "$PKG_CONFIG" && \
17136
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl\""; } >&5
17137
($PKG_CONFIG --exists --print-errors "libssl") 2>&5
17139
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17140
test $ac_status = 0; }; then
17141
pkg_cv_libssl_LIBS=`$PKG_CONFIG --libs "libssl" 2>/dev/null`
17151
if test $pkg_failed = yes; then
17152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17153
$as_echo "no" >&6; }
17155
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17156
_pkg_short_errors_supported=yes
17158
_pkg_short_errors_supported=no
17160
if test $_pkg_short_errors_supported = yes; then
17161
libssl_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libssl" 2>&1`
17163
libssl_PKG_ERRORS=`$PKG_CONFIG --print-errors "libssl" 2>&1`
17165
# Put the nasty error message in config.log where it belongs
17166
echo "$libssl_PKG_ERRORS" >&5
17168
as_fn_error $? "Mising ssl development package: libssl-dev" "$LINENO" 5
17169
elif test $pkg_failed = untried; then
17170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17171
$as_echo "no" >&6; }
17172
as_fn_error $? "Mising ssl development package: libssl-dev" "$LINENO" 5
17174
libssl_CFLAGS=$pkg_cv_libssl_CFLAGS
17175
libssl_LIBS=$pkg_cv_libssl_LIBS
17176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17177
$as_echo "yes" >&6; }
17183
LIBZRTPCPP_MIN_VERSION=1.3.0
17186
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZRTPCPP" >&5
17187
$as_echo_n "checking for ZRTPCPP... " >&6; }
17189
if test -n "$ZRTPCPP_CFLAGS"; then
17190
pkg_cv_ZRTPCPP_CFLAGS="$ZRTPCPP_CFLAGS"
17191
elif test -n "$PKG_CONFIG"; then
17192
if test -n "$PKG_CONFIG" && \
17193
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzrtpcpp >= \${LIBZRTPCPP_MIN_VERSION}\""; } >&5
17194
($PKG_CONFIG --exists --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}") 2>&5
17196
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17197
test $ac_status = 0; }; then
17198
pkg_cv_ZRTPCPP_CFLAGS=`$PKG_CONFIG --cflags "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>/dev/null`
17205
if test -n "$ZRTPCPP_LIBS"; then
17206
pkg_cv_ZRTPCPP_LIBS="$ZRTPCPP_LIBS"
17207
elif test -n "$PKG_CONFIG"; then
17208
if test -n "$PKG_CONFIG" && \
17209
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzrtpcpp >= \${LIBZRTPCPP_MIN_VERSION}\""; } >&5
17210
($PKG_CONFIG --exists --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}") 2>&5
17212
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17213
test $ac_status = 0; }; then
17214
pkg_cv_ZRTPCPP_LIBS=`$PKG_CONFIG --libs "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>/dev/null`
17224
if test $pkg_failed = yes; then
17225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17226
$as_echo "no" >&6; }
17228
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17229
_pkg_short_errors_supported=yes
17231
_pkg_short_errors_supported=no
17233
if test $_pkg_short_errors_supported = yes; then
17234
ZRTPCPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>&1`
17236
ZRTPCPP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libzrtpcpp >= ${LIBZRTPCPP_MIN_VERSION}" 2>&1`
17238
# Put the nasty error message in config.log where it belongs
17239
echo "$ZRTPCPP_PKG_ERRORS" >&5
17241
as_fn_error $? "Missing zrtp development package: libzrtpcpp-dev" "$LINENO" 5
17242
elif test $pkg_failed = untried; then
17243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244
$as_echo "no" >&6; }
17245
as_fn_error $? "Missing zrtp development package: libzrtpcpp-dev" "$LINENO" 5
17247
ZRTPCPP_CFLAGS=$pkg_cv_ZRTPCPP_CFLAGS
17248
ZRTPCPP_LIBS=$pkg_cv_ZRTPCPP_LIBS
17249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17250
$as_echo "yes" >&6; }
17257
DBUS_REQUIRED_VERSION=0.60
17260
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus" >&5
17261
$as_echo_n "checking for dbus... " >&6; }
17263
if test -n "$dbus_CFLAGS"; then
17264
pkg_cv_dbus_CFLAGS="$dbus_CFLAGS"
17265
elif test -n "$PKG_CONFIG"; then
17266
if test -n "$PKG_CONFIG" && \
17267
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_REQUIRED_VERSION\""; } >&5
17268
($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION") 2>&5
17270
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17271
test $ac_status = 0; }; then
17272
pkg_cv_dbus_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= $DBUS_REQUIRED_VERSION" 2>/dev/null`
17279
if test -n "$dbus_LIBS"; then
17280
pkg_cv_dbus_LIBS="$dbus_LIBS"
17281
elif test -n "$PKG_CONFIG"; then
17282
if test -n "$PKG_CONFIG" && \
17283
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_REQUIRED_VERSION\""; } >&5
17284
($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION") 2>&5
17286
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17287
test $ac_status = 0; }; then
17288
pkg_cv_dbus_LIBS=`$PKG_CONFIG --libs "dbus-1 >= $DBUS_REQUIRED_VERSION" 2>/dev/null`
17298
if test $pkg_failed = yes; then
17299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300
$as_echo "no" >&6; }
17302
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17303
_pkg_short_errors_supported=yes
17305
_pkg_short_errors_supported=no
17307
if test $_pkg_short_errors_supported = yes; then
17308
dbus_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION" 2>&1`
17310
dbus_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= $DBUS_REQUIRED_VERSION" 2>&1`
17312
# Put the nasty error message in config.log where it belongs
17313
echo "$dbus_PKG_ERRORS" >&5
17315
as_fn_error $? "You need the DBus libraries (version 0.6 or better)
17316
http://gitorious.org/dbus-cplusplus" "$LINENO" 5
17317
elif test $pkg_failed = untried; then
17318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17319
$as_echo "no" >&6; }
17320
as_fn_error $? "You need the DBus libraries (version 0.6 or better)
17321
http://gitorious.org/dbus-cplusplus" "$LINENO" 5
17323
dbus_CFLAGS=$pkg_cv_dbus_CFLAGS
17324
dbus_LIBS=$pkg_cv_dbus_LIBS
17325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17326
$as_echo "yes" >&6; }
17332
DBUS_API_STABLE_VERSION=1.0.0
17333
if test -n "$PKG_CONFIG" && \
17334
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 < \$DBUS_API_STABLE_VERSION\""; } >&5
17335
($PKG_CONFIG --exists --print-errors "dbus-1 < $DBUS_API_STABLE_VERSION") 2>&5
17337
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17338
test $ac_status = 0; }; then
17340
$as_echo "#define DBUS_API_SUBJECT_TO_CHANGE /**/" >>confdefs.h
17345
DBUS_THREADS_INIT_DEFAULT_VERSION=0.93
17346
if test -n "$PKG_CONFIG" && \
17347
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_THREADS_INIT_DEFAULT_VERSION\""; } >&5
17348
($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_THREADS_INIT_DEFAULT_VERSION") 2>&5
17350
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351
test $ac_status = 0; }; then
17353
$as_echo "#define DBUS_HAS_THREADS_INIT_DEFAULT /**/" >>confdefs.h
17358
DBUS_RECURSIVE_MUTEX_VERSION=0.95
17359
if test -n "$PKG_CONFIG" && \
17360
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= \$DBUS_RECURSIVE_MUTEX_VERSION\""; } >&5
17361
($PKG_CONFIG --exists --print-errors "dbus-1 >= $DBUS_RECURSIVE_MUTEX_VERSION") 2>&5
17363
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17364
test $ac_status = 0; }; then
17366
$as_echo "#define DBUS_HAS_RECURSIVE_MUTEX /**/" >>confdefs.h
17373
# Check whether --with-debug was given.
17374
if test "${with_debug+set}" = set; then :
17375
withval=$with_debug; with_debug=${withval}
17381
if test "x$with_debug" = "xfull" -o "x$with_debug" = "xyes"; then
17382
CXXFLAGS="$USE_EXCEPTIONS $USER_INCLUDES -g -O0 -Wno-return-type"
17384
CXXFLAGS="-g -Wall -O2"
17387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate_MM in -lexpat" >&5
17388
$as_echo_n "checking for XML_ParserCreate_MM in -lexpat... " >&6; }
17389
if test "${ac_cv_lib_expat_XML_ParserCreate_MM+set}" = set; then :
17390
$as_echo_n "(cached) " >&6
17392
ac_check_lib_save_LIBS=$LIBS
17393
LIBS="-lexpat $LIBS"
17394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395
/* end confdefs.h. */
17397
/* Override any GCC internal prototype to avoid an error.
17398
Use char because int might match the return type of a GCC
17399
builtin and then its argument prototype would still apply. */
17403
char XML_ParserCreate_MM ();
17407
return XML_ParserCreate_MM ();
17412
if ac_fn_cxx_try_link "$LINENO"; then :
17413
ac_cv_lib_expat_XML_ParserCreate_MM=yes
17415
ac_cv_lib_expat_XML_ParserCreate_MM=no
17417
rm -f core conftest.err conftest.$ac_objext \
17418
conftest$ac_exeext conftest.$ac_ext
17419
LIBS=$ac_check_lib_save_LIBS
17421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate_MM" >&5
17422
$as_echo "$ac_cv_lib_expat_XML_ParserCreate_MM" >&6; }
17423
if test "x$ac_cv_lib_expat_XML_ParserCreate_MM" = x""yes; then :
17424
for ac_header in expat.h
17426
ac_fn_cxx_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
17427
if test "x$ac_cv_header_expat_h" = x""yes; then :
17428
cat >>confdefs.h <<_ACEOF
17429
#define HAVE_EXPAT_H 1
17443
if ! $have_expat; then
17444
as_fn_error $? "libexpat development files missing" "$LINENO" 5
17453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaml_parser_initialize in -lyaml" >&5
17454
$as_echo_n "checking for yaml_parser_initialize in -lyaml... " >&6; }
17455
if test "${ac_cv_lib_yaml_yaml_parser_initialize+set}" = set; then :
17456
$as_echo_n "(cached) " >&6
17458
ac_check_lib_save_LIBS=$LIBS
17459
LIBS="-lyaml $LIBS"
17460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461
/* end confdefs.h. */
17463
/* Override any GCC internal prototype to avoid an error.
17464
Use char because int might match the return type of a GCC
17465
builtin and then its argument prototype would still apply. */
17469
char yaml_parser_initialize ();
17473
return yaml_parser_initialize ();
17478
if ac_fn_cxx_try_link "$LINENO"; then :
17479
ac_cv_lib_yaml_yaml_parser_initialize=yes
17481
ac_cv_lib_yaml_yaml_parser_initialize=no
17483
rm -f core conftest.err conftest.$ac_objext \
17484
conftest$ac_exeext conftest.$ac_ext
17485
LIBS=$ac_check_lib_save_LIBS
17487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yaml_yaml_parser_initialize" >&5
17488
$as_echo "$ac_cv_lib_yaml_yaml_parser_initialize" >&6; }
17489
if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = x""yes; then :
17490
for ac_header in yaml.h
17492
ac_fn_cxx_check_header_mongrel "$LINENO" "yaml.h" "ac_cv_header_yaml_h" "$ac_includes_default"
17493
if test "x$ac_cv_header_yaml_h" = x""yes; then :
17494
cat >>confdefs.h <<_ACEOF
17495
#define HAVE_YAML_H 1
17509
if test "$have_yaml" = "false"; then
17510
as_fn_error $? "libyaml development files missing" "$LINENO" 5
17519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17520
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17521
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
17522
$as_echo_n "(cached) " >&6
17524
ac_check_lib_save_LIBS=$LIBS
17525
LIBS="-lpthread $LIBS"
17526
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527
/* end confdefs.h. */
17529
/* Override any GCC internal prototype to avoid an error.
17530
Use char because int might match the return type of a GCC
17531
builtin and then its argument prototype would still apply. */
17535
char pthread_create ();
17539
return pthread_create ();
17544
if ac_fn_cxx_try_link "$LINENO"; then :
17545
ac_cv_lib_pthread_pthread_create=yes
17547
ac_cv_lib_pthread_pthread_create=no
17549
rm -f core conftest.err conftest.$ac_objext \
17550
conftest$ac_exeext conftest.$ac_ext
17551
LIBS=$ac_check_lib_save_LIBS
17553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17554
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17555
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
17556
for ac_header in pthread.h
17558
ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17559
if test "x$ac_cv_header_pthread_h" = x""yes; then :
17560
cat >>confdefs.h <<_ACEOF
17561
#define HAVE_PTHREAD_H 1
17575
if test "$have_pthread" = "false"; then
17576
as_fn_error $? "You need the POSIX Thread library (pthreads)" "$LINENO" 5
17580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_free in -lpcre" >&5
17581
$as_echo_n "checking for pcre_free in -lpcre... " >&6; }
17582
if test "${ac_cv_lib_pcre_pcre_free+set}" = set; then :
17583
$as_echo_n "(cached) " >&6
17585
ac_check_lib_save_LIBS=$LIBS
17586
LIBS="-lpcre $LIBS"
17587
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588
/* end confdefs.h. */
17590
/* Override any GCC internal prototype to avoid an error.
17591
Use char because int might match the return type of a GCC
17592
builtin and then its argument prototype would still apply. */
17600
return pcre_free ();
17605
if ac_fn_cxx_try_link "$LINENO"; then :
17606
ac_cv_lib_pcre_pcre_free=yes
17608
ac_cv_lib_pcre_pcre_free=no
17610
rm -f core conftest.err conftest.$ac_objext \
17611
conftest$ac_exeext conftest.$ac_ext
17612
LIBS=$ac_check_lib_save_LIBS
17614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_free" >&5
17615
$as_echo "$ac_cv_lib_pcre_pcre_free" >&6; }
17616
if test "x$ac_cv_lib_pcre_pcre_free" = x""yes; then :
17617
for ac_header in pcre.h
17619
ac_fn_cxx_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
17620
if test "x$ac_cv_header_pcre_h" = x""yes; then :
17621
cat >>confdefs.h <<_ACEOF
17622
#define HAVE_PCRE_H 1
17636
if test "$have_pcre" = "false"; then
17637
as_fn_error $? "You need the Perl-Compatible Regular Expressions library (pcre)" "$LINENO" 5
17648
# For the tools/, we need libdbus-c++ for the "build" architecture as well
17650
if test "$cross_compiling" = "yes"; then
17651
CROSS_COMPILING_TRUE=
17652
CROSS_COMPILING_FALSE='#'
17654
CROSS_COMPILING_TRUE='#'
17655
CROSS_COMPILING_FALSE=
17660
# Check whether --with-build-libdbus-cxx was given.
17661
if test "${with_build_libdbus_cxx+set}" = set; then :
17662
withval=$with_build_libdbus_cxx; BUILD_LIBDBUS_CXX_DIR=${withval}
17664
BUILD_LIBDBUS_CXX_DIR="\$(top_builddir)"
17670
CPPUNIT_MIN_VERSION=1.12
17673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPPUNIT" >&5
17674
$as_echo_n "checking for CPPUNIT... " >&6; }
17676
if test -n "$CPPUNIT_CFLAGS"; then
17677
pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
17678
elif test -n "$PKG_CONFIG"; then
17679
if test -n "$PKG_CONFIG" && \
17680
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= \${CPPUNIT_MIN_VERSION}\""; } >&5
17681
($PKG_CONFIG --exists --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}") 2>&5
17683
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17684
test $ac_status = 0; }; then
17685
pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>/dev/null`
17692
if test -n "$CPPUNIT_LIBS"; then
17693
pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
17694
elif test -n "$PKG_CONFIG"; then
17695
if test -n "$PKG_CONFIG" && \
17696
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit >= \${CPPUNIT_MIN_VERSION}\""; } >&5
17697
($PKG_CONFIG --exists --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}") 2>&5
17699
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17700
test $ac_status = 0; }; then
17701
pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>/dev/null`
17711
if test $pkg_failed = yes; then
17712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17713
$as_echo "no" >&6; }
17715
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17716
_pkg_short_errors_supported=yes
17718
_pkg_short_errors_supported=no
17720
if test $_pkg_short_errors_supported = yes; then
17721
CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>&1`
17723
CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cppunit >= ${CPPUNIT_MIN_VERSION}" 2>&1`
17725
# Put the nasty error message in config.log where it belongs
17726
echo "$CPPUNIT_PKG_ERRORS" >&5
17728
if test 0 = 1 ; then
17730
BUILD_TEST_FALSE='#'
17732
BUILD_TEST_TRUE='#'
17736
elif test $pkg_failed = untried; then
17737
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17738
$as_echo "no" >&6; }
17739
if test 0 = 1 ; then
17741
BUILD_TEST_FALSE='#'
17743
BUILD_TEST_TRUE='#'
17748
CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
17749
CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
17750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17751
$as_echo "yes" >&6; }
17752
if test 1 = 1 ; then
17754
BUILD_TEST_FALSE='#'
17756
BUILD_TEST_TRUE='#'
17763
# check for libgsm1 (doesn't use pkg-config)
17765
# Check whether --with-gsm was given.
17766
if test "${with_gsm+set}" = set; then :
17774
if test "x$with_gsm" != xno; then :
17775
ac_fn_cxx_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
17776
if test "x$ac_cv_header_gsm_gsm_h" = x""yes; then :
17779
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17780
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17781
as_fn_error $? "Unable to find the libgsm1 headers (you may need to install the dev package). You may use --without-gsm to compile without gsm codec support.
17782
See \`config.log' for more details" "$LINENO" 5 ; }
17786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_decode in -lgsm" >&5
17787
$as_echo_n "checking for gsm_decode in -lgsm... " >&6; }
17788
if test "${ac_cv_lib_gsm_gsm_decode+set}" = set; then :
17789
$as_echo_n "(cached) " >&6
17791
ac_check_lib_save_LIBS=$LIBS
17793
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794
/* end confdefs.h. */
17796
/* Override any GCC internal prototype to avoid an error.
17797
Use char because int might match the return type of a GCC
17798
builtin and then its argument prototype would still apply. */
17802
char gsm_decode ();
17806
return gsm_decode ();
17811
if ac_fn_cxx_try_link "$LINENO"; then :
17812
ac_cv_lib_gsm_gsm_decode=yes
17814
ac_cv_lib_gsm_gsm_decode=no
17816
rm -f core conftest.err conftest.$ac_objext \
17817
conftest$ac_exeext conftest.$ac_ext
17818
LIBS=$ac_check_lib_save_LIBS
17820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_decode" >&5
17821
$as_echo "$ac_cv_lib_gsm_gsm_decode" >&6; }
17822
if test "x$ac_cv_lib_gsm_gsm_decode" = x""yes; then :
17823
cat >>confdefs.h <<_ACEOF
17824
#define HAVE_LIBGSM 1
17830
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17831
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17832
as_fn_error $? "libgsm link test failed. You may use --without-gsm to compile without gsm codec support.
17833
See \`config.log' for more details" "$LINENO" 5 ; }
17842
$as_echo "#define HAVE_GSM test \"x\$with_gsm\" = \"xyes\"" >>confdefs.h
17844
if test "x$with_gsm" = "xyes" ; then
17846
BUILD_GSM_FALSE='#'
17854
# Check whether --with-speex was given.
17855
if test "${with_speex+set}" = set; then :
17856
withval=$with_speex;
17862
if test "x$with_speex" != xno; then :
17863
ac_fn_cxx_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
17864
if test "x$ac_cv_header_speex_speex_h" = x""yes; then :
17867
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17868
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17869
as_fn_error $? "Unable to find the libspeex headers (you may need to install the dev package). You may use --without-speex to compile without speex codec support.
17870
See \`config.log' for more details" "$LINENO" 5 ; }
17874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_decode_int in -lspeex" >&5
17875
$as_echo_n "checking for speex_decode_int in -lspeex... " >&6; }
17876
if test "${ac_cv_lib_speex_speex_decode_int+set}" = set; then :
17877
$as_echo_n "(cached) " >&6
17879
ac_check_lib_save_LIBS=$LIBS
17880
LIBS="-lspeex $LIBS"
17881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882
/* end confdefs.h. */
17884
/* Override any GCC internal prototype to avoid an error.
17885
Use char because int might match the return type of a GCC
17886
builtin and then its argument prototype would still apply. */
17890
char speex_decode_int ();
17894
return speex_decode_int ();
17899
if ac_fn_cxx_try_link "$LINENO"; then :
17900
ac_cv_lib_speex_speex_decode_int=yes
17902
ac_cv_lib_speex_speex_decode_int=no
17904
rm -f core conftest.err conftest.$ac_objext \
17905
conftest$ac_exeext conftest.$ac_ext
17906
LIBS=$ac_check_lib_save_LIBS
17908
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speex_speex_decode_int" >&5
17909
$as_echo "$ac_cv_lib_speex_speex_decode_int" >&6; }
17910
if test "x$ac_cv_lib_speex_speex_decode_int" = x""yes; then :
17911
cat >>confdefs.h <<_ACEOF
17912
#define HAVE_LIBSPEEX 1
17915
LIBS="-lspeex $LIBS"
17918
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17919
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17920
as_fn_error $? "libspeex link test failed. You may use --without-speex to compile without speex codec support.
17921
See \`config.log' for more details" "$LINENO" 5 ; }
17928
$as_echo "#define HAVE_SPEEX test \"x\$with_speex\" = \"xyes\"" >>confdefs.h
17930
if test "x$with_speex" = "xyes" ; then
17932
BUILD_SPEEX_FALSE='#'
17934
BUILD_SPEEX_TRUE='#'
17939
ac_fn_cxx_check_header_mongrel "$LINENO" "speex/speex_preprocess.h" "ac_cv_header_speex_speex_preprocess_h" "$ac_includes_default"
17940
if test "x$ac_cv_header_speex_speex_preprocess_h" = x""yes; then :
17943
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17944
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17945
as_fn_error $? "Unable to find the libspeexdsp headers (you may need to install the libspeexdsp-dev package) used for Noise Suppression and Automatic Gain Control.
17946
See \`config.log' for more details" "$LINENO" 5 ; }
17950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speex_preprocess_run in -lspeexdsp" >&5
17951
$as_echo_n "checking for speex_preprocess_run in -lspeexdsp... " >&6; }
17952
if test "${ac_cv_lib_speexdsp_speex_preprocess_run+set}" = set; then :
17953
$as_echo_n "(cached) " >&6
17955
ac_check_lib_save_LIBS=$LIBS
17956
LIBS="-lspeexdsp $LIBS"
17957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958
/* end confdefs.h. */
17960
/* Override any GCC internal prototype to avoid an error.
17961
Use char because int might match the return type of a GCC
17962
builtin and then its argument prototype would still apply. */
17966
char speex_preprocess_run ();
17970
return speex_preprocess_run ();
17975
if ac_fn_cxx_try_link "$LINENO"; then :
17976
ac_cv_lib_speexdsp_speex_preprocess_run=yes
17978
ac_cv_lib_speexdsp_speex_preprocess_run=no
17980
rm -f core conftest.err conftest.$ac_objext \
17981
conftest$ac_exeext conftest.$ac_ext
17982
LIBS=$ac_check_lib_save_LIBS
17984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speexdsp_speex_preprocess_run" >&5
17985
$as_echo "$ac_cv_lib_speexdsp_speex_preprocess_run" >&6; }
17986
if test "x$ac_cv_lib_speexdsp_speex_preprocess_run" = x""yes; then :
17987
cat >>confdefs.h <<_ACEOF
17988
#define HAVE_LIBSPEEXDSP 1
17991
LIBS="-lspeexdsp $LIBS"
17995
if test "x$HAVE_SPEEXDSP" = xyes; then
17996
ENABLE_SPEEXDSP_TRUE=
17997
ENABLE_SPEEXDSP_FALSE='#'
17999
ENABLE_SPEEXDSP_TRUE='#'
18000
ENABLE_SPEEXDSP_FALSE=
18005
# check for libcelt
18007
# Check whether --with-celt was given.
18008
if test "${with_celt+set}" = set; then :
18009
withval=$with_celt;
18015
if test "x$with_celt" != xno; then :
18016
CELT_CFLAGS C compiler flags for CELT, overriding pkg-config
18017
CELT_LIBS linker flags for CELT, overriding pkg-config
18020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CELT" >&5
18021
$as_echo_n "checking for CELT... " >&6; }
18023
if test -n "$CELT_CFLAGS"; then
18024
pkg_cv_CELT_CFLAGS="$CELT_CFLAGS"
18025
elif test -n "$PKG_CONFIG"; then
18026
if test -n "$PKG_CONFIG" && \
18027
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.9.1\""; } >&5
18028
($PKG_CONFIG --exists --print-errors "celt >= 0.9.1") 2>&5
18030
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18031
test $ac_status = 0; }; then
18032
pkg_cv_CELT_CFLAGS=`$PKG_CONFIG --cflags "celt >= 0.9.1" 2>/dev/null`
18039
if test -n "$CELT_LIBS"; then
18040
pkg_cv_CELT_LIBS="$CELT_LIBS"
18041
elif test -n "$PKG_CONFIG"; then
18042
if test -n "$PKG_CONFIG" && \
18043
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.9.1\""; } >&5
18044
($PKG_CONFIG --exists --print-errors "celt >= 0.9.1") 2>&5
18046
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18047
test $ac_status = 0; }; then
18048
pkg_cv_CELT_LIBS=`$PKG_CONFIG --libs "celt >= 0.9.1" 2>/dev/null`
18058
if test $pkg_failed = yes; then
18059
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18060
$as_echo "no" >&6; }
18062
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18063
_pkg_short_errors_supported=yes
18065
_pkg_short_errors_supported=no
18067
if test $_pkg_short_errors_supported = yes; then
18068
CELT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "celt >= 0.9.1" 2>&1`
18070
CELT_PKG_ERRORS=`$PKG_CONFIG --print-errors "celt >= 0.9.1" 2>&1`
18072
# Put the nasty error message in config.log where it belongs
18073
echo "$CELT_PKG_ERRORS" >&5
18078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CELT" >&5
18079
$as_echo_n "checking for CELT... " >&6; }
18081
if test -n "$CELT_CFLAGS"; then
18082
pkg_cv_CELT_CFLAGS="$CELT_CFLAGS"
18083
elif test -n "$PKG_CONFIG"; then
18084
if test -n "$PKG_CONFIG" && \
18085
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.7.1\""; } >&5
18086
($PKG_CONFIG --exists --print-errors "celt >= 0.7.1") 2>&5
18088
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18089
test $ac_status = 0; }; then
18090
pkg_cv_CELT_CFLAGS=`$PKG_CONFIG --cflags "celt >= 0.7.1" 2>/dev/null`
18097
if test -n "$CELT_LIBS"; then
18098
pkg_cv_CELT_LIBS="$CELT_LIBS"
18099
elif test -n "$PKG_CONFIG"; then
18100
if test -n "$PKG_CONFIG" && \
18101
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.7.1\""; } >&5
18102
($PKG_CONFIG --exists --print-errors "celt >= 0.7.1") 2>&5
18104
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105
test $ac_status = 0; }; then
18106
pkg_cv_CELT_LIBS=`$PKG_CONFIG --libs "celt >= 0.7.1" 2>/dev/null`
18116
if test $pkg_failed = yes; then
18117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18118
$as_echo "no" >&6; }
18120
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18121
_pkg_short_errors_supported=yes
18123
_pkg_short_errors_supported=no
18125
if test $_pkg_short_errors_supported = yes; then
18126
CELT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "celt >= 0.7.1" 2>&1`
18128
CELT_PKG_ERRORS=`$PKG_CONFIG --print-errors "celt >= 0.7.1" 2>&1`
18130
# Put the nasty error message in config.log where it belongs
18131
echo "$CELT_PKG_ERRORS" >&5
18133
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18134
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18135
as_fn_error $? "libcelt link test failed. You may use --without-celt to compile without celt codec support.
18136
See \`config.log' for more details" "$LINENO" 5 ; }
18137
elif test $pkg_failed = untried; then
18138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139
$as_echo "no" >&6; }
18140
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18141
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18142
as_fn_error $? "libcelt link test failed. You may use --without-celt to compile without celt codec support.
18143
See \`config.log' for more details" "$LINENO" 5 ; }
18145
CELT_CFLAGS=$pkg_cv_CELT_CFLAGS
18146
CELT_LIBS=$pkg_cv_CELT_LIBS
18147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18148
$as_echo "yes" >&6; }
18149
with_celt_71=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: Using celt 0.7.1" >&5
18150
$as_echo "$as_me: Using celt 0.7.1" >&6;};
18153
elif test $pkg_failed = untried; then
18154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18155
$as_echo "no" >&6; }
18159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CELT" >&5
18160
$as_echo_n "checking for CELT... " >&6; }
18162
if test -n "$CELT_CFLAGS"; then
18163
pkg_cv_CELT_CFLAGS="$CELT_CFLAGS"
18164
elif test -n "$PKG_CONFIG"; then
18165
if test -n "$PKG_CONFIG" && \
18166
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.7.1\""; } >&5
18167
($PKG_CONFIG --exists --print-errors "celt >= 0.7.1") 2>&5
18169
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170
test $ac_status = 0; }; then
18171
pkg_cv_CELT_CFLAGS=`$PKG_CONFIG --cflags "celt >= 0.7.1" 2>/dev/null`
18178
if test -n "$CELT_LIBS"; then
18179
pkg_cv_CELT_LIBS="$CELT_LIBS"
18180
elif test -n "$PKG_CONFIG"; then
18181
if test -n "$PKG_CONFIG" && \
18182
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"celt >= 0.7.1\""; } >&5
18183
($PKG_CONFIG --exists --print-errors "celt >= 0.7.1") 2>&5
18185
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18186
test $ac_status = 0; }; then
18187
pkg_cv_CELT_LIBS=`$PKG_CONFIG --libs "celt >= 0.7.1" 2>/dev/null`
18197
if test $pkg_failed = yes; then
18198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18199
$as_echo "no" >&6; }
18201
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18202
_pkg_short_errors_supported=yes
18204
_pkg_short_errors_supported=no
18206
if test $_pkg_short_errors_supported = yes; then
18207
CELT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "celt >= 0.7.1" 2>&1`
18209
CELT_PKG_ERRORS=`$PKG_CONFIG --print-errors "celt >= 0.7.1" 2>&1`
18211
# Put the nasty error message in config.log where it belongs
18212
echo "$CELT_PKG_ERRORS" >&5
18214
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18215
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18216
as_fn_error $? "libcelt link test failed. You may use --without-celt to compile without celt codec support.
18217
See \`config.log' for more details" "$LINENO" 5 ; }
18218
elif test $pkg_failed = untried; then
18219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220
$as_echo "no" >&6; }
18221
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18222
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18223
as_fn_error $? "libcelt link test failed. You may use --without-celt to compile without celt codec support.
18224
See \`config.log' for more details" "$LINENO" 5 ; }
18226
CELT_CFLAGS=$pkg_cv_CELT_CFLAGS
18227
CELT_LIBS=$pkg_cv_CELT_LIBS
18228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18229
$as_echo "yes" >&6; }
18230
with_celt_71=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: Using celt 0.7.1" >&5
18231
$as_echo "$as_me: Using celt 0.7.1" >&6;};
18235
CELT_CFLAGS=$pkg_cv_CELT_CFLAGS
18236
CELT_LIBS=$pkg_cv_CELT_LIBS
18237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18238
$as_echo "yes" >&6; }
18240
with_celt_91=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: Using celt 0.9.1" >&5
18241
$as_echo "$as_me: Using celt 0.9.1" >&6;};
18247
# AC_SUBST(BUILD_CELT)
18248
# AM_CONDITIONAL(BUILD_CELT, test "x$with_celt" = "xyes" )
18249
if test "x$with_celt_91" = "xyes" ; then
18250
BUILD_CELT_91_TRUE=
18251
BUILD_CELT_91_FALSE='#'
18253
BUILD_CELT_91_TRUE='#'
18254
BUILD_CELT_91_FALSE=
18257
if test "x$with_celt_71" = "xyes" ; then
18258
BUILD_CELT_71_TRUE=
18259
BUILD_CELT_71_FALSE='#'
18261
BUILD_CELT_71_TRUE='#'
18262
BUILD_CELT_71_FALSE=
18268
# Check whether --with-iax2 was given.
18269
if test "${with_iax2+set}" = set; then :
18270
withval=$with_iax2;
18277
$as_echo "#define HAVE_IAX test \"x\$with_iax2\" = \"xyes\"" >>confdefs.h
18279
if test "x$with_iax2" = "xyes" ; then
18289
# Check whether --with-networkmanager was given.
18290
if test "${with_networkmanager+set}" = set; then :
18291
withval=$with_networkmanager;
18293
with_networkmanager=yes
18297
if test "x$with_networkmanager" = "xyes" ; then
18298
USE_NETWORKMANAGER_TRUE=
18299
USE_NETWORKMANAGER_FALSE='#'
18301
USE_NETWORKMANAGER_TRUE='#'
18302
USE_NETWORKMANAGER_FALSE=
18306
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
18307
# ----------------------------------------------------------------------------
18309
# Acutally perform the doxygen check
18311
# Check whether --enable-doxygen was given.
18312
if test "${enable_doxygen+set}" = set; then :
18313
enableval=$enable_doxygen;
18316
# Check whether --enable-dot was given.
18317
if test "${enable_dot+set}" = set; then :
18318
enableval=$enable_dot;
18321
# Check whether --enable-html-docs was given.
18322
if test "${enable_html_docs+set}" = set; then :
18323
enableval=$enable_html_docs;
18325
enable_html_docs=yes
18328
# Check whether --enable-latex-docs was given.
18329
if test "${enable_latex_docs+set}" = set; then :
18330
enableval=$enable_latex_docs;
18332
enable_latex_docs=no
18335
if test "x$enable_doxygen" = xno; then
18338
# Extract the first word of "doxygen", so it can be a program name with args.
18339
set dummy doxygen; ac_word=$2
18340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18341
$as_echo_n "checking for $ac_word... " >&6; }
18342
if test "${ac_cv_path_DOXYGEN+set}" = set; then :
18343
$as_echo_n "(cached) " >&6
18347
ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18351
for as_dir in $PATH
18354
test -z "$as_dir" && as_dir=.
18355
for ac_exec_ext in '' $ac_executable_extensions; do
18356
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18357
ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18358
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18368
DOXYGEN=$ac_cv_path_DOXYGEN
18369
if test -n "$DOXYGEN"; then
18370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18371
$as_echo "$DOXYGEN" >&6; }
18373
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18374
$as_echo "no" >&6; }
18378
if test x$DOXYGEN = x; then
18379
if test "x$enable_doxygen" = xyes; then
18380
as_fn_error $? "could not find doxygen" "$LINENO" 5
18385
# Extract the first word of "dot", so it can be a program name with args.
18386
set dummy dot; ac_word=$2
18387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18388
$as_echo_n "checking for $ac_word... " >&6; }
18389
if test "${ac_cv_path_DOT+set}" = set; then :
18390
$as_echo_n "(cached) " >&6
18394
ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398
for as_dir in $PATH
18401
test -z "$as_dir" && as_dir=.
18402
for ac_exec_ext in '' $ac_executable_extensions; do
18403
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18404
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18405
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18415
DOT=$ac_cv_path_DOT
18416
if test -n "$DOT"; then
18417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18418
$as_echo "$DOT" >&6; }
18420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18421
$as_echo "no" >&6; }
18427
if test x$enable_doc = xyes; then
18436
if test x$DOT = x; then
18437
if test "x$enable_dot" = xyes; then
18438
as_fn_error $? "could not find dot" "$LINENO" 5
18444
if test x$enable_doc = xtrue; then
18445
ENABLE_DOXYGEN_TRUE=
18446
ENABLE_DOXYGEN_FALSE='#'
18448
ENABLE_DOXYGEN_TRUE='#'
18449
ENABLE_DOXYGEN_FALSE=
18457
sflphone_datadir=$datadir/sflphone
18460
DBUS_SERVICES_DIR="$datadir/dbus-1/services"
18463
cat >>confdefs.h <<_ACEOF
18464
#define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
18471
cat >confcache <<\_ACEOF
18472
# This file is a shell script that caches the results of configure
18473
# tests run on this system so they can be shared between configure
18474
# scripts and configure runs, see configure's option --config-cache.
18475
# It is not useful on other systems. If it contains results you don't
18476
# want to keep, you may remove or edit it.
18478
# config.status only pays attention to the cache file if you give it
18479
# the --recheck option to rerun configure.
18481
# `ac_cv_env_foo' variables (set or unset) will be overridden when
18482
# loading this file, other *unset* `ac_cv_foo' will be assigned the
18483
# following values.
18487
# The following way of writing the cache mishandles newlines in values,
18488
# but we know of no workaround that is simple, portable, and efficient.
18489
# So, we kill variables containing newlines.
18490
# Ultrix sh set writes to stderr and can't be redirected directly,
18491
# and sets the high bit in the cache file unless we assign to the vars.
18493
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18494
eval ac_val=\$$ac_var
18498
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18499
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18502
_ | IFS | as_nl) ;; #(
18503
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18504
*) { eval $ac_var=; unset $ac_var;} ;;
18510
case $as_nl`(ac_space=' '; set) 2>&1` in #(
18511
*${as_nl}ac_space=\ *)
18512
# `set' does not quote correctly, so add quotes: double-quote
18513
# substitution turns \\\\ into \\, and sed turns \\ into \.
18516
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18519
# `set' quotes correctly as required by POSIX, so do not add quotes.
18520
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18529
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18531
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18533
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18534
if test -w "$cache_file"; then
18535
test "x$cache_file" != "x/dev/null" &&
18536
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18537
$as_echo "$as_me: updating cache $cache_file" >&6;}
18538
cat confcache >$cache_file
18540
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18541
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18546
test "x$prefix" = xNONE && prefix=$ac_default_prefix
18547
# Let make expand exec_prefix.
18548
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18550
DEFS=-DHAVE_CONFIG_H
18555
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18556
# 1. Remove the extension, and $U if already installed.
18557
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18558
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18559
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18560
# will be set to the directory where LIBOBJS objects are built.
18561
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18562
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18564
LIBOBJS=$ac_libobjs
18566
LTLIBOBJS=$ac_ltlibobjs
18569
if test -n "$EXEEXT"; then
18571
am__EXEEXT_FALSE='#'
18573
am__EXEEXT_TRUE='#'
18577
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18578
as_fn_error $? "conditional \"AMDEP\" was never defined.
18579
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18581
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18582
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18583
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18585
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18586
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18587
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18589
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18590
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18591
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18593
if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
18594
as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
18595
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18597
if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then
18598
as_fn_error $? "conditional \"BUILD_TEST\" was never defined.
18599
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18601
if test -z "${BUILD_TEST_TRUE}" && test -z "${BUILD_TEST_FALSE}"; then
18602
as_fn_error $? "conditional \"BUILD_TEST\" was never defined.
18603
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18605
if test -z "${BUILD_GSM_TRUE}" && test -z "${BUILD_GSM_FALSE}"; then
18606
as_fn_error $? "conditional \"BUILD_GSM\" was never defined.
18607
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18609
if test -z "${BUILD_SPEEX_TRUE}" && test -z "${BUILD_SPEEX_FALSE}"; then
18610
as_fn_error $? "conditional \"BUILD_SPEEX\" was never defined.
18611
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18613
if test -z "${ENABLE_SPEEXDSP_TRUE}" && test -z "${ENABLE_SPEEXDSP_FALSE}"; then
18614
as_fn_error $? "conditional \"ENABLE_SPEEXDSP\" was never defined.
18615
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18617
if test -z "${BUILD_CELT_91_TRUE}" && test -z "${BUILD_CELT_91_FALSE}"; then
18618
as_fn_error $? "conditional \"BUILD_CELT_91\" was never defined.
18619
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18621
if test -z "${BUILD_CELT_71_TRUE}" && test -z "${BUILD_CELT_71_FALSE}"; then
18622
as_fn_error $? "conditional \"BUILD_CELT_71\" was never defined.
18623
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18625
if test -z "${USE_IAX_TRUE}" && test -z "${USE_IAX_FALSE}"; then
18626
as_fn_error $? "conditional \"USE_IAX\" was never defined.
18627
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18629
if test -z "${USE_NETWORKMANAGER_TRUE}" && test -z "${USE_NETWORKMANAGER_FALSE}"; then
18630
as_fn_error $? "conditional \"USE_NETWORKMANAGER\" was never defined.
18631
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18633
if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
18634
as_fn_error $? "conditional \"DOC\" was never defined.
18635
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18637
if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
18638
as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
18639
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18642
: ${CONFIG_STATUS=./config.status}
18644
ac_clean_files_save=$ac_clean_files
18645
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18646
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18647
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18649
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18651
# Generated by $as_me.
18652
# Run this file to recreate the current configuration.
18653
# Compiler output produced by configure, useful for debugging
18654
# configure, is in config.log if it exists.
18657
ac_cs_recheck=false
18660
SHELL=\${CONFIG_SHELL-$SHELL}
18663
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18664
## -------------------- ##
18665
## M4sh Initialization. ##
18666
## -------------------- ##
18668
# Be more Bourne compatible
18669
DUALCASE=1; export DUALCASE # for MKS sh
18670
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18673
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18674
# is contrary to our usage. Disable this feature.
18675
alias -g '${1+"$@"}'='"$@"'
18676
setopt NO_GLOB_SUBST
18678
case `(set -o) 2>/dev/null` in #(
18690
# Printing a long string crashes Solaris 7 /usr/bin/printf.
18691
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18692
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18693
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18694
# Prefer a ksh shell builtin over an external printf program on Solaris,
18695
# but without wasting forks for bash or zsh.
18696
if test -z "$BASH_VERSION$ZSH_VERSION" \
18697
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18698
as_echo='print -r --'
18699
as_echo_n='print -rn --'
18700
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18701
as_echo='printf %s\n'
18702
as_echo_n='printf %s'
18704
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18705
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18706
as_echo_n='/usr/ucb/echo -n'
18708
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18709
as_echo_n_body='eval
18713
expr "X$arg" : "X\\(.*\\)$as_nl";
18714
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18716
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18718
export as_echo_n_body
18719
as_echo_n='sh -c $as_echo_n_body as_echo'
18721
export as_echo_body
18722
as_echo='sh -c $as_echo_body as_echo'
18725
# The user is always right.
18726
if test "${PATH_SEPARATOR+set}" != set; then
18728
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18729
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18736
# We need space, tab and new line, in precisely that order. Quoting is
18737
# there to prevent editors from complaining about space-tab.
18738
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18739
# splitting by setting IFS to empty value.)
18742
# Find who we are. Look in the path if we contain no directory separator.
18744
*[\\/]* ) as_myself=$0 ;;
18745
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746
for as_dir in $PATH
18749
test -z "$as_dir" && as_dir=.
18750
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18756
# We did not find ourselves, most probably we were run as `sh COMMAND'
18757
# in which case we are not to be found in the path.
18758
if test "x$as_myself" = x; then
18761
if test ! -f "$as_myself"; then
18762
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18766
# Unset variables that we do not need and which cause bugs (e.g. in
18767
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18768
# suppresses any "Segmentation fault" message there. '((' could
18769
# trigger a bug in pdksh 5.2.14.
18770
for as_var in BASH_ENV ENV MAIL MAILPATH
18771
do eval test x\${$as_var+set} = xset \
18772
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18785
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18788
# as_fn_error STATUS ERROR [LINENO LOG_FD]
18789
# ----------------------------------------
18790
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18791
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18792
# script with STATUS, using 1 if that was 0.
18795
as_status=$1; test $as_status -eq 0 && as_status=1
18797
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18798
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18800
$as_echo "$as_me: error: $2" >&2
18801
as_fn_exit $as_status
18805
# as_fn_set_status STATUS
18806
# -----------------------
18807
# Set $? to STATUS, without forking.
18808
as_fn_set_status ()
18811
} # as_fn_set_status
18813
# as_fn_exit STATUS
18814
# -----------------
18815
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18819
as_fn_set_status $1
18825
# Portably unset VAR.
18828
{ eval $1=; unset $1;}
18830
as_unset=as_fn_unset
18831
# as_fn_append VAR VALUE
18832
# ----------------------
18833
# Append the text in VALUE to the end of the definition contained in VAR. Take
18834
# advantage of any shell optimizations that allow amortized linear growth over
18835
# repeated appends, instead of the typical quadratic growth present in naive
18837
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18838
eval 'as_fn_append ()
18849
# as_fn_arith ARG...
18850
# ------------------
18851
# Perform arithmetic evaluation on the ARGs, and store the result in the
18852
# global $as_val. Take advantage of shells that can avoid forks. The arguments
18853
# must be portable across $(()) and expr.
18854
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18855
eval 'as_fn_arith ()
18862
as_val=`expr "$@" || test $? -eq 1`
18867
if expr a : '\(a\)' >/dev/null 2>&1 &&
18868
test "X`expr 00001 : '.*\(...\)'`" = X001; then
18874
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18875
as_basename=basename
18880
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18886
as_me=`$as_basename -- "$0" ||
18887
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18888
X"$0" : 'X\(//\)$' \| \
18889
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18891
sed '/^.*\/\([^/][^/]*\)\/*$/{
18905
# Avoid depending upon Character Ranges.
18906
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18907
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18908
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18909
as_cr_digits='0123456789'
18910
as_cr_alnum=$as_cr_Letters$as_cr_digits
18912
ECHO_C= ECHO_N= ECHO_T=
18913
case `echo -n x` in #(((((
18915
case `echo 'xy\c'` in
18916
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
18918
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18925
rm -f conf$$ conf$$.exe conf$$.file
18926
if test -d conf$$.dir; then
18927
rm -f conf$$.dir/conf$$.file
18930
mkdir conf$$.dir 2>/dev/null
18932
if (echo >conf$$.file) 2>/dev/null; then
18933
if ln -s conf$$.file conf$$ 2>/dev/null; then
18935
# ... but there are two gotchas:
18936
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18937
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18938
# In both cases, we have to default to `cp -p'.
18939
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18941
elif ln conf$$.file conf$$ 2>/dev/null; then
18949
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18950
rmdir conf$$.dir 2>/dev/null
18955
# Create "$as_dir" as a directory, including parents if necessary.
18960
-*) as_dir=./$as_dir;;
18962
test -d "$as_dir" || eval $as_mkdir_p || {
18966
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18967
*) as_qdir=$as_dir;;
18969
as_dirs="'$as_qdir' $as_dirs"
18970
as_dir=`$as_dirname -- "$as_dir" ||
18971
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18972
X"$as_dir" : 'X\(//\)[^/]' \| \
18973
X"$as_dir" : 'X\(//\)$' \| \
18974
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18975
$as_echo X"$as_dir" |
18976
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18980
/^X\(\/\/\)[^/].*/{
18993
test -d "$as_dir" && break
18995
test -z "$as_dirs" || eval "mkdir $as_dirs"
18996
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19000
if mkdir -p . 2>/dev/null; then
19001
as_mkdir_p='mkdir -p "$as_dir"'
19003
test -d ./-p && rmdir ./-p
19007
if test -x / >/dev/null 2>&1; then
19008
as_test_x='test -x'
19010
if ls -dL / >/dev/null 2>&1; then
19017
if test -d "$1"; then
19023
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19024
???[sx]*):;;*)false;;esac;fi
19028
as_executable_p=$as_test_x
19030
# Sed expression to map a string onto a valid CPP name.
19031
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19033
# Sed expression to map a string onto a valid variable name.
19034
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19038
## ----------------------------------- ##
19039
## Main body of $CONFIG_STATUS script. ##
19040
## ----------------------------------- ##
19042
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19044
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19045
# Save the log message, to keep $0 and so on meaningful, and to
19046
# report actual input values of CONFIG_FILES etc. instead of their
19047
# values after options handling.
19049
This file was extended by sflphone $as_me 0.9.13, which was
19050
generated by GNU Autoconf 2.67. Invocation command line was
19052
CONFIG_FILES = $CONFIG_FILES
19053
CONFIG_HEADERS = $CONFIG_HEADERS
19054
CONFIG_LINKS = $CONFIG_LINKS
19055
CONFIG_COMMANDS = $CONFIG_COMMANDS
19058
on `(hostname || uname -n) 2>/dev/null | sed 1q`
19063
case $ac_config_files in *"
19064
"*) set x $ac_config_files; shift; ac_config_files=$*;;
19067
case $ac_config_headers in *"
19068
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19072
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19073
# Files that config.status was made for.
19074
config_files="$ac_config_files"
19075
config_headers="$ac_config_headers"
19076
config_commands="$ac_config_commands"
19080
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19082
\`$as_me' instantiates files and other configuration actions
19083
from templates according to the current configuration. Unless the files
19084
and actions are specified as TAGs, all are instantiated by default.
19086
Usage: $0 [OPTION]... [TAG]...
19088
-h, --help print this help, then exit
19089
-V, --version print version number and configuration settings, then exit
19090
--config print configuration, then exit
19091
-q, --quiet, --silent
19092
do not print progress messages
19093
-d, --debug don't remove temporary files
19094
--recheck update $as_me by reconfiguring in the same conditions
19095
--file=FILE[:TEMPLATE]
19096
instantiate the configuration file FILE
19097
--header=FILE[:TEMPLATE]
19098
instantiate the configuration header FILE
19100
Configuration files:
19103
Configuration headers:
19106
Configuration commands:
19109
Report bugs to <sflphoneteam@savoirfairelinux.com>."
19112
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19113
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19115
sflphone config.status 0.9.13
19116
configured by $0, generated by GNU Autoconf 2.67,
19117
with options \\"\$ac_cs_config\\"
19119
Copyright (C) 2010 Free Software Foundation, Inc.
19120
This config.status script is free software; the Free Software Foundation
19121
gives unlimited permission to copy, distribute and modify it."
19128
test -n "\$AWK" || AWK=awk
19131
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19132
# The default lists apply if the user does not specify any file.
19138
ac_option=`expr "X$1" : 'X\([^=]*\)='`
19139
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19143
ac_option=`expr "X$1" : 'X\([^=]*\)='`
19155
# Handling of the options.
19156
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19158
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19159
$as_echo "$ac_cs_version"; exit ;;
19160
--config | --confi | --conf | --con | --co | --c )
19161
$as_echo "$ac_cs_config"; exit ;;
19162
--debug | --debu | --deb | --de | --d | -d )
19164
--file | --fil | --fi | --f )
19167
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19168
'') as_fn_error $? "missing file argument" ;;
19170
as_fn_append CONFIG_FILES " '$ac_optarg'"
19171
ac_need_defaults=false;;
19172
--header | --heade | --head | --hea )
19175
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19177
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19178
ac_need_defaults=false;;
19180
# Conflict between --help and --header
19181
as_fn_error $? "ambiguous option: \`$1'
19182
Try \`$0 --help' for more information.";;
19183
--help | --hel | -h )
19184
$as_echo "$ac_cs_usage"; exit ;;
19185
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
19186
| -silent | --silent | --silen | --sile | --sil | --si | --s)
19189
# This is an error.
19190
-*) as_fn_error $? "unrecognized option: \`$1'
19191
Try \`$0 --help' for more information." ;;
19193
*) as_fn_append ac_config_targets " $1"
19194
ac_need_defaults=false ;;
19200
ac_configure_extra_args=
19202
if $ac_cs_silent; then
19204
ac_configure_extra_args="$ac_configure_extra_args --silent"
19208
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19209
if \$ac_cs_recheck; then
19210
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19212
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19213
CONFIG_SHELL='$SHELL'
19214
export CONFIG_SHELL
19219
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19223
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19224
## Running $as_me. ##
19230
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19234
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19237
# The HP-UX ksh and POSIX shell print the target directory to stdout
19238
# if CDPATH is set.
19239
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19241
sed_quote_subst='$sed_quote_subst'
19242
double_quote_subst='$double_quote_subst'
19243
delay_variable_subst='$delay_variable_subst'
19244
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19245
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19246
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19247
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19248
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19249
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19250
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19251
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19252
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19253
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19254
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19255
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19256
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19257
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19258
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19259
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19260
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19261
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19262
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19263
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19264
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19265
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19266
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19267
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19268
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19269
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19270
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19271
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19272
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19273
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19274
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19275
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19276
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19277
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19278
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19279
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19280
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19281
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19282
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19283
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19284
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19285
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19286
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19287
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19288
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"`'
19289
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"`'
19290
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19291
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19292
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19293
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19294
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19295
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19296
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19297
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19298
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19299
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19300
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19301
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19302
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19303
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19304
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19305
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19306
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19307
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19308
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19309
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19310
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19311
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19312
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19313
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19314
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19315
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19316
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19317
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19318
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19319
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19320
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19321
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19322
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19323
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19324
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19325
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19326
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19327
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19328
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19329
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19330
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19331
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19332
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19333
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19334
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19335
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19336
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19337
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19338
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19339
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19340
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19341
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19342
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19343
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19344
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19345
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19346
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19347
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19348
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19349
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19350
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19351
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19352
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19353
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19354
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19355
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19356
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19357
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19358
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19359
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19360
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19361
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19362
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
19363
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19364
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
19365
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
19366
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
19367
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
19368
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19369
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19370
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19371
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19372
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19373
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19374
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19375
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19376
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19377
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19378
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19379
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19380
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19381
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19382
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19383
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19384
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19385
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19386
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19387
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19388
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19389
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19390
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19391
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19392
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19393
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19394
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19395
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19396
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19397
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19398
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19399
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19400
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19401
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19402
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19403
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19404
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19405
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19406
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19407
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19408
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19409
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19410
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19411
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19412
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19413
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19414
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
19417
LTCFLAGS='$LTCFLAGS'
19418
compiler='$compiler_DEFAULT'
19420
# Quote evaled strings.
19432
deplibs_check_method \
19441
lt_cv_sys_global_symbol_pipe \
19442
lt_cv_sys_global_symbol_to_cdecl \
19443
lt_cv_sys_global_symbol_to_c_name_address \
19444
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19447
lt_prog_compiler_no_builtin_flag \
19448
lt_prog_compiler_wl \
19449
lt_prog_compiler_pic \
19450
lt_prog_compiler_static \
19451
lt_cv_prog_compiler_c_o \
19459
export_dynamic_flag_spec \
19460
whole_archive_flag_spec \
19461
compiler_needs_object \
19463
allow_undefined_flag \
19464
no_undefined_flag \
19465
hardcode_libdir_flag_spec \
19466
hardcode_libdir_flag_spec_ld \
19467
hardcode_libdir_separator \
19472
variables_saved_for_relink \
19474
library_names_spec \
19479
compiler_lib_search_dirs \
19484
compiler_lib_search_path \
19487
lt_prog_compiler_no_builtin_flag_CXX \
19488
lt_prog_compiler_wl_CXX \
19489
lt_prog_compiler_pic_CXX \
19490
lt_prog_compiler_static_CXX \
19491
lt_cv_prog_compiler_c_o_CXX \
19492
export_dynamic_flag_spec_CXX \
19493
whole_archive_flag_spec_CXX \
19494
compiler_needs_object_CXX \
19496
allow_undefined_flag_CXX \
19497
no_undefined_flag_CXX \
19498
hardcode_libdir_flag_spec_CXX \
19499
hardcode_libdir_flag_spec_ld_CXX \
19500
hardcode_libdir_separator_CXX \
19501
fix_srcfile_path_CXX \
19502
exclude_expsyms_CXX \
19503
include_expsyms_CXX \
19504
file_list_spec_CXX \
19505
compiler_lib_search_dirs_CXX \
19506
predep_objects_CXX \
19507
postdep_objects_CXX \
19510
compiler_lib_search_path_CXX; do
19511
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19512
*[\\\\\\\`\\"\\\$]*)
19513
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19516
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19521
# Double-quote double-evaled strings.
19522
for var in reload_cmds \
19523
old_postinstall_cmds \
19524
old_postuninstall_cmds \
19526
extract_expsyms_cmds \
19527
old_archive_from_new_cmds \
19528
old_archive_from_expsyms_cmds \
19530
archive_expsym_cmds \
19532
module_expsym_cmds \
19533
export_symbols_cmds \
19536
postuninstall_cmds \
19538
sys_lib_search_path_spec \
19539
sys_lib_dlsearch_path_spec \
19540
old_archive_cmds_CXX \
19541
old_archive_from_new_cmds_CXX \
19542
old_archive_from_expsyms_cmds_CXX \
19544
archive_expsym_cmds_CXX \
19546
module_expsym_cmds_CXX \
19547
export_symbols_cmds_CXX \
19548
prelink_cmds_CXX; do
19549
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19550
*[\\\\\\\`\\"\\\$]*)
19551
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19554
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19559
# Fix-up fallback echo if it was mangled by the above quoting rules.
19561
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19565
ac_aux_dir='$ac_aux_dir'
19566
xsi_shell='$xsi_shell'
19567
lt_shell_append='$lt_shell_append'
19569
# See if we are running on zsh, and set the options which allow our
19570
# commands through without removal of \ escapes INIT.
19571
if test -n "\${ZSH_VERSION+set}" ; then
19572
setopt NO_GLOB_SUBST
19578
TIMESTAMP='$TIMESTAMP'
19589
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19591
# Handling of arguments.
19592
for ac_config_target in $ac_config_targets
19594
case $ac_config_target in
19595
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19596
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19597
"libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
19598
"libs/utilspp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/utilspp/Makefile" ;;
19599
"libs/utilspp/functor/Makefile") CONFIG_FILES="$CONFIG_FILES libs/utilspp/functor/Makefile" ;;
19600
"libs/utilspp/singleton/Makefile") CONFIG_FILES="$CONFIG_FILES libs/utilspp/singleton/Makefile" ;;
19601
"libs/dbus-c++/Makefile") CONFIG_FILES="$CONFIG_FILES libs/dbus-c++/Makefile" ;;
19602
"libs/dbus-c++/src/Makefile") CONFIG_FILES="$CONFIG_FILES libs/dbus-c++/src/Makefile" ;;
19603
"libs/dbus-c++/tools/Makefile") CONFIG_FILES="$CONFIG_FILES libs/dbus-c++/tools/Makefile" ;;
19604
"libs/dbus-c++/data/Makefile") CONFIG_FILES="$CONFIG_FILES libs/dbus-c++/data/Makefile" ;;
19605
"libs/iax2/Makefile") CONFIG_FILES="$CONFIG_FILES libs/iax2/Makefile" ;;
19606
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19607
"src/sip/Makefile") CONFIG_FILES="$CONFIG_FILES src/sip/Makefile" ;;
19608
"src/im/Makefile") CONFIG_FILES="$CONFIG_FILES src/im/Makefile" ;;
19609
"src/iax/Makefile") CONFIG_FILES="$CONFIG_FILES src/iax/Makefile" ;;
19610
"src/audio/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/Makefile" ;;
19611
"src/audio/audiortp/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/audiortp/Makefile" ;;
19612
"src/audio/pulseaudio/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/pulseaudio/Makefile" ;;
19613
"src/audio/alsa/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/alsa/Makefile" ;;
19614
"src/audio/sound/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/sound/Makefile" ;;
19615
"src/audio/codecs/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/codecs/Makefile" ;;
19616
"src/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
19617
"src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
19618
"src/plug-in/Makefile") CONFIG_FILES="$CONFIG_FILES src/plug-in/Makefile" ;;
19619
"src/plug-in/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/plug-in/test/Makefile" ;;
19620
"src/hooks/Makefile") CONFIG_FILES="$CONFIG_FILES src/hooks/Makefile" ;;
19621
"src/history/Makefile") CONFIG_FILES="$CONFIG_FILES src/history/Makefile" ;;
19622
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19623
"ringtones/Makefile") CONFIG_FILES="$CONFIG_FILES ringtones/Makefile" ;;
19624
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19625
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19626
"doc/dbus-api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dbus-api/Makefile" ;;
19627
"doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;;
19628
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19629
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19631
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
19636
# If the user did not use the arguments to specify the items to instantiate,
19637
# then the envvar interface is used. Set only those that are not.
19638
# We use the long form for the default assignment because of an extremely
19639
# bizarre bug on SunOS 4.1.3.
19640
if $ac_need_defaults; then
19641
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19642
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19643
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19646
# Have a temporary directory for convenience. Make it in the build tree
19647
# simply because there is no reason against having it here, and in addition,
19648
# creating and moving files from /tmp can sometimes cause problems.
19649
# Hook for its removal unless debugging.
19650
# Note that there is a small window in which the directory will not be cleaned:
19651
# after its creation but before its name has been assigned to `$tmp'.
19655
trap 'exit_status=$?
19656
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19658
trap 'as_fn_exit 1' 1 2 13 15
19660
# Create a (secure) tmp directory for tmp files.
19663
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19664
test -n "$tmp" && test -d "$tmp"
19667
tmp=./conf$$-$RANDOM
19668
(umask 077 && mkdir "$tmp")
19669
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19671
# Set up the scripts for CONFIG_FILES section.
19672
# No need to generate them if there are no CONFIG_FILES.
19673
# This happens for instance with `./config.status config.h'.
19674
if test -n "$CONFIG_FILES"; then
19677
ac_cr=`echo X | tr X '\015'`
19678
# On cygwin, bash can eat \r inside `` if the user requested igncr.
19679
# But we know of no other shell where ac_cr would be empty at this
19680
# point, so we can use a bashism as a fallback.
19681
if test "x$ac_cr" = x; then
19682
eval ac_cr=\$\'\\r\'
19684
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19685
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19688
ac_cs_awk_cr=$ac_cr
19691
echo 'BEGIN {' >"$tmp/subs1.awk" &&
19696
echo "cat >conf$$subs.awk <<_ACEOF" &&
19697
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19699
} >conf$$subs.sh ||
19700
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19701
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19703
for ac_last_try in false false false false false :; do
19704
. ./conf$$subs.sh ||
19705
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19707
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19708
if test $ac_delim_n = $ac_delim_num; then
19710
elif $ac_last_try; then
19711
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19713
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19716
rm -f conf$$subs.sh
19718
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19719
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19723
s/^/S["/; s/!.*/"]=/
19733
s/\(.\{148\}\)..*/\1/
19735
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19740
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19747
s/\(.\{148\}\)..*/\1/
19749
s/["\\]/\\&/g; s/^/"/; s/$/"/
19753
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19758
' <conf$$subs.awk | sed '
19763
' >>$CONFIG_STATUS || ac_write_fail=1
19764
rm -f conf$$subs.awk
19765
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19767
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19768
for (key in S) S_is_set[key] = 1
19774
nfields = split(line, field, "@")
19776
len = length(field[1])
19777
for (i = 2; i < nfields; i++) {
19779
keylen = length(key)
19780
if (S_is_set[key]) {
19782
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19783
len += length(value) + length(field[++i])
19794
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19795
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19796
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19799
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19800
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19803
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19804
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19805
# trailing colons and then remove the whole line if VPATH becomes empty
19806
# (actually we leave an empty line to preserve line numbers).
19807
if test "x$srcdir" = x.; then
19808
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19826
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19827
fi # test -n "$CONFIG_FILES"
19829
# Set up the scripts for CONFIG_HEADERS section.
19830
# No need to generate them if there are no CONFIG_HEADERS.
19831
# This happens for instance with `./config.status Makefile'.
19832
if test -n "$CONFIG_HEADERS"; then
19833
cat >"$tmp/defines.awk" <<\_ACAWK ||
19837
# Transform confdefs.h into an awk script `defines.awk', embedded as
19838
# here-document in config.status, that substitutes the proper values into
19839
# config.h.in to produce config.h.
19841
# Create a delimiter string that does not exist in confdefs.h, to ease
19842
# handling of long lines.
19844
for ac_last_try in false false :; do
19845
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19846
if test -z "$ac_t"; then
19848
elif $ac_last_try; then
19849
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19851
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19855
# For the awk script, D is an array of macro values keyed by name,
19856
# likewise P contains macro parameters if any. Preserve backslash
19857
# newline sequences.
19859
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19861
s/.\{148\}/&'"$ac_delim"'/g
19864
s/^[ ]*#[ ]*define[ ][ ]*/ /
19871
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19873
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19877
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19878
D["\1"]=" \3\\\\\\n"\\/p
19880
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19885
s/.\{148\}/&'"$ac_delim"'/g
19890
s/["\\]/\\&/g; s/^/"/; s/$/"/p
19893
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19895
' <confdefs.h | sed '
19896
s/'"$ac_delim"'/"\\\
19897
"/g' >>$CONFIG_STATUS || ac_write_fail=1
19899
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19900
for (key in D) D_is_set[key] = 1
19903
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19905
split(line, arg, " ")
19906
if (arg[1] == "#") {
19910
defundef = substr(arg[1], 2)
19913
split(mac1, mac2, "(") #)
19915
prefix = substr(line, 1, index(line, defundef) - 1)
19916
if (D_is_set[macro]) {
19917
# Preserve the white space surrounding the "#".
19918
print prefix "define", macro P[macro] D[macro]
19921
# Replace #undef with comments. This is necessary, for example,
19922
# in the case of _POSIX_SOURCE, which is predefined and required
19923
# on some systems where configure will not decide to define it.
19924
if (defundef == "undef") {
19925
print "/*", prefix defundef, macro, "*/"
19933
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19934
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19935
fi # test -n "$CONFIG_HEADERS"
19938
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19943
:[FHLC]) ac_mode=$ac_tag; continue;;
19945
case $ac_mode$ac_tag in
19947
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
19948
:[FH]-) ac_tag=-:-;;
19949
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19966
-) ac_f="$tmp/stdin";;
19967
*) # Look for the file first in the build tree, then in the source tree
19968
# (if the path is not absolute). The absolute path cannot be DOS-style,
19969
# because $ac_f cannot contain `:'.
19973
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19975
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
19977
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19978
as_fn_append ac_file_inputs " '$ac_f'"
19981
# Let's still pretend it is `configure' which instantiates (i.e., don't
19982
# use $as_me), people would be surprised to read:
19983
# /* config.h. Generated by config.status. */
19984
configure_input='Generated from '`
19985
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19987
if test x"$ac_file" != x-; then
19988
configure_input="$ac_file. $configure_input"
19989
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19990
$as_echo "$as_me: creating $ac_file" >&6;}
19992
# Neutralize special characters interpreted by sed in replacement strings.
19993
case $configure_input in #(
19994
*\&* | *\|* | *\\* )
19995
ac_sed_conf_input=`$as_echo "$configure_input" |
19996
sed 's/[\\\\&|]/\\\\&/g'`;; #(
19997
*) ac_sed_conf_input=$configure_input;;
20001
*:-:* | *:-) cat >"$tmp/stdin" \
20002
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20007
ac_dir=`$as_dirname -- "$ac_file" ||
20008
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20009
X"$ac_file" : 'X\(//\)[^/]' \| \
20010
X"$ac_file" : 'X\(//\)$' \| \
20011
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20012
$as_echo X"$ac_file" |
20013
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20017
/^X\(\/\/\)[^/].*/{
20030
as_dir="$ac_dir"; as_fn_mkdir_p
20034
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20036
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20037
# A ".." for each directory in $ac_dir_suffix.
20038
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20039
case $ac_top_builddir_sub in
20040
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20041
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20044
ac_abs_top_builddir=$ac_pwd
20045
ac_abs_builddir=$ac_pwd$ac_dir_suffix
20046
# for backward compatibility:
20047
ac_top_builddir=$ac_top_build_prefix
20050
.) # We are building in place.
20052
ac_top_srcdir=$ac_top_builddir_sub
20053
ac_abs_top_srcdir=$ac_pwd ;;
20054
[\\/]* | ?:[\\/]* ) # Absolute name.
20055
ac_srcdir=$srcdir$ac_dir_suffix;
20056
ac_top_srcdir=$srcdir
20057
ac_abs_top_srcdir=$srcdir ;;
20058
*) # Relative name.
20059
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20060
ac_top_srcdir=$ac_top_build_prefix$srcdir
20061
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20063
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20073
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20074
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20076
ac_MKDIR_P=$MKDIR_P
20078
[\\/$]* | ?:[\\/]* ) ;;
20079
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20083
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084
# If the template does not know about datarootdir, expand it.
20085
# FIXME: This hack should be removed a few years after 2.60.
20086
ac_datarootdir_hack=; ac_datarootdir_seen=
20097
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20098
*datarootdir*) ac_datarootdir_seen=yes;;
20099
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20100
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20101
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20103
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20104
ac_datarootdir_hack='
20105
s&@datadir@&$datadir&g
20106
s&@docdir@&$docdir&g
20107
s&@infodir@&$infodir&g
20108
s&@localedir@&$localedir&g
20109
s&@mandir@&$mandir&g
20110
s&\\\${datarootdir}&$datarootdir&g' ;;
20114
# Neutralize VPATH when `$srcdir' = `.'.
20115
# Shell code in configure.ac might set extrasub.
20116
# FIXME: do we really want to maintain this feature?
20117
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20118
ac_sed_extra="$ac_vpsub
20121
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20123
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20124
s|@configure_input@|$ac_sed_conf_input|;t t
20125
s&@top_builddir@&$ac_top_builddir_sub&;t t
20126
s&@top_build_prefix@&$ac_top_build_prefix&;t t
20127
s&@srcdir@&$ac_srcdir&;t t
20128
s&@abs_srcdir@&$ac_abs_srcdir&;t t
20129
s&@top_srcdir@&$ac_top_srcdir&;t t
20130
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20131
s&@builddir@&$ac_builddir&;t t
20132
s&@abs_builddir@&$ac_abs_builddir&;t t
20133
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20134
s&@INSTALL@&$ac_INSTALL&;t t
20135
s&@MKDIR_P@&$ac_MKDIR_P&;t t
20136
$ac_datarootdir_hack
20138
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20139
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20141
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20142
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20143
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20144
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20145
which seems to be undefined. Please make sure it is defined" >&5
20146
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20147
which seems to be undefined. Please make sure it is defined" >&2;}
20151
-) cat "$tmp/out" && rm -f "$tmp/out";;
20152
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20154
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20160
if test x"$ac_file" != x-; then
20162
$as_echo "/* $configure_input */" \
20163
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20164
} >"$tmp/config.h" \
20165
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20166
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20167
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20168
$as_echo "$as_me: $ac_file is unchanged" >&6;}
20171
mv "$tmp/config.h" "$ac_file" \
20172
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20175
$as_echo "/* $configure_input */" \
20176
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20177
|| as_fn_error $? "could not create -" "$LINENO" 5
20179
# Compute "$ac_file"'s index in $config_headers.
20182
for _am_header in $config_headers :; do
20183
case $_am_header in
20184
$_am_arg | $_am_arg:* )
20187
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
20190
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20191
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20192
X"$_am_arg" : 'X\(//\)[^/]' \| \
20193
X"$_am_arg" : 'X\(//\)$' \| \
20194
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20195
$as_echo X"$_am_arg" |
20196
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20200
/^X\(\/\/\)[^/].*/{
20212
s/.*/./; q'`/stamp-h$_am_stamp_count
20215
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20216
$as_echo "$as_me: executing $ac_file commands" >&6;}
20221
case $ac_file$ac_mode in
20222
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20223
# Autoconf 2.62 quotes --file arguments for eval, but not when files
20224
# are listed without --file. Let's play safe and only enable the eval
20225
# if we detect the quoting.
20226
case $CONFIG_FILES in
20227
*\'*) eval set x "$CONFIG_FILES" ;;
20228
*) set x $CONFIG_FILES ;;
20233
# Strip MF so we end up with the name of the file.
20234
mf=`echo "$mf" | sed -e 's/:.*$//'`
20235
# Check whether this is an Automake generated Makefile or not.
20236
# We used to match only the files named `Makefile.in', but
20237
# some people rename them; so instead we look at the file content.
20238
# Grep'ing the first line is not enough: some people post-process
20239
# each Makefile.in and add a new line on top of each file to say so.
20240
# Grep'ing the whole file is not good either: AIX grep has a line
20241
# limit of 2048, but all sed's we know have understand at least 4000.
20242
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20243
dirpart=`$as_dirname -- "$mf" ||
20244
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20245
X"$mf" : 'X\(//\)[^/]' \| \
20246
X"$mf" : 'X\(//\)$' \| \
20247
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20249
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20253
/^X\(\/\/\)[^/].*/{
20269
# Extract the definition of DEPDIR, am__include, and am__quote
20270
# from the Makefile without running `make'.
20271
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20272
test -z "$DEPDIR" && continue
20273
am__include=`sed -n 's/^am__include = //p' < "$mf"`
20274
test -z "am__include" && continue
20275
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20276
# When using ansi2knr, U may be empty or an underscore; expand it
20277
U=`sed -n 's/^U = //p' < "$mf"`
20278
# Find all dependency output files, they are included files with
20279
# $(DEPDIR) in their names. We invoke sed twice because it is the
20280
# simplest approach to changing $(DEPDIR) to its actual value in the
20282
for file in `sed -n "
20283
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20284
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20285
# Make sure the directory exists.
20286
test -f "$dirpart/$file" && continue
20287
fdir=`$as_dirname -- "$file" ||
20288
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20289
X"$file" : 'X\(//\)[^/]' \| \
20290
X"$file" : 'X\(//\)$' \| \
20291
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20292
$as_echo X"$file" |
20293
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20297
/^X\(\/\/\)[^/].*/{
20310
as_dir=$dirpart/$fdir; as_fn_mkdir_p
20311
# echo "creating $dirpart/$file"
20312
echo '# dummy' > "$dirpart/$file"
20319
# See if we are running on zsh, and set the options which allow our
20320
# commands through without removal of \ escapes.
20321
if test -n "${ZSH_VERSION+set}" ; then
20322
setopt NO_GLOB_SUBST
20325
cfgfile="${ofile}T"
20326
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20329
cat <<_LT_EOF >> "$cfgfile"
20332
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20333
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20334
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20335
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20337
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20338
# 2006, 2007, 2008 Free Software Foundation, Inc.
20339
# Written by Gordon Matzigkeit, 1996
20341
# This file is part of GNU Libtool.
20343
# GNU Libtool is free software; you can redistribute it and/or
20344
# modify it under the terms of the GNU General Public License as
20345
# published by the Free Software Foundation; either version 2 of
20346
# the License, or (at your option) any later version.
20348
# As a special exception to the GNU General Public License,
20349
# if you distribute this file as part of a program or library that
20350
# is built using GNU Libtool, you may include this file under the
20351
# same distribution terms that you use for the rest of that program.
20353
# GNU Libtool is distributed in the hope that it will be useful,
20354
# but WITHOUT ANY WARRANTY; without even the implied warranty of
20355
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20356
# GNU General Public License for more details.
20358
# You should have received a copy of the GNU General Public License
20359
# along with GNU Libtool; see the file COPYING. If not, a copy
20360
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20361
# obtained by writing to the Free Software Foundation, Inc.,
20362
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20365
# The names of the tagged configurations supported by this script.
20366
available_tags="CXX "
20368
# ### BEGIN LIBTOOL CONFIG
20370
# Which release of libtool.m4 was used?
20371
macro_version=$macro_version
20372
macro_revision=$macro_revision
20374
# Whether or not to build shared libraries.
20375
build_libtool_libs=$enable_shared
20377
# Whether or not to build static libraries.
20378
build_old_libs=$enable_static
20380
# What type of objects to build.
20383
# Whether or not to optimize for fast installation.
20384
fast_install=$enable_fast_install
20387
host_alias=$host_alias
20391
# The build system.
20392
build_alias=$build_alias
20396
# A sed program that does not truncate output.
20399
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20400
Xsed="\$SED -e 1s/^X//"
20402
# A grep program that handles long lines.
20408
# A literal string matcher.
20411
# A BSD- or MS-compatible name lister.
20414
# Whether we need soft or hard links.
20417
# What is the maximum length of a command?
20418
max_cmd_len=$max_cmd_len
20420
# Object file suffix (normally "o").
20423
# Executable file suffix (normally "").
20426
# whether the shell understands "unset".
20429
# turn spaces into newlines.
20432
# turn newlines into spaces.
20435
# How to create reloadable object files.
20436
reload_flag=$lt_reload_flag
20437
reload_cmds=$lt_reload_cmds
20439
# An object symbol dumper.
20440
OBJDUMP=$lt_OBJDUMP
20442
# Method to check whether dependent libraries are shared objects.
20443
deplibs_check_method=$lt_deplibs_check_method
20445
# Command to use when deplibs_check_method == "file_magic".
20446
file_magic_cmd=$lt_file_magic_cmd
20450
AR_FLAGS=$lt_AR_FLAGS
20452
# A symbol stripping program.
20455
# Commands used to install an old-style archive.
20457
old_postinstall_cmds=$lt_old_postinstall_cmds
20458
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20463
# LTCC compiler flags.
20464
LTCFLAGS=$lt_CFLAGS
20466
# Take the output of nm and produce a listing of raw symbols and C names.
20467
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20469
# Transform the output of nm in a proper C declaration.
20470
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20472
# Transform the output of nm in a C name address pair.
20473
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20475
# Transform the output of nm in a C name address pair when lib prefix is needed.
20476
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20478
# The name of the directory that contains temporary libtool files.
20481
# Shell to use when invoking shell scripts.
20484
# An echo program that does not interpret backslashes.
20487
# Used to examine libraries when file_magic_cmd begins with "file".
20488
MAGIC_CMD=$MAGIC_CMD
20490
# Must we lock files when doing compilation?
20491
need_locks=$lt_need_locks
20493
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20494
DSYMUTIL=$lt_DSYMUTIL
20496
# Tool to change global to local symbols on Mac OS X.
20499
# Tool to manipulate fat objects and archives on Mac OS X.
20502
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20505
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20506
OTOOL64=$lt_OTOOL64
20508
# Old archive suffix (normally "a").
20511
# Shared library suffix (normally ".so").
20512
shrext_cmds=$lt_shrext_cmds
20514
# The commands to extract the exported symbol list from a shared archive.
20515
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20517
# Variables whose values should be saved in libtool wrapper scripts and
20518
# restored at link time.
20519
variables_saved_for_relink=$lt_variables_saved_for_relink
20521
# Do we need the "lib" prefix for modules?
20522
need_lib_prefix=$need_lib_prefix
20524
# Do we need a version for libraries?
20525
need_version=$need_version
20527
# Library versioning type.
20528
version_type=$version_type
20530
# Shared library runtime path variable.
20531
runpath_var=$runpath_var
20533
# Shared library path variable.
20534
shlibpath_var=$shlibpath_var
20536
# Is shlibpath searched before the hard-coded library search path?
20537
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20539
# Format of library name prefix.
20540
libname_spec=$lt_libname_spec
20542
# List of archive names. First name is the real one, the rest are links.
20543
# The last name is the one that the linker finds with -lNAME
20544
library_names_spec=$lt_library_names_spec
20546
# The coded name of the library, if different from the real name.
20547
soname_spec=$lt_soname_spec
20549
# Command to use after installation of a shared archive.
20550
postinstall_cmds=$lt_postinstall_cmds
20552
# Command to use after uninstallation of a shared archive.
20553
postuninstall_cmds=$lt_postuninstall_cmds
20555
# Commands used to finish a libtool library installation in a directory.
20556
finish_cmds=$lt_finish_cmds
20558
# As "finish_cmds", except a single script fragment to be evaled but
20560
finish_eval=$lt_finish_eval
20562
# Whether we should hardcode library paths into libraries.
20563
hardcode_into_libs=$hardcode_into_libs
20565
# Compile-time system search path for libraries.
20566
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20568
# Run-time system search path for libraries.
20569
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20571
# Whether dlopen is supported.
20572
dlopen_support=$enable_dlopen
20574
# Whether dlopen of programs is supported.
20575
dlopen_self=$enable_dlopen_self
20577
# Whether dlopen of statically linked programs is supported.
20578
dlopen_self_static=$enable_dlopen_self_static
20580
# Commands to strip libraries.
20581
old_striplib=$lt_old_striplib
20582
striplib=$lt_striplib
20585
# The linker used to build libraries.
20588
# Commands used to build an old-style archive.
20589
old_archive_cmds=$lt_old_archive_cmds
20591
# A language specific compiler.
20594
# Is the compiler the GNU compiler?
20597
# Compiler flag to turn off builtin functions.
20598
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20600
# How to pass a linker flag through the compiler.
20601
wl=$lt_lt_prog_compiler_wl
20603
# Additional compiler flags for building library objects.
20604
pic_flag=$lt_lt_prog_compiler_pic
20606
# Compiler flag to prevent dynamic linking.
20607
link_static_flag=$lt_lt_prog_compiler_static
20609
# Does compiler simultaneously support -c and -o options?
20610
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20612
# Whether or not to add -lc for building shared libraries.
20613
build_libtool_need_lc=$archive_cmds_need_lc
20615
# Whether or not to disallow shared libs when runtime libs are static.
20616
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20618
# Compiler flag to allow reflexive dlopens.
20619
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20621
# Compiler flag to generate shared objects directly from archives.
20622
whole_archive_flag_spec=$lt_whole_archive_flag_spec
20624
# Whether the compiler copes with passing no objects directly.
20625
compiler_needs_object=$lt_compiler_needs_object
20627
# Create an old-style archive from a shared archive.
20628
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20630
# Create a temporary old-style archive to link instead of a shared archive.
20631
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20633
# Commands used to build a shared archive.
20634
archive_cmds=$lt_archive_cmds
20635
archive_expsym_cmds=$lt_archive_expsym_cmds
20637
# Commands used to build a loadable module if different from building
20638
# a shared archive.
20639
module_cmds=$lt_module_cmds
20640
module_expsym_cmds=$lt_module_expsym_cmds
20642
# Whether we are building with GNU ld or not.
20643
with_gnu_ld=$lt_with_gnu_ld
20645
# Flag that allows shared libraries with undefined symbols to be built.
20646
allow_undefined_flag=$lt_allow_undefined_flag
20648
# Flag that enforces no undefined symbols.
20649
no_undefined_flag=$lt_no_undefined_flag
20651
# Flag to hardcode \$libdir into a binary during linking.
20652
# This must work even if \$libdir does not exist
20653
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20655
# If ld is used when linking, flag to hardcode \$libdir into a binary
20656
# during linking. This must work even if \$libdir does not exist.
20657
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20659
# Whether we need a single "-rpath" flag with a separated argument.
20660
hardcode_libdir_separator=$lt_hardcode_libdir_separator
20662
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20663
# DIR into the resulting binary.
20664
hardcode_direct=$hardcode_direct
20666
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20667
# DIR into the resulting binary and the resulting library dependency is
20668
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20669
# library is relocated.
20670
hardcode_direct_absolute=$hardcode_direct_absolute
20672
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20673
# into the resulting binary.
20674
hardcode_minus_L=$hardcode_minus_L
20676
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20677
# into the resulting binary.
20678
hardcode_shlibpath_var=$hardcode_shlibpath_var
20680
# Set to "yes" if building a shared library automatically hardcodes DIR
20681
# into the library and all subsequent libraries and executables linked
20683
hardcode_automatic=$hardcode_automatic
20685
# Set to yes if linker adds runtime paths of dependent libraries
20686
# to runtime path list.
20687
inherit_rpath=$inherit_rpath
20689
# Whether libtool must link a program against all its dependency libraries.
20690
link_all_deplibs=$link_all_deplibs
20692
# Fix the shell variable \$srcfile for the compiler.
20693
fix_srcfile_path=$lt_fix_srcfile_path
20695
# Set to "yes" if exported symbols are required.
20696
always_export_symbols=$always_export_symbols
20698
# The commands to list exported symbols.
20699
export_symbols_cmds=$lt_export_symbols_cmds
20701
# Symbols that should not be listed in the preloaded symbols.
20702
exclude_expsyms=$lt_exclude_expsyms
20704
# Symbols that must always be exported.
20705
include_expsyms=$lt_include_expsyms
20707
# Commands necessary for linking programs (against libraries) with templates.
20708
prelink_cmds=$lt_prelink_cmds
20710
# Specify filename containing input files.
20711
file_list_spec=$lt_file_list_spec
20713
# How to hardcode a shared library path into an executable.
20714
hardcode_action=$hardcode_action
20716
# The directories searched by this compiler when creating a shared library.
20717
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20719
# Dependencies to place before and after the objects being linked to
20720
# create a shared library.
20721
predep_objects=$lt_predep_objects
20722
postdep_objects=$lt_postdep_objects
20723
predeps=$lt_predeps
20724
postdeps=$lt_postdeps
20726
# The library search path used internally by the compiler when linking
20727
# a shared library.
20728
compiler_lib_search_path=$lt_compiler_lib_search_path
20730
# ### END LIBTOOL CONFIG
20736
cat <<\_LT_EOF >> "$cfgfile"
20737
# AIX sometimes has problems with the GCC collect2 program. For some
20738
# reason, if we set the COLLECT_NAMES environment variable, the problems
20739
# vanish in a puff of smoke.
20740
if test "X${COLLECT_NAMES+set}" != Xset; then
20742
export COLLECT_NAMES
20749
ltmain="$ac_aux_dir/ltmain.sh"
20752
# We use sed instead of cat because bash on DJGPP gets confused if
20753
# if finds mixed CR/LF and LF-only lines. Since sed operates in
20754
# text mode, it properly converts lines to CR/LF. This bash problem
20755
# is reportedly fixed, but why not run on old versions too?
20756
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20757
|| (rm -f "$cfgfile"; exit 1)
20761
cat << \_LT_EOF >> "$cfgfile"
20763
# func_dirname file append nondir_replacement
20764
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20765
# otherwise set result to NONDIR_REPLACEMENT.
20769
*/*) func_dirname_result="${1%/*}${2}" ;;
20770
* ) func_dirname_result="${3}" ;;
20774
# func_basename file
20777
func_basename_result="${1##*/}"
20780
# func_dirname_and_basename file append nondir_replacement
20781
# perform func_basename and func_dirname in a single function
20783
# dirname: Compute the dirname of FILE. If nonempty,
20784
# add APPEND to the result, otherwise set result
20785
# to NONDIR_REPLACEMENT.
20786
# value returned in "$func_dirname_result"
20787
# basename: Compute filename of FILE.
20788
# value retuned in "$func_basename_result"
20789
# Implementation must be kept synchronized with func_dirname
20790
# and func_basename. For efficiency, we do not delegate to
20791
# those functions but instead duplicate the functionality here.
20792
func_dirname_and_basename ()
20795
*/*) func_dirname_result="${1%/*}${2}" ;;
20796
* ) func_dirname_result="${3}" ;;
20798
func_basename_result="${1##*/}"
20801
# func_stripname prefix suffix name
20802
# strip PREFIX and SUFFIX off of NAME.
20803
# PREFIX and SUFFIX must not contain globbing or regex special
20804
# characters, hashes, percent signs, but SUFFIX may contain a leading
20805
# dot (in which case that matches only a dot).
20808
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20809
# positional parameters, so assign one to ordinary parameter first.
20810
func_stripname_result=${3}
20811
func_stripname_result=${func_stripname_result#"${1}"}
20812
func_stripname_result=${func_stripname_result%"${2}"}
20818
func_opt_split_opt=${1%%=*}
20819
func_opt_split_arg=${1#*=}
20826
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20827
*) func_lo2o_result=${1} ;;
20831
# func_xform libobj-or-source
20834
func_xform_result=${1%.*}.lo
20837
# func_arith arithmetic-term...
20840
func_arith_result=$(( $* ))
20844
# STRING may not start with a hyphen.
20847
func_len_result=${#1}
20852
*) # Bourne compatible functions.
20853
cat << \_LT_EOF >> "$cfgfile"
20855
# func_dirname file append nondir_replacement
20856
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20857
# otherwise set result to NONDIR_REPLACEMENT.
20860
# Extract subdirectory from the argument.
20861
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20862
if test "X$func_dirname_result" = "X${1}"; then
20863
func_dirname_result="${3}"
20865
func_dirname_result="$func_dirname_result${2}"
20869
# func_basename file
20872
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20876
# func_stripname prefix suffix name
20877
# strip PREFIX and SUFFIX off of NAME.
20878
# PREFIX and SUFFIX must not contain globbing or regex special
20879
# characters, hashes, percent signs, but SUFFIX may contain a leading
20880
# dot (in which case that matches only a dot).
20881
# func_strip_suffix prefix name
20885
.*) func_stripname_result=`$ECHO "X${3}" \
20886
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20887
*) func_stripname_result=`$ECHO "X${3}" \
20888
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20893
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20894
my_sed_long_arg='1s/^-[^=]*=//'
20899
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20900
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20906
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20909
# func_xform libobj-or-source
20912
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20915
# func_arith arithmetic-term...
20918
func_arith_result=`expr "$@"`
20922
# STRING may not start with a hyphen.
20925
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20931
case $lt_shell_append in
20933
cat << \_LT_EOF >> "$cfgfile"
20935
# func_append var value
20936
# Append VALUE to the end of shell variable VAR.
20944
cat << \_LT_EOF >> "$cfgfile"
20946
# func_append var value
20947
# Append VALUE to the end of shell variable VAR.
20958
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20959
|| (rm -f "$cfgfile"; exit 1)
20961
mv -f "$cfgfile" "$ofile" ||
20962
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20966
cat <<_LT_EOF >> "$ofile"
20968
# ### BEGIN LIBTOOL TAG CONFIG: CXX
20970
# The linker used to build libraries.
20973
# Commands used to build an old-style archive.
20974
old_archive_cmds=$lt_old_archive_cmds_CXX
20976
# A language specific compiler.
20977
CC=$lt_compiler_CXX
20979
# Is the compiler the GNU compiler?
20982
# Compiler flag to turn off builtin functions.
20983
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20985
# How to pass a linker flag through the compiler.
20986
wl=$lt_lt_prog_compiler_wl_CXX
20988
# Additional compiler flags for building library objects.
20989
pic_flag=$lt_lt_prog_compiler_pic_CXX
20991
# Compiler flag to prevent dynamic linking.
20992
link_static_flag=$lt_lt_prog_compiler_static_CXX
20994
# Does compiler simultaneously support -c and -o options?
20995
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20997
# Whether or not to add -lc for building shared libraries.
20998
build_libtool_need_lc=$archive_cmds_need_lc_CXX
21000
# Whether or not to disallow shared libs when runtime libs are static.
21001
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21003
# Compiler flag to allow reflexive dlopens.
21004
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21006
# Compiler flag to generate shared objects directly from archives.
21007
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21009
# Whether the compiler copes with passing no objects directly.
21010
compiler_needs_object=$lt_compiler_needs_object_CXX
21012
# Create an old-style archive from a shared archive.
21013
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21015
# Create a temporary old-style archive to link instead of a shared archive.
21016
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21018
# Commands used to build a shared archive.
21019
archive_cmds=$lt_archive_cmds_CXX
21020
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21022
# Commands used to build a loadable module if different from building
21023
# a shared archive.
21024
module_cmds=$lt_module_cmds_CXX
21025
module_expsym_cmds=$lt_module_expsym_cmds_CXX
21027
# Whether we are building with GNU ld or not.
21028
with_gnu_ld=$lt_with_gnu_ld_CXX
21030
# Flag that allows shared libraries with undefined symbols to be built.
21031
allow_undefined_flag=$lt_allow_undefined_flag_CXX
21033
# Flag that enforces no undefined symbols.
21034
no_undefined_flag=$lt_no_undefined_flag_CXX
21036
# Flag to hardcode \$libdir into a binary during linking.
21037
# This must work even if \$libdir does not exist
21038
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21040
# If ld is used when linking, flag to hardcode \$libdir into a binary
21041
# during linking. This must work even if \$libdir does not exist.
21042
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21044
# Whether we need a single "-rpath" flag with a separated argument.
21045
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21047
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21048
# DIR into the resulting binary.
21049
hardcode_direct=$hardcode_direct_CXX
21051
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21052
# DIR into the resulting binary and the resulting library dependency is
21053
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21054
# library is relocated.
21055
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21057
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21058
# into the resulting binary.
21059
hardcode_minus_L=$hardcode_minus_L_CXX
21061
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21062
# into the resulting binary.
21063
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21065
# Set to "yes" if building a shared library automatically hardcodes DIR
21066
# into the library and all subsequent libraries and executables linked
21068
hardcode_automatic=$hardcode_automatic_CXX
21070
# Set to yes if linker adds runtime paths of dependent libraries
21071
# to runtime path list.
21072
inherit_rpath=$inherit_rpath_CXX
21074
# Whether libtool must link a program against all its dependency libraries.
21075
link_all_deplibs=$link_all_deplibs_CXX
21077
# Fix the shell variable \$srcfile for the compiler.
21078
fix_srcfile_path=$lt_fix_srcfile_path_CXX
21080
# Set to "yes" if exported symbols are required.
21081
always_export_symbols=$always_export_symbols_CXX
21083
# The commands to list exported symbols.
21084
export_symbols_cmds=$lt_export_symbols_cmds_CXX
21086
# Symbols that should not be listed in the preloaded symbols.
21087
exclude_expsyms=$lt_exclude_expsyms_CXX
21089
# Symbols that must always be exported.
21090
include_expsyms=$lt_include_expsyms_CXX
21092
# Commands necessary for linking programs (against libraries) with templates.
21093
prelink_cmds=$lt_prelink_cmds_CXX
21095
# Specify filename containing input files.
21096
file_list_spec=$lt_file_list_spec_CXX
21098
# How to hardcode a shared library path into an executable.
21099
hardcode_action=$hardcode_action_CXX
21101
# The directories searched by this compiler when creating a shared library.
21102
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21104
# Dependencies to place before and after the objects being linked to
21105
# create a shared library.
21106
predep_objects=$lt_predep_objects_CXX
21107
postdep_objects=$lt_postdep_objects_CXX
21108
predeps=$lt_predeps_CXX
21109
postdeps=$lt_postdeps_CXX
21111
# The library search path used internally by the compiler when linking
21112
# a shared library.
21113
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21115
# ### END LIBTOOL TAG CONFIG: CXX
21126
ac_clean_files=$ac_clean_files_save
21128
test $ac_write_fail = 0 ||
21129
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21132
# configure is writing to config.log, and then calls config.status.
21133
# config.status does its own redirection, appending to config.log.
21134
# Unfortunately, on DOS this fails, as config.log is still kept open
21135
# by configure, so config.status won't be able to write to it; its
21136
# output is simply discarded. So we exec the FD to /dev/null,
21137
# effectively closing config.log, so it can be properly (re)opened and
21138
# appended to by config.status. When coming back to configure, we
21139
# need to make the FD available again.
21140
if test "$no_create" != yes; then
21142
ac_config_status_args=
21143
test "$silent" = yes &&
21144
ac_config_status_args="$ac_config_status_args --quiet"
21146
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21148
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
21149
# would make configure fail if this is the last instruction.
21150
$ac_cs_success || as_fn_exit 1
21152
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21153
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21154
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21158
{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuration done! Please make sure that pjsip library (libs/pjproject) has already been compiled. Run \`make' to build the software." >&5
21159
$as_echo "$as_me: Configuration done! Please make sure that pjsip library (libs/pjproject) has already been compiled. Run \`make' to build the software." >&6;}