2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for libvdpau 0.4.
5
# Report bugs to <xorg@lists.freedesktop.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in #(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in #(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
test -z "$as_dir" && as_dir=.
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org and
232
$0: xorg@lists.freedesktop.org about your system, including
233
$0: any error possibly output before this message. Then
234
$0: install a modern shell, or manually run the script
235
$0: under such a shell if you do have one."
241
SHELL=${CONFIG_SHELL-/bin/sh}
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
247
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
252
# Portably unset VAR.
255
{ eval $1=; unset $1;}
259
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279
# Create "$as_dir" as a directory, including parents if necessary.
284
-*) as_dir=./$as_dir;;
286
test -d "$as_dir" || eval $as_mkdir_p || {
290
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
as_dirs="'$as_qdir' $as_dirs"
294
as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
X"$as_dir" : 'X\(//\)[^/]' \| \
297
X"$as_dir" : 'X\(//\)$' \| \
298
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317
test -d "$as_dir" && break
319
test -z "$as_dirs" || eval "mkdir $as_dirs"
320
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
eval 'as_fn_append ()
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355
as_val=`expr "$@" || test $? -eq 1`
360
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
367
as_status=$?; test $as_status -eq 0 && as_status=1
369
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372
$as_echo "$as_me: error: $1" >&2
373
as_fn_exit $as_status
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
test "X`expr 00001 : '.*\(...\)'`" = X001; then
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
X"$0" : 'X\(//\)$' \| \
398
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400
sed '/^.*\/\([^/][^/]*\)\/*$/{
414
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442
chmod +x "$as_me.lineno" ||
443
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
# Don't try to exec as it changes $[0], causing all sort of problems
446
# (the dirname of $[0] is not the place where we might find the
447
# original and so on. Autoconf is especially sensitive to this).
449
# Exit status is that of the last command.
453
ECHO_C= ECHO_N= ECHO_T=
454
case `echo -n x` in #(((((
456
case `echo 'xy\c'` in
457
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
459
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
rm -f conf$$.dir/conf$$.file
471
mkdir conf$$.dir 2>/dev/null
473
if (echo >conf$$.file) 2>/dev/null; then
474
if ln -s conf$$.file conf$$ 2>/dev/null; then
476
# ... but there are two gotchas:
477
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
# In both cases, we have to default to `cp -p'.
480
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482
elif ln conf$$.file conf$$ 2>/dev/null; then
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
493
if mkdir -p . 2>/dev/null; then
494
as_mkdir_p='mkdir -p "$as_dir"'
496
test -d ./-p && rmdir ./-p
500
if test -x / >/dev/null 2>&1; then
503
if ls -dL / >/dev/null 2>&1; then
510
if test -d "$1"; then
516
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517
???[sx]*):;;*)false;;esac;fi
521
as_executable_p=$as_test_x
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
# Check that we are running under the correct shell.
532
SHELL=${CONFIG_SHELL-/bin/sh}
536
# Remove one level of quotation (which was required for Make).
537
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542
if test "X$1" = X--no-reexec; then
543
# Discard the --no-reexec flag, and continue.
545
elif test "X$1" = X--fallback-echo; then
546
# Avoid inline document here, it may be left over
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549
# Yippee, $ECHO works!
552
# Restart under the correct shell.
553
exec $SHELL "$0" --no-reexec ${1+"$@"}
556
if test "X$1" = X--fallback-echo; then
557
# used as fallback echo
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
if test -z "$lt_ECHO"; then
570
if test "X${echo_test_string+set}" != Xset; then
571
# find a string as large as possible, as long as the shell can cope with it
572
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584
test "X$echo_testing_string" = "X$echo_test_string"; then
587
# The Solaris, AIX, and Digital Unix default echo programs unquote
588
# backslashes. This makes it impossible to quote backslashes using
589
# echo "$something" | sed 's/\\/\\\\/g'
591
# So, first we look for a working echo in the user's PATH.
593
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594
for dir in $PATH /usr/ucb; do
596
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599
test "X$echo_testing_string" = "X$echo_test_string"; then
606
if test "X$ECHO" = Xecho; then
607
# We didn't find a better echo, so look for alternatives.
608
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610
test "X$echo_testing_string" = "X$echo_test_string"; then
611
# This shell has a builtin print -r that does the trick.
613
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614
test "X$CONFIG_SHELL" != X/bin/ksh; then
615
# If we have ksh, try running configure again with it.
616
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617
export ORIGINAL_CONFIG_SHELL
618
CONFIG_SHELL=/bin/ksh
620
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626
test "X$echo_testing_string" = "X$echo_test_string"; then
629
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630
test "X$echo_testing_string" = 'X\t' &&
631
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632
test "X$echo_testing_string" = "X$echo_test_string"; then
633
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635
SHELL="$CONFIG_SHELL"
637
ECHO="$CONFIG_SHELL $0 --fallback-echo"
638
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
test "X$echo_testing_string" = 'X\t' &&
640
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
test "X$echo_testing_string" = "X$echo_test_string"; then
642
ECHO="$CONFIG_SHELL $0 --fallback-echo"
644
# maybe with a smaller string...
647
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655
if test "$prev" != 'sed 50q "$0"'; then
656
echo_test_string=`eval $prev`
657
export echo_test_string
658
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660
# Oops. We lost completely, so just stick with echo.
669
# Copy echo and quote the copy suitably for passing to libtool from
670
# the Makefile, instead of quoting the original, which is used later.
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679
exec 7<&0 </dev/null 6>&1
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
ac_default_prefix=/usr/local
691
ac_config_libobj_dir=.
698
# Identity of this package.
699
PACKAGE_NAME='libvdpau'
700
PACKAGE_TARNAME='libvdpau'
701
PACKAGE_VERSION='0.4'
702
PACKAGE_STRING='libvdpau 0.4'
703
PACKAGE_BUGREPORT='xorg@lists.freedesktop.org'
706
# Factoring default headers for most tests.
707
ac_includes_default="\
709
#ifdef HAVE_SYS_TYPES_H
710
# include <sys/types.h>
712
#ifdef HAVE_SYS_STAT_H
713
# include <sys/stat.h>
719
# ifdef HAVE_STDLIB_H
724
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729
#ifdef HAVE_STRINGS_H
730
# include <strings.h>
732
#ifdef HAVE_INTTYPES_H
733
# include <inttypes.h>
742
ac_subst_vars='am__EXEEXT_FALSE
746
distcleancheck_listfiles
816
MAINTAINER_MODE_FALSE
826
INSTALL_STRIP_PROGRAM
868
program_transform_name
881
enable_option_checking
882
enable_maintainer_mode
884
enable_dependency_tracking
894
ac_precious_vars='build_alias
916
# Initialize some variables set by options.
918
ac_init_version=false
919
ac_unrecognized_opts=
921
# The variables have the same names as the options, with
922
# dashes changed to underlines.
930
program_transform_name=s,x,x,
938
# Installation directory options.
939
# These are left unexpanded so users can "make install exec_prefix=/foo"
940
# and all the variables that are supposed to be based on exec_prefix
941
# by default will actually change.
942
# Use braces instead of parens because sh, perl, etc. also accept them.
943
# (The list follows the same order as the GNU Coding Standards.)
944
bindir='${exec_prefix}/bin'
945
sbindir='${exec_prefix}/sbin'
946
libexecdir='${exec_prefix}/libexec'
947
datarootdir='${prefix}/share'
948
datadir='${datarootdir}'
949
sysconfdir='${prefix}/etc'
950
sharedstatedir='${prefix}/com'
951
localstatedir='${prefix}/var'
952
includedir='${prefix}/include'
953
oldincludedir='/usr/include'
954
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955
infodir='${datarootdir}/info'
960
libdir='${exec_prefix}/lib'
961
localedir='${datarootdir}/locale'
962
mandir='${datarootdir}/man'
968
# If the previous option needs an argument, assign it.
969
if test -n "$ac_prev"; then
970
eval $ac_prev=\$ac_option
976
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980
# Accept the important Cygnus configure options, so we can diagnose typos.
982
case $ac_dashdash$ac_option in
986
-bindir | --bindir | --bindi | --bind | --bin | --bi)
988
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991
-build | --build | --buil | --bui | --bu)
992
ac_prev=build_alias ;;
993
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
994
build_alias=$ac_optarg ;;
996
-cache-file | --cache-file | --cache-fil | --cache-fi \
997
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998
ac_prev=cache_file ;;
999
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001
cache_file=$ac_optarg ;;
1003
--config-cache | -C)
1004
cache_file=config.cache ;;
1006
-datadir | --datadir | --datadi | --datad)
1008
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1009
datadir=$ac_optarg ;;
1011
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012
| --dataroo | --dataro | --datar)
1013
ac_prev=datarootdir ;;
1014
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016
datarootdir=$ac_optarg ;;
1018
-disable-* | --disable-*)
1019
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020
# Reject names that are not valid shell variable names.
1021
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022
as_fn_error "invalid feature name: $ac_useropt"
1023
ac_useropt_orig=$ac_useropt
1024
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025
case $ac_user_opts in
1027
"enable_$ac_useropt"
1029
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030
ac_unrecognized_sep=', ';;
1032
eval enable_$ac_useropt=no ;;
1034
-docdir | --docdir | --docdi | --doc | --do)
1036
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037
docdir=$ac_optarg ;;
1039
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042
dvidir=$ac_optarg ;;
1044
-enable-* | --enable-*)
1045
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046
# Reject names that are not valid shell variable names.
1047
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048
as_fn_error "invalid feature name: $ac_useropt"
1049
ac_useropt_orig=$ac_useropt
1050
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051
case $ac_user_opts in
1053
"enable_$ac_useropt"
1055
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056
ac_unrecognized_sep=', ';;
1058
eval enable_$ac_useropt=\$ac_optarg ;;
1060
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062
| --exec | --exe | --ex)
1063
ac_prev=exec_prefix ;;
1064
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066
| --exec=* | --exe=* | --ex=*)
1067
exec_prefix=$ac_optarg ;;
1069
-gas | --gas | --ga | --g)
1070
# Obsolete; use --with-gas.
1073
-help | --help | --hel | --he | -h)
1074
ac_init_help=long ;;
1075
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076
ac_init_help=recursive ;;
1077
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078
ac_init_help=short ;;
1080
-host | --host | --hos | --ho)
1081
ac_prev=host_alias ;;
1082
-host=* | --host=* | --hos=* | --ho=*)
1083
host_alias=$ac_optarg ;;
1085
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089
htmldir=$ac_optarg ;;
1091
-includedir | --includedir | --includedi | --included | --include \
1092
| --includ | --inclu | --incl | --inc)
1093
ac_prev=includedir ;;
1094
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095
| --includ=* | --inclu=* | --incl=* | --inc=*)
1096
includedir=$ac_optarg ;;
1098
-infodir | --infodir | --infodi | --infod | --info | --inf)
1100
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101
infodir=$ac_optarg ;;
1103
-libdir | --libdir | --libdi | --libd)
1105
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1106
libdir=$ac_optarg ;;
1108
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109
| --libexe | --libex | --libe)
1110
ac_prev=libexecdir ;;
1111
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112
| --libexe=* | --libex=* | --libe=*)
1113
libexecdir=$ac_optarg ;;
1115
-localedir | --localedir | --localedi | --localed | --locale)
1116
ac_prev=localedir ;;
1117
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118
localedir=$ac_optarg ;;
1120
-localstatedir | --localstatedir | --localstatedi | --localstated \
1121
| --localstate | --localstat | --localsta | --localst | --locals)
1122
ac_prev=localstatedir ;;
1123
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125
localstatedir=$ac_optarg ;;
1127
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130
mandir=$ac_optarg ;;
1132
-nfp | --nfp | --nf)
1133
# Obsolete; use --without-fp.
1136
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137
| --no-cr | --no-c | -n)
1140
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146
| --oldin | --oldi | --old | --ol | --o)
1147
ac_prev=oldincludedir ;;
1148
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151
oldincludedir=$ac_optarg ;;
1153
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156
prefix=$ac_optarg ;;
1158
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1159
| --program-pre | --program-pr | --program-p)
1160
ac_prev=program_prefix ;;
1161
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1162
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163
program_prefix=$ac_optarg ;;
1165
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1166
| --program-suf | --program-su | --program-s)
1167
ac_prev=program_suffix ;;
1168
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1169
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170
program_suffix=$ac_optarg ;;
1172
-program-transform-name | --program-transform-name \
1173
| --program-transform-nam | --program-transform-na \
1174
| --program-transform-n | --program-transform- \
1175
| --program-transform | --program-transfor \
1176
| --program-transfo | --program-transf \
1177
| --program-trans | --program-tran \
1178
| --progr-tra | --program-tr | --program-t)
1179
ac_prev=program_transform_name ;;
1180
-program-transform-name=* | --program-transform-name=* \
1181
| --program-transform-nam=* | --program-transform-na=* \
1182
| --program-transform-n=* | --program-transform-=* \
1183
| --program-transform=* | --program-transfor=* \
1184
| --program-transfo=* | --program-transf=* \
1185
| --program-trans=* | --program-tran=* \
1186
| --progr-tra=* | --program-tr=* | --program-t=*)
1187
program_transform_name=$ac_optarg ;;
1189
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192
pdfdir=$ac_optarg ;;
1194
-psdir | --psdir | --psdi | --psd | --ps)
1196
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200
| -silent | --silent | --silen | --sile | --sil)
1203
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207
sbindir=$ac_optarg ;;
1209
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1210
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211
| --sharedst | --shareds | --shared | --share | --shar \
1213
ac_prev=sharedstatedir ;;
1214
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218
sharedstatedir=$ac_optarg ;;
1220
-site | --site | --sit)
1222
-site=* | --site=* | --sit=*)
1225
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228
srcdir=$ac_optarg ;;
1230
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231
| --syscon | --sysco | --sysc | --sys | --sy)
1232
ac_prev=sysconfdir ;;
1233
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235
sysconfdir=$ac_optarg ;;
1237
-target | --target | --targe | --targ | --tar | --ta | --t)
1238
ac_prev=target_alias ;;
1239
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240
target_alias=$ac_optarg ;;
1242
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1245
-version | --version | --versio | --versi | --vers | -V)
1246
ac_init_version=: ;;
1249
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250
# Reject names that are not valid shell variable names.
1251
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252
as_fn_error "invalid package name: $ac_useropt"
1253
ac_useropt_orig=$ac_useropt
1254
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255
case $ac_user_opts in
1259
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1260
ac_unrecognized_sep=', ';;
1262
eval with_$ac_useropt=\$ac_optarg ;;
1264
-without-* | --without-*)
1265
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1266
# Reject names that are not valid shell variable names.
1267
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268
as_fn_error "invalid package name: $ac_useropt"
1269
ac_useropt_orig=$ac_useropt
1270
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271
case $ac_user_opts in
1275
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1276
ac_unrecognized_sep=', ';;
1278
eval with_$ac_useropt=no ;;
1281
# Obsolete; use --with-x.
1284
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1285
| --x-incl | --x-inc | --x-in | --x-i)
1286
ac_prev=x_includes ;;
1287
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1288
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1289
x_includes=$ac_optarg ;;
1291
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1292
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1293
ac_prev=x_libraries ;;
1294
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1295
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1296
x_libraries=$ac_optarg ;;
1298
-*) as_fn_error "unrecognized option: \`$ac_option'
1299
Try \`$0 --help' for more information."
1303
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304
# Reject names that are not valid shell variable names.
1305
case $ac_envvar in #(
1306
'' | [0-9]* | *[!_$as_cr_alnum]* )
1307
as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1309
eval $ac_envvar=\$ac_optarg
1310
export $ac_envvar ;;
1313
# FIXME: should be removed in autoconf 3.0.
1314
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1315
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1316
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1317
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323
if test -n "$ac_prev"; then
1324
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1325
as_fn_error "missing argument to $ac_option"
1328
if test -n "$ac_unrecognized_opts"; then
1329
case $enable_option_checking in
1331
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1332
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336
# Check all directory arguments for consistency.
1337
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338
datadir sysconfdir sharedstatedir localstatedir includedir \
1339
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340
libdir localedir mandir
1342
eval ac_val=\$$ac_var
1343
# Remove trailing slashes.
1346
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1347
eval $ac_var=\$ac_val;;
1349
# Be sure to have absolute directory names.
1351
[\\/$]* | ?:[\\/]* ) continue;;
1352
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1357
# There might be people who depend on the old broken behavior: `$host'
1358
# used to hold the argument of --host etc.
1359
# FIXME: To remove some day.
1362
target=$target_alias
1364
# FIXME: To remove some day.
1365
if test "x$host_alias" != x; then
1366
if test "x$build_alias" = x; then
1367
cross_compiling=maybe
1368
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369
If a cross compiler is detected then cross compile mode will be used." >&2
1370
elif test "x$build_alias" != "x$host_alias"; then
1376
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
test "$silent" = yes && exec 6>/dev/null
1381
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382
ac_ls_di=`ls -di .` &&
1383
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384
as_fn_error "working directory cannot be determined"
1385
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386
as_fn_error "pwd does not report name of working directory"
1389
# Find the source files, if location was not specified.
1390
if test -z "$srcdir"; then
1391
ac_srcdir_defaulted=yes
1392
# Try the directory containing this script, then the parent directory.
1393
ac_confdir=`$as_dirname -- "$as_myself" ||
1394
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395
X"$as_myself" : 'X\(//\)[^/]' \| \
1396
X"$as_myself" : 'X\(//\)$' \| \
1397
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398
$as_echo X"$as_myself" |
1399
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417
if test ! -r "$srcdir/$ac_unique_file"; then
1421
ac_srcdir_defaulted=no
1423
if test ! -r "$srcdir/$ac_unique_file"; then
1424
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1427
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1431
# When building in place, set srcdir=.
1432
if test "$ac_abs_confdir" = "$ac_pwd"; then
1435
# Remove unnecessary trailing slashes from srcdir.
1436
# Double slashes in file names in object file debugging info
1437
# mess up M-x gdb in Emacs.
1439
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441
for ac_var in $ac_precious_vars; do
1442
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443
eval ac_env_${ac_var}_value=\$${ac_var}
1444
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449
# Report the --help message.
1451
if test "$ac_init_help" = "long"; then
1452
# Omit some internal or obsolete options to make the list less imposing.
1453
# This message is too long to be a string in the A/UX 3.1 sh.
1455
\`configure' configures libvdpau 0.4 to adapt to many kinds of systems.
1457
Usage: $0 [OPTION]... [VAR=VALUE]...
1459
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460
VAR=VALUE. See below for descriptions of some of the useful variables.
1462
Defaults for the options are specified in brackets.
1465
-h, --help display this help and exit
1466
--help=short display options specific to this package
1467
--help=recursive display the short help of all the included packages
1468
-V, --version display version information and exit
1469
-q, --quiet, --silent do not print \`checking...' messages
1470
--cache-file=FILE cache test results in FILE [disabled]
1471
-C, --config-cache alias for \`--cache-file=config.cache'
1472
-n, --no-create do not create output files
1473
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1475
Installation directories:
1476
--prefix=PREFIX install architecture-independent files in PREFIX
1477
[$ac_default_prefix]
1478
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481
By default, \`make install' will install all the files in
1482
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484
for instance \`--prefix=\$HOME'.
1486
For better control, use the options below.
1488
Fine tuning of the installation directories:
1489
--bindir=DIR user executables [EPREFIX/bin]
1490
--sbindir=DIR system admin executables [EPREFIX/sbin]
1491
--libexecdir=DIR program executables [EPREFIX/libexec]
1492
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495
--libdir=DIR object code libraries [EPREFIX/lib]
1496
--includedir=DIR C header files [PREFIX/include]
1497
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1498
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500
--infodir=DIR info documentation [DATAROOTDIR/info]
1501
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502
--mandir=DIR man documentation [DATAROOTDIR/man]
1503
--docdir=DIR documentation root [DATAROOTDIR/doc/libvdpau]
1504
--htmldir=DIR html documentation [DOCDIR]
1505
--dvidir=DIR dvi documentation [DOCDIR]
1506
--pdfdir=DIR pdf documentation [DOCDIR]
1507
--psdir=DIR ps documentation [DOCDIR]
1513
--program-prefix=PREFIX prepend PREFIX to installed program names
1514
--program-suffix=SUFFIX append SUFFIX to installed program names
1515
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1518
--build=BUILD configure for building on BUILD [guessed]
1519
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1523
if test -n "$ac_init_help"; then
1524
case $ac_init_help in
1525
short | recursive ) echo "Configuration of libvdpau 0.4:";;
1530
--disable-option-checking ignore unrecognized --enable/--with options
1531
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1533
--enable-maintainer-mode enable make rules and dependencies not useful
1534
(and sometimes confusing) to the casual installer
1535
--enable-static[=PKGS] build static libraries [default=no]
1536
--disable-dependency-tracking speeds up one-time build
1537
--enable-dependency-tracking do not reject slow dependency extractors
1538
--enable-shared[=PKGS] build shared libraries [default=yes]
1539
--enable-fast-install[=PKGS]
1540
optimize for fast installation [default=yes]
1541
--disable-libtool-lock avoid locking (might break parallel builds)
1542
--disable-dri2 Disable driver name query through DRI2 (default:
1544
--disable-documentation Disable Doxygen documentation (default: auto)
1547
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1549
--with-pic try to use only PIC/non-PIC objects [default=use
1551
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1552
--with-module-dir=DIR Default module directory [default=LIBDIR/vdpau]
1554
Some influential environment variables:
1555
CC C compiler command
1556
CFLAGS C compiler flags
1557
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558
nonstandard directory <lib dir>
1559
LIBS libraries to pass to the linker, e.g. -l<library>
1560
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561
you have headers in a nonstandard directory <include dir>
1562
CXX C++ compiler command
1563
CXXFLAGS C++ compiler flags
1565
CXXCPP C++ preprocessor
1566
PKG_CONFIG path to pkg-config utility
1567
X11_CFLAGS C compiler flags for X11, overriding pkg-config
1568
X11_LIBS linker flags for X11, overriding pkg-config
1570
C compiler flags for dri2proto, overriding pkg-config
1572
linker flags for dri2proto, overriding pkg-config
1573
XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1574
XEXT_LIBS linker flags for XEXT, overriding pkg-config
1576
Use these variables to override the choices made by `configure' or to help
1577
it to find libraries and programs with nonstandard names/locations.
1579
Report bugs to <xorg@lists.freedesktop.org>.
1584
if test "$ac_init_help" = "recursive"; then
1585
# If there are subdirs, report their specific --help.
1586
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587
test -d "$ac_dir" ||
1588
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596
# A ".." for each directory in $ac_dir_suffix.
1597
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598
case $ac_top_builddir_sub in
1599
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603
ac_abs_top_builddir=$ac_pwd
1604
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605
# for backward compatibility:
1606
ac_top_builddir=$ac_top_build_prefix
1609
.) # We are building in place.
1611
ac_top_srcdir=$ac_top_builddir_sub
1612
ac_abs_top_srcdir=$ac_pwd ;;
1613
[\\/]* | ?:[\\/]* ) # Absolute name.
1614
ac_srcdir=$srcdir$ac_dir_suffix;
1615
ac_top_srcdir=$srcdir
1616
ac_abs_top_srcdir=$srcdir ;;
1618
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619
ac_top_srcdir=$ac_top_build_prefix$srcdir
1620
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
cd "$ac_dir" || { ac_status=$?; continue; }
1625
# Check for guested configure.
1626
if test -f "$ac_srcdir/configure.gnu"; then
1628
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629
elif test -f "$ac_srcdir/configure"; then
1631
$SHELL "$ac_srcdir/configure" --help=recursive
1633
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635
cd "$ac_pwd" || { ac_status=$?; break; }
1639
test -n "$ac_init_help" && exit $ac_status
1640
if $ac_init_version; then
1642
libvdpau configure 0.4
1643
generated by GNU Autoconf 2.64
1645
Copyright (C) 2009 Free Software Foundation, Inc.
1646
This configure script is free software; the Free Software Foundation
1647
gives unlimited permission to copy, distribute and modify it.
1652
## ------------------------ ##
1653
## Autoconf initialization. ##
1654
## ------------------------ ##
1656
# ac_fn_c_try_compile LINENO
1657
# --------------------------
1658
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1659
ac_fn_c_try_compile ()
1661
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662
rm -f conftest.$ac_objext
1663
if { { ac_try="$ac_compile"
1665
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666
*) ac_try_echo=$ac_try;;
1668
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669
$as_echo "$ac_try_echo"; } >&5
1670
(eval "$ac_compile") 2>conftest.err
1672
if test -s conftest.err; then
1673
grep -v '^ *+' conftest.err >conftest.er1
1674
cat conftest.er1 >&5
1675
mv -f conftest.er1 conftest.err
1677
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678
test $ac_status = 0; } && {
1679
test -z "$ac_c_werror_flag" ||
1680
test ! -s conftest.err
1681
} && test -s conftest.$ac_objext; then :
1684
$as_echo "$as_me: failed program was:" >&5
1685
sed 's/^/| /' conftest.$ac_ext >&5
1689
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692
} # ac_fn_c_try_compile
1694
# ac_fn_cxx_try_compile LINENO
1695
# ----------------------------
1696
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1697
ac_fn_cxx_try_compile ()
1699
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700
rm -f conftest.$ac_objext
1701
if { { ac_try="$ac_compile"
1703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704
*) ac_try_echo=$ac_try;;
1706
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707
$as_echo "$ac_try_echo"; } >&5
1708
(eval "$ac_compile") 2>conftest.err
1710
if test -s conftest.err; then
1711
grep -v '^ *+' conftest.err >conftest.er1
1712
cat conftest.er1 >&5
1713
mv -f conftest.er1 conftest.err
1715
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716
test $ac_status = 0; } && {
1717
test -z "$ac_cxx_werror_flag" ||
1718
test ! -s conftest.err
1719
} && test -s conftest.$ac_objext; then :
1722
$as_echo "$as_me: failed program was:" >&5
1723
sed 's/^/| /' conftest.$ac_ext >&5
1727
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730
} # ac_fn_cxx_try_compile
1732
# ac_fn_c_try_link LINENO
1733
# -----------------------
1734
# Try to link conftest.$ac_ext, and return whether this succeeded.
1737
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738
rm -f conftest.$ac_objext conftest$ac_exeext
1739
if { { ac_try="$ac_link"
1741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742
*) ac_try_echo=$ac_try;;
1744
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745
$as_echo "$ac_try_echo"; } >&5
1746
(eval "$ac_link") 2>conftest.err
1748
if test -s conftest.err; then
1749
grep -v '^ *+' conftest.err >conftest.er1
1750
cat conftest.er1 >&5
1751
mv -f conftest.er1 conftest.err
1753
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754
test $ac_status = 0; } && {
1755
test -z "$ac_c_werror_flag" ||
1756
test ! -s conftest.err
1757
} && test -s conftest$ac_exeext && {
1758
test "$cross_compiling" = yes ||
1759
$as_test_x conftest$ac_exeext
1763
$as_echo "$as_me: failed program was:" >&5
1764
sed 's/^/| /' conftest.$ac_ext >&5
1768
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770
# interfere with the next link command; also delete a directory that is
1771
# left behind by Apple's compiler. We do this before executing the actions.
1772
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776
} # ac_fn_c_try_link
1778
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779
# -------------------------------------------------------
1780
# Tests whether HEADER exists and can be compiled using the include files in
1781
# INCLUDES, setting the cache variable VAR accordingly.
1782
ac_fn_c_check_header_compile ()
1784
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786
$as_echo_n "checking for $2... " >&6; }
1787
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788
$as_echo_n "(cached) " >&6
1790
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791
/* end confdefs.h. */
1795
if ac_fn_c_try_compile "$LINENO"; then :
1800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804
$as_echo "$ac_res" >&6; }
1805
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807
} # ac_fn_c_check_header_compile
1809
# ac_fn_c_try_cpp LINENO
1810
# ----------------------
1811
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815
if { { ac_try="$ac_cpp conftest.$ac_ext"
1817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818
*) ac_try_echo=$ac_try;;
1820
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821
$as_echo "$ac_try_echo"; } >&5
1822
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824
if test -s conftest.err; then
1825
grep -v '^ *+' conftest.err >conftest.er1
1826
cat conftest.er1 >&5
1827
mv -f conftest.er1 conftest.err
1829
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830
test $ac_status = 0; } >/dev/null && {
1831
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832
test ! -s conftest.err
1836
$as_echo "$as_me: failed program was:" >&5
1837
sed 's/^/| /' conftest.$ac_ext >&5
1841
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846
# ac_fn_c_try_run LINENO
1847
# ----------------------
1848
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849
# that executables *can* be run.
1852
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853
if { { ac_try="$ac_link"
1855
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856
*) ac_try_echo=$ac_try;;
1858
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859
$as_echo "$ac_try_echo"; } >&5
1860
(eval "$ac_link") 2>&5
1862
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864
{ { case "(($ac_try" in
1865
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866
*) ac_try_echo=$ac_try;;
1868
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869
$as_echo "$ac_try_echo"; } >&5
1870
(eval "$ac_try") 2>&5
1872
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873
test $ac_status = 0; }; }; then :
1876
$as_echo "$as_me: program exited with status $ac_status" >&5
1877
$as_echo "$as_me: failed program was:" >&5
1878
sed 's/^/| /' conftest.$ac_ext >&5
1880
ac_retval=$ac_status
1882
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
# ac_fn_c_check_func LINENO FUNC VAR
1889
# ----------------------------------
1890
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1891
ac_fn_c_check_func ()
1893
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895
$as_echo_n "checking for $2... " >&6; }
1896
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897
$as_echo_n "(cached) " >&6
1899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900
/* end confdefs.h. */
1901
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1903
#define $2 innocuous_$2
1905
/* System header to define __stub macros and hopefully few prototypes,
1906
which can conflict with char $2 (); below.
1907
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908
<limits.h> exists even on freestanding compilers. */
1911
# include <limits.h>
1913
# include <assert.h>
1918
/* Override any GCC internal prototype to avoid an error.
1919
Use char because int might match the return type of a GCC
1920
builtin and then its argument prototype would still apply. */
1925
/* The GNU C library defines this for functions which it implements
1926
to always fail with ENOSYS. Some functions are actually named
1927
something starting with __ and the normal name is an alias. */
1928
#if defined __stub_$2 || defined __stub___$2
1940
if ac_fn_c_try_link "$LINENO"; then :
1945
rm -f core conftest.err conftest.$ac_objext \
1946
conftest$ac_exeext conftest.$ac_ext
1949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950
$as_echo "$ac_res" >&6; }
1951
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953
} # ac_fn_c_check_func
1955
# ac_fn_cxx_try_cpp LINENO
1956
# ------------------------
1957
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958
ac_fn_cxx_try_cpp ()
1960
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961
if { { ac_try="$ac_cpp conftest.$ac_ext"
1963
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964
*) ac_try_echo=$ac_try;;
1966
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967
$as_echo "$ac_try_echo"; } >&5
1968
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970
if test -s conftest.err; then
1971
grep -v '^ *+' conftest.err >conftest.er1
1972
cat conftest.er1 >&5
1973
mv -f conftest.er1 conftest.err
1975
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976
test $ac_status = 0; } >/dev/null && {
1977
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1978
test ! -s conftest.err
1982
$as_echo "$as_me: failed program was:" >&5
1983
sed 's/^/| /' conftest.$ac_ext >&5
1987
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990
} # ac_fn_cxx_try_cpp
1992
# ac_fn_cxx_try_link LINENO
1993
# -------------------------
1994
# Try to link conftest.$ac_ext, and return whether this succeeded.
1995
ac_fn_cxx_try_link ()
1997
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998
rm -f conftest.$ac_objext conftest$ac_exeext
1999
if { { ac_try="$ac_link"
2001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002
*) ac_try_echo=$ac_try;;
2004
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005
$as_echo "$ac_try_echo"; } >&5
2006
(eval "$ac_link") 2>conftest.err
2008
if test -s conftest.err; then
2009
grep -v '^ *+' conftest.err >conftest.er1
2010
cat conftest.er1 >&5
2011
mv -f conftest.er1 conftest.err
2013
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014
test $ac_status = 0; } && {
2015
test -z "$ac_cxx_werror_flag" ||
2016
test ! -s conftest.err
2017
} && test -s conftest$ac_exeext && {
2018
test "$cross_compiling" = yes ||
2019
$as_test_x conftest$ac_exeext
2023
$as_echo "$as_me: failed program was:" >&5
2024
sed 's/^/| /' conftest.$ac_ext >&5
2028
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2029
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2030
# interfere with the next link command; also delete a directory that is
2031
# left behind by Apple's compiler. We do this before executing the actions.
2032
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
} # ac_fn_cxx_try_link
2037
cat >config.log <<_ACEOF
2038
This file contains any messages produced by compilers while
2039
running configure, to aid debugging if configure makes a mistake.
2041
It was created by libvdpau $as_me 0.4, which was
2042
generated by GNU Autoconf 2.64. Invocation command line was
2054
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2060
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2063
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2064
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2066
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2067
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077
test -z "$as_dir" && as_dir=.
2078
$as_echo "PATH: $as_dir"
2094
# Keep a trace of the command line.
2095
# Strip out --no-create and --no-recursion so they do not pile up.
2096
# Strip out --silent because we don't want to record it for future runs.
2097
# Also quote any args containing shell meta-characters.
2098
# Make two passes to allow for proper duplicate-argument suppression.
2102
ac_must_keep_next=false
2108
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110
| -silent | --silent | --silen | --sile | --sil)
2113
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2116
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2118
as_fn_append ac_configure_args1 " '$ac_arg'"
2119
if test $ac_must_keep_next = true; then
2120
ac_must_keep_next=false # Got value, back to normal.
2123
*=* | --config-cache | -C | -disable-* | --disable-* \
2124
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126
| -with-* | --with-* | -without-* | --without-* | --x)
2127
case "$ac_configure_args0 " in
2128
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2131
-* ) ac_must_keep_next=true ;;
2134
as_fn_append ac_configure_args " '$ac_arg'"
2139
{ ac_configure_args0=; unset ac_configure_args0;}
2140
{ ac_configure_args1=; unset ac_configure_args1;}
2142
# When interrupted or exit'd, cleanup temporary files, and complete
2143
# config.log. We remove comments because anyway the quotes in there
2144
# would cause problems or look ugly.
2145
# WARNING: Use '\'' to represent an apostrophe within the trap.
2146
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2147
trap 'exit_status=$?
2148
# Save into config.log some information that might help in debugging.
2153
## ---------------- ##
2154
## Cache variables. ##
2155
## ---------------- ##
2158
# The following way of writing the cache mishandles newlines in values,
2160
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2161
eval ac_val=\$$ac_var
2165
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2166
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169
_ | IFS | as_nl) ;; #(
2170
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2171
*) { eval $ac_var=; unset $ac_var;} ;;
2176
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2177
*${as_nl}ac_space=\ *)
2179
"s/'\''/'\''\\\\'\'''\''/g;
2180
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2191
## ----------------- ##
2192
## Output variables. ##
2193
## ----------------- ##
2196
for ac_var in $ac_subst_vars
2198
eval ac_val=\$$ac_var
2200
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2202
$as_echo "$ac_var='\''$ac_val'\''"
2206
if test -n "$ac_subst_files"; then
2208
## ------------------- ##
2209
## File substitutions. ##
2210
## ------------------- ##
2213
for ac_var in $ac_subst_files
2215
eval ac_val=\$$ac_var
2217
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219
$as_echo "$ac_var='\''$ac_val'\''"
2224
if test -s confdefs.h; then
2234
test "$ac_signal" != 0 &&
2235
$as_echo "$as_me: caught signal $ac_signal"
2236
$as_echo "$as_me: exit $exit_status"
2238
rm -f core *.core core.conftest.* &&
2239
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2242
for ac_signal in 1 2 13 15; do
2243
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2247
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2248
rm -f -r conftest* confdefs.h
2250
$as_echo "/* confdefs.h */" > confdefs.h
2252
# Predefined preprocessor variables.
2254
cat >>confdefs.h <<_ACEOF
2255
#define PACKAGE_NAME "$PACKAGE_NAME"
2258
cat >>confdefs.h <<_ACEOF
2259
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2262
cat >>confdefs.h <<_ACEOF
2263
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2266
cat >>confdefs.h <<_ACEOF
2267
#define PACKAGE_STRING "$PACKAGE_STRING"
2270
cat >>confdefs.h <<_ACEOF
2271
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2274
cat >>confdefs.h <<_ACEOF
2275
#define PACKAGE_URL "$PACKAGE_URL"
2279
# Let the site file select an alternate cache file if it wants to.
2280
# Prefer an explicitly selected file to automatically selected ones.
2283
if test -n "$CONFIG_SITE"; then
2284
ac_site_file1=$CONFIG_SITE
2285
elif test "x$prefix" != xNONE; then
2286
ac_site_file1=$prefix/share/config.site
2287
ac_site_file2=$prefix/etc/config.site
2289
ac_site_file1=$ac_default_prefix/share/config.site
2290
ac_site_file2=$ac_default_prefix/etc/config.site
2292
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294
test "x$ac_site_file" = xNONE && continue
2295
if test -r "$ac_site_file"; then
2296
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2298
sed 's/^/| /' "$ac_site_file" >&5
2303
if test -r "$cache_file"; then
2304
# Some versions of bash will fail to source /dev/null (special
2305
# files actually), so we avoid doing that.
2306
if test -f "$cache_file"; then
2307
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2308
$as_echo "$as_me: loading cache $cache_file" >&6;}
2310
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2311
*) . "./$cache_file";;
2315
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2316
$as_echo "$as_me: creating cache $cache_file" >&6;}
2320
# Check that the precious variables saved in the cache have kept the same
2322
ac_cache_corrupted=false
2323
for ac_var in $ac_precious_vars; do
2324
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2325
eval ac_new_set=\$ac_env_${ac_var}_set
2326
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2327
eval ac_new_val=\$ac_env_${ac_var}_value
2328
case $ac_old_set,$ac_new_set in
2330
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2331
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2332
ac_cache_corrupted=: ;;
2334
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2335
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2336
ac_cache_corrupted=: ;;
2339
if test "x$ac_old_val" != "x$ac_new_val"; then
2340
# differences in whitespace do not lead to failure.
2341
ac_old_val_w=`echo x $ac_old_val`
2342
ac_new_val_w=`echo x $ac_new_val`
2343
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2344
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2345
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2346
ac_cache_corrupted=:
2348
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2349
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2350
eval $ac_var=\$ac_old_val
2352
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2353
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2354
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2355
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2358
# Pass precious variables to config.status.
2359
if test "$ac_new_set" = set; then
2361
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2362
*) ac_arg=$ac_var=$ac_new_val ;;
2364
case " $ac_configure_args " in
2365
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2366
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2370
if $ac_cache_corrupted; then
2371
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2374
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2375
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377
## -------------------- ##
2378
## Main body of script. ##
2379
## -------------------- ##
2382
ac_cpp='$CPP $CPPFLAGS'
2383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388
am__api_version='1.11'
2391
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2392
for ac_t in install-sh install.sh shtool; do
2393
if test -f "$ac_dir/$ac_t"; then
2395
ac_install_sh="$ac_aux_dir/$ac_t -c"
2400
if test -z "$ac_aux_dir"; then
2401
as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2404
# These three variables are undocumented and unsupported,
2405
# and are intended to be withdrawn in a future Autoconf release.
2406
# They can cause serious problems if a builder's source tree is in a directory
2407
# whose full name contains unusual characters.
2408
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2409
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2410
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2413
# Find a good install program. We prefer a C program (faster),
2414
# so one script is as good as another. But avoid the broken or
2415
# incompatible versions:
2416
# SysV /etc/install, /usr/sbin/install
2417
# SunOS /usr/etc/install
2418
# IRIX /sbin/install
2420
# AmigaOS /C/install, which installs bootblocks on floppy discs
2421
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424
# OS/2's system install, which has a completely different semantic
2425
# ./install, which can be erroneously created by make from ./install.sh.
2426
# Reject install programs that cannot install multiple files.
2427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2429
if test -z "$INSTALL"; then
2430
if test "${ac_cv_path_install+set}" = set; then :
2431
$as_echo_n "(cached) " >&6
2433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437
test -z "$as_dir" && as_dir=.
2438
# Account for people who put trailing slashes in PATH elements.
2439
case $as_dir/ in #((
2440
./ | .// | /[cC]/* | \
2441
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2445
# OSF1 and SCO ODT 3.0 have their own names for install.
2446
# Don't use installbsd from OSF since it installs stuff as root
2448
for ac_prog in ginstall scoinst install; do
2449
for ac_exec_ext in '' $ac_executable_extensions; do
2450
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2451
if test $ac_prog = install &&
2452
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453
# AIX install. It has an incompatible calling convention.
2455
elif test $ac_prog = install &&
2456
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457
# program-specific install script used by HP pwplus--don't use.
2460
rm -rf conftest.one conftest.two conftest.dir
2461
echo one > conftest.one
2462
echo two > conftest.two
2464
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465
test -s conftest.one && test -s conftest.two &&
2466
test -s conftest.dir/conftest.one &&
2467
test -s conftest.dir/conftest.two
2469
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482
rm -rf conftest.one conftest.two conftest.dir
2485
if test "${ac_cv_path_install+set}" = set; then
2486
INSTALL=$ac_cv_path_install
2488
# As a last resort, use the slow shell script. Don't cache a
2489
# value for INSTALL within a source directory, because that will
2490
# break other packages using the cache if that directory is
2491
# removed, or if the value is a relative name.
2492
INSTALL=$ac_install_sh
2495
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496
$as_echo "$INSTALL" >&6; }
2498
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499
# It thinks the first close brace ends the variable substitution.
2500
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2502
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2504
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507
$as_echo_n "checking whether build environment is sane... " >&6; }
2510
echo timestamp > conftest.file
2511
# Reject unsafe characters in $srcdir or the absolute working directory
2512
# name. Accept space and tab only in the latter.
2516
*[\\\"\#\$\&\'\`$am_lf]*)
2517
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2520
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2521
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2524
# Do `set' in a subshell so we don't clobber the current shell's
2525
# arguments. Must try -L first in case configure is actually a
2526
# symlink; some systems play weird games with the mod time of symlinks
2527
# (eg FreeBSD returns the mod time of the symlink's containing
2530
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531
if test "$*" = "X"; then
2533
set X `ls -t "$srcdir/configure" conftest.file`
2536
if test "$*" != "X $srcdir/configure conftest.file" \
2537
&& test "$*" != "X conftest.file $srcdir/configure"; then
2539
# If neither matched, then we have a broken ls. This can happen
2540
# if, for instance, CONFIG_SHELL is bash and it inherits a
2541
# broken ls alias from the environment. This has actually
2542
# happened. Such a system could not be considered "sane".
2543
as_fn_error "ls -t appears to fail. Make sure there is not a broken
2544
alias in your environment" "$LINENO" 5
2547
test "$2" = conftest.file
2553
as_fn_error "newly created file is older than distributed files!
2554
Check your system clock" "$LINENO" 5
2556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557
$as_echo "yes" >&6; }
2558
test "$program_prefix" != NONE &&
2559
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2560
# Use a double $ so make ignores it.
2561
test "$program_suffix" != NONE &&
2562
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2563
# Double any \ or $.
2564
# By default was `s,x,x', remove it if useless.
2565
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2566
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2568
# expand $ac_aux_dir to an absolute path
2569
am_aux_dir=`cd $ac_aux_dir && pwd`
2571
if test x"${MISSING+set}" != xset; then
2574
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2576
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2579
# Use eval to expand $SHELL
2580
if eval "$MISSING --run true"; then
2581
am_missing_run="$MISSING --run "
2584
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2585
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2588
if test x"${install_sh}" != xset; then
2591
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2593
install_sh="\${SHELL} $am_aux_dir/install-sh"
2597
# Installed binaries are usually stripped using `strip' when the user
2598
# run `make install-strip'. However `strip' might not be the right
2599
# tool to use in cross-compilation environments, therefore Automake
2600
# will honor the `STRIP' environment variable to overrule this program.
2601
if test "$cross_compiling" != no; then
2602
if test -n "$ac_tool_prefix"; then
2603
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2604
set dummy ${ac_tool_prefix}strip; ac_word=$2
2605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606
$as_echo_n "checking for $ac_word... " >&6; }
2607
if test "${ac_cv_prog_STRIP+set}" = set; then :
2608
$as_echo_n "(cached) " >&6
2610
if test -n "$STRIP"; then
2611
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617
test -z "$as_dir" && as_dir=.
2618
for ac_exec_ext in '' $ac_executable_extensions; do
2619
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2621
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630
STRIP=$ac_cv_prog_STRIP
2631
if test -n "$STRIP"; then
2632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2633
$as_echo "$STRIP" >&6; }
2635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636
$as_echo "no" >&6; }
2641
if test -z "$ac_cv_prog_STRIP"; then
2643
# Extract the first word of "strip", so it can be a program name with args.
2644
set dummy strip; ac_word=$2
2645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646
$as_echo_n "checking for $ac_word... " >&6; }
2647
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2648
$as_echo_n "(cached) " >&6
2650
if test -n "$ac_ct_STRIP"; then
2651
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657
test -z "$as_dir" && as_dir=.
2658
for ac_exec_ext in '' $ac_executable_extensions; do
2659
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660
ac_cv_prog_ac_ct_STRIP="strip"
2661
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2671
if test -n "$ac_ct_STRIP"; then
2672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2673
$as_echo "$ac_ct_STRIP" >&6; }
2675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676
$as_echo "no" >&6; }
2679
if test "x$ac_ct_STRIP" = x; then
2682
case $cross_compiling:$ac_tool_warned in
2684
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2686
ac_tool_warned=yes ;;
2691
STRIP="$ac_cv_prog_STRIP"
2695
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2698
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2699
if test -z "$MKDIR_P"; then
2700
if test "${ac_cv_path_mkdir+set}" = set; then :
2701
$as_echo_n "(cached) " >&6
2703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2707
test -z "$as_dir" && as_dir=.
2708
for ac_prog in mkdir gmkdir; do
2709
for ac_exec_ext in '' $ac_executable_extensions; do
2710
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2711
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2712
'mkdir (GNU coreutils) '* | \
2713
'mkdir (coreutils) '* | \
2714
'mkdir (fileutils) '4.1*)
2715
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2725
if test "${ac_cv_path_mkdir+set}" = set; then
2726
MKDIR_P="$ac_cv_path_mkdir -p"
2728
# As a last resort, use the slow shell script. Don't cache a
2729
# value for MKDIR_P within a source directory, because that will
2730
# break other packages using the cache if that directory is
2731
# removed, or if the value is a relative name.
2732
test -d ./--version && rmdir ./--version
2733
MKDIR_P="$ac_install_sh -d"
2736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2737
$as_echo "$MKDIR_P" >&6; }
2741
[\\/$]* | ?:[\\/]*) ;;
2742
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2745
for ac_prog in gawk mawk nawk awk
2747
# Extract the first word of "$ac_prog", so it can be a program name with args.
2748
set dummy $ac_prog; ac_word=$2
2749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750
$as_echo_n "checking for $ac_word... " >&6; }
2751
if test "${ac_cv_prog_AWK+set}" = set; then :
2752
$as_echo_n "(cached) " >&6
2754
if test -n "$AWK"; then
2755
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2757
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761
test -z "$as_dir" && as_dir=.
2762
for ac_exec_ext in '' $ac_executable_extensions; do
2763
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764
ac_cv_prog_AWK="$ac_prog"
2765
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775
if test -n "$AWK"; then
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2777
$as_echo "$AWK" >&6; }
2779
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780
$as_echo "no" >&6; }
2784
test -n "$AWK" && break
2787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2788
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2790
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2791
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2792
$as_echo_n "(cached) " >&6
2794
cat >conftest.make <<\_ACEOF
2797
@echo '@@@%%%=$(MAKE)=@@@%%%'
2799
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2800
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2802
eval ac_cv_prog_make_${ac_make}_set=yes;;
2804
eval ac_cv_prog_make_${ac_make}_set=no;;
2808
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2810
$as_echo "yes" >&6; }
2813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814
$as_echo "no" >&6; }
2815
SET_MAKE="MAKE=${MAKE-make}"
2818
rm -rf .tst 2>/dev/null
2819
mkdir .tst 2>/dev/null
2820
if test -d .tst; then
2825
rmdir .tst 2>/dev/null
2827
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2828
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2829
# is not polluted with repeated "-I."
2830
am__isrc=' -I$(srcdir)'
2831
# test to see if srcdir already configured
2832
if test -f $srcdir/config.status; then
2833
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2837
# test whether we have cygpath
2838
if test -z "$CYGPATH_W"; then
2839
if (cygpath --version) >/dev/null 2>/dev/null; then
2840
CYGPATH_W='cygpath -w'
2847
# Define the identity of the package.
2852
cat >>confdefs.h <<_ACEOF
2853
#define PACKAGE "$PACKAGE"
2857
cat >>confdefs.h <<_ACEOF
2858
#define VERSION "$VERSION"
2861
# Some tools Automake needs.
2863
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2866
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2869
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2872
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2875
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2877
# We need awk for the "check" target. The system "awk" is bad on
2879
# Always define AMTAR for backward compatibility.
2881
AMTAR=${AMTAR-"${am_missing_run}tar"}
2883
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2891
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2892
# Check whether --enable-maintainer-mode was given.
2893
if test "${enable_maintainer_mode+set}" = set; then :
2894
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2896
USE_MAINTAINER_MODE=no
2899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2900
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2901
if test $USE_MAINTAINER_MODE = yes; then
2902
MAINTAINER_MODE_TRUE=
2903
MAINTAINER_MODE_FALSE='#'
2905
MAINTAINER_MODE_TRUE='#'
2906
MAINTAINER_MODE_FALSE=
2909
MAINT=$MAINTAINER_MODE_TRUE
2913
ac_config_headers="$ac_config_headers config.h"
2916
# Disable static libraries by default. Use --enable-static if you really want
2918
# Check whether --enable-static was given.
2919
if test "${enable_static+set}" = set; then :
2920
enableval=$enable_static; p=${PACKAGE-default}
2922
yes) enable_static=yes ;;
2923
no) enable_static=no ;;
2926
# Look at the argument we got. We use all the common list separators.
2927
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2928
for pkg in $enableval; do
2930
if test "X$pkg" = "X$p"; then
2950
# Check for programs.
2952
ac_cpp='$CPP $CPPFLAGS'
2953
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956
if test -n "$ac_tool_prefix"; then
2957
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2958
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960
$as_echo_n "checking for $ac_word... " >&6; }
2961
if test "${ac_cv_prog_CC+set}" = set; then :
2962
$as_echo_n "(cached) " >&6
2964
if test -n "$CC"; then
2965
ac_cv_prog_CC="$CC" # Let the user override the test.
2967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971
test -z "$as_dir" && as_dir=.
2972
for ac_exec_ext in '' $ac_executable_extensions; do
2973
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2975
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985
if test -n "$CC"; then
2986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987
$as_echo "$CC" >&6; }
2989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990
$as_echo "no" >&6; }
2995
if test -z "$ac_cv_prog_CC"; then
2997
# Extract the first word of "gcc", so it can be a program name with args.
2998
set dummy gcc; ac_word=$2
2999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000
$as_echo_n "checking for $ac_word... " >&6; }
3001
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3002
$as_echo_n "(cached) " >&6
3004
if test -n "$ac_ct_CC"; then
3005
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011
test -z "$as_dir" && as_dir=.
3012
for ac_exec_ext in '' $ac_executable_extensions; do
3013
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014
ac_cv_prog_ac_ct_CC="gcc"
3015
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025
if test -n "$ac_ct_CC"; then
3026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3027
$as_echo "$ac_ct_CC" >&6; }
3029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030
$as_echo "no" >&6; }
3033
if test "x$ac_ct_CC" = x; then
3036
case $cross_compiling:$ac_tool_warned in
3038
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040
ac_tool_warned=yes ;;
3048
if test -z "$CC"; then
3049
if test -n "$ac_tool_prefix"; then
3050
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3051
set dummy ${ac_tool_prefix}cc; ac_word=$2
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053
$as_echo_n "checking for $ac_word... " >&6; }
3054
if test "${ac_cv_prog_CC+set}" = set; then :
3055
$as_echo_n "(cached) " >&6
3057
if test -n "$CC"; then
3058
ac_cv_prog_CC="$CC" # Let the user override the test.
3060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064
test -z "$as_dir" && as_dir=.
3065
for ac_exec_ext in '' $ac_executable_extensions; do
3066
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067
ac_cv_prog_CC="${ac_tool_prefix}cc"
3068
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078
if test -n "$CC"; then
3079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080
$as_echo "$CC" >&6; }
3082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083
$as_echo "no" >&6; }
3089
if test -z "$CC"; then
3090
# Extract the first word of "cc", so it can be a program name with args.
3091
set dummy cc; ac_word=$2
3092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093
$as_echo_n "checking for $ac_word... " >&6; }
3094
if test "${ac_cv_prog_CC+set}" = set; then :
3095
$as_echo_n "(cached) " >&6
3097
if test -n "$CC"; then
3098
ac_cv_prog_CC="$CC" # Let the user override the test.
3101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105
test -z "$as_dir" && as_dir=.
3106
for ac_exec_ext in '' $ac_executable_extensions; do
3107
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3109
ac_prog_rejected=yes
3113
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120
if test $ac_prog_rejected = yes; then
3121
# We found a bogon in the path, so make sure we never use it.
3122
set dummy $ac_cv_prog_CC
3124
if test $# != 0; then
3125
# We chose a different compiler from the bogus one.
3126
# However, it has the same basename, so the bogon will be chosen
3127
# first if we set CC to just the basename; use the full file name.
3129
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3135
if test -n "$CC"; then
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137
$as_echo "$CC" >&6; }
3139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140
$as_echo "no" >&6; }
3145
if test -z "$CC"; then
3146
if test -n "$ac_tool_prefix"; then
3147
for ac_prog in cl.exe
3149
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3150
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152
$as_echo_n "checking for $ac_word... " >&6; }
3153
if test "${ac_cv_prog_CC+set}" = set; then :
3154
$as_echo_n "(cached) " >&6
3156
if test -n "$CC"; then
3157
ac_cv_prog_CC="$CC" # Let the user override the test.
3159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163
test -z "$as_dir" && as_dir=.
3164
for ac_exec_ext in '' $ac_executable_extensions; do
3165
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3167
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177
if test -n "$CC"; then
3178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179
$as_echo "$CC" >&6; }
3181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182
$as_echo "no" >&6; }
3186
test -n "$CC" && break
3189
if test -z "$CC"; then
3191
for ac_prog in cl.exe
3193
# Extract the first word of "$ac_prog", so it can be a program name with args.
3194
set dummy $ac_prog; ac_word=$2
3195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196
$as_echo_n "checking for $ac_word... " >&6; }
3197
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3198
$as_echo_n "(cached) " >&6
3200
if test -n "$ac_ct_CC"; then
3201
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207
test -z "$as_dir" && as_dir=.
3208
for ac_exec_ext in '' $ac_executable_extensions; do
3209
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210
ac_cv_prog_ac_ct_CC="$ac_prog"
3211
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221
if test -n "$ac_ct_CC"; then
3222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3223
$as_echo "$ac_ct_CC" >&6; }
3225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226
$as_echo "no" >&6; }
3230
test -n "$ac_ct_CC" && break
3233
if test "x$ac_ct_CC" = x; then
3236
case $cross_compiling:$ac_tool_warned in
3238
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3239
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3240
ac_tool_warned=yes ;;
3249
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251
as_fn_error "no acceptable C compiler found in \$PATH
3252
See \`config.log' for more details." "$LINENO" 5; }
3254
# Provide some information about the compiler.
3255
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3258
for ac_option in --version -v -V -qversion; do
3259
{ { ac_try="$ac_compiler $ac_option >&5"
3261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262
*) ac_try_echo=$ac_try;;
3264
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265
$as_echo "$ac_try_echo"; } >&5
3266
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3268
if test -s conftest.err; then
3270
... rest of stderr output deleted ...
3271
10q' conftest.err >conftest.er1
3272
cat conftest.er1 >&5
3273
rm -f conftest.er1 conftest.err
3275
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276
test $ac_status = 0; }
3279
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280
/* end confdefs.h. */
3285
FILE *f = fopen ("conftest.out", "w");
3286
return ferror (f) || fclose (f) != 0;
3292
ac_clean_files_save=$ac_clean_files
3293
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3294
# Try to create an executable without -o first, disregard a.out.
3295
# It will help us diagnose broken compilers, and finding out an intuition
3297
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3298
$as_echo_n "checking for C compiler default output file name... " >&6; }
3299
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301
# The possible output files:
3302
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305
for ac_file in $ac_files
3308
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314
if { { ac_try="$ac_link_default"
3316
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317
*) ac_try_echo=$ac_try;;
3319
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320
$as_echo "$ac_try_echo"; } >&5
3321
(eval "$ac_link_default") 2>&5
3323
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324
test $ac_status = 0; }; then :
3325
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3328
# so that the user can short-circuit this test for compilers unknown to
3330
for ac_file in $ac_files ''
3332
test -f "$ac_file" || continue
3334
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337
# We found the default executable, but exeext='' is most
3341
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345
# We set ac_cv_exeext here because the later test for it is not
3346
# safe: cross compilers may not add the suffix if given an `-o'
3347
# argument, so we may need to know it at that point already.
3348
# Even if this section looks crufty: it has the advantage of
3355
test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3361
$as_echo "$ac_file" >&6; }
3362
if test -z "$ac_file"; then :
3363
$as_echo "$as_me: failed program was:" >&5
3364
sed 's/^/| /' conftest.$ac_ext >&5
3366
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368
{ as_fn_set_status 77
3369
as_fn_error "C compiler cannot create executables
3370
See \`config.log' for more details." "$LINENO" 5; }; }
3372
ac_exeext=$ac_cv_exeext
3374
# Check that the compiler produces executables we can run. If not, either
3375
# the compiler is broken, or we cross compile.
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3377
$as_echo_n "checking whether the C compiler works... " >&6; }
3378
# If not cross compiling, check that we can run a simple program.
3379
if test "$cross_compiling" != yes; then
3380
if { ac_try='./$ac_file'
3381
{ { case "(($ac_try" in
3382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383
*) ac_try_echo=$ac_try;;
3385
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386
$as_echo "$ac_try_echo"; } >&5
3387
(eval "$ac_try") 2>&5
3389
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390
test $ac_status = 0; }; }; then
3393
if test "$cross_compiling" = maybe; then
3396
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398
as_fn_error "cannot run C compiled programs.
3399
If you meant to cross compile, use \`--host'.
3400
See \`config.log' for more details." "$LINENO" 5; }
3404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3405
$as_echo "yes" >&6; }
3407
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3408
ac_clean_files=$ac_clean_files_save
3409
# Check that the compiler produces executables we can run. If not, either
3410
# the compiler is broken, or we cross compile.
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3412
$as_echo_n "checking whether we are cross compiling... " >&6; }
3413
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414
$as_echo "$cross_compiling" >&6; }
3416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3417
$as_echo_n "checking for suffix of executables... " >&6; }
3418
if { { ac_try="$ac_link"
3420
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421
*) ac_try_echo=$ac_try;;
3423
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424
$as_echo "$ac_try_echo"; } >&5
3425
(eval "$ac_link") 2>&5
3427
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428
test $ac_status = 0; }; then :
3429
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3430
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3431
# work properly (i.e., refer to `conftest.exe'), while it won't with
3433
for ac_file in conftest.exe conftest conftest.*; do
3434
test -f "$ac_file" || continue
3436
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3443
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445
as_fn_error "cannot compute suffix of executables: cannot compile and link
3446
See \`config.log' for more details." "$LINENO" 5; }
3448
rm -f conftest$ac_cv_exeext
3449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3450
$as_echo "$ac_cv_exeext" >&6; }
3452
rm -f conftest.$ac_ext
3453
EXEEXT=$ac_cv_exeext
3455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3456
$as_echo_n "checking for suffix of object files... " >&6; }
3457
if test "${ac_cv_objext+set}" = set; then :
3458
$as_echo_n "(cached) " >&6
3460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461
/* end confdefs.h. */
3471
rm -f conftest.o conftest.obj
3472
if { { ac_try="$ac_compile"
3474
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475
*) ac_try_echo=$ac_try;;
3477
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478
$as_echo "$ac_try_echo"; } >&5
3479
(eval "$ac_compile") 2>&5
3481
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482
test $ac_status = 0; }; then :
3483
for ac_file in conftest.o conftest.obj conftest.*; do
3484
test -f "$ac_file" || continue;
3486
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3487
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3492
$as_echo "$as_me: failed program was:" >&5
3493
sed 's/^/| /' conftest.$ac_ext >&5
3495
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497
as_fn_error "cannot compute suffix of object files: cannot compile
3498
See \`config.log' for more details." "$LINENO" 5; }
3500
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3503
$as_echo "$ac_cv_objext" >&6; }
3504
OBJEXT=$ac_cv_objext
3506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3507
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3508
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3509
$as_echo_n "(cached) " >&6
3511
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512
/* end confdefs.h. */
3525
if ac_fn_c_try_compile "$LINENO"; then :
3530
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3535
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3536
if test $ac_compiler_gnu = yes; then
3541
ac_test_CFLAGS=${CFLAGS+set}
3542
ac_save_CFLAGS=$CFLAGS
3543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3544
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3545
if test "${ac_cv_prog_cc_g+set}" = set; then :
3546
$as_echo_n "(cached) " >&6
3548
ac_save_c_werror_flag=$ac_c_werror_flag
3549
ac_c_werror_flag=yes
3552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553
/* end confdefs.h. */
3563
if ac_fn_c_try_compile "$LINENO"; then :
3567
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568
/* end confdefs.h. */
3578
if ac_fn_c_try_compile "$LINENO"; then :
3581
ac_c_werror_flag=$ac_save_c_werror_flag
3583
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584
/* end confdefs.h. */
3594
if ac_fn_c_try_compile "$LINENO"; then :
3597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602
ac_c_werror_flag=$ac_save_c_werror_flag
3604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3605
$as_echo "$ac_cv_prog_cc_g" >&6; }
3606
if test "$ac_test_CFLAGS" = set; then
3607
CFLAGS=$ac_save_CFLAGS
3608
elif test $ac_cv_prog_cc_g = yes; then
3609
if test "$GCC" = yes; then
3615
if test "$GCC" = yes; then
3621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3622
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3623
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3624
$as_echo_n "(cached) " >&6
3626
ac_cv_prog_cc_c89=no
3628
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629
/* end confdefs.h. */
3632
#include <sys/types.h>
3633
#include <sys/stat.h>
3634
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3635
struct buf { int x; };
3636
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3637
static char *e (p, i)
3643
static char *f (char * (*g) (char **, int), char **p, ...)
3648
s = g (p, va_arg (v,int));
3653
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3654
function prototypes and stuff, but not '\xHH' hex character constants.
3655
These don't provoke an error unfortunately, instead are silently treated
3656
as 'x'. The following induces an error, until -std is added to get
3657
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3658
array size at least. It's necessary to write '\x00'==0 to get something
3659
that's true only with -std. */
3660
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3662
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3663
inside strings and character constants. */
3665
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3667
int test (int i, double x);
3668
struct s1 {int (*f) (int a);};
3669
struct s2 {int (*f) (double a);};
3670
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3681
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3682
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3684
CC="$ac_save_CC $ac_arg"
3685
if ac_fn_c_try_compile "$LINENO"; then :
3686
ac_cv_prog_cc_c89=$ac_arg
3688
rm -f core conftest.err conftest.$ac_objext
3689
test "x$ac_cv_prog_cc_c89" != "xno" && break
3691
rm -f conftest.$ac_ext
3696
case "x$ac_cv_prog_cc_c89" in
3698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3699
$as_echo "none needed" >&6; } ;;
3701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3702
$as_echo "unsupported" >&6; } ;;
3704
CC="$CC $ac_cv_prog_cc_c89"
3705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3706
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3708
if test "x$ac_cv_prog_cc_c89" != xno; then :
3713
ac_cpp='$CPP $CPPFLAGS'
3714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717
DEPDIR="${am__leading_dot}deps"
3719
ac_config_commands="$ac_config_commands depfiles"
3722
am_make=${MAKE-make}
3723
cat > confinc << 'END'
3725
@echo this is the am__doit target
3728
# If we don't find an include directive, just comment out the code.
3729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3730
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3734
# First try GNU make style include.
3735
echo "include confinc" > confmf
3736
# Ignore all kinds of additional output from `make'.
3737
case `$am_make -s -f confmf 2> /dev/null` in #(
3738
*the\ am__doit\ target*)
3744
# Now try BSD make style include.
3745
if test "$am__include" = "#"; then
3746
echo '.include "confinc"' > confmf
3747
case `$am_make -s -f confmf 2> /dev/null` in #(
3748
*the\ am__doit\ target*)
3749
am__include=.include
3757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3758
$as_echo "$_am_result" >&6; }
3759
rm -f confinc confmf
3761
# Check whether --enable-dependency-tracking was given.
3762
if test "${enable_dependency_tracking+set}" = set; then :
3763
enableval=$enable_dependency_tracking;
3766
if test "x$enable_dependency_tracking" != xno; then
3767
am_depcomp="$ac_aux_dir/depcomp"
3770
if test "x$enable_dependency_tracking" != xno; then
3780
depcc="$CC" am_compiler_list=
3782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3783
$as_echo_n "checking dependency style of $depcc... " >&6; }
3784
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3785
$as_echo_n "(cached) " >&6
3787
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3788
# We make a subdir and do the tests there. Otherwise we can end up
3789
# making bogus files that we don't know about and never remove. For
3790
# instance it was reported that on HP-UX the gcc test will end up
3791
# making a dummy file named `D' -- because `-MD' means `put the output
3794
# Copy depcomp to subdir because otherwise we won't find it if we're
3795
# using a relative directory.
3796
cp "$am_depcomp" conftest.dir
3798
# We will build objects and dependencies in a subdirectory because
3799
# it helps to detect inapplicable dependency modes. For instance
3800
# both Tru64's cc and ICC support -MD to output dependencies as a
3801
# side effect of compilation, but ICC will put the dependencies in
3802
# the current directory while Tru64 will put them in the object
3806
am_cv_CC_dependencies_compiler_type=none
3807
if test "$am_compiler_list" = ""; then
3808
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3811
case " $depcc " in #(
3812
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3815
for depmode in $am_compiler_list; do
3816
# Setup a source with many dependencies, because some compilers
3817
# like to wrap large dependency lists on column 80 (with \), and
3818
# we should not choose a depcomp mode which is confused by this.
3820
# We need to recreate these files for each test, as the compiler may
3821
# overwrite some of them when testing with obscure command lines.
3822
# This happens at least with the AIX C compiler.
3824
for i in 1 2 3 4 5 6; do
3825
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3826
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827
# Solaris 8's {/usr,}/bin/sh.
3828
touch sub/conftst$i.h
3830
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3832
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3833
# mode. It turns out that the SunPro C++ compiler does not properly
3834
# handle `-M -o', and we need to detect this. Also, some Intel
3835
# versions had trouble with output in subdirs
3836
am__obj=sub/conftest.${OBJEXT-o}
3837
am__minus_obj="-o $am__obj"
3840
# This depmode causes a compiler race in universal mode.
3841
test "$am__universal" = false || continue
3844
# after this tag, mechanisms are not by side-effect, so they'll
3845
# only be used when explicitly requested
3846
if test "x$enable_dependency_tracking" = xyes; then
3852
msvisualcpp | msvcmsys)
3853
# This compiler won't grok `-c -o', but also, the minuso test has
3854
# not run yet. These depmodes are late enough in the game, and
3855
# so weak that their functioning should not be impacted.
3856
am__obj=conftest.${OBJEXT-o}
3861
if depmode=$depmode \
3862
source=sub/conftest.c object=$am__obj \
3863
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3864
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3865
>/dev/null 2>conftest.err &&
3866
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3867
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3868
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3869
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870
# icc doesn't choke on unknown options, it will just issue warnings
3871
# or remarks (even with -Werror). So we grep stderr for any message
3872
# that says an option was ignored or not supported.
3873
# When given -MP, icc 7.0 and 7.1 complain thusly:
3874
# icc: Command line warning: ignoring option '-M'; no argument required
3875
# The diagnosis changed in icc 8.0:
3876
# icc: Command line remark: option '-MP' not supported
3877
if (grep 'ignoring option' conftest.err ||
3878
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3879
am_cv_CC_dependencies_compiler_type=$depmode
3888
am_cv_CC_dependencies_compiler_type=none
3892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3893
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3894
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3897
test "x$enable_dependency_tracking" != xno \
3898
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3900
am__fastdepCC_FALSE='#'
3902
am__fastdepCC_TRUE='#'
3903
am__fastdepCC_FALSE=
3908
ac_cpp='$CXXCPP $CPPFLAGS'
3909
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3912
if test -z "$CXX"; then
3913
if test -n "$CCC"; then
3916
if test -n "$ac_tool_prefix"; then
3917
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3919
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3920
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922
$as_echo_n "checking for $ac_word... " >&6; }
3923
if test "${ac_cv_prog_CXX+set}" = set; then :
3924
$as_echo_n "(cached) " >&6
3926
if test -n "$CXX"; then
3927
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933
test -z "$as_dir" && as_dir=.
3934
for ac_exec_ext in '' $ac_executable_extensions; do
3935
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3937
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947
if test -n "$CXX"; then
3948
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3949
$as_echo "$CXX" >&6; }
3951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952
$as_echo "no" >&6; }
3956
test -n "$CXX" && break
3959
if test -z "$CXX"; then
3961
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3963
# Extract the first word of "$ac_prog", so it can be a program name with args.
3964
set dummy $ac_prog; ac_word=$2
3965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966
$as_echo_n "checking for $ac_word... " >&6; }
3967
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3968
$as_echo_n "(cached) " >&6
3970
if test -n "$ac_ct_CXX"; then
3971
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977
test -z "$as_dir" && as_dir=.
3978
for ac_exec_ext in '' $ac_executable_extensions; do
3979
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980
ac_cv_prog_ac_ct_CXX="$ac_prog"
3981
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3991
if test -n "$ac_ct_CXX"; then
3992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3993
$as_echo "$ac_ct_CXX" >&6; }
3995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996
$as_echo "no" >&6; }
4000
test -n "$ac_ct_CXX" && break
4003
if test "x$ac_ct_CXX" = x; then
4006
case $cross_compiling:$ac_tool_warned in
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010
ac_tool_warned=yes ;;
4018
# Provide some information about the compiler.
4019
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4022
for ac_option in --version -v -V -qversion; do
4023
{ { ac_try="$ac_compiler $ac_option >&5"
4025
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026
*) ac_try_echo=$ac_try;;
4028
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029
$as_echo "$ac_try_echo"; } >&5
4030
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4032
if test -s conftest.err; then
4034
... rest of stderr output deleted ...
4035
10q' conftest.err >conftest.er1
4036
cat conftest.er1 >&5
4037
rm -f conftest.er1 conftest.err
4039
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040
test $ac_status = 0; }
4043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4044
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4045
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4046
$as_echo_n "(cached) " >&6
4048
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049
/* end confdefs.h. */
4062
if ac_fn_cxx_try_compile "$LINENO"; then :
4067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4071
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4072
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4073
if test $ac_compiler_gnu = yes; then
4078
ac_test_CXXFLAGS=${CXXFLAGS+set}
4079
ac_save_CXXFLAGS=$CXXFLAGS
4080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4081
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4082
if test "${ac_cv_prog_cxx_g+set}" = set; then :
4083
$as_echo_n "(cached) " >&6
4085
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4086
ac_cxx_werror_flag=yes
4089
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090
/* end confdefs.h. */
4100
if ac_fn_cxx_try_compile "$LINENO"; then :
4101
ac_cv_prog_cxx_g=yes
4104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105
/* end confdefs.h. */
4115
if ac_fn_cxx_try_compile "$LINENO"; then :
4118
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121
/* end confdefs.h. */
4131
if ac_fn_cxx_try_compile "$LINENO"; then :
4132
ac_cv_prog_cxx_g=yes
4134
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4142
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4143
if test "$ac_test_CXXFLAGS" = set; then
4144
CXXFLAGS=$ac_save_CXXFLAGS
4145
elif test $ac_cv_prog_cxx_g = yes; then
4146
if test "$GXX" = yes; then
4152
if test "$GXX" = yes; then
4159
ac_cpp='$CPP $CPPFLAGS'
4160
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164
depcc="$CXX" am_compiler_list=
4166
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4167
$as_echo_n "checking dependency style of $depcc... " >&6; }
4168
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4169
$as_echo_n "(cached) " >&6
4171
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4172
# We make a subdir and do the tests there. Otherwise we can end up
4173
# making bogus files that we don't know about and never remove. For
4174
# instance it was reported that on HP-UX the gcc test will end up
4175
# making a dummy file named `D' -- because `-MD' means `put the output
4178
# Copy depcomp to subdir because otherwise we won't find it if we're
4179
# using a relative directory.
4180
cp "$am_depcomp" conftest.dir
4182
# We will build objects and dependencies in a subdirectory because
4183
# it helps to detect inapplicable dependency modes. For instance
4184
# both Tru64's cc and ICC support -MD to output dependencies as a
4185
# side effect of compilation, but ICC will put the dependencies in
4186
# the current directory while Tru64 will put them in the object
4190
am_cv_CXX_dependencies_compiler_type=none
4191
if test "$am_compiler_list" = ""; then
4192
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4195
case " $depcc " in #(
4196
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4199
for depmode in $am_compiler_list; do
4200
# Setup a source with many dependencies, because some compilers
4201
# like to wrap large dependency lists on column 80 (with \), and
4202
# we should not choose a depcomp mode which is confused by this.
4204
# We need to recreate these files for each test, as the compiler may
4205
# overwrite some of them when testing with obscure command lines.
4206
# This happens at least with the AIX C compiler.
4208
for i in 1 2 3 4 5 6; do
4209
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4210
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4211
# Solaris 8's {/usr,}/bin/sh.
4212
touch sub/conftst$i.h
4214
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4216
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4217
# mode. It turns out that the SunPro C++ compiler does not properly
4218
# handle `-M -o', and we need to detect this. Also, some Intel
4219
# versions had trouble with output in subdirs
4220
am__obj=sub/conftest.${OBJEXT-o}
4221
am__minus_obj="-o $am__obj"
4224
# This depmode causes a compiler race in universal mode.
4225
test "$am__universal" = false || continue
4228
# after this tag, mechanisms are not by side-effect, so they'll
4229
# only be used when explicitly requested
4230
if test "x$enable_dependency_tracking" = xyes; then
4236
msvisualcpp | msvcmsys)
4237
# This compiler won't grok `-c -o', but also, the minuso test has
4238
# not run yet. These depmodes are late enough in the game, and
4239
# so weak that their functioning should not be impacted.
4240
am__obj=conftest.${OBJEXT-o}
4245
if depmode=$depmode \
4246
source=sub/conftest.c object=$am__obj \
4247
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4248
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4249
>/dev/null 2>conftest.err &&
4250
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4251
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4252
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4253
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4254
# icc doesn't choke on unknown options, it will just issue warnings
4255
# or remarks (even with -Werror). So we grep stderr for any message
4256
# that says an option was ignored or not supported.
4257
# When given -MP, icc 7.0 and 7.1 complain thusly:
4258
# icc: Command line warning: ignoring option '-M'; no argument required
4259
# The diagnosis changed in icc 8.0:
4260
# icc: Command line remark: option '-MP' not supported
4261
if (grep 'ignoring option' conftest.err ||
4262
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4263
am_cv_CXX_dependencies_compiler_type=$depmode
4272
am_cv_CXX_dependencies_compiler_type=none
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4277
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4278
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4281
test "x$enable_dependency_tracking" != xno \
4282
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4283
am__fastdepCXX_TRUE=
4284
am__fastdepCXX_FALSE='#'
4286
am__fastdepCXX_TRUE='#'
4287
am__fastdepCXX_FALSE=
4293
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4294
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4299
macro_version='2.2.6'
4300
macro_revision='1.3012'
4314
ltmain="$ac_aux_dir/ltmain.sh"
4316
# Make sure we can run config.sub.
4317
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4318
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4321
$as_echo_n "checking build system type... " >&6; }
4322
if test "${ac_cv_build+set}" = set; then :
4323
$as_echo_n "(cached) " >&6
4325
ac_build_alias=$build_alias
4326
test "x$ac_build_alias" = x &&
4327
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4328
test "x$ac_build_alias" = x &&
4329
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4330
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4331
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4335
$as_echo "$ac_cv_build" >&6; }
4336
case $ac_cv_build in
4338
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4341
ac_save_IFS=$IFS; IFS='-'
4347
# Remember, the first character of IFS is used to create $*,
4348
# except with old shells:
4351
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4355
$as_echo_n "checking host system type... " >&6; }
4356
if test "${ac_cv_host+set}" = set; then :
4357
$as_echo_n "(cached) " >&6
4359
if test "x$host_alias" = x; then
4360
ac_cv_host=$ac_cv_build
4362
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4363
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4368
$as_echo "$ac_cv_host" >&6; }
4371
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4374
ac_save_IFS=$IFS; IFS='-'
4380
# Remember, the first character of IFS is used to create $*,
4381
# except with old shells:
4384
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4388
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4389
if test "${ac_cv_path_SED+set}" = set; then :
4390
$as_echo_n "(cached) " >&6
4392
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4393
for ac_i in 1 2 3 4 5 6 7; do
4394
ac_script="$ac_script$as_nl$ac_script"
4396
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4397
{ ac_script=; unset ac_script;}
4398
if test -z "$SED"; then
4399
ac_path_SED_found=false
4400
# Loop through the user's path and test for each of PROGNAME-LIST
4401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405
test -z "$as_dir" && as_dir=.
4406
for ac_prog in sed gsed; do
4407
for ac_exec_ext in '' $ac_executable_extensions; do
4408
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4409
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4410
# Check for GNU ac_path_SED and select it if it is found.
4411
# Check for GNU $ac_path_SED
4412
case `"$ac_path_SED" --version 2>&1` in
4414
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4417
$as_echo_n 0123456789 >"conftest.in"
4420
cat "conftest.in" "conftest.in" >"conftest.tmp"
4421
mv "conftest.tmp" "conftest.in"
4422
cp "conftest.in" "conftest.nl"
4423
$as_echo '' >> "conftest.nl"
4424
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426
as_fn_arith $ac_count + 1 && ac_count=$as_val
4427
if test $ac_count -gt ${ac_path_SED_max-0}; then
4428
# Best one so far, save it but keep looking for a better one
4429
ac_cv_path_SED="$ac_path_SED"
4430
ac_path_SED_max=$ac_count
4432
# 10*(2^10) chars as input seems more than enough
4433
test $ac_count -gt 10 && break
4435
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438
$ac_path_SED_found && break 3
4443
if test -z "$ac_cv_path_SED"; then
4444
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4452
$as_echo "$ac_cv_path_SED" >&6; }
4453
SED="$ac_cv_path_SED"
4456
test -z "$SED" && SED=sed
4457
Xsed="$SED -e 1s/^X//"
4469
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4470
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4471
if test "${ac_cv_path_GREP+set}" = set; then :
4472
$as_echo_n "(cached) " >&6
4474
if test -z "$GREP"; then
4475
ac_path_GREP_found=false
4476
# Loop through the user's path and test for each of PROGNAME-LIST
4477
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481
test -z "$as_dir" && as_dir=.
4482
for ac_prog in grep ggrep; do
4483
for ac_exec_ext in '' $ac_executable_extensions; do
4484
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4485
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4486
# Check for GNU ac_path_GREP and select it if it is found.
4487
# Check for GNU $ac_path_GREP
4488
case `"$ac_path_GREP" --version 2>&1` in
4490
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4493
$as_echo_n 0123456789 >"conftest.in"
4496
cat "conftest.in" "conftest.in" >"conftest.tmp"
4497
mv "conftest.tmp" "conftest.in"
4498
cp "conftest.in" "conftest.nl"
4499
$as_echo 'GREP' >> "conftest.nl"
4500
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502
as_fn_arith $ac_count + 1 && ac_count=$as_val
4503
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4504
# Best one so far, save it but keep looking for a better one
4505
ac_cv_path_GREP="$ac_path_GREP"
4506
ac_path_GREP_max=$ac_count
4508
# 10*(2^10) chars as input seems more than enough
4509
test $ac_count -gt 10 && break
4511
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514
$ac_path_GREP_found && break 3
4519
if test -z "$ac_cv_path_GREP"; then
4520
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523
ac_cv_path_GREP=$GREP
4527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4528
$as_echo "$ac_cv_path_GREP" >&6; }
4529
GREP="$ac_cv_path_GREP"
4532
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4533
$as_echo_n "checking for egrep... " >&6; }
4534
if test "${ac_cv_path_EGREP+set}" = set; then :
4535
$as_echo_n "(cached) " >&6
4537
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4538
then ac_cv_path_EGREP="$GREP -E"
4540
if test -z "$EGREP"; then
4541
ac_path_EGREP_found=false
4542
# Loop through the user's path and test for each of PROGNAME-LIST
4543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547
test -z "$as_dir" && as_dir=.
4548
for ac_prog in egrep; do
4549
for ac_exec_ext in '' $ac_executable_extensions; do
4550
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4551
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4552
# Check for GNU ac_path_EGREP and select it if it is found.
4553
# Check for GNU $ac_path_EGREP
4554
case `"$ac_path_EGREP" --version 2>&1` in
4556
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4559
$as_echo_n 0123456789 >"conftest.in"
4562
cat "conftest.in" "conftest.in" >"conftest.tmp"
4563
mv "conftest.tmp" "conftest.in"
4564
cp "conftest.in" "conftest.nl"
4565
$as_echo 'EGREP' >> "conftest.nl"
4566
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4567
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4568
as_fn_arith $ac_count + 1 && ac_count=$as_val
4569
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4570
# Best one so far, save it but keep looking for a better one
4571
ac_cv_path_EGREP="$ac_path_EGREP"
4572
ac_path_EGREP_max=$ac_count
4574
# 10*(2^10) chars as input seems more than enough
4575
test $ac_count -gt 10 && break
4577
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580
$ac_path_EGREP_found && break 3
4585
if test -z "$ac_cv_path_EGREP"; then
4586
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589
ac_cv_path_EGREP=$EGREP
4594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4595
$as_echo "$ac_cv_path_EGREP" >&6; }
4596
EGREP="$ac_cv_path_EGREP"
4599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4600
$as_echo_n "checking for fgrep... " >&6; }
4601
if test "${ac_cv_path_FGREP+set}" = set; then :
4602
$as_echo_n "(cached) " >&6
4604
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4605
then ac_cv_path_FGREP="$GREP -F"
4607
if test -z "$FGREP"; then
4608
ac_path_FGREP_found=false
4609
# Loop through the user's path and test for each of PROGNAME-LIST
4610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4614
test -z "$as_dir" && as_dir=.
4615
for ac_prog in fgrep; do
4616
for ac_exec_ext in '' $ac_executable_extensions; do
4617
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4618
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4619
# Check for GNU ac_path_FGREP and select it if it is found.
4620
# Check for GNU $ac_path_FGREP
4621
case `"$ac_path_FGREP" --version 2>&1` in
4623
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4626
$as_echo_n 0123456789 >"conftest.in"
4629
cat "conftest.in" "conftest.in" >"conftest.tmp"
4630
mv "conftest.tmp" "conftest.in"
4631
cp "conftest.in" "conftest.nl"
4632
$as_echo 'FGREP' >> "conftest.nl"
4633
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635
as_fn_arith $ac_count + 1 && ac_count=$as_val
4636
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4637
# Best one so far, save it but keep looking for a better one
4638
ac_cv_path_FGREP="$ac_path_FGREP"
4639
ac_path_FGREP_max=$ac_count
4641
# 10*(2^10) chars as input seems more than enough
4642
test $ac_count -gt 10 && break
4644
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647
$ac_path_FGREP_found && break 3
4652
if test -z "$ac_cv_path_FGREP"; then
4653
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4656
ac_cv_path_FGREP=$FGREP
4661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4662
$as_echo "$ac_cv_path_FGREP" >&6; }
4663
FGREP="$ac_cv_path_FGREP"
4666
test -z "$GREP" && GREP=grep
4686
# Check whether --with-gnu-ld was given.
4687
if test "${with_gnu_ld+set}" = set; then :
4688
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4694
if test "$GCC" = yes; then
4695
# Check if gcc -print-prog-name=ld gives a path.
4696
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4697
$as_echo_n "checking for ld used by $CC... " >&6; }
4700
# gcc leaves a trailing carriage return which upsets mingw
4701
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4703
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4706
# Accept absolute paths.
4708
re_direlt='/[^/][^/]*/\.\./'
4709
# Canonicalize the pathname of ld
4710
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4711
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4712
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4714
test -z "$LD" && LD="$ac_prog"
4717
# If it fails, then pretend we aren't using GCC.
4721
# If it is relative, then search for the first ld in PATH.
4725
elif test "$with_gnu_ld" = yes; then
4726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4727
$as_echo_n "checking for GNU ld... " >&6; }
4729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4730
$as_echo_n "checking for non-GNU ld... " >&6; }
4732
if test "${lt_cv_path_LD+set}" = set; then :
4733
$as_echo_n "(cached) " >&6
4735
if test -z "$LD"; then
4736
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4737
for ac_dir in $PATH; do
4739
test -z "$ac_dir" && ac_dir=.
4740
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4741
lt_cv_path_LD="$ac_dir/$ac_prog"
4742
# Check to see if the program is GNU ld. I'd rather use --version,
4743
# but apparently some variants of GNU ld only accept -v.
4744
# Break only if it was the GNU/non-GNU ld that we prefer.
4745
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4746
*GNU* | *'with BFD'*)
4747
test "$with_gnu_ld" != no && break
4750
test "$with_gnu_ld" != yes && break
4757
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4762
if test -n "$LD"; then
4763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4764
$as_echo "$LD" >&6; }
4766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767
$as_echo "no" >&6; }
4769
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4771
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4772
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4773
$as_echo_n "(cached) " >&6
4775
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4776
case `$LD -v 2>&1 </dev/null` in
4777
*GNU* | *'with BFD'*)
4778
lt_cv_prog_gnu_ld=yes
4781
lt_cv_prog_gnu_ld=no
4785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4786
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4787
with_gnu_ld=$lt_cv_prog_gnu_ld
4797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4798
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4799
if test "${lt_cv_path_NM+set}" = set; then :
4800
$as_echo_n "(cached) " >&6
4802
if test -n "$NM"; then
4803
# Let the user override the test.
4806
lt_nm_to_check="${ac_tool_prefix}nm"
4807
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4808
lt_nm_to_check="$lt_nm_to_check nm"
4810
for lt_tmp_nm in $lt_nm_to_check; do
4811
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4812
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4814
test -z "$ac_dir" && ac_dir=.
4815
tmp_nm="$ac_dir/$lt_tmp_nm"
4816
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4817
# Check to see if the nm accepts a BSD-compat flag.
4818
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4819
# nm: unknown option "B" ignored
4820
# Tru64's nm complains that /dev/null is an invalid object file
4821
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4822
*/dev/null* | *'Invalid file or object type'*)
4823
lt_cv_path_NM="$tmp_nm -B"
4827
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4829
lt_cv_path_NM="$tmp_nm -p"
4833
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4834
continue # so that we can try to find one that supports BSD flags
4843
: ${lt_cv_path_NM=no}
4846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4847
$as_echo "$lt_cv_path_NM" >&6; }
4848
if test "$lt_cv_path_NM" != "no"; then
4851
# Didn't find any BSD compatible name lister, look for dumpbin.
4852
if test -n "$ac_tool_prefix"; then
4853
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4855
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4856
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858
$as_echo_n "checking for $ac_word... " >&6; }
4859
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4860
$as_echo_n "(cached) " >&6
4862
if test -n "$DUMPBIN"; then
4863
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869
test -z "$as_dir" && as_dir=.
4870
for ac_exec_ext in '' $ac_executable_extensions; do
4871
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4873
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882
DUMPBIN=$ac_cv_prog_DUMPBIN
4883
if test -n "$DUMPBIN"; then
4884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4885
$as_echo "$DUMPBIN" >&6; }
4887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888
$as_echo "no" >&6; }
4892
test -n "$DUMPBIN" && break
4895
if test -z "$DUMPBIN"; then
4896
ac_ct_DUMPBIN=$DUMPBIN
4897
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4899
# Extract the first word of "$ac_prog", so it can be a program name with args.
4900
set dummy $ac_prog; ac_word=$2
4901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902
$as_echo_n "checking for $ac_word... " >&6; }
4903
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4904
$as_echo_n "(cached) " >&6
4906
if test -n "$ac_ct_DUMPBIN"; then
4907
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913
test -z "$as_dir" && as_dir=.
4914
for ac_exec_ext in '' $ac_executable_extensions; do
4915
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4917
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4927
if test -n "$ac_ct_DUMPBIN"; then
4928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4929
$as_echo "$ac_ct_DUMPBIN" >&6; }
4931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932
$as_echo "no" >&6; }
4936
test -n "$ac_ct_DUMPBIN" && break
4939
if test "x$ac_ct_DUMPBIN" = x; then
4942
case $cross_compiling:$ac_tool_warned in
4944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4945
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4946
ac_tool_warned=yes ;;
4948
DUMPBIN=$ac_ct_DUMPBIN
4953
if test "$DUMPBIN" != ":"; then
4957
test -z "$NM" && NM=nm
4964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4965
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4966
if test "${lt_cv_nm_interface+set}" = set; then :
4967
$as_echo_n "(cached) " >&6
4969
lt_cv_nm_interface="BSD nm"
4970
echo "int some_variable = 0;" > conftest.$ac_ext
4971
(eval echo "\"\$as_me:4971: $ac_compile\"" >&5)
4972
(eval "$ac_compile" 2>conftest.err)
4973
cat conftest.err >&5
4974
(eval echo "\"\$as_me:4974: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4975
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4976
cat conftest.err >&5
4977
(eval echo "\"\$as_me:4977: output\"" >&5)
4978
cat conftest.out >&5
4979
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4980
lt_cv_nm_interface="MS dumpbin"
4984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4985
$as_echo "$lt_cv_nm_interface" >&6; }
4987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4988
$as_echo_n "checking whether ln -s works... " >&6; }
4990
if test "$LN_S" = "ln -s"; then
4991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4992
$as_echo "yes" >&6; }
4994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4995
$as_echo "no, using $LN_S" >&6; }
4998
# find the maximum length of command line arguments
4999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5000
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5001
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5002
$as_echo_n "(cached) " >&6
5009
# On DJGPP, this test can blow up pretty badly due to problems in libc
5010
# (any single argument exceeding 2000 bytes causes a buffer overrun
5011
# during glob expansion). Even if it were fixed, the result of this
5012
# check would be larger than it should be.
5013
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5017
# Under GNU Hurd, this test is not required because there is
5018
# no limit to the length of command line arguments.
5019
# Libtool will interpret -1 as no limit whatsoever
5020
lt_cv_sys_max_cmd_len=-1;
5023
cygwin* | mingw* | cegcc*)
5024
# On Win9x/ME, this test blows up -- it succeeds, but takes
5025
# about 5 minutes as the teststring grows exponentially.
5026
# Worse, since 9x/ME are not pre-emptively multitasking,
5027
# you end up with a "frozen" computer, even though with patience
5028
# the test eventually succeeds (with a max line length of 256k).
5029
# Instead, let's just punt: use the minimum linelength reported by
5030
# all of the supported platforms: 8192 (on NT/2K/XP).
5031
lt_cv_sys_max_cmd_len=8192;
5035
# On AmigaOS with pdksh, this test takes hours, literally.
5036
# So we just punt and use a minimum line length of 8192.
5037
lt_cv_sys_max_cmd_len=8192;
5040
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5041
# This has been around since 386BSD, at least. Likely further.
5042
if test -x /sbin/sysctl; then
5043
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5044
elif test -x /usr/sbin/sysctl; then
5045
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5047
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5049
# And add a safety zone
5050
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5051
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5055
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5056
lt_cv_sys_max_cmd_len=196608
5060
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5061
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5062
# nice to cause kernel panics so lets avoid the loop below.
5063
# First set a reasonable default.
5064
lt_cv_sys_max_cmd_len=16384
5066
if test -x /sbin/sysconfig; then
5067
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5068
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5073
lt_cv_sys_max_cmd_len=102400
5075
sysv5* | sco5v6* | sysv4.2uw2*)
5076
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5077
if test -n "$kargmax"; then
5078
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5080
lt_cv_sys_max_cmd_len=32768
5084
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5085
if test -n "$lt_cv_sys_max_cmd_len"; then
5086
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5087
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5089
# Make teststring a little bigger before we do anything with it.
5090
# a 1K string should be a reasonable start.
5091
for i in 1 2 3 4 5 6 7 8 ; do
5092
teststring=$teststring$teststring
5094
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5095
# If test is not a shell built-in, we'll probably end up computing a
5096
# maximum length that is only half of the actual maximum length, but
5098
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5099
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5100
test $i != 17 # 1/2 MB should be enough
5103
teststring=$teststring$teststring
5105
# Only check the string length outside the loop.
5106
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5108
# Add a significant safety factor because C++ compilers can tack on
5109
# massive amounts of additional arguments before passing them to the
5110
# linker. It appears as though 1/2 is a usable value.
5111
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5118
if test -n $lt_cv_sys_max_cmd_len ; then
5119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5120
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5123
$as_echo "none" >&6; }
5125
max_cmd_len=$lt_cv_sys_max_cmd_len
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5137
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5138
# Try some XSI features
5141
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5143
&& eval 'test $(( 1 + 1 )) -eq 2 \
5144
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5146
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5147
$as_echo "$xsi_shell" >&6; }
5150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5151
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5153
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5155
&& lt_shell_append=yes
5156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5157
$as_echo "$lt_shell_append" >&6; }
5160
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5170
# test EBCDIC or ASCII
5171
case `echo X|tr X '\101'` in
5172
A) # ASCII based system
5173
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5174
lt_SP2NL='tr \040 \012'
5175
lt_NL2SP='tr \015\012 \040\040'
5177
*) # EBCDIC based system
5178
lt_SP2NL='tr \100 \n'
5179
lt_NL2SP='tr \r\n \100\100'
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5192
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5193
if test "${lt_cv_ld_reload_flag+set}" = set; then :
5194
$as_echo_n "(cached) " >&6
5196
lt_cv_ld_reload_flag='-r'
5198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5199
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5200
reload_flag=$lt_cv_ld_reload_flag
5201
case $reload_flag in
5203
*) reload_flag=" $reload_flag" ;;
5205
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5208
if test "$GCC" = yes; then
5209
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5211
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5224
if test -n "$ac_tool_prefix"; then
5225
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5226
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228
$as_echo_n "checking for $ac_word... " >&6; }
5229
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5230
$as_echo_n "(cached) " >&6
5232
if test -n "$OBJDUMP"; then
5233
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239
test -z "$as_dir" && as_dir=.
5240
for ac_exec_ext in '' $ac_executable_extensions; do
5241
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5243
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252
OBJDUMP=$ac_cv_prog_OBJDUMP
5253
if test -n "$OBJDUMP"; then
5254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5255
$as_echo "$OBJDUMP" >&6; }
5257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258
$as_echo "no" >&6; }
5263
if test -z "$ac_cv_prog_OBJDUMP"; then
5264
ac_ct_OBJDUMP=$OBJDUMP
5265
# Extract the first word of "objdump", so it can be a program name with args.
5266
set dummy objdump; ac_word=$2
5267
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268
$as_echo_n "checking for $ac_word... " >&6; }
5269
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5270
$as_echo_n "(cached) " >&6
5272
if test -n "$ac_ct_OBJDUMP"; then
5273
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279
test -z "$as_dir" && as_dir=.
5280
for ac_exec_ext in '' $ac_executable_extensions; do
5281
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5283
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5293
if test -n "$ac_ct_OBJDUMP"; then
5294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5295
$as_echo "$ac_ct_OBJDUMP" >&6; }
5297
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298
$as_echo "no" >&6; }
5301
if test "x$ac_ct_OBJDUMP" = x; then
5304
case $cross_compiling:$ac_tool_warned in
5306
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308
ac_tool_warned=yes ;;
5310
OBJDUMP=$ac_ct_OBJDUMP
5313
OBJDUMP="$ac_cv_prog_OBJDUMP"
5316
test -z "$OBJDUMP" && OBJDUMP=objdump
5326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5327
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5328
if test "${lt_cv_deplibs_check_method+set}" = set; then :
5329
$as_echo_n "(cached) " >&6
5331
lt_cv_file_magic_cmd='$MAGIC_CMD'
5332
lt_cv_file_magic_test_file=
5333
lt_cv_deplibs_check_method='unknown'
5334
# Need to set the preceding variable on all platforms that support
5335
# interlibrary dependencies.
5336
# 'none' -- dependencies not supported.
5337
# `unknown' -- same as none, but documents that we really don't know.
5338
# 'pass_all' -- all dependencies passed with no checks.
5339
# 'test_compile' -- check by making test program.
5340
# 'file_magic [[regex]]' -- check by looking for files in library path
5341
# which responds to the $file_magic_cmd with a given extended regex.
5342
# If you have `file' or equivalent on your system and you're not sure
5343
# whether `pass_all' will *always* work, you probably want this one.
5347
lt_cv_deplibs_check_method=pass_all
5351
lt_cv_deplibs_check_method=pass_all
5355
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5356
lt_cv_file_magic_cmd='/usr/bin/file -L'
5357
lt_cv_file_magic_test_file=/shlib/libc.so
5361
# func_win32_libid is a shell function defined in ltmain.sh
5362
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5363
lt_cv_file_magic_cmd='func_win32_libid'
5367
# Base MSYS/MinGW do not provide the 'file' command needed by
5368
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5369
# unless we find 'file', for example because we are cross-compiling.
5370
if ( file / ) >/dev/null 2>&1; then
5371
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5372
lt_cv_file_magic_cmd='func_win32_libid'
5374
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5375
lt_cv_file_magic_cmd='$OBJDUMP -f'
5380
# use the weaker test based on 'objdump'. See mingw*.
5381
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5382
lt_cv_file_magic_cmd='$OBJDUMP -f'
5385
darwin* | rhapsody*)
5386
lt_cv_deplibs_check_method=pass_all
5389
freebsd* | dragonfly*)
5390
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5393
# Not sure whether the presence of OpenBSD here was a mistake.
5394
# Let's accept both of them until this is cleared up.
5395
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5396
lt_cv_file_magic_cmd=/usr/bin/file
5397
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5401
lt_cv_deplibs_check_method=pass_all
5406
lt_cv_deplibs_check_method=pass_all
5409
hpux10.20* | hpux11*)
5410
lt_cv_file_magic_cmd=/usr/bin/file
5413
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5414
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5417
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]'
5418
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5421
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5422
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5428
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5429
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5432
irix5* | irix6* | nonstopux*)
5434
*-32|*"-32 ") libmagic=32-bit;;
5435
*-n32|*"-n32 ") libmagic=N32;;
5436
*-64|*"-64 ") libmagic=64-bit;;
5437
*) libmagic=never-match;;
5439
lt_cv_deplibs_check_method=pass_all
5442
# This must be Linux ELF.
5443
linux* | k*bsd*-gnu)
5444
lt_cv_deplibs_check_method=pass_all
5447
netbsd* | netbsdelf*-gnu)
5448
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5449
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5451
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5456
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5457
lt_cv_file_magic_cmd=/usr/bin/file
5458
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5462
lt_cv_deplibs_check_method=pass_all
5466
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5467
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5469
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5473
osf3* | osf4* | osf5*)
5474
lt_cv_deplibs_check_method=pass_all
5478
lt_cv_deplibs_check_method=pass_all
5482
lt_cv_deplibs_check_method=pass_all
5485
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5486
lt_cv_deplibs_check_method=pass_all
5490
case $host_vendor in
5492
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]'
5493
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5496
lt_cv_deplibs_check_method=pass_all
5499
lt_cv_file_magic_cmd='/bin/file'
5500
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5503
lt_cv_file_magic_cmd='/bin/file'
5504
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5505
lt_cv_file_magic_test_file=/lib/libc.so
5508
lt_cv_deplibs_check_method=pass_all
5511
lt_cv_deplibs_check_method=pass_all
5517
lt_cv_deplibs_check_method=pass_all
5522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5523
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5524
file_magic_cmd=$lt_cv_file_magic_cmd
5525
deplibs_check_method=$lt_cv_deplibs_check_method
5526
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5539
if test -n "$ac_tool_prefix"; then
5540
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5541
set dummy ${ac_tool_prefix}ar; ac_word=$2
5542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543
$as_echo_n "checking for $ac_word... " >&6; }
5544
if test "${ac_cv_prog_AR+set}" = set; then :
5545
$as_echo_n "(cached) " >&6
5547
if test -n "$AR"; then
5548
ac_cv_prog_AR="$AR" # Let the user override the test.
5550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554
test -z "$as_dir" && as_dir=.
5555
for ac_exec_ext in '' $ac_executable_extensions; do
5556
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557
ac_cv_prog_AR="${ac_tool_prefix}ar"
5558
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568
if test -n "$AR"; then
5569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5570
$as_echo "$AR" >&6; }
5572
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573
$as_echo "no" >&6; }
5578
if test -z "$ac_cv_prog_AR"; then
5580
# Extract the first word of "ar", so it can be a program name with args.
5581
set dummy ar; ac_word=$2
5582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583
$as_echo_n "checking for $ac_word... " >&6; }
5584
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5585
$as_echo_n "(cached) " >&6
5587
if test -n "$ac_ct_AR"; then
5588
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594
test -z "$as_dir" && as_dir=.
5595
for ac_exec_ext in '' $ac_executable_extensions; do
5596
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597
ac_cv_prog_ac_ct_AR="ar"
5598
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5608
if test -n "$ac_ct_AR"; then
5609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5610
$as_echo "$ac_ct_AR" >&6; }
5612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613
$as_echo "no" >&6; }
5616
if test "x$ac_ct_AR" = x; then
5619
case $cross_compiling:$ac_tool_warned in
5621
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623
ac_tool_warned=yes ;;
5631
test -z "$AR" && AR=ar
5632
test -z "$AR_FLAGS" && AR_FLAGS=cru
5644
if test -n "$ac_tool_prefix"; then
5645
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5646
set dummy ${ac_tool_prefix}strip; ac_word=$2
5647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648
$as_echo_n "checking for $ac_word... " >&6; }
5649
if test "${ac_cv_prog_STRIP+set}" = set; then :
5650
$as_echo_n "(cached) " >&6
5652
if test -n "$STRIP"; then
5653
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659
test -z "$as_dir" && as_dir=.
5660
for ac_exec_ext in '' $ac_executable_extensions; do
5661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5663
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672
STRIP=$ac_cv_prog_STRIP
5673
if test -n "$STRIP"; then
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5675
$as_echo "$STRIP" >&6; }
5677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678
$as_echo "no" >&6; }
5683
if test -z "$ac_cv_prog_STRIP"; then
5685
# Extract the first word of "strip", so it can be a program name with args.
5686
set dummy strip; ac_word=$2
5687
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688
$as_echo_n "checking for $ac_word... " >&6; }
5689
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5690
$as_echo_n "(cached) " >&6
5692
if test -n "$ac_ct_STRIP"; then
5693
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699
test -z "$as_dir" && as_dir=.
5700
for ac_exec_ext in '' $ac_executable_extensions; do
5701
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702
ac_cv_prog_ac_ct_STRIP="strip"
5703
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5713
if test -n "$ac_ct_STRIP"; then
5714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5715
$as_echo "$ac_ct_STRIP" >&6; }
5717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718
$as_echo "no" >&6; }
5721
if test "x$ac_ct_STRIP" = x; then
5724
case $cross_compiling:$ac_tool_warned in
5726
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728
ac_tool_warned=yes ;;
5733
STRIP="$ac_cv_prog_STRIP"
5736
test -z "$STRIP" && STRIP=:
5743
if test -n "$ac_tool_prefix"; then
5744
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5745
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747
$as_echo_n "checking for $ac_word... " >&6; }
5748
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5749
$as_echo_n "(cached) " >&6
5751
if test -n "$RANLIB"; then
5752
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758
test -z "$as_dir" && as_dir=.
5759
for ac_exec_ext in '' $ac_executable_extensions; do
5760
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5762
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771
RANLIB=$ac_cv_prog_RANLIB
5772
if test -n "$RANLIB"; then
5773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5774
$as_echo "$RANLIB" >&6; }
5776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777
$as_echo "no" >&6; }
5782
if test -z "$ac_cv_prog_RANLIB"; then
5783
ac_ct_RANLIB=$RANLIB
5784
# Extract the first word of "ranlib", so it can be a program name with args.
5785
set dummy ranlib; ac_word=$2
5786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787
$as_echo_n "checking for $ac_word... " >&6; }
5788
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5789
$as_echo_n "(cached) " >&6
5791
if test -n "$ac_ct_RANLIB"; then
5792
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798
test -z "$as_dir" && as_dir=.
5799
for ac_exec_ext in '' $ac_executable_extensions; do
5800
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801
ac_cv_prog_ac_ct_RANLIB="ranlib"
5802
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5812
if test -n "$ac_ct_RANLIB"; then
5813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5814
$as_echo "$ac_ct_RANLIB" >&6; }
5816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817
$as_echo "no" >&6; }
5820
if test "x$ac_ct_RANLIB" = x; then
5823
case $cross_compiling:$ac_tool_warned in
5825
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5826
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5827
ac_tool_warned=yes ;;
5829
RANLIB=$ac_ct_RANLIB
5832
RANLIB="$ac_cv_prog_RANLIB"
5835
test -z "$RANLIB" && RANLIB=:
5842
# Determine commands to create old-style static archives.
5843
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5844
old_postinstall_cmds='chmod 644 $oldlib'
5845
old_postuninstall_cmds=
5847
if test -n "$RANLIB"; then
5850
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5853
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5856
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5892
# If no C compiler was specified, use CC.
5895
# If no C compiler flags were specified, use CFLAGS.
5896
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5898
# Allow CC to be a program name with arguments.
5902
# Check for command to grab the raw symbol name followed by C symbol from nm.
5903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5904
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5905
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5906
$as_echo_n "(cached) " >&6
5909
# These are sane defaults that work on at least a few old systems.
5910
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5912
# Character class describing NM global symbol codes.
5913
symcode='[BCDEGRST]'
5915
# Regexp to match symbols that can be accessed directly from C.
5916
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5918
# Define system-specific variables.
5923
cygwin* | mingw* | pw32* | cegcc*)
5924
symcode='[ABCDGISTW]'
5927
if test "$host_cpu" = ia64; then
5928
symcode='[ABCDEGRST]'
5932
symcode='[BCDEGRST]'
5935
symcode='[BCDEGQRST]'
5946
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5954
# If we're using GNU nm, then use its standard symbol codes.
5955
case `$NM -V 2>&1` in
5956
*GNU* | *'with BFD'*)
5957
symcode='[ABCDGIRSTW]' ;;
5960
# Transform an extracted symbol line into a proper C declaration.
5961
# Some systems (esp. on ia64) link data and code symbols differently,
5962
# so use this general approach.
5963
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5965
# Transform an extracted symbol line into symbol name and symbol address
5966
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5967
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'"
5969
# Handle CRLF in mingw tool chain
5973
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5977
# Try without a prefix underscore, then with it.
5978
for ac_symprfx in "" "_"; do
5980
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5981
symxfrm="\\1 $ac_symprfx\\2 \\2"
5983
# Write the raw and C identifiers.
5984
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5985
# Fake it for dumpbin and say T for any non-static function
5986
# and D for any global variable.
5987
# Also find C++ and __fastcall symbols from MSVC++,
5988
# which start with @ or ?.
5989
lt_cv_sys_global_symbol_pipe="$AWK '"\
5990
" {last_section=section; section=\$ 3};"\
5991
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5992
" \$ 0!~/External *\|/{next};"\
5993
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5994
" {if(hide[section]) next};"\
5995
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5996
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5997
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5998
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5999
" ' prfx=^$ac_symprfx"
6001
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6004
# Check to see that the pipe works correctly.
6008
cat > conftest.$ac_ext <<_LT_EOF
6013
void nm_test_func(void);
6014
void nm_test_func(void){}
6018
int main(){nm_test_var='a';nm_test_func();return(0);}
6021
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6022
(eval $ac_compile) 2>&5
6024
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6025
test $ac_status = 0; }; then
6026
# Now try to grab the symbols.
6028
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6029
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6031
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032
test $ac_status = 0; } && test -s "$nlist"; then
6033
# Try sorting and uniquifying the output.
6034
if sort "$nlist" | uniq > "$nlist"T; then
6035
mv -f "$nlist"T "$nlist"
6040
# Make sure that we snagged all the symbols we need.
6041
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6042
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6043
cat <<_LT_EOF > conftest.$ac_ext
6049
# Now generate the symbol file.
6050
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6052
cat <<_LT_EOF >> conftest.$ac_ext
6054
/* The mapping between symbol names and symbols. */
6059
lt__PROGRAM__LTX_preloaded_symbols[] =
6061
{ "@PROGRAM@", (void *) 0 },
6063
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6064
cat <<\_LT_EOF >> conftest.$ac_ext
6068
/* This works around a problem in FreeBSD linker */
6069
#ifdef FREEBSD_WORKAROUND
6070
static const void *lt_preloaded_setup() {
6071
return lt__PROGRAM__LTX_preloaded_symbols;
6079
# Now try linking the two files.
6080
mv conftest.$ac_objext conftstm.$ac_objext
6081
lt_save_LIBS="$LIBS"
6082
lt_save_CFLAGS="$CFLAGS"
6083
LIBS="conftstm.$ac_objext"
6084
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6085
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6086
(eval $ac_link) 2>&5
6088
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6092
LIBS="$lt_save_LIBS"
6093
CFLAGS="$lt_save_CFLAGS"
6095
echo "cannot find nm_test_func in $nlist" >&5
6098
echo "cannot find nm_test_var in $nlist" >&5
6101
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6104
echo "$progname: failed program was:" >&5
6105
cat conftest.$ac_ext >&5
6107
rm -rf conftest* conftst*
6109
# Do not use the global_symbol_pipe unless it works.
6110
if test "$pipe_works" = yes; then
6113
lt_cv_sys_global_symbol_pipe=
6119
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6120
lt_cv_sys_global_symbol_to_cdecl=
6122
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6124
$as_echo "failed" >&6; }
6126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6127
$as_echo "ok" >&6; }
6152
# Check whether --enable-libtool-lock was given.
6153
if test "${enable_libtool_lock+set}" = set; then :
6154
enableval=$enable_libtool_lock;
6157
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6159
# Some flags need to be propagated to the compiler or linker for good
6163
# Find out which ABI we are using.
6164
echo 'int i;' > conftest.$ac_ext
6165
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6166
(eval $ac_compile) 2>&5
6168
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169
test $ac_status = 0; }; then
6170
case `/usr/bin/file conftest.$ac_objext` in
6182
# Find out which ABI we are using.
6183
echo '#line 6183 "configure"' > conftest.$ac_ext
6184
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6185
(eval $ac_compile) 2>&5
6187
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6188
test $ac_status = 0; }; then
6189
if test "$lt_cv_prog_gnu_ld" = yes; then
6190
case `/usr/bin/file conftest.$ac_objext` in
6192
LD="${LD-ld} -melf32bsmip"
6195
LD="${LD-ld} -melf32bmipn32"
6198
LD="${LD-ld} -melf64bmip"
6202
case `/usr/bin/file conftest.$ac_objext` in
6218
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6219
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6220
# Find out which ABI we are using.
6221
echo 'int i;' > conftest.$ac_ext
6222
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223
(eval $ac_compile) 2>&5
6225
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226
test $ac_status = 0; }; then
6227
case `/usr/bin/file conftest.o` in
6230
x86_64-*kfreebsd*-gnu)
6231
LD="${LD-ld} -m elf_i386_fbsd"
6234
LD="${LD-ld} -m elf_i386"
6236
ppc64-*linux*|powerpc64-*linux*)
6237
LD="${LD-ld} -m elf32ppclinux"
6240
LD="${LD-ld} -m elf_s390"
6243
LD="${LD-ld} -m elf32_sparc"
6249
x86_64-*kfreebsd*-gnu)
6250
LD="${LD-ld} -m elf_x86_64_fbsd"
6253
LD="${LD-ld} -m elf_x86_64"
6255
ppc*-*linux*|powerpc*-*linux*)
6256
LD="${LD-ld} -m elf64ppc"
6258
s390*-*linux*|s390*-*tpf*)
6259
LD="${LD-ld} -m elf64_s390"
6262
LD="${LD-ld} -m elf64_sparc"
6272
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6273
SAVE_CFLAGS="$CFLAGS"
6274
CFLAGS="$CFLAGS -belf"
6275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6276
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6277
if test "${lt_cv_cc_needs_belf+set}" = set; then :
6278
$as_echo_n "(cached) " >&6
6281
ac_cpp='$CPP $CPPFLAGS'
6282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6286
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287
/* end confdefs.h. */
6297
if ac_fn_c_try_link "$LINENO"; then :
6298
lt_cv_cc_needs_belf=yes
6300
lt_cv_cc_needs_belf=no
6302
rm -f core conftest.err conftest.$ac_objext \
6303
conftest$ac_exeext conftest.$ac_ext
6305
ac_cpp='$CPP $CPPFLAGS'
6306
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6312
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6313
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6314
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6315
CFLAGS="$SAVE_CFLAGS"
6319
# Find out which ABI we are using.
6320
echo 'int i;' > conftest.$ac_ext
6321
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6322
(eval $ac_compile) 2>&5
6324
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325
test $ac_status = 0; }; then
6326
case `/usr/bin/file conftest.o` in
6328
case $lt_cv_prog_gnu_ld in
6329
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6331
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6343
need_locks="$enable_libtool_lock"
6347
rhapsody* | darwin*)
6348
if test -n "$ac_tool_prefix"; then
6349
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6350
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352
$as_echo_n "checking for $ac_word... " >&6; }
6353
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6354
$as_echo_n "(cached) " >&6
6356
if test -n "$DSYMUTIL"; then
6357
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363
test -z "$as_dir" && as_dir=.
6364
for ac_exec_ext in '' $ac_executable_extensions; do
6365
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6367
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6377
if test -n "$DSYMUTIL"; then
6378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6379
$as_echo "$DSYMUTIL" >&6; }
6381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382
$as_echo "no" >&6; }
6387
if test -z "$ac_cv_prog_DSYMUTIL"; then
6388
ac_ct_DSYMUTIL=$DSYMUTIL
6389
# Extract the first word of "dsymutil", so it can be a program name with args.
6390
set dummy dsymutil; ac_word=$2
6391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392
$as_echo_n "checking for $ac_word... " >&6; }
6393
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6394
$as_echo_n "(cached) " >&6
6396
if test -n "$ac_ct_DSYMUTIL"; then
6397
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6399
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403
test -z "$as_dir" && as_dir=.
6404
for ac_exec_ext in '' $ac_executable_extensions; do
6405
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6407
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6417
if test -n "$ac_ct_DSYMUTIL"; then
6418
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6419
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422
$as_echo "no" >&6; }
6425
if test "x$ac_ct_DSYMUTIL" = x; then
6428
case $cross_compiling:$ac_tool_warned in
6430
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6431
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6432
ac_tool_warned=yes ;;
6434
DSYMUTIL=$ac_ct_DSYMUTIL
6437
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6440
if test -n "$ac_tool_prefix"; then
6441
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6442
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444
$as_echo_n "checking for $ac_word... " >&6; }
6445
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6446
$as_echo_n "(cached) " >&6
6448
if test -n "$NMEDIT"; then
6449
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455
test -z "$as_dir" && as_dir=.
6456
for ac_exec_ext in '' $ac_executable_extensions; do
6457
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6459
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468
NMEDIT=$ac_cv_prog_NMEDIT
6469
if test -n "$NMEDIT"; then
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6471
$as_echo "$NMEDIT" >&6; }
6473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474
$as_echo "no" >&6; }
6479
if test -z "$ac_cv_prog_NMEDIT"; then
6480
ac_ct_NMEDIT=$NMEDIT
6481
# Extract the first word of "nmedit", so it can be a program name with args.
6482
set dummy nmedit; ac_word=$2
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484
$as_echo_n "checking for $ac_word... " >&6; }
6485
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6486
$as_echo_n "(cached) " >&6
6488
if test -n "$ac_ct_NMEDIT"; then
6489
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495
test -z "$as_dir" && as_dir=.
6496
for ac_exec_ext in '' $ac_executable_extensions; do
6497
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6499
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6509
if test -n "$ac_ct_NMEDIT"; then
6510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6511
$as_echo "$ac_ct_NMEDIT" >&6; }
6513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514
$as_echo "no" >&6; }
6517
if test "x$ac_ct_NMEDIT" = x; then
6520
case $cross_compiling:$ac_tool_warned in
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524
ac_tool_warned=yes ;;
6526
NMEDIT=$ac_ct_NMEDIT
6529
NMEDIT="$ac_cv_prog_NMEDIT"
6532
if test -n "$ac_tool_prefix"; then
6533
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6534
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536
$as_echo_n "checking for $ac_word... " >&6; }
6537
if test "${ac_cv_prog_LIPO+set}" = set; then :
6538
$as_echo_n "(cached) " >&6
6540
if test -n "$LIPO"; then
6541
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547
test -z "$as_dir" && as_dir=.
6548
for ac_exec_ext in '' $ac_executable_extensions; do
6549
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6551
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560
LIPO=$ac_cv_prog_LIPO
6561
if test -n "$LIPO"; then
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6563
$as_echo "$LIPO" >&6; }
6565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566
$as_echo "no" >&6; }
6571
if test -z "$ac_cv_prog_LIPO"; then
6573
# Extract the first word of "lipo", so it can be a program name with args.
6574
set dummy lipo; ac_word=$2
6575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576
$as_echo_n "checking for $ac_word... " >&6; }
6577
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6578
$as_echo_n "(cached) " >&6
6580
if test -n "$ac_ct_LIPO"; then
6581
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587
test -z "$as_dir" && as_dir=.
6588
for ac_exec_ext in '' $ac_executable_extensions; do
6589
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590
ac_cv_prog_ac_ct_LIPO="lipo"
6591
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6601
if test -n "$ac_ct_LIPO"; then
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6603
$as_echo "$ac_ct_LIPO" >&6; }
6605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606
$as_echo "no" >&6; }
6609
if test "x$ac_ct_LIPO" = x; then
6612
case $cross_compiling:$ac_tool_warned in
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616
ac_tool_warned=yes ;;
6621
LIPO="$ac_cv_prog_LIPO"
6624
if test -n "$ac_tool_prefix"; then
6625
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6626
set dummy ${ac_tool_prefix}otool; ac_word=$2
6627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628
$as_echo_n "checking for $ac_word... " >&6; }
6629
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6630
$as_echo_n "(cached) " >&6
6632
if test -n "$OTOOL"; then
6633
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639
test -z "$as_dir" && as_dir=.
6640
for ac_exec_ext in '' $ac_executable_extensions; do
6641
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6643
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652
OTOOL=$ac_cv_prog_OTOOL
6653
if test -n "$OTOOL"; then
6654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6655
$as_echo "$OTOOL" >&6; }
6657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658
$as_echo "no" >&6; }
6663
if test -z "$ac_cv_prog_OTOOL"; then
6665
# Extract the first word of "otool", so it can be a program name with args.
6666
set dummy otool; ac_word=$2
6667
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668
$as_echo_n "checking for $ac_word... " >&6; }
6669
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6670
$as_echo_n "(cached) " >&6
6672
if test -n "$ac_ct_OTOOL"; then
6673
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679
test -z "$as_dir" && as_dir=.
6680
for ac_exec_ext in '' $ac_executable_extensions; do
6681
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682
ac_cv_prog_ac_ct_OTOOL="otool"
6683
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6693
if test -n "$ac_ct_OTOOL"; then
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6695
$as_echo "$ac_ct_OTOOL" >&6; }
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698
$as_echo "no" >&6; }
6701
if test "x$ac_ct_OTOOL" = x; then
6704
case $cross_compiling:$ac_tool_warned in
6706
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708
ac_tool_warned=yes ;;
6713
OTOOL="$ac_cv_prog_OTOOL"
6716
if test -n "$ac_tool_prefix"; then
6717
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6718
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720
$as_echo_n "checking for $ac_word... " >&6; }
6721
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6722
$as_echo_n "(cached) " >&6
6724
if test -n "$OTOOL64"; then
6725
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731
test -z "$as_dir" && as_dir=.
6732
for ac_exec_ext in '' $ac_executable_extensions; do
6733
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6735
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744
OTOOL64=$ac_cv_prog_OTOOL64
6745
if test -n "$OTOOL64"; then
6746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6747
$as_echo "$OTOOL64" >&6; }
6749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750
$as_echo "no" >&6; }
6755
if test -z "$ac_cv_prog_OTOOL64"; then
6756
ac_ct_OTOOL64=$OTOOL64
6757
# Extract the first word of "otool64", so it can be a program name with args.
6758
set dummy otool64; ac_word=$2
6759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760
$as_echo_n "checking for $ac_word... " >&6; }
6761
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6762
$as_echo_n "(cached) " >&6
6764
if test -n "$ac_ct_OTOOL64"; then
6765
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771
test -z "$as_dir" && as_dir=.
6772
for ac_exec_ext in '' $ac_executable_extensions; do
6773
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774
ac_cv_prog_ac_ct_OTOOL64="otool64"
6775
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6785
if test -n "$ac_ct_OTOOL64"; then
6786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6787
$as_echo "$ac_ct_OTOOL64" >&6; }
6789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790
$as_echo "no" >&6; }
6793
if test "x$ac_ct_OTOOL64" = x; then
6796
case $cross_compiling:$ac_tool_warned in
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800
ac_tool_warned=yes ;;
6802
OTOOL64=$ac_ct_OTOOL64
6805
OTOOL64="$ac_cv_prog_OTOOL64"
6834
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6835
$as_echo_n "checking for -single_module linker flag... " >&6; }
6836
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6837
$as_echo_n "(cached) " >&6
6839
lt_cv_apple_cc_single_mod=no
6840
if test -z "${LT_MULTI_MODULE}"; then
6841
# By default we will add the -single_module flag. You can override
6842
# by either setting the environment variable LT_MULTI_MODULE
6843
# non-empty at configure time, or by adding -multi_module to the
6845
rm -rf libconftest.dylib*
6846
echo "int foo(void){return 1;}" > conftest.c
6847
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6848
-dynamiclib -Wl,-single_module conftest.c" >&5
6849
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6850
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6852
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6853
lt_cv_apple_cc_single_mod=yes
6855
cat conftest.err >&5
6857
rm -rf libconftest.dylib*
6861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6862
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6864
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6865
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6866
$as_echo_n "(cached) " >&6
6868
lt_cv_ld_exported_symbols_list=no
6869
save_LDFLAGS=$LDFLAGS
6870
echo "_main" > conftest.sym
6871
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6872
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873
/* end confdefs.h. */
6883
if ac_fn_c_try_link "$LINENO"; then :
6884
lt_cv_ld_exported_symbols_list=yes
6886
lt_cv_ld_exported_symbols_list=no
6888
rm -f core conftest.err conftest.$ac_objext \
6889
conftest$ac_exeext conftest.$ac_ext
6890
LDFLAGS="$save_LDFLAGS"
6893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6894
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6896
rhapsody* | darwin1.[012])
6897
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6899
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6900
darwin*) # darwin 5.x on
6901
# if running on 10.5 or later, the deployment target defaults
6902
# to the OS version, if on x86, and 10.4, the deployment
6903
# target defaults to 10.4. Don't you love it?
6904
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6905
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6906
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6908
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6910
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6914
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6915
_lt_dar_single_mod='$single_module'
6917
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6918
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6920
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6922
if test "$DSYMUTIL" != ":"; then
6923
_lt_dsymutil='~$DSYMUTIL $lib || :'
6931
ac_cpp='$CPP $CPPFLAGS'
6932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6936
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6937
# On Suns, sometimes $CPP names a directory.
6938
if test -n "$CPP" && test -d "$CPP"; then
6941
if test -z "$CPP"; then
6942
if test "${ac_cv_prog_CPP+set}" = set; then :
6943
$as_echo_n "(cached) " >&6
6945
# Double quotes because CPP needs to be expanded
6946
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6949
for ac_c_preproc_warn_flag in '' yes
6951
# Use a header file that comes with gcc, so configuring glibc
6952
# with a fresh cross-compiler works.
6953
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6954
# <limits.h> exists even on freestanding compilers.
6955
# On the NeXT, cc -E runs the code through the compiler's parser,
6956
# not just through cpp. "Syntax error" is here to catch this case.
6957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958
/* end confdefs.h. */
6960
# include <limits.h>
6962
# include <assert.h>
6966
if ac_fn_c_try_cpp "$LINENO"; then :
6969
# Broken: fails on valid input.
6972
rm -f conftest.err conftest.$ac_ext
6974
# OK, works on sane cases. Now check whether nonexistent headers
6975
# can be detected and how.
6976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977
/* end confdefs.h. */
6978
#include <ac_nonexistent.h>
6980
if ac_fn_c_try_cpp "$LINENO"; then :
6981
# Broken: success on invalid input.
6984
# Passes both tests.
6988
rm -f conftest.err conftest.$ac_ext
6991
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6992
rm -f conftest.err conftest.$ac_ext
6993
if $ac_preproc_ok; then :
7005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7006
$as_echo "$CPP" >&6; }
7008
for ac_c_preproc_warn_flag in '' yes
7010
# Use a header file that comes with gcc, so configuring glibc
7011
# with a fresh cross-compiler works.
7012
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7013
# <limits.h> exists even on freestanding compilers.
7014
# On the NeXT, cc -E runs the code through the compiler's parser,
7015
# not just through cpp. "Syntax error" is here to catch this case.
7016
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017
/* end confdefs.h. */
7019
# include <limits.h>
7021
# include <assert.h>
7025
if ac_fn_c_try_cpp "$LINENO"; then :
7028
# Broken: fails on valid input.
7031
rm -f conftest.err conftest.$ac_ext
7033
# OK, works on sane cases. Now check whether nonexistent headers
7034
# can be detected and how.
7035
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036
/* end confdefs.h. */
7037
#include <ac_nonexistent.h>
7039
if ac_fn_c_try_cpp "$LINENO"; then :
7040
# Broken: success on invalid input.
7043
# Passes both tests.
7047
rm -f conftest.err conftest.$ac_ext
7050
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7051
rm -f conftest.err conftest.$ac_ext
7052
if $ac_preproc_ok; then :
7055
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7056
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7057
as_fn_error "C preprocessor \"$CPP\" fails sanity check
7058
See \`config.log' for more details." "$LINENO" 5; }
7062
ac_cpp='$CPP $CPPFLAGS'
7063
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7068
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7069
$as_echo_n "checking for ANSI C header files... " >&6; }
7070
if test "${ac_cv_header_stdc+set}" = set; then :
7071
$as_echo_n "(cached) " >&6
7073
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074
/* end confdefs.h. */
7088
if ac_fn_c_try_compile "$LINENO"; then :
7089
ac_cv_header_stdc=yes
7091
ac_cv_header_stdc=no
7093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095
if test $ac_cv_header_stdc = yes; then
7096
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7097
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098
/* end confdefs.h. */
7102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103
$EGREP "memchr" >/dev/null 2>&1; then :
7106
ac_cv_header_stdc=no
7112
if test $ac_cv_header_stdc = yes; then
7113
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7114
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115
/* end confdefs.h. */
7119
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7120
$EGREP "free" >/dev/null 2>&1; then :
7123
ac_cv_header_stdc=no
7129
if test $ac_cv_header_stdc = yes; then
7130
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7131
if test "$cross_compiling" = yes; then :
7134
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135
/* end confdefs.h. */
7138
#if ((' ' & 0x0FF) == 0x020)
7139
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7140
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7142
# define ISLOWER(c) \
7143
(('a' <= (c) && (c) <= 'i') \
7144
|| ('j' <= (c) && (c) <= 'r') \
7145
|| ('s' <= (c) && (c) <= 'z'))
7146
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7149
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7154
for (i = 0; i < 256; i++)
7155
if (XOR (islower (i), ISLOWER (i))
7156
|| toupper (i) != TOUPPER (i))
7161
if ac_fn_c_try_run "$LINENO"; then :
7164
ac_cv_header_stdc=no
7166
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7167
conftest.$ac_objext conftest.beam conftest.$ac_ext
7172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7173
$as_echo "$ac_cv_header_stdc" >&6; }
7174
if test $ac_cv_header_stdc = yes; then
7176
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7180
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7181
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7182
inttypes.h stdint.h unistd.h
7184
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7185
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7187
eval as_val=\$$as_ac_Header
7188
if test "x$as_val" = x""yes; then :
7189
cat >>confdefs.h <<_ACEOF
7190
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7198
for ac_header in dlfcn.h
7200
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7202
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7203
cat >>confdefs.h <<_ACEOF
7204
#define HAVE_DLFCN_H 1
7214
ac_cpp='$CXXCPP $CPPFLAGS'
7215
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7216
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7217
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7218
if test -z "$CXX"; then
7219
if test -n "$CCC"; then
7222
if test -n "$ac_tool_prefix"; then
7223
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7225
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7226
set dummy $ac_tool_prefix$ac_prog; 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_CXX+set}" = set; then :
7230
$as_echo_n "(cached) " >&6
7232
if test -n "$CXX"; then
7233
ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
7243
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253
if test -n "$CXX"; then
7254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7255
$as_echo "$CXX" >&6; }
7257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258
$as_echo "no" >&6; }
7262
test -n "$CXX" && break
7265
if test -z "$CXX"; then
7267
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7269
# Extract the first word of "$ac_prog", so it can be a program name with args.
7270
set dummy $ac_prog; ac_word=$2
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272
$as_echo_n "checking for $ac_word... " >&6; }
7273
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7274
$as_echo_n "(cached) " >&6
7276
if test -n "$ac_ct_CXX"; then
7277
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283
test -z "$as_dir" && as_dir=.
7284
for ac_exec_ext in '' $ac_executable_extensions; do
7285
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286
ac_cv_prog_ac_ct_CXX="$ac_prog"
7287
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7297
if test -n "$ac_ct_CXX"; then
7298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7299
$as_echo "$ac_ct_CXX" >&6; }
7301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302
$as_echo "no" >&6; }
7306
test -n "$ac_ct_CXX" && break
7309
if test "x$ac_ct_CXX" = x; then
7312
case $cross_compiling:$ac_tool_warned in
7314
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316
ac_tool_warned=yes ;;
7324
# Provide some information about the compiler.
7325
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7328
for ac_option in --version -v -V -qversion; do
7329
{ { ac_try="$ac_compiler $ac_option >&5"
7331
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332
*) ac_try_echo=$ac_try;;
7334
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7335
$as_echo "$ac_try_echo"; } >&5
7336
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7338
if test -s conftest.err; then
7340
... rest of stderr output deleted ...
7341
10q' conftest.err >conftest.er1
7342
cat conftest.er1 >&5
7343
rm -f conftest.er1 conftest.err
7345
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346
test $ac_status = 0; }
7349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7350
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7351
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7352
$as_echo_n "(cached) " >&6
7354
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355
/* end confdefs.h. */
7368
if ac_fn_cxx_try_compile "$LINENO"; then :
7373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7378
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7379
if test $ac_compiler_gnu = yes; then
7384
ac_test_CXXFLAGS=${CXXFLAGS+set}
7385
ac_save_CXXFLAGS=$CXXFLAGS
7386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7387
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7388
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7389
$as_echo_n "(cached) " >&6
7391
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7392
ac_cxx_werror_flag=yes
7395
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396
/* end confdefs.h. */
7406
if ac_fn_cxx_try_compile "$LINENO"; then :
7407
ac_cv_prog_cxx_g=yes
7410
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411
/* end confdefs.h. */
7421
if ac_fn_cxx_try_compile "$LINENO"; then :
7424
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427
/* end confdefs.h. */
7437
if ac_fn_cxx_try_compile "$LINENO"; then :
7438
ac_cv_prog_cxx_g=yes
7440
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7448
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7449
if test "$ac_test_CXXFLAGS" = set; then
7450
CXXFLAGS=$ac_save_CXXFLAGS
7451
elif test $ac_cv_prog_cxx_g = yes; then
7452
if test "$GXX" = yes; then
7458
if test "$GXX" = yes; then
7465
ac_cpp='$CPP $CPPFLAGS'
7466
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470
depcc="$CXX" am_compiler_list=
7472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7473
$as_echo_n "checking dependency style of $depcc... " >&6; }
7474
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7475
$as_echo_n "(cached) " >&6
7477
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7478
# We make a subdir and do the tests there. Otherwise we can end up
7479
# making bogus files that we don't know about and never remove. For
7480
# instance it was reported that on HP-UX the gcc test will end up
7481
# making a dummy file named `D' -- because `-MD' means `put the output
7484
# Copy depcomp to subdir because otherwise we won't find it if we're
7485
# using a relative directory.
7486
cp "$am_depcomp" conftest.dir
7488
# We will build objects and dependencies in a subdirectory because
7489
# it helps to detect inapplicable dependency modes. For instance
7490
# both Tru64's cc and ICC support -MD to output dependencies as a
7491
# side effect of compilation, but ICC will put the dependencies in
7492
# the current directory while Tru64 will put them in the object
7496
am_cv_CXX_dependencies_compiler_type=none
7497
if test "$am_compiler_list" = ""; then
7498
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7501
case " $depcc " in #(
7502
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7505
for depmode in $am_compiler_list; do
7506
# Setup a source with many dependencies, because some compilers
7507
# like to wrap large dependency lists on column 80 (with \), and
7508
# we should not choose a depcomp mode which is confused by this.
7510
# We need to recreate these files for each test, as the compiler may
7511
# overwrite some of them when testing with obscure command lines.
7512
# This happens at least with the AIX C compiler.
7514
for i in 1 2 3 4 5 6; do
7515
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7516
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7517
# Solaris 8's {/usr,}/bin/sh.
7518
touch sub/conftst$i.h
7520
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7522
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7523
# mode. It turns out that the SunPro C++ compiler does not properly
7524
# handle `-M -o', and we need to detect this. Also, some Intel
7525
# versions had trouble with output in subdirs
7526
am__obj=sub/conftest.${OBJEXT-o}
7527
am__minus_obj="-o $am__obj"
7530
# This depmode causes a compiler race in universal mode.
7531
test "$am__universal" = false || continue
7534
# after this tag, mechanisms are not by side-effect, so they'll
7535
# only be used when explicitly requested
7536
if test "x$enable_dependency_tracking" = xyes; then
7542
msvisualcpp | msvcmsys)
7543
# This compiler won't grok `-c -o', but also, the minuso test has
7544
# not run yet. These depmodes are late enough in the game, and
7545
# so weak that their functioning should not be impacted.
7546
am__obj=conftest.${OBJEXT-o}
7551
if depmode=$depmode \
7552
source=sub/conftest.c object=$am__obj \
7553
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7554
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7555
>/dev/null 2>conftest.err &&
7556
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7557
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7558
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7559
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7560
# icc doesn't choke on unknown options, it will just issue warnings
7561
# or remarks (even with -Werror). So we grep stderr for any message
7562
# that says an option was ignored or not supported.
7563
# When given -MP, icc 7.0 and 7.1 complain thusly:
7564
# icc: Command line warning: ignoring option '-M'; no argument required
7565
# The diagnosis changed in icc 8.0:
7566
# icc: Command line remark: option '-MP' not supported
7567
if (grep 'ignoring option' conftest.err ||
7568
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7569
am_cv_CXX_dependencies_compiler_type=$depmode
7578
am_cv_CXX_dependencies_compiler_type=none
7582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7583
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7584
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7587
test "x$enable_dependency_tracking" != xno \
7588
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7589
am__fastdepCXX_TRUE=
7590
am__fastdepCXX_FALSE='#'
7592
am__fastdepCXX_TRUE='#'
7593
am__fastdepCXX_FALSE=
7597
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7598
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7599
(test "X$CXX" != "Xg++"))) ; then
7601
ac_cpp='$CXXCPP $CPPFLAGS'
7602
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7606
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7607
if test -z "$CXXCPP"; then
7608
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7609
$as_echo_n "(cached) " >&6
7611
# Double quotes because CXXCPP needs to be expanded
7612
for CXXCPP in "$CXX -E" "/lib/cpp"
7615
for ac_cxx_preproc_warn_flag in '' yes
7617
# Use a header file that comes with gcc, so configuring glibc
7618
# with a fresh cross-compiler works.
7619
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7620
# <limits.h> exists even on freestanding compilers.
7621
# On the NeXT, cc -E runs the code through the compiler's parser,
7622
# not just through cpp. "Syntax error" is here to catch this case.
7623
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624
/* end confdefs.h. */
7626
# include <limits.h>
7628
# include <assert.h>
7632
if ac_fn_cxx_try_cpp "$LINENO"; then :
7635
# Broken: fails on valid input.
7638
rm -f conftest.err conftest.$ac_ext
7640
# OK, works on sane cases. Now check whether nonexistent headers
7641
# can be detected and how.
7642
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643
/* end confdefs.h. */
7644
#include <ac_nonexistent.h>
7646
if ac_fn_cxx_try_cpp "$LINENO"; then :
7647
# Broken: success on invalid input.
7650
# Passes both tests.
7654
rm -f conftest.err conftest.$ac_ext
7657
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7658
rm -f conftest.err conftest.$ac_ext
7659
if $ac_preproc_ok; then :
7664
ac_cv_prog_CXXCPP=$CXXCPP
7667
CXXCPP=$ac_cv_prog_CXXCPP
7669
ac_cv_prog_CXXCPP=$CXXCPP
7671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7672
$as_echo "$CXXCPP" >&6; }
7674
for ac_cxx_preproc_warn_flag in '' yes
7676
# Use a header file that comes with gcc, so configuring glibc
7677
# with a fresh cross-compiler works.
7678
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7679
# <limits.h> exists even on freestanding compilers.
7680
# On the NeXT, cc -E runs the code through the compiler's parser,
7681
# not just through cpp. "Syntax error" is here to catch this case.
7682
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683
/* end confdefs.h. */
7685
# include <limits.h>
7687
# include <assert.h>
7691
if ac_fn_cxx_try_cpp "$LINENO"; then :
7694
# Broken: fails on valid input.
7697
rm -f conftest.err conftest.$ac_ext
7699
# OK, works on sane cases. Now check whether nonexistent headers
7700
# can be detected and how.
7701
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702
/* end confdefs.h. */
7703
#include <ac_nonexistent.h>
7705
if ac_fn_cxx_try_cpp "$LINENO"; then :
7706
# Broken: success on invalid input.
7709
# Passes both tests.
7713
rm -f conftest.err conftest.$ac_ext
7716
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7717
rm -f conftest.err conftest.$ac_ext
7718
if $ac_preproc_ok; then :
7721
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7722
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7723
_lt_caught_CXX_error=yes; }
7727
ac_cpp='$CPP $CPPFLAGS'
7728
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7733
_lt_caught_CXX_error=yes
7750
# Check whether --enable-shared was given.
7751
if test "${enable_shared+set}" = set; then :
7752
enableval=$enable_shared; p=${PACKAGE-default}
7754
yes) enable_shared=yes ;;
7755
no) enable_shared=no ;;
7758
# Look at the argument we got. We use all the common list separators.
7759
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7760
for pkg in $enableval; do
7762
if test "X$pkg" = "X$p"; then
7783
# Check whether --with-pic was given.
7784
if test "${with_pic+set}" = set; then :
7785
withval=$with_pic; pic_mode="$withval"
7791
test -z "$pic_mode" && pic_mode=default
7799
# Check whether --enable-fast-install was given.
7800
if test "${enable_fast_install+set}" = set; then :
7801
enableval=$enable_fast_install; p=${PACKAGE-default}
7803
yes) enable_fast_install=yes ;;
7804
no) enable_fast_install=no ;;
7806
enable_fast_install=no
7807
# Look at the argument we got. We use all the common list separators.
7808
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7809
for pkg in $enableval; do
7811
if test "X$pkg" = "X$p"; then
7812
enable_fast_install=yes
7819
enable_fast_install=yes
7832
# This can be used to rebuild libtool when needed
7833
LIBTOOL_DEPS="$ltmain"
7835
# Always use our own libtool.
7836
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7862
test -z "$LN_S" && LN_S="ln -s"
7877
if test -n "${ZSH_VERSION+set}" ; then
7878
setopt NO_GLOB_SUBST
7881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7882
$as_echo_n "checking for objdir... " >&6; }
7883
if test "${lt_cv_objdir+set}" = set; then :
7884
$as_echo_n "(cached) " >&6
7886
rm -f .libs 2>/dev/null
7887
mkdir .libs 2>/dev/null
7888
if test -d .libs; then
7891
# MS-DOS does not allow filenames that begin with a dot.
7894
rmdir .libs 2>/dev/null
7896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7897
$as_echo "$lt_cv_objdir" >&6; }
7898
objdir=$lt_cv_objdir
7904
cat >>confdefs.h <<_ACEOF
7905
#define LT_OBJDIR "$lt_cv_objdir/"
7926
# AIX sometimes has problems with the GCC collect2 program. For some
7927
# reason, if we set the COLLECT_NAMES environment variable, the problems
7928
# vanish in a puff of smoke.
7929
if test "X${COLLECT_NAMES+set}" != Xset; then
7931
export COLLECT_NAMES
7936
# Sed substitution that helps us do robust quoting. It backslashifies
7937
# metacharacters that are still active within double-quoted strings.
7938
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7940
# Same as above, but do not quote variable references.
7941
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7943
# Sed substitution to delay expansion of an escaped shell variable in a
7944
# double_quote_subst'ed string.
7945
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7947
# Sed substitution to delay expansion of an escaped single quote.
7948
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7950
# Sed substitution to avoid accidental globbing in evaled expressions
7951
no_glob_subst='s/\*/\\\*/g'
7955
can_build_shared=yes
7957
# All known linkers require a `.a' archive for static linking (except MSVC,
7958
# which needs '.lib').
7961
with_gnu_ld="$lt_cv_prog_gnu_ld"
7964
old_CFLAGS="$CFLAGS"
7966
# Set sane defaults for various variables
7967
test -z "$CC" && CC=cc
7968
test -z "$LTCC" && LTCC=$CC
7969
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7970
test -z "$LD" && LD=ld
7971
test -z "$ac_objext" && ac_objext=o
7973
for cc_temp in $compiler""; do
7975
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7976
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7981
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7984
# Only perform the check for file, if the check method requires it
7985
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7986
case $deplibs_check_method in
7988
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7990
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7991
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7992
$as_echo_n "(cached) " >&6
7996
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7999
lt_save_MAGIC_CMD="$MAGIC_CMD"
8000
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002
for ac_dir in $ac_dummy; do
8004
test -z "$ac_dir" && ac_dir=.
8005
if test -f $ac_dir/${ac_tool_prefix}file; then
8006
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8007
if test -n "$file_magic_test_file"; then
8008
case $deplibs_check_method in
8010
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8011
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013
$EGREP "$file_magic_regex" > /dev/null; then
8018
*** Warning: the command libtool uses to detect shared libraries,
8019
*** $file_magic_cmd, produces output that libtool cannot recognize.
8020
*** The result is that libtool may fail to recognize shared libraries
8021
*** as such. This will affect the creation of libtool libraries that
8022
*** depend on shared libraries, but programs linked with such libtool
8023
*** libraries will work regardless of this problem. Nevertheless, you
8024
*** may want to report the problem to your system manager and/or to
8025
*** bug-libtool@gnu.org
8035
MAGIC_CMD="$lt_save_MAGIC_CMD"
8040
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041
if test -n "$MAGIC_CMD"; then
8042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8043
$as_echo "$MAGIC_CMD" >&6; }
8045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046
$as_echo "no" >&6; }
8053
if test -z "$lt_cv_path_MAGIC_CMD"; then
8054
if test -n "$ac_tool_prefix"; then
8055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8056
$as_echo_n "checking for file... " >&6; }
8057
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8058
$as_echo_n "(cached) " >&6
8062
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8065
lt_save_MAGIC_CMD="$MAGIC_CMD"
8066
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8067
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8068
for ac_dir in $ac_dummy; do
8070
test -z "$ac_dir" && ac_dir=.
8071
if test -f $ac_dir/file; then
8072
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8073
if test -n "$file_magic_test_file"; then
8074
case $deplibs_check_method in
8076
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8077
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8078
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8079
$EGREP "$file_magic_regex" > /dev/null; then
8084
*** Warning: the command libtool uses to detect shared libraries,
8085
*** $file_magic_cmd, produces output that libtool cannot recognize.
8086
*** The result is that libtool may fail to recognize shared libraries
8087
*** as such. This will affect the creation of libtool libraries that
8088
*** depend on shared libraries, but programs linked with such libtool
8089
*** libraries will work regardless of this problem. Nevertheless, you
8090
*** may want to report the problem to your system manager and/or to
8091
*** bug-libtool@gnu.org
8101
MAGIC_CMD="$lt_save_MAGIC_CMD"
8106
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8107
if test -n "$MAGIC_CMD"; then
8108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8109
$as_echo "$MAGIC_CMD" >&6; }
8111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112
$as_echo "no" >&6; }
8125
# Use C for the default configuration in the libtool script
8129
ac_cpp='$CPP $CPPFLAGS'
8130
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8131
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8132
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
# Source file extension for C test sources.
8138
# Object file extension for compiled C test sources.
8142
# Code to be used in simple compile tests
8143
lt_simple_compile_test_code="int some_variable = 0;"
8145
# Code to be used in simple link tests
8146
lt_simple_link_test_code='int main(){return(0);}'
8154
# If no C compiler was specified, use CC.
8157
# If no C compiler flags were specified, use CFLAGS.
8158
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8160
# Allow CC to be a program name with arguments.
8163
# Save the default compiler, since it gets overwritten when the other
8164
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8165
compiler_DEFAULT=$CC
8167
# save warnings/boilerplate of simple test code
8168
ac_outfile=conftest.$ac_objext
8169
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8170
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8171
_lt_compiler_boilerplate=`cat conftest.err`
8174
ac_outfile=conftest.$ac_objext
8175
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8176
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8177
_lt_linker_boilerplate=`cat conftest.err`
8181
if test -n "$compiler"; then
8183
lt_prog_compiler_no_builtin_flag=
8185
if test "$GCC" = yes; then
8186
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8189
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8190
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8191
$as_echo_n "(cached) " >&6
8193
lt_cv_prog_compiler_rtti_exceptions=no
8194
ac_outfile=conftest.$ac_objext
8195
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8196
lt_compiler_flag="-fno-rtti -fno-exceptions"
8197
# Insert the option either (1) after the last *FLAGS variable, or
8198
# (2) before a word containing "conftest.", or (3) at the end.
8199
# Note that $ac_compile itself does not contain backslashes and begins
8200
# with a dollar sign (not a hyphen), so the echo should work correctly.
8201
# The option is referenced via a variable to avoid confusing sed.
8202
lt_compile=`echo "$ac_compile" | $SED \
8203
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8204
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8205
-e 's:$: $lt_compiler_flag:'`
8206
(eval echo "\"\$as_me:8206: $lt_compile\"" >&5)
8207
(eval "$lt_compile" 2>conftest.err)
8209
cat conftest.err >&5
8210
echo "$as_me:8210: \$? = $ac_status" >&5
8211
if (exit $ac_status) && test -s "$ac_outfile"; then
8212
# The compiler can only warn and ignore the option if not recognized
8213
# So say no if there are warnings other than the usual output.
8214
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8215
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8216
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8217
lt_cv_prog_compiler_rtti_exceptions=yes
8223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8224
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8226
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8227
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8239
lt_prog_compiler_wl=
8240
lt_prog_compiler_pic=
8241
lt_prog_compiler_static=
8243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8244
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8246
if test "$GCC" = yes; then
8247
lt_prog_compiler_wl='-Wl,'
8248
lt_prog_compiler_static='-static'
8252
# All AIX code is PIC.
8253
if test "$host_cpu" = ia64; then
8254
# AIX 5 now supports IA64 processor
8255
lt_prog_compiler_static='-Bstatic'
8262
# see comment about AmigaOS4 .so support
8263
lt_prog_compiler_pic='-fPIC'
8266
# FIXME: we need at least 68020 code to build shared libraries, but
8267
# adding the `-m68020' flag to GCC prevents building anything better,
8269
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8274
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8275
# PIC is the default for these OSes.
8278
mingw* | cygwin* | pw32* | os2* | cegcc*)
8279
# This hack is so that the source file can tell whether it is being
8280
# built for inclusion in a dll (and should export symbols for example).
8281
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8282
# (--disable-auto-import) libraries
8283
lt_prog_compiler_pic='-DDLL_EXPORT'
8286
darwin* | rhapsody*)
8287
# PIC is the default on this platform
8288
# Common symbols not allowed in MH_DYLIB files
8289
lt_prog_compiler_pic='-fno-common'
8293
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8294
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8295
# sets the default TLS model and affects inlining.
8301
lt_prog_compiler_pic='-fPIC'
8307
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8308
# Instead, we relocate shared libraries at runtime.
8312
# Just because we use GCC doesn't mean we suddenly get shared libraries
8313
# on systems that don't support them.
8314
lt_prog_compiler_can_build_shared=no
8319
# QNX uses GNU C++, but need to define -shared option too, otherwise
8321
lt_prog_compiler_pic='-fPIC -shared'
8325
if test -d /usr/nec; then
8326
lt_prog_compiler_pic=-Kconform_pic
8331
lt_prog_compiler_pic='-fPIC'
8335
# PORTME Check for flag to pass linker flags through the system compiler.
8338
lt_prog_compiler_wl='-Wl,'
8339
if test "$host_cpu" = ia64; then
8340
# AIX 5 now supports IA64 processor
8341
lt_prog_compiler_static='-Bstatic'
8343
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8347
mingw* | cygwin* | pw32* | os2* | cegcc*)
8348
# This hack is so that the source file can tell whether it is being
8349
# built for inclusion in a dll (and should export symbols for example).
8350
lt_prog_compiler_pic='-DDLL_EXPORT'
8353
hpux9* | hpux10* | hpux11*)
8354
lt_prog_compiler_wl='-Wl,'
8355
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8362
lt_prog_compiler_pic='+Z'
8365
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8366
lt_prog_compiler_static='${wl}-a ${wl}archive'
8369
irix5* | irix6* | nonstopux*)
8370
lt_prog_compiler_wl='-Wl,'
8371
# PIC (with -KPIC) is the default.
8372
lt_prog_compiler_static='-non_shared'
8375
linux* | k*bsd*-gnu)
8376
case $cc_basename in
8377
# old Intel for x86_64 which still supported -KPIC.
8379
lt_prog_compiler_wl='-Wl,'
8380
lt_prog_compiler_pic='-KPIC'
8381
lt_prog_compiler_static='-static'
8383
# icc used to be incompatible with GCC.
8384
# ICC 10 doesn't accept -KPIC any more.
8386
lt_prog_compiler_wl='-Wl,'
8387
lt_prog_compiler_pic='-fPIC'
8388
lt_prog_compiler_static='-static'
8390
# Lahey Fortran 8.1.
8392
lt_prog_compiler_wl='-Wl,'
8393
lt_prog_compiler_pic='--shared'
8394
lt_prog_compiler_static='--static'
8396
pgcc* | pgf77* | pgf90* | pgf95*)
8397
# Portland Group compilers (*not* the Pentium gcc compiler,
8398
# which looks to be a dead project)
8399
lt_prog_compiler_wl='-Wl,'
8400
lt_prog_compiler_pic='-fpic'
8401
lt_prog_compiler_static='-Bstatic'
8404
lt_prog_compiler_wl='-Wl,'
8405
# All Alpha code is PIC.
8406
lt_prog_compiler_static='-non_shared'
8409
# IBM XL C 8.0/Fortran 10.1 on PPC
8410
lt_prog_compiler_wl='-Wl,'
8411
lt_prog_compiler_pic='-qpic'
8412
lt_prog_compiler_static='-qstaticlink'
8415
case `$CC -V 2>&1 | sed 5q` in
8418
lt_prog_compiler_pic='-KPIC'
8419
lt_prog_compiler_static='-Bstatic'
8420
lt_prog_compiler_wl='-Wl,'
8423
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8424
lt_prog_compiler_pic='-KPIC'
8425
lt_prog_compiler_static='-Bstatic'
8426
lt_prog_compiler_wl=''
8434
lt_prog_compiler_pic='-KPIC'
8435
lt_prog_compiler_static='-Bstatic'
8439
# QNX uses GNU C++, but need to define -shared option too, otherwise
8441
lt_prog_compiler_pic='-fPIC -shared'
8444
osf3* | osf4* | osf5*)
8445
lt_prog_compiler_wl='-Wl,'
8446
# All OSF/1 code is PIC.
8447
lt_prog_compiler_static='-non_shared'
8451
lt_prog_compiler_static='-non_shared'
8455
lt_prog_compiler_pic='-KPIC'
8456
lt_prog_compiler_static='-Bstatic'
8457
case $cc_basename in
8459
lt_prog_compiler_wl='-Qoption ld ';;
8461
lt_prog_compiler_wl='-Wl,';;
8466
lt_prog_compiler_wl='-Qoption ld '
8467
lt_prog_compiler_pic='-PIC'
8468
lt_prog_compiler_static='-Bstatic'
8471
sysv4 | sysv4.2uw2* | sysv4.3*)
8472
lt_prog_compiler_wl='-Wl,'
8473
lt_prog_compiler_pic='-KPIC'
8474
lt_prog_compiler_static='-Bstatic'
8478
if test -d /usr/nec ;then
8479
lt_prog_compiler_pic='-Kconform_pic'
8480
lt_prog_compiler_static='-Bstatic'
8484
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8485
lt_prog_compiler_wl='-Wl,'
8486
lt_prog_compiler_pic='-KPIC'
8487
lt_prog_compiler_static='-Bstatic'
8491
lt_prog_compiler_wl='-Wl,'
8492
lt_prog_compiler_can_build_shared=no
8496
lt_prog_compiler_pic='-pic'
8497
lt_prog_compiler_static='-Bstatic'
8501
lt_prog_compiler_can_build_shared=no
8507
# For platforms which do not support PIC, -DPIC is meaningless:
8509
lt_prog_compiler_pic=
8512
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8516
$as_echo "$lt_prog_compiler_pic" >&6; }
8524
# Check to make sure the PIC flag actually works.
8526
if test -n "$lt_prog_compiler_pic"; then
8527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8528
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8529
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8530
$as_echo_n "(cached) " >&6
8532
lt_cv_prog_compiler_pic_works=no
8533
ac_outfile=conftest.$ac_objext
8534
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8535
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8536
# Insert the option either (1) after the last *FLAGS variable, or
8537
# (2) before a word containing "conftest.", or (3) at the end.
8538
# Note that $ac_compile itself does not contain backslashes and begins
8539
# with a dollar sign (not a hyphen), so the echo should work correctly.
8540
# The option is referenced via a variable to avoid confusing sed.
8541
lt_compile=`echo "$ac_compile" | $SED \
8542
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8543
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8544
-e 's:$: $lt_compiler_flag:'`
8545
(eval echo "\"\$as_me:8545: $lt_compile\"" >&5)
8546
(eval "$lt_compile" 2>conftest.err)
8548
cat conftest.err >&5
8549
echo "$as_me:8549: \$? = $ac_status" >&5
8550
if (exit $ac_status) && test -s "$ac_outfile"; then
8551
# The compiler can only warn and ignore the option if not recognized
8552
# So say no if there are warnings other than the usual output.
8553
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8554
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8556
lt_cv_prog_compiler_pic_works=yes
8562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8563
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8565
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8566
case $lt_prog_compiler_pic in
8568
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8571
lt_prog_compiler_pic=
8572
lt_prog_compiler_can_build_shared=no
8583
# Check to make sure the static flag actually works.
8585
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8587
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8588
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8589
$as_echo_n "(cached) " >&6
8591
lt_cv_prog_compiler_static_works=no
8592
save_LDFLAGS="$LDFLAGS"
8593
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8594
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8595
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8596
# The linker can only warn and ignore the option if not recognized
8597
# So say no if there are warnings
8598
if test -s conftest.err; then
8599
# Append any errors to the config.log.
8600
cat conftest.err 1>&5
8601
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8602
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8603
if diff conftest.exp conftest.er2 >/dev/null; then
8604
lt_cv_prog_compiler_static_works=yes
8607
lt_cv_prog_compiler_static_works=yes
8611
LDFLAGS="$save_LDFLAGS"
8614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8615
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8617
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8620
lt_prog_compiler_static=
8629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8630
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8631
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8632
$as_echo_n "(cached) " >&6
8634
lt_cv_prog_compiler_c_o=no
8635
$RM -r conftest 2>/dev/null
8639
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8641
lt_compiler_flag="-o out/conftest2.$ac_objext"
8642
# Insert the option either (1) after the last *FLAGS variable, or
8643
# (2) before a word containing "conftest.", or (3) at the end.
8644
# Note that $ac_compile itself does not contain backslashes and begins
8645
# with a dollar sign (not a hyphen), so the echo should work correctly.
8646
lt_compile=`echo "$ac_compile" | $SED \
8647
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8648
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8649
-e 's:$: $lt_compiler_flag:'`
8650
(eval echo "\"\$as_me:8650: $lt_compile\"" >&5)
8651
(eval "$lt_compile" 2>out/conftest.err)
8653
cat out/conftest.err >&5
8654
echo "$as_me:8654: \$? = $ac_status" >&5
8655
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8657
# The compiler can only warn and ignore the option if not recognized
8658
# So say no if there are warnings
8659
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8660
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8661
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8662
lt_cv_prog_compiler_c_o=yes
8667
# SGI C++ compiler will create directory out/ii_files/ for
8668
# template instantiation
8669
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8670
$RM out/* && rmdir out
8676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8677
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8685
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8686
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8687
$as_echo_n "(cached) " >&6
8689
lt_cv_prog_compiler_c_o=no
8690
$RM -r conftest 2>/dev/null
8694
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8696
lt_compiler_flag="-o out/conftest2.$ac_objext"
8697
# Insert the option either (1) after the last *FLAGS variable, or
8698
# (2) before a word containing "conftest.", or (3) at the end.
8699
# Note that $ac_compile itself does not contain backslashes and begins
8700
# with a dollar sign (not a hyphen), so the echo should work correctly.
8701
lt_compile=`echo "$ac_compile" | $SED \
8702
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8703
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8704
-e 's:$: $lt_compiler_flag:'`
8705
(eval echo "\"\$as_me:8705: $lt_compile\"" >&5)
8706
(eval "$lt_compile" 2>out/conftest.err)
8708
cat out/conftest.err >&5
8709
echo "$as_me:8709: \$? = $ac_status" >&5
8710
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8712
# The compiler can only warn and ignore the option if not recognized
8713
# So say no if there are warnings
8714
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8715
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8716
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8717
lt_cv_prog_compiler_c_o=yes
8722
# SGI C++ compiler will create directory out/ii_files/ for
8723
# template instantiation
8724
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8725
$RM out/* && rmdir out
8731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8732
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8737
hard_links="nottested"
8738
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8739
# do not overwrite the value of need_locks provided by the user
8740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8741
$as_echo_n "checking if we can lock with hard links... " >&6; }
8744
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8746
ln conftest.a conftest.b 2>&5 || hard_links=no
8747
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8749
$as_echo "$hard_links" >&6; }
8750
if test "$hard_links" = no; then
8751
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8752
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8765
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8768
allow_undefined_flag=
8769
always_export_symbols=no
8771
archive_expsym_cmds=
8772
compiler_needs_object=no
8773
enable_shared_with_static_runtimes=no
8774
export_dynamic_flag_spec=
8775
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8776
hardcode_automatic=no
8778
hardcode_direct_absolute=no
8779
hardcode_libdir_flag_spec=
8780
hardcode_libdir_flag_spec_ld=
8781
hardcode_libdir_separator=
8783
hardcode_shlibpath_var=unsupported
8785
link_all_deplibs=unknown
8788
old_archive_from_new_cmds=
8789
old_archive_from_expsyms_cmds=
8790
thread_safe_flag_spec=
8791
whole_archive_flag_spec=
8792
# include_expsyms should be a list of space-separated symbols to be *always*
8793
# included in the symbol list
8795
# exclude_expsyms can be an extended regexp of symbols to exclude
8796
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8797
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8798
# as well as any symbol that contains `d'.
8799
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8800
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8801
# platforms (ab)use it in PIC code, but their linkers get confused if
8802
# the symbol is explicitly referenced. Since portable code cannot
8803
# rely on this symbol name, it's probably fine to never include it in
8804
# preloaded symbol tables.
8805
# Exclude shared library initialization/finalization symbols.
8806
extract_expsyms_cmds=
8809
cygwin* | mingw* | pw32* | cegcc*)
8810
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8811
# When not using gcc, we currently assume that we are using
8812
# Microsoft Visual C++.
8813
if test "$GCC" != yes; then
8818
# we just hope/assume this is gcc and not c89 (= MSVC++)
8824
linux* | k*bsd*-gnu)
8830
if test "$with_gnu_ld" = yes; then
8831
# If archive_cmds runs LD, not CC, wlarc should be empty
8834
# Set some defaults for GNU ld with shared library support. These
8835
# are reset later if shared libraries are not supported. Putting them
8836
# here allows them to be overridden if necessary.
8837
runpath_var=LD_RUN_PATH
8838
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8839
export_dynamic_flag_spec='${wl}--export-dynamic'
8840
# ancient GNU ld didn't support --whole-archive et. al.
8841
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8842
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8844
whole_archive_flag_spec=
8846
supports_anon_versioning=no
8847
case `$LD -v 2>&1` in
8848
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8849
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8850
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8851
*\ 2.11.*) ;; # other 2.11 versions
8852
*) supports_anon_versioning=yes ;;
8855
# See if GNU ld supports shared libraries.
8858
# On AIX/PPC, the GNU linker is very broken
8859
if test "$host_cpu" != ia64; then
8863
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8864
*** to be unable to reliably create shared libraries on AIX.
8865
*** Therefore, libtool is disabling shared libraries support. If you
8866
*** really care for shared libraries, you may want to modify your PATH
8867
*** so that a non-GNU linker is found, and then restart.
8876
# see comment about AmigaOS4 .so support
8877
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8878
archive_expsym_cmds=''
8881
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)'
8882
hardcode_libdir_flag_spec='-L$libdir'
8883
hardcode_minus_L=yes
8889
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8890
allow_undefined_flag=unsupported
8891
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8892
# support --undefined. This deserves some investigation. FIXME
8893
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899
cygwin* | mingw* | pw32* | cegcc*)
8900
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8901
# as there is no search path for DLLs.
8902
hardcode_libdir_flag_spec='-L$libdir'
8903
allow_undefined_flag=unsupported
8904
always_export_symbols=no
8905
enable_shared_with_static_runtimes=yes
8906
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8908
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8909
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8910
# If the export-symbols file already is a .def file (1st line
8911
# is EXPORTS), use it as is; otherwise, prepend...
8912
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8913
cp $export_symbols $output_objdir/$soname.def;
8915
echo EXPORTS > $output_objdir/$soname.def;
8916
cat $export_symbols >> $output_objdir/$soname.def;
8918
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8926
hardcode_shlibpath_var=no
8927
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8928
export_dynamic_flag_spec='${wl}-E'
8929
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8930
# Instead, shared libraries are loaded at an image base (0x10000000 by
8931
# default) and relocated if they conflict, which is a slow very memory
8932
# consuming and fragmenting process. To avoid this, we pick a random,
8933
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8934
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8935
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8936
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'
8939
gnu* | linux* | tpf* | k*bsd*-gnu)
8941
if test "$host_os" = linux-dietlibc; then
8942
case $cc_basename in
8943
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8946
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8947
&& test "$tmp_diet" = no
8950
tmp_sharedflag='-shared'
8951
case $cc_basename,$host_cpu in
8952
pgcc*) # Portland Group C compiler
8953
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'
8954
tmp_addflag=' $pic_flag'
8956
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8957
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'
8958
tmp_addflag=' $pic_flag -Mnomain' ;;
8959
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8960
tmp_addflag=' -i_dynamic' ;;
8961
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8962
tmp_addflag=' -i_dynamic -nofor_main' ;;
8963
ifc* | ifort*) # Intel Fortran compiler
8964
tmp_addflag=' -nofor_main' ;;
8965
lf95*) # Lahey Fortran 8.1
8966
whole_archive_flag_spec=
8967
tmp_sharedflag='--shared' ;;
8968
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8969
tmp_sharedflag='-qmkshrobj'
8972
case `$CC -V 2>&1 | sed 5q` in
8973
*Sun\ C*) # Sun C 5.9
8974
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'
8975
compiler_needs_object=yes
8976
tmp_sharedflag='-G' ;;
8977
*Sun\ F*) # Sun Fortran 8.3
8978
tmp_sharedflag='-G' ;;
8980
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982
if test "x$supports_anon_versioning" = xyes; then
8983
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8984
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8985
echo "local: *; };" >> $output_objdir/$libname.ver~
8986
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8989
case $cc_basename in
8991
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8992
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8993
hardcode_libdir_flag_spec=
8994
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8995
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8996
if test "x$supports_anon_versioning" = xyes; then
8997
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8998
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8999
echo "local: *; };" >> $output_objdir/$libname.ver~
9000
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9009
netbsd* | netbsdelf*-gnu)
9010
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9011
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9014
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9024
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9025
*** create shared libraries on Solaris systems. Therefore, libtool
9026
*** is disabling shared libraries support. We urge you to upgrade GNU
9027
*** binutils to release 2.9.1 or newer. Another option is to modify
9028
*** your PATH or compiler configuration so that the native linker is
9029
*** used, and then restart.
9032
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9040
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9041
case `$LD -v 2>&1` in
9042
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9046
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9047
*** reliably create shared libraries on SCO systems. Therefore, libtool
9048
*** is disabling shared libraries support. We urge you to upgrade GNU
9049
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9050
*** your PATH or compiler configuration so that the native linker is
9051
*** used, and then restart.
9056
# For security reasons, it is highly recommended that you always
9057
# use absolute paths for naming shared libraries, and exclude the
9058
# DT_RUNPATH tag from executables and libraries. But doing so
9059
# requires that you compile everything twice, which is a pain.
9060
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9062
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9072
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9075
hardcode_shlibpath_var=no
9079
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9080
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9088
if test "$ld_shlibs" = no; then
9090
hardcode_libdir_flag_spec=
9091
export_dynamic_flag_spec=
9092
whole_archive_flag_spec=
9095
# PORTME fill in a description of your system's linker (not GNU ld)
9098
allow_undefined_flag=unsupported
9099
always_export_symbols=yes
9100
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'
9101
# Note: this linker hardcodes the directories in LIBPATH if there
9102
# are no directories specified by -L.
9103
hardcode_minus_L=yes
9104
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9105
# Neither direct hardcoding nor static linking is supported with a
9107
hardcode_direct=unsupported
9112
if test "$host_cpu" = ia64; then
9113
# On IA64, the linker does run time linking by default, so we don't
9114
# have to do anything special.
9115
aix_use_runtimelinking=no
9116
exp_sym_flag='-Bexport'
9119
# If we're using GNU nm, then we don't want the "-C" option.
9120
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9121
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9122
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'
9124
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'
9126
aix_use_runtimelinking=no
9128
# Test if we are trying to use run time linking or normal
9129
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9130
# need to do runtime linking.
9131
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9132
for ld_flag in $LDFLAGS; do
9133
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9134
aix_use_runtimelinking=yes
9141
exp_sym_flag='-bexport'
9142
no_entry_flag='-bnoentry'
9145
# When large executables or shared objects are built, AIX ld can
9146
# have problems creating the table of contents. If linking a library
9147
# or program results in "error TOC overflow" add -mminimal-toc to
9148
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9149
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9153
hardcode_direct_absolute=yes
9154
hardcode_libdir_separator=':'
9155
link_all_deplibs=yes
9156
file_list_spec='${wl}-f,'
9158
if test "$GCC" = yes; then
9159
case $host_os in aix4.[012]|aix4.[012].*)
9160
# We only want to do this on AIX 4.2 and lower, the check
9161
# below for broken collect2 doesn't work under 4.3+
9162
collect2name=`${CC} -print-prog-name=collect2`
9163
if test -f "$collect2name" &&
9164
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9166
# We have reworked collect2
9169
# We have old collect2
9170
hardcode_direct=unsupported
9171
# It fails to find uninstalled libraries when the uninstalled
9172
# path is not listed in the libpath. Setting hardcode_minus_L
9173
# to unsupported forces relinking
9174
hardcode_minus_L=yes
9175
hardcode_libdir_flag_spec='-L$libdir'
9176
hardcode_libdir_separator=
9180
shared_flag='-shared'
9181
if test "$aix_use_runtimelinking" = yes; then
9182
shared_flag="$shared_flag "'${wl}-G'
9187
if test "$host_cpu" = ia64; then
9188
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9189
# chokes on -Wl,-G. The following line is correct:
9192
if test "$aix_use_runtimelinking" = yes; then
9193
shared_flag='${wl}-G'
9195
shared_flag='${wl}-bM:SRE'
9200
export_dynamic_flag_spec='${wl}-bexpall'
9201
# It seems that -bexpall does not export symbols beginning with
9202
# underscore (_), so it is better to generate a list of symbols to export.
9203
always_export_symbols=yes
9204
if test "$aix_use_runtimelinking" = yes; then
9205
# Warning - without using the other runtime loading flags (-brtl),
9206
# -berok will link without error, but may produce a broken library.
9207
allow_undefined_flag='-berok'
9208
# Determine the default libpath from the value encoded in an
9210
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211
/* end confdefs.h. */
9221
if ac_fn_c_try_link "$LINENO"; then :
9223
lt_aix_libpath_sed='
9224
/Import File Strings/,/^$/ {
9230
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9231
# Check for a 64-bit object if we didn't find anything.
9232
if test -z "$aix_libpath"; then
9233
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9236
rm -f core conftest.err conftest.$ac_objext \
9237
conftest$ac_exeext conftest.$ac_ext
9238
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9240
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9241
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"
9243
if test "$host_cpu" = ia64; then
9244
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9245
allow_undefined_flag="-z nodefs"
9246
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"
9248
# Determine the default libpath from the value encoded in an
9250
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251
/* end confdefs.h. */
9261
if ac_fn_c_try_link "$LINENO"; then :
9263
lt_aix_libpath_sed='
9264
/Import File Strings/,/^$/ {
9270
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9271
# Check for a 64-bit object if we didn't find anything.
9272
if test -z "$aix_libpath"; then
9273
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9276
rm -f core conftest.err conftest.$ac_objext \
9277
conftest$ac_exeext conftest.$ac_ext
9278
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9280
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9281
# Warning - without using the other run time loading flags,
9282
# -berok will link without error, but may produce a broken library.
9283
no_undefined_flag=' ${wl}-bernotok'
9284
allow_undefined_flag=' ${wl}-berok'
9285
# Exported symbols can be pulled into shared objects from archives
9286
whole_archive_flag_spec='$convenience'
9287
archive_cmds_need_lc=yes
9288
# This is similar to how AIX traditionally builds its shared libraries.
9289
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'
9297
# see comment about AmigaOS4 .so support
9298
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299
archive_expsym_cmds=''
9302
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)'
9303
hardcode_libdir_flag_spec='-L$libdir'
9304
hardcode_minus_L=yes
9310
export_dynamic_flag_spec=-rdynamic
9313
cygwin* | mingw* | pw32* | cegcc*)
9314
# When not using gcc, we currently assume that we are using
9315
# Microsoft Visual C++.
9316
# hardcode_libdir_flag_spec is actually meaningless, as there is
9317
# no search path for DLLs.
9318
hardcode_libdir_flag_spec=' '
9319
allow_undefined_flag=unsupported
9320
# Tell ltmain to make .lib files, not .a files.
9322
# Tell ltmain to make .dll files, not .so files.
9324
# FIXME: Setting linknames here is a bad hack.
9325
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9326
# The linker will automatically build a .lib file if we build a DLL.
9327
old_archive_from_new_cmds='true'
9328
# FIXME: Should let the user specify the lib program.
9329
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9330
fix_srcfile_path='`cygpath -w "$srcfile"`'
9331
enable_shared_with_static_runtimes=yes
9334
darwin* | rhapsody*)
9337
archive_cmds_need_lc=no
9339
hardcode_automatic=yes
9340
hardcode_shlibpath_var=unsupported
9341
whole_archive_flag_spec=''
9342
link_all_deplibs=yes
9343
allow_undefined_flag="$_lt_dar_allow_undefined"
9344
case $cc_basename in
9345
ifort*) _lt_dar_can_shared=yes ;;
9346
*) _lt_dar_can_shared=$GCC ;;
9348
if test "$_lt_dar_can_shared" = "yes"; then
9349
output_verbose_link_cmd=echo
9350
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9351
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9352
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}"
9353
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}"
9362
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363
hardcode_libdir_flag_spec='-L$libdir'
9364
hardcode_shlibpath_var=no
9371
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9372
# support. Future versions do this automatically, but an explicit c++rt0.o
9373
# does not break anything, and helps significantly (at the cost of a little
9376
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9377
hardcode_libdir_flag_spec='-R$libdir'
9379
hardcode_shlibpath_var=no
9382
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9384
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9386
hardcode_minus_L=yes
9387
hardcode_shlibpath_var=no
9390
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9391
freebsd* | dragonfly*)
9392
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9393
hardcode_libdir_flag_spec='-R$libdir'
9395
hardcode_shlibpath_var=no
9399
if test "$GCC" = yes; then
9400
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'
9402
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'
9404
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9405
hardcode_libdir_separator=:
9408
# hardcode_minus_L: Not really in the search PATH,
9409
# but as the default location of the library.
9410
hardcode_minus_L=yes
9411
export_dynamic_flag_spec='${wl}-E'
9415
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9416
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9420
if test "$with_gnu_ld" = no; then
9421
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422
hardcode_libdir_flag_spec_ld='+b $libdir'
9423
hardcode_libdir_separator=:
9425
hardcode_direct_absolute=yes
9426
export_dynamic_flag_spec='${wl}-E'
9427
# hardcode_minus_L: Not really in the search PATH,
9428
# but as the default location of the library.
9429
hardcode_minus_L=yes
9434
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9437
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9443
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9449
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9459
if test "$with_gnu_ld" = no; then
9460
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9461
hardcode_libdir_separator=:
9466
hardcode_shlibpath_var=no
9470
hardcode_direct_absolute=yes
9471
export_dynamic_flag_spec='${wl}-E'
9473
# hardcode_minus_L: Not really in the search PATH,
9474
# but as the default location of the library.
9475
hardcode_minus_L=yes
9481
irix5* | irix6* | nonstopux*)
9482
if test "$GCC" = yes; then
9483
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'
9484
# Try to use the -exported_symbol ld option, if it does not
9485
# work, assume that -exports_file does not work either and
9486
# implicitly export all symbols.
9487
save_LDFLAGS="$LDFLAGS"
9488
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9489
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490
/* end confdefs.h. */
9493
if ac_fn_c_try_link "$LINENO"; then :
9494
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'
9497
rm -f core conftest.err conftest.$ac_objext \
9498
conftest$ac_exeext conftest.$ac_ext
9499
LDFLAGS="$save_LDFLAGS"
9501
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'
9502
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'
9504
archive_cmds_need_lc='no'
9505
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9506
hardcode_libdir_separator=:
9508
link_all_deplibs=yes
9511
netbsd* | netbsdelf*-gnu)
9512
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9513
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9515
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9517
hardcode_libdir_flag_spec='-R$libdir'
9519
hardcode_shlibpath_var=no
9523
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9525
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526
hardcode_libdir_separator=:
9527
hardcode_shlibpath_var=no
9534
if test -f /usr/libexec/ld.so; then
9536
hardcode_shlibpath_var=no
9537
hardcode_direct_absolute=yes
9538
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9539
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9541
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9542
export_dynamic_flag_spec='${wl}-E'
9545
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9546
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9547
hardcode_libdir_flag_spec='-R$libdir'
9550
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9551
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9561
hardcode_libdir_flag_spec='-L$libdir'
9562
hardcode_minus_L=yes
9563
allow_undefined_flag=unsupported
9564
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'
9565
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9569
if test "$GCC" = yes; then
9570
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571
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'
9573
allow_undefined_flag=' -expect_unresolved \*'
9574
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'
9576
archive_cmds_need_lc='no'
9577
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578
hardcode_libdir_separator=:
9581
osf4* | osf5*) # as osf3* with the addition of -msym flag
9582
if test "$GCC" = yes; then
9583
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584
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'
9585
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587
allow_undefined_flag=' -expect_unresolved \*'
9588
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'
9589
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~
9590
$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'
9592
# Both c and cxx compiler support -rpath directly
9593
hardcode_libdir_flag_spec='-rpath $libdir'
9595
archive_cmds_need_lc='no'
9596
hardcode_libdir_separator=:
9600
no_undefined_flag=' -z defs'
9601
if test "$GCC" = yes; then
9603
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9607
case `$CC -V 2>&1` in
9610
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9616
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9617
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9618
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9622
hardcode_libdir_flag_spec='-R$libdir'
9623
hardcode_shlibpath_var=no
9625
solaris2.[0-5] | solaris2.[0-5].*) ;;
9627
# The compiler driver will combine and reorder linker options,
9628
# but understands `-z linker_flag'. GCC discards it without `$wl',
9629
# but is careful enough not to reorder.
9630
# Supported since Solaris 2.6 (maybe 2.5.1?)
9631
if test "$GCC" = yes; then
9632
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9634
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9638
link_all_deplibs=yes
9642
if test "x$host_vendor" = xsequent; then
9643
# Use $CC to link under sequent, because it throws in some extra .o
9644
# files that make .init and .fini sections work.
9645
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9647
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9649
hardcode_libdir_flag_spec='-L$libdir'
9651
hardcode_minus_L=yes
9652
hardcode_shlibpath_var=no
9656
case $host_vendor in
9658
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659
hardcode_direct=yes # is this really true???
9662
## LD is ld it makes a PLAMLIB
9663
## CC just makes a GrossModule.
9664
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9665
reload_cmds='$CC -r -o $output$reload_objs'
9669
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9673
runpath_var='LD_RUN_PATH'
9674
hardcode_shlibpath_var=no
9678
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679
hardcode_shlibpath_var=no
9680
export_dynamic_flag_spec='-Bexport'
9684
if test -d /usr/nec; then
9685
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686
hardcode_shlibpath_var=no
9687
runpath_var=LD_RUN_PATH
9688
hardcode_runpath_var=yes
9693
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9694
no_undefined_flag='${wl}-z,text'
9695
archive_cmds_need_lc=no
9696
hardcode_shlibpath_var=no
9697
runpath_var='LD_RUN_PATH'
9699
if test "$GCC" = yes; then
9700
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708
sysv5* | sco3.2v5* | sco5v6*)
9709
# Note: We can NOT use -z defs as we might desire, because we do not
9710
# link with -lc, and that would cause any symbols used from libc to
9711
# always be unresolved, which means just about no library would
9712
# ever link correctly. If we're not using GNU ld we use -z text
9713
# though, which does catch some bad symbols but isn't as heavy-handed
9715
no_undefined_flag='${wl}-z,text'
9716
allow_undefined_flag='${wl}-z,nodefs'
9717
archive_cmds_need_lc=no
9718
hardcode_shlibpath_var=no
9719
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9720
hardcode_libdir_separator=':'
9721
link_all_deplibs=yes
9722
export_dynamic_flag_spec='${wl}-Bexport'
9723
runpath_var='LD_RUN_PATH'
9725
if test "$GCC" = yes; then
9726
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736
hardcode_libdir_flag_spec='-L$libdir'
9737
hardcode_shlibpath_var=no
9745
if test x$host_vendor = xsni; then
9747
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9748
export_dynamic_flag_spec='${wl}-Blargedynsym'
9754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9755
$as_echo "$ld_shlibs" >&6; }
9756
test "$ld_shlibs" = no && can_build_shared=no
9758
with_gnu_ld=$with_gnu_ld
9775
# Do we need to explicitly link libc?
9777
case "x$archive_cmds_need_lc" in
9779
# Assume -lc should be added
9780
archive_cmds_need_lc=yes
9782
if test "$enable_shared" = yes && test "$GCC" = yes; then
9783
case $archive_cmds in
9785
# FIXME: we may have to deal with multi-command sequences.
9788
# Test whether the compiler implicitly links with -lc since on some
9789
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9790
# to ld, don't add -lc before -lgcc.
9791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9792
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9794
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9796
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9797
(eval $ac_compile) 2>&5
9799
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9800
test $ac_status = 0; } 2>conftest.err; then
9803
libobjs=conftest.$ac_objext
9805
wl=$lt_prog_compiler_wl
9806
pic_flag=$lt_prog_compiler_pic
9812
lt_save_allow_undefined_flag=$allow_undefined_flag
9813
allow_undefined_flag=
9814
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9815
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9817
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9818
test $ac_status = 0; }
9820
archive_cmds_need_lc=no
9822
archive_cmds_need_lc=yes
9824
allow_undefined_flag=$lt_save_allow_undefined_flag
9826
cat conftest.err 1>&5
9829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9830
$as_echo "$archive_cmds_need_lc" >&6; }
9993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9994
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9996
if test "$GCC" = yes; then
9998
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9999
*) lt_awk_arg="/^libraries:/" ;;
10001
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10002
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10003
# if the path contains ";" then we assume it to be the separator
10004
# otherwise default to the standard path separator (i.e. ":") - it is
10005
# assumed that no part of a normal pathname contains ";" but that should
10006
# okay in the real world where ";" in dirpaths is itself problematic.
10007
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10009
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10011
# Ok, now we have the path, separated by spaces, we can step through it
10012
# and add multilib dir if necessary.
10013
lt_tmp_lt_search_path_spec=
10014
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10015
for lt_sys_path in $lt_search_path_spec; do
10016
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10017
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10019
test -d "$lt_sys_path" && \
10020
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10023
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10024
BEGIN {RS=" "; FS="/|\n";} {
10027
for (lt_i = NF; lt_i > 0; lt_i--) {
10028
if ($lt_i != "" && $lt_i != ".") {
10029
if ($lt_i == "..") {
10032
if (lt_count == 0) {
10033
lt_foo="/" $lt_i lt_foo;
10040
if (lt_foo != "") { lt_freq[lt_foo]++; }
10041
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10043
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10045
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10047
library_names_spec=
10048
libname_spec='lib$name'
10052
postuninstall_cmds=
10056
shlibpath_overrides_runpath=unknown
10058
dynamic_linker="$host_os ld.so"
10059
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10060
need_lib_prefix=unknown
10061
hardcode_into_libs=no
10063
# when you set need_version to no, make sure it does not cause -set_version
10064
# flags to be left without arguments
10065
need_version=unknown
10070
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10071
shlibpath_var=LIBPATH
10073
# AIX 3 has no versioning support, so we append a major version to the name.
10074
soname_spec='${libname}${release}${shared_ext}$major'
10081
hardcode_into_libs=yes
10082
if test "$host_cpu" = ia64; then
10083
# AIX 5 supports IA64
10084
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10085
shlibpath_var=LD_LIBRARY_PATH
10087
# With GCC up to 2.95.x, collect2 would create an import file
10088
# for dependence libraries. The import file would start with
10089
# the line `#! .'. This would cause the generated library to
10090
# depend on `.', always an invalid library. This was fixed in
10091
# development snapshots of GCC prior to 3.0.
10093
aix4 | aix4.[01] | aix4.[01].*)
10094
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10096
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10099
can_build_shared=no
10103
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10104
# soname into executable. Probably we can add versioning support to
10105
# collect2, so additional links can be useful in future.
10106
if test "$aix_use_runtimelinking" = yes; then
10107
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10108
# instead of lib<name>.a to let people know that these are not
10109
# typical AIX shared libraries.
10110
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112
# We preserve .a as extension for shared libraries through AIX4.2
10113
# and later when we are not doing run time linking.
10114
library_names_spec='${libname}${release}.a $libname.a'
10115
soname_spec='${libname}${release}${shared_ext}$major'
10117
shlibpath_var=LIBPATH
10124
# Since July 2007 AmigaOS4 officially supports .so libraries.
10125
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129
library_names_spec='$libname.ixlibrary $libname.a'
10130
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10131
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'
10137
library_names_spec='${libname}${shared_ext}'
10138
dynamic_linker="$host_os ld.so"
10139
shlibpath_var=LIBRARY_PATH
10145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146
soname_spec='${libname}${release}${shared_ext}$major'
10147
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10148
shlibpath_var=LD_LIBRARY_PATH
10149
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10150
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10151
# the default ld.so.conf also contains /usr/contrib/lib and
10152
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10153
# libtool to hard-code these into programs
10156
cygwin* | mingw* | pw32* | cegcc*)
10157
version_type=windows
10162
case $GCC,$host_os in
10163
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10164
library_names_spec='$libname.dll.a'
10165
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10166
postinstall_cmds='base_file=`basename \${file}`~
10167
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10168
dldir=$destdir/`dirname \$dlpath`~
10169
test -d \$dldir || mkdir -p \$dldir~
10170
$install_prog $dir/$dlname \$dldir/$dlname~
10171
chmod a+x \$dldir/$dlname~
10172
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10173
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10175
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10176
dlpath=$dir/\$dldll~
10178
shlibpath_overrides_runpath=yes
10182
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10183
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10184
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10187
# MinGW DLLs use traditional 'lib' prefix
10188
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10189
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10190
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10191
# It is most probably a Windows format PATH printed by
10192
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10193
# path with ; separators, and with drive letters. We can handle the
10194
# drive letters (cygwin fileutils understands them), so leave them,
10195
# especially as we might pass files found there to a mingw objdump,
10196
# which wouldn't understand a cygwinified path. Ahh.
10197
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10199
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10203
# pw32 DLLs use 'pw' prefix rather than 'lib'
10204
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10210
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10213
dynamic_linker='Win32 ld.exe'
10214
# FIXME: first we should search . and the directory the executable is in
10218
darwin* | rhapsody*)
10219
dynamic_linker="$host_os dyld"
10220
version_type=darwin
10223
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10224
soname_spec='${libname}${release}${major}$shared_ext'
10225
shlibpath_overrides_runpath=yes
10226
shlibpath_var=DYLD_LIBRARY_PATH
10227
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10229
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10230
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10238
soname_spec='${libname}${release}${shared_ext}$major'
10239
shlibpath_var=LD_LIBRARY_PATH
10246
freebsd* | dragonfly*)
10247
# DragonFly does not have aout. When/if they implement a new
10248
# versioning mechanism, adjust this.
10249
if test -x /usr/bin/objformat; then
10250
objformat=`/usr/bin/objformat`
10253
freebsd[123]*) objformat=aout ;;
10254
*) objformat=elf ;;
10257
version_type=freebsd-$objformat
10258
case $version_type in
10260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10265
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10269
shlibpath_var=LD_LIBRARY_PATH
10272
shlibpath_overrides_runpath=yes
10274
freebsd3.[01]* | freebsdelf3.[01]*)
10275
shlibpath_overrides_runpath=yes
10276
hardcode_into_libs=yes
10278
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10279
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10280
shlibpath_overrides_runpath=no
10281
hardcode_into_libs=yes
10283
*) # from 4.6 on, and DragonFly
10284
shlibpath_overrides_runpath=yes
10285
hardcode_into_libs=yes
10294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10295
soname_spec='${libname}${release}${shared_ext}$major'
10296
shlibpath_var=LD_LIBRARY_PATH
10297
hardcode_into_libs=yes
10300
hpux9* | hpux10* | hpux11*)
10301
# Give a soname corresponding to the major version so that dld.sl refuses to
10302
# link against other versions.
10309
hardcode_into_libs=yes
10310
dynamic_linker="$host_os dld.so"
10311
shlibpath_var=LD_LIBRARY_PATH
10312
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314
soname_spec='${libname}${release}${shared_ext}$major'
10315
if test "X$HPUX_IA64_MODE" = X32; then
10316
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10318
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10320
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10324
hardcode_into_libs=yes
10325
dynamic_linker="$host_os dld.sl"
10326
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10327
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329
soname_spec='${libname}${release}${shared_ext}$major'
10330
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10331
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10335
dynamic_linker="$host_os dld.sl"
10336
shlibpath_var=SHLIB_PATH
10337
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339
soname_spec='${libname}${release}${shared_ext}$major'
10342
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10343
postinstall_cmds='chmod 555 $lib'
10350
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10351
soname_spec='${libname}${release}${shared_ext}$major'
10352
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10353
shlibpath_var=LD_LIBRARY_PATH
10354
shlibpath_overrides_runpath=no
10355
hardcode_into_libs=yes
10358
irix5* | irix6* | nonstopux*)
10360
nonstopux*) version_type=nonstopux ;;
10362
if test "$lt_cv_prog_gnu_ld" = yes; then
10370
soname_spec='${libname}${release}${shared_ext}$major'
10371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10373
irix5* | nonstopux*)
10374
libsuff= shlibsuff=
10377
case $LD in # libtool.m4 will add one of these switches to LD
10378
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10379
libsuff= shlibsuff= libmagic=32-bit;;
10380
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10381
libsuff=32 shlibsuff=N32 libmagic=N32;;
10382
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10383
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10384
*) libsuff= shlibsuff= libmagic=never-match;;
10388
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10389
shlibpath_overrides_runpath=no
10390
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10391
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10392
hardcode_into_libs=yes
10395
# No shared lib support for Linux oldld, aout, or coff.
10396
linux*oldld* | linux*aout* | linux*coff*)
10400
# This must be Linux ELF.
10401
linux* | k*bsd*-gnu)
10405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10406
soname_spec='${libname}${release}${shared_ext}$major'
10407
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10408
shlibpath_var=LD_LIBRARY_PATH
10409
shlibpath_overrides_runpath=no
10410
# Some binutils ld are patched to set DT_RUNPATH
10411
save_LDFLAGS=$LDFLAGS
10412
save_libdir=$libdir
10413
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10414
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10415
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416
/* end confdefs.h. */
10426
if ac_fn_c_try_link "$LINENO"; then :
10427
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10428
shlibpath_overrides_runpath=yes
10431
rm -f core conftest.err conftest.$ac_objext \
10432
conftest$ac_exeext conftest.$ac_ext
10433
LDFLAGS=$save_LDFLAGS
10434
libdir=$save_libdir
10436
# This implies no fast_install, which is unacceptable.
10437
# Some rework will be needed to allow for fast_install
10438
# before this can be enabled.
10439
hardcode_into_libs=yes
10441
# Append ld.so.conf contents to the search path
10442
if test -f /etc/ld.so.conf; then
10443
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' ' '`
10444
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10447
# We used to test for /lib/ld.so.1 and disable shared libraries on
10448
# powerpc, because MkLinux only supported shared libraries with the
10449
# GNU dynamic linker. Since this was broken with cross compilers,
10450
# most powerpc-linux boxes support dynamic linking these days and
10451
# people can always --disable-shared, the test was removed, and we
10452
# assume the GNU/Linux dynamic linker is in use.
10453
dynamic_linker='GNU/Linux ld.so'
10460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10461
soname_spec='${libname}${release}${shared_ext}$major'
10462
shlibpath_var=LD_LIBRARY_PATH
10463
shlibpath_overrides_runpath=no
10464
hardcode_into_libs=yes
10465
dynamic_linker='NetBSD ld.elf_so'
10472
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10473
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10474
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10475
dynamic_linker='NetBSD (a.out) ld.so'
10477
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10478
soname_spec='${libname}${release}${shared_ext}$major'
10479
dynamic_linker='NetBSD ld.elf_so'
10481
shlibpath_var=LD_LIBRARY_PATH
10482
shlibpath_overrides_runpath=yes
10483
hardcode_into_libs=yes
10488
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489
shlibpath_var=LD_LIBRARY_PATH
10490
shlibpath_overrides_runpath=yes
10497
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498
soname_spec='${libname}${release}${shared_ext}$major'
10499
shlibpath_var=LD_LIBRARY_PATH
10500
shlibpath_overrides_runpath=no
10501
hardcode_into_libs=yes
10502
dynamic_linker='ldqnx.so'
10507
sys_lib_dlsearch_path_spec="/usr/lib"
10509
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10511
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10512
*) need_version=no ;;
10514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10515
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10516
shlibpath_var=LD_LIBRARY_PATH
10517
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10519
openbsd2.[89] | openbsd2.[89].*)
10520
shlibpath_overrides_runpath=no
10523
shlibpath_overrides_runpath=yes
10527
shlibpath_overrides_runpath=yes
10532
libname_spec='$name'
10535
library_names_spec='$libname${shared_ext} $libname.a'
10536
dynamic_linker='OS/2 ld.exe'
10537
shlibpath_var=LIBPATH
10540
osf3* | osf4* | osf5*)
10544
soname_spec='${libname}${release}${shared_ext}$major'
10545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546
shlibpath_var=LD_LIBRARY_PATH
10547
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10548
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560
soname_spec='${libname}${release}${shared_ext}$major'
10561
shlibpath_var=LD_LIBRARY_PATH
10562
shlibpath_overrides_runpath=yes
10563
hardcode_into_libs=yes
10564
# ldd complains unless libraries are executable
10565
postinstall_cmds='chmod +x $lib'
10570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10571
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10572
shlibpath_var=LD_LIBRARY_PATH
10573
shlibpath_overrides_runpath=yes
10574
if test "$with_gnu_ld" = yes; then
10582
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583
soname_spec='${libname}${release}${shared_ext}$major'
10584
shlibpath_var=LD_LIBRARY_PATH
10585
case $host_vendor in
10587
shlibpath_overrides_runpath=no
10589
runpath_var=LD_RUN_PATH
10597
shlibpath_overrides_runpath=no
10598
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10604
if test -d /usr/nec ;then
10606
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10607
soname_spec='$libname${shared_ext}.$major'
10608
shlibpath_var=LD_LIBRARY_PATH
10612
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10613
version_type=freebsd-elf
10616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10617
soname_spec='${libname}${release}${shared_ext}$major'
10618
shlibpath_var=LD_LIBRARY_PATH
10619
shlibpath_overrides_runpath=yes
10620
hardcode_into_libs=yes
10621
if test "$with_gnu_ld" = yes; then
10622
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10624
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10627
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10631
sys_lib_dlsearch_path_spec='/usr/lib'
10635
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10639
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640
shlibpath_var=LD_LIBRARY_PATH
10641
shlibpath_overrides_runpath=no
10642
hardcode_into_libs=yes
10647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648
soname_spec='${libname}${release}${shared_ext}$major'
10649
shlibpath_var=LD_LIBRARY_PATH
10656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10657
$as_echo "$dynamic_linker" >&6; }
10658
test "$dynamic_linker" = no && can_build_shared=no
10660
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10661
if test "$GCC" = yes; then
10662
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10665
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10666
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10668
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10669
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10759
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10761
if test -n "$hardcode_libdir_flag_spec" ||
10762
test -n "$runpath_var" ||
10763
test "X$hardcode_automatic" = "Xyes" ; then
10765
# We can hardcode non-existent directories.
10766
if test "$hardcode_direct" != no &&
10767
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10768
# have to relink, otherwise we might link with an installed library
10769
# when we should be linking with a yet-to-be-installed one
10770
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10771
test "$hardcode_minus_L" != no; then
10772
# Linking always hardcodes the temporary library directory.
10773
hardcode_action=relink
10775
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10776
hardcode_action=immediate
10779
# We cannot hardcode anything, or else we can only hardcode existing
10781
hardcode_action=unsupported
10783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10784
$as_echo "$hardcode_action" >&6; }
10786
if test "$hardcode_action" = relink ||
10787
test "$inherit_rpath" = yes; then
10788
# Fast installation is not supported
10789
enable_fast_install=no
10790
elif test "$shlibpath_overrides_runpath" = yes ||
10791
test "$enable_shared" = no; then
10792
# Fast installation is not necessary
10793
enable_fast_install=needless
10801
if test "x$enable_dlopen" != xyes; then
10802
enable_dlopen=unknown
10803
enable_dlopen_self=unknown
10804
enable_dlopen_self_static=unknown
10811
lt_cv_dlopen="load_add_on"
10813
lt_cv_dlopen_self=yes
10816
mingw* | pw32* | cegcc*)
10817
lt_cv_dlopen="LoadLibrary"
10822
lt_cv_dlopen="dlopen"
10827
# if libdl is installed we need to link against it
10828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10829
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10830
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10831
$as_echo_n "(cached) " >&6
10833
ac_check_lib_save_LIBS=$LIBS
10835
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836
/* end confdefs.h. */
10838
/* Override any GCC internal prototype to avoid an error.
10839
Use char because int might match the return type of a GCC
10840
builtin and then its argument prototype would still apply. */
10853
if ac_fn_c_try_link "$LINENO"; then :
10854
ac_cv_lib_dl_dlopen=yes
10856
ac_cv_lib_dl_dlopen=no
10858
rm -f core conftest.err conftest.$ac_objext \
10859
conftest$ac_exeext conftest.$ac_ext
10860
LIBS=$ac_check_lib_save_LIBS
10862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10863
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10864
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10865
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10868
lt_cv_dlopen="dyld"
10870
lt_cv_dlopen_self=yes
10877
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10878
if test "x$ac_cv_func_shl_load" = x""yes; then :
10879
lt_cv_dlopen="shl_load"
10881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10882
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10883
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10884
$as_echo_n "(cached) " >&6
10886
ac_check_lib_save_LIBS=$LIBS
10888
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889
/* end confdefs.h. */
10891
/* Override any GCC internal prototype to avoid an error.
10892
Use char because int might match the return type of a GCC
10893
builtin and then its argument prototype would still apply. */
10901
return shl_load ();
10906
if ac_fn_c_try_link "$LINENO"; then :
10907
ac_cv_lib_dld_shl_load=yes
10909
ac_cv_lib_dld_shl_load=no
10911
rm -f core conftest.err conftest.$ac_objext \
10912
conftest$ac_exeext conftest.$ac_ext
10913
LIBS=$ac_check_lib_save_LIBS
10915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10916
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10917
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10918
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10920
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10921
if test "x$ac_cv_func_dlopen" = x""yes; then :
10922
lt_cv_dlopen="dlopen"
10924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10925
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10926
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10927
$as_echo_n "(cached) " >&6
10929
ac_check_lib_save_LIBS=$LIBS
10931
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932
/* end confdefs.h. */
10934
/* Override any GCC internal prototype to avoid an error.
10935
Use char because int might match the return type of a GCC
10936
builtin and then its argument prototype would still apply. */
10949
if ac_fn_c_try_link "$LINENO"; then :
10950
ac_cv_lib_dl_dlopen=yes
10952
ac_cv_lib_dl_dlopen=no
10954
rm -f core conftest.err conftest.$ac_objext \
10955
conftest$ac_exeext conftest.$ac_ext
10956
LIBS=$ac_check_lib_save_LIBS
10958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10959
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10960
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10961
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10964
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10965
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10966
$as_echo_n "(cached) " >&6
10968
ac_check_lib_save_LIBS=$LIBS
10969
LIBS="-lsvld $LIBS"
10970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971
/* end confdefs.h. */
10973
/* Override any GCC internal prototype to avoid an error.
10974
Use char because int might match the return type of a GCC
10975
builtin and then its argument prototype would still apply. */
10988
if ac_fn_c_try_link "$LINENO"; then :
10989
ac_cv_lib_svld_dlopen=yes
10991
ac_cv_lib_svld_dlopen=no
10993
rm -f core conftest.err conftest.$ac_objext \
10994
conftest$ac_exeext conftest.$ac_ext
10995
LIBS=$ac_check_lib_save_LIBS
10997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10998
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10999
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11000
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11003
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11004
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11005
$as_echo_n "(cached) " >&6
11007
ac_check_lib_save_LIBS=$LIBS
11009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010
/* end confdefs.h. */
11012
/* Override any GCC internal prototype to avoid an error.
11013
Use char because int might match the return type of a GCC
11014
builtin and then its argument prototype would still apply. */
11022
return dld_link ();
11027
if ac_fn_c_try_link "$LINENO"; then :
11028
ac_cv_lib_dld_dld_link=yes
11030
ac_cv_lib_dld_dld_link=no
11032
rm -f core conftest.err conftest.$ac_objext \
11033
conftest$ac_exeext conftest.$ac_ext
11034
LIBS=$ac_check_lib_save_LIBS
11036
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11037
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11038
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11039
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11060
if test "x$lt_cv_dlopen" != xno; then
11066
case $lt_cv_dlopen in
11068
save_CPPFLAGS="$CPPFLAGS"
11069
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11071
save_LDFLAGS="$LDFLAGS"
11072
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11075
LIBS="$lt_cv_dlopen_libs $LIBS"
11077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11078
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11079
if test "${lt_cv_dlopen_self+set}" = set; then :
11080
$as_echo_n "(cached) " >&6
11082
if test "$cross_compiling" = yes; then :
11083
lt_cv_dlopen_self=cross
11085
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11086
lt_status=$lt_dlunknown
11087
cat > conftest.$ac_ext <<_LT_EOF
11088
#line 11088 "configure"
11089
#include "confdefs.h"
11098
# define LT_DLGLOBAL RTLD_GLOBAL
11101
# define LT_DLGLOBAL DL_GLOBAL
11103
# define LT_DLGLOBAL 0
11107
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11108
find out it does not work in some platform. */
11109
#ifndef LT_DLLAZY_OR_NOW
11111
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11114
# define LT_DLLAZY_OR_NOW DL_LAZY
11117
# define LT_DLLAZY_OR_NOW RTLD_NOW
11120
# define LT_DLLAZY_OR_NOW DL_NOW
11122
# define LT_DLLAZY_OR_NOW 0
11129
void fnord() { int i=42;}
11132
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11133
int status = $lt_dlunknown;
11137
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11138
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139
/* dlclose (self); */
11147
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11148
(eval $ac_link) 2>&5
11150
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11152
(./conftest; exit; ) >&5 2>/dev/null
11154
case x$lt_status in
11155
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11156
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11157
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11160
# compilation failed
11161
lt_cv_dlopen_self=no
11168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11169
$as_echo "$lt_cv_dlopen_self" >&6; }
11171
if test "x$lt_cv_dlopen_self" = xyes; then
11172
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11174
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11175
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11176
$as_echo_n "(cached) " >&6
11178
if test "$cross_compiling" = yes; then :
11179
lt_cv_dlopen_self_static=cross
11181
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11182
lt_status=$lt_dlunknown
11183
cat > conftest.$ac_ext <<_LT_EOF
11184
#line 11184 "configure"
11185
#include "confdefs.h"
11194
# define LT_DLGLOBAL RTLD_GLOBAL
11197
# define LT_DLGLOBAL DL_GLOBAL
11199
# define LT_DLGLOBAL 0
11203
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11204
find out it does not work in some platform. */
11205
#ifndef LT_DLLAZY_OR_NOW
11207
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11210
# define LT_DLLAZY_OR_NOW DL_LAZY
11213
# define LT_DLLAZY_OR_NOW RTLD_NOW
11216
# define LT_DLLAZY_OR_NOW DL_NOW
11218
# define LT_DLLAZY_OR_NOW 0
11225
void fnord() { int i=42;}
11228
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11229
int status = $lt_dlunknown;
11233
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11234
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11235
/* dlclose (self); */
11243
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11244
(eval $ac_link) 2>&5
11246
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11247
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11248
(./conftest; exit; ) >&5 2>/dev/null
11250
case x$lt_status in
11251
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11252
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11253
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11256
# compilation failed
11257
lt_cv_dlopen_self_static=no
11264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11265
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11268
CPPFLAGS="$save_CPPFLAGS"
11269
LDFLAGS="$save_LDFLAGS"
11274
case $lt_cv_dlopen_self in
11275
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11276
*) enable_dlopen_self=unknown ;;
11279
case $lt_cv_dlopen_self_static in
11280
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11281
*) enable_dlopen_self_static=unknown ;;
11303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11304
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11305
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11306
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11307
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11309
$as_echo "yes" >&6; }
11311
# FIXME - insert some real tests, host_os isn't really good enough
11314
if test -n "$STRIP" ; then
11315
striplib="$STRIP -x"
11316
old_striplib="$STRIP -S"
11317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11318
$as_echo "yes" >&6; }
11320
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321
$as_echo "no" >&6; }
11325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326
$as_echo "no" >&6; }
11342
# Report which library types will actually be built
11343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11344
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11346
$as_echo "$can_build_shared" >&6; }
11348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11349
$as_echo_n "checking whether to build shared libraries... " >&6; }
11350
test "$can_build_shared" = "no" && enable_shared=no
11352
# On AIX, shared libraries and static libraries use the same namespace, and
11353
# are all built from PIC.
11356
test "$enable_shared" = yes && enable_static=no
11357
if test -n "$RANLIB"; then
11358
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11359
postinstall_cmds='$RANLIB $lib'
11364
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11365
test "$enable_shared" = yes && enable_static=no
11369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11370
$as_echo "$enable_shared" >&6; }
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11373
$as_echo_n "checking whether to build static libraries... " >&6; }
11374
# Make sure either enable_shared or enable_static is yes.
11375
test "$enable_shared" = yes || enable_static=yes
11376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11377
$as_echo "$enable_static" >&6; }
11384
ac_cpp='$CPP $CPPFLAGS'
11385
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11393
ac_cpp='$CXXCPP $CPPFLAGS'
11394
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11395
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11396
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11398
archive_cmds_need_lc_CXX=no
11399
allow_undefined_flag_CXX=
11400
always_export_symbols_CXX=no
11401
archive_expsym_cmds_CXX=
11402
compiler_needs_object_CXX=no
11403
export_dynamic_flag_spec_CXX=
11404
hardcode_direct_CXX=no
11405
hardcode_direct_absolute_CXX=no
11406
hardcode_libdir_flag_spec_CXX=
11407
hardcode_libdir_flag_spec_ld_CXX=
11408
hardcode_libdir_separator_CXX=
11409
hardcode_minus_L_CXX=no
11410
hardcode_shlibpath_var_CXX=unsupported
11411
hardcode_automatic_CXX=no
11412
inherit_rpath_CXX=no
11414
module_expsym_cmds_CXX=
11415
link_all_deplibs_CXX=unknown
11416
old_archive_cmds_CXX=$old_archive_cmds
11417
no_undefined_flag_CXX=
11418
whole_archive_flag_spec_CXX=
11419
enable_shared_with_static_runtimes_CXX=no
11421
# Source file extension for C++ test sources.
11424
# Object file extension for compiled C++ test sources.
11428
# No sense in running all these tests if we already determined that
11429
# the CXX compiler isn't working. Some variables (like enable_shared)
11430
# are currently assumed to apply to all compilers on this platform,
11431
# and will be corrupted by setting them based on a non-working compiler.
11432
if test "$_lt_caught_CXX_error" != yes; then
11433
# Code to be used in simple compile tests
11434
lt_simple_compile_test_code="int some_variable = 0;"
11436
# Code to be used in simple link tests
11437
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11439
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11446
# If no C compiler was specified, use CC.
11449
# If no C compiler flags were specified, use CFLAGS.
11450
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11452
# Allow CC to be a program name with arguments.
11456
# save warnings/boilerplate of simple test code
11457
ac_outfile=conftest.$ac_objext
11458
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11459
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11460
_lt_compiler_boilerplate=`cat conftest.err`
11463
ac_outfile=conftest.$ac_objext
11464
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11465
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11466
_lt_linker_boilerplate=`cat conftest.err`
11470
# Allow CC to be a program name with arguments.
11475
lt_save_with_gnu_ld=$with_gnu_ld
11476
lt_save_path_LD=$lt_cv_path_LD
11477
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11478
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11480
$as_unset lt_cv_prog_gnu_ld
11482
if test -n "${lt_cv_path_LDCXX+set}"; then
11483
lt_cv_path_LD=$lt_cv_path_LDCXX
11485
$as_unset lt_cv_path_LD
11487
test -z "${LDCXX+set}" || LD=$LDCXX
11491
for cc_temp in $compiler""; do
11493
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11494
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11499
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11502
if test -n "$compiler"; then
11503
# We don't want -fno-exception when compiling C++ code, so set the
11504
# no_builtin_flag separately
11505
if test "$GXX" = yes; then
11506
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11508
lt_prog_compiler_no_builtin_flag_CXX=
11511
if test "$GXX" = yes; then
11512
# Set up default GNU C++ configuration
11516
# Check whether --with-gnu-ld was given.
11517
if test "${with_gnu_ld+set}" = set; then :
11518
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11524
if test "$GCC" = yes; then
11525
# Check if gcc -print-prog-name=ld gives a path.
11526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11527
$as_echo_n "checking for ld used by $CC... " >&6; }
11530
# gcc leaves a trailing carriage return which upsets mingw
11531
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11533
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11536
# Accept absolute paths.
11538
re_direlt='/[^/][^/]*/\.\./'
11539
# Canonicalize the pathname of ld
11540
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11541
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11542
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11544
test -z "$LD" && LD="$ac_prog"
11547
# If it fails, then pretend we aren't using GCC.
11551
# If it is relative, then search for the first ld in PATH.
11552
with_gnu_ld=unknown
11555
elif test "$with_gnu_ld" = yes; then
11556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11557
$as_echo_n "checking for GNU ld... " >&6; }
11559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11560
$as_echo_n "checking for non-GNU ld... " >&6; }
11562
if test "${lt_cv_path_LD+set}" = set; then :
11563
$as_echo_n "(cached) " >&6
11565
if test -z "$LD"; then
11566
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11567
for ac_dir in $PATH; do
11569
test -z "$ac_dir" && ac_dir=.
11570
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11571
lt_cv_path_LD="$ac_dir/$ac_prog"
11572
# Check to see if the program is GNU ld. I'd rather use --version,
11573
# but apparently some variants of GNU ld only accept -v.
11574
# Break only if it was the GNU/non-GNU ld that we prefer.
11575
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11576
*GNU* | *'with BFD'*)
11577
test "$with_gnu_ld" != no && break
11580
test "$with_gnu_ld" != yes && break
11587
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11591
LD="$lt_cv_path_LD"
11592
if test -n "$LD"; then
11593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11594
$as_echo "$LD" >&6; }
11596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597
$as_echo "no" >&6; }
11599
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11601
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11602
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11603
$as_echo_n "(cached) " >&6
11605
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11606
case `$LD -v 2>&1 </dev/null` in
11607
*GNU* | *'with BFD'*)
11608
lt_cv_prog_gnu_ld=yes
11611
lt_cv_prog_gnu_ld=no
11615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11616
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11617
with_gnu_ld=$lt_cv_prog_gnu_ld
11625
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11626
# archiving commands below assume that GNU ld is being used.
11627
if test "$with_gnu_ld" = yes; then
11628
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11629
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'
11631
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11632
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11634
# If archive_cmds runs LD, not CC, wlarc should be empty
11635
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11636
# investigate it a little bit more. (MM)
11639
# ancient GNU ld didn't support --whole-archive et. al.
11640
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11641
$GREP 'no-whole-archive' > /dev/null; then
11642
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11644
whole_archive_flag_spec_CXX=
11650
# A generic and very simple default shared library creation
11651
# command for GNU C++ for the case where it uses the native
11652
# linker, instead of GNU ld. If possible, this setting should
11653
# overridden to take advantage of the native linker features on
11654
# the platform it is being used on.
11655
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11658
# Commands to make compiler produce verbose output that lists
11659
# what "hidden" libraries, object files and flags are used when
11660
# linking a shared library.
11661
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11669
# PORTME: fill in a description of your system's C++ link characteristics
11670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11671
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11675
# FIXME: insert proper C++ library support
11679
if test "$host_cpu" = ia64; then
11680
# On IA64, the linker does run time linking by default, so we don't
11681
# have to do anything special.
11682
aix_use_runtimelinking=no
11683
exp_sym_flag='-Bexport'
11686
aix_use_runtimelinking=no
11688
# Test if we are trying to use run time linking or normal
11689
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11690
# need to do runtime linking.
11691
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11692
for ld_flag in $LDFLAGS; do
11695
aix_use_runtimelinking=yes
11703
exp_sym_flag='-bexport'
11704
no_entry_flag='-bnoentry'
11707
# When large executables or shared objects are built, AIX ld can
11708
# have problems creating the table of contents. If linking a library
11709
# or program results in "error TOC overflow" add -mminimal-toc to
11710
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11711
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11713
archive_cmds_CXX=''
11714
hardcode_direct_CXX=yes
11715
hardcode_direct_absolute_CXX=yes
11716
hardcode_libdir_separator_CXX=':'
11717
link_all_deplibs_CXX=yes
11718
file_list_spec_CXX='${wl}-f,'
11720
if test "$GXX" = yes; then
11721
case $host_os in aix4.[012]|aix4.[012].*)
11722
# We only want to do this on AIX 4.2 and lower, the check
11723
# below for broken collect2 doesn't work under 4.3+
11724
collect2name=`${CC} -print-prog-name=collect2`
11725
if test -f "$collect2name" &&
11726
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11728
# We have reworked collect2
11731
# We have old collect2
11732
hardcode_direct_CXX=unsupported
11733
# It fails to find uninstalled libraries when the uninstalled
11734
# path is not listed in the libpath. Setting hardcode_minus_L
11735
# to unsupported forces relinking
11736
hardcode_minus_L_CXX=yes
11737
hardcode_libdir_flag_spec_CXX='-L$libdir'
11738
hardcode_libdir_separator_CXX=
11741
shared_flag='-shared'
11742
if test "$aix_use_runtimelinking" = yes; then
11743
shared_flag="$shared_flag "'${wl}-G'
11747
if test "$host_cpu" = ia64; then
11748
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11749
# chokes on -Wl,-G. The following line is correct:
11752
if test "$aix_use_runtimelinking" = yes; then
11753
shared_flag='${wl}-G'
11755
shared_flag='${wl}-bM:SRE'
11760
export_dynamic_flag_spec_CXX='${wl}-bexpall'
11761
# It seems that -bexpall does not export symbols beginning with
11762
# underscore (_), so it is better to generate a list of symbols to
11764
always_export_symbols_CXX=yes
11765
if test "$aix_use_runtimelinking" = yes; then
11766
# Warning - without using the other runtime loading flags (-brtl),
11767
# -berok will link without error, but may produce a broken library.
11768
allow_undefined_flag_CXX='-berok'
11769
# Determine the default libpath from the value encoded in an empty
11771
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772
/* end confdefs.h. */
11782
if ac_fn_cxx_try_link "$LINENO"; then :
11784
lt_aix_libpath_sed='
11785
/Import File Strings/,/^$/ {
11791
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11792
# Check for a 64-bit object if we didn't find anything.
11793
if test -z "$aix_libpath"; then
11794
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11797
rm -f core conftest.err conftest.$ac_objext \
11798
conftest$ac_exeext conftest.$ac_ext
11799
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11801
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11803
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"
11805
if test "$host_cpu" = ia64; then
11806
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11807
allow_undefined_flag_CXX="-z nodefs"
11808
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"
11810
# Determine the default libpath from the value encoded in an
11811
# empty executable.
11812
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813
/* end confdefs.h. */
11823
if ac_fn_cxx_try_link "$LINENO"; then :
11825
lt_aix_libpath_sed='
11826
/Import File Strings/,/^$/ {
11832
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11833
# Check for a 64-bit object if we didn't find anything.
11834
if test -z "$aix_libpath"; then
11835
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11838
rm -f core conftest.err conftest.$ac_objext \
11839
conftest$ac_exeext conftest.$ac_ext
11840
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11842
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11843
# Warning - without using the other run time loading flags,
11844
# -berok will link without error, but may produce a broken library.
11845
no_undefined_flag_CXX=' ${wl}-bernotok'
11846
allow_undefined_flag_CXX=' ${wl}-berok'
11847
# Exported symbols can be pulled into shared objects from archives
11848
whole_archive_flag_spec_CXX='$convenience'
11849
archive_cmds_need_lc_CXX=yes
11850
# This is similar to how AIX traditionally builds its shared
11852
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'
11858
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11859
allow_undefined_flag_CXX=unsupported
11860
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11861
# support --undefined. This deserves some investigation. FIXME
11862
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11869
case $cc_basename in
11871
# FIXME: insert proper C++ library support
11877
cygwin* | mingw* | pw32* | cegcc*)
11878
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11879
# as there is no search path for DLLs.
11880
hardcode_libdir_flag_spec_CXX='-L$libdir'
11881
allow_undefined_flag_CXX=unsupported
11882
always_export_symbols_CXX=no
11883
enable_shared_with_static_runtimes_CXX=yes
11885
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11886
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'
11887
# If the export-symbols file already is a .def file (1st line
11888
# is EXPORTS), use it as is; otherwise, prepend...
11889
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11890
cp $export_symbols $output_objdir/$soname.def;
11892
echo EXPORTS > $output_objdir/$soname.def;
11893
cat $export_symbols >> $output_objdir/$soname.def;
11895
$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'
11900
darwin* | rhapsody*)
11903
archive_cmds_need_lc_CXX=no
11904
hardcode_direct_CXX=no
11905
hardcode_automatic_CXX=yes
11906
hardcode_shlibpath_var_CXX=unsupported
11907
whole_archive_flag_spec_CXX=''
11908
link_all_deplibs_CXX=yes
11909
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11910
case $cc_basename in
11911
ifort*) _lt_dar_can_shared=yes ;;
11912
*) _lt_dar_can_shared=$GCC ;;
11914
if test "$_lt_dar_can_shared" = "yes"; then
11915
output_verbose_link_cmd=echo
11916
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}"
11917
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11918
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}"
11919
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}"
11920
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11921
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}"
11922
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}"
11932
case $cc_basename in
11934
# FIXME: insert proper C++ library support
11938
# Green Hills C++ Compiler
11939
# FIXME: insert proper C++ library support
11943
# FIXME: insert proper C++ library support
11950
# C++ shared libraries reported to be fairly broken before
11956
archive_cmds_need_lc_CXX=no
11959
freebsd* | dragonfly*)
11960
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11969
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11970
hardcode_libdir_separator_CXX=:
11971
export_dynamic_flag_spec_CXX='${wl}-E'
11972
hardcode_direct_CXX=yes
11973
hardcode_minus_L_CXX=yes # Not in the search PATH,
11974
# but as the default
11975
# location of the library.
11977
case $cc_basename in
11979
# FIXME: insert proper C++ library support
11983
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'
11984
# Commands to make compiler produce verbose output that lists
11985
# what "hidden" libraries, object files and flags are used when
11986
# linking a shared library.
11988
# There doesn't appear to be a way to prevent this compiler from
11989
# explicitly linking system object files so we need to strip them
11990
# from the output so that they don't get included in the library
11992
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'
11995
if test "$GXX" = yes; then
11996
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'
11998
# FIXME: insert proper C++ library support
12006
if test $with_gnu_ld = no; then
12007
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12008
hardcode_libdir_separator_CXX=:
12014
export_dynamic_flag_spec_CXX='${wl}-E'
12020
hardcode_direct_CXX=no
12021
hardcode_shlibpath_var_CXX=no
12024
hardcode_direct_CXX=yes
12025
hardcode_direct_absolute_CXX=yes
12026
hardcode_minus_L_CXX=yes # Not in the search PATH,
12027
# but as the default
12028
# location of the library.
12032
case $cc_basename in
12034
# FIXME: insert proper C++ library support
12040
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12043
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12046
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12049
# Commands to make compiler produce verbose output that lists
12050
# what "hidden" libraries, object files and flags are used when
12051
# linking a shared library.
12053
# There doesn't appear to be a way to prevent this compiler from
12054
# explicitly linking system object files so we need to strip them
12055
# from the output so that they don't get included in the library
12057
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'
12060
if test "$GXX" = yes; then
12061
if test $with_gnu_ld = no; then
12064
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12067
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12070
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'
12075
# FIXME: insert proper C++ library support
12083
hardcode_direct_CXX=no
12084
hardcode_shlibpath_var_CXX=no
12085
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12086
export_dynamic_flag_spec_CXX='${wl}-E'
12087
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12088
# Instead, shared libraries are loaded at an image base (0x10000000 by
12089
# default) and relocated if they conflict, which is a slow very memory
12090
# consuming and fragmenting process. To avoid this, we pick a random,
12091
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12092
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12093
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'
12094
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'
12097
case $cc_basename in
12100
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'
12102
# Archives containing C++ object files must be created using
12103
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12104
# necessary to make sure instantiated templates are included
12106
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12109
if test "$GXX" = yes; then
12110
if test "$with_gnu_ld" = no; then
12111
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'
12113
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'
12116
link_all_deplibs_CXX=yes
12119
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12120
hardcode_libdir_separator_CXX=:
12121
inherit_rpath_CXX=yes
12124
linux* | k*bsd*-gnu)
12125
case $cc_basename in
12127
# Kuck and Associates, Inc. (KAI) C++ Compiler
12129
# KCC will only create a shared library if the output file
12130
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12131
# to its proper name (with version) after linking.
12132
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'
12133
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'
12134
# Commands to make compiler produce verbose output that lists
12135
# what "hidden" libraries, object files and flags are used when
12136
# linking a shared library.
12138
# There doesn't appear to be a way to prevent this compiler from
12139
# explicitly linking system object files so we need to strip them
12140
# from the output so that they don't get included in the library
12142
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'
12144
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12145
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12147
# Archives containing C++ object files must be created using
12148
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12149
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12154
# version 8.0 and above of icpc choke on multiply defined symbols
12155
# if we add $predep_objects and $postdep_objects, however 7.1 and
12156
# earlier do not add the objects themselves.
12157
case `$CC -V 2>&1` in
12159
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12160
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'
12162
*) # Version 8.0 or newer
12165
ia64*) tmp_idyn=' -i_dynamic';;
12167
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12168
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'
12171
archive_cmds_need_lc_CXX=no
12172
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12173
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12174
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12177
# Portland Group C++ compiler
12179
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12180
prelink_cmds_CXX='tpldir=Template.dir~
12182
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12183
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12184
old_archive_cmds_CXX='tpldir=Template.dir~
12186
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12187
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12189
archive_cmds_CXX='tpldir=Template.dir~
12191
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12192
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12193
archive_expsym_cmds_CXX='tpldir=Template.dir~
12195
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12196
$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'
12198
*) # Version 6 will use weak symbols
12199
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12200
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'
12204
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12205
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12206
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'
12210
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12211
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'
12213
runpath_var=LD_RUN_PATH
12214
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12215
hardcode_libdir_separator_CXX=:
12217
# Commands to make compiler produce verbose output that lists
12218
# what "hidden" libraries, object files and flags are used when
12219
# linking a shared library.
12221
# There doesn't appear to be a way to prevent this compiler from
12222
# explicitly linking system object files so we need to strip them
12223
# from the output so that they don't get included in the library
12225
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'
12228
# IBM XL 8.0 on PPC, with GNU ld
12229
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12230
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12231
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12232
if test "x$supports_anon_versioning" = xyes; then
12233
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12234
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12235
echo "local: *; };" >> $output_objdir/$libname.ver~
12236
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12240
case `$CC -V 2>&1 | sed 5q` in
12243
no_undefined_flag_CXX=' -zdefs'
12244
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12245
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'
12246
hardcode_libdir_flag_spec_CXX='-R$libdir'
12247
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'
12248
compiler_needs_object_CXX=yes
12250
# Not sure whether something based on
12251
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12253
output_verbose_link_cmd='echo'
12255
# Archives containing C++ object files must be created using
12256
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12257
# necessary to make sure instantiated templates are included
12259
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12267
# FIXME: insert proper C++ library support
12272
# FIXME: insert proper C++ library support
12277
case $cc_basename in
12279
# FIXME: insert proper C++ library support
12283
# FIXME: insert proper C++ library support
12290
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12291
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12293
hardcode_libdir_flag_spec_CXX='-R$libdir'
12294
hardcode_direct_CXX=yes
12295
hardcode_shlibpath_var_CXX=no
12297
# Workaround some broken pre-1.5 toolchains
12298
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12306
# C++ shared libraries are fairly broken
12311
if test -f /usr/libexec/ld.so; then
12312
hardcode_direct_CXX=yes
12313
hardcode_shlibpath_var_CXX=no
12314
hardcode_direct_absolute_CXX=yes
12315
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12316
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12317
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12318
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12319
export_dynamic_flag_spec_CXX='${wl}-E'
12320
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12322
output_verbose_link_cmd=echo
12328
osf3* | osf4* | osf5*)
12329
case $cc_basename in
12331
# Kuck and Associates, Inc. (KAI) C++ Compiler
12333
# KCC will only create a shared library if the output file
12334
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12335
# to its proper name (with version) after linking.
12336
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'
12338
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12339
hardcode_libdir_separator_CXX=:
12341
# Archives containing C++ object files must be created using
12342
# the KAI C++ compiler.
12344
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12345
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12349
# Rational C++ 2.4.1
12350
# FIXME: insert proper C++ library support
12356
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12357
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'
12358
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12361
allow_undefined_flag_CXX=' -expect_unresolved \*'
12362
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'
12363
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12364
echo "-hidden">> $lib.exp~
12365
$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~
12367
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12371
hardcode_libdir_separator_CXX=:
12373
# Commands to make compiler produce verbose output that lists
12374
# what "hidden" libraries, object files and flags are used when
12375
# linking a shared library.
12377
# There doesn't appear to be a way to prevent this compiler from
12378
# explicitly linking system object files so we need to strip them
12379
# from the output so that they don't get included in the library
12381
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'
12384
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12385
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12388
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'
12391
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'
12395
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12396
hardcode_libdir_separator_CXX=:
12398
# Commands to make compiler produce verbose output that lists
12399
# what "hidden" libraries, object files and flags are used when
12400
# linking a shared library.
12401
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12404
# FIXME: insert proper C++ library support
12412
# FIXME: insert proper C++ library support
12417
case $cc_basename in
12420
# FIXME: insert proper C++ library support
12425
# FIXME: insert proper C++ library support
12429
# FIXME: insert proper C++ library support
12436
case $cc_basename in
12438
# Sun C++ 4.2, 5.x and Centerline C++
12439
archive_cmds_need_lc_CXX=yes
12440
no_undefined_flag_CXX=' -zdefs'
12441
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12442
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12443
$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'
12445
hardcode_libdir_flag_spec_CXX='-R$libdir'
12446
hardcode_shlibpath_var_CXX=no
12448
solaris2.[0-5] | solaris2.[0-5].*) ;;
12450
# The compiler driver will combine and reorder linker options,
12451
# but understands `-z linker_flag'.
12452
# Supported since Solaris 2.6 (maybe 2.5.1?)
12453
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12456
link_all_deplibs_CXX=yes
12458
output_verbose_link_cmd='echo'
12460
# Archives containing C++ object files must be created using
12461
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12462
# necessary to make sure instantiated templates are included
12464
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12467
# Green Hills C++ Compiler
12468
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12470
# The C++ compiler must be used to create the archive.
12471
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12474
# GNU C++ compiler with Solaris linker
12475
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12476
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12477
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12478
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12479
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12480
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12482
# Commands to make compiler produce verbose output that lists
12483
# what "hidden" libraries, object files and flags are used when
12484
# linking a shared library.
12485
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12487
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12489
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12490
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12491
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12493
# Commands to make compiler produce verbose output that lists
12494
# what "hidden" libraries, object files and flags are used when
12495
# linking a shared library.
12496
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12499
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12501
solaris2.[0-5] | solaris2.[0-5].*) ;;
12503
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12511
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12512
no_undefined_flag_CXX='${wl}-z,text'
12513
archive_cmds_need_lc_CXX=no
12514
hardcode_shlibpath_var_CXX=no
12515
runpath_var='LD_RUN_PATH'
12517
case $cc_basename in
12519
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12520
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12523
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12524
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12529
sysv5* | sco3.2v5* | sco5v6*)
12530
# Note: We can NOT use -z defs as we might desire, because we do not
12531
# link with -lc, and that would cause any symbols used from libc to
12532
# always be unresolved, which means just about no library would
12533
# ever link correctly. If we're not using GNU ld we use -z text
12534
# though, which does catch some bad symbols but isn't as heavy-handed
12536
no_undefined_flag_CXX='${wl}-z,text'
12537
allow_undefined_flag_CXX='${wl}-z,nodefs'
12538
archive_cmds_need_lc_CXX=no
12539
hardcode_shlibpath_var_CXX=no
12540
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12541
hardcode_libdir_separator_CXX=':'
12542
link_all_deplibs_CXX=yes
12543
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12544
runpath_var='LD_RUN_PATH'
12546
case $cc_basename in
12548
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12549
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12552
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12553
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12559
case $cc_basename in
12561
# NonStop-UX NCC 3.20
12562
# FIXME: insert proper C++ library support
12566
# FIXME: insert proper C++ library support
12573
# FIXME: insert proper C++ library support
12578
# FIXME: insert proper C++ library support
12583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12584
$as_echo "$ld_shlibs_CXX" >&6; }
12585
test "$ld_shlibs_CXX" = no && can_build_shared=no
12591
## There is no encapsulation within the following macros, do not change
12592
## the running order or otherwise move them around unless you know exactly
12593
## what you are doing...
12594
# Dependencies to place before and after the object being linked:
12595
predep_objects_CXX=
12596
postdep_objects_CXX=
12599
compiler_lib_search_path_CXX=
12601
cat > conftest.$ac_ext <<_LT_EOF
12605
Foo (void) { a = 0; }
12611
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12612
(eval $ac_compile) 2>&5
12614
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615
test $ac_status = 0; }; then
12616
# Parse the compiler output and extract the necessary
12617
# objects, libraries and library flags.
12619
# Sentinel used to keep track of whether or not we are before
12620
# the conftest object file.
12621
pre_test_object_deps_done=no
12623
for p in `eval "$output_verbose_link_cmd"`; do
12627
# Some compilers place space between "-{L,R}" and the path.
12628
# Remove the space.
12629
if test $p = "-L" ||
12630
test $p = "-R"; then
12637
if test "$pre_test_object_deps_done" = no; then
12640
# Internal compiler library paths should come after those
12641
# provided the user. The postdeps already come after the
12642
# user supplied libs so there is no need to process them.
12643
if test -z "$compiler_lib_search_path_CXX"; then
12644
compiler_lib_search_path_CXX="${prev}${p}"
12646
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12649
# The "-l" case would never come before the object being
12650
# linked, so don't bother handling this case.
12653
if test -z "$postdeps_CXX"; then
12654
postdeps_CXX="${prev}${p}"
12656
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12662
# This assumes that the test object file only shows up
12663
# once in the compiler output.
12664
if test "$p" = "conftest.$objext"; then
12665
pre_test_object_deps_done=yes
12669
if test "$pre_test_object_deps_done" = no; then
12670
if test -z "$predep_objects_CXX"; then
12671
predep_objects_CXX="$p"
12673
predep_objects_CXX="$predep_objects_CXX $p"
12676
if test -z "$postdep_objects_CXX"; then
12677
postdep_objects_CXX="$p"
12679
postdep_objects_CXX="$postdep_objects_CXX $p"
12684
*) ;; # Ignore the rest.
12692
echo "libtool.m4: error: problem compiling CXX test program"
12695
$RM -f confest.$objext
12697
# PORTME: override above test on systems where it is broken
12700
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12701
# hack all around it, let's just trust "g++" to DTRT.
12702
predep_objects_CXX=
12703
postdep_objects_CXX=
12708
case `$CC -V 2>&1 | sed 5q` in
12712
# The more standards-conforming stlport4 library is
12713
# incompatible with the Cstd library. Avoid specifying
12714
# it if it's in CXXFLAGS. Ignore libCrun as
12715
# -library=stlport4 depends on it.
12716
case " $CXX $CXXFLAGS " in
12717
*" -library=stlport4 "*)
12718
solaris_use_stlport4=yes
12722
if test "$solaris_use_stlport4" != yes; then
12723
postdeps_CXX='-library=Cstd -library=Crun'
12730
case $cc_basename in
12732
# The more standards-conforming stlport4 library is
12733
# incompatible with the Cstd library. Avoid specifying
12734
# it if it's in CXXFLAGS. Ignore libCrun as
12735
# -library=stlport4 depends on it.
12736
case " $CXX $CXXFLAGS " in
12737
*" -library=stlport4 "*)
12738
solaris_use_stlport4=yes
12742
# Adding this requires a known-good setup of shared libraries for
12743
# Sun compiler versions before 5.6, else PIC objects from an old
12744
# archive will be linked into the output, leading to subtle bugs.
12745
if test "$solaris_use_stlport4" != yes; then
12746
postdeps_CXX='-library=Cstd -library=Crun'
12754
case " $postdeps_CXX " in
12755
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12757
compiler_lib_search_dirs_CXX=
12758
if test -n "${compiler_lib_search_path_CXX}"; then
12759
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12792
lt_prog_compiler_wl_CXX=
12793
lt_prog_compiler_pic_CXX=
12794
lt_prog_compiler_static_CXX=
12796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12797
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12799
# C++ specific cases for pic, static, wl, etc.
12800
if test "$GXX" = yes; then
12801
lt_prog_compiler_wl_CXX='-Wl,'
12802
lt_prog_compiler_static_CXX='-static'
12806
# All AIX code is PIC.
12807
if test "$host_cpu" = ia64; then
12808
# AIX 5 now supports IA64 processor
12809
lt_prog_compiler_static_CXX='-Bstatic'
12816
# see comment about AmigaOS4 .so support
12817
lt_prog_compiler_pic_CXX='-fPIC'
12820
# FIXME: we need at least 68020 code to build shared libraries, but
12821
# adding the `-m68020' flag to GCC prevents building anything better,
12823
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12828
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12829
# PIC is the default for these OSes.
12831
mingw* | cygwin* | os2* | pw32* | cegcc*)
12832
# This hack is so that the source file can tell whether it is being
12833
# built for inclusion in a dll (and should export symbols for example).
12834
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12835
# (--disable-auto-import) libraries
12836
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12838
darwin* | rhapsody*)
12839
# PIC is the default on this platform
12840
# Common symbols not allowed in MH_DYLIB files
12841
lt_prog_compiler_pic_CXX='-fno-common'
12844
# DJGPP does not support shared libraries at all
12845
lt_prog_compiler_pic_CXX=
12848
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12849
# Instead, we relocate shared libraries at runtime.
12852
if test -d /usr/nec; then
12853
lt_prog_compiler_pic_CXX=-Kconform_pic
12857
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12858
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12859
# sets the default TLS model and affects inlining.
12864
lt_prog_compiler_pic_CXX='-fPIC'
12869
# QNX uses GNU C++, but need to define -shared option too, otherwise
12870
# it will coredump.
12871
lt_prog_compiler_pic_CXX='-fPIC -shared'
12874
lt_prog_compiler_pic_CXX='-fPIC'
12880
# All AIX code is PIC.
12881
if test "$host_cpu" = ia64; then
12882
# AIX 5 now supports IA64 processor
12883
lt_prog_compiler_static_CXX='-Bstatic'
12885
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12889
case $cc_basename in
12891
# Green Hills C++ Compiler
12892
# _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"
12897
case $cc_basename in
12899
lt_prog_compiler_pic_CXX='-KPIC'
12902
# Green Hills C++ Compiler
12903
lt_prog_compiler_pic_CXX='-pic'
12909
freebsd* | dragonfly*)
12910
# FreeBSD uses GNU C++
12912
hpux9* | hpux10* | hpux11*)
12913
case $cc_basename in
12915
lt_prog_compiler_wl_CXX='-Wl,'
12916
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12917
if test "$host_cpu" != ia64; then
12918
lt_prog_compiler_pic_CXX='+Z'
12922
lt_prog_compiler_wl_CXX='-Wl,'
12923
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12929
lt_prog_compiler_pic_CXX='+Z'
12938
# This is c89, which is MS Visual C++ (no shared libs)
12939
# Anyone wants to do a port?
12941
irix5* | irix6* | nonstopux*)
12942
case $cc_basename in
12944
lt_prog_compiler_wl_CXX='-Wl,'
12945
lt_prog_compiler_static_CXX='-non_shared'
12946
# CC pic flag -KPIC is the default.
12952
linux* | k*bsd*-gnu)
12953
case $cc_basename in
12956
lt_prog_compiler_wl_CXX='--backend -Wl,'
12957
lt_prog_compiler_pic_CXX='-fPIC'
12960
# old Intel C++ for x86_64 which still supported -KPIC.
12961
lt_prog_compiler_wl_CXX='-Wl,'
12962
lt_prog_compiler_pic_CXX='-KPIC'
12963
lt_prog_compiler_static_CXX='-static'
12966
# Intel C++, used to be incompatible with GCC.
12967
# ICC 10 doesn't accept -KPIC any more.
12968
lt_prog_compiler_wl_CXX='-Wl,'
12969
lt_prog_compiler_pic_CXX='-fPIC'
12970
lt_prog_compiler_static_CXX='-static'
12973
# Portland Group C++ compiler
12974
lt_prog_compiler_wl_CXX='-Wl,'
12975
lt_prog_compiler_pic_CXX='-fpic'
12976
lt_prog_compiler_static_CXX='-Bstatic'
12980
# Make sure the PIC flag is empty. It appears that all Alpha
12981
# Linux and Compaq Tru64 Unix objects are PIC.
12982
lt_prog_compiler_pic_CXX=
12983
lt_prog_compiler_static_CXX='-non_shared'
12986
# IBM XL 8.0 on PPC
12987
lt_prog_compiler_wl_CXX='-Wl,'
12988
lt_prog_compiler_pic_CXX='-qpic'
12989
lt_prog_compiler_static_CXX='-qstaticlink'
12992
case `$CC -V 2>&1 | sed 5q` in
12995
lt_prog_compiler_pic_CXX='-KPIC'
12996
lt_prog_compiler_static_CXX='-Bstatic'
12997
lt_prog_compiler_wl_CXX='-Qoption ld '
13008
case $cc_basename in
13010
lt_prog_compiler_pic_CXX='-W c,exportall'
13016
netbsd* | netbsdelf*-gnu)
13019
# QNX uses GNU C++, but need to define -shared option too, otherwise
13020
# it will coredump.
13021
lt_prog_compiler_pic_CXX='-fPIC -shared'
13023
osf3* | osf4* | osf5*)
13024
case $cc_basename in
13026
lt_prog_compiler_wl_CXX='--backend -Wl,'
13029
# Rational C++ 2.4.1
13030
lt_prog_compiler_pic_CXX='-pic'
13033
# Digital/Compaq C++
13034
lt_prog_compiler_wl_CXX='-Wl,'
13035
# Make sure the PIC flag is empty. It appears that all Alpha
13036
# Linux and Compaq Tru64 Unix objects are PIC.
13037
lt_prog_compiler_pic_CXX=
13038
lt_prog_compiler_static_CXX='-non_shared'
13047
case $cc_basename in
13049
# Sun C++ 4.2, 5.x and Centerline C++
13050
lt_prog_compiler_pic_CXX='-KPIC'
13051
lt_prog_compiler_static_CXX='-Bstatic'
13052
lt_prog_compiler_wl_CXX='-Qoption ld '
13055
# Green Hills C++ Compiler
13056
lt_prog_compiler_pic_CXX='-PIC'
13063
case $cc_basename in
13066
lt_prog_compiler_pic_CXX='-pic'
13067
lt_prog_compiler_static_CXX='-Bstatic'
13071
lt_prog_compiler_pic_CXX='-pic'
13077
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13078
case $cc_basename in
13080
lt_prog_compiler_wl_CXX='-Wl,'
13081
lt_prog_compiler_pic_CXX='-KPIC'
13082
lt_prog_compiler_static_CXX='-Bstatic'
13087
case $cc_basename in
13089
# NonStop-UX NCC 3.20
13090
lt_prog_compiler_pic_CXX='-KPIC'
13099
lt_prog_compiler_can_build_shared_CXX=no
13105
# For platforms which do not support PIC, -DPIC is meaningless:
13107
lt_prog_compiler_pic_CXX=
13110
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13114
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13119
# Check to make sure the PIC flag actually works.
13121
if test -n "$lt_prog_compiler_pic_CXX"; then
13122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13123
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13124
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13125
$as_echo_n "(cached) " >&6
13127
lt_cv_prog_compiler_pic_works_CXX=no
13128
ac_outfile=conftest.$ac_objext
13129
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13130
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13131
# Insert the option either (1) after the last *FLAGS variable, or
13132
# (2) before a word containing "conftest.", or (3) at the end.
13133
# Note that $ac_compile itself does not contain backslashes and begins
13134
# with a dollar sign (not a hyphen), so the echo should work correctly.
13135
# The option is referenced via a variable to avoid confusing sed.
13136
lt_compile=`echo "$ac_compile" | $SED \
13137
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13138
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13139
-e 's:$: $lt_compiler_flag:'`
13140
(eval echo "\"\$as_me:13140: $lt_compile\"" >&5)
13141
(eval "$lt_compile" 2>conftest.err)
13143
cat conftest.err >&5
13144
echo "$as_me:13144: \$? = $ac_status" >&5
13145
if (exit $ac_status) && test -s "$ac_outfile"; then
13146
# The compiler can only warn and ignore the option if not recognized
13147
# So say no if there are warnings other than the usual output.
13148
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13149
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13150
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13151
lt_cv_prog_compiler_pic_works_CXX=yes
13157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13158
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13160
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13161
case $lt_prog_compiler_pic_CXX in
13163
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13166
lt_prog_compiler_pic_CXX=
13167
lt_prog_compiler_can_build_shared_CXX=no
13175
# Check to make sure the static flag actually works.
13177
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13179
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13180
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13181
$as_echo_n "(cached) " >&6
13183
lt_cv_prog_compiler_static_works_CXX=no
13184
save_LDFLAGS="$LDFLAGS"
13185
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13186
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13187
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13188
# The linker can only warn and ignore the option if not recognized
13189
# So say no if there are warnings
13190
if test -s conftest.err; then
13191
# Append any errors to the config.log.
13192
cat conftest.err 1>&5
13193
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13194
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13195
if diff conftest.exp conftest.er2 >/dev/null; then
13196
lt_cv_prog_compiler_static_works_CXX=yes
13199
lt_cv_prog_compiler_static_works_CXX=yes
13203
LDFLAGS="$save_LDFLAGS"
13206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13207
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13209
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13212
lt_prog_compiler_static_CXX=
13218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13219
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13220
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13221
$as_echo_n "(cached) " >&6
13223
lt_cv_prog_compiler_c_o_CXX=no
13224
$RM -r conftest 2>/dev/null
13228
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13230
lt_compiler_flag="-o out/conftest2.$ac_objext"
13231
# Insert the option either (1) after the last *FLAGS variable, or
13232
# (2) before a word containing "conftest.", or (3) at the end.
13233
# Note that $ac_compile itself does not contain backslashes and begins
13234
# with a dollar sign (not a hyphen), so the echo should work correctly.
13235
lt_compile=`echo "$ac_compile" | $SED \
13236
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13237
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13238
-e 's:$: $lt_compiler_flag:'`
13239
(eval echo "\"\$as_me:13239: $lt_compile\"" >&5)
13240
(eval "$lt_compile" 2>out/conftest.err)
13242
cat out/conftest.err >&5
13243
echo "$as_me:13243: \$? = $ac_status" >&5
13244
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13246
# The compiler can only warn and ignore the option if not recognized
13247
# So say no if there are warnings
13248
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13249
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13250
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13251
lt_cv_prog_compiler_c_o_CXX=yes
13256
# SGI C++ compiler will create directory out/ii_files/ for
13257
# template instantiation
13258
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13259
$RM out/* && rmdir out
13265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13266
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13271
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13272
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13273
$as_echo_n "(cached) " >&6
13275
lt_cv_prog_compiler_c_o_CXX=no
13276
$RM -r conftest 2>/dev/null
13280
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13282
lt_compiler_flag="-o out/conftest2.$ac_objext"
13283
# Insert the option either (1) after the last *FLAGS variable, or
13284
# (2) before a word containing "conftest.", or (3) at the end.
13285
# Note that $ac_compile itself does not contain backslashes and begins
13286
# with a dollar sign (not a hyphen), so the echo should work correctly.
13287
lt_compile=`echo "$ac_compile" | $SED \
13288
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13289
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13290
-e 's:$: $lt_compiler_flag:'`
13291
(eval echo "\"\$as_me:13291: $lt_compile\"" >&5)
13292
(eval "$lt_compile" 2>out/conftest.err)
13294
cat out/conftest.err >&5
13295
echo "$as_me:13295: \$? = $ac_status" >&5
13296
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13298
# The compiler can only warn and ignore the option if not recognized
13299
# So say no if there are warnings
13300
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13301
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13302
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13303
lt_cv_prog_compiler_c_o_CXX=yes
13308
# SGI C++ compiler will create directory out/ii_files/ for
13309
# template instantiation
13310
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13311
$RM out/* && rmdir out
13317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13318
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13323
hard_links="nottested"
13324
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13325
# do not overwrite the value of need_locks provided by the user
13326
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13327
$as_echo_n "checking if we can lock with hard links... " >&6; }
13330
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13332
ln conftest.a conftest.b 2>&5 || hard_links=no
13333
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13335
$as_echo "$hard_links" >&6; }
13336
if test "$hard_links" = no; then
13337
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13338
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13348
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13350
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13353
# If we're using GNU nm, then we don't want the "-C" option.
13354
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13355
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13356
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'
13358
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'
13362
export_symbols_cmds_CXX="$ltdll_cmds"
13364
cygwin* | mingw* | cegcc*)
13365
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'
13367
linux* | k*bsd*-gnu)
13368
link_all_deplibs_CXX=no
13371
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13374
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13377
$as_echo "$ld_shlibs_CXX" >&6; }
13378
test "$ld_shlibs_CXX" = no && can_build_shared=no
13380
with_gnu_ld_CXX=$with_gnu_ld
13388
# Do we need to explicitly link libc?
13390
case "x$archive_cmds_need_lc_CXX" in
13392
# Assume -lc should be added
13393
archive_cmds_need_lc_CXX=yes
13395
if test "$enable_shared" = yes && test "$GCC" = yes; then
13396
case $archive_cmds_CXX in
13398
# FIXME: we may have to deal with multi-command sequences.
13401
# Test whether the compiler implicitly links with -lc since on some
13402
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13403
# to ld, don't add -lc before -lgcc.
13404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13405
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13407
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13409
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13410
(eval $ac_compile) 2>&5
13412
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13413
test $ac_status = 0; } 2>conftest.err; then
13416
libobjs=conftest.$ac_objext
13418
wl=$lt_prog_compiler_wl_CXX
13419
pic_flag=$lt_prog_compiler_pic_CXX
13425
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13426
allow_undefined_flag_CXX=
13427
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13428
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13430
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13431
test $ac_status = 0; }
13433
archive_cmds_need_lc_CXX=no
13435
archive_cmds_need_lc_CXX=yes
13437
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13439
cat conftest.err 1>&5
13442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13443
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13514
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13516
library_names_spec=
13517
libname_spec='lib$name'
13521
postuninstall_cmds=
13525
shlibpath_overrides_runpath=unknown
13527
dynamic_linker="$host_os ld.so"
13528
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13529
need_lib_prefix=unknown
13530
hardcode_into_libs=no
13532
# when you set need_version to no, make sure it does not cause -set_version
13533
# flags to be left without arguments
13534
need_version=unknown
13539
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13540
shlibpath_var=LIBPATH
13542
# AIX 3 has no versioning support, so we append a major version to the name.
13543
soname_spec='${libname}${release}${shared_ext}$major'
13550
hardcode_into_libs=yes
13551
if test "$host_cpu" = ia64; then
13552
# AIX 5 supports IA64
13553
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13554
shlibpath_var=LD_LIBRARY_PATH
13556
# With GCC up to 2.95.x, collect2 would create an import file
13557
# for dependence libraries. The import file would start with
13558
# the line `#! .'. This would cause the generated library to
13559
# depend on `.', always an invalid library. This was fixed in
13560
# development snapshots of GCC prior to 3.0.
13562
aix4 | aix4.[01] | aix4.[01].*)
13563
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13565
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13568
can_build_shared=no
13572
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13573
# soname into executable. Probably we can add versioning support to
13574
# collect2, so additional links can be useful in future.
13575
if test "$aix_use_runtimelinking" = yes; then
13576
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13577
# instead of lib<name>.a to let people know that these are not
13578
# typical AIX shared libraries.
13579
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13581
# We preserve .a as extension for shared libraries through AIX4.2
13582
# and later when we are not doing run time linking.
13583
library_names_spec='${libname}${release}.a $libname.a'
13584
soname_spec='${libname}${release}${shared_ext}$major'
13586
shlibpath_var=LIBPATH
13593
# Since July 2007 AmigaOS4 officially supports .so libraries.
13594
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598
library_names_spec='$libname.ixlibrary $libname.a'
13599
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13600
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'
13606
library_names_spec='${libname}${shared_ext}'
13607
dynamic_linker="$host_os ld.so"
13608
shlibpath_var=LIBRARY_PATH
13614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615
soname_spec='${libname}${release}${shared_ext}$major'
13616
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13617
shlibpath_var=LD_LIBRARY_PATH
13618
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13619
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13620
# the default ld.so.conf also contains /usr/contrib/lib and
13621
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13622
# libtool to hard-code these into programs
13625
cygwin* | mingw* | pw32* | cegcc*)
13626
version_type=windows
13631
case $GCC,$host_os in
13632
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13633
library_names_spec='$libname.dll.a'
13634
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13635
postinstall_cmds='base_file=`basename \${file}`~
13636
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13637
dldir=$destdir/`dirname \$dlpath`~
13638
test -d \$dldir || mkdir -p \$dldir~
13639
$install_prog $dir/$dlname \$dldir/$dlname~
13640
chmod a+x \$dldir/$dlname~
13641
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13642
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13644
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13645
dlpath=$dir/\$dldll~
13647
shlibpath_overrides_runpath=yes
13651
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13652
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13653
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13656
# MinGW DLLs use traditional 'lib' prefix
13657
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13658
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13659
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13660
# It is most probably a Windows format PATH printed by
13661
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13662
# path with ; separators, and with drive letters. We can handle the
13663
# drive letters (cygwin fileutils understands them), so leave them,
13664
# especially as we might pass files found there to a mingw objdump,
13665
# which wouldn't understand a cygwinified path. Ahh.
13666
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13668
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13672
# pw32 DLLs use 'pw' prefix rather than 'lib'
13673
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13679
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13682
dynamic_linker='Win32 ld.exe'
13683
# FIXME: first we should search . and the directory the executable is in
13687
darwin* | rhapsody*)
13688
dynamic_linker="$host_os dyld"
13689
version_type=darwin
13692
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13693
soname_spec='${libname}${release}${major}$shared_ext'
13694
shlibpath_overrides_runpath=yes
13695
shlibpath_var=DYLD_LIBRARY_PATH
13696
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13698
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13706
soname_spec='${libname}${release}${shared_ext}$major'
13707
shlibpath_var=LD_LIBRARY_PATH
13714
freebsd* | dragonfly*)
13715
# DragonFly does not have aout. When/if they implement a new
13716
# versioning mechanism, adjust this.
13717
if test -x /usr/bin/objformat; then
13718
objformat=`/usr/bin/objformat`
13721
freebsd[123]*) objformat=aout ;;
13722
*) objformat=elf ;;
13725
version_type=freebsd-$objformat
13726
case $version_type in
13728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13733
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13737
shlibpath_var=LD_LIBRARY_PATH
13740
shlibpath_overrides_runpath=yes
13742
freebsd3.[01]* | freebsdelf3.[01]*)
13743
shlibpath_overrides_runpath=yes
13744
hardcode_into_libs=yes
13746
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13747
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13748
shlibpath_overrides_runpath=no
13749
hardcode_into_libs=yes
13751
*) # from 4.6 on, and DragonFly
13752
shlibpath_overrides_runpath=yes
13753
hardcode_into_libs=yes
13762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13763
soname_spec='${libname}${release}${shared_ext}$major'
13764
shlibpath_var=LD_LIBRARY_PATH
13765
hardcode_into_libs=yes
13768
hpux9* | hpux10* | hpux11*)
13769
# Give a soname corresponding to the major version so that dld.sl refuses to
13770
# link against other versions.
13777
hardcode_into_libs=yes
13778
dynamic_linker="$host_os dld.so"
13779
shlibpath_var=LD_LIBRARY_PATH
13780
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13782
soname_spec='${libname}${release}${shared_ext}$major'
13783
if test "X$HPUX_IA64_MODE" = X32; then
13784
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13786
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13788
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13792
hardcode_into_libs=yes
13793
dynamic_linker="$host_os dld.sl"
13794
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13795
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797
soname_spec='${libname}${release}${shared_ext}$major'
13798
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13799
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13803
dynamic_linker="$host_os dld.sl"
13804
shlibpath_var=SHLIB_PATH
13805
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13806
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13807
soname_spec='${libname}${release}${shared_ext}$major'
13810
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13811
postinstall_cmds='chmod 555 $lib'
13818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13819
soname_spec='${libname}${release}${shared_ext}$major'
13820
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13821
shlibpath_var=LD_LIBRARY_PATH
13822
shlibpath_overrides_runpath=no
13823
hardcode_into_libs=yes
13826
irix5* | irix6* | nonstopux*)
13828
nonstopux*) version_type=nonstopux ;;
13830
if test "$lt_cv_prog_gnu_ld" = yes; then
13838
soname_spec='${libname}${release}${shared_ext}$major'
13839
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13841
irix5* | nonstopux*)
13842
libsuff= shlibsuff=
13845
case $LD in # libtool.m4 will add one of these switches to LD
13846
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13847
libsuff= shlibsuff= libmagic=32-bit;;
13848
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13849
libsuff=32 shlibsuff=N32 libmagic=N32;;
13850
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13851
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13852
*) libsuff= shlibsuff= libmagic=never-match;;
13856
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13857
shlibpath_overrides_runpath=no
13858
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13859
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13860
hardcode_into_libs=yes
13863
# No shared lib support for Linux oldld, aout, or coff.
13864
linux*oldld* | linux*aout* | linux*coff*)
13868
# This must be Linux ELF.
13869
linux* | k*bsd*-gnu)
13873
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13874
soname_spec='${libname}${release}${shared_ext}$major'
13875
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13876
shlibpath_var=LD_LIBRARY_PATH
13877
shlibpath_overrides_runpath=no
13878
# Some binutils ld are patched to set DT_RUNPATH
13879
save_LDFLAGS=$LDFLAGS
13880
save_libdir=$libdir
13881
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13882
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884
/* end confdefs.h. */
13894
if ac_fn_cxx_try_link "$LINENO"; then :
13895
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13896
shlibpath_overrides_runpath=yes
13899
rm -f core conftest.err conftest.$ac_objext \
13900
conftest$ac_exeext conftest.$ac_ext
13901
LDFLAGS=$save_LDFLAGS
13902
libdir=$save_libdir
13904
# This implies no fast_install, which is unacceptable.
13905
# Some rework will be needed to allow for fast_install
13906
# before this can be enabled.
13907
hardcode_into_libs=yes
13909
# Append ld.so.conf contents to the search path
13910
if test -f /etc/ld.so.conf; then
13911
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' ' '`
13912
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13915
# We used to test for /lib/ld.so.1 and disable shared libraries on
13916
# powerpc, because MkLinux only supported shared libraries with the
13917
# GNU dynamic linker. Since this was broken with cross compilers,
13918
# most powerpc-linux boxes support dynamic linking these days and
13919
# people can always --disable-shared, the test was removed, and we
13920
# assume the GNU/Linux dynamic linker is in use.
13921
dynamic_linker='GNU/Linux ld.so'
13928
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13929
soname_spec='${libname}${release}${shared_ext}$major'
13930
shlibpath_var=LD_LIBRARY_PATH
13931
shlibpath_overrides_runpath=no
13932
hardcode_into_libs=yes
13933
dynamic_linker='NetBSD ld.elf_so'
13940
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13942
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13943
dynamic_linker='NetBSD (a.out) ld.so'
13945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13946
soname_spec='${libname}${release}${shared_ext}$major'
13947
dynamic_linker='NetBSD ld.elf_so'
13949
shlibpath_var=LD_LIBRARY_PATH
13950
shlibpath_overrides_runpath=yes
13951
hardcode_into_libs=yes
13956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957
shlibpath_var=LD_LIBRARY_PATH
13958
shlibpath_overrides_runpath=yes
13965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966
soname_spec='${libname}${release}${shared_ext}$major'
13967
shlibpath_var=LD_LIBRARY_PATH
13968
shlibpath_overrides_runpath=no
13969
hardcode_into_libs=yes
13970
dynamic_linker='ldqnx.so'
13975
sys_lib_dlsearch_path_spec="/usr/lib"
13977
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13979
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13980
*) need_version=no ;;
13982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13983
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13984
shlibpath_var=LD_LIBRARY_PATH
13985
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13987
openbsd2.[89] | openbsd2.[89].*)
13988
shlibpath_overrides_runpath=no
13991
shlibpath_overrides_runpath=yes
13995
shlibpath_overrides_runpath=yes
14000
libname_spec='$name'
14003
library_names_spec='$libname${shared_ext} $libname.a'
14004
dynamic_linker='OS/2 ld.exe'
14005
shlibpath_var=LIBPATH
14008
osf3* | osf4* | osf5*)
14012
soname_spec='${libname}${release}${shared_ext}$major'
14013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014
shlibpath_var=LD_LIBRARY_PATH
14015
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14016
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14028
soname_spec='${libname}${release}${shared_ext}$major'
14029
shlibpath_var=LD_LIBRARY_PATH
14030
shlibpath_overrides_runpath=yes
14031
hardcode_into_libs=yes
14032
# ldd complains unless libraries are executable
14033
postinstall_cmds='chmod +x $lib'
14038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14039
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14040
shlibpath_var=LD_LIBRARY_PATH
14041
shlibpath_overrides_runpath=yes
14042
if test "$with_gnu_ld" = yes; then
14050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14051
soname_spec='${libname}${release}${shared_ext}$major'
14052
shlibpath_var=LD_LIBRARY_PATH
14053
case $host_vendor in
14055
shlibpath_overrides_runpath=no
14057
runpath_var=LD_RUN_PATH
14065
shlibpath_overrides_runpath=no
14066
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14072
if test -d /usr/nec ;then
14074
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14075
soname_spec='$libname${shared_ext}.$major'
14076
shlibpath_var=LD_LIBRARY_PATH
14080
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14081
version_type=freebsd-elf
14084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14085
soname_spec='${libname}${release}${shared_ext}$major'
14086
shlibpath_var=LD_LIBRARY_PATH
14087
shlibpath_overrides_runpath=yes
14088
hardcode_into_libs=yes
14089
if test "$with_gnu_ld" = yes; then
14090
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14092
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14095
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14099
sys_lib_dlsearch_path_spec='/usr/lib'
14103
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108
shlibpath_var=LD_LIBRARY_PATH
14109
shlibpath_overrides_runpath=no
14110
hardcode_into_libs=yes
14115
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14116
soname_spec='${libname}${release}${shared_ext}$major'
14117
shlibpath_var=LD_LIBRARY_PATH
14124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14125
$as_echo "$dynamic_linker" >&6; }
14126
test "$dynamic_linker" = no && can_build_shared=no
14128
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14129
if test "$GCC" = yes; then
14130
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14133
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14134
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14136
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14137
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14176
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14177
hardcode_action_CXX=
14178
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14179
test -n "$runpath_var_CXX" ||
14180
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14182
# We can hardcode non-existent directories.
14183
if test "$hardcode_direct_CXX" != no &&
14184
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14185
# have to relink, otherwise we might link with an installed library
14186
# when we should be linking with a yet-to-be-installed one
14187
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14188
test "$hardcode_minus_L_CXX" != no; then
14189
# Linking always hardcodes the temporary library directory.
14190
hardcode_action_CXX=relink
14192
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14193
hardcode_action_CXX=immediate
14196
# We cannot hardcode anything, or else we can only hardcode existing
14198
hardcode_action_CXX=unsupported
14200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14201
$as_echo "$hardcode_action_CXX" >&6; }
14203
if test "$hardcode_action_CXX" = relink ||
14204
test "$inherit_rpath_CXX" = yes; then
14205
# Fast installation is not supported
14206
enable_fast_install=no
14207
elif test "$shlibpath_overrides_runpath" = yes ||
14208
test "$enable_shared" = no; then
14209
# Fast installation is not necessary
14210
enable_fast_install=needless
14219
fi # test -n "$compiler"
14225
with_gnu_ld=$lt_save_with_gnu_ld
14226
lt_cv_path_LDCXX=$lt_cv_path_LD
14227
lt_cv_path_LD=$lt_save_path_LD
14228
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14229
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14230
fi # test "$_lt_caught_CXX_error" != yes
14233
ac_cpp='$CPP $CPPFLAGS'
14234
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14235
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14236
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14250
ac_config_commands="$ac_config_commands libtool"
14255
# Only expand once:
14259
# Checks for dependencies.
14262
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14263
if test -n "$ac_tool_prefix"; then
14264
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14265
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14267
$as_echo_n "checking for $ac_word... " >&6; }
14268
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14269
$as_echo_n "(cached) " >&6
14271
case $PKG_CONFIG in
14273
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14277
for as_dir in $PATH
14280
test -z "$as_dir" && as_dir=.
14281
for ac_exec_ext in '' $ac_executable_extensions; do
14282
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14283
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14284
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14295
if test -n "$PKG_CONFIG"; then
14296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14297
$as_echo "$PKG_CONFIG" >&6; }
14299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300
$as_echo "no" >&6; }
14305
if test -z "$ac_cv_path_PKG_CONFIG"; then
14306
ac_pt_PKG_CONFIG=$PKG_CONFIG
14307
# Extract the first word of "pkg-config", so it can be a program name with args.
14308
set dummy pkg-config; ac_word=$2
14309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14310
$as_echo_n "checking for $ac_word... " >&6; }
14311
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
14312
$as_echo_n "(cached) " >&6
14314
case $ac_pt_PKG_CONFIG in
14316
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320
for as_dir in $PATH
14323
test -z "$as_dir" && as_dir=.
14324
for ac_exec_ext in '' $ac_executable_extensions; do
14325
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14326
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14327
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14337
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14338
if test -n "$ac_pt_PKG_CONFIG"; then
14339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14340
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
14342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343
$as_echo "no" >&6; }
14346
if test "x$ac_pt_PKG_CONFIG" = x; then
14349
case $cross_compiling:$ac_tool_warned in
14351
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14352
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14353
ac_tool_warned=yes ;;
14355
PKG_CONFIG=$ac_pt_PKG_CONFIG
14358
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14362
if test -n "$PKG_CONFIG"; then
14363
_pkg_min_version=0.9.0
14364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14365
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14366
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14368
$as_echo "yes" >&6; }
14370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371
$as_echo "no" >&6; }
14378
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
14379
$as_echo_n "checking for X11... " >&6; }
14381
if test -n "$PKG_CONFIG"; then
14382
if test -n "$X11_CFLAGS"; then
14383
pkg_cv_X11_CFLAGS="$X11_CFLAGS"
14385
if test -n "$PKG_CONFIG" && \
14386
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14387
($PKG_CONFIG --exists --print-errors "x11") 2>&5
14389
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14390
test $ac_status = 0; }; then
14391
pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
14399
if test -n "$PKG_CONFIG"; then
14400
if test -n "$X11_LIBS"; then
14401
pkg_cv_X11_LIBS="$X11_LIBS"
14403
if test -n "$PKG_CONFIG" && \
14404
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14405
($PKG_CONFIG --exists --print-errors "x11") 2>&5
14407
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14408
test $ac_status = 0; }; then
14409
pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
14420
if test $pkg_failed = yes; then
14422
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14423
_pkg_short_errors_supported=yes
14425
_pkg_short_errors_supported=no
14427
if test $_pkg_short_errors_supported = yes; then
14428
X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
14430
X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
14432
# Put the nasty error message in config.log where it belongs
14433
echo "$X11_PKG_ERRORS" >&5
14435
as_fn_error "Package requirements (x11) were not met:
14439
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14440
installed software in a non-standard prefix.
14442
Alternatively, you may set the environment variables X11_CFLAGS
14443
and X11_LIBS to avoid the need to call pkg-config.
14444
See the pkg-config man page for more details.
14446
elif test $pkg_failed = untried; then
14447
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14448
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14449
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
14450
is in your PATH or set the PKG_CONFIG environment variable to the full
14451
path to pkg-config.
14453
Alternatively, you may set the environment variables X11_CFLAGS
14454
and X11_LIBS to avoid the need to call pkg-config.
14455
See the pkg-config man page for more details.
14457
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14458
See \`config.log' for more details." "$LINENO" 5; }
14460
X11_CFLAGS=$pkg_cv_X11_CFLAGS
14461
X11_LIBS=$pkg_cv_X11_LIBS
14462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14463
$as_echo "yes" >&6; }
14469
# Check for optional dependencies.
14470
# Check whether --enable-dri2 was given.
14471
if test "${enable_dri2+set}" = set; then :
14472
enableval=$enable_dri2; DRI2=$enableval
14479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dri2proto" >&5
14480
$as_echo_n "checking for dri2proto... " >&6; }
14482
if test -n "$PKG_CONFIG"; then
14483
if test -n "$dri2proto_CFLAGS"; then
14484
pkg_cv_dri2proto_CFLAGS="$dri2proto_CFLAGS"
14486
if test -n "$PKG_CONFIG" && \
14487
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5
14488
($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5
14490
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14491
test $ac_status = 0; }; then
14492
pkg_cv_dri2proto_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.2" 2>/dev/null`
14500
if test -n "$PKG_CONFIG"; then
14501
if test -n "$dri2proto_LIBS"; then
14502
pkg_cv_dri2proto_LIBS="$dri2proto_LIBS"
14504
if test -n "$PKG_CONFIG" && \
14505
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.2\""; } >&5
14506
($PKG_CONFIG --exists --print-errors "dri2proto >= 2.2") 2>&5
14508
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14509
test $ac_status = 0; }; then
14510
pkg_cv_dri2proto_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.2" 2>/dev/null`
14521
if test $pkg_failed = yes; then
14523
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14524
_pkg_short_errors_supported=yes
14526
_pkg_short_errors_supported=no
14528
if test $_pkg_short_errors_supported = yes; then
14529
dri2proto_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dri2proto >= 2.2"`
14531
dri2proto_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dri2proto >= 2.2"`
14533
# Put the nasty error message in config.log where it belongs
14534
echo "$dri2proto_PKG_ERRORS" >&5
14536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14537
$as_echo "no" >&6; }
14539
elif test $pkg_failed = untried; then
14542
dri2proto_CFLAGS=$pkg_cv_dri2proto_CFLAGS
14543
dri2proto_LIBS=$pkg_cv_dri2proto_LIBS
14544
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14545
$as_echo "yes" >&6; }
14548
case "$DRI2,$HAVE_DRI2PROTO" in
14550
as_fn_error "DRI2 queries require dri2proto >= 2.2" "$LINENO" 5
14552
yes,yes | auto,yes)
14554
$as_echo "#define DRI2 1" >>confdefs.h
14559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
14560
$as_echo_n "checking for XEXT... " >&6; }
14562
if test -n "$PKG_CONFIG"; then
14563
if test -n "$XEXT_CFLAGS"; then
14564
pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
14566
if test -n "$PKG_CONFIG" && \
14567
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
14568
($PKG_CONFIG --exists --print-errors "xext") 2>&5
14570
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14571
test $ac_status = 0; }; then
14572
pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
14580
if test -n "$PKG_CONFIG"; then
14581
if test -n "$XEXT_LIBS"; then
14582
pkg_cv_XEXT_LIBS="$XEXT_LIBS"
14584
if test -n "$PKG_CONFIG" && \
14585
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
14586
($PKG_CONFIG --exists --print-errors "xext") 2>&5
14588
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14589
test $ac_status = 0; }; then
14590
pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
14601
if test $pkg_failed = yes; then
14603
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14604
_pkg_short_errors_supported=yes
14606
_pkg_short_errors_supported=no
14608
if test $_pkg_short_errors_supported = yes; then
14609
XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xext"`
14611
XEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xext"`
14613
# Put the nasty error message in config.log where it belongs
14614
echo "$XEXT_PKG_ERRORS" >&5
14616
as_fn_error "Package requirements (xext) were not met:
14620
Consider adjusting the PKG_CONFIG_PATH environment variable if you
14621
installed software in a non-standard prefix.
14623
Alternatively, you may set the environment variables XEXT_CFLAGS
14624
and XEXT_LIBS to avoid the need to call pkg-config.
14625
See the pkg-config man page for more details.
14627
elif test $pkg_failed = untried; then
14628
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14629
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14630
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
14631
is in your PATH or set the PKG_CONFIG environment variable to the full
14632
path to pkg-config.
14634
Alternatively, you may set the environment variables XEXT_CFLAGS
14635
and XEXT_LIBS to avoid the need to call pkg-config.
14636
See the pkg-config man page for more details.
14638
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14639
See \`config.log' for more details." "$LINENO" 5; }
14641
XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
14642
XEXT_LIBS=$pkg_cv_XEXT_LIBS
14643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644
$as_echo "yes" >&6; }
14651
if test "x$DRI2" = xyes; then
14660
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14661
if test "x$ac_cv_func_dlopen" = x""yes; then :
14664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14665
$as_echo_n "checking for dlopen in -ldl... " >&6; }
14666
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14667
$as_echo_n "(cached) " >&6
14669
ac_check_lib_save_LIBS=$LIBS
14671
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672
/* end confdefs.h. */
14674
/* Override any GCC internal prototype to avoid an error.
14675
Use char because int might match the return type of a GCC
14676
builtin and then its argument prototype would still apply. */
14689
if ac_fn_c_try_link "$LINENO"; then :
14690
ac_cv_lib_dl_dlopen=yes
14692
ac_cv_lib_dl_dlopen=no
14694
rm -f core conftest.err conftest.$ac_objext \
14695
conftest$ac_exeext conftest.$ac_ext
14696
LIBS=$ac_check_lib_save_LIBS
14698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14699
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14700
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14708
# Check for Doxygen.
14709
# Check whether --enable-documentation was given.
14710
if test "${enable_documentation+set}" = set; then :
14711
enableval=$enable_documentation; DOCS=$enableval
14716
if test "x$DOCS" != xno; then
14717
if test -n "$ac_tool_prefix"; then
14718
# Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
14719
set dummy ${ac_tool_prefix}doxygen; ac_word=$2
14720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14721
$as_echo_n "checking for $ac_word... " >&6; }
14722
if test "${ac_cv_prog_DOXYGEN+set}" = set; then :
14723
$as_echo_n "(cached) " >&6
14725
if test -n "$DOXYGEN"; then
14726
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
14728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14729
for as_dir in $PATH
14732
test -z "$as_dir" && as_dir=.
14733
for ac_exec_ext in '' $ac_executable_extensions; do
14734
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14735
ac_cv_prog_DOXYGEN="${ac_tool_prefix}doxygen"
14736
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14745
DOXYGEN=$ac_cv_prog_DOXYGEN
14746
if test -n "$DOXYGEN"; then
14747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
14748
$as_echo "$DOXYGEN" >&6; }
14750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14751
$as_echo "no" >&6; }
14756
if test -z "$ac_cv_prog_DOXYGEN"; then
14757
ac_ct_DOXYGEN=$DOXYGEN
14758
# Extract the first word of "doxygen", so it can be a program name with args.
14759
set dummy doxygen; ac_word=$2
14760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14761
$as_echo_n "checking for $ac_word... " >&6; }
14762
if test "${ac_cv_prog_ac_ct_DOXYGEN+set}" = set; then :
14763
$as_echo_n "(cached) " >&6
14765
if test -n "$ac_ct_DOXYGEN"; then
14766
ac_cv_prog_ac_ct_DOXYGEN="$ac_ct_DOXYGEN" # Let the user override the test.
14768
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769
for as_dir in $PATH
14772
test -z "$as_dir" && as_dir=.
14773
for ac_exec_ext in '' $ac_executable_extensions; do
14774
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14775
ac_cv_prog_ac_ct_DOXYGEN="doxygen"
14776
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14785
ac_ct_DOXYGEN=$ac_cv_prog_ac_ct_DOXYGEN
14786
if test -n "$ac_ct_DOXYGEN"; then
14787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOXYGEN" >&5
14788
$as_echo "$ac_ct_DOXYGEN" >&6; }
14790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14791
$as_echo "no" >&6; }
14794
if test "x$ac_ct_DOXYGEN" = x; then
14797
case $cross_compiling:$ac_tool_warned in
14799
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14800
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14801
ac_tool_warned=yes ;;
14803
DOXYGEN=$ac_ct_DOXYGEN
14806
DOXYGEN="$ac_cv_prog_DOXYGEN"
14809
if test -n "$ac_tool_prefix"; then
14810
# Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
14811
set dummy ${ac_tool_prefix}dot; ac_word=$2
14812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14813
$as_echo_n "checking for $ac_word... " >&6; }
14814
if test "${ac_cv_prog_DOT+set}" = set; then :
14815
$as_echo_n "(cached) " >&6
14817
if test -n "$DOT"; then
14818
ac_cv_prog_DOT="$DOT" # Let the user override the test.
14820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14821
for as_dir in $PATH
14824
test -z "$as_dir" && as_dir=.
14825
for ac_exec_ext in '' $ac_executable_extensions; do
14826
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14827
ac_cv_prog_DOT="${ac_tool_prefix}dot"
14828
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14837
DOT=$ac_cv_prog_DOT
14838
if test -n "$DOT"; then
14839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
14840
$as_echo "$DOT" >&6; }
14842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14843
$as_echo "no" >&6; }
14848
if test -z "$ac_cv_prog_DOT"; then
14850
# Extract the first word of "dot", so it can be a program name with args.
14851
set dummy dot; ac_word=$2
14852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14853
$as_echo_n "checking for $ac_word... " >&6; }
14854
if test "${ac_cv_prog_ac_ct_DOT+set}" = set; then :
14855
$as_echo_n "(cached) " >&6
14857
if test -n "$ac_ct_DOT"; then
14858
ac_cv_prog_ac_ct_DOT="$ac_ct_DOT" # Let the user override the test.
14860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14861
for as_dir in $PATH
14864
test -z "$as_dir" && as_dir=.
14865
for ac_exec_ext in '' $ac_executable_extensions; do
14866
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14867
ac_cv_prog_ac_ct_DOT="dot"
14868
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14877
ac_ct_DOT=$ac_cv_prog_ac_ct_DOT
14878
if test -n "$ac_ct_DOT"; then
14879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DOT" >&5
14880
$as_echo "$ac_ct_DOT" >&6; }
14882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883
$as_echo "no" >&6; }
14886
if test "x$ac_ct_DOT" = x; then
14889
case $cross_compiling:$ac_tool_warned in
14891
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14892
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14893
ac_tool_warned=yes ;;
14898
DOT="$ac_cv_prog_DOT"
14901
if test -n "$ac_tool_prefix"; then
14902
# Extract the first word of "${ac_tool_prefix}pdftex", so it can be a program name with args.
14903
set dummy ${ac_tool_prefix}pdftex; ac_word=$2
14904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14905
$as_echo_n "checking for $ac_word... " >&6; }
14906
if test "${ac_cv_prog_PDFTEX+set}" = set; then :
14907
$as_echo_n "(cached) " >&6
14909
if test -n "$PDFTEX"; then
14910
ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14912
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14913
for as_dir in $PATH
14916
test -z "$as_dir" && as_dir=.
14917
for ac_exec_ext in '' $ac_executable_extensions; do
14918
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14919
ac_cv_prog_PDFTEX="${ac_tool_prefix}pdftex"
14920
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14929
PDFTEX=$ac_cv_prog_PDFTEX
14930
if test -n "$PDFTEX"; then
14931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFTEX" >&5
14932
$as_echo "$PDFTEX" >&6; }
14934
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14935
$as_echo "no" >&6; }
14940
if test -z "$ac_cv_prog_PDFTEX"; then
14941
ac_ct_PDFTEX=$PDFTEX
14942
# Extract the first word of "pdftex", so it can be a program name with args.
14943
set dummy pdftex; ac_word=$2
14944
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14945
$as_echo_n "checking for $ac_word... " >&6; }
14946
if test "${ac_cv_prog_ac_ct_PDFTEX+set}" = set; then :
14947
$as_echo_n "(cached) " >&6
14949
if test -n "$ac_ct_PDFTEX"; then
14950
ac_cv_prog_ac_ct_PDFTEX="$ac_ct_PDFTEX" # Let the user override the test.
14952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953
for as_dir in $PATH
14956
test -z "$as_dir" && as_dir=.
14957
for ac_exec_ext in '' $ac_executable_extensions; do
14958
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14959
ac_cv_prog_ac_ct_PDFTEX="pdftex"
14960
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14969
ac_ct_PDFTEX=$ac_cv_prog_ac_ct_PDFTEX
14970
if test -n "$ac_ct_PDFTEX"; then
14971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PDFTEX" >&5
14972
$as_echo "$ac_ct_PDFTEX" >&6; }
14974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975
$as_echo "no" >&6; }
14978
if test "x$ac_ct_PDFTEX" = x; then
14981
case $cross_compiling:$ac_tool_warned in
14983
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14984
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14985
ac_tool_warned=yes ;;
14987
PDFTEX=$ac_ct_PDFTEX
14990
PDFTEX="$ac_cv_prog_PDFTEX"
14998
if test "x$DOCS" = xyes; then
14999
if test "x$DOXYGEN" = xno; then
15000
as_fn_error "Documentation enabled but doxygen was not found in your path" "$LINENO" 5
15002
if test "x$DOT" = xno; then
15003
as_fn_error "Documentation enabled but dot was not found in your path. Please install graphviz" "$LINENO" 5
15005
if test "x$PDFTEX" = xno; then
15006
as_fn_error "Documentation enabled but pdftex was not found in your path" "$LINENO" 5
15009
if test "x$DOXYGEN" != xno -a "x$DOT" != xno -a "x$PDFTEX" != xno; then
15011
ENABLE_DOCS_FALSE='#'
15013
ENABLE_DOCS_TRUE='#'
15021
# Check whether --with-module-dir was given.
15022
if test "${with_module_dir+set}" = set; then :
15023
withval=$with_module_dir; moduledir="$withval"
15025
moduledir="$libdir/vdpau"
15031
CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
15032
mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
15033
echo 'git directory not found: installing possibly empty changelog.' >&2)"
15035
distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
15039
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile trace/Makefile vdpau.pc"
15041
cat >confcache <<\_ACEOF
15042
# This file is a shell script that caches the results of configure
15043
# tests run on this system so they can be shared between configure
15044
# scripts and configure runs, see configure's option --config-cache.
15045
# It is not useful on other systems. If it contains results you don't
15046
# want to keep, you may remove or edit it.
15048
# config.status only pays attention to the cache file if you give it
15049
# the --recheck option to rerun configure.
15051
# `ac_cv_env_foo' variables (set or unset) will be overridden when
15052
# loading this file, other *unset* `ac_cv_foo' will be assigned the
15053
# following values.
15057
# The following way of writing the cache mishandles newlines in values,
15058
# but we know of no workaround that is simple, portable, and efficient.
15059
# So, we kill variables containing newlines.
15060
# Ultrix sh set writes to stderr and can't be redirected directly,
15061
# and sets the high bit in the cache file unless we assign to the vars.
15063
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15064
eval ac_val=\$$ac_var
15068
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15069
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15072
_ | IFS | as_nl) ;; #(
15073
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15074
*) { eval $ac_var=; unset $ac_var;} ;;
15080
case $as_nl`(ac_space=' '; set) 2>&1` in #(
15081
*${as_nl}ac_space=\ *)
15082
# `set' does not quote correctly, so add quotes: double-quote
15083
# substitution turns \\\\ into \\, and sed turns \\ into \.
15086
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15089
# `set' quotes correctly as required by POSIX, so do not add quotes.
15090
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15099
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15101
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15103
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15104
if test -w "$cache_file"; then
15105
test "x$cache_file" != "x/dev/null" &&
15106
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15107
$as_echo "$as_me: updating cache $cache_file" >&6;}
15108
cat confcache >$cache_file
15110
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15111
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15116
test "x$prefix" = xNONE && prefix=$ac_default_prefix
15117
# Let make expand exec_prefix.
15118
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15120
DEFS=-DHAVE_CONFIG_H
15124
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15125
# 1. Remove the extension, and $U if already installed.
15126
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15127
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15128
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15129
# will be set to the directory where LIBOBJS objects are built.
15130
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15131
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15133
LIBOBJS=$ac_libobjs
15135
LTLIBOBJS=$ac_ltlibobjs
15138
if test -n "$EXEEXT"; then
15140
am__EXEEXT_FALSE='#'
15142
am__EXEEXT_TRUE='#'
15146
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15147
as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15148
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15150
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15151
as_fn_error "conditional \"AMDEP\" was never defined.
15152
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15154
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15155
as_fn_error "conditional \"am__fastdepCC\" was never defined.
15156
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15158
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15159
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15160
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15162
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15163
as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15164
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15166
if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
15167
as_fn_error "conditional \"DRI2\" was never defined.
15168
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15170
if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
15171
as_fn_error "conditional \"ENABLE_DOCS\" was never defined.
15172
Usually this means the macro was only invoked conditionally." "$LINENO" 5
15175
: ${CONFIG_STATUS=./config.status}
15177
ac_clean_files_save=$ac_clean_files
15178
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15179
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15180
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15182
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15184
# Generated by $as_me.
15185
# Run this file to recreate the current configuration.
15186
# Compiler output produced by configure, useful for debugging
15187
# configure, is in config.log if it exists.
15190
ac_cs_recheck=false
15193
SHELL=\${CONFIG_SHELL-$SHELL}
15196
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15197
## -------------------- ##
15198
## M4sh Initialization. ##
15199
## -------------------- ##
15201
# Be more Bourne compatible
15202
DUALCASE=1; export DUALCASE # for MKS sh
15203
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15206
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15207
# is contrary to our usage. Disable this feature.
15208
alias -g '${1+"$@"}'='"$@"'
15209
setopt NO_GLOB_SUBST
15211
case `(set -o) 2>/dev/null` in #(
15223
# Printing a long string crashes Solaris 7 /usr/bin/printf.
15224
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15225
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15226
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15227
# Prefer a ksh shell builtin over an external printf program on Solaris,
15228
# but without wasting forks for bash or zsh.
15229
if test -z "$BASH_VERSION$ZSH_VERSION" \
15230
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15231
as_echo='print -r --'
15232
as_echo_n='print -rn --'
15233
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15234
as_echo='printf %s\n'
15235
as_echo_n='printf %s'
15237
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15238
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15239
as_echo_n='/usr/ucb/echo -n'
15241
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15242
as_echo_n_body='eval
15246
expr "X$arg" : "X\\(.*\\)$as_nl";
15247
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15249
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15251
export as_echo_n_body
15252
as_echo_n='sh -c $as_echo_n_body as_echo'
15254
export as_echo_body
15255
as_echo='sh -c $as_echo_body as_echo'
15258
# The user is always right.
15259
if test "${PATH_SEPARATOR+set}" != set; then
15261
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15262
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15269
# We need space, tab and new line, in precisely that order. Quoting is
15270
# there to prevent editors from complaining about space-tab.
15271
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15272
# splitting by setting IFS to empty value.)
15275
# Find who we are. Look in the path if we contain no directory separator.
15277
*[\\/]* ) as_myself=$0 ;;
15278
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15279
for as_dir in $PATH
15282
test -z "$as_dir" && as_dir=.
15283
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15289
# We did not find ourselves, most probably we were run as `sh COMMAND'
15290
# in which case we are not to be found in the path.
15291
if test "x$as_myself" = x; then
15294
if test ! -f "$as_myself"; then
15295
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15299
# Unset variables that we do not need and which cause bugs (e.g. in
15300
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15301
# suppresses any "Segmentation fault" message there. '((' could
15302
# trigger a bug in pdksh 5.2.14.
15303
for as_var in BASH_ENV ENV MAIL MAILPATH
15304
do eval test x\${$as_var+set} = xset \
15305
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15318
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15321
# as_fn_error ERROR [LINENO LOG_FD]
15322
# ---------------------------------
15323
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15324
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15325
# script with status $?, using 1 if that was 0.
15328
as_status=$?; test $as_status -eq 0 && as_status=1
15330
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15331
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15333
$as_echo "$as_me: error: $1" >&2
15334
as_fn_exit $as_status
15338
# as_fn_set_status STATUS
15339
# -----------------------
15340
# Set $? to STATUS, without forking.
15341
as_fn_set_status ()
15344
} # as_fn_set_status
15346
# as_fn_exit STATUS
15347
# -----------------
15348
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15352
as_fn_set_status $1
15358
# Portably unset VAR.
15361
{ eval $1=; unset $1;}
15363
as_unset=as_fn_unset
15364
# as_fn_append VAR VALUE
15365
# ----------------------
15366
# Append the text in VALUE to the end of the definition contained in VAR. Take
15367
# advantage of any shell optimizations that allow amortized linear growth over
15368
# repeated appends, instead of the typical quadratic growth present in naive
15370
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15371
eval 'as_fn_append ()
15382
# as_fn_arith ARG...
15383
# ------------------
15384
# Perform arithmetic evaluation on the ARGs, and store the result in the
15385
# global $as_val. Take advantage of shells that can avoid forks. The arguments
15386
# must be portable across $(()) and expr.
15387
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15388
eval 'as_fn_arith ()
15395
as_val=`expr "$@" || test $? -eq 1`
15400
if expr a : '\(a\)' >/dev/null 2>&1 &&
15401
test "X`expr 00001 : '.*\(...\)'`" = X001; then
15407
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15408
as_basename=basename
15413
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15419
as_me=`$as_basename -- "$0" ||
15420
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15421
X"$0" : 'X\(//\)$' \| \
15422
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15424
sed '/^.*\/\([^/][^/]*\)\/*$/{
15438
# Avoid depending upon Character Ranges.
15439
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15440
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15441
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15442
as_cr_digits='0123456789'
15443
as_cr_alnum=$as_cr_Letters$as_cr_digits
15445
ECHO_C= ECHO_N= ECHO_T=
15446
case `echo -n x` in #(((((
15448
case `echo 'xy\c'` in
15449
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
15451
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15458
rm -f conf$$ conf$$.exe conf$$.file
15459
if test -d conf$$.dir; then
15460
rm -f conf$$.dir/conf$$.file
15463
mkdir conf$$.dir 2>/dev/null
15465
if (echo >conf$$.file) 2>/dev/null; then
15466
if ln -s conf$$.file conf$$ 2>/dev/null; then
15468
# ... but there are two gotchas:
15469
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15470
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15471
# In both cases, we have to default to `cp -p'.
15472
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15474
elif ln conf$$.file conf$$ 2>/dev/null; then
15482
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15483
rmdir conf$$.dir 2>/dev/null
15488
# Create "$as_dir" as a directory, including parents if necessary.
15493
-*) as_dir=./$as_dir;;
15495
test -d "$as_dir" || eval $as_mkdir_p || {
15499
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15500
*) as_qdir=$as_dir;;
15502
as_dirs="'$as_qdir' $as_dirs"
15503
as_dir=`$as_dirname -- "$as_dir" ||
15504
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15505
X"$as_dir" : 'X\(//\)[^/]' \| \
15506
X"$as_dir" : 'X\(//\)$' \| \
15507
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15508
$as_echo X"$as_dir" |
15509
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15513
/^X\(\/\/\)[^/].*/{
15526
test -d "$as_dir" && break
15528
test -z "$as_dirs" || eval "mkdir $as_dirs"
15529
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15533
if mkdir -p . 2>/dev/null; then
15534
as_mkdir_p='mkdir -p "$as_dir"'
15536
test -d ./-p && rmdir ./-p
15540
if test -x / >/dev/null 2>&1; then
15541
as_test_x='test -x'
15543
if ls -dL / >/dev/null 2>&1; then
15550
if test -d "$1"; then
15556
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15557
???[sx]*):;;*)false;;esac;fi
15561
as_executable_p=$as_test_x
15563
# Sed expression to map a string onto a valid CPP name.
15564
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15566
# Sed expression to map a string onto a valid variable name.
15567
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15571
## ----------------------------------- ##
15572
## Main body of $CONFIG_STATUS script. ##
15573
## ----------------------------------- ##
15575
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15577
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15578
# Save the log message, to keep $0 and so on meaningful, and to
15579
# report actual input values of CONFIG_FILES etc. instead of their
15580
# values after options handling.
15582
This file was extended by libvdpau $as_me 0.4, which was
15583
generated by GNU Autoconf 2.64. Invocation command line was
15585
CONFIG_FILES = $CONFIG_FILES
15586
CONFIG_HEADERS = $CONFIG_HEADERS
15587
CONFIG_LINKS = $CONFIG_LINKS
15588
CONFIG_COMMANDS = $CONFIG_COMMANDS
15591
on `(hostname || uname -n) 2>/dev/null | sed 1q`
15596
case $ac_config_files in *"
15597
"*) set x $ac_config_files; shift; ac_config_files=$*;;
15600
case $ac_config_headers in *"
15601
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15605
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15606
# Files that config.status was made for.
15607
config_files="$ac_config_files"
15608
config_headers="$ac_config_headers"
15609
config_commands="$ac_config_commands"
15613
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15615
\`$as_me' instantiates files and other configuration actions
15616
from templates according to the current configuration. Unless the files
15617
and actions are specified as TAGs, all are instantiated by default.
15619
Usage: $0 [OPTION]... [TAG]...
15621
-h, --help print this help, then exit
15622
-V, --version print version number and configuration settings, then exit
15623
-q, --quiet, --silent
15624
do not print progress messages
15625
-d, --debug don't remove temporary files
15626
--recheck update $as_me by reconfiguring in the same conditions
15627
--file=FILE[:TEMPLATE]
15628
instantiate the configuration file FILE
15629
--header=FILE[:TEMPLATE]
15630
instantiate the configuration header FILE
15632
Configuration files:
15635
Configuration headers:
15638
Configuration commands:
15641
Report bugs to <xorg@lists.freedesktop.org>."
15644
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15646
libvdpau config.status 0.4
15647
configured by $0, generated by GNU Autoconf 2.64,
15648
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15650
Copyright (C) 2009 Free Software Foundation, Inc.
15651
This config.status script is free software; the Free Software Foundation
15652
gives unlimited permission to copy, distribute and modify it."
15659
test -n "\$AWK" || AWK=awk
15662
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15663
# The default lists apply if the user does not specify any file.
15669
ac_option=`expr "X$1" : 'X\([^=]*\)='`
15670
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15681
# Handling of the options.
15682
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15684
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15685
$as_echo "$ac_cs_version"; exit ;;
15686
--debug | --debu | --deb | --de | --d | -d )
15688
--file | --fil | --fi | --f )
15691
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15693
as_fn_append CONFIG_FILES " '$ac_optarg'"
15694
ac_need_defaults=false;;
15695
--header | --heade | --head | --hea )
15698
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15700
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15701
ac_need_defaults=false;;
15703
# Conflict between --help and --header
15704
as_fn_error "ambiguous option: \`$1'
15705
Try \`$0 --help' for more information.";;
15706
--help | --hel | -h )
15707
$as_echo "$ac_cs_usage"; exit ;;
15708
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
15709
| -silent | --silent | --silen | --sile | --sil | --si | --s)
15712
# This is an error.
15713
-*) as_fn_error "unrecognized option: \`$1'
15714
Try \`$0 --help' for more information." ;;
15716
*) as_fn_append ac_config_targets " $1"
15717
ac_need_defaults=false ;;
15723
ac_configure_extra_args=
15725
if $ac_cs_silent; then
15727
ac_configure_extra_args="$ac_configure_extra_args --silent"
15731
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15732
if \$ac_cs_recheck; then
15733
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15735
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15736
CONFIG_SHELL='$SHELL'
15737
export CONFIG_SHELL
15742
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15746
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15747
## Running $as_me. ##
15753
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15757
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15760
# The HP-UX ksh and POSIX shell print the target directory to stdout
15761
# if CDPATH is set.
15762
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15764
sed_quote_subst='$sed_quote_subst'
15765
double_quote_subst='$double_quote_subst'
15766
delay_variable_subst='$delay_variable_subst'
15767
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15768
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15769
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15770
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15771
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15772
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15773
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15774
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15775
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15776
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15777
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15778
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15779
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15780
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15781
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15782
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15783
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15784
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15785
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15786
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15787
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15788
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15789
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15790
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15791
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15792
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15793
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15794
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15795
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15796
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15797
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15798
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15799
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15800
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15801
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15802
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15803
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15804
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15805
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15806
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15807
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15808
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15809
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15810
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15811
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"`'
15812
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"`'
15813
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15814
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15815
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15816
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15817
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15818
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15819
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15820
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15821
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15822
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15823
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15824
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15825
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15826
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15827
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15828
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15829
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15830
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15831
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15832
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15833
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15834
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15835
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15836
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15837
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15838
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15839
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15840
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15841
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15842
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15843
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15844
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15845
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15846
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15847
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15848
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15849
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15850
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15851
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15852
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15853
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15854
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15855
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15856
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15857
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15858
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15859
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15860
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15861
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15862
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15863
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15864
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15865
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15866
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15867
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15868
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15869
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15870
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15871
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15872
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15873
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15874
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15875
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15876
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15877
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15878
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15879
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15880
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15881
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15882
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15883
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15884
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15885
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15886
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15887
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15888
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15889
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15890
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15891
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15892
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15893
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15894
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15895
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15896
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15897
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15898
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15899
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15900
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15901
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15902
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15903
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15904
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15905
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15906
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15907
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15908
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15909
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15910
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15911
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15912
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15913
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15914
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15915
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15916
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15917
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15918
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15919
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15920
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15921
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15922
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15923
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15924
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15925
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15926
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15927
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15928
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15929
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15930
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15931
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15932
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15933
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15934
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15935
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15936
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15937
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15940
LTCFLAGS='$LTCFLAGS'
15941
compiler='$compiler_DEFAULT'
15943
# Quote evaled strings.
15955
deplibs_check_method \
15964
lt_cv_sys_global_symbol_pipe \
15965
lt_cv_sys_global_symbol_to_cdecl \
15966
lt_cv_sys_global_symbol_to_c_name_address \
15967
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15970
lt_prog_compiler_no_builtin_flag \
15971
lt_prog_compiler_wl \
15972
lt_prog_compiler_pic \
15973
lt_prog_compiler_static \
15974
lt_cv_prog_compiler_c_o \
15982
export_dynamic_flag_spec \
15983
whole_archive_flag_spec \
15984
compiler_needs_object \
15986
allow_undefined_flag \
15987
no_undefined_flag \
15988
hardcode_libdir_flag_spec \
15989
hardcode_libdir_flag_spec_ld \
15990
hardcode_libdir_separator \
15995
variables_saved_for_relink \
15997
library_names_spec \
16002
compiler_lib_search_dirs \
16007
compiler_lib_search_path \
16010
lt_prog_compiler_no_builtin_flag_CXX \
16011
lt_prog_compiler_wl_CXX \
16012
lt_prog_compiler_pic_CXX \
16013
lt_prog_compiler_static_CXX \
16014
lt_cv_prog_compiler_c_o_CXX \
16015
export_dynamic_flag_spec_CXX \
16016
whole_archive_flag_spec_CXX \
16017
compiler_needs_object_CXX \
16019
allow_undefined_flag_CXX \
16020
no_undefined_flag_CXX \
16021
hardcode_libdir_flag_spec_CXX \
16022
hardcode_libdir_flag_spec_ld_CXX \
16023
hardcode_libdir_separator_CXX \
16024
fix_srcfile_path_CXX \
16025
exclude_expsyms_CXX \
16026
include_expsyms_CXX \
16027
file_list_spec_CXX \
16028
compiler_lib_search_dirs_CXX \
16029
predep_objects_CXX \
16030
postdep_objects_CXX \
16033
compiler_lib_search_path_CXX; do
16034
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16035
*[\\\\\\\`\\"\\\$]*)
16036
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16039
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16044
# Double-quote double-evaled strings.
16045
for var in reload_cmds \
16046
old_postinstall_cmds \
16047
old_postuninstall_cmds \
16049
extract_expsyms_cmds \
16050
old_archive_from_new_cmds \
16051
old_archive_from_expsyms_cmds \
16053
archive_expsym_cmds \
16055
module_expsym_cmds \
16056
export_symbols_cmds \
16059
postuninstall_cmds \
16061
sys_lib_search_path_spec \
16062
sys_lib_dlsearch_path_spec \
16063
old_archive_cmds_CXX \
16064
old_archive_from_new_cmds_CXX \
16065
old_archive_from_expsyms_cmds_CXX \
16067
archive_expsym_cmds_CXX \
16069
module_expsym_cmds_CXX \
16070
export_symbols_cmds_CXX \
16071
prelink_cmds_CXX; do
16072
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16073
*[\\\\\\\`\\"\\\$]*)
16074
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16077
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16082
# Fix-up fallback echo if it was mangled by the above quoting rules.
16084
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16088
ac_aux_dir='$ac_aux_dir'
16089
xsi_shell='$xsi_shell'
16090
lt_shell_append='$lt_shell_append'
16092
# See if we are running on zsh, and set the options which allow our
16093
# commands through without removal of \ escapes INIT.
16094
if test -n "\${ZSH_VERSION+set}" ; then
16095
setopt NO_GLOB_SUBST
16101
TIMESTAMP='$TIMESTAMP'
16112
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16114
# Handling of arguments.
16115
for ac_config_target in $ac_config_targets
16117
case $ac_config_target in
16118
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16119
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16120
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16121
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16122
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16123
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16124
"trace/Makefile") CONFIG_FILES="$CONFIG_FILES trace/Makefile" ;;
16125
"vdpau.pc") CONFIG_FILES="$CONFIG_FILES vdpau.pc" ;;
16127
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16132
# If the user did not use the arguments to specify the items to instantiate,
16133
# then the envvar interface is used. Set only those that are not.
16134
# We use the long form for the default assignment because of an extremely
16135
# bizarre bug on SunOS 4.1.3.
16136
if $ac_need_defaults; then
16137
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16138
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16139
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16142
# Have a temporary directory for convenience. Make it in the build tree
16143
# simply because there is no reason against having it here, and in addition,
16144
# creating and moving files from /tmp can sometimes cause problems.
16145
# Hook for its removal unless debugging.
16146
# Note that there is a small window in which the directory will not be cleaned:
16147
# after its creation but before its name has been assigned to `$tmp'.
16151
trap 'exit_status=$?
16152
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16154
trap 'as_fn_exit 1' 1 2 13 15
16156
# Create a (secure) tmp directory for tmp files.
16159
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16160
test -n "$tmp" && test -d "$tmp"
16163
tmp=./conf$$-$RANDOM
16164
(umask 077 && mkdir "$tmp")
16165
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16167
# Set up the scripts for CONFIG_FILES section.
16168
# No need to generate them if there are no CONFIG_FILES.
16169
# This happens for instance with `./config.status config.h'.
16170
if test -n "$CONFIG_FILES"; then
16173
ac_cr=`echo X | tr X '\015'`
16174
# On cygwin, bash can eat \r inside `` if the user requested igncr.
16175
# But we know of no other shell where ac_cr would be empty at this
16176
# point, so we can use a bashism as a fallback.
16177
if test "x$ac_cr" = x; then
16178
eval ac_cr=\$\'\\r\'
16180
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16181
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16184
ac_cs_awk_cr=$ac_cr
16187
echo 'BEGIN {' >"$tmp/subs1.awk" &&
16192
echo "cat >conf$$subs.awk <<_ACEOF" &&
16193
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16195
} >conf$$subs.sh ||
16196
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16197
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16199
for ac_last_try in false false false false false :; do
16200
. ./conf$$subs.sh ||
16201
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16203
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16204
if test $ac_delim_n = $ac_delim_num; then
16206
elif $ac_last_try; then
16207
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16209
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16212
rm -f conf$$subs.sh
16214
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16215
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16219
s/^/S["/; s/!.*/"]=/
16229
s/\(.\{148\}\).*/\1/
16231
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16236
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16243
s/\(.\{148\}\).*/\1/
16245
s/["\\]/\\&/g; s/^/"/; s/$/"/
16249
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16254
' <conf$$subs.awk | sed '
16259
' >>$CONFIG_STATUS || ac_write_fail=1
16260
rm -f conf$$subs.awk
16261
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16263
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16264
for (key in S) S_is_set[key] = 1
16270
nfields = split(line, field, "@")
16272
len = length(field[1])
16273
for (i = 2; i < nfields; i++) {
16275
keylen = length(key)
16276
if (S_is_set[key]) {
16278
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16279
len += length(value) + length(field[++i])
16290
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16291
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16292
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16295
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16296
|| as_fn_error "could not setup config files machinery" "$LINENO" 5
16299
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16300
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16301
# trailing colons and then remove the whole line if VPATH becomes empty
16302
# (actually we leave an empty line to preserve line numbers).
16303
if test "x$srcdir" = x.; then
16304
ac_vpsub='/^[ ]*VPATH[ ]*=/{
16305
s/:*\$(srcdir):*/:/
16306
s/:*\${srcdir}:*/:/
16308
s/^\([^=]*=[ ]*\):*/\1/
16314
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16315
fi # test -n "$CONFIG_FILES"
16317
# Set up the scripts for CONFIG_HEADERS section.
16318
# No need to generate them if there are no CONFIG_HEADERS.
16319
# This happens for instance with `./config.status Makefile'.
16320
if test -n "$CONFIG_HEADERS"; then
16321
cat >"$tmp/defines.awk" <<\_ACAWK ||
16325
# Transform confdefs.h into an awk script `defines.awk', embedded as
16326
# here-document in config.status, that substitutes the proper values into
16327
# config.h.in to produce config.h.
16329
# Create a delimiter string that does not exist in confdefs.h, to ease
16330
# handling of long lines.
16332
for ac_last_try in false false :; do
16333
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16334
if test -z "$ac_t"; then
16336
elif $ac_last_try; then
16337
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16339
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16343
# For the awk script, D is an array of macro values keyed by name,
16344
# likewise P contains macro parameters if any. Preserve backslash
16345
# newline sequences.
16347
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16349
s/.\{148\}/&'"$ac_delim"'/g
16352
s/^[ ]*#[ ]*define[ ][ ]*/ /
16359
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16361
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16365
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16366
D["\1"]=" \3\\\\\\n"\\/p
16368
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16373
s/.\{148\}/&'"$ac_delim"'/g
16378
s/["\\]/\\&/g; s/^/"/; s/$/"/p
16381
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16383
' <confdefs.h | sed '
16384
s/'"$ac_delim"'/"\\\
16385
"/g' >>$CONFIG_STATUS || ac_write_fail=1
16387
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16388
for (key in D) D_is_set[key] = 1
16391
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16393
split(line, arg, " ")
16394
if (arg[1] == "#") {
16398
defundef = substr(arg[1], 2)
16401
split(mac1, mac2, "(") #)
16403
prefix = substr(line, 1, index(line, defundef) - 1)
16404
if (D_is_set[macro]) {
16405
# Preserve the white space surrounding the "#".
16406
print prefix "define", macro P[macro] D[macro]
16409
# Replace #undef with comments. This is necessary, for example,
16410
# in the case of _POSIX_SOURCE, which is predefined and required
16411
# on some systems where configure will not decide to define it.
16412
if (defundef == "undef") {
16413
print "/*", prefix defundef, macro, "*/"
16421
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16422
as_fn_error "could not setup config headers machinery" "$LINENO" 5
16423
fi # test -n "$CONFIG_HEADERS"
16426
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16431
:[FHLC]) ac_mode=$ac_tag; continue;;
16433
case $ac_mode$ac_tag in
16435
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16436
:[FH]-) ac_tag=-:-;;
16437
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16454
-) ac_f="$tmp/stdin";;
16455
*) # Look for the file first in the build tree, then in the source tree
16456
# (if the path is not absolute). The absolute path cannot be DOS-style,
16457
# because $ac_f cannot contain `:'.
16461
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16463
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16465
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16466
as_fn_append ac_file_inputs " '$ac_f'"
16469
# Let's still pretend it is `configure' which instantiates (i.e., don't
16470
# use $as_me), people would be surprised to read:
16471
# /* config.h. Generated by config.status. */
16472
configure_input='Generated from '`
16473
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16475
if test x"$ac_file" != x-; then
16476
configure_input="$ac_file. $configure_input"
16477
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16478
$as_echo "$as_me: creating $ac_file" >&6;}
16480
# Neutralize special characters interpreted by sed in replacement strings.
16481
case $configure_input in #(
16482
*\&* | *\|* | *\\* )
16483
ac_sed_conf_input=`$as_echo "$configure_input" |
16484
sed 's/[\\\\&|]/\\\\&/g'`;; #(
16485
*) ac_sed_conf_input=$configure_input;;
16489
*:-:* | *:-) cat >"$tmp/stdin" \
16490
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16495
ac_dir=`$as_dirname -- "$ac_file" ||
16496
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16497
X"$ac_file" : 'X\(//\)[^/]' \| \
16498
X"$ac_file" : 'X\(//\)$' \| \
16499
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16500
$as_echo X"$ac_file" |
16501
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16505
/^X\(\/\/\)[^/].*/{
16518
as_dir="$ac_dir"; as_fn_mkdir_p
16522
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16524
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16525
# A ".." for each directory in $ac_dir_suffix.
16526
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16527
case $ac_top_builddir_sub in
16528
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16529
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16532
ac_abs_top_builddir=$ac_pwd
16533
ac_abs_builddir=$ac_pwd$ac_dir_suffix
16534
# for backward compatibility:
16535
ac_top_builddir=$ac_top_build_prefix
16538
.) # We are building in place.
16540
ac_top_srcdir=$ac_top_builddir_sub
16541
ac_abs_top_srcdir=$ac_pwd ;;
16542
[\\/]* | ?:[\\/]* ) # Absolute name.
16543
ac_srcdir=$srcdir$ac_dir_suffix;
16544
ac_top_srcdir=$srcdir
16545
ac_abs_top_srcdir=$srcdir ;;
16546
*) # Relative name.
16547
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16548
ac_top_srcdir=$ac_top_build_prefix$srcdir
16549
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16551
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16561
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16562
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16564
ac_MKDIR_P=$MKDIR_P
16566
[\\/$]* | ?:[\\/]* ) ;;
16567
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16571
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16572
# If the template does not know about datarootdir, expand it.
16573
# FIXME: This hack should be removed a few years after 2.60.
16574
ac_datarootdir_hack=; ac_datarootdir_seen=
16585
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16586
*datarootdir*) ac_datarootdir_seen=yes;;
16587
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16588
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16589
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16591
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16592
ac_datarootdir_hack='
16593
s&@datadir@&$datadir&g
16594
s&@docdir@&$docdir&g
16595
s&@infodir@&$infodir&g
16596
s&@localedir@&$localedir&g
16597
s&@mandir@&$mandir&g
16598
s&\\\${datarootdir}&$datarootdir&g' ;;
16602
# Neutralize VPATH when `$srcdir' = `.'.
16603
# Shell code in configure.ac might set extrasub.
16604
# FIXME: do we really want to maintain this feature?
16605
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16606
ac_sed_extra="$ac_vpsub
16609
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16611
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16612
s|@configure_input@|$ac_sed_conf_input|;t t
16613
s&@top_builddir@&$ac_top_builddir_sub&;t t
16614
s&@top_build_prefix@&$ac_top_build_prefix&;t t
16615
s&@srcdir@&$ac_srcdir&;t t
16616
s&@abs_srcdir@&$ac_abs_srcdir&;t t
16617
s&@top_srcdir@&$ac_top_srcdir&;t t
16618
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16619
s&@builddir@&$ac_builddir&;t t
16620
s&@abs_builddir@&$ac_abs_builddir&;t t
16621
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16622
s&@INSTALL@&$ac_INSTALL&;t t
16623
s&@MKDIR_P@&$ac_MKDIR_P&;t t
16624
$ac_datarootdir_hack
16626
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16627
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16629
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16630
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16631
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16632
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16633
which seems to be undefined. Please make sure it is defined." >&5
16634
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16635
which seems to be undefined. Please make sure it is defined." >&2;}
16639
-) cat "$tmp/out" && rm -f "$tmp/out";;
16640
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16642
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16648
if test x"$ac_file" != x-; then
16650
$as_echo "/* $configure_input */" \
16651
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16652
} >"$tmp/config.h" \
16653
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16654
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16655
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16656
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16659
mv "$tmp/config.h" "$ac_file" \
16660
|| as_fn_error "could not create $ac_file" "$LINENO" 5
16663
$as_echo "/* $configure_input */" \
16664
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16665
|| as_fn_error "could not create -" "$LINENO" 5
16667
# Compute "$ac_file"'s index in $config_headers.
16670
for _am_header in $config_headers :; do
16671
case $_am_header in
16672
$_am_arg | $_am_arg:* )
16675
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
16678
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16679
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16680
X"$_am_arg" : 'X\(//\)[^/]' \| \
16681
X"$_am_arg" : 'X\(//\)$' \| \
16682
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16683
$as_echo X"$_am_arg" |
16684
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16688
/^X\(\/\/\)[^/].*/{
16700
s/.*/./; q'`/stamp-h$_am_stamp_count
16703
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16704
$as_echo "$as_me: executing $ac_file commands" >&6;}
16709
case $ac_file$ac_mode in
16710
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16711
# Autoconf 2.62 quotes --file arguments for eval, but not when files
16712
# are listed without --file. Let's play safe and only enable the eval
16713
# if we detect the quoting.
16714
case $CONFIG_FILES in
16715
*\'*) eval set x "$CONFIG_FILES" ;;
16716
*) set x $CONFIG_FILES ;;
16721
# Strip MF so we end up with the name of the file.
16722
mf=`echo "$mf" | sed -e 's/:.*$//'`
16723
# Check whether this is an Automake generated Makefile or not.
16724
# We used to match only the files named `Makefile.in', but
16725
# some people rename them; so instead we look at the file content.
16726
# Grep'ing the first line is not enough: some people post-process
16727
# each Makefile.in and add a new line on top of each file to say so.
16728
# Grep'ing the whole file is not good either: AIX grep has a line
16729
# limit of 2048, but all sed's we know have understand at least 4000.
16730
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16731
dirpart=`$as_dirname -- "$mf" ||
16732
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16733
X"$mf" : 'X\(//\)[^/]' \| \
16734
X"$mf" : 'X\(//\)$' \| \
16735
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16737
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16741
/^X\(\/\/\)[^/].*/{
16757
# Extract the definition of DEPDIR, am__include, and am__quote
16758
# from the Makefile without running `make'.
16759
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16760
test -z "$DEPDIR" && continue
16761
am__include=`sed -n 's/^am__include = //p' < "$mf"`
16762
test -z "am__include" && continue
16763
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16764
# When using ansi2knr, U may be empty or an underscore; expand it
16765
U=`sed -n 's/^U = //p' < "$mf"`
16766
# Find all dependency output files, they are included files with
16767
# $(DEPDIR) in their names. We invoke sed twice because it is the
16768
# simplest approach to changing $(DEPDIR) to its actual value in the
16770
for file in `sed -n "
16771
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16772
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16773
# Make sure the directory exists.
16774
test -f "$dirpart/$file" && continue
16775
fdir=`$as_dirname -- "$file" ||
16776
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16777
X"$file" : 'X\(//\)[^/]' \| \
16778
X"$file" : 'X\(//\)$' \| \
16779
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16780
$as_echo X"$file" |
16781
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16785
/^X\(\/\/\)[^/].*/{
16798
as_dir=$dirpart/$fdir; as_fn_mkdir_p
16799
# echo "creating $dirpart/$file"
16800
echo '# dummy' > "$dirpart/$file"
16807
# See if we are running on zsh, and set the options which allow our
16808
# commands through without removal of \ escapes.
16809
if test -n "${ZSH_VERSION+set}" ; then
16810
setopt NO_GLOB_SUBST
16813
cfgfile="${ofile}T"
16814
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16817
cat <<_LT_EOF >> "$cfgfile"
16820
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16821
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16822
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16823
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16825
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16826
# 2006, 2007, 2008 Free Software Foundation, Inc.
16827
# Written by Gordon Matzigkeit, 1996
16829
# This file is part of GNU Libtool.
16831
# GNU Libtool is free software; you can redistribute it and/or
16832
# modify it under the terms of the GNU General Public License as
16833
# published by the Free Software Foundation; either version 2 of
16834
# the License, or (at your option) any later version.
16836
# As a special exception to the GNU General Public License,
16837
# if you distribute this file as part of a program or library that
16838
# is built using GNU Libtool, you may include this file under the
16839
# same distribution terms that you use for the rest of that program.
16841
# GNU Libtool is distributed in the hope that it will be useful,
16842
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16843
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16844
# GNU General Public License for more details.
16846
# You should have received a copy of the GNU General Public License
16847
# along with GNU Libtool; see the file COPYING. If not, a copy
16848
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16849
# obtained by writing to the Free Software Foundation, Inc.,
16850
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16853
# The names of the tagged configurations supported by this script.
16854
available_tags="CXX "
16856
# ### BEGIN LIBTOOL CONFIG
16858
# Whether or not to build static libraries.
16859
build_old_libs=$enable_static
16861
# Which release of libtool.m4 was used?
16862
macro_version=$macro_version
16863
macro_revision=$macro_revision
16865
# Whether or not to build shared libraries.
16866
build_libtool_libs=$enable_shared
16868
# What type of objects to build.
16871
# Whether or not to optimize for fast installation.
16872
fast_install=$enable_fast_install
16875
host_alias=$host_alias
16879
# The build system.
16880
build_alias=$build_alias
16884
# A sed program that does not truncate output.
16887
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16888
Xsed="\$SED -e 1s/^X//"
16890
# A grep program that handles long lines.
16896
# A literal string matcher.
16899
# A BSD- or MS-compatible name lister.
16902
# Whether we need soft or hard links.
16905
# What is the maximum length of a command?
16906
max_cmd_len=$max_cmd_len
16908
# Object file suffix (normally "o").
16911
# Executable file suffix (normally "").
16914
# whether the shell understands "unset".
16917
# turn spaces into newlines.
16920
# turn newlines into spaces.
16923
# How to create reloadable object files.
16924
reload_flag=$lt_reload_flag
16925
reload_cmds=$lt_reload_cmds
16927
# An object symbol dumper.
16928
OBJDUMP=$lt_OBJDUMP
16930
# Method to check whether dependent libraries are shared objects.
16931
deplibs_check_method=$lt_deplibs_check_method
16933
# Command to use when deplibs_check_method == "file_magic".
16934
file_magic_cmd=$lt_file_magic_cmd
16938
AR_FLAGS=$lt_AR_FLAGS
16940
# A symbol stripping program.
16943
# Commands used to install an old-style archive.
16945
old_postinstall_cmds=$lt_old_postinstall_cmds
16946
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16951
# LTCC compiler flags.
16952
LTCFLAGS=$lt_CFLAGS
16954
# Take the output of nm and produce a listing of raw symbols and C names.
16955
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16957
# Transform the output of nm in a proper C declaration.
16958
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16960
# Transform the output of nm in a C name address pair.
16961
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16963
# Transform the output of nm in a C name address pair when lib prefix is needed.
16964
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16966
# The name of the directory that contains temporary libtool files.
16969
# Shell to use when invoking shell scripts.
16972
# An echo program that does not interpret backslashes.
16975
# Used to examine libraries when file_magic_cmd begins with "file".
16976
MAGIC_CMD=$MAGIC_CMD
16978
# Must we lock files when doing compilation?
16979
need_locks=$lt_need_locks
16981
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16982
DSYMUTIL=$lt_DSYMUTIL
16984
# Tool to change global to local symbols on Mac OS X.
16987
# Tool to manipulate fat objects and archives on Mac OS X.
16990
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16993
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16994
OTOOL64=$lt_OTOOL64
16996
# Old archive suffix (normally "a").
16999
# Shared library suffix (normally ".so").
17000
shrext_cmds=$lt_shrext_cmds
17002
# The commands to extract the exported symbol list from a shared archive.
17003
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17005
# Variables whose values should be saved in libtool wrapper scripts and
17006
# restored at link time.
17007
variables_saved_for_relink=$lt_variables_saved_for_relink
17009
# Do we need the "lib" prefix for modules?
17010
need_lib_prefix=$need_lib_prefix
17012
# Do we need a version for libraries?
17013
need_version=$need_version
17015
# Library versioning type.
17016
version_type=$version_type
17018
# Shared library runtime path variable.
17019
runpath_var=$runpath_var
17021
# Shared library path variable.
17022
shlibpath_var=$shlibpath_var
17024
# Is shlibpath searched before the hard-coded library search path?
17025
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17027
# Format of library name prefix.
17028
libname_spec=$lt_libname_spec
17030
# List of archive names. First name is the real one, the rest are links.
17031
# The last name is the one that the linker finds with -lNAME
17032
library_names_spec=$lt_library_names_spec
17034
# The coded name of the library, if different from the real name.
17035
soname_spec=$lt_soname_spec
17037
# Command to use after installation of a shared archive.
17038
postinstall_cmds=$lt_postinstall_cmds
17040
# Command to use after uninstallation of a shared archive.
17041
postuninstall_cmds=$lt_postuninstall_cmds
17043
# Commands used to finish a libtool library installation in a directory.
17044
finish_cmds=$lt_finish_cmds
17046
# As "finish_cmds", except a single script fragment to be evaled but
17048
finish_eval=$lt_finish_eval
17050
# Whether we should hardcode library paths into libraries.
17051
hardcode_into_libs=$hardcode_into_libs
17053
# Compile-time system search path for libraries.
17054
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17056
# Run-time system search path for libraries.
17057
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17059
# Whether dlopen is supported.
17060
dlopen_support=$enable_dlopen
17062
# Whether dlopen of programs is supported.
17063
dlopen_self=$enable_dlopen_self
17065
# Whether dlopen of statically linked programs is supported.
17066
dlopen_self_static=$enable_dlopen_self_static
17068
# Commands to strip libraries.
17069
old_striplib=$lt_old_striplib
17070
striplib=$lt_striplib
17073
# The linker used to build libraries.
17076
# Commands used to build an old-style archive.
17077
old_archive_cmds=$lt_old_archive_cmds
17079
# A language specific compiler.
17082
# Is the compiler the GNU compiler?
17085
# Compiler flag to turn off builtin functions.
17086
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17088
# How to pass a linker flag through the compiler.
17089
wl=$lt_lt_prog_compiler_wl
17091
# Additional compiler flags for building library objects.
17092
pic_flag=$lt_lt_prog_compiler_pic
17094
# Compiler flag to prevent dynamic linking.
17095
link_static_flag=$lt_lt_prog_compiler_static
17097
# Does compiler simultaneously support -c and -o options?
17098
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17100
# Whether or not to add -lc for building shared libraries.
17101
build_libtool_need_lc=$archive_cmds_need_lc
17103
# Whether or not to disallow shared libs when runtime libs are static.
17104
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17106
# Compiler flag to allow reflexive dlopens.
17107
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17109
# Compiler flag to generate shared objects directly from archives.
17110
whole_archive_flag_spec=$lt_whole_archive_flag_spec
17112
# Whether the compiler copes with passing no objects directly.
17113
compiler_needs_object=$lt_compiler_needs_object
17115
# Create an old-style archive from a shared archive.
17116
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17118
# Create a temporary old-style archive to link instead of a shared archive.
17119
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17121
# Commands used to build a shared archive.
17122
archive_cmds=$lt_archive_cmds
17123
archive_expsym_cmds=$lt_archive_expsym_cmds
17125
# Commands used to build a loadable module if different from building
17126
# a shared archive.
17127
module_cmds=$lt_module_cmds
17128
module_expsym_cmds=$lt_module_expsym_cmds
17130
# Whether we are building with GNU ld or not.
17131
with_gnu_ld=$lt_with_gnu_ld
17133
# Flag that allows shared libraries with undefined symbols to be built.
17134
allow_undefined_flag=$lt_allow_undefined_flag
17136
# Flag that enforces no undefined symbols.
17137
no_undefined_flag=$lt_no_undefined_flag
17139
# Flag to hardcode \$libdir into a binary during linking.
17140
# This must work even if \$libdir does not exist
17141
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17143
# If ld is used when linking, flag to hardcode \$libdir into a binary
17144
# during linking. This must work even if \$libdir does not exist.
17145
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17147
# Whether we need a single "-rpath" flag with a separated argument.
17148
hardcode_libdir_separator=$lt_hardcode_libdir_separator
17150
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17151
# DIR into the resulting binary.
17152
hardcode_direct=$hardcode_direct
17154
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17155
# DIR into the resulting binary and the resulting library dependency is
17156
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17157
# library is relocated.
17158
hardcode_direct_absolute=$hardcode_direct_absolute
17160
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17161
# into the resulting binary.
17162
hardcode_minus_L=$hardcode_minus_L
17164
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17165
# into the resulting binary.
17166
hardcode_shlibpath_var=$hardcode_shlibpath_var
17168
# Set to "yes" if building a shared library automatically hardcodes DIR
17169
# into the library and all subsequent libraries and executables linked
17171
hardcode_automatic=$hardcode_automatic
17173
# Set to yes if linker adds runtime paths of dependent libraries
17174
# to runtime path list.
17175
inherit_rpath=$inherit_rpath
17177
# Whether libtool must link a program against all its dependency libraries.
17178
link_all_deplibs=$link_all_deplibs
17180
# Fix the shell variable \$srcfile for the compiler.
17181
fix_srcfile_path=$lt_fix_srcfile_path
17183
# Set to "yes" if exported symbols are required.
17184
always_export_symbols=$always_export_symbols
17186
# The commands to list exported symbols.
17187
export_symbols_cmds=$lt_export_symbols_cmds
17189
# Symbols that should not be listed in the preloaded symbols.
17190
exclude_expsyms=$lt_exclude_expsyms
17192
# Symbols that must always be exported.
17193
include_expsyms=$lt_include_expsyms
17195
# Commands necessary for linking programs (against libraries) with templates.
17196
prelink_cmds=$lt_prelink_cmds
17198
# Specify filename containing input files.
17199
file_list_spec=$lt_file_list_spec
17201
# How to hardcode a shared library path into an executable.
17202
hardcode_action=$hardcode_action
17204
# The directories searched by this compiler when creating a shared library.
17205
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17207
# Dependencies to place before and after the objects being linked to
17208
# create a shared library.
17209
predep_objects=$lt_predep_objects
17210
postdep_objects=$lt_postdep_objects
17211
predeps=$lt_predeps
17212
postdeps=$lt_postdeps
17214
# The library search path used internally by the compiler when linking
17215
# a shared library.
17216
compiler_lib_search_path=$lt_compiler_lib_search_path
17218
# ### END LIBTOOL CONFIG
17224
cat <<\_LT_EOF >> "$cfgfile"
17225
# AIX sometimes has problems with the GCC collect2 program. For some
17226
# reason, if we set the COLLECT_NAMES environment variable, the problems
17227
# vanish in a puff of smoke.
17228
if test "X${COLLECT_NAMES+set}" != Xset; then
17230
export COLLECT_NAMES
17237
ltmain="$ac_aux_dir/ltmain.sh"
17240
# We use sed instead of cat because bash on DJGPP gets confused if
17241
# if finds mixed CR/LF and LF-only lines. Since sed operates in
17242
# text mode, it properly converts lines to CR/LF. This bash problem
17243
# is reportedly fixed, but why not run on old versions too?
17244
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17245
|| (rm -f "$cfgfile"; exit 1)
17249
cat << \_LT_EOF >> "$cfgfile"
17251
# func_dirname file append nondir_replacement
17252
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17253
# otherwise set result to NONDIR_REPLACEMENT.
17257
*/*) func_dirname_result="${1%/*}${2}" ;;
17258
* ) func_dirname_result="${3}" ;;
17262
# func_basename file
17265
func_basename_result="${1##*/}"
17268
# func_dirname_and_basename file append nondir_replacement
17269
# perform func_basename and func_dirname in a single function
17271
# dirname: Compute the dirname of FILE. If nonempty,
17272
# add APPEND to the result, otherwise set result
17273
# to NONDIR_REPLACEMENT.
17274
# value returned in "$func_dirname_result"
17275
# basename: Compute filename of FILE.
17276
# value retuned in "$func_basename_result"
17277
# Implementation must be kept synchronized with func_dirname
17278
# and func_basename. For efficiency, we do not delegate to
17279
# those functions but instead duplicate the functionality here.
17280
func_dirname_and_basename ()
17283
*/*) func_dirname_result="${1%/*}${2}" ;;
17284
* ) func_dirname_result="${3}" ;;
17286
func_basename_result="${1##*/}"
17289
# func_stripname prefix suffix name
17290
# strip PREFIX and SUFFIX off of NAME.
17291
# PREFIX and SUFFIX must not contain globbing or regex special
17292
# characters, hashes, percent signs, but SUFFIX may contain a leading
17293
# dot (in which case that matches only a dot).
17296
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17297
# positional parameters, so assign one to ordinary parameter first.
17298
func_stripname_result=${3}
17299
func_stripname_result=${func_stripname_result#"${1}"}
17300
func_stripname_result=${func_stripname_result%"${2}"}
17306
func_opt_split_opt=${1%%=*}
17307
func_opt_split_arg=${1#*=}
17314
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17315
*) func_lo2o_result=${1} ;;
17319
# func_xform libobj-or-source
17322
func_xform_result=${1%.*}.lo
17325
# func_arith arithmetic-term...
17328
func_arith_result=$(( $* ))
17332
# STRING may not start with a hyphen.
17335
func_len_result=${#1}
17340
*) # Bourne compatible functions.
17341
cat << \_LT_EOF >> "$cfgfile"
17343
# func_dirname file append nondir_replacement
17344
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17345
# otherwise set result to NONDIR_REPLACEMENT.
17348
# Extract subdirectory from the argument.
17349
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17350
if test "X$func_dirname_result" = "X${1}"; then
17351
func_dirname_result="${3}"
17353
func_dirname_result="$func_dirname_result${2}"
17357
# func_basename file
17360
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17364
# func_stripname prefix suffix name
17365
# strip PREFIX and SUFFIX off of NAME.
17366
# PREFIX and SUFFIX must not contain globbing or regex special
17367
# characters, hashes, percent signs, but SUFFIX may contain a leading
17368
# dot (in which case that matches only a dot).
17369
# func_strip_suffix prefix name
17373
.*) func_stripname_result=`$ECHO "X${3}" \
17374
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17375
*) func_stripname_result=`$ECHO "X${3}" \
17376
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17381
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17382
my_sed_long_arg='1s/^-[^=]*=//'
17387
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17388
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17394
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17397
# func_xform libobj-or-source
17400
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17403
# func_arith arithmetic-term...
17406
func_arith_result=`expr "$@"`
17410
# STRING may not start with a hyphen.
17413
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17419
case $lt_shell_append in
17421
cat << \_LT_EOF >> "$cfgfile"
17423
# func_append var value
17424
# Append VALUE to the end of shell variable VAR.
17432
cat << \_LT_EOF >> "$cfgfile"
17434
# func_append var value
17435
# Append VALUE to the end of shell variable VAR.
17446
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17447
|| (rm -f "$cfgfile"; exit 1)
17449
mv -f "$cfgfile" "$ofile" ||
17450
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17454
cat <<_LT_EOF >> "$ofile"
17456
# ### BEGIN LIBTOOL TAG CONFIG: CXX
17458
# The linker used to build libraries.
17461
# Commands used to build an old-style archive.
17462
old_archive_cmds=$lt_old_archive_cmds_CXX
17464
# A language specific compiler.
17465
CC=$lt_compiler_CXX
17467
# Is the compiler the GNU compiler?
17470
# Compiler flag to turn off builtin functions.
17471
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17473
# How to pass a linker flag through the compiler.
17474
wl=$lt_lt_prog_compiler_wl_CXX
17476
# Additional compiler flags for building library objects.
17477
pic_flag=$lt_lt_prog_compiler_pic_CXX
17479
# Compiler flag to prevent dynamic linking.
17480
link_static_flag=$lt_lt_prog_compiler_static_CXX
17482
# Does compiler simultaneously support -c and -o options?
17483
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17485
# Whether or not to add -lc for building shared libraries.
17486
build_libtool_need_lc=$archive_cmds_need_lc_CXX
17488
# Whether or not to disallow shared libs when runtime libs are static.
17489
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17491
# Compiler flag to allow reflexive dlopens.
17492
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17494
# Compiler flag to generate shared objects directly from archives.
17495
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17497
# Whether the compiler copes with passing no objects directly.
17498
compiler_needs_object=$lt_compiler_needs_object_CXX
17500
# Create an old-style archive from a shared archive.
17501
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17503
# Create a temporary old-style archive to link instead of a shared archive.
17504
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17506
# Commands used to build a shared archive.
17507
archive_cmds=$lt_archive_cmds_CXX
17508
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17510
# Commands used to build a loadable module if different from building
17511
# a shared archive.
17512
module_cmds=$lt_module_cmds_CXX
17513
module_expsym_cmds=$lt_module_expsym_cmds_CXX
17515
# Whether we are building with GNU ld or not.
17516
with_gnu_ld=$lt_with_gnu_ld_CXX
17518
# Flag that allows shared libraries with undefined symbols to be built.
17519
allow_undefined_flag=$lt_allow_undefined_flag_CXX
17521
# Flag that enforces no undefined symbols.
17522
no_undefined_flag=$lt_no_undefined_flag_CXX
17524
# Flag to hardcode \$libdir into a binary during linking.
17525
# This must work even if \$libdir does not exist
17526
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17528
# If ld is used when linking, flag to hardcode \$libdir into a binary
17529
# during linking. This must work even if \$libdir does not exist.
17530
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17532
# Whether we need a single "-rpath" flag with a separated argument.
17533
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17535
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17536
# DIR into the resulting binary.
17537
hardcode_direct=$hardcode_direct_CXX
17539
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17540
# DIR into the resulting binary and the resulting library dependency is
17541
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17542
# library is relocated.
17543
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17545
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17546
# into the resulting binary.
17547
hardcode_minus_L=$hardcode_minus_L_CXX
17549
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17550
# into the resulting binary.
17551
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17553
# Set to "yes" if building a shared library automatically hardcodes DIR
17554
# into the library and all subsequent libraries and executables linked
17556
hardcode_automatic=$hardcode_automatic_CXX
17558
# Set to yes if linker adds runtime paths of dependent libraries
17559
# to runtime path list.
17560
inherit_rpath=$inherit_rpath_CXX
17562
# Whether libtool must link a program against all its dependency libraries.
17563
link_all_deplibs=$link_all_deplibs_CXX
17565
# Fix the shell variable \$srcfile for the compiler.
17566
fix_srcfile_path=$lt_fix_srcfile_path_CXX
17568
# Set to "yes" if exported symbols are required.
17569
always_export_symbols=$always_export_symbols_CXX
17571
# The commands to list exported symbols.
17572
export_symbols_cmds=$lt_export_symbols_cmds_CXX
17574
# Symbols that should not be listed in the preloaded symbols.
17575
exclude_expsyms=$lt_exclude_expsyms_CXX
17577
# Symbols that must always be exported.
17578
include_expsyms=$lt_include_expsyms_CXX
17580
# Commands necessary for linking programs (against libraries) with templates.
17581
prelink_cmds=$lt_prelink_cmds_CXX
17583
# Specify filename containing input files.
17584
file_list_spec=$lt_file_list_spec_CXX
17586
# How to hardcode a shared library path into an executable.
17587
hardcode_action=$hardcode_action_CXX
17589
# The directories searched by this compiler when creating a shared library.
17590
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17592
# Dependencies to place before and after the objects being linked to
17593
# create a shared library.
17594
predep_objects=$lt_predep_objects_CXX
17595
postdep_objects=$lt_postdep_objects_CXX
17596
predeps=$lt_predeps_CXX
17597
postdeps=$lt_postdeps_CXX
17599
# The library search path used internally by the compiler when linking
17600
# a shared library.
17601
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17603
# ### END LIBTOOL TAG CONFIG: CXX
17614
ac_clean_files=$ac_clean_files_save
17616
test $ac_write_fail = 0 ||
17617
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17620
# configure is writing to config.log, and then calls config.status.
17621
# config.status does its own redirection, appending to config.log.
17622
# Unfortunately, on DOS this fails, as config.log is still kept open
17623
# by configure, so config.status won't be able to write to it; its
17624
# output is simply discarded. So we exec the FD to /dev/null,
17625
# effectively closing config.log, so it can be properly (re)opened and
17626
# appended to by config.status. When coming back to configure, we
17627
# need to make the FD available again.
17628
if test "$no_create" != yes; then
17630
ac_config_status_args=
17631
test "$silent" = yes &&
17632
ac_config_status_args="$ac_config_status_args --quiet"
17634
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17636
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17637
# would make configure fail if this is the last instruction.
17638
$ac_cs_success || as_fn_exit $?
17640
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17641
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17642
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}