2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for libxcb 1.2.
5
# Report bugs to <xcb@lists.freedesktop.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $echo works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
echo_test_string=`eval $cmd` &&
600
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
612
# The Solaris, AIX, and Digital Unix default echo programs unquote
613
# backslashes. This makes it impossible to quote backslashes using
614
# echo "$something" | sed 's/\\/\\\\/g'
616
# So, first we look for a working echo in the user's PATH.
618
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
for dir in $PATH /usr/ucb; do
621
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
test "X$echo_testing_string" = "X$echo_test_string"; then
631
if test "X$echo" = Xecho; then
632
# We didn't find a better echo, so look for alternatives.
633
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# This shell has a builtin print -r that does the trick.
638
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
test "X$CONFIG_SHELL" != X/bin/ksh; then
640
# If we have ksh, try running configure again with it.
641
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
export ORIGINAL_CONFIG_SHELL
643
CONFIG_SHELL=/bin/ksh
645
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
test "X$echo_testing_string" = "X$echo_test_string"; then
654
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
test "X$echo_testing_string" = 'X\t' &&
656
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
test "X$echo_testing_string" = "X$echo_test_string"; then
658
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
SHELL="$CONFIG_SHELL"
662
echo="$CONFIG_SHELL $0 --fallback-echo"
663
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
test "X$echo_testing_string" = 'X\t' &&
665
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
test "X$echo_testing_string" = "X$echo_test_string"; then
667
echo="$CONFIG_SHELL $0 --fallback-echo"
669
# maybe with a smaller string...
672
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680
if test "$prev" != 'sed 50q "$0"'; then
681
echo_test_string=`eval $prev`
682
export echo_test_string
683
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
# Oops. We lost completely, so just stick with echo.
694
# Copy echo and quote the copy suitably for passing to libtool from
695
# the Makefile, instead of quoting the original, which is used later.
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704
tagnames=${tagnames+${tagnames},}CXX
706
tagnames=${tagnames+${tagnames},}F77
708
exec 7<&0 </dev/null 6>&1
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
# so uname gets run too.
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
ac_default_prefix=/usr/local
720
ac_config_libobj_dir=.
726
SHELL=${CONFIG_SHELL-/bin/sh}
728
# Identity of this package.
729
PACKAGE_NAME='libxcb'
730
PACKAGE_TARNAME='libxcb'
731
PACKAGE_VERSION='1.2'
732
PACKAGE_STRING='libxcb 1.2'
733
PACKAGE_BUGREPORT='xcb@lists.freedesktop.org'
735
ac_unique_file="xcb.pc.in"
736
# Factoring default headers for most tests.
737
ac_includes_default="\
739
#ifdef HAVE_SYS_TYPES_H
740
# include <sys/types.h>
742
#ifdef HAVE_SYS_STAT_H
743
# include <sys/stat.h>
749
# ifdef HAVE_STDLIB_H
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759
#ifdef HAVE_STRINGS_H
760
# include <strings.h>
762
#ifdef HAVE_INTTYPES_H
763
# include <inttypes.h>
781
program_transform_name
823
INSTALL_STRIP_PROGRAM
899
XCBPROTO_XCBINCLUDEDIR
900
XCBPROTO_XCBPYTHONDIR
908
BUILD_COMPOSITE_FALSE
923
BUILD_SCREENSAVER_TRUE
924
BUILD_SCREENSAVER_FALSE
935
BUILD_XFREE86_DRI_TRUE
936
BUILD_XFREE86_DRI_FALSE
955
ac_precious_vars='build_alias
981
# Initialize some variables set by options.
983
ac_init_version=false
984
# The variables have the same names as the options, with
985
# dashes changed to underlines.
993
program_transform_name=s,x,x,
1001
# Installation directory options.
1002
# These are left unexpanded so users can "make install exec_prefix=/foo"
1003
# and all the variables that are supposed to be based on exec_prefix
1004
# by default will actually change.
1005
# Use braces instead of parens because sh, perl, etc. also accept them.
1006
# (The list follows the same order as the GNU Coding Standards.)
1007
bindir='${exec_prefix}/bin'
1008
sbindir='${exec_prefix}/sbin'
1009
libexecdir='${exec_prefix}/libexec'
1010
datarootdir='${prefix}/share'
1011
datadir='${datarootdir}'
1012
sysconfdir='${prefix}/etc'
1013
sharedstatedir='${prefix}/com'
1014
localstatedir='${prefix}/var'
1015
includedir='${prefix}/include'
1016
oldincludedir='/usr/include'
1017
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1018
infodir='${datarootdir}/info'
1023
libdir='${exec_prefix}/lib'
1024
localedir='${datarootdir}/locale'
1025
mandir='${datarootdir}/man'
1031
# If the previous option needs an argument, assign it.
1032
if test -n "$ac_prev"; then
1033
eval $ac_prev=\$ac_option
1039
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043
# Accept the important Cygnus configure options, so we can diagnose typos.
1045
case $ac_dashdash$ac_option in
1049
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1051
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052
bindir=$ac_optarg ;;
1054
-build | --build | --buil | --bui | --bu)
1055
ac_prev=build_alias ;;
1056
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057
build_alias=$ac_optarg ;;
1059
-cache-file | --cache-file | --cache-fil | --cache-fi \
1060
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061
ac_prev=cache_file ;;
1062
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064
cache_file=$ac_optarg ;;
1066
--config-cache | -C)
1067
cache_file=config.cache ;;
1069
-datadir | --datadir | --datadi | --datad)
1071
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1072
datadir=$ac_optarg ;;
1074
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075
| --dataroo | --dataro | --datar)
1076
ac_prev=datarootdir ;;
1077
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079
datarootdir=$ac_optarg ;;
1081
-disable-* | --disable-*)
1082
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083
# Reject names that are not valid shell variable names.
1084
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086
{ (exit 1); exit 1; }; }
1087
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1088
eval enable_$ac_feature=no ;;
1090
-docdir | --docdir | --docdi | --doc | --do)
1092
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1093
docdir=$ac_optarg ;;
1095
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1098
dvidir=$ac_optarg ;;
1100
-enable-* | --enable-*)
1101
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1102
# Reject names that are not valid shell variable names.
1103
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1105
{ (exit 1); exit 1; }; }
1106
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1107
eval enable_$ac_feature=\$ac_optarg ;;
1109
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111
| --exec | --exe | --ex)
1112
ac_prev=exec_prefix ;;
1113
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115
| --exec=* | --exe=* | --ex=*)
1116
exec_prefix=$ac_optarg ;;
1118
-gas | --gas | --ga | --g)
1119
# Obsolete; use --with-gas.
1122
-help | --help | --hel | --he | -h)
1123
ac_init_help=long ;;
1124
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125
ac_init_help=recursive ;;
1126
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127
ac_init_help=short ;;
1129
-host | --host | --hos | --ho)
1130
ac_prev=host_alias ;;
1131
-host=* | --host=* | --hos=* | --ho=*)
1132
host_alias=$ac_optarg ;;
1134
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138
htmldir=$ac_optarg ;;
1140
-includedir | --includedir | --includedi | --included | --include \
1141
| --includ | --inclu | --incl | --inc)
1142
ac_prev=includedir ;;
1143
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144
| --includ=* | --inclu=* | --incl=* | --inc=*)
1145
includedir=$ac_optarg ;;
1147
-infodir | --infodir | --infodi | --infod | --info | --inf)
1149
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150
infodir=$ac_optarg ;;
1152
-libdir | --libdir | --libdi | --libd)
1154
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1155
libdir=$ac_optarg ;;
1157
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158
| --libexe | --libex | --libe)
1159
ac_prev=libexecdir ;;
1160
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161
| --libexe=* | --libex=* | --libe=*)
1162
libexecdir=$ac_optarg ;;
1164
-localedir | --localedir | --localedi | --localed | --locale)
1165
ac_prev=localedir ;;
1166
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167
localedir=$ac_optarg ;;
1169
-localstatedir | --localstatedir | --localstatedi | --localstated \
1170
| --localstate | --localstat | --localsta | --localst | --locals)
1171
ac_prev=localstatedir ;;
1172
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174
localstatedir=$ac_optarg ;;
1176
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179
mandir=$ac_optarg ;;
1181
-nfp | --nfp | --nf)
1182
# Obsolete; use --without-fp.
1185
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186
| --no-cr | --no-c | -n)
1189
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195
| --oldin | --oldi | --old | --ol | --o)
1196
ac_prev=oldincludedir ;;
1197
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200
oldincludedir=$ac_optarg ;;
1202
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205
prefix=$ac_optarg ;;
1207
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1208
| --program-pre | --program-pr | --program-p)
1209
ac_prev=program_prefix ;;
1210
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1211
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212
program_prefix=$ac_optarg ;;
1214
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1215
| --program-suf | --program-su | --program-s)
1216
ac_prev=program_suffix ;;
1217
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1218
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219
program_suffix=$ac_optarg ;;
1221
-program-transform-name | --program-transform-name \
1222
| --program-transform-nam | --program-transform-na \
1223
| --program-transform-n | --program-transform- \
1224
| --program-transform | --program-transfor \
1225
| --program-transfo | --program-transf \
1226
| --program-trans | --program-tran \
1227
| --progr-tra | --program-tr | --program-t)
1228
ac_prev=program_transform_name ;;
1229
-program-transform-name=* | --program-transform-name=* \
1230
| --program-transform-nam=* | --program-transform-na=* \
1231
| --program-transform-n=* | --program-transform-=* \
1232
| --program-transform=* | --program-transfor=* \
1233
| --program-transfo=* | --program-transf=* \
1234
| --program-trans=* | --program-tran=* \
1235
| --progr-tra=* | --program-tr=* | --program-t=*)
1236
program_transform_name=$ac_optarg ;;
1238
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241
pdfdir=$ac_optarg ;;
1243
-psdir | --psdir | --psdi | --psd | --ps)
1245
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249
| -silent | --silent | --silen | --sile | --sil)
1252
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256
sbindir=$ac_optarg ;;
1258
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1259
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260
| --sharedst | --shareds | --shared | --share | --shar \
1262
ac_prev=sharedstatedir ;;
1263
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267
sharedstatedir=$ac_optarg ;;
1269
-site | --site | --sit)
1271
-site=* | --site=* | --sit=*)
1274
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277
srcdir=$ac_optarg ;;
1279
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280
| --syscon | --sysco | --sysc | --sys | --sy)
1281
ac_prev=sysconfdir ;;
1282
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284
sysconfdir=$ac_optarg ;;
1286
-target | --target | --targe | --targ | --tar | --ta | --t)
1287
ac_prev=target_alias ;;
1288
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289
target_alias=$ac_optarg ;;
1291
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1294
-version | --version | --versio | --versi | --vers | -V)
1295
ac_init_version=: ;;
1298
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299
# Reject names that are not valid shell variable names.
1300
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1302
{ (exit 1); exit 1; }; }
1303
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304
eval with_$ac_package=\$ac_optarg ;;
1306
-without-* | --without-*)
1307
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308
# Reject names that are not valid shell variable names.
1309
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1311
{ (exit 1); exit 1; }; }
1312
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1313
eval with_$ac_package=no ;;
1316
# Obsolete; use --with-x.
1319
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320
| --x-incl | --x-inc | --x-in | --x-i)
1321
ac_prev=x_includes ;;
1322
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324
x_includes=$ac_optarg ;;
1326
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1327
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328
ac_prev=x_libraries ;;
1329
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331
x_libraries=$ac_optarg ;;
1333
-*) { echo "$as_me: error: unrecognized option: $ac_option
1334
Try \`$0 --help' for more information." >&2
1335
{ (exit 1); exit 1; }; }
1339
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340
# Reject names that are not valid shell variable names.
1341
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1342
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1343
{ (exit 1); exit 1; }; }
1344
eval $ac_envvar=\$ac_optarg
1345
export $ac_envvar ;;
1348
# FIXME: should be removed in autoconf 3.0.
1349
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358
if test -n "$ac_prev"; then
1359
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360
{ echo "$as_me: error: missing argument to $ac_option" >&2
1361
{ (exit 1); exit 1; }; }
1364
# Be sure to have absolute directory names.
1365
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366
datadir sysconfdir sharedstatedir localstatedir includedir \
1367
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368
libdir localedir mandir
1370
eval ac_val=\$$ac_var
1372
[\\/$]* | ?:[\\/]* ) continue;;
1373
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1376
{ (exit 1); exit 1; }; }
1379
# There might be people who depend on the old broken behavior: `$host'
1380
# used to hold the argument of --host etc.
1381
# FIXME: To remove some day.
1384
target=$target_alias
1386
# FIXME: To remove some day.
1387
if test "x$host_alias" != x; then
1388
if test "x$build_alias" = x; then
1389
cross_compiling=maybe
1390
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1391
If a cross compiler is detected then cross compile mode will be used." >&2
1392
elif test "x$build_alias" != "x$host_alias"; then
1398
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
test "$silent" = yes && exec 6>/dev/null
1403
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404
ac_ls_di=`ls -di .` &&
1405
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406
{ echo "$as_me: error: Working directory cannot be determined" >&2
1407
{ (exit 1); exit 1; }; }
1408
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1410
{ (exit 1); exit 1; }; }
1413
# Find the source files, if location was not specified.
1414
if test -z "$srcdir"; then
1415
ac_srcdir_defaulted=yes
1416
# Try the directory containing this script, then the parent directory.
1417
ac_confdir=`$as_dirname -- "$0" ||
1418
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419
X"$0" : 'X\(//\)[^/]' \| \
1420
X"$0" : 'X\(//\)$' \| \
1421
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1423
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441
if test ! -r "$srcdir/$ac_unique_file"; then
1445
ac_srcdir_defaulted=no
1447
if test ! -r "$srcdir/$ac_unique_file"; then
1448
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1450
{ (exit 1); exit 1; }; }
1452
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1455
{ (exit 1); exit 1; }; }
1457
# When building in place, set srcdir=.
1458
if test "$ac_abs_confdir" = "$ac_pwd"; then
1461
# Remove unnecessary trailing slashes from srcdir.
1462
# Double slashes in file names in object file debugging info
1463
# mess up M-x gdb in Emacs.
1465
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467
for ac_var in $ac_precious_vars; do
1468
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469
eval ac_env_${ac_var}_value=\$${ac_var}
1470
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475
# Report the --help message.
1477
if test "$ac_init_help" = "long"; then
1478
# Omit some internal or obsolete options to make the list less imposing.
1479
# This message is too long to be a string in the A/UX 3.1 sh.
1481
\`configure' configures libxcb 1.2 to adapt to many kinds of systems.
1483
Usage: $0 [OPTION]... [VAR=VALUE]...
1485
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486
VAR=VALUE. See below for descriptions of some of the useful variables.
1488
Defaults for the options are specified in brackets.
1491
-h, --help display this help and exit
1492
--help=short display options specific to this package
1493
--help=recursive display the short help of all the included packages
1494
-V, --version display version information and exit
1495
-q, --quiet, --silent do not print \`checking...' messages
1496
--cache-file=FILE cache test results in FILE [disabled]
1497
-C, --config-cache alias for \`--cache-file=config.cache'
1498
-n, --no-create do not create output files
1499
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
Installation directories:
1502
--prefix=PREFIX install architecture-independent files in PREFIX
1503
[$ac_default_prefix]
1504
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1507
By default, \`make install' will install all the files in
1508
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510
for instance \`--prefix=\$HOME'.
1512
For better control, use the options below.
1514
Fine tuning of the installation directories:
1515
--bindir=DIR user executables [EPREFIX/bin]
1516
--sbindir=DIR system admin executables [EPREFIX/sbin]
1517
--libexecdir=DIR program executables [EPREFIX/libexec]
1518
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521
--libdir=DIR object code libraries [EPREFIX/lib]
1522
--includedir=DIR C header files [PREFIX/include]
1523
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1524
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526
--infodir=DIR info documentation [DATAROOTDIR/info]
1527
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528
--mandir=DIR man documentation [DATAROOTDIR/man]
1529
--docdir=DIR documentation root [DATAROOTDIR/doc/libxcb]
1530
--htmldir=DIR html documentation [DOCDIR]
1531
--dvidir=DIR dvi documentation [DOCDIR]
1532
--pdfdir=DIR pdf documentation [DOCDIR]
1533
--psdir=DIR ps documentation [DOCDIR]
1539
--program-prefix=PREFIX prepend PREFIX to installed program names
1540
--program-suffix=SUFFIX append SUFFIX to installed program names
1541
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1544
--build=BUILD configure for building on BUILD [guessed]
1545
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1549
if test -n "$ac_init_help"; then
1550
case $ac_init_help in
1551
short | recursive ) echo "Configuration of libxcb 1.2:";;
1556
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558
--enable-shared[=PKGS] build shared libraries [default=yes]
1559
--enable-static[=PKGS] build static libraries [default=yes]
1560
--enable-fast-install[=PKGS]
1561
optimize for fast installation [default=yes]
1562
--disable-dependency-tracking speeds up one-time build
1563
--enable-dependency-tracking do not reject slow dependency extractors
1564
--disable-libtool-lock avoid locking (might break parallel builds)
1565
--disable-build-docs Disable the build of the documentation
1567
Build XCB Composite Extension (default: "yes")
1568
--enable-damage Build XCB Damage Extension (default: "yes")
1569
--enable-dpms Build XCB DPMS Extension (default: "yes")
1570
--enable-glx Build XCB GLX Extension (default: "yes")
1571
--enable-randr Build XCB RandR Extension (default: "yes")
1572
--enable-record Build XCB Record Extension (default: "yes")
1573
--enable-render Build XCB Render Extension (default: "yes")
1575
Build XCB Resource Extension (default: "yes")
1576
--enable-screensaver
1577
Build XCB Screensaver Extension (default: "yes")
1578
--enable-shape Build XCB Shape Extension (default: "yes")
1579
--enable-shm Build XCB Shm Extension (default: "yes")
1580
--enable-sync Build XCB Sync Extension (default: "yes")
1581
--enable-xevie Build XCB Xevie Extension (default: "yes")
1582
--enable-xfixes Build XCB XFixes Extension (default: "yes")
1583
--enable-xfree86-dri
1584
Build XCB XFree86-DRI Extension (default: "yes")
1586
Build XCB Xinerama Extension (default: "yes")
1587
--enable-xinput Build XCB XInput Extension (default: "no")
1588
--enable-xprint Build XCB Xprint Extension (default: "yes")
1590
Build XCB SELinux Extension (default: "no")
1591
--enable-xtest Build XCB XTest Extension (default: "yes")
1592
--enable-xv Build XCB Xv Extension (default: "yes")
1593
--enable-xvmc Build XCB XvMC Extension (default: "yes")
1596
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1597
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1598
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599
--with-pic try to use only PIC/non-PIC objects [default=use
1601
--with-tags[=TAGS] include additional configurations [automatic]
1602
--with-queue-size=SIZE Set the XCB buffer queue size (default is 16384)
1603
--with-doxygen=FILE doxygen program to use (eg /usr/bin/doxygen)
1604
--with-launchd Build with support for Apple's launchd (default:
1607
Some influential environment variables:
1608
PKG_CONFIG path to pkg-config utility
1610
C compiler flags for CHECK, overriding pkg-config
1611
CHECK_LIBS linker flags for CHECK, overriding pkg-config
1612
CC C compiler command
1613
CFLAGS C compiler flags
1614
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615
nonstandard directory <lib dir>
1616
LIBS libraries to pass to the linker, e.g. -l<library>
1617
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618
you have headers in a nonstandard directory <include dir>
1620
CXX C++ compiler command
1621
CXXFLAGS C++ compiler flags
1622
CXXCPP C++ preprocessor
1623
F77 Fortran 77 compiler command
1624
FFLAGS Fortran 77 compiler flags
1626
C compiler flags for XCBPROTO, overriding pkg-config
1628
linker flags for XCBPROTO, overriding pkg-config
1630
C compiler flags for NEEDED, overriding pkg-config
1631
NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1633
C compiler flags for XDMCP, overriding pkg-config
1634
XDMCP_LIBS linker flags for XDMCP, overriding pkg-config
1636
Use these variables to override the choices made by `configure' or to help
1637
it to find libraries and programs with nonstandard names/locations.
1639
Report bugs to <xcb@lists.freedesktop.org>.
1644
if test "$ac_init_help" = "recursive"; then
1645
# If there are subdirs, report their specific --help.
1646
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647
test -d "$ac_dir" || continue
1651
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1654
# A ".." for each directory in $ac_dir_suffix.
1655
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1656
case $ac_top_builddir_sub in
1657
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661
ac_abs_top_builddir=$ac_pwd
1662
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663
# for backward compatibility:
1664
ac_top_builddir=$ac_top_build_prefix
1667
.) # We are building in place.
1669
ac_top_srcdir=$ac_top_builddir_sub
1670
ac_abs_top_srcdir=$ac_pwd ;;
1671
[\\/]* | ?:[\\/]* ) # Absolute name.
1672
ac_srcdir=$srcdir$ac_dir_suffix;
1673
ac_top_srcdir=$srcdir
1674
ac_abs_top_srcdir=$srcdir ;;
1676
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677
ac_top_srcdir=$ac_top_build_prefix$srcdir
1678
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1682
cd "$ac_dir" || { ac_status=$?; continue; }
1683
# Check for guested configure.
1684
if test -f "$ac_srcdir/configure.gnu"; then
1686
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687
elif test -f "$ac_srcdir/configure"; then
1689
$SHELL "$ac_srcdir/configure" --help=recursive
1691
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693
cd "$ac_pwd" || { ac_status=$?; break; }
1697
test -n "$ac_init_help" && exit $ac_status
1698
if $ac_init_version; then
1700
libxcb configure 1.2
1701
generated by GNU Autoconf 2.61
1703
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1704
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1705
This configure script is free software; the Free Software Foundation
1706
gives unlimited permission to copy, distribute and modify it.
1710
cat >config.log <<_ACEOF
1711
This file contains any messages produced by compilers while
1712
running configure, to aid debugging if configure makes a mistake.
1714
It was created by libxcb $as_me 1.2, which was
1715
generated by GNU Autoconf 2.61. Invocation command line was
1727
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1728
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1729
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1730
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1731
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1733
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1734
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1736
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1737
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1738
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1739
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1740
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1741
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1742
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750
test -z "$as_dir" && as_dir=.
1751
echo "PATH: $as_dir"
1767
# Keep a trace of the command line.
1768
# Strip out --no-create and --no-recursion so they do not pile up.
1769
# Strip out --silent because we don't want to record it for future runs.
1770
# Also quote any args containing shell meta-characters.
1771
# Make two passes to allow for proper duplicate-argument suppression.
1775
ac_must_keep_next=false
1781
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1782
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1783
| -silent | --silent | --silen | --sile | --sil)
1786
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1791
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1792
if test $ac_must_keep_next = true; then
1793
ac_must_keep_next=false # Got value, back to normal.
1796
*=* | --config-cache | -C | -disable-* | --disable-* \
1797
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1798
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1799
| -with-* | --with-* | -without-* | --without-* | --x)
1800
case "$ac_configure_args0 " in
1801
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804
-* ) ac_must_keep_next=true ;;
1807
ac_configure_args="$ac_configure_args '$ac_arg'"
1812
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1813
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1815
# When interrupted or exit'd, cleanup temporary files, and complete
1816
# config.log. We remove comments because anyway the quotes in there
1817
# would cause problems or look ugly.
1818
# WARNING: Use '\'' to represent an apostrophe within the trap.
1819
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1820
trap 'exit_status=$?
1821
# Save into config.log some information that might help in debugging.
1826
## ---------------- ##
1827
## Cache variables. ##
1828
## ---------------- ##
1831
# The following way of writing the cache mishandles newlines in values,
1833
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1834
eval ac_val=\$$ac_var
1838
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1839
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1842
_ | IFS | as_nl) ;; #(
1843
*) $as_unset $ac_var ;;
1848
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1849
*${as_nl}ac_space=\ *)
1851
"s/'\''/'\''\\\\'\'''\''/g;
1852
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1855
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1863
## ----------------- ##
1864
## Output variables. ##
1865
## ----------------- ##
1868
for ac_var in $ac_subst_vars
1870
eval ac_val=\$$ac_var
1872
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874
echo "$ac_var='\''$ac_val'\''"
1878
if test -n "$ac_subst_files"; then
1880
## ------------------- ##
1881
## File substitutions. ##
1882
## ------------------- ##
1885
for ac_var in $ac_subst_files
1887
eval ac_val=\$$ac_var
1889
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891
echo "$ac_var='\''$ac_val'\''"
1896
if test -s confdefs.h; then
1906
test "$ac_signal" != 0 &&
1907
echo "$as_me: caught signal $ac_signal"
1908
echo "$as_me: exit $exit_status"
1910
rm -f core *.core core.conftest.* &&
1911
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1914
for ac_signal in 1 2 13 15; do
1915
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1920
rm -f -r conftest* confdefs.h
1922
# Predefined preprocessor variables.
1924
cat >>confdefs.h <<_ACEOF
1925
#define PACKAGE_NAME "$PACKAGE_NAME"
1929
cat >>confdefs.h <<_ACEOF
1930
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934
cat >>confdefs.h <<_ACEOF
1935
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1939
cat >>confdefs.h <<_ACEOF
1940
#define PACKAGE_STRING "$PACKAGE_STRING"
1944
cat >>confdefs.h <<_ACEOF
1945
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949
# Let the site file select an alternate cache file if it wants to.
1950
# Prefer explicitly selected file to automatically selected ones.
1951
if test -n "$CONFIG_SITE"; then
1952
set x "$CONFIG_SITE"
1953
elif test "x$prefix" != xNONE; then
1954
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1956
set x "$ac_default_prefix/share/config.site" \
1957
"$ac_default_prefix/etc/config.site"
1962
if test -r "$ac_site_file"; then
1963
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1964
echo "$as_me: loading site script $ac_site_file" >&6;}
1965
sed 's/^/| /' "$ac_site_file" >&5
1970
if test -r "$cache_file"; then
1971
# Some versions of bash will fail to source /dev/null (special
1972
# files actually), so we avoid doing that.
1973
if test -f "$cache_file"; then
1974
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1975
echo "$as_me: loading cache $cache_file" >&6;}
1977
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1978
*) . "./$cache_file";;
1982
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1983
echo "$as_me: creating cache $cache_file" >&6;}
1987
# Check that the precious variables saved in the cache have kept the same
1989
ac_cache_corrupted=false
1990
for ac_var in $ac_precious_vars; do
1991
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1992
eval ac_new_set=\$ac_env_${ac_var}_set
1993
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1994
eval ac_new_val=\$ac_env_${ac_var}_value
1995
case $ac_old_set,$ac_new_set in
1997
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1998
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1999
ac_cache_corrupted=: ;;
2001
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2002
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2003
ac_cache_corrupted=: ;;
2006
if test "x$ac_old_val" != "x$ac_new_val"; then
2007
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2010
echo "$as_me: former value: $ac_old_val" >&2;}
2011
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2012
echo "$as_me: current value: $ac_new_val" >&2;}
2013
ac_cache_corrupted=:
2016
# Pass precious variables to config.status.
2017
if test "$ac_new_set" = set; then
2019
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2020
*) ac_arg=$ac_var=$ac_new_val ;;
2022
case " $ac_configure_args " in
2023
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2024
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2028
if $ac_cache_corrupted; then
2029
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2030
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2032
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2033
{ (exit 1); exit 1; }; }
2061
ac_cpp='$CPP $CPPFLAGS'
2062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2068
am__api_version='1.10'
2071
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2072
if test -f "$ac_dir/install-sh"; then
2074
ac_install_sh="$ac_aux_dir/install-sh -c"
2076
elif test -f "$ac_dir/install.sh"; then
2078
ac_install_sh="$ac_aux_dir/install.sh -c"
2080
elif test -f "$ac_dir/shtool"; then
2082
ac_install_sh="$ac_aux_dir/shtool install -c"
2086
if test -z "$ac_aux_dir"; then
2087
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2088
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2089
{ (exit 1); exit 1; }; }
2092
# These three variables are undocumented and unsupported,
2093
# and are intended to be withdrawn in a future Autoconf release.
2094
# They can cause serious problems if a builder's source tree is in a directory
2095
# whose full name contains unusual characters.
2096
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2097
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2098
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2101
# Find a good install program. We prefer a C program (faster),
2102
# so one script is as good as another. But avoid the broken or
2103
# incompatible versions:
2104
# SysV /etc/install, /usr/sbin/install
2105
# SunOS /usr/etc/install
2106
# IRIX /sbin/install
2108
# AmigaOS /C/install, which installs bootblocks on floppy discs
2109
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2110
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2111
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2112
# OS/2's system install, which has a completely different semantic
2113
# ./install, which can be erroneously created by make from ./install.sh.
2114
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2115
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2116
if test -z "$INSTALL"; then
2117
if test "${ac_cv_path_install+set}" = set; then
2118
echo $ECHO_N "(cached) $ECHO_C" >&6
2120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124
test -z "$as_dir" && as_dir=.
2125
# Account for people who put trailing slashes in PATH elements.
2127
./ | .// | /cC/* | \
2128
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2129
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2132
# OSF1 and SCO ODT 3.0 have their own names for install.
2133
# Don't use installbsd from OSF since it installs stuff as root
2135
for ac_prog in ginstall scoinst install; do
2136
for ac_exec_ext in '' $ac_executable_extensions; do
2137
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2138
if test $ac_prog = install &&
2139
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2140
# AIX install. It has an incompatible calling convention.
2142
elif test $ac_prog = install &&
2143
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2144
# program-specific install script used by HP pwplus--don't use.
2147
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2160
if test "${ac_cv_path_install+set}" = set; then
2161
INSTALL=$ac_cv_path_install
2163
# As a last resort, use the slow shell script. Don't cache a
2164
# value for INSTALL within a source directory, because that will
2165
# break other packages using the cache if that directory is
2166
# removed, or if the value is a relative name.
2167
INSTALL=$ac_install_sh
2170
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2171
echo "${ECHO_T}$INSTALL" >&6; }
2173
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2174
# It thinks the first close brace ends the variable substitution.
2175
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2177
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2179
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2181
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2182
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2185
echo timestamp > conftest.file
2186
# Do `set' in a subshell so we don't clobber the current shell's
2187
# arguments. Must try -L first in case configure is actually a
2188
# symlink; some systems play weird games with the mod time of symlinks
2189
# (eg FreeBSD returns the mod time of the symlink's containing
2192
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2193
if test "$*" = "X"; then
2195
set X `ls -t $srcdir/configure conftest.file`
2198
if test "$*" != "X $srcdir/configure conftest.file" \
2199
&& test "$*" != "X conftest.file $srcdir/configure"; then
2201
# If neither matched, then we have a broken ls. This can happen
2202
# if, for instance, CONFIG_SHELL is bash and it inherits a
2203
# broken ls alias from the environment. This has actually
2204
# happened. Such a system could not be considered "sane".
2205
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2206
alias in your environment" >&5
2207
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2208
alias in your environment" >&2;}
2209
{ (exit 1); exit 1; }; }
2212
test "$2" = conftest.file
2218
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2219
Check your system clock" >&5
2220
echo "$as_me: error: newly created file is older than distributed files!
2221
Check your system clock" >&2;}
2222
{ (exit 1); exit 1; }; }
2224
{ echo "$as_me:$LINENO: result: yes" >&5
2225
echo "${ECHO_T}yes" >&6; }
2226
test "$program_prefix" != NONE &&
2227
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2228
# Use a double $ so make ignores it.
2229
test "$program_suffix" != NONE &&
2230
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2231
# Double any \ or $. echo might interpret backslashes.
2232
# By default was `s,x,x', remove it if useless.
2233
cat <<\_ACEOF >conftest.sed
2234
s/[\\$]/&&/g;s/;s,x,x,$//
2236
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2239
# expand $ac_aux_dir to an absolute path
2240
am_aux_dir=`cd $ac_aux_dir && pwd`
2242
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2243
# Use eval to expand $SHELL
2244
if eval "$MISSING --run true"; then
2245
am_missing_run="$MISSING --run "
2248
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2249
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2252
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2253
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2254
if test -z "$MKDIR_P"; then
2255
if test "${ac_cv_path_mkdir+set}" = set; then
2256
echo $ECHO_N "(cached) $ECHO_C" >&6
2258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2262
test -z "$as_dir" && as_dir=.
2263
for ac_prog in mkdir gmkdir; do
2264
for ac_exec_ext in '' $ac_executable_extensions; do
2265
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2266
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2267
'mkdir (GNU coreutils) '* | \
2268
'mkdir (coreutils) '* | \
2269
'mkdir (fileutils) '4.1*)
2270
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2280
if test "${ac_cv_path_mkdir+set}" = set; then
2281
MKDIR_P="$ac_cv_path_mkdir -p"
2283
# As a last resort, use the slow shell script. Don't cache a
2284
# value for MKDIR_P within a source directory, because that will
2285
# break other packages using the cache if that directory is
2286
# removed, or if the value is a relative name.
2287
test -d ./--version && rmdir ./--version
2288
MKDIR_P="$ac_install_sh -d"
2291
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2292
echo "${ECHO_T}$MKDIR_P" >&6; }
2296
[\\/$]* | ?:[\\/]*) ;;
2297
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2300
for ac_prog in gawk mawk nawk awk
2302
# Extract the first word of "$ac_prog", so it can be a program name with args.
2303
set dummy $ac_prog; ac_word=$2
2304
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306
if test "${ac_cv_prog_AWK+set}" = set; then
2307
echo $ECHO_N "(cached) $ECHO_C" >&6
2309
if test -n "$AWK"; then
2310
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316
test -z "$as_dir" && as_dir=.
2317
for ac_exec_ext in '' $ac_executable_extensions; do
2318
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319
ac_cv_prog_AWK="$ac_prog"
2320
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330
if test -n "$AWK"; then
2331
{ echo "$as_me:$LINENO: result: $AWK" >&5
2332
echo "${ECHO_T}$AWK" >&6; }
2334
{ echo "$as_me:$LINENO: result: no" >&5
2335
echo "${ECHO_T}no" >&6; }
2339
test -n "$AWK" && break
2342
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2343
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2344
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2345
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2346
echo $ECHO_N "(cached) $ECHO_C" >&6
2348
cat >conftest.make <<\_ACEOF
2351
@echo '@@@%%%=$(MAKE)=@@@%%%'
2353
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2354
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2356
eval ac_cv_prog_make_${ac_make}_set=yes;;
2358
eval ac_cv_prog_make_${ac_make}_set=no;;
2362
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2363
{ echo "$as_me:$LINENO: result: yes" >&5
2364
echo "${ECHO_T}yes" >&6; }
2367
{ echo "$as_me:$LINENO: result: no" >&5
2368
echo "${ECHO_T}no" >&6; }
2369
SET_MAKE="MAKE=${MAKE-make}"
2372
rm -rf .tst 2>/dev/null
2373
mkdir .tst 2>/dev/null
2374
if test -d .tst; then
2379
rmdir .tst 2>/dev/null
2381
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2382
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2383
# is not polluted with repeated "-I."
2384
am__isrc=' -I$(srcdir)'
2385
# test to see if srcdir already configured
2386
if test -f $srcdir/config.status; then
2387
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2388
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2389
{ (exit 1); exit 1; }; }
2393
# test whether we have cygpath
2394
if test -z "$CYGPATH_W"; then
2395
if (cygpath --version) >/dev/null 2>/dev/null; then
2396
CYGPATH_W='cygpath -w'
2403
# Define the identity of the package.
2408
cat >>confdefs.h <<_ACEOF
2409
#define PACKAGE "$PACKAGE"
2413
cat >>confdefs.h <<_ACEOF
2414
#define VERSION "$VERSION"
2417
# Some tools Automake needs.
2419
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2422
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2425
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2428
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2431
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2433
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2435
# Installed binaries are usually stripped using `strip' when the user
2436
# run `make install-strip'. However `strip' might not be the right
2437
# tool to use in cross-compilation environments, therefore Automake
2438
# will honor the `STRIP' environment variable to overrule this program.
2439
if test "$cross_compiling" != no; then
2440
if test -n "$ac_tool_prefix"; then
2441
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2442
set dummy ${ac_tool_prefix}strip; ac_word=$2
2443
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2444
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445
if test "${ac_cv_prog_STRIP+set}" = set; then
2446
echo $ECHO_N "(cached) $ECHO_C" >&6
2448
if test -n "$STRIP"; then
2449
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455
test -z "$as_dir" && as_dir=.
2456
for ac_exec_ext in '' $ac_executable_extensions; do
2457
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2459
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468
STRIP=$ac_cv_prog_STRIP
2469
if test -n "$STRIP"; then
2470
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2471
echo "${ECHO_T}$STRIP" >&6; }
2473
{ echo "$as_me:$LINENO: result: no" >&5
2474
echo "${ECHO_T}no" >&6; }
2479
if test -z "$ac_cv_prog_STRIP"; then
2481
# Extract the first word of "strip", so it can be a program name with args.
2482
set dummy strip; ac_word=$2
2483
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2484
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2486
echo $ECHO_N "(cached) $ECHO_C" >&6
2488
if test -n "$ac_ct_STRIP"; then
2489
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495
test -z "$as_dir" && as_dir=.
2496
for ac_exec_ext in '' $ac_executable_extensions; do
2497
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498
ac_cv_prog_ac_ct_STRIP="strip"
2499
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2509
if test -n "$ac_ct_STRIP"; then
2510
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2511
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2513
{ echo "$as_me:$LINENO: result: no" >&5
2514
echo "${ECHO_T}no" >&6; }
2517
if test "x$ac_ct_STRIP" = x; then
2520
case $cross_compiling:$ac_tool_warned in
2522
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2523
whose name does not start with the host triplet. If you think this
2524
configuration is useful to you, please write to autoconf@gnu.org." >&5
2525
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2526
whose name does not start with the host triplet. If you think this
2527
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2528
ac_tool_warned=yes ;;
2533
STRIP="$ac_cv_prog_STRIP"
2537
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2539
# We need awk for the "check" target. The system "awk" is bad on
2541
# Always define AMTAR for backward compatibility.
2543
AMTAR=${AMTAR-"${am_missing_run}tar"}
2545
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2556
if test -n "$PYTHON"; then
2557
# If the user set $PYTHON, use it and don't search something else.
2558
{ echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
2559
echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
2560
prog="import sys, string
2561
# split strings by '.' and convert to numeric. Append some zeros
2562
# because we need at least 4 digits for the hex conversion.
2563
minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
2565
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
2566
sys.exit(sys.hexversion < minverhex)"
2567
if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
2568
($PYTHON -c "$prog") >&5 2>&5
2570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571
(exit $ac_status); }; then
2572
{ echo "$as_me:$LINENO: result: yes" >&5
2573
echo "${ECHO_T}yes" >&6; }
2575
{ { echo "$as_me:$LINENO: error: too old" >&5
2576
echo "$as_me: error: too old" >&2;}
2577
{ (exit 1); exit 1; }; }
2580
am_display_PYTHON=$PYTHON
2582
# Otherwise, try each interpreter until we find one that satisfies
2584
{ echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
2585
echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
2586
if test "${am_cv_pathless_PYTHON+set}" = set; then
2587
echo $ECHO_N "(cached) $ECHO_C" >&6
2590
for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
2591
test "$am_cv_pathless_PYTHON" = none && break
2592
prog="import sys, string
2593
# split strings by '.' and convert to numeric. Append some zeros
2594
# because we need at least 4 digits for the hex conversion.
2595
minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
2597
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
2598
sys.exit(sys.hexversion < minverhex)"
2599
if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
2600
($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
2602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603
(exit $ac_status); }; then
2609
{ echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
2610
echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
2611
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
2612
if test "$am_cv_pathless_PYTHON" = none; then
2615
# Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
2616
set dummy $am_cv_pathless_PYTHON; ac_word=$2
2617
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2618
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619
if test "${ac_cv_path_PYTHON+set}" = set; then
2620
echo $ECHO_N "(cached) $ECHO_C" >&6
2624
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631
test -z "$as_dir" && as_dir=.
2632
for ac_exec_ext in '' $ac_executable_extensions; do
2633
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2635
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645
PYTHON=$ac_cv_path_PYTHON
2646
if test -n "$PYTHON"; then
2647
{ echo "$as_me:$LINENO: result: $PYTHON" >&5
2648
echo "${ECHO_T}$PYTHON" >&6; }
2650
{ echo "$as_me:$LINENO: result: no" >&5
2651
echo "${ECHO_T}no" >&6; }
2656
am_display_PYTHON=$am_cv_pathless_PYTHON
2660
if test "$PYTHON" = :; then
2661
{ { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
2662
echo "$as_me: error: no suitable Python interpreter found" >&2;}
2663
{ (exit 1); exit 1; }; }
2667
{ echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
2668
echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
2669
if test "${am_cv_python_version+set}" = set; then
2670
echo $ECHO_N "(cached) $ECHO_C" >&6
2672
am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
2674
{ echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
2675
echo "${ECHO_T}$am_cv_python_version" >&6; }
2676
PYTHON_VERSION=$am_cv_python_version
2680
PYTHON_PREFIX='${prefix}'
2682
PYTHON_EXEC_PREFIX='${exec_prefix}'
2686
{ echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
2687
echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
2688
if test "${am_cv_python_platform+set}" = set; then
2689
echo $ECHO_N "(cached) $ECHO_C" >&6
2691
am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
2693
{ echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
2694
echo "${ECHO_T}$am_cv_python_platform" >&6; }
2695
PYTHON_PLATFORM=$am_cv_python_platform
2700
{ echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
2701
echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
2702
if test "${am_cv_python_pythondir+set}" = set; then
2703
echo $ECHO_N "(cached) $ECHO_C" >&6
2705
am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
2706
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
2708
{ echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
2709
echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
2710
pythondir=$am_cv_python_pythondir
2714
pkgpythondir=\${pythondir}/$PACKAGE
2717
{ echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
2718
echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
2719
if test "${am_cv_python_pyexecdir+set}" = set; then
2720
echo $ECHO_N "(cached) $ECHO_C" >&6
2722
am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
2723
echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
2725
{ echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
2726
echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
2727
pyexecdir=$am_cv_python_pyexecdir
2731
pkgpyexecdir=\${pyexecdir}/$PACKAGE
2741
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2742
if test -n "$ac_tool_prefix"; then
2743
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2744
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2745
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2746
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2747
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2748
echo $ECHO_N "(cached) $ECHO_C" >&6
2752
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759
test -z "$as_dir" && as_dir=.
2760
for ac_exec_ext in '' $ac_executable_extensions; do
2761
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2763
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2774
if test -n "$PKG_CONFIG"; then
2775
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2776
echo "${ECHO_T}$PKG_CONFIG" >&6; }
2778
{ echo "$as_me:$LINENO: result: no" >&5
2779
echo "${ECHO_T}no" >&6; }
2784
if test -z "$ac_cv_path_PKG_CONFIG"; then
2785
ac_pt_PKG_CONFIG=$PKG_CONFIG
2786
# Extract the first word of "pkg-config", so it can be a program name with args.
2787
set dummy pkg-config; ac_word=$2
2788
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2791
echo $ECHO_N "(cached) $ECHO_C" >&6
2793
case $ac_pt_PKG_CONFIG in
2795
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802
test -z "$as_dir" && as_dir=.
2803
for ac_exec_ext in '' $ac_executable_extensions; do
2804
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2806
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2817
if test -n "$ac_pt_PKG_CONFIG"; then
2818
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2819
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
2821
{ echo "$as_me:$LINENO: result: no" >&5
2822
echo "${ECHO_T}no" >&6; }
2825
if test "x$ac_pt_PKG_CONFIG" = x; then
2828
case $cross_compiling:$ac_tool_warned in
2830
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2831
whose name does not start with the host triplet. If you think this
2832
configuration is useful to you, please write to autoconf@gnu.org." >&5
2833
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2834
whose name does not start with the host triplet. If you think this
2835
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2836
ac_tool_warned=yes ;;
2838
PKG_CONFIG=$ac_pt_PKG_CONFIG
2841
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2845
if test -n "$PKG_CONFIG"; then
2846
_pkg_min_version=0.9.0
2847
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
2848
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
2849
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2850
{ echo "$as_me:$LINENO: result: yes" >&5
2851
echo "${ECHO_T}yes" >&6; }
2853
{ echo "$as_me:$LINENO: result: no" >&5
2854
echo "${ECHO_T}no" >&6; }
2861
{ echo "$as_me:$LINENO: checking for CHECK" >&5
2862
echo $ECHO_N "checking for CHECK... $ECHO_C" >&6; }
2864
if test -n "$PKG_CONFIG"; then
2865
if test -n "$CHECK_CFLAGS"; then
2866
pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
2868
if test -n "$PKG_CONFIG" && \
2869
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\"") >&5
2870
($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
2872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873
(exit $ac_status); }; then
2874
pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
2882
if test -n "$PKG_CONFIG"; then
2883
if test -n "$CHECK_LIBS"; then
2884
pkg_cv_CHECK_LIBS="$CHECK_LIBS"
2886
if test -n "$PKG_CONFIG" && \
2887
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\"") >&5
2888
($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
2890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891
(exit $ac_status); }; then
2892
pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
2903
if test $pkg_failed = yes; then
2905
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2906
_pkg_short_errors_supported=yes
2908
_pkg_short_errors_supported=no
2910
if test $_pkg_short_errors_supported = yes; then
2911
CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "check >= 0.9.4"`
2913
CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check >= 0.9.4"`
2915
# Put the nasty error message in config.log where it belongs
2916
echo "$CHECK_PKG_ERRORS" >&5
2918
{ echo "$as_me:$LINENO: result: no" >&5
2919
echo "${ECHO_T}no" >&6; }
2921
elif test $pkg_failed = untried; then
2924
CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
2925
CHECK_LIBS=$pkg_cv_CHECK_LIBS
2926
{ echo "$as_me:$LINENO: result: yes" >&5
2927
echo "${ECHO_T}yes" >&6; }
2930
if test x$HAVE_CHECK = xyes; then
2932
HAVE_CHECK_FALSE='#'
2939
ac_config_headers="$ac_config_headers src/config.h"
2942
# Check whether --enable-shared was given.
2943
if test "${enable_shared+set}" = set; then
2944
enableval=$enable_shared; p=${PACKAGE-default}
2946
yes) enable_shared=yes ;;
2947
no) enable_shared=no ;;
2950
# Look at the argument we got. We use all the common list separators.
2951
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2952
for pkg in $enableval; do
2954
if test "X$pkg" = "X$p"; then
2966
# Check whether --enable-static was given.
2967
if test "${enable_static+set}" = set; then
2968
enableval=$enable_static; p=${PACKAGE-default}
2970
yes) enable_static=yes ;;
2971
no) enable_static=no ;;
2974
# Look at the argument we got. We use all the common list separators.
2975
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2976
for pkg in $enableval; do
2978
if test "X$pkg" = "X$p"; then
2990
# Check whether --enable-fast-install was given.
2991
if test "${enable_fast_install+set}" = set; then
2992
enableval=$enable_fast_install; p=${PACKAGE-default}
2994
yes) enable_fast_install=yes ;;
2995
no) enable_fast_install=no ;;
2997
enable_fast_install=no
2998
# Look at the argument we got. We use all the common list separators.
2999
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3000
for pkg in $enableval; do
3002
if test "X$pkg" = "X$p"; then
3003
enable_fast_install=yes
3010
enable_fast_install=yes
3014
# Make sure we can run config.sub.
3015
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3016
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3017
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3018
{ (exit 1); exit 1; }; }
3020
{ echo "$as_me:$LINENO: checking build system type" >&5
3021
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3022
if test "${ac_cv_build+set}" = set; then
3023
echo $ECHO_N "(cached) $ECHO_C" >&6
3025
ac_build_alias=$build_alias
3026
test "x$ac_build_alias" = x &&
3027
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3028
test "x$ac_build_alias" = x &&
3029
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3030
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3031
{ (exit 1); exit 1; }; }
3032
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3033
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3034
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3035
{ (exit 1); exit 1; }; }
3038
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3039
echo "${ECHO_T}$ac_cv_build" >&6; }
3040
case $ac_cv_build in
3042
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3043
echo "$as_me: error: invalid value of canonical build" >&2;}
3044
{ (exit 1); exit 1; }; };;
3047
ac_save_IFS=$IFS; IFS='-'
3053
# Remember, the first character of IFS is used to create $*,
3054
# except with old shells:
3057
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3060
{ echo "$as_me:$LINENO: checking host system type" >&5
3061
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3062
if test "${ac_cv_host+set}" = set; then
3063
echo $ECHO_N "(cached) $ECHO_C" >&6
3065
if test "x$host_alias" = x; then
3066
ac_cv_host=$ac_cv_build
3068
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3069
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3070
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3071
{ (exit 1); exit 1; }; }
3075
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3076
echo "${ECHO_T}$ac_cv_host" >&6; }
3079
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3080
echo "$as_me: error: invalid value of canonical host" >&2;}
3081
{ (exit 1); exit 1; }; };;
3084
ac_save_IFS=$IFS; IFS='-'
3090
# Remember, the first character of IFS is used to create $*,
3091
# except with old shells:
3094
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3097
DEPDIR="${am__leading_dot}deps"
3099
ac_config_commands="$ac_config_commands depfiles"
3102
am_make=${MAKE-make}
3103
cat > confinc << 'END'
3108
# If we don't find an include directive, just comment out the code.
3109
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3110
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3114
# First try GNU make style include.
3115
echo "include confinc" > confmf
3116
# We grep out `Entering directory' and `Leaving directory'
3117
# messages which can occur if `w' ends up in MAKEFLAGS.
3118
# In particular we don't look at `^make:' because GNU make might
3119
# be invoked under some other name (usually "gmake"), in which
3120
# case it prints its new name instead of `make'.
3121
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3126
# Now try BSD make style include.
3127
if test "$am__include" = "#"; then
3128
echo '.include "confinc"' > confmf
3129
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3130
am__include=.include
3137
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3138
echo "${ECHO_T}$_am_result" >&6; }
3139
rm -f confinc confmf
3141
# Check whether --enable-dependency-tracking was given.
3142
if test "${enable_dependency_tracking+set}" = set; then
3143
enableval=$enable_dependency_tracking;
3146
if test "x$enable_dependency_tracking" != xno; then
3147
am_depcomp="$ac_aux_dir/depcomp"
3150
if test "x$enable_dependency_tracking" != xno; then
3160
ac_cpp='$CPP $CPPFLAGS'
3161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
if test -n "$ac_tool_prefix"; then
3165
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3166
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3167
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3169
if test "${ac_cv_prog_CC+set}" = set; then
3170
echo $ECHO_N "(cached) $ECHO_C" >&6
3172
if test -n "$CC"; then
3173
ac_cv_prog_CC="$CC" # Let the user override the test.
3175
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179
test -z "$as_dir" && as_dir=.
3180
for ac_exec_ext in '' $ac_executable_extensions; do
3181
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3183
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193
if test -n "$CC"; then
3194
{ echo "$as_me:$LINENO: result: $CC" >&5
3195
echo "${ECHO_T}$CC" >&6; }
3197
{ echo "$as_me:$LINENO: result: no" >&5
3198
echo "${ECHO_T}no" >&6; }
3203
if test -z "$ac_cv_prog_CC"; then
3205
# Extract the first word of "gcc", so it can be a program name with args.
3206
set dummy gcc; ac_word=$2
3207
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3208
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3209
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3210
echo $ECHO_N "(cached) $ECHO_C" >&6
3212
if test -n "$ac_ct_CC"; then
3213
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219
test -z "$as_dir" && as_dir=.
3220
for ac_exec_ext in '' $ac_executable_extensions; do
3221
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222
ac_cv_prog_ac_ct_CC="gcc"
3223
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3233
if test -n "$ac_ct_CC"; then
3234
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3235
echo "${ECHO_T}$ac_ct_CC" >&6; }
3237
{ echo "$as_me:$LINENO: result: no" >&5
3238
echo "${ECHO_T}no" >&6; }
3241
if test "x$ac_ct_CC" = x; then
3244
case $cross_compiling:$ac_tool_warned in
3246
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3247
whose name does not start with the host triplet. If you think this
3248
configuration is useful to you, please write to autoconf@gnu.org." >&5
3249
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3250
whose name does not start with the host triplet. If you think this
3251
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3252
ac_tool_warned=yes ;;
3260
if test -z "$CC"; then
3261
if test -n "$ac_tool_prefix"; then
3262
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3263
set dummy ${ac_tool_prefix}cc; ac_word=$2
3264
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3265
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3266
if test "${ac_cv_prog_CC+set}" = set; then
3267
echo $ECHO_N "(cached) $ECHO_C" >&6
3269
if test -n "$CC"; then
3270
ac_cv_prog_CC="$CC" # Let the user override the test.
3272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276
test -z "$as_dir" && as_dir=.
3277
for ac_exec_ext in '' $ac_executable_extensions; do
3278
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279
ac_cv_prog_CC="${ac_tool_prefix}cc"
3280
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290
if test -n "$CC"; then
3291
{ echo "$as_me:$LINENO: result: $CC" >&5
3292
echo "${ECHO_T}$CC" >&6; }
3294
{ echo "$as_me:$LINENO: result: no" >&5
3295
echo "${ECHO_T}no" >&6; }
3301
if test -z "$CC"; then
3302
# Extract the first word of "cc", so it can be a program name with args.
3303
set dummy cc; ac_word=$2
3304
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3306
if test "${ac_cv_prog_CC+set}" = set; then
3307
echo $ECHO_N "(cached) $ECHO_C" >&6
3309
if test -n "$CC"; then
3310
ac_cv_prog_CC="$CC" # Let the user override the test.
3313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317
test -z "$as_dir" && as_dir=.
3318
for ac_exec_ext in '' $ac_executable_extensions; do
3319
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3321
ac_prog_rejected=yes
3325
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332
if test $ac_prog_rejected = yes; then
3333
# We found a bogon in the path, so make sure we never use it.
3334
set dummy $ac_cv_prog_CC
3336
if test $# != 0; then
3337
# We chose a different compiler from the bogus one.
3338
# However, it has the same basename, so the bogon will be chosen
3339
# first if we set CC to just the basename; use the full file name.
3341
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3347
if test -n "$CC"; then
3348
{ echo "$as_me:$LINENO: result: $CC" >&5
3349
echo "${ECHO_T}$CC" >&6; }
3351
{ echo "$as_me:$LINENO: result: no" >&5
3352
echo "${ECHO_T}no" >&6; }
3357
if test -z "$CC"; then
3358
if test -n "$ac_tool_prefix"; then
3359
for ac_prog in cl.exe
3361
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3364
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3365
if test "${ac_cv_prog_CC+set}" = set; then
3366
echo $ECHO_N "(cached) $ECHO_C" >&6
3368
if test -n "$CC"; then
3369
ac_cv_prog_CC="$CC" # Let the user override the test.
3371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375
test -z "$as_dir" && as_dir=.
3376
for ac_exec_ext in '' $ac_executable_extensions; do
3377
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3379
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389
if test -n "$CC"; then
3390
{ echo "$as_me:$LINENO: result: $CC" >&5
3391
echo "${ECHO_T}$CC" >&6; }
3393
{ echo "$as_me:$LINENO: result: no" >&5
3394
echo "${ECHO_T}no" >&6; }
3398
test -n "$CC" && break
3401
if test -z "$CC"; then
3403
for ac_prog in cl.exe
3405
# Extract the first word of "$ac_prog", so it can be a program name with args.
3406
set dummy $ac_prog; ac_word=$2
3407
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3409
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3410
echo $ECHO_N "(cached) $ECHO_C" >&6
3412
if test -n "$ac_ct_CC"; then
3413
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419
test -z "$as_dir" && as_dir=.
3420
for ac_exec_ext in '' $ac_executable_extensions; do
3421
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422
ac_cv_prog_ac_ct_CC="$ac_prog"
3423
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3433
if test -n "$ac_ct_CC"; then
3434
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3435
echo "${ECHO_T}$ac_ct_CC" >&6; }
3437
{ echo "$as_me:$LINENO: result: no" >&5
3438
echo "${ECHO_T}no" >&6; }
3442
test -n "$ac_ct_CC" && break
3445
if test "x$ac_ct_CC" = x; then
3448
case $cross_compiling:$ac_tool_warned in
3450
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3451
whose name does not start with the host triplet. If you think this
3452
configuration is useful to you, please write to autoconf@gnu.org." >&5
3453
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3454
whose name does not start with the host triplet. If you think this
3455
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3456
ac_tool_warned=yes ;;
3465
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3466
See \`config.log' for more details." >&5
3467
echo "$as_me: error: no acceptable C compiler found in \$PATH
3468
See \`config.log' for more details." >&2;}
3469
{ (exit 1); exit 1; }; }
3471
# Provide some information about the compiler.
3472
echo "$as_me:$LINENO: checking for C compiler version" >&5
3473
ac_compiler=`set X $ac_compile; echo $2`
3474
{ (ac_try="$ac_compiler --version >&5"
3476
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477
*) ac_try_echo=$ac_try;;
3479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480
(eval "$ac_compiler --version >&5") 2>&5
3482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483
(exit $ac_status); }
3484
{ (ac_try="$ac_compiler -v >&5"
3486
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487
*) ac_try_echo=$ac_try;;
3489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490
(eval "$ac_compiler -v >&5") 2>&5
3492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493
(exit $ac_status); }
3494
{ (ac_try="$ac_compiler -V >&5"
3496
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497
*) ac_try_echo=$ac_try;;
3499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500
(eval "$ac_compiler -V >&5") 2>&5
3502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503
(exit $ac_status); }
3505
cat >conftest.$ac_ext <<_ACEOF
3508
cat confdefs.h >>conftest.$ac_ext
3509
cat >>conftest.$ac_ext <<_ACEOF
3510
/* end confdefs.h. */
3520
ac_clean_files_save=$ac_clean_files
3521
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3522
# Try to create an executable without -o first, disregard a.out.
3523
# It will help us diagnose broken compilers, and finding out an intuition
3525
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3526
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3527
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3529
# List of possible output files, starting from the most likely.
3530
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3531
# only as a last resort. b.out is created by i960 compilers.
3532
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3534
# The IRIX 6 linker writes into existing files which may not be
3535
# executable, retaining their permissions. Remove them first so a
3536
# subsequent execution test works.
3538
for ac_file in $ac_files
3541
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3542
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3547
if { (ac_try="$ac_link_default"
3549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550
*) ac_try_echo=$ac_try;;
3552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553
(eval "$ac_link_default") 2>&5
3555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556
(exit $ac_status); }; then
3557
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3558
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3559
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3560
# so that the user can short-circuit this test for compilers unknown to
3562
for ac_file in $ac_files ''
3564
test -f "$ac_file" || continue
3566
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3569
# We found the default executable, but exeext='' is most
3573
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3575
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3577
# We set ac_cv_exeext here because the later test for it is not
3578
# safe: cross compilers may not add the suffix if given an `-o'
3579
# argument, so we may need to know it at that point already.
3580
# Even if this section looks crufty: it has the advantage of
3587
test "$ac_cv_exeext" = no && ac_cv_exeext=
3593
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3594
echo "${ECHO_T}$ac_file" >&6; }
3595
if test -z "$ac_file"; then
3596
echo "$as_me: failed program was:" >&5
3597
sed 's/^/| /' conftest.$ac_ext >&5
3599
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3600
See \`config.log' for more details." >&5
3601
echo "$as_me: error: C compiler cannot create executables
3602
See \`config.log' for more details." >&2;}
3603
{ (exit 77); exit 77; }; }
3606
ac_exeext=$ac_cv_exeext
3608
# Check that the compiler produces executables we can run. If not, either
3609
# the compiler is broken, or we cross compile.
3610
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3611
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3612
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3613
# If not cross compiling, check that we can run a simple program.
3614
if test "$cross_compiling" != yes; then
3615
if { ac_try='./$ac_file'
3616
{ (case "(($ac_try" in
3617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618
*) ac_try_echo=$ac_try;;
3620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621
(eval "$ac_try") 2>&5
3623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624
(exit $ac_status); }; }; then
3627
if test "$cross_compiling" = maybe; then
3630
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3631
If you meant to cross compile, use \`--host'.
3632
See \`config.log' for more details." >&5
3633
echo "$as_me: error: cannot run C compiled programs.
3634
If you meant to cross compile, use \`--host'.
3635
See \`config.log' for more details." >&2;}
3636
{ (exit 1); exit 1; }; }
3640
{ echo "$as_me:$LINENO: result: yes" >&5
3641
echo "${ECHO_T}yes" >&6; }
3643
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3644
ac_clean_files=$ac_clean_files_save
3645
# Check that the compiler produces executables we can run. If not, either
3646
# the compiler is broken, or we cross compile.
3647
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3648
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3649
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3650
echo "${ECHO_T}$cross_compiling" >&6; }
3652
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3653
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3654
if { (ac_try="$ac_link"
3656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657
*) ac_try_echo=$ac_try;;
3659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660
(eval "$ac_link") 2>&5
3662
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663
(exit $ac_status); }; then
3664
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3665
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3666
# work properly (i.e., refer to `conftest.exe'), while it won't with
3668
for ac_file in conftest.exe conftest conftest.*; do
3669
test -f "$ac_file" || continue
3671
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3672
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3678
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3679
See \`config.log' for more details." >&5
3680
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3681
See \`config.log' for more details." >&2;}
3682
{ (exit 1); exit 1; }; }
3685
rm -f conftest$ac_cv_exeext
3686
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3687
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3689
rm -f conftest.$ac_ext
3690
EXEEXT=$ac_cv_exeext
3692
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3693
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3694
if test "${ac_cv_objext+set}" = set; then
3695
echo $ECHO_N "(cached) $ECHO_C" >&6
3697
cat >conftest.$ac_ext <<_ACEOF
3700
cat confdefs.h >>conftest.$ac_ext
3701
cat >>conftest.$ac_ext <<_ACEOF
3702
/* end confdefs.h. */
3712
rm -f conftest.o conftest.obj
3713
if { (ac_try="$ac_compile"
3715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716
*) ac_try_echo=$ac_try;;
3718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719
(eval "$ac_compile") 2>&5
3721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722
(exit $ac_status); }; then
3723
for ac_file in conftest.o conftest.obj conftest.*; do
3724
test -f "$ac_file" || continue;
3726
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3727
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3732
echo "$as_me: failed program was:" >&5
3733
sed 's/^/| /' conftest.$ac_ext >&5
3735
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3736
See \`config.log' for more details." >&5
3737
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3738
See \`config.log' for more details." >&2;}
3739
{ (exit 1); exit 1; }; }
3742
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3744
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3745
echo "${ECHO_T}$ac_cv_objext" >&6; }
3746
OBJEXT=$ac_cv_objext
3748
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3749
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3750
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3751
echo $ECHO_N "(cached) $ECHO_C" >&6
3753
cat >conftest.$ac_ext <<_ACEOF
3756
cat confdefs.h >>conftest.$ac_ext
3757
cat >>conftest.$ac_ext <<_ACEOF
3758
/* end confdefs.h. */
3771
rm -f conftest.$ac_objext
3772
if { (ac_try="$ac_compile"
3774
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775
*) ac_try_echo=$ac_try;;
3777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778
(eval "$ac_compile") 2>conftest.er1
3780
grep -v '^ *+' conftest.er1 >conftest.err
3782
cat conftest.err >&5
3783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784
(exit $ac_status); } && {
3785
test -z "$ac_c_werror_flag" ||
3786
test ! -s conftest.err
3787
} && test -s conftest.$ac_objext; then
3790
echo "$as_me: failed program was:" >&5
3791
sed 's/^/| /' conftest.$ac_ext >&5
3796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3800
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3801
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3802
GCC=`test $ac_compiler_gnu = yes && echo yes`
3803
ac_test_CFLAGS=${CFLAGS+set}
3804
ac_save_CFLAGS=$CFLAGS
3805
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3806
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3807
if test "${ac_cv_prog_cc_g+set}" = set; then
3808
echo $ECHO_N "(cached) $ECHO_C" >&6
3810
ac_save_c_werror_flag=$ac_c_werror_flag
3811
ac_c_werror_flag=yes
3814
cat >conftest.$ac_ext <<_ACEOF
3817
cat confdefs.h >>conftest.$ac_ext
3818
cat >>conftest.$ac_ext <<_ACEOF
3819
/* end confdefs.h. */
3829
rm -f conftest.$ac_objext
3830
if { (ac_try="$ac_compile"
3832
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833
*) ac_try_echo=$ac_try;;
3835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836
(eval "$ac_compile") 2>conftest.er1
3838
grep -v '^ *+' conftest.er1 >conftest.err
3840
cat conftest.err >&5
3841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842
(exit $ac_status); } && {
3843
test -z "$ac_c_werror_flag" ||
3844
test ! -s conftest.err
3845
} && test -s conftest.$ac_objext; then
3848
echo "$as_me: failed program was:" >&5
3849
sed 's/^/| /' conftest.$ac_ext >&5
3852
cat >conftest.$ac_ext <<_ACEOF
3855
cat confdefs.h >>conftest.$ac_ext
3856
cat >>conftest.$ac_ext <<_ACEOF
3857
/* end confdefs.h. */
3867
rm -f conftest.$ac_objext
3868
if { (ac_try="$ac_compile"
3870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871
*) ac_try_echo=$ac_try;;
3873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874
(eval "$ac_compile") 2>conftest.er1
3876
grep -v '^ *+' conftest.er1 >conftest.err
3878
cat conftest.err >&5
3879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880
(exit $ac_status); } && {
3881
test -z "$ac_c_werror_flag" ||
3882
test ! -s conftest.err
3883
} && test -s conftest.$ac_objext; then
3886
echo "$as_me: failed program was:" >&5
3887
sed 's/^/| /' conftest.$ac_ext >&5
3889
ac_c_werror_flag=$ac_save_c_werror_flag
3891
cat >conftest.$ac_ext <<_ACEOF
3894
cat confdefs.h >>conftest.$ac_ext
3895
cat >>conftest.$ac_ext <<_ACEOF
3896
/* end confdefs.h. */
3906
rm -f conftest.$ac_objext
3907
if { (ac_try="$ac_compile"
3909
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910
*) ac_try_echo=$ac_try;;
3912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913
(eval "$ac_compile") 2>conftest.er1
3915
grep -v '^ *+' conftest.er1 >conftest.err
3917
cat conftest.err >&5
3918
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919
(exit $ac_status); } && {
3920
test -z "$ac_c_werror_flag" ||
3921
test ! -s conftest.err
3922
} && test -s conftest.$ac_objext; then
3925
echo "$as_me: failed program was:" >&5
3926
sed 's/^/| /' conftest.$ac_ext >&5
3931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938
ac_c_werror_flag=$ac_save_c_werror_flag
3940
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3941
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3942
if test "$ac_test_CFLAGS" = set; then
3943
CFLAGS=$ac_save_CFLAGS
3944
elif test $ac_cv_prog_cc_g = yes; then
3945
if test "$GCC" = yes; then
3951
if test "$GCC" = yes; then
3957
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3958
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3959
if test "${ac_cv_prog_cc_c89+set}" = set; then
3960
echo $ECHO_N "(cached) $ECHO_C" >&6
3962
ac_cv_prog_cc_c89=no
3964
cat >conftest.$ac_ext <<_ACEOF
3967
cat confdefs.h >>conftest.$ac_ext
3968
cat >>conftest.$ac_ext <<_ACEOF
3969
/* end confdefs.h. */
3972
#include <sys/types.h>
3973
#include <sys/stat.h>
3974
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3975
struct buf { int x; };
3976
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3977
static char *e (p, i)
3983
static char *f (char * (*g) (char **, int), char **p, ...)
3988
s = g (p, va_arg (v,int));
3993
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3994
function prototypes and stuff, but not '\xHH' hex character constants.
3995
These don't provoke an error unfortunately, instead are silently treated
3996
as 'x'. The following induces an error, until -std is added to get
3997
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3998
array size at least. It's necessary to write '\x00'==0 to get something
3999
that's true only with -std. */
4000
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4002
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4003
inside strings and character constants. */
4005
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4007
int test (int i, double x);
4008
struct s1 {int (*f) (int a);};
4009
struct s2 {int (*f) (double a);};
4010
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4016
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4021
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4022
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4024
CC="$ac_save_CC $ac_arg"
4025
rm -f conftest.$ac_objext
4026
if { (ac_try="$ac_compile"
4028
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029
*) ac_try_echo=$ac_try;;
4031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032
(eval "$ac_compile") 2>conftest.er1
4034
grep -v '^ *+' conftest.er1 >conftest.err
4036
cat conftest.err >&5
4037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038
(exit $ac_status); } && {
4039
test -z "$ac_c_werror_flag" ||
4040
test ! -s conftest.err
4041
} && test -s conftest.$ac_objext; then
4042
ac_cv_prog_cc_c89=$ac_arg
4044
echo "$as_me: failed program was:" >&5
4045
sed 's/^/| /' conftest.$ac_ext >&5
4050
rm -f core conftest.err conftest.$ac_objext
4051
test "x$ac_cv_prog_cc_c89" != "xno" && break
4053
rm -f conftest.$ac_ext
4058
case "x$ac_cv_prog_cc_c89" in
4060
{ echo "$as_me:$LINENO: result: none needed" >&5
4061
echo "${ECHO_T}none needed" >&6; } ;;
4063
{ echo "$as_me:$LINENO: result: unsupported" >&5
4064
echo "${ECHO_T}unsupported" >&6; } ;;
4066
CC="$CC $ac_cv_prog_cc_c89"
4067
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4068
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4073
ac_cpp='$CPP $CPPFLAGS'
4074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078
depcc="$CC" am_compiler_list=
4080
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4081
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4082
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4083
echo $ECHO_N "(cached) $ECHO_C" >&6
4085
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086
# We make a subdir and do the tests there. Otherwise we can end up
4087
# making bogus files that we don't know about and never remove. For
4088
# instance it was reported that on HP-UX the gcc test will end up
4089
# making a dummy file named `D' -- because `-MD' means `put the output
4092
# Copy depcomp to subdir because otherwise we won't find it if we're
4093
# using a relative directory.
4094
cp "$am_depcomp" conftest.dir
4096
# We will build objects and dependencies in a subdirectory because
4097
# it helps to detect inapplicable dependency modes. For instance
4098
# both Tru64's cc and ICC support -MD to output dependencies as a
4099
# side effect of compilation, but ICC will put the dependencies in
4100
# the current directory while Tru64 will put them in the object
4104
am_cv_CC_dependencies_compiler_type=none
4105
if test "$am_compiler_list" = ""; then
4106
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108
for depmode in $am_compiler_list; do
4109
# Setup a source with many dependencies, because some compilers
4110
# like to wrap large dependency lists on column 80 (with \), and
4111
# we should not choose a depcomp mode which is confused by this.
4113
# We need to recreate these files for each test, as the compiler may
4114
# overwrite some of them when testing with obscure command lines.
4115
# This happens at least with the AIX C compiler.
4117
for i in 1 2 3 4 5 6; do
4118
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4119
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4120
# Solaris 8's {/usr,}/bin/sh.
4121
touch sub/conftst$i.h
4123
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4127
# after this tag, mechanisms are not by side-effect, so they'll
4128
# only be used when explicitly requested
4129
if test "x$enable_dependency_tracking" = xyes; then
4137
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4138
# mode. It turns out that the SunPro C++ compiler does not properly
4139
# handle `-M -o', and we need to detect this.
4140
if depmode=$depmode \
4141
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4142
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4143
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4144
>/dev/null 2>conftest.err &&
4145
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4146
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4147
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4148
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4149
# icc doesn't choke on unknown options, it will just issue warnings
4150
# or remarks (even with -Werror). So we grep stderr for any message
4151
# that says an option was ignored or not supported.
4152
# When given -MP, icc 7.0 and 7.1 complain thusly:
4153
# icc: Command line warning: ignoring option '-M'; no argument required
4154
# The diagnosis changed in icc 8.0:
4155
# icc: Command line remark: option '-MP' not supported
4156
if (grep 'ignoring option' conftest.err ||
4157
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4158
am_cv_CC_dependencies_compiler_type=$depmode
4167
am_cv_CC_dependencies_compiler_type=none
4171
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4172
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4173
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4176
test "x$enable_dependency_tracking" != xno \
4177
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4179
am__fastdepCC_FALSE='#'
4181
am__fastdepCC_TRUE='#'
4182
am__fastdepCC_FALSE=
4186
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4187
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4188
if test "${lt_cv_path_SED+set}" = set; then
4189
echo $ECHO_N "(cached) $ECHO_C" >&6
4191
# Loop through the user's path and test for sed and gsed.
4192
# Then use that list of sed's as ones to test for truncation.
4193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197
test -z "$as_dir" && as_dir=.
4198
for lt_ac_prog in sed gsed; do
4199
for ac_exec_ext in '' $ac_executable_extensions; do
4200
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4201
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4209
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4210
# along with /bin/sed that truncates output.
4211
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4212
test ! -f $lt_ac_sed && continue
4213
cat /dev/null > conftest.in
4215
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4216
# Check for GNU sed and select it if it is found.
4217
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4218
lt_cv_path_SED=$lt_ac_sed
4222
cat conftest.in conftest.in >conftest.tmp
4223
mv conftest.tmp conftest.in
4224
cp conftest.in conftest.nl
4226
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4227
cmp -s conftest.out conftest.nl || break
4228
# 10000 chars as input seems more than enough
4229
test $lt_ac_count -gt 10 && break
4230
lt_ac_count=`expr $lt_ac_count + 1`
4231
if test $lt_ac_count -gt $lt_ac_max; then
4232
lt_ac_max=$lt_ac_count
4233
lt_cv_path_SED=$lt_ac_sed
4242
{ echo "$as_me:$LINENO: result: $SED" >&5
4243
echo "${ECHO_T}$SED" >&6; }
4245
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4246
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4247
if test "${ac_cv_path_GREP+set}" = set; then
4248
echo $ECHO_N "(cached) $ECHO_C" >&6
4250
# Extract the first word of "grep ggrep" to use in msg output
4251
if test -z "$GREP"; then
4252
set dummy grep ggrep; ac_prog_name=$2
4253
if test "${ac_cv_path_GREP+set}" = set; then
4254
echo $ECHO_N "(cached) $ECHO_C" >&6
4256
ac_path_GREP_found=false
4257
# Loop through the user's path and test for each of PROGNAME-LIST
4258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4262
test -z "$as_dir" && as_dir=.
4263
for ac_prog in grep ggrep; do
4264
for ac_exec_ext in '' $ac_executable_extensions; do
4265
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4266
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4267
# Check for GNU ac_path_GREP and select it if it is found.
4268
# Check for GNU $ac_path_GREP
4269
case `"$ac_path_GREP" --version 2>&1` in
4271
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4274
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4277
cat "conftest.in" "conftest.in" >"conftest.tmp"
4278
mv "conftest.tmp" "conftest.in"
4279
cp "conftest.in" "conftest.nl"
4280
echo 'GREP' >> "conftest.nl"
4281
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283
ac_count=`expr $ac_count + 1`
4284
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285
# Best one so far, save it but keep looking for a better one
4286
ac_cv_path_GREP="$ac_path_GREP"
4287
ac_path_GREP_max=$ac_count
4289
# 10*(2^10) chars as input seems more than enough
4290
test $ac_count -gt 10 && break
4292
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296
$ac_path_GREP_found && break 3
4306
GREP="$ac_cv_path_GREP"
4307
if test -z "$GREP"; then
4308
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4309
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4310
{ (exit 1); exit 1; }; }
4314
ac_cv_path_GREP=$GREP
4319
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4320
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4321
GREP="$ac_cv_path_GREP"
4324
{ echo "$as_me:$LINENO: checking for egrep" >&5
4325
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4326
if test "${ac_cv_path_EGREP+set}" = set; then
4327
echo $ECHO_N "(cached) $ECHO_C" >&6
4329
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4330
then ac_cv_path_EGREP="$GREP -E"
4332
# Extract the first word of "egrep" to use in msg output
4333
if test -z "$EGREP"; then
4334
set dummy egrep; ac_prog_name=$2
4335
if test "${ac_cv_path_EGREP+set}" = set; then
4336
echo $ECHO_N "(cached) $ECHO_C" >&6
4338
ac_path_EGREP_found=false
4339
# Loop through the user's path and test for each of PROGNAME-LIST
4340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344
test -z "$as_dir" && as_dir=.
4345
for ac_prog in egrep; do
4346
for ac_exec_ext in '' $ac_executable_extensions; do
4347
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4348
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4349
# Check for GNU ac_path_EGREP and select it if it is found.
4350
# Check for GNU $ac_path_EGREP
4351
case `"$ac_path_EGREP" --version 2>&1` in
4353
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4356
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4359
cat "conftest.in" "conftest.in" >"conftest.tmp"
4360
mv "conftest.tmp" "conftest.in"
4361
cp "conftest.in" "conftest.nl"
4362
echo 'EGREP' >> "conftest.nl"
4363
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365
ac_count=`expr $ac_count + 1`
4366
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4367
# Best one so far, save it but keep looking for a better one
4368
ac_cv_path_EGREP="$ac_path_EGREP"
4369
ac_path_EGREP_max=$ac_count
4371
# 10*(2^10) chars as input seems more than enough
4372
test $ac_count -gt 10 && break
4374
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378
$ac_path_EGREP_found && break 3
4388
EGREP="$ac_cv_path_EGREP"
4389
if test -z "$EGREP"; then
4390
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4391
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4392
{ (exit 1); exit 1; }; }
4396
ac_cv_path_EGREP=$EGREP
4402
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4403
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4404
EGREP="$ac_cv_path_EGREP"
4408
# Check whether --with-gnu-ld was given.
4409
if test "${with_gnu_ld+set}" = set; then
4410
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4416
if test "$GCC" = yes; then
4417
# Check if gcc -print-prog-name=ld gives a path.
4418
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4419
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4422
# gcc leaves a trailing carriage return which upsets mingw
4423
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4425
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4428
# Accept absolute paths.
4430
re_direlt='/[^/][^/]*/\.\./'
4431
# Canonicalize the pathname of ld
4432
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4433
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4434
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4436
test -z "$LD" && LD="$ac_prog"
4439
# If it fails, then pretend we aren't using GCC.
4443
# If it is relative, then search for the first ld in PATH.
4447
elif test "$with_gnu_ld" = yes; then
4448
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4449
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4451
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4452
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4454
if test "${lt_cv_path_LD+set}" = set; then
4455
echo $ECHO_N "(cached) $ECHO_C" >&6
4457
if test -z "$LD"; then
4458
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4459
for ac_dir in $PATH; do
4461
test -z "$ac_dir" && ac_dir=.
4462
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4463
lt_cv_path_LD="$ac_dir/$ac_prog"
4464
# Check to see if the program is GNU ld. I'd rather use --version,
4465
# but apparently some variants of GNU ld only accept -v.
4466
# Break only if it was the GNU/non-GNU ld that we prefer.
4467
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4468
*GNU* | *'with BFD'*)
4469
test "$with_gnu_ld" != no && break
4472
test "$with_gnu_ld" != yes && break
4479
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4484
if test -n "$LD"; then
4485
{ echo "$as_me:$LINENO: result: $LD" >&5
4486
echo "${ECHO_T}$LD" >&6; }
4488
{ echo "$as_me:$LINENO: result: no" >&5
4489
echo "${ECHO_T}no" >&6; }
4491
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4492
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4493
{ (exit 1); exit 1; }; }
4494
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4495
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4496
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4497
echo $ECHO_N "(cached) $ECHO_C" >&6
4499
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4500
case `$LD -v 2>&1 </dev/null` in
4501
*GNU* | *'with BFD'*)
4502
lt_cv_prog_gnu_ld=yes
4505
lt_cv_prog_gnu_ld=no
4509
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4510
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4511
with_gnu_ld=$lt_cv_prog_gnu_ld
4514
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4515
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4516
if test "${lt_cv_ld_reload_flag+set}" = set; then
4517
echo $ECHO_N "(cached) $ECHO_C" >&6
4519
lt_cv_ld_reload_flag='-r'
4521
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4522
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4523
reload_flag=$lt_cv_ld_reload_flag
4524
case $reload_flag in
4526
*) reload_flag=" $reload_flag" ;;
4528
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4531
if test "$GCC" = yes; then
4532
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4534
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4539
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4540
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4541
if test "${lt_cv_path_NM+set}" = set; then
4542
echo $ECHO_N "(cached) $ECHO_C" >&6
4544
if test -n "$NM"; then
4545
# Let the user override the test.
4548
lt_nm_to_check="${ac_tool_prefix}nm"
4549
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4550
lt_nm_to_check="$lt_nm_to_check nm"
4552
for lt_tmp_nm in $lt_nm_to_check; do
4553
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4554
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4556
test -z "$ac_dir" && ac_dir=.
4557
tmp_nm="$ac_dir/$lt_tmp_nm"
4558
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4559
# Check to see if the nm accepts a BSD-compat flag.
4560
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4561
# nm: unknown option "B" ignored
4562
# Tru64's nm complains that /dev/null is an invalid object file
4563
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4564
*/dev/null* | *'Invalid file or object type'*)
4565
lt_cv_path_NM="$tmp_nm -B"
4569
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4571
lt_cv_path_NM="$tmp_nm -p"
4575
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4576
continue # so that we can try to find one that supports BSD flags
4585
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4588
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4589
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4592
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4593
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4595
if test "$LN_S" = "ln -s"; then
4596
{ echo "$as_me:$LINENO: result: yes" >&5
4597
echo "${ECHO_T}yes" >&6; }
4599
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4600
echo "${ECHO_T}no, using $LN_S" >&6; }
4603
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4604
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4605
if test "${lt_cv_deplibs_check_method+set}" = set; then
4606
echo $ECHO_N "(cached) $ECHO_C" >&6
4608
lt_cv_file_magic_cmd='$MAGIC_CMD'
4609
lt_cv_file_magic_test_file=
4610
lt_cv_deplibs_check_method='unknown'
4611
# Need to set the preceding variable on all platforms that support
4612
# interlibrary dependencies.
4613
# 'none' -- dependencies not supported.
4614
# `unknown' -- same as none, but documents that we really don't know.
4615
# 'pass_all' -- all dependencies passed with no checks.
4616
# 'test_compile' -- check by making test program.
4617
# 'file_magic [[regex]]' -- check by looking for files in library path
4618
# which responds to the $file_magic_cmd with a given extended regex.
4619
# If you have `file' or equivalent on your system and you're not sure
4620
# whether `pass_all' will *always* work, you probably want this one.
4624
lt_cv_deplibs_check_method=pass_all
4628
lt_cv_deplibs_check_method=pass_all
4632
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4633
lt_cv_file_magic_cmd='/usr/bin/file -L'
4634
lt_cv_file_magic_test_file=/shlib/libc.so
4638
# func_win32_libid is a shell function defined in ltmain.sh
4639
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4640
lt_cv_file_magic_cmd='func_win32_libid'
4644
# Base MSYS/MinGW do not provide the 'file' command needed by
4645
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4646
# unless we find 'file', for example because we are cross-compiling.
4647
if ( file / ) >/dev/null 2>&1; then
4648
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4649
lt_cv_file_magic_cmd='func_win32_libid'
4651
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4652
lt_cv_file_magic_cmd='$OBJDUMP -f'
4656
darwin* | rhapsody*)
4657
lt_cv_deplibs_check_method=pass_all
4660
freebsd* | dragonfly*)
4661
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4664
# Not sure whether the presence of OpenBSD here was a mistake.
4665
# Let's accept both of them until this is cleared up.
4666
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4667
lt_cv_file_magic_cmd=/usr/bin/file
4668
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4672
lt_cv_deplibs_check_method=pass_all
4677
lt_cv_deplibs_check_method=pass_all
4680
hpux10.20* | hpux11*)
4681
lt_cv_file_magic_cmd=/usr/bin/file
4684
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4685
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4688
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]'
4689
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4692
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4693
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4699
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4700
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4703
irix5* | irix6* | nonstopux*)
4705
*-32|*"-32 ") libmagic=32-bit;;
4706
*-n32|*"-n32 ") libmagic=N32;;
4707
*-64|*"-64 ") libmagic=64-bit;;
4708
*) libmagic=never-match;;
4710
lt_cv_deplibs_check_method=pass_all
4713
# This must be Linux ELF.
4714
linux* | k*bsd*-gnu)
4715
lt_cv_deplibs_check_method=pass_all
4718
netbsd* | netbsdelf*-gnu)
4719
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4720
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4722
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4727
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4728
lt_cv_file_magic_cmd=/usr/bin/file
4729
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4733
lt_cv_deplibs_check_method=unknown
4737
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4738
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4740
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4744
osf3* | osf4* | osf5*)
4745
lt_cv_deplibs_check_method=pass_all
4749
lt_cv_deplibs_check_method=pass_all
4753
lt_cv_deplibs_check_method=pass_all
4757
case $host_vendor in
4759
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]'
4760
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4763
lt_cv_deplibs_check_method=pass_all
4766
lt_cv_file_magic_cmd='/bin/file'
4767
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4770
lt_cv_file_magic_cmd='/bin/file'
4771
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4772
lt_cv_file_magic_test_file=/lib/libc.so
4775
lt_cv_deplibs_check_method=pass_all
4778
lt_cv_deplibs_check_method=pass_all
4783
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4784
lt_cv_deplibs_check_method=pass_all
4789
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4790
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4791
file_magic_cmd=$lt_cv_file_magic_cmd
4792
deplibs_check_method=$lt_cv_deplibs_check_method
4793
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4798
# If no C compiler was specified, use CC.
4801
# If no C compiler flags were specified, use CFLAGS.
4802
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4804
# Allow CC to be a program name with arguments.
4808
# Check whether --enable-libtool-lock was given.
4809
if test "${enable_libtool_lock+set}" = set; then
4810
enableval=$enable_libtool_lock;
4813
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4815
# Some flags need to be propagated to the compiler or linker for good
4819
# Find out which ABI we are using.
4820
echo 'int i;' > conftest.$ac_ext
4821
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822
(eval $ac_compile) 2>&5
4824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825
(exit $ac_status); }; then
4826
case `/usr/bin/file conftest.$ac_objext` in
4838
# Find out which ABI we are using.
4839
echo '#line 4839 "configure"' > conftest.$ac_ext
4840
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841
(eval $ac_compile) 2>&5
4843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844
(exit $ac_status); }; then
4845
if test "$lt_cv_prog_gnu_ld" = yes; then
4846
case `/usr/bin/file conftest.$ac_objext` in
4848
LD="${LD-ld} -melf32bsmip"
4851
LD="${LD-ld} -melf32bmipn32"
4854
LD="${LD-ld} -melf64bmip"
4858
case `/usr/bin/file conftest.$ac_objext` in
4874
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4875
s390*-*linux*|sparc*-*linux*)
4876
# Find out which ABI we are using.
4877
echo 'int i;' > conftest.$ac_ext
4878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879
(eval $ac_compile) 2>&5
4881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882
(exit $ac_status); }; then
4883
case `/usr/bin/file conftest.o` in
4886
x86_64-*kfreebsd*-gnu)
4887
LD="${LD-ld} -m elf_i386_fbsd"
4890
LD="${LD-ld} -m elf_i386"
4892
ppc64-*linux*|powerpc64-*linux*)
4893
LD="${LD-ld} -m elf32ppclinux"
4896
LD="${LD-ld} -m elf_s390"
4899
LD="${LD-ld} -m elf32_sparc"
4905
x86_64-*kfreebsd*-gnu)
4906
LD="${LD-ld} -m elf_x86_64_fbsd"
4909
LD="${LD-ld} -m elf_x86_64"
4911
ppc*-*linux*|powerpc*-*linux*)
4912
LD="${LD-ld} -m elf64ppc"
4915
LD="${LD-ld} -m elf64_s390"
4918
LD="${LD-ld} -m elf64_sparc"
4928
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4929
SAVE_CFLAGS="$CFLAGS"
4930
CFLAGS="$CFLAGS -belf"
4931
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4932
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4933
if test "${lt_cv_cc_needs_belf+set}" = set; then
4934
echo $ECHO_N "(cached) $ECHO_C" >&6
4937
ac_cpp='$CPP $CPPFLAGS'
4938
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4942
cat >conftest.$ac_ext <<_ACEOF
4945
cat confdefs.h >>conftest.$ac_ext
4946
cat >>conftest.$ac_ext <<_ACEOF
4947
/* end confdefs.h. */
4957
rm -f conftest.$ac_objext conftest$ac_exeext
4958
if { (ac_try="$ac_link"
4960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961
*) ac_try_echo=$ac_try;;
4963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964
(eval "$ac_link") 2>conftest.er1
4966
grep -v '^ *+' conftest.er1 >conftest.err
4968
cat conftest.err >&5
4969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970
(exit $ac_status); } && {
4971
test -z "$ac_c_werror_flag" ||
4972
test ! -s conftest.err
4973
} && test -s conftest$ac_exeext &&
4974
$as_test_x conftest$ac_exeext; then
4975
lt_cv_cc_needs_belf=yes
4977
echo "$as_me: failed program was:" >&5
4978
sed 's/^/| /' conftest.$ac_ext >&5
4980
lt_cv_cc_needs_belf=no
4983
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4984
conftest$ac_exeext conftest.$ac_ext
4986
ac_cpp='$CPP $CPPFLAGS'
4987
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4993
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4994
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4995
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4996
CFLAGS="$SAVE_CFLAGS"
5000
# Find out which ABI we are using.
5001
echo 'int i;' > conftest.$ac_ext
5002
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003
(eval $ac_compile) 2>&5
5005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006
(exit $ac_status); }; then
5007
case `/usr/bin/file conftest.o` in
5009
case $lt_cv_prog_gnu_ld in
5010
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5012
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5026
need_locks="$enable_libtool_lock"
5030
ac_cpp='$CPP $CPPFLAGS'
5031
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5035
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5036
# On Suns, sometimes $CPP names a directory.
5037
if test -n "$CPP" && test -d "$CPP"; then
5040
if test -z "$CPP"; then
5041
if test "${ac_cv_prog_CPP+set}" = set; then
5042
echo $ECHO_N "(cached) $ECHO_C" >&6
5044
# Double quotes because CPP needs to be expanded
5045
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5048
for ac_c_preproc_warn_flag in '' yes
5050
# Use a header file that comes with gcc, so configuring glibc
5051
# with a fresh cross-compiler works.
5052
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053
# <limits.h> exists even on freestanding compilers.
5054
# On the NeXT, cc -E runs the code through the compiler's parser,
5055
# not just through cpp. "Syntax error" is here to catch this case.
5056
cat >conftest.$ac_ext <<_ACEOF
5059
cat confdefs.h >>conftest.$ac_ext
5060
cat >>conftest.$ac_ext <<_ACEOF
5061
/* end confdefs.h. */
5063
# include <limits.h>
5065
# include <assert.h>
5069
if { (ac_try="$ac_cpp conftest.$ac_ext"
5071
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072
*) ac_try_echo=$ac_try;;
5074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5077
grep -v '^ *+' conftest.er1 >conftest.err
5079
cat conftest.err >&5
5080
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081
(exit $ac_status); } >/dev/null && {
5082
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5083
test ! -s conftest.err
5087
echo "$as_me: failed program was:" >&5
5088
sed 's/^/| /' conftest.$ac_ext >&5
5090
# Broken: fails on valid input.
5094
rm -f conftest.err conftest.$ac_ext
5096
# OK, works on sane cases. Now check whether nonexistent headers
5097
# can be detected and how.
5098
cat >conftest.$ac_ext <<_ACEOF
5101
cat confdefs.h >>conftest.$ac_ext
5102
cat >>conftest.$ac_ext <<_ACEOF
5103
/* end confdefs.h. */
5104
#include <ac_nonexistent.h>
5106
if { (ac_try="$ac_cpp conftest.$ac_ext"
5108
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109
*) ac_try_echo=$ac_try;;
5111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114
grep -v '^ *+' conftest.er1 >conftest.err
5116
cat conftest.err >&5
5117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118
(exit $ac_status); } >/dev/null && {
5119
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5120
test ! -s conftest.err
5122
# Broken: success on invalid input.
5125
echo "$as_me: failed program was:" >&5
5126
sed 's/^/| /' conftest.$ac_ext >&5
5128
# Passes both tests.
5133
rm -f conftest.err conftest.$ac_ext
5136
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137
rm -f conftest.err conftest.$ac_ext
5138
if $ac_preproc_ok; then
5150
{ echo "$as_me:$LINENO: result: $CPP" >&5
5151
echo "${ECHO_T}$CPP" >&6; }
5153
for ac_c_preproc_warn_flag in '' yes
5155
# Use a header file that comes with gcc, so configuring glibc
5156
# with a fresh cross-compiler works.
5157
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158
# <limits.h> exists even on freestanding compilers.
5159
# On the NeXT, cc -E runs the code through the compiler's parser,
5160
# not just through cpp. "Syntax error" is here to catch this case.
5161
cat >conftest.$ac_ext <<_ACEOF
5164
cat confdefs.h >>conftest.$ac_ext
5165
cat >>conftest.$ac_ext <<_ACEOF
5166
/* end confdefs.h. */
5168
# include <limits.h>
5170
# include <assert.h>
5174
if { (ac_try="$ac_cpp conftest.$ac_ext"
5176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177
*) ac_try_echo=$ac_try;;
5179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5182
grep -v '^ *+' conftest.er1 >conftest.err
5184
cat conftest.err >&5
5185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186
(exit $ac_status); } >/dev/null && {
5187
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5188
test ! -s conftest.err
5192
echo "$as_me: failed program was:" >&5
5193
sed 's/^/| /' conftest.$ac_ext >&5
5195
# Broken: fails on valid input.
5199
rm -f conftest.err conftest.$ac_ext
5201
# OK, works on sane cases. Now check whether nonexistent headers
5202
# can be detected and how.
5203
cat >conftest.$ac_ext <<_ACEOF
5206
cat confdefs.h >>conftest.$ac_ext
5207
cat >>conftest.$ac_ext <<_ACEOF
5208
/* end confdefs.h. */
5209
#include <ac_nonexistent.h>
5211
if { (ac_try="$ac_cpp conftest.$ac_ext"
5213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214
*) ac_try_echo=$ac_try;;
5216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5217
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5219
grep -v '^ *+' conftest.er1 >conftest.err
5221
cat conftest.err >&5
5222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223
(exit $ac_status); } >/dev/null && {
5224
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5225
test ! -s conftest.err
5227
# Broken: success on invalid input.
5230
echo "$as_me: failed program was:" >&5
5231
sed 's/^/| /' conftest.$ac_ext >&5
5233
# Passes both tests.
5238
rm -f conftest.err conftest.$ac_ext
5241
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5242
rm -f conftest.err conftest.$ac_ext
5243
if $ac_preproc_ok; then
5246
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5247
See \`config.log' for more details." >&5
5248
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5249
See \`config.log' for more details." >&2;}
5250
{ (exit 1); exit 1; }; }
5254
ac_cpp='$CPP $CPPFLAGS'
5255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5261
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5262
if test "${ac_cv_header_stdc+set}" = set; then
5263
echo $ECHO_N "(cached) $ECHO_C" >&6
5265
cat >conftest.$ac_ext <<_ACEOF
5268
cat confdefs.h >>conftest.$ac_ext
5269
cat >>conftest.$ac_ext <<_ACEOF
5270
/* end confdefs.h. */
5284
rm -f conftest.$ac_objext
5285
if { (ac_try="$ac_compile"
5287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288
*) ac_try_echo=$ac_try;;
5290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291
(eval "$ac_compile") 2>conftest.er1
5293
grep -v '^ *+' conftest.er1 >conftest.err
5295
cat conftest.err >&5
5296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297
(exit $ac_status); } && {
5298
test -z "$ac_c_werror_flag" ||
5299
test ! -s conftest.err
5300
} && test -s conftest.$ac_objext; then
5301
ac_cv_header_stdc=yes
5303
echo "$as_me: failed program was:" >&5
5304
sed 's/^/| /' conftest.$ac_ext >&5
5306
ac_cv_header_stdc=no
5309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311
if test $ac_cv_header_stdc = yes; then
5312
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5313
cat >conftest.$ac_ext <<_ACEOF
5316
cat confdefs.h >>conftest.$ac_ext
5317
cat >>conftest.$ac_ext <<_ACEOF
5318
/* end confdefs.h. */
5322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323
$EGREP "memchr" >/dev/null 2>&1; then
5326
ac_cv_header_stdc=no
5332
if test $ac_cv_header_stdc = yes; then
5333
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5334
cat >conftest.$ac_ext <<_ACEOF
5337
cat confdefs.h >>conftest.$ac_ext
5338
cat >>conftest.$ac_ext <<_ACEOF
5339
/* end confdefs.h. */
5343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5344
$EGREP "free" >/dev/null 2>&1; then
5347
ac_cv_header_stdc=no
5353
if test $ac_cv_header_stdc = yes; then
5354
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5355
if test "$cross_compiling" = yes; then
5358
cat >conftest.$ac_ext <<_ACEOF
5361
cat confdefs.h >>conftest.$ac_ext
5362
cat >>conftest.$ac_ext <<_ACEOF
5363
/* end confdefs.h. */
5366
#if ((' ' & 0x0FF) == 0x020)
5367
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5368
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5370
# define ISLOWER(c) \
5371
(('a' <= (c) && (c) <= 'i') \
5372
|| ('j' <= (c) && (c) <= 'r') \
5373
|| ('s' <= (c) && (c) <= 'z'))
5374
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5377
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5382
for (i = 0; i < 256; i++)
5383
if (XOR (islower (i), ISLOWER (i))
5384
|| toupper (i) != TOUPPER (i))
5389
rm -f conftest$ac_exeext
5390
if { (ac_try="$ac_link"
5392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393
*) ac_try_echo=$ac_try;;
5395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396
(eval "$ac_link") 2>&5
5398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5400
{ (case "(($ac_try" in
5401
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402
*) ac_try_echo=$ac_try;;
5404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405
(eval "$ac_try") 2>&5
5407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408
(exit $ac_status); }; }; then
5411
echo "$as_me: program exited with status $ac_status" >&5
5412
echo "$as_me: failed program was:" >&5
5413
sed 's/^/| /' conftest.$ac_ext >&5
5416
ac_cv_header_stdc=no
5418
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5424
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5425
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5426
if test $ac_cv_header_stdc = yes; then
5428
cat >>confdefs.h <<\_ACEOF
5429
#define STDC_HEADERS 1
5434
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5444
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5445
inttypes.h stdint.h unistd.h
5447
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5448
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5449
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5450
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5451
echo $ECHO_N "(cached) $ECHO_C" >&6
5453
cat >conftest.$ac_ext <<_ACEOF
5456
cat confdefs.h >>conftest.$ac_ext
5457
cat >>conftest.$ac_ext <<_ACEOF
5458
/* end confdefs.h. */
5459
$ac_includes_default
5461
#include <$ac_header>
5463
rm -f conftest.$ac_objext
5464
if { (ac_try="$ac_compile"
5466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467
*) ac_try_echo=$ac_try;;
5469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470
(eval "$ac_compile") 2>conftest.er1
5472
grep -v '^ *+' conftest.er1 >conftest.err
5474
cat conftest.err >&5
5475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476
(exit $ac_status); } && {
5477
test -z "$ac_c_werror_flag" ||
5478
test ! -s conftest.err
5479
} && test -s conftest.$ac_objext; then
5480
eval "$as_ac_Header=yes"
5482
echo "$as_me: failed program was:" >&5
5483
sed 's/^/| /' conftest.$ac_ext >&5
5485
eval "$as_ac_Header=no"
5488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490
ac_res=`eval echo '${'$as_ac_Header'}'`
5491
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5492
echo "${ECHO_T}$ac_res" >&6; }
5493
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5494
cat >>confdefs.h <<_ACEOF
5495
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5504
for ac_header in dlfcn.h
5506
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5507
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5509
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5510
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5511
echo $ECHO_N "(cached) $ECHO_C" >&6
5513
ac_res=`eval echo '${'$as_ac_Header'}'`
5514
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5515
echo "${ECHO_T}$ac_res" >&6; }
5517
# Is the header compilable?
5518
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5519
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5520
cat >conftest.$ac_ext <<_ACEOF
5523
cat confdefs.h >>conftest.$ac_ext
5524
cat >>conftest.$ac_ext <<_ACEOF
5525
/* end confdefs.h. */
5526
$ac_includes_default
5527
#include <$ac_header>
5529
rm -f conftest.$ac_objext
5530
if { (ac_try="$ac_compile"
5532
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533
*) ac_try_echo=$ac_try;;
5535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536
(eval "$ac_compile") 2>conftest.er1
5538
grep -v '^ *+' conftest.er1 >conftest.err
5540
cat conftest.err >&5
5541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542
(exit $ac_status); } && {
5543
test -z "$ac_c_werror_flag" ||
5544
test ! -s conftest.err
5545
} && test -s conftest.$ac_objext; then
5546
ac_header_compiler=yes
5548
echo "$as_me: failed program was:" >&5
5549
sed 's/^/| /' conftest.$ac_ext >&5
5551
ac_header_compiler=no
5554
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5556
echo "${ECHO_T}$ac_header_compiler" >&6; }
5558
# Is the header present?
5559
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5560
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5561
cat >conftest.$ac_ext <<_ACEOF
5564
cat confdefs.h >>conftest.$ac_ext
5565
cat >>conftest.$ac_ext <<_ACEOF
5566
/* end confdefs.h. */
5567
#include <$ac_header>
5569
if { (ac_try="$ac_cpp conftest.$ac_ext"
5571
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572
*) ac_try_echo=$ac_try;;
5574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5577
grep -v '^ *+' conftest.er1 >conftest.err
5579
cat conftest.err >&5
5580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581
(exit $ac_status); } >/dev/null && {
5582
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5583
test ! -s conftest.err
5585
ac_header_preproc=yes
5587
echo "$as_me: failed program was:" >&5
5588
sed 's/^/| /' conftest.$ac_ext >&5
5590
ac_header_preproc=no
5593
rm -f conftest.err conftest.$ac_ext
5594
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5595
echo "${ECHO_T}$ac_header_preproc" >&6; }
5597
# So? What about this header?
5598
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5600
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5601
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5602
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5603
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5604
ac_header_preproc=yes
5607
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5608
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5609
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5610
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5611
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5612
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5613
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5614
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5615
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5616
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5617
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5618
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5620
## ---------------------------------------- ##
5621
## Report this to xcb@lists.freedesktop.org ##
5622
## ---------------------------------------- ##
5624
) | sed "s/^/$as_me: WARNING: /" >&2
5627
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5628
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5629
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5630
echo $ECHO_N "(cached) $ECHO_C" >&6
5632
eval "$as_ac_Header=\$ac_header_preproc"
5634
ac_res=`eval echo '${'$as_ac_Header'}'`
5635
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5636
echo "${ECHO_T}$ac_res" >&6; }
5639
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640
cat >>confdefs.h <<_ACEOF
5641
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5649
ac_cpp='$CXXCPP $CPPFLAGS'
5650
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5653
if test -z "$CXX"; then
5654
if test -n "$CCC"; then
5657
if test -n "$ac_tool_prefix"; then
5658
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5660
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5664
if test "${ac_cv_prog_CXX+set}" = set; then
5665
echo $ECHO_N "(cached) $ECHO_C" >&6
5667
if test -n "$CXX"; then
5668
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674
test -z "$as_dir" && as_dir=.
5675
for ac_exec_ext in '' $ac_executable_extensions; do
5676
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5678
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688
if test -n "$CXX"; then
5689
{ echo "$as_me:$LINENO: result: $CXX" >&5
5690
echo "${ECHO_T}$CXX" >&6; }
5692
{ echo "$as_me:$LINENO: result: no" >&5
5693
echo "${ECHO_T}no" >&6; }
5697
test -n "$CXX" && break
5700
if test -z "$CXX"; then
5702
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5704
# Extract the first word of "$ac_prog", so it can be a program name with args.
5705
set dummy $ac_prog; ac_word=$2
5706
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5708
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5709
echo $ECHO_N "(cached) $ECHO_C" >&6
5711
if test -n "$ac_ct_CXX"; then
5712
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718
test -z "$as_dir" && as_dir=.
5719
for ac_exec_ext in '' $ac_executable_extensions; do
5720
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721
ac_cv_prog_ac_ct_CXX="$ac_prog"
5722
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5732
if test -n "$ac_ct_CXX"; then
5733
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5734
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5736
{ echo "$as_me:$LINENO: result: no" >&5
5737
echo "${ECHO_T}no" >&6; }
5741
test -n "$ac_ct_CXX" && break
5744
if test "x$ac_ct_CXX" = x; then
5747
case $cross_compiling:$ac_tool_warned in
5749
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5750
whose name does not start with the host triplet. If you think this
5751
configuration is useful to you, please write to autoconf@gnu.org." >&5
5752
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5753
whose name does not start with the host triplet. If you think this
5754
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5755
ac_tool_warned=yes ;;
5763
# Provide some information about the compiler.
5764
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5765
ac_compiler=`set X $ac_compile; echo $2`
5766
{ (ac_try="$ac_compiler --version >&5"
5768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769
*) ac_try_echo=$ac_try;;
5771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772
(eval "$ac_compiler --version >&5") 2>&5
5774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775
(exit $ac_status); }
5776
{ (ac_try="$ac_compiler -v >&5"
5778
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779
*) ac_try_echo=$ac_try;;
5781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782
(eval "$ac_compiler -v >&5") 2>&5
5784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785
(exit $ac_status); }
5786
{ (ac_try="$ac_compiler -V >&5"
5788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789
*) ac_try_echo=$ac_try;;
5791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792
(eval "$ac_compiler -V >&5") 2>&5
5794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795
(exit $ac_status); }
5797
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5798
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5799
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5800
echo $ECHO_N "(cached) $ECHO_C" >&6
5802
cat >conftest.$ac_ext <<_ACEOF
5805
cat confdefs.h >>conftest.$ac_ext
5806
cat >>conftest.$ac_ext <<_ACEOF
5807
/* end confdefs.h. */
5820
rm -f conftest.$ac_objext
5821
if { (ac_try="$ac_compile"
5823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824
*) ac_try_echo=$ac_try;;
5826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827
(eval "$ac_compile") 2>conftest.er1
5829
grep -v '^ *+' conftest.er1 >conftest.err
5831
cat conftest.err >&5
5832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833
(exit $ac_status); } && {
5834
test -z "$ac_cxx_werror_flag" ||
5835
test ! -s conftest.err
5836
} && test -s conftest.$ac_objext; then
5839
echo "$as_me: failed program was:" >&5
5840
sed 's/^/| /' conftest.$ac_ext >&5
5845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5849
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5850
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5851
GXX=`test $ac_compiler_gnu = yes && echo yes`
5852
ac_test_CXXFLAGS=${CXXFLAGS+set}
5853
ac_save_CXXFLAGS=$CXXFLAGS
5854
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5855
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5856
if test "${ac_cv_prog_cxx_g+set}" = set; then
5857
echo $ECHO_N "(cached) $ECHO_C" >&6
5859
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5860
ac_cxx_werror_flag=yes
5863
cat >conftest.$ac_ext <<_ACEOF
5866
cat confdefs.h >>conftest.$ac_ext
5867
cat >>conftest.$ac_ext <<_ACEOF
5868
/* end confdefs.h. */
5878
rm -f conftest.$ac_objext
5879
if { (ac_try="$ac_compile"
5881
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882
*) ac_try_echo=$ac_try;;
5884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885
(eval "$ac_compile") 2>conftest.er1
5887
grep -v '^ *+' conftest.er1 >conftest.err
5889
cat conftest.err >&5
5890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891
(exit $ac_status); } && {
5892
test -z "$ac_cxx_werror_flag" ||
5893
test ! -s conftest.err
5894
} && test -s conftest.$ac_objext; then
5895
ac_cv_prog_cxx_g=yes
5897
echo "$as_me: failed program was:" >&5
5898
sed 's/^/| /' conftest.$ac_ext >&5
5901
cat >conftest.$ac_ext <<_ACEOF
5904
cat confdefs.h >>conftest.$ac_ext
5905
cat >>conftest.$ac_ext <<_ACEOF
5906
/* end confdefs.h. */
5916
rm -f conftest.$ac_objext
5917
if { (ac_try="$ac_compile"
5919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920
*) ac_try_echo=$ac_try;;
5922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923
(eval "$ac_compile") 2>conftest.er1
5925
grep -v '^ *+' conftest.er1 >conftest.err
5927
cat conftest.err >&5
5928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929
(exit $ac_status); } && {
5930
test -z "$ac_cxx_werror_flag" ||
5931
test ! -s conftest.err
5932
} && test -s conftest.$ac_objext; then
5935
echo "$as_me: failed program was:" >&5
5936
sed 's/^/| /' conftest.$ac_ext >&5
5938
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5940
cat >conftest.$ac_ext <<_ACEOF
5943
cat confdefs.h >>conftest.$ac_ext
5944
cat >>conftest.$ac_ext <<_ACEOF
5945
/* end confdefs.h. */
5955
rm -f conftest.$ac_objext
5956
if { (ac_try="$ac_compile"
5958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959
*) ac_try_echo=$ac_try;;
5961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962
(eval "$ac_compile") 2>conftest.er1
5964
grep -v '^ *+' conftest.er1 >conftest.err
5966
cat conftest.err >&5
5967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968
(exit $ac_status); } && {
5969
test -z "$ac_cxx_werror_flag" ||
5970
test ! -s conftest.err
5971
} && test -s conftest.$ac_objext; then
5972
ac_cv_prog_cxx_g=yes
5974
echo "$as_me: failed program was:" >&5
5975
sed 's/^/| /' conftest.$ac_ext >&5
5980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5989
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5990
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5991
if test "$ac_test_CXXFLAGS" = set; then
5992
CXXFLAGS=$ac_save_CXXFLAGS
5993
elif test $ac_cv_prog_cxx_g = yes; then
5994
if test "$GXX" = yes; then
6000
if test "$GXX" = yes; then
6007
ac_cpp='$CXXCPP $CPPFLAGS'
6008
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6012
depcc="$CXX" am_compiler_list=
6014
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6015
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6016
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6017
echo $ECHO_N "(cached) $ECHO_C" >&6
6019
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6020
# We make a subdir and do the tests there. Otherwise we can end up
6021
# making bogus files that we don't know about and never remove. For
6022
# instance it was reported that on HP-UX the gcc test will end up
6023
# making a dummy file named `D' -- because `-MD' means `put the output
6026
# Copy depcomp to subdir because otherwise we won't find it if we're
6027
# using a relative directory.
6028
cp "$am_depcomp" conftest.dir
6030
# We will build objects and dependencies in a subdirectory because
6031
# it helps to detect inapplicable dependency modes. For instance
6032
# both Tru64's cc and ICC support -MD to output dependencies as a
6033
# side effect of compilation, but ICC will put the dependencies in
6034
# the current directory while Tru64 will put them in the object
6038
am_cv_CXX_dependencies_compiler_type=none
6039
if test "$am_compiler_list" = ""; then
6040
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6042
for depmode in $am_compiler_list; do
6043
# Setup a source with many dependencies, because some compilers
6044
# like to wrap large dependency lists on column 80 (with \), and
6045
# we should not choose a depcomp mode which is confused by this.
6047
# We need to recreate these files for each test, as the compiler may
6048
# overwrite some of them when testing with obscure command lines.
6049
# This happens at least with the AIX C compiler.
6051
for i in 1 2 3 4 5 6; do
6052
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6053
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6054
# Solaris 8's {/usr,}/bin/sh.
6055
touch sub/conftst$i.h
6057
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6061
# after this tag, mechanisms are not by side-effect, so they'll
6062
# only be used when explicitly requested
6063
if test "x$enable_dependency_tracking" = xyes; then
6071
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6072
# mode. It turns out that the SunPro C++ compiler does not properly
6073
# handle `-M -o', and we need to detect this.
6074
if depmode=$depmode \
6075
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6076
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6077
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6078
>/dev/null 2>conftest.err &&
6079
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6080
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6081
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6082
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6083
# icc doesn't choke on unknown options, it will just issue warnings
6084
# or remarks (even with -Werror). So we grep stderr for any message
6085
# that says an option was ignored or not supported.
6086
# When given -MP, icc 7.0 and 7.1 complain thusly:
6087
# icc: Command line warning: ignoring option '-M'; no argument required
6088
# The diagnosis changed in icc 8.0:
6089
# icc: Command line remark: option '-MP' not supported
6090
if (grep 'ignoring option' conftest.err ||
6091
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6092
am_cv_CXX_dependencies_compiler_type=$depmode
6101
am_cv_CXX_dependencies_compiler_type=none
6105
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6106
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6107
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6110
test "x$enable_dependency_tracking" != xno \
6111
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6112
am__fastdepCXX_TRUE=
6113
am__fastdepCXX_FALSE='#'
6115
am__fastdepCXX_TRUE='#'
6116
am__fastdepCXX_FALSE=
6122
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6123
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6124
(test "X$CXX" != "Xg++"))) ; then
6126
ac_cpp='$CXXCPP $CPPFLAGS'
6127
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6130
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6131
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6132
if test -z "$CXXCPP"; then
6133
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6134
echo $ECHO_N "(cached) $ECHO_C" >&6
6136
# Double quotes because CXXCPP needs to be expanded
6137
for CXXCPP in "$CXX -E" "/lib/cpp"
6140
for ac_cxx_preproc_warn_flag in '' yes
6142
# Use a header file that comes with gcc, so configuring glibc
6143
# with a fresh cross-compiler works.
6144
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145
# <limits.h> exists even on freestanding compilers.
6146
# On the NeXT, cc -E runs the code through the compiler's parser,
6147
# not just through cpp. "Syntax error" is here to catch this case.
6148
cat >conftest.$ac_ext <<_ACEOF
6151
cat confdefs.h >>conftest.$ac_ext
6152
cat >>conftest.$ac_ext <<_ACEOF
6153
/* end confdefs.h. */
6155
# include <limits.h>
6157
# include <assert.h>
6161
if { (ac_try="$ac_cpp conftest.$ac_ext"
6163
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164
*) ac_try_echo=$ac_try;;
6166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6169
grep -v '^ *+' conftest.er1 >conftest.err
6171
cat conftest.err >&5
6172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173
(exit $ac_status); } >/dev/null && {
6174
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6175
test ! -s conftest.err
6179
echo "$as_me: failed program was:" >&5
6180
sed 's/^/| /' conftest.$ac_ext >&5
6182
# Broken: fails on valid input.
6186
rm -f conftest.err conftest.$ac_ext
6188
# OK, works on sane cases. Now check whether nonexistent headers
6189
# can be detected and how.
6190
cat >conftest.$ac_ext <<_ACEOF
6193
cat confdefs.h >>conftest.$ac_ext
6194
cat >>conftest.$ac_ext <<_ACEOF
6195
/* end confdefs.h. */
6196
#include <ac_nonexistent.h>
6198
if { (ac_try="$ac_cpp conftest.$ac_ext"
6200
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201
*) ac_try_echo=$ac_try;;
6203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6206
grep -v '^ *+' conftest.er1 >conftest.err
6208
cat conftest.err >&5
6209
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
(exit $ac_status); } >/dev/null && {
6211
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6212
test ! -s conftest.err
6214
# Broken: success on invalid input.
6217
echo "$as_me: failed program was:" >&5
6218
sed 's/^/| /' conftest.$ac_ext >&5
6220
# Passes both tests.
6225
rm -f conftest.err conftest.$ac_ext
6228
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6229
rm -f conftest.err conftest.$ac_ext
6230
if $ac_preproc_ok; then
6235
ac_cv_prog_CXXCPP=$CXXCPP
6238
CXXCPP=$ac_cv_prog_CXXCPP
6240
ac_cv_prog_CXXCPP=$CXXCPP
6242
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6243
echo "${ECHO_T}$CXXCPP" >&6; }
6245
for ac_cxx_preproc_warn_flag in '' yes
6247
# Use a header file that comes with gcc, so configuring glibc
6248
# with a fresh cross-compiler works.
6249
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250
# <limits.h> exists even on freestanding compilers.
6251
# On the NeXT, cc -E runs the code through the compiler's parser,
6252
# not just through cpp. "Syntax error" is here to catch this case.
6253
cat >conftest.$ac_ext <<_ACEOF
6256
cat confdefs.h >>conftest.$ac_ext
6257
cat >>conftest.$ac_ext <<_ACEOF
6258
/* end confdefs.h. */
6260
# include <limits.h>
6262
# include <assert.h>
6266
if { (ac_try="$ac_cpp conftest.$ac_ext"
6268
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269
*) ac_try_echo=$ac_try;;
6271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6274
grep -v '^ *+' conftest.er1 >conftest.err
6276
cat conftest.err >&5
6277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278
(exit $ac_status); } >/dev/null && {
6279
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6280
test ! -s conftest.err
6284
echo "$as_me: failed program was:" >&5
6285
sed 's/^/| /' conftest.$ac_ext >&5
6287
# Broken: fails on valid input.
6291
rm -f conftest.err conftest.$ac_ext
6293
# OK, works on sane cases. Now check whether nonexistent headers
6294
# can be detected and how.
6295
cat >conftest.$ac_ext <<_ACEOF
6298
cat confdefs.h >>conftest.$ac_ext
6299
cat >>conftest.$ac_ext <<_ACEOF
6300
/* end confdefs.h. */
6301
#include <ac_nonexistent.h>
6303
if { (ac_try="$ac_cpp conftest.$ac_ext"
6305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306
*) ac_try_echo=$ac_try;;
6308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6311
grep -v '^ *+' conftest.er1 >conftest.err
6313
cat conftest.err >&5
6314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315
(exit $ac_status); } >/dev/null && {
6316
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6317
test ! -s conftest.err
6319
# Broken: success on invalid input.
6322
echo "$as_me: failed program was:" >&5
6323
sed 's/^/| /' conftest.$ac_ext >&5
6325
# Passes both tests.
6330
rm -f conftest.err conftest.$ac_ext
6333
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6334
rm -f conftest.err conftest.$ac_ext
6335
if $ac_preproc_ok; then
6338
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6339
See \`config.log' for more details." >&5
6340
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6341
See \`config.log' for more details." >&2;}
6342
{ (exit 1); exit 1; }; }
6346
ac_cpp='$CXXCPP $CPPFLAGS'
6347
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6355
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6356
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6358
if test -n "$ac_tool_prefix"; then
6359
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6361
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6362
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6363
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6364
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365
if test "${ac_cv_prog_F77+set}" = set; then
6366
echo $ECHO_N "(cached) $ECHO_C" >&6
6368
if test -n "$F77"; then
6369
ac_cv_prog_F77="$F77" # Let the user override the test.
6371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375
test -z "$as_dir" && as_dir=.
6376
for ac_exec_ext in '' $ac_executable_extensions; do
6377
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6379
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389
if test -n "$F77"; then
6390
{ echo "$as_me:$LINENO: result: $F77" >&5
6391
echo "${ECHO_T}$F77" >&6; }
6393
{ echo "$as_me:$LINENO: result: no" >&5
6394
echo "${ECHO_T}no" >&6; }
6398
test -n "$F77" && break
6401
if test -z "$F77"; then
6403
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6405
# Extract the first word of "$ac_prog", so it can be a program name with args.
6406
set dummy $ac_prog; ac_word=$2
6407
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6410
echo $ECHO_N "(cached) $ECHO_C" >&6
6412
if test -n "$ac_ct_F77"; then
6413
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419
test -z "$as_dir" && as_dir=.
6420
for ac_exec_ext in '' $ac_executable_extensions; do
6421
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422
ac_cv_prog_ac_ct_F77="$ac_prog"
6423
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6433
if test -n "$ac_ct_F77"; then
6434
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6435
echo "${ECHO_T}$ac_ct_F77" >&6; }
6437
{ echo "$as_me:$LINENO: result: no" >&5
6438
echo "${ECHO_T}no" >&6; }
6442
test -n "$ac_ct_F77" && break
6445
if test "x$ac_ct_F77" = x; then
6448
case $cross_compiling:$ac_tool_warned in
6450
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6451
whose name does not start with the host triplet. If you think this
6452
configuration is useful to you, please write to autoconf@gnu.org." >&5
6453
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6454
whose name does not start with the host triplet. If you think this
6455
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6456
ac_tool_warned=yes ;;
6463
# Provide some information about the compiler.
6464
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6465
ac_compiler=`set X $ac_compile; echo $2`
6466
{ (ac_try="$ac_compiler --version >&5"
6468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469
*) ac_try_echo=$ac_try;;
6471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472
(eval "$ac_compiler --version >&5") 2>&5
6474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475
(exit $ac_status); }
6476
{ (ac_try="$ac_compiler -v >&5"
6478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479
*) ac_try_echo=$ac_try;;
6481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482
(eval "$ac_compiler -v >&5") 2>&5
6484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485
(exit $ac_status); }
6486
{ (ac_try="$ac_compiler -V >&5"
6488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489
*) ac_try_echo=$ac_try;;
6491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492
(eval "$ac_compiler -V >&5") 2>&5
6494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495
(exit $ac_status); }
6498
# If we don't use `.F' as extension, the preprocessor is not run on the
6499
# input file. (Note that this only needs to work for GNU compilers.)
6502
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6503
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6504
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6505
echo $ECHO_N "(cached) $ECHO_C" >&6
6507
cat >conftest.$ac_ext <<_ACEOF
6515
rm -f conftest.$ac_objext
6516
if { (ac_try="$ac_compile"
6518
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519
*) ac_try_echo=$ac_try;;
6521
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522
(eval "$ac_compile") 2>conftest.er1
6524
grep -v '^ *+' conftest.er1 >conftest.err
6526
cat conftest.err >&5
6527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528
(exit $ac_status); } && {
6529
test -z "$ac_f77_werror_flag" ||
6530
test ! -s conftest.err
6531
} && test -s conftest.$ac_objext; then
6534
echo "$as_me: failed program was:" >&5
6535
sed 's/^/| /' conftest.$ac_ext >&5
6540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6544
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6545
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6547
ac_test_FFLAGS=${FFLAGS+set}
6548
ac_save_FFLAGS=$FFLAGS
6550
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6551
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6552
if test "${ac_cv_prog_f77_g+set}" = set; then
6553
echo $ECHO_N "(cached) $ECHO_C" >&6
6556
cat >conftest.$ac_ext <<_ACEOF
6561
rm -f conftest.$ac_objext
6562
if { (ac_try="$ac_compile"
6564
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565
*) ac_try_echo=$ac_try;;
6567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568
(eval "$ac_compile") 2>conftest.er1
6570
grep -v '^ *+' conftest.er1 >conftest.err
6572
cat conftest.err >&5
6573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574
(exit $ac_status); } && {
6575
test -z "$ac_f77_werror_flag" ||
6576
test ! -s conftest.err
6577
} && test -s conftest.$ac_objext; then
6578
ac_cv_prog_f77_g=yes
6580
echo "$as_me: failed program was:" >&5
6581
sed 's/^/| /' conftest.$ac_ext >&5
6586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6590
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6591
if test "$ac_test_FFLAGS" = set; then
6592
FFLAGS=$ac_save_FFLAGS
6593
elif test $ac_cv_prog_f77_g = yes; then
6594
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6600
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6607
G77=`test $ac_compiler_gnu = yes && echo yes`
6609
ac_cpp='$CPP $CPPFLAGS'
6610
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6617
# find the maximum length of command line arguments
6618
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6619
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6620
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6621
echo $ECHO_N "(cached) $ECHO_C" >&6
6628
# On DJGPP, this test can blow up pretty badly due to problems in libc
6629
# (any single argument exceeding 2000 bytes causes a buffer overrun
6630
# during glob expansion). Even if it were fixed, the result of this
6631
# check would be larger than it should be.
6632
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6636
# Under GNU Hurd, this test is not required because there is
6637
# no limit to the length of command line arguments.
6638
# Libtool will interpret -1 as no limit whatsoever
6639
lt_cv_sys_max_cmd_len=-1;
6643
# On Win9x/ME, this test blows up -- it succeeds, but takes
6644
# about 5 minutes as the teststring grows exponentially.
6645
# Worse, since 9x/ME are not pre-emptively multitasking,
6646
# you end up with a "frozen" computer, even though with patience
6647
# the test eventually succeeds (with a max line length of 256k).
6648
# Instead, let's just punt: use the minimum linelength reported by
6649
# all of the supported platforms: 8192 (on NT/2K/XP).
6650
lt_cv_sys_max_cmd_len=8192;
6654
# On AmigaOS with pdksh, this test takes hours, literally.
6655
# So we just punt and use a minimum line length of 8192.
6656
lt_cv_sys_max_cmd_len=8192;
6659
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6660
# This has been around since 386BSD, at least. Likely further.
6661
if test -x /sbin/sysctl; then
6662
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6663
elif test -x /usr/sbin/sysctl; then
6664
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6666
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6668
# And add a safety zone
6669
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6670
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6674
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6675
lt_cv_sys_max_cmd_len=196608
6679
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6680
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6681
# nice to cause kernel panics so lets avoid the loop below.
6682
# First set a reasonable default.
6683
lt_cv_sys_max_cmd_len=16384
6685
if test -x /sbin/sysconfig; then
6686
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6687
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6692
lt_cv_sys_max_cmd_len=102400
6694
sysv5* | sco5v6* | sysv4.2uw2*)
6695
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6696
if test -n "$kargmax"; then
6697
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6699
lt_cv_sys_max_cmd_len=32768
6703
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6704
if test -n "$lt_cv_sys_max_cmd_len"; then
6705
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6706
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6708
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6709
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6710
= "XX$teststring") >/dev/null 2>&1 &&
6711
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6712
lt_cv_sys_max_cmd_len=$new_result &&
6713
test $i != 17 # 1/2 MB should be enough
6716
teststring=$teststring$teststring
6719
# Add a significant safety factor because C++ compilers can tack on massive
6720
# amounts of additional arguments before passing them to the linker.
6721
# It appears as though 1/2 is a usable value.
6722
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6729
if test -n $lt_cv_sys_max_cmd_len ; then
6730
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6731
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6733
{ echo "$as_me:$LINENO: result: none" >&5
6734
echo "${ECHO_T}none" >&6; }
6741
# Check for command to grab the raw symbol name followed by C symbol from nm.
6742
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6743
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6744
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6745
echo $ECHO_N "(cached) $ECHO_C" >&6
6748
# These are sane defaults that work on at least a few old systems.
6749
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6751
# Character class describing NM global symbol codes.
6752
symcode='[BCDEGRST]'
6754
# Regexp to match symbols that can be accessed directly from C.
6755
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6757
# Transform an extracted symbol line into a proper C declaration
6758
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6760
# Transform an extracted symbol line into symbol name and symbol address
6761
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6763
# Define system-specific variables.
6768
cygwin* | mingw* | pw32*)
6769
symcode='[ABCDGISTW]'
6771
hpux*) # Its linker distinguishes data from code symbols
6772
if test "$host_cpu" = ia64; then
6773
symcode='[ABCDEGRST]'
6775
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6776
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6778
linux* | k*bsd*-gnu)
6779
if test "$host_cpu" = ia64; then
6780
symcode='[ABCDGIRSTW]'
6781
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6782
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6786
symcode='[BCDEGRST]'
6789
symcode='[BCDEGQRST]'
6800
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6808
# Handle CRLF in mingw tool chain
6812
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6816
# If we're using GNU nm, then use its standard symbol codes.
6817
case `$NM -V 2>&1` in
6818
*GNU* | *'with BFD'*)
6819
symcode='[ABCDGIRSTW]' ;;
6822
# Try without a prefix undercore, then with it.
6823
for ac_symprfx in "" "_"; do
6825
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6826
symxfrm="\\1 $ac_symprfx\\2 \\2"
6828
# Write the raw and C identifiers.
6829
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6831
# Check to see that the pipe works correctly.
6835
cat > conftest.$ac_ext <<EOF
6840
void nm_test_func(){}
6844
int main(){nm_test_var='a';nm_test_func();return(0);}
6847
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848
(eval $ac_compile) 2>&5
6850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851
(exit $ac_status); }; then
6852
# Now try to grab the symbols.
6854
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6855
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858
(exit $ac_status); } && test -s "$nlist"; then
6859
# Try sorting and uniquifying the output.
6860
if sort "$nlist" | uniq > "$nlist"T; then
6861
mv -f "$nlist"T "$nlist"
6866
# Make sure that we snagged all the symbols we need.
6867
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6868
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6869
cat <<EOF > conftest.$ac_ext
6875
# Now generate the symbol file.
6876
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6878
cat <<EOF >> conftest.$ac_ext
6879
#if defined (__STDC__) && __STDC__
6880
# define lt_ptr_t void *
6882
# define lt_ptr_t char *
6886
/* The mapping between symbol names and symbols. */
6891
lt_preloaded_symbols[] =
6894
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6895
cat <<\EOF >> conftest.$ac_ext
6903
# Now try linking the two files.
6904
mv conftest.$ac_objext conftstm.$ac_objext
6905
lt_save_LIBS="$LIBS"
6906
lt_save_CFLAGS="$CFLAGS"
6907
LIBS="conftstm.$ac_objext"
6908
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910
(eval $ac_link) 2>&5
6912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6916
LIBS="$lt_save_LIBS"
6917
CFLAGS="$lt_save_CFLAGS"
6919
echo "cannot find nm_test_func in $nlist" >&5
6922
echo "cannot find nm_test_var in $nlist" >&5
6925
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6928
echo "$progname: failed program was:" >&5
6929
cat conftest.$ac_ext >&5
6931
rm -rf conftest* conftst*
6933
# Do not use the global_symbol_pipe unless it works.
6934
if test "$pipe_works" = yes; then
6937
lt_cv_sys_global_symbol_pipe=
6943
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6944
lt_cv_sys_global_symbol_to_cdecl=
6946
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6947
{ echo "$as_me:$LINENO: result: failed" >&5
6948
echo "${ECHO_T}failed" >&6; }
6950
{ echo "$as_me:$LINENO: result: ok" >&5
6951
echo "${ECHO_T}ok" >&6; }
6954
{ echo "$as_me:$LINENO: checking for objdir" >&5
6955
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6956
if test "${lt_cv_objdir+set}" = set; then
6957
echo $ECHO_N "(cached) $ECHO_C" >&6
6959
rm -f .libs 2>/dev/null
6960
mkdir .libs 2>/dev/null
6961
if test -d .libs; then
6964
# MS-DOS does not allow filenames that begin with a dot.
6967
rmdir .libs 2>/dev/null
6969
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6970
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6971
objdir=$lt_cv_objdir
6979
# AIX sometimes has problems with the GCC collect2 program. For some
6980
# reason, if we set the COLLECT_NAMES environment variable, the problems
6981
# vanish in a puff of smoke.
6982
if test "X${COLLECT_NAMES+set}" != Xset; then
6984
export COLLECT_NAMES
6989
# Sed substitution that helps us do robust quoting. It backslashifies
6990
# metacharacters that are still active within double-quoted strings.
6991
Xsed='sed -e 1s/^X//'
6992
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6994
# Same as above, but do not quote variable references.
6995
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6997
# Sed substitution to delay expansion of an escaped shell variable in a
6998
# double_quote_subst'ed string.
6999
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7001
# Sed substitution to avoid accidental globbing in evaled expressions
7002
no_glob_subst='s/\*/\\\*/g'
7008
default_ofile=libtool
7009
can_build_shared=yes
7011
# All known linkers require a `.a' archive for static linking (except MSVC,
7012
# which needs '.lib').
7014
ltmain="$ac_aux_dir/ltmain.sh"
7015
ofile="$default_ofile"
7016
with_gnu_ld="$lt_cv_prog_gnu_ld"
7018
if test -n "$ac_tool_prefix"; then
7019
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7020
set dummy ${ac_tool_prefix}ar; ac_word=$2
7021
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023
if test "${ac_cv_prog_AR+set}" = set; then
7024
echo $ECHO_N "(cached) $ECHO_C" >&6
7026
if test -n "$AR"; then
7027
ac_cv_prog_AR="$AR" # Let the user override the test.
7029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033
test -z "$as_dir" && as_dir=.
7034
for ac_exec_ext in '' $ac_executable_extensions; do
7035
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036
ac_cv_prog_AR="${ac_tool_prefix}ar"
7037
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047
if test -n "$AR"; then
7048
{ echo "$as_me:$LINENO: result: $AR" >&5
7049
echo "${ECHO_T}$AR" >&6; }
7051
{ echo "$as_me:$LINENO: result: no" >&5
7052
echo "${ECHO_T}no" >&6; }
7057
if test -z "$ac_cv_prog_AR"; then
7059
# Extract the first word of "ar", so it can be a program name with args.
7060
set dummy ar; ac_word=$2
7061
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7064
echo $ECHO_N "(cached) $ECHO_C" >&6
7066
if test -n "$ac_ct_AR"; then
7067
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073
test -z "$as_dir" && as_dir=.
7074
for ac_exec_ext in '' $ac_executable_extensions; do
7075
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076
ac_cv_prog_ac_ct_AR="ar"
7077
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7087
if test -n "$ac_ct_AR"; then
7088
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7089
echo "${ECHO_T}$ac_ct_AR" >&6; }
7091
{ echo "$as_me:$LINENO: result: no" >&5
7092
echo "${ECHO_T}no" >&6; }
7095
if test "x$ac_ct_AR" = x; then
7098
case $cross_compiling:$ac_tool_warned in
7100
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7101
whose name does not start with the host triplet. If you think this
7102
configuration is useful to you, please write to autoconf@gnu.org." >&5
7103
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7104
whose name does not start with the host triplet. If you think this
7105
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7106
ac_tool_warned=yes ;;
7114
if test -n "$ac_tool_prefix"; then
7115
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7116
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7117
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7118
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119
if test "${ac_cv_prog_RANLIB+set}" = set; then
7120
echo $ECHO_N "(cached) $ECHO_C" >&6
7122
if test -n "$RANLIB"; then
7123
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129
test -z "$as_dir" && as_dir=.
7130
for ac_exec_ext in '' $ac_executable_extensions; do
7131
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7133
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142
RANLIB=$ac_cv_prog_RANLIB
7143
if test -n "$RANLIB"; then
7144
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
7145
echo "${ECHO_T}$RANLIB" >&6; }
7147
{ echo "$as_me:$LINENO: result: no" >&5
7148
echo "${ECHO_T}no" >&6; }
7153
if test -z "$ac_cv_prog_RANLIB"; then
7154
ac_ct_RANLIB=$RANLIB
7155
# Extract the first word of "ranlib", so it can be a program name with args.
7156
set dummy ranlib; ac_word=$2
7157
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7158
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7160
echo $ECHO_N "(cached) $ECHO_C" >&6
7162
if test -n "$ac_ct_RANLIB"; then
7163
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169
test -z "$as_dir" && as_dir=.
7170
for ac_exec_ext in '' $ac_executable_extensions; do
7171
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172
ac_cv_prog_ac_ct_RANLIB="ranlib"
7173
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7183
if test -n "$ac_ct_RANLIB"; then
7184
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7185
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7187
{ echo "$as_me:$LINENO: result: no" >&5
7188
echo "${ECHO_T}no" >&6; }
7191
if test "x$ac_ct_RANLIB" = x; then
7194
case $cross_compiling:$ac_tool_warned in
7196
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197
whose name does not start with the host triplet. If you think this
7198
configuration is useful to you, please write to autoconf@gnu.org." >&5
7199
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200
whose name does not start with the host triplet. If you think this
7201
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202
ac_tool_warned=yes ;;
7204
RANLIB=$ac_ct_RANLIB
7207
RANLIB="$ac_cv_prog_RANLIB"
7210
if test -n "$ac_tool_prefix"; then
7211
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7212
set dummy ${ac_tool_prefix}strip; ac_word=$2
7213
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7214
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215
if test "${ac_cv_prog_STRIP+set}" = set; then
7216
echo $ECHO_N "(cached) $ECHO_C" >&6
7218
if test -n "$STRIP"; then
7219
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225
test -z "$as_dir" && as_dir=.
7226
for ac_exec_ext in '' $ac_executable_extensions; do
7227
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7229
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7238
STRIP=$ac_cv_prog_STRIP
7239
if test -n "$STRIP"; then
7240
{ echo "$as_me:$LINENO: result: $STRIP" >&5
7241
echo "${ECHO_T}$STRIP" >&6; }
7243
{ echo "$as_me:$LINENO: result: no" >&5
7244
echo "${ECHO_T}no" >&6; }
7249
if test -z "$ac_cv_prog_STRIP"; then
7251
# Extract the first word of "strip", so it can be a program name with args.
7252
set dummy strip; ac_word=$2
7253
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7254
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7256
echo $ECHO_N "(cached) $ECHO_C" >&6
7258
if test -n "$ac_ct_STRIP"; then
7259
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7261
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265
test -z "$as_dir" && as_dir=.
7266
for ac_exec_ext in '' $ac_executable_extensions; do
7267
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7268
ac_cv_prog_ac_ct_STRIP="strip"
7269
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7279
if test -n "$ac_ct_STRIP"; then
7280
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7281
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7283
{ echo "$as_me:$LINENO: result: no" >&5
7284
echo "${ECHO_T}no" >&6; }
7287
if test "x$ac_ct_STRIP" = x; then
7290
case $cross_compiling:$ac_tool_warned in
7292
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7293
whose name does not start with the host triplet. If you think this
7294
configuration is useful to you, please write to autoconf@gnu.org." >&5
7295
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7296
whose name does not start with the host triplet. If you think this
7297
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7298
ac_tool_warned=yes ;;
7303
STRIP="$ac_cv_prog_STRIP"
7308
old_CFLAGS="$CFLAGS"
7310
# Set sane defaults for various variables
7311
test -z "$AR" && AR=ar
7312
test -z "$AR_FLAGS" && AR_FLAGS=cru
7313
test -z "$AS" && AS=as
7314
test -z "$CC" && CC=cc
7315
test -z "$LTCC" && LTCC=$CC
7316
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7317
test -z "$DLLTOOL" && DLLTOOL=dlltool
7318
test -z "$LD" && LD=ld
7319
test -z "$LN_S" && LN_S="ln -s"
7320
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7321
test -z "$NM" && NM=nm
7322
test -z "$SED" && SED=sed
7323
test -z "$OBJDUMP" && OBJDUMP=objdump
7324
test -z "$RANLIB" && RANLIB=:
7325
test -z "$STRIP" && STRIP=:
7326
test -z "$ac_objext" && ac_objext=o
7328
# Determine commands to create old-style static archives.
7329
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7330
old_postinstall_cmds='chmod 644 $oldlib'
7331
old_postuninstall_cmds=
7333
if test -n "$RANLIB"; then
7336
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7339
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7342
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7345
for cc_temp in $compiler""; do
7347
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7348
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7353
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7356
# Only perform the check for file, if the check method requires it
7357
case $deplibs_check_method in
7359
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7360
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7361
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7362
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7363
echo $ECHO_N "(cached) $ECHO_C" >&6
7367
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7370
lt_save_MAGIC_CMD="$MAGIC_CMD"
7371
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7373
for ac_dir in $ac_dummy; do
7375
test -z "$ac_dir" && ac_dir=.
7376
if test -f $ac_dir/${ac_tool_prefix}file; then
7377
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7378
if test -n "$file_magic_test_file"; then
7379
case $deplibs_check_method in
7381
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7382
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7383
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7384
$EGREP "$file_magic_regex" > /dev/null; then
7389
*** Warning: the command libtool uses to detect shared libraries,
7390
*** $file_magic_cmd, produces output that libtool cannot recognize.
7391
*** The result is that libtool may fail to recognize shared libraries
7392
*** as such. This will affect the creation of libtool libraries that
7393
*** depend on shared libraries, but programs linked with such libtool
7394
*** libraries will work regardless of this problem. Nevertheless, you
7395
*** may want to report the problem to your system manager and/or to
7396
*** bug-libtool@gnu.org
7406
MAGIC_CMD="$lt_save_MAGIC_CMD"
7411
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7412
if test -n "$MAGIC_CMD"; then
7413
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7414
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7416
{ echo "$as_me:$LINENO: result: no" >&5
7417
echo "${ECHO_T}no" >&6; }
7420
if test -z "$lt_cv_path_MAGIC_CMD"; then
7421
if test -n "$ac_tool_prefix"; then
7422
{ echo "$as_me:$LINENO: checking for file" >&5
7423
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7424
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7425
echo $ECHO_N "(cached) $ECHO_C" >&6
7429
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7432
lt_save_MAGIC_CMD="$MAGIC_CMD"
7433
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7434
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7435
for ac_dir in $ac_dummy; do
7437
test -z "$ac_dir" && ac_dir=.
7438
if test -f $ac_dir/file; then
7439
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7440
if test -n "$file_magic_test_file"; then
7441
case $deplibs_check_method in
7443
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7444
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7446
$EGREP "$file_magic_regex" > /dev/null; then
7451
*** Warning: the command libtool uses to detect shared libraries,
7452
*** $file_magic_cmd, produces output that libtool cannot recognize.
7453
*** The result is that libtool may fail to recognize shared libraries
7454
*** as such. This will affect the creation of libtool libraries that
7455
*** depend on shared libraries, but programs linked with such libtool
7456
*** libraries will work regardless of this problem. Nevertheless, you
7457
*** may want to report the problem to your system manager and/or to
7458
*** bug-libtool@gnu.org
7468
MAGIC_CMD="$lt_save_MAGIC_CMD"
7473
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474
if test -n "$MAGIC_CMD"; then
7475
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7476
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7478
{ echo "$as_me:$LINENO: result: no" >&5
7479
echo "${ECHO_T}no" >&6; }
7493
rhapsody* | darwin*)
7494
if test -n "$ac_tool_prefix"; then
7495
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7496
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7497
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7500
echo $ECHO_N "(cached) $ECHO_C" >&6
7502
if test -n "$DSYMUTIL"; then
7503
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509
test -z "$as_dir" && as_dir=.
7510
for ac_exec_ext in '' $ac_executable_extensions; do
7511
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7513
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7523
if test -n "$DSYMUTIL"; then
7524
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7525
echo "${ECHO_T}$DSYMUTIL" >&6; }
7527
{ echo "$as_me:$LINENO: result: no" >&5
7528
echo "${ECHO_T}no" >&6; }
7533
if test -z "$ac_cv_prog_DSYMUTIL"; then
7534
ac_ct_DSYMUTIL=$DSYMUTIL
7535
# Extract the first word of "dsymutil", so it can be a program name with args.
7536
set dummy dsymutil; ac_word=$2
7537
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7538
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7540
echo $ECHO_N "(cached) $ECHO_C" >&6
7542
if test -n "$ac_ct_DSYMUTIL"; then
7543
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549
test -z "$as_dir" && as_dir=.
7550
for ac_exec_ext in '' $ac_executable_extensions; do
7551
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7553
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7563
if test -n "$ac_ct_DSYMUTIL"; then
7564
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7565
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7567
{ echo "$as_me:$LINENO: result: no" >&5
7568
echo "${ECHO_T}no" >&6; }
7571
if test "x$ac_ct_DSYMUTIL" = x; then
7574
case $cross_compiling:$ac_tool_warned in
7576
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7577
whose name does not start with the host triplet. If you think this
7578
configuration is useful to you, please write to autoconf@gnu.org." >&5
7579
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7580
whose name does not start with the host triplet. If you think this
7581
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7582
ac_tool_warned=yes ;;
7584
DSYMUTIL=$ac_ct_DSYMUTIL
7587
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7590
if test -n "$ac_tool_prefix"; then
7591
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7592
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7593
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7595
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7596
echo $ECHO_N "(cached) $ECHO_C" >&6
7598
if test -n "$NMEDIT"; then
7599
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605
test -z "$as_dir" && as_dir=.
7606
for ac_exec_ext in '' $ac_executable_extensions; do
7607
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7609
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618
NMEDIT=$ac_cv_prog_NMEDIT
7619
if test -n "$NMEDIT"; then
7620
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
7621
echo "${ECHO_T}$NMEDIT" >&6; }
7623
{ echo "$as_me:$LINENO: result: no" >&5
7624
echo "${ECHO_T}no" >&6; }
7629
if test -z "$ac_cv_prog_NMEDIT"; then
7630
ac_ct_NMEDIT=$NMEDIT
7631
# Extract the first word of "nmedit", so it can be a program name with args.
7632
set dummy nmedit; ac_word=$2
7633
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7636
echo $ECHO_N "(cached) $ECHO_C" >&6
7638
if test -n "$ac_ct_NMEDIT"; then
7639
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645
test -z "$as_dir" && as_dir=.
7646
for ac_exec_ext in '' $ac_executable_extensions; do
7647
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7649
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7658
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7659
if test -n "$ac_ct_NMEDIT"; then
7660
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7661
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7663
{ echo "$as_me:$LINENO: result: no" >&5
7664
echo "${ECHO_T}no" >&6; }
7667
if test "x$ac_ct_NMEDIT" = x; then
7670
case $cross_compiling:$ac_tool_warned in
7672
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7673
whose name does not start with the host triplet. If you think this
7674
configuration is useful to you, please write to autoconf@gnu.org." >&5
7675
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7676
whose name does not start with the host triplet. If you think this
7677
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7678
ac_tool_warned=yes ;;
7680
NMEDIT=$ac_ct_NMEDIT
7683
NMEDIT="$ac_cv_prog_NMEDIT"
7687
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7688
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7689
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7690
echo $ECHO_N "(cached) $ECHO_C" >&6
7692
lt_cv_apple_cc_single_mod=no
7693
if test -z "${LT_MULTI_MODULE}"; then
7694
# By default we will add the -single_module flag. You can override
7695
# by either setting the environment variable LT_MULTI_MODULE
7696
# non-empty at configure time, or by adding -multi_module to the
7698
echo "int foo(void){return 1;}" > conftest.c
7699
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7700
-dynamiclib ${wl}-single_module conftest.c
7701
if test -f libconftest.dylib; then
7702
lt_cv_apple_cc_single_mod=yes
7703
rm -rf libconftest.dylib*
7708
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7709
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7710
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7711
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7712
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7713
echo $ECHO_N "(cached) $ECHO_C" >&6
7715
lt_cv_ld_exported_symbols_list=no
7716
save_LDFLAGS=$LDFLAGS
7717
echo "_main" > conftest.sym
7718
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7719
cat >conftest.$ac_ext <<_ACEOF
7722
cat confdefs.h >>conftest.$ac_ext
7723
cat >>conftest.$ac_ext <<_ACEOF
7724
/* end confdefs.h. */
7734
rm -f conftest.$ac_objext conftest$ac_exeext
7735
if { (ac_try="$ac_link"
7737
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738
*) ac_try_echo=$ac_try;;
7740
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741
(eval "$ac_link") 2>conftest.er1
7743
grep -v '^ *+' conftest.er1 >conftest.err
7745
cat conftest.err >&5
7746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747
(exit $ac_status); } && {
7748
test -z "$ac_c_werror_flag" ||
7749
test ! -s conftest.err
7750
} && test -s conftest$ac_exeext &&
7751
$as_test_x conftest$ac_exeext; then
7752
lt_cv_ld_exported_symbols_list=yes
7754
echo "$as_me: failed program was:" >&5
7755
sed 's/^/| /' conftest.$ac_ext >&5
7757
lt_cv_ld_exported_symbols_list=no
7760
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7761
conftest$ac_exeext conftest.$ac_ext
7762
LDFLAGS="$save_LDFLAGS"
7765
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7766
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7768
rhapsody* | darwin1.[0123])
7769
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7771
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7773
# if running on 10.5 or later, the deployment target defaults
7774
# to the OS version, if on x86, and 10.4, the deployment
7775
# target defaults to 10.4. Don't you love it?
7776
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7777
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7778
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7780
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7782
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7786
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7787
_lt_dar_single_mod='$single_module'
7789
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7790
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7792
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7794
if test "$DSYMUTIL" != ":"; then
7795
_lt_dsymutil="~$DSYMUTIL \$lib || :"
7806
# Check whether --enable-libtool-lock was given.
7807
if test "${enable_libtool_lock+set}" = set; then
7808
enableval=$enable_libtool_lock;
7811
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7814
# Check whether --with-pic was given.
7815
if test "${with_pic+set}" = set; then
7816
withval=$with_pic; pic_mode="$withval"
7821
test -z "$pic_mode" && pic_mode=default
7823
# Use C for the default configuration in the libtool script
7827
ac_cpp='$CPP $CPPFLAGS'
7828
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
# Source file extension for C test sources.
7836
# Object file extension for compiled C test sources.
7840
# Code to be used in simple compile tests
7841
lt_simple_compile_test_code="int some_variable = 0;"
7843
# Code to be used in simple link tests
7844
lt_simple_link_test_code='int main(){return(0);}'
7847
# If no C compiler was specified, use CC.
7850
# If no C compiler flags were specified, use CFLAGS.
7851
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7853
# Allow CC to be a program name with arguments.
7857
# save warnings/boilerplate of simple test code
7858
ac_outfile=conftest.$ac_objext
7859
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7860
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7861
_lt_compiler_boilerplate=`cat conftest.err`
7864
ac_outfile=conftest.$ac_objext
7865
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7866
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7867
_lt_linker_boilerplate=`cat conftest.err`
7872
lt_prog_compiler_no_builtin_flag=
7874
if test "$GCC" = yes; then
7875
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7878
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7879
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7880
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7881
echo $ECHO_N "(cached) $ECHO_C" >&6
7883
lt_cv_prog_compiler_rtti_exceptions=no
7884
ac_outfile=conftest.$ac_objext
7885
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7886
lt_compiler_flag="-fno-rtti -fno-exceptions"
7887
# Insert the option either (1) after the last *FLAGS variable, or
7888
# (2) before a word containing "conftest.", or (3) at the end.
7889
# Note that $ac_compile itself does not contain backslashes and begins
7890
# with a dollar sign (not a hyphen), so the echo should work correctly.
7891
# The option is referenced via a variable to avoid confusing sed.
7892
lt_compile=`echo "$ac_compile" | $SED \
7893
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7894
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7895
-e 's:$: $lt_compiler_flag:'`
7896
(eval echo "\"\$as_me:7896: $lt_compile\"" >&5)
7897
(eval "$lt_compile" 2>conftest.err)
7899
cat conftest.err >&5
7900
echo "$as_me:7900: \$? = $ac_status" >&5
7901
if (exit $ac_status) && test -s "$ac_outfile"; then
7902
# The compiler can only warn and ignore the option if not recognized
7903
# So say no if there are warnings other than the usual output.
7904
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7905
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7906
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7907
lt_cv_prog_compiler_rtti_exceptions=yes
7913
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7914
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7916
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7917
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7924
lt_prog_compiler_wl=
7925
lt_prog_compiler_pic=
7926
lt_prog_compiler_static=
7928
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7929
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7931
if test "$GCC" = yes; then
7932
lt_prog_compiler_wl='-Wl,'
7933
lt_prog_compiler_static='-static'
7937
# All AIX code is PIC.
7938
if test "$host_cpu" = ia64; then
7939
# AIX 5 now supports IA64 processor
7940
lt_prog_compiler_static='-Bstatic'
7945
# FIXME: we need at least 68020 code to build shared libraries, but
7946
# adding the `-m68020' flag to GCC prevents building anything better,
7948
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7951
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7952
# PIC is the default for these OSes.
7955
mingw* | cygwin* | pw32* | os2*)
7956
# This hack is so that the source file can tell whether it is being
7957
# built for inclusion in a dll (and should export symbols for example).
7958
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7959
# (--disable-auto-import) libraries
7960
lt_prog_compiler_pic='-DDLL_EXPORT'
7963
darwin* | rhapsody*)
7964
# PIC is the default on this platform
7965
# Common symbols not allowed in MH_DYLIB files
7966
lt_prog_compiler_pic='-fno-common'
7970
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7971
# Instead, we relocate shared libraries at runtime.
7975
# Just because we use GCC doesn't mean we suddenly get shared libraries
7976
# on systems that don't support them.
7977
lt_prog_compiler_can_build_shared=no
7982
if test -d /usr/nec; then
7983
lt_prog_compiler_pic=-Kconform_pic
7988
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7995
lt_prog_compiler_pic='-fPIC'
8001
lt_prog_compiler_pic='-fPIC'
8005
# PORTME Check for flag to pass linker flags through the system compiler.
8008
lt_prog_compiler_wl='-Wl,'
8009
if test "$host_cpu" = ia64; then
8010
# AIX 5 now supports IA64 processor
8011
lt_prog_compiler_static='-Bstatic'
8013
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8017
# PIC is the default on this platform
8018
# Common symbols not allowed in MH_DYLIB files
8019
case $cc_basename in
8021
lt_prog_compiler_pic='-qnocommon'
8022
lt_prog_compiler_wl='-Wl,'
8027
mingw* | cygwin* | pw32* | os2*)
8028
# This hack is so that the source file can tell whether it is being
8029
# built for inclusion in a dll (and should export symbols for example).
8030
lt_prog_compiler_pic='-DDLL_EXPORT'
8033
hpux9* | hpux10* | hpux11*)
8034
lt_prog_compiler_wl='-Wl,'
8035
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8042
lt_prog_compiler_pic='+Z'
8045
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8046
lt_prog_compiler_static='${wl}-a ${wl}archive'
8049
irix5* | irix6* | nonstopux*)
8050
lt_prog_compiler_wl='-Wl,'
8051
# PIC (with -KPIC) is the default.
8052
lt_prog_compiler_static='-non_shared'
8056
lt_prog_compiler_pic='-KPIC'
8057
lt_prog_compiler_static='-Bstatic'
8060
linux* | k*bsd*-gnu)
8061
case $cc_basename in
8063
lt_prog_compiler_wl='-Wl,'
8064
lt_prog_compiler_pic='-KPIC'
8065
lt_prog_compiler_static='-static'
8067
pgcc* | pgf77* | pgf90* | pgf95*)
8068
# Portland Group compilers (*not* the Pentium gcc compiler,
8069
# which looks to be a dead project)
8070
lt_prog_compiler_wl='-Wl,'
8071
lt_prog_compiler_pic='-fpic'
8072
lt_prog_compiler_static='-Bstatic'
8075
lt_prog_compiler_wl='-Wl,'
8076
# All Alpha code is PIC.
8077
lt_prog_compiler_static='-non_shared'
8080
case `$CC -V 2>&1 | sed 5q` in
8083
lt_prog_compiler_pic='-KPIC'
8084
lt_prog_compiler_static='-Bstatic'
8085
lt_prog_compiler_wl='-Wl,'
8088
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8089
lt_prog_compiler_pic='-KPIC'
8090
lt_prog_compiler_static='-Bstatic'
8091
lt_prog_compiler_wl=''
8098
osf3* | osf4* | osf5*)
8099
lt_prog_compiler_wl='-Wl,'
8100
# All OSF/1 code is PIC.
8101
lt_prog_compiler_static='-non_shared'
8105
lt_prog_compiler_static='-non_shared'
8109
lt_prog_compiler_pic='-KPIC'
8110
lt_prog_compiler_static='-Bstatic'
8111
case $cc_basename in
8113
lt_prog_compiler_wl='-Qoption ld ';;
8115
lt_prog_compiler_wl='-Wl,';;
8120
lt_prog_compiler_wl='-Qoption ld '
8121
lt_prog_compiler_pic='-PIC'
8122
lt_prog_compiler_static='-Bstatic'
8125
sysv4 | sysv4.2uw2* | sysv4.3*)
8126
lt_prog_compiler_wl='-Wl,'
8127
lt_prog_compiler_pic='-KPIC'
8128
lt_prog_compiler_static='-Bstatic'
8132
if test -d /usr/nec ;then
8133
lt_prog_compiler_pic='-Kconform_pic'
8134
lt_prog_compiler_static='-Bstatic'
8138
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8139
lt_prog_compiler_wl='-Wl,'
8140
lt_prog_compiler_pic='-KPIC'
8141
lt_prog_compiler_static='-Bstatic'
8145
lt_prog_compiler_wl='-Wl,'
8146
lt_prog_compiler_can_build_shared=no
8150
lt_prog_compiler_pic='-pic'
8151
lt_prog_compiler_static='-Bstatic'
8155
lt_prog_compiler_can_build_shared=no
8160
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8161
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8164
# Check to make sure the PIC flag actually works.
8166
if test -n "$lt_prog_compiler_pic"; then
8168
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8169
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8170
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8171
echo $ECHO_N "(cached) $ECHO_C" >&6
8173
lt_cv_prog_compiler_pic_works=no
8174
ac_outfile=conftest.$ac_objext
8175
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8176
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8177
# Insert the option either (1) after the last *FLAGS variable, or
8178
# (2) before a word containing "conftest.", or (3) at the end.
8179
# Note that $ac_compile itself does not contain backslashes and begins
8180
# with a dollar sign (not a hyphen), so the echo should work correctly.
8181
# The option is referenced via a variable to avoid confusing sed.
8182
lt_compile=`echo "$ac_compile" | $SED \
8183
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8184
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8185
-e 's:$: $lt_compiler_flag:'`
8186
(eval echo "\"\$as_me:8186: $lt_compile\"" >&5)
8187
(eval "$lt_compile" 2>conftest.err)
8189
cat conftest.err >&5
8190
echo "$as_me:8190: \$? = $ac_status" >&5
8191
if (exit $ac_status) && test -s "$ac_outfile"; then
8192
# The compiler can only warn and ignore the option if not recognized
8193
# So say no if there are warnings other than the usual output.
8194
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8195
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8196
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8197
lt_cv_prog_compiler_pic_works=yes
8203
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8204
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8206
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8207
case $lt_prog_compiler_pic in
8209
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8212
lt_prog_compiler_pic=
8213
lt_prog_compiler_can_build_shared=no
8218
# For platforms which do not support PIC, -DPIC is meaningless:
8220
lt_prog_compiler_pic=
8223
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8228
# Check to make sure the static flag actually works.
8230
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8231
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8232
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8233
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8234
echo $ECHO_N "(cached) $ECHO_C" >&6
8236
lt_cv_prog_compiler_static_works=no
8237
save_LDFLAGS="$LDFLAGS"
8238
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8239
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8240
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8241
# The linker can only warn and ignore the option if not recognized
8242
# So say no if there are warnings
8243
if test -s conftest.err; then
8244
# Append any errors to the config.log.
8245
cat conftest.err 1>&5
8246
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8247
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8248
if diff conftest.exp conftest.er2 >/dev/null; then
8249
lt_cv_prog_compiler_static_works=yes
8252
lt_cv_prog_compiler_static_works=yes
8256
LDFLAGS="$save_LDFLAGS"
8259
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8260
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8262
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8265
lt_prog_compiler_static=
8269
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8270
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8271
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8272
echo $ECHO_N "(cached) $ECHO_C" >&6
8274
lt_cv_prog_compiler_c_o=no
8275
$rm -r conftest 2>/dev/null
8279
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8281
lt_compiler_flag="-o out/conftest2.$ac_objext"
8282
# Insert the option either (1) after the last *FLAGS variable, or
8283
# (2) before a word containing "conftest.", or (3) at the end.
8284
# Note that $ac_compile itself does not contain backslashes and begins
8285
# with a dollar sign (not a hyphen), so the echo should work correctly.
8286
lt_compile=`echo "$ac_compile" | $SED \
8287
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8288
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8289
-e 's:$: $lt_compiler_flag:'`
8290
(eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
8291
(eval "$lt_compile" 2>out/conftest.err)
8293
cat out/conftest.err >&5
8294
echo "$as_me:8294: \$? = $ac_status" >&5
8295
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8297
# The compiler can only warn and ignore the option if not recognized
8298
# So say no if there are warnings
8299
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8300
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8301
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8302
lt_cv_prog_compiler_c_o=yes
8307
# SGI C++ compiler will create directory out/ii_files/ for
8308
# template instantiation
8309
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8310
$rm out/* && rmdir out
8316
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8317
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8320
hard_links="nottested"
8321
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8322
# do not overwrite the value of need_locks provided by the user
8323
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8324
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8327
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8329
ln conftest.a conftest.b 2>&5 || hard_links=no
8330
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8331
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8332
echo "${ECHO_T}$hard_links" >&6; }
8333
if test "$hard_links" = no; then
8334
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8335
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8342
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8343
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8346
allow_undefined_flag=
8347
enable_shared_with_static_runtimes=no
8349
archive_expsym_cmds=
8350
old_archive_From_new_cmds=
8351
old_archive_from_expsyms_cmds=
8352
export_dynamic_flag_spec=
8353
whole_archive_flag_spec=
8354
thread_safe_flag_spec=
8355
hardcode_libdir_flag_spec=
8356
hardcode_libdir_flag_spec_ld=
8357
hardcode_libdir_separator=
8360
hardcode_shlibpath_var=unsupported
8361
link_all_deplibs=unknown
8362
hardcode_automatic=no
8365
always_export_symbols=no
8366
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8367
# include_expsyms should be a list of space-separated symbols to be *always*
8368
# included in the symbol list
8370
# exclude_expsyms can be an extended regexp of symbols to exclude
8371
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8372
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8373
# as well as any symbol that contains `d'.
8374
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8375
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8376
# platforms (ab)use it in PIC code, but their linkers get confused if
8377
# the symbol is explicitly referenced. Since portable code cannot
8378
# rely on this symbol name, it's probably fine to never include it in
8379
# preloaded symbol tables.
8380
# Exclude shared library initialization/finalization symbols.
8381
extract_expsyms_cmds=
8382
# Just being paranoid about ensuring that cc_basename is set.
8383
for cc_temp in $compiler""; do
8385
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8386
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8391
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8394
cygwin* | mingw* | pw32*)
8395
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8396
# When not using gcc, we currently assume that we are using
8397
# Microsoft Visual C++.
8398
if test "$GCC" != yes; then
8403
# we just hope/assume this is gcc and not c89 (= MSVC++)
8412
if test "$with_gnu_ld" = yes; then
8413
# If archive_cmds runs LD, not CC, wlarc should be empty
8416
# Set some defaults for GNU ld with shared library support. These
8417
# are reset later if shared libraries are not supported. Putting them
8418
# here allows them to be overridden if necessary.
8419
runpath_var=LD_RUN_PATH
8420
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8421
export_dynamic_flag_spec='${wl}--export-dynamic'
8422
# ancient GNU ld didn't support --whole-archive et. al.
8423
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8424
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8426
whole_archive_flag_spec=
8428
supports_anon_versioning=no
8429
case `$LD -v 2>/dev/null` in
8430
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8431
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8432
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8433
*\ 2.11.*) ;; # other 2.11 versions
8434
*) supports_anon_versioning=yes ;;
8437
# See if GNU ld supports shared libraries.
8440
# On AIX/PPC, the GNU linker is very broken
8441
if test "$host_cpu" != ia64; then
8445
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8446
*** to be unable to reliably create shared libraries on AIX.
8447
*** Therefore, libtool is disabling shared libraries support. If you
8448
*** really care for shared libraries, you may want to modify your PATH
8449
*** so that a non-GNU linker is found, and then restart.
8456
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)'
8457
hardcode_libdir_flag_spec='-L$libdir'
8458
hardcode_minus_L=yes
8460
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8461
# that the semantics of dynamic libraries on AmigaOS, at least up
8462
# to version 4, is to share data among multiple programs linked
8463
# with the same dynamic library. Since this doesn't match the
8464
# behavior of shared libraries on other platforms, we can't use
8470
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8471
allow_undefined_flag=unsupported
8472
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8473
# support --undefined. This deserves some investigation. FIXME
8474
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480
cygwin* | mingw* | pw32*)
8481
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8482
# as there is no search path for DLLs.
8483
hardcode_libdir_flag_spec='-L$libdir'
8484
allow_undefined_flag=unsupported
8485
always_export_symbols=no
8486
enable_shared_with_static_runtimes=yes
8487
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8489
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8490
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8491
# If the export-symbols file already is a .def file (1st line
8492
# is EXPORTS), use it as is; otherwise, prepend...
8493
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8494
cp $export_symbols $output_objdir/$soname.def;
8496
echo EXPORTS > $output_objdir/$soname.def;
8497
cat $export_symbols >> $output_objdir/$soname.def;
8499
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8507
hardcode_shlibpath_var=no
8508
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8509
export_dynamic_flag_spec='${wl}-E'
8510
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8511
# Instead, shared libraries are loaded at an image base (0x10000000 by
8512
# default) and relocated if they conflict, which is a slow very memory
8513
# consuming and fragmenting process. To avoid this, we pick a random,
8514
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8515
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8516
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8517
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'
8520
gnu* | linux* | k*bsd*-gnu)
8521
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8523
case $cc_basename,$host_cpu in
8524
pgcc*) # Portland Group C compiler
8525
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'
8526
tmp_addflag=' $pic_flag'
8528
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8529
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'
8530
tmp_addflag=' $pic_flag -Mnomain' ;;
8531
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8532
tmp_addflag=' -i_dynamic' ;;
8533
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8534
tmp_addflag=' -i_dynamic -nofor_main' ;;
8535
ifc* | ifort*) # Intel Fortran compiler
8536
tmp_addflag=' -nofor_main' ;;
8538
case `$CC -V 2>&1 | sed 5q` in
8539
*Sun\ C*) # Sun C 5.9
8540
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'
8541
tmp_sharedflag='-G' ;;
8542
*Sun\ F*) # Sun Fortran 8.3
8543
tmp_sharedflag='-G' ;;
8545
tmp_sharedflag='-shared' ;;
8547
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549
if test $supports_anon_versioning = yes; then
8550
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8551
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8552
$echo "local: *; };" >> $output_objdir/$libname.ver~
8553
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8561
netbsd* | netbsdelf*-gnu)
8562
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8563
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8566
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8572
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8576
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8577
*** create shared libraries on Solaris systems. Therefore, libtool
8578
*** is disabling shared libraries support. We urge you to upgrade GNU
8579
*** binutils to release 2.9.1 or newer. Another option is to modify
8580
*** your PATH or compiler configuration so that the native linker is
8581
*** used, and then restart.
8584
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8585
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8592
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8593
case `$LD -v 2>&1` in
8594
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8598
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8599
*** reliably create shared libraries on SCO systems. Therefore, libtool
8600
*** is disabling shared libraries support. We urge you to upgrade GNU
8601
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8602
*** your PATH or compiler configuration so that the native linker is
8603
*** used, and then restart.
8608
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8609
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8610
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8611
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8620
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8623
hardcode_shlibpath_var=no
8627
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8628
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8629
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8636
if test "$ld_shlibs" = no; then
8638
hardcode_libdir_flag_spec=
8639
export_dynamic_flag_spec=
8640
whole_archive_flag_spec=
8643
# PORTME fill in a description of your system's linker (not GNU ld)
8646
allow_undefined_flag=unsupported
8647
always_export_symbols=yes
8648
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'
8649
# Note: this linker hardcodes the directories in LIBPATH if there
8650
# are no directories specified by -L.
8651
hardcode_minus_L=yes
8652
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8653
# Neither direct hardcoding nor static linking is supported with a
8655
hardcode_direct=unsupported
8660
if test "$host_cpu" = ia64; then
8661
# On IA64, the linker does run time linking by default, so we don't
8662
# have to do anything special.
8663
aix_use_runtimelinking=no
8664
exp_sym_flag='-Bexport'
8667
# If we're using GNU nm, then we don't want the "-C" option.
8668
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8669
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8670
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'
8672
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'
8674
aix_use_runtimelinking=no
8676
# Test if we are trying to use run time linking or normal
8677
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8678
# need to do runtime linking.
8679
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8680
for ld_flag in $LDFLAGS; do
8681
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8682
aix_use_runtimelinking=yes
8689
exp_sym_flag='-bexport'
8690
no_entry_flag='-bnoentry'
8693
# When large executables or shared objects are built, AIX ld can
8694
# have problems creating the table of contents. If linking a library
8695
# or program results in "error TOC overflow" add -mminimal-toc to
8696
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8697
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8701
hardcode_libdir_separator=':'
8702
link_all_deplibs=yes
8704
if test "$GCC" = yes; then
8705
case $host_os in aix4.[012]|aix4.[012].*)
8706
# We only want to do this on AIX 4.2 and lower, the check
8707
# below for broken collect2 doesn't work under 4.3+
8708
collect2name=`${CC} -print-prog-name=collect2`
8709
if test -f "$collect2name" && \
8710
strings "$collect2name" | grep resolve_lib_name >/dev/null
8712
# We have reworked collect2
8715
# We have old collect2
8716
hardcode_direct=unsupported
8717
# It fails to find uninstalled libraries when the uninstalled
8718
# path is not listed in the libpath. Setting hardcode_minus_L
8719
# to unsupported forces relinking
8720
hardcode_minus_L=yes
8721
hardcode_libdir_flag_spec='-L$libdir'
8722
hardcode_libdir_separator=
8726
shared_flag='-shared'
8727
if test "$aix_use_runtimelinking" = yes; then
8728
shared_flag="$shared_flag "'${wl}-G'
8732
if test "$host_cpu" = ia64; then
8733
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8734
# chokes on -Wl,-G. The following line is correct:
8737
if test "$aix_use_runtimelinking" = yes; then
8738
shared_flag='${wl}-G'
8740
shared_flag='${wl}-bM:SRE'
8745
# It seems that -bexpall does not export symbols beginning with
8746
# underscore (_), so it is better to generate a list of symbols to export.
8747
always_export_symbols=yes
8748
if test "$aix_use_runtimelinking" = yes; then
8749
# Warning - without using the other runtime loading flags (-brtl),
8750
# -berok will link without error, but may produce a broken library.
8751
allow_undefined_flag='-berok'
8752
# Determine the default libpath from the value encoded in an empty executable.
8753
cat >conftest.$ac_ext <<_ACEOF
8756
cat confdefs.h >>conftest.$ac_ext
8757
cat >>conftest.$ac_ext <<_ACEOF
8758
/* end confdefs.h. */
8768
rm -f conftest.$ac_objext conftest$ac_exeext
8769
if { (ac_try="$ac_link"
8771
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772
*) ac_try_echo=$ac_try;;
8774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775
(eval "$ac_link") 2>conftest.er1
8777
grep -v '^ *+' conftest.er1 >conftest.err
8779
cat conftest.err >&5
8780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781
(exit $ac_status); } && {
8782
test -z "$ac_c_werror_flag" ||
8783
test ! -s conftest.err
8784
} && test -s conftest$ac_exeext &&
8785
$as_test_x conftest$ac_exeext; then
8787
lt_aix_libpath_sed='
8788
/Import File Strings/,/^$/ {
8794
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8795
# Check for a 64-bit object if we didn't find anything.
8796
if test -z "$aix_libpath"; then
8797
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8800
echo "$as_me: failed program was:" >&5
8801
sed 's/^/| /' conftest.$ac_ext >&5
8806
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8807
conftest$ac_exeext conftest.$ac_ext
8808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8810
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8811
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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8813
if test "$host_cpu" = ia64; then
8814
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8815
allow_undefined_flag="-z nodefs"
8816
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"
8818
# Determine the default libpath from the value encoded in an empty executable.
8819
cat >conftest.$ac_ext <<_ACEOF
8822
cat confdefs.h >>conftest.$ac_ext
8823
cat >>conftest.$ac_ext <<_ACEOF
8824
/* end confdefs.h. */
8834
rm -f conftest.$ac_objext conftest$ac_exeext
8835
if { (ac_try="$ac_link"
8837
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838
*) ac_try_echo=$ac_try;;
8840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841
(eval "$ac_link") 2>conftest.er1
8843
grep -v '^ *+' conftest.er1 >conftest.err
8845
cat conftest.err >&5
8846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847
(exit $ac_status); } && {
8848
test -z "$ac_c_werror_flag" ||
8849
test ! -s conftest.err
8850
} && test -s conftest$ac_exeext &&
8851
$as_test_x conftest$ac_exeext; then
8853
lt_aix_libpath_sed='
8854
/Import File Strings/,/^$/ {
8860
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8861
# Check for a 64-bit object if we didn't find anything.
8862
if test -z "$aix_libpath"; then
8863
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866
echo "$as_me: failed program was:" >&5
8867
sed 's/^/| /' conftest.$ac_ext >&5
8872
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8873
conftest$ac_exeext conftest.$ac_ext
8874
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8876
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8877
# Warning - without using the other run time loading flags,
8878
# -berok will link without error, but may produce a broken library.
8879
no_undefined_flag=' ${wl}-bernotok'
8880
allow_undefined_flag=' ${wl}-berok'
8881
# Exported symbols can be pulled into shared objects from archives
8882
whole_archive_flag_spec='$convenience'
8883
archive_cmds_need_lc=yes
8884
# This is similar to how AIX traditionally builds its shared libraries.
8885
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'
8891
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)'
8892
hardcode_libdir_flag_spec='-L$libdir'
8893
hardcode_minus_L=yes
8894
# see comment about different semantics on the GNU ld section
8899
export_dynamic_flag_spec=-rdynamic
8902
cygwin* | mingw* | pw32*)
8903
# When not using gcc, we currently assume that we are using
8904
# Microsoft Visual C++.
8905
# hardcode_libdir_flag_spec is actually meaningless, as there is
8906
# no search path for DLLs.
8907
hardcode_libdir_flag_spec=' '
8908
allow_undefined_flag=unsupported
8909
# Tell ltmain to make .lib files, not .a files.
8911
# Tell ltmain to make .dll files, not .so files.
8913
# FIXME: Setting linknames here is a bad hack.
8914
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8915
# The linker will automatically build a .lib file if we build a DLL.
8916
old_archive_From_new_cmds='true'
8917
# FIXME: Should let the user specify the lib program.
8918
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8919
fix_srcfile_path='`cygpath -w "$srcfile"`'
8920
enable_shared_with_static_runtimes=yes
8923
darwin* | rhapsody*)
8925
rhapsody* | darwin1.[012])
8926
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8929
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8930
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8932
case ${MACOSX_DEPLOYMENT_TARGET} in
8934
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8937
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8943
archive_cmds_need_lc=no
8945
hardcode_automatic=yes
8946
hardcode_shlibpath_var=unsupported
8947
whole_archive_flag_spec=''
8948
link_all_deplibs=yes
8949
if test "$GCC" = yes ; then
8950
output_verbose_link_cmd='echo'
8951
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8952
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8953
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}"
8954
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}"
8956
case $cc_basename in
8958
output_verbose_link_cmd='echo'
8959
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8960
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8961
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8962
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8963
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8973
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974
hardcode_libdir_flag_spec='-L$libdir'
8975
hardcode_shlibpath_var=no
8982
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8983
# support. Future versions do this automatically, but an explicit c++rt0.o
8984
# does not break anything, and helps significantly (at the cost of a little
8987
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8988
hardcode_libdir_flag_spec='-R$libdir'
8990
hardcode_shlibpath_var=no
8993
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8995
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8997
hardcode_minus_L=yes
8998
hardcode_shlibpath_var=no
9001
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9002
freebsd* | dragonfly*)
9003
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9004
hardcode_libdir_flag_spec='-R$libdir'
9006
hardcode_shlibpath_var=no
9010
if test "$GCC" = yes; then
9011
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'
9013
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'
9015
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016
hardcode_libdir_separator=:
9019
# hardcode_minus_L: Not really in the search PATH,
9020
# but as the default location of the library.
9021
hardcode_minus_L=yes
9022
export_dynamic_flag_spec='${wl}-E'
9026
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9027
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9029
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9031
if test "$with_gnu_ld" = no; then
9032
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9033
hardcode_libdir_separator=:
9036
export_dynamic_flag_spec='${wl}-E'
9038
# hardcode_minus_L: Not really in the search PATH,
9039
# but as the default location of the library.
9040
hardcode_minus_L=yes
9045
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9048
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9051
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9054
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9060
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9066
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9070
if test "$with_gnu_ld" = no; then
9071
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9072
hardcode_libdir_separator=:
9076
hardcode_libdir_flag_spec_ld='+b $libdir'
9078
hardcode_shlibpath_var=no
9082
export_dynamic_flag_spec='${wl}-E'
9084
# hardcode_minus_L: Not really in the search PATH,
9085
# but as the default location of the library.
9086
hardcode_minus_L=yes
9092
irix5* | irix6* | nonstopux*)
9093
if test "$GCC" = yes; then
9094
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9096
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9097
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9099
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9100
hardcode_libdir_separator=:
9101
link_all_deplibs=yes
9104
netbsd* | netbsdelf*-gnu)
9105
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9106
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9108
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9110
hardcode_libdir_flag_spec='-R$libdir'
9112
hardcode_shlibpath_var=no
9116
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9119
hardcode_libdir_separator=:
9120
hardcode_shlibpath_var=no
9124
if test -f /usr/libexec/ld.so; then
9126
hardcode_shlibpath_var=no
9127
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9128
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9129
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9130
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9131
export_dynamic_flag_spec='${wl}-E'
9134
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9135
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9136
hardcode_libdir_flag_spec='-R$libdir'
9139
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9140
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9150
hardcode_libdir_flag_spec='-L$libdir'
9151
hardcode_minus_L=yes
9152
allow_undefined_flag=unsupported
9153
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'
9154
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9158
if test "$GCC" = yes; then
9159
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9160
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9162
allow_undefined_flag=' -expect_unresolved \*'
9163
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9165
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9166
hardcode_libdir_separator=:
9169
osf4* | osf5*) # as osf3* with the addition of -msym flag
9170
if test "$GCC" = yes; then
9171
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9172
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9173
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175
allow_undefined_flag=' -expect_unresolved \*'
9176
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9177
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9178
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9180
# Both c and cxx compiler support -rpath directly
9181
hardcode_libdir_flag_spec='-rpath $libdir'
9183
hardcode_libdir_separator=:
9187
no_undefined_flag=' -z text'
9188
if test "$GCC" = yes; then
9190
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9191
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9192
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9195
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9196
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9197
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9199
hardcode_libdir_flag_spec='-R$libdir'
9200
hardcode_shlibpath_var=no
9202
solaris2.[0-5] | solaris2.[0-5].*) ;;
9204
# The compiler driver will combine and reorder linker options,
9205
# but understands `-z linker_flag'. GCC discards it without `$wl',
9206
# but is careful enough not to reorder.
9207
# Supported since Solaris 2.6 (maybe 2.5.1?)
9208
if test "$GCC" = yes; then
9209
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9211
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9215
link_all_deplibs=yes
9219
if test "x$host_vendor" = xsequent; then
9220
# Use $CC to link under sequent, because it throws in some extra .o
9221
# files that make .init and .fini sections work.
9222
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9224
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9226
hardcode_libdir_flag_spec='-L$libdir'
9228
hardcode_minus_L=yes
9229
hardcode_shlibpath_var=no
9233
case $host_vendor in
9235
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236
hardcode_direct=yes # is this really true???
9239
## LD is ld it makes a PLAMLIB
9240
## CC just makes a GrossModule.
9241
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9242
reload_cmds='$CC -r -o $output$reload_objs'
9246
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9250
runpath_var='LD_RUN_PATH'
9251
hardcode_shlibpath_var=no
9255
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9256
hardcode_shlibpath_var=no
9257
export_dynamic_flag_spec='-Bexport'
9261
if test -d /usr/nec; then
9262
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263
hardcode_shlibpath_var=no
9264
runpath_var=LD_RUN_PATH
9265
hardcode_runpath_var=yes
9270
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9271
no_undefined_flag='${wl}-z,text'
9272
archive_cmds_need_lc=no
9273
hardcode_shlibpath_var=no
9274
runpath_var='LD_RUN_PATH'
9276
if test "$GCC" = yes; then
9277
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9278
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9280
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285
sysv5* | sco3.2v5* | sco5v6*)
9286
# Note: We can NOT use -z defs as we might desire, because we do not
9287
# link with -lc, and that would cause any symbols used from libc to
9288
# always be unresolved, which means just about no library would
9289
# ever link correctly. If we're not using GNU ld we use -z text
9290
# though, which does catch some bad symbols but isn't as heavy-handed
9292
no_undefined_flag='${wl}-z,text'
9293
allow_undefined_flag='${wl}-z,nodefs'
9294
archive_cmds_need_lc=no
9295
hardcode_shlibpath_var=no
9296
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9297
hardcode_libdir_separator=':'
9298
link_all_deplibs=yes
9299
export_dynamic_flag_spec='${wl}-Bexport'
9300
runpath_var='LD_RUN_PATH'
9302
if test "$GCC" = yes; then
9303
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9304
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9306
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9307
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9312
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313
hardcode_libdir_flag_spec='-L$libdir'
9314
hardcode_shlibpath_var=no
9323
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9324
echo "${ECHO_T}$ld_shlibs" >&6; }
9325
test "$ld_shlibs" = no && can_build_shared=no
9328
# Do we need to explicitly link libc?
9330
case "x$archive_cmds_need_lc" in
9332
# Assume -lc should be added
9333
archive_cmds_need_lc=yes
9335
if test "$enable_shared" = yes && test "$GCC" = yes; then
9336
case $archive_cmds in
9338
# FIXME: we may have to deal with multi-command sequences.
9341
# Test whether the compiler implicitly links with -lc since on some
9342
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9343
# to ld, don't add -lc before -lgcc.
9344
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9345
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9347
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9350
(eval $ac_compile) 2>&5
9352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353
(exit $ac_status); } 2>conftest.err; then
9356
libobjs=conftest.$ac_objext
9358
wl=$lt_prog_compiler_wl
9359
pic_flag=$lt_prog_compiler_pic
9365
lt_save_allow_undefined_flag=$allow_undefined_flag
9366
allow_undefined_flag=
9367
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9368
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371
(exit $ac_status); }
9373
archive_cmds_need_lc=no
9375
archive_cmds_need_lc=yes
9377
allow_undefined_flag=$lt_save_allow_undefined_flag
9379
cat conftest.err 1>&5
9382
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9383
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9390
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9391
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9393
libname_spec='lib$name'
9401
shlibpath_overrides_runpath=unknown
9403
dynamic_linker="$host_os ld.so"
9404
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9406
if test "$GCC" = yes; then
9408
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9409
*) lt_awk_arg="/^libraries:/" ;;
9411
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9412
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9413
# if the path contains ";" then we assume it to be the separator
9414
# otherwise default to the standard path separator (i.e. ":") - it is
9415
# assumed that no part of a normal pathname contains ";" but that should
9416
# okay in the real world where ";" in dirpaths is itself problematic.
9417
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9419
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9421
# Ok, now we have the path, separated by spaces, we can step through it
9422
# and add multilib dir if necessary.
9423
lt_tmp_lt_search_path_spec=
9424
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9425
for lt_sys_path in $lt_search_path_spec; do
9426
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9427
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9429
test -d "$lt_sys_path" && \
9430
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9433
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9434
BEGIN {RS=" "; FS="/|\n";} {
9437
for (lt_i = NF; lt_i > 0; lt_i--) {
9438
if ($lt_i != "" && $lt_i != ".") {
9439
if ($lt_i == "..") {
9442
if (lt_count == 0) {
9443
lt_foo="/" $lt_i lt_foo;
9450
if (lt_foo != "") { lt_freq[lt_foo]++; }
9451
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9453
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9455
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9457
need_lib_prefix=unknown
9458
hardcode_into_libs=no
9460
# when you set need_version to no, make sure it does not cause -set_version
9461
# flags to be left without arguments
9462
need_version=unknown
9467
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9468
shlibpath_var=LIBPATH
9470
# AIX 3 has no versioning support, so we append a major version to the name.
9471
soname_spec='${libname}${release}${shared_ext}$major'
9478
hardcode_into_libs=yes
9479
if test "$host_cpu" = ia64; then
9480
# AIX 5 supports IA64
9481
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9482
shlibpath_var=LD_LIBRARY_PATH
9484
# With GCC up to 2.95.x, collect2 would create an import file
9485
# for dependence libraries. The import file would start with
9486
# the line `#! .'. This would cause the generated library to
9487
# depend on `.', always an invalid library. This was fixed in
9488
# development snapshots of GCC prior to 3.0.
9490
aix4 | aix4.[01] | aix4.[01].*)
9491
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9493
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9500
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9501
# soname into executable. Probably we can add versioning support to
9502
# collect2, so additional links can be useful in future.
9503
if test "$aix_use_runtimelinking" = yes; then
9504
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9505
# instead of lib<name>.a to let people know that these are not
9506
# typical AIX shared libraries.
9507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509
# We preserve .a as extension for shared libraries through AIX4.2
9510
# and later when we are not doing run time linking.
9511
library_names_spec='${libname}${release}.a $libname.a'
9512
soname_spec='${libname}${release}${shared_ext}$major'
9514
shlibpath_var=LIBPATH
9519
library_names_spec='$libname.ixlibrary $libname.a'
9520
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9521
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'
9525
library_names_spec='${libname}${shared_ext}'
9526
dynamic_linker="$host_os ld.so"
9527
shlibpath_var=LIBRARY_PATH
9533
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534
soname_spec='${libname}${release}${shared_ext}$major'
9535
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9536
shlibpath_var=LD_LIBRARY_PATH
9537
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9538
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9539
# the default ld.so.conf also contains /usr/contrib/lib and
9540
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9541
# libtool to hard-code these into programs
9544
cygwin* | mingw* | pw32*)
9545
version_type=windows
9550
case $GCC,$host_os in
9551
yes,cygwin* | yes,mingw* | yes,pw32*)
9552
library_names_spec='$libname.dll.a'
9553
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9554
postinstall_cmds='base_file=`basename \${file}`~
9555
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9556
dldir=$destdir/`dirname \$dlpath`~
9557
test -d \$dldir || mkdir -p \$dldir~
9558
$install_prog $dir/$dlname \$dldir/$dlname~
9559
chmod a+x \$dldir/$dlname'
9560
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9561
dlpath=$dir/\$dldll~
9563
shlibpath_overrides_runpath=yes
9567
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9568
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9569
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9572
# MinGW DLLs use traditional 'lib' prefix
9573
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9574
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9575
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9576
# It is most probably a Windows format PATH printed by
9577
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9578
# path with ; separators, and with drive letters. We can handle the
9579
# drive letters (cygwin fileutils understands them), so leave them,
9580
# especially as we might pass files found there to a mingw objdump,
9581
# which wouldn't understand a cygwinified path. Ahh.
9582
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9584
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9588
# pw32 DLLs use 'pw' prefix rather than 'lib'
9589
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9595
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9598
dynamic_linker='Win32 ld.exe'
9599
# FIXME: first we should search . and the directory the executable is in
9603
darwin* | rhapsody*)
9604
dynamic_linker="$host_os dyld"
9608
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9609
soname_spec='${libname}${release}${major}$shared_ext'
9610
shlibpath_overrides_runpath=yes
9611
shlibpath_var=DYLD_LIBRARY_PATH
9612
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9614
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9615
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9623
soname_spec='${libname}${release}${shared_ext}$major'
9624
shlibpath_var=LD_LIBRARY_PATH
9631
freebsd* | dragonfly*)
9632
# DragonFly does not have aout. When/if they implement a new
9633
# versioning mechanism, adjust this.
9634
if test -x /usr/bin/objformat; then
9635
objformat=`/usr/bin/objformat`
9638
freebsd[123]*) objformat=aout ;;
9642
version_type=freebsd-$objformat
9643
case $version_type in
9645
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9650
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9654
shlibpath_var=LD_LIBRARY_PATH
9657
shlibpath_overrides_runpath=yes
9659
freebsd3.[01]* | freebsdelf3.[01]*)
9660
shlibpath_overrides_runpath=yes
9661
hardcode_into_libs=yes
9663
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9664
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9665
shlibpath_overrides_runpath=no
9666
hardcode_into_libs=yes
9668
*) # from 4.6 on, and DragonFly
9669
shlibpath_overrides_runpath=yes
9670
hardcode_into_libs=yes
9679
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9680
soname_spec='${libname}${release}${shared_ext}$major'
9681
shlibpath_var=LD_LIBRARY_PATH
9682
hardcode_into_libs=yes
9685
hpux9* | hpux10* | hpux11*)
9686
# Give a soname corresponding to the major version so that dld.sl refuses to
9687
# link against other versions.
9694
hardcode_into_libs=yes
9695
dynamic_linker="$host_os dld.so"
9696
shlibpath_var=LD_LIBRARY_PATH
9697
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699
soname_spec='${libname}${release}${shared_ext}$major'
9700
if test "X$HPUX_IA64_MODE" = X32; then
9701
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9703
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9705
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9709
hardcode_into_libs=yes
9710
dynamic_linker="$host_os dld.sl"
9711
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9712
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714
soname_spec='${libname}${release}${shared_ext}$major'
9715
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9716
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9720
dynamic_linker="$host_os dld.sl"
9721
shlibpath_var=SHLIB_PATH
9722
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724
soname_spec='${libname}${release}${shared_ext}$major'
9727
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9728
postinstall_cmds='chmod 555 $lib'
9735
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9736
soname_spec='${libname}${release}${shared_ext}$major'
9737
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9738
shlibpath_var=LD_LIBRARY_PATH
9739
shlibpath_overrides_runpath=no
9740
hardcode_into_libs=yes
9743
irix5* | irix6* | nonstopux*)
9745
nonstopux*) version_type=nonstopux ;;
9747
if test "$lt_cv_prog_gnu_ld" = yes; then
9755
soname_spec='${libname}${release}${shared_ext}$major'
9756
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9758
irix5* | nonstopux*)
9762
case $LD in # libtool.m4 will add one of these switches to LD
9763
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9764
libsuff= shlibsuff= libmagic=32-bit;;
9765
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9766
libsuff=32 shlibsuff=N32 libmagic=N32;;
9767
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9768
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9769
*) libsuff= shlibsuff= libmagic=never-match;;
9773
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9774
shlibpath_overrides_runpath=no
9775
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9776
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9777
hardcode_into_libs=yes
9780
# No shared lib support for Linux oldld, aout, or coff.
9781
linux*oldld* | linux*aout* | linux*coff*)
9785
# This must be Linux ELF.
9786
linux* | k*bsd*-gnu)
9790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791
soname_spec='${libname}${release}${shared_ext}$major'
9792
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9793
shlibpath_var=LD_LIBRARY_PATH
9794
shlibpath_overrides_runpath=no
9795
# This implies no fast_install, which is unacceptable.
9796
# Some rework will be needed to allow for fast_install
9797
# before this can be enabled.
9798
hardcode_into_libs=yes
9800
# Append ld.so.conf contents to the search path
9801
if test -f /etc/ld.so.conf; then
9802
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' ' '`
9803
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9806
# We used to test for /lib/ld.so.1 and disable shared libraries on
9807
# powerpc, because MkLinux only supported shared libraries with the
9808
# GNU dynamic linker. Since this was broken with cross compilers,
9809
# most powerpc-linux boxes support dynamic linking these days and
9810
# people can always --disable-shared, the test was removed, and we
9811
# assume the GNU/Linux dynamic linker is in use.
9812
dynamic_linker='GNU/Linux ld.so'
9819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9820
soname_spec='${libname}${release}${shared_ext}$major'
9821
shlibpath_var=LD_LIBRARY_PATH
9822
shlibpath_overrides_runpath=no
9823
hardcode_into_libs=yes
9824
dynamic_linker='NetBSD ld.elf_so'
9831
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9832
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9833
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9834
dynamic_linker='NetBSD (a.out) ld.so'
9836
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9837
soname_spec='${libname}${release}${shared_ext}$major'
9838
dynamic_linker='NetBSD ld.elf_so'
9840
shlibpath_var=LD_LIBRARY_PATH
9841
shlibpath_overrides_runpath=yes
9842
hardcode_into_libs=yes
9847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848
shlibpath_var=LD_LIBRARY_PATH
9849
shlibpath_overrides_runpath=yes
9856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857
soname_spec='${libname}${release}${shared_ext}$major'
9858
shlibpath_var=LD_LIBRARY_PATH
9859
shlibpath_overrides_runpath=yes
9864
sys_lib_dlsearch_path_spec="/usr/lib"
9866
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9868
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9869
*) need_version=no ;;
9871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9872
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9873
shlibpath_var=LD_LIBRARY_PATH
9874
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9876
openbsd2.[89] | openbsd2.[89].*)
9877
shlibpath_overrides_runpath=no
9880
shlibpath_overrides_runpath=yes
9884
shlibpath_overrides_runpath=yes
9889
libname_spec='$name'
9892
library_names_spec='$libname${shared_ext} $libname.a'
9893
dynamic_linker='OS/2 ld.exe'
9894
shlibpath_var=LIBPATH
9897
osf3* | osf4* | osf5*)
9901
soname_spec='${libname}${release}${shared_ext}$major'
9902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903
shlibpath_var=LD_LIBRARY_PATH
9904
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9905
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917
soname_spec='${libname}${release}${shared_ext}$major'
9918
shlibpath_var=LD_LIBRARY_PATH
9919
shlibpath_overrides_runpath=yes
9920
hardcode_into_libs=yes
9921
# ldd complains unless libraries are executable
9922
postinstall_cmds='chmod +x $lib'
9927
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9929
shlibpath_var=LD_LIBRARY_PATH
9930
shlibpath_overrides_runpath=yes
9931
if test "$with_gnu_ld" = yes; then
9939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940
soname_spec='${libname}${release}${shared_ext}$major'
9941
shlibpath_var=LD_LIBRARY_PATH
9942
case $host_vendor in
9944
shlibpath_overrides_runpath=no
9946
export_dynamic_flag_spec='${wl}-Blargedynsym'
9947
runpath_var=LD_RUN_PATH
9955
shlibpath_overrides_runpath=no
9956
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9962
if test -d /usr/nec ;then
9964
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9965
soname_spec='$libname${shared_ext}.$major'
9966
shlibpath_var=LD_LIBRARY_PATH
9970
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9971
version_type=freebsd-elf
9974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9975
soname_spec='${libname}${release}${shared_ext}$major'
9976
shlibpath_var=LD_LIBRARY_PATH
9977
hardcode_into_libs=yes
9978
if test "$with_gnu_ld" = yes; then
9979
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9980
shlibpath_overrides_runpath=no
9982
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9983
shlibpath_overrides_runpath=yes
9986
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9990
sys_lib_dlsearch_path_spec='/usr/lib'
9995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996
soname_spec='${libname}${release}${shared_ext}$major'
9997
shlibpath_var=LD_LIBRARY_PATH
10004
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10005
echo "${ECHO_T}$dynamic_linker" >&6; }
10006
test "$dynamic_linker" = no && can_build_shared=no
10008
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10009
echo $ECHO_N "(cached) $ECHO_C" >&6
10011
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10014
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10015
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10016
echo $ECHO_N "(cached) $ECHO_C" >&6
10018
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10021
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10023
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10024
if test "$GCC" = yes; then
10025
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10028
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10029
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10031
if test -n "$hardcode_libdir_flag_spec" || \
10032
test -n "$runpath_var" || \
10033
test "X$hardcode_automatic" = "Xyes" ; then
10035
# We can hardcode non-existant directories.
10036
if test "$hardcode_direct" != no &&
10037
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10038
# have to relink, otherwise we might link with an installed library
10039
# when we should be linking with a yet-to-be-installed one
10040
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10041
test "$hardcode_minus_L" != no; then
10042
# Linking always hardcodes the temporary library directory.
10043
hardcode_action=relink
10045
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10046
hardcode_action=immediate
10049
# We cannot hardcode anything, or else we can only hardcode existing
10051
hardcode_action=unsupported
10053
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10054
echo "${ECHO_T}$hardcode_action" >&6; }
10056
if test "$hardcode_action" = relink; then
10057
# Fast installation is not supported
10058
enable_fast_install=no
10059
elif test "$shlibpath_overrides_runpath" = yes ||
10060
test "$enable_shared" = no; then
10061
# Fast installation is not necessary
10062
enable_fast_install=needless
10067
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10068
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10069
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10070
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10071
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10072
{ echo "$as_me:$LINENO: result: yes" >&5
10073
echo "${ECHO_T}yes" >&6; }
10075
# FIXME - insert some real tests, host_os isn't really good enough
10078
if test -n "$STRIP" ; then
10079
striplib="$STRIP -x"
10080
old_striplib="$STRIP -S"
10081
{ echo "$as_me:$LINENO: result: yes" >&5
10082
echo "${ECHO_T}yes" >&6; }
10084
{ echo "$as_me:$LINENO: result: no" >&5
10085
echo "${ECHO_T}no" >&6; }
10089
{ echo "$as_me:$LINENO: result: no" >&5
10090
echo "${ECHO_T}no" >&6; }
10095
if test "x$enable_dlopen" != xyes; then
10096
enable_dlopen=unknown
10097
enable_dlopen_self=unknown
10098
enable_dlopen_self_static=unknown
10105
lt_cv_dlopen="load_add_on"
10107
lt_cv_dlopen_self=yes
10111
lt_cv_dlopen="LoadLibrary"
10116
lt_cv_dlopen="dlopen"
10121
# if libdl is installed we need to link against it
10122
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10123
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10124
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10125
echo $ECHO_N "(cached) $ECHO_C" >&6
10127
ac_check_lib_save_LIBS=$LIBS
10129
cat >conftest.$ac_ext <<_ACEOF
10132
cat confdefs.h >>conftest.$ac_ext
10133
cat >>conftest.$ac_ext <<_ACEOF
10134
/* end confdefs.h. */
10136
/* Override any GCC internal prototype to avoid an error.
10137
Use char because int might match the return type of a GCC
10138
builtin and then its argument prototype would still apply. */
10151
rm -f conftest.$ac_objext conftest$ac_exeext
10152
if { (ac_try="$ac_link"
10153
case "(($ac_try" in
10154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155
*) ac_try_echo=$ac_try;;
10157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158
(eval "$ac_link") 2>conftest.er1
10160
grep -v '^ *+' conftest.er1 >conftest.err
10162
cat conftest.err >&5
10163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164
(exit $ac_status); } && {
10165
test -z "$ac_c_werror_flag" ||
10166
test ! -s conftest.err
10167
} && test -s conftest$ac_exeext &&
10168
$as_test_x conftest$ac_exeext; then
10169
ac_cv_lib_dl_dlopen=yes
10171
echo "$as_me: failed program was:" >&5
10172
sed 's/^/| /' conftest.$ac_ext >&5
10174
ac_cv_lib_dl_dlopen=no
10177
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10178
conftest$ac_exeext conftest.$ac_ext
10179
LIBS=$ac_check_lib_save_LIBS
10181
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10182
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10183
if test $ac_cv_lib_dl_dlopen = yes; then
10184
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10187
lt_cv_dlopen="dyld"
10189
lt_cv_dlopen_self=yes
10196
{ echo "$as_me:$LINENO: checking for shl_load" >&5
10197
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10198
if test "${ac_cv_func_shl_load+set}" = set; then
10199
echo $ECHO_N "(cached) $ECHO_C" >&6
10201
cat >conftest.$ac_ext <<_ACEOF
10204
cat confdefs.h >>conftest.$ac_ext
10205
cat >>conftest.$ac_ext <<_ACEOF
10206
/* end confdefs.h. */
10207
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10208
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10209
#define shl_load innocuous_shl_load
10211
/* System header to define __stub macros and hopefully few prototypes,
10212
which can conflict with char shl_load (); below.
10213
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10214
<limits.h> exists even on freestanding compilers. */
10217
# include <limits.h>
10219
# include <assert.h>
10224
/* Override any GCC internal prototype to avoid an error.
10225
Use char because int might match the return type of a GCC
10226
builtin and then its argument prototype would still apply. */
10231
/* The GNU C library defines this for functions which it implements
10232
to always fail with ENOSYS. Some functions are actually named
10233
something starting with __ and the normal name is an alias. */
10234
#if defined __stub_shl_load || defined __stub___shl_load
10241
return shl_load ();
10246
rm -f conftest.$ac_objext conftest$ac_exeext
10247
if { (ac_try="$ac_link"
10248
case "(($ac_try" in
10249
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250
*) ac_try_echo=$ac_try;;
10252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253
(eval "$ac_link") 2>conftest.er1
10255
grep -v '^ *+' conftest.er1 >conftest.err
10257
cat conftest.err >&5
10258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259
(exit $ac_status); } && {
10260
test -z "$ac_c_werror_flag" ||
10261
test ! -s conftest.err
10262
} && test -s conftest$ac_exeext &&
10263
$as_test_x conftest$ac_exeext; then
10264
ac_cv_func_shl_load=yes
10266
echo "$as_me: failed program was:" >&5
10267
sed 's/^/| /' conftest.$ac_ext >&5
10269
ac_cv_func_shl_load=no
10272
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10273
conftest$ac_exeext conftest.$ac_ext
10275
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10276
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10277
if test $ac_cv_func_shl_load = yes; then
10278
lt_cv_dlopen="shl_load"
10280
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10281
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10282
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10283
echo $ECHO_N "(cached) $ECHO_C" >&6
10285
ac_check_lib_save_LIBS=$LIBS
10287
cat >conftest.$ac_ext <<_ACEOF
10290
cat confdefs.h >>conftest.$ac_ext
10291
cat >>conftest.$ac_ext <<_ACEOF
10292
/* end confdefs.h. */
10294
/* Override any GCC internal prototype to avoid an error.
10295
Use char because int might match the return type of a GCC
10296
builtin and then its argument prototype would still apply. */
10304
return shl_load ();
10309
rm -f conftest.$ac_objext conftest$ac_exeext
10310
if { (ac_try="$ac_link"
10311
case "(($ac_try" in
10312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313
*) ac_try_echo=$ac_try;;
10315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316
(eval "$ac_link") 2>conftest.er1
10318
grep -v '^ *+' conftest.er1 >conftest.err
10320
cat conftest.err >&5
10321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322
(exit $ac_status); } && {
10323
test -z "$ac_c_werror_flag" ||
10324
test ! -s conftest.err
10325
} && test -s conftest$ac_exeext &&
10326
$as_test_x conftest$ac_exeext; then
10327
ac_cv_lib_dld_shl_load=yes
10329
echo "$as_me: failed program was:" >&5
10330
sed 's/^/| /' conftest.$ac_ext >&5
10332
ac_cv_lib_dld_shl_load=no
10335
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10336
conftest$ac_exeext conftest.$ac_ext
10337
LIBS=$ac_check_lib_save_LIBS
10339
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10340
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10341
if test $ac_cv_lib_dld_shl_load = yes; then
10342
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10344
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10345
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10346
if test "${ac_cv_func_dlopen+set}" = set; then
10347
echo $ECHO_N "(cached) $ECHO_C" >&6
10349
cat >conftest.$ac_ext <<_ACEOF
10352
cat confdefs.h >>conftest.$ac_ext
10353
cat >>conftest.$ac_ext <<_ACEOF
10354
/* end confdefs.h. */
10355
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10356
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10357
#define dlopen innocuous_dlopen
10359
/* System header to define __stub macros and hopefully few prototypes,
10360
which can conflict with char dlopen (); below.
10361
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10362
<limits.h> exists even on freestanding compilers. */
10365
# include <limits.h>
10367
# include <assert.h>
10372
/* Override any GCC internal prototype to avoid an error.
10373
Use char because int might match the return type of a GCC
10374
builtin and then its argument prototype would still apply. */
10379
/* The GNU C library defines this for functions which it implements
10380
to always fail with ENOSYS. Some functions are actually named
10381
something starting with __ and the normal name is an alias. */
10382
#if defined __stub_dlopen || defined __stub___dlopen
10394
rm -f conftest.$ac_objext conftest$ac_exeext
10395
if { (ac_try="$ac_link"
10396
case "(($ac_try" in
10397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398
*) ac_try_echo=$ac_try;;
10400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401
(eval "$ac_link") 2>conftest.er1
10403
grep -v '^ *+' conftest.er1 >conftest.err
10405
cat conftest.err >&5
10406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407
(exit $ac_status); } && {
10408
test -z "$ac_c_werror_flag" ||
10409
test ! -s conftest.err
10410
} && test -s conftest$ac_exeext &&
10411
$as_test_x conftest$ac_exeext; then
10412
ac_cv_func_dlopen=yes
10414
echo "$as_me: failed program was:" >&5
10415
sed 's/^/| /' conftest.$ac_ext >&5
10417
ac_cv_func_dlopen=no
10420
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10421
conftest$ac_exeext conftest.$ac_ext
10423
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10424
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10425
if test $ac_cv_func_dlopen = yes; then
10426
lt_cv_dlopen="dlopen"
10428
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10429
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10430
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10431
echo $ECHO_N "(cached) $ECHO_C" >&6
10433
ac_check_lib_save_LIBS=$LIBS
10435
cat >conftest.$ac_ext <<_ACEOF
10438
cat confdefs.h >>conftest.$ac_ext
10439
cat >>conftest.$ac_ext <<_ACEOF
10440
/* end confdefs.h. */
10442
/* Override any GCC internal prototype to avoid an error.
10443
Use char because int might match the return type of a GCC
10444
builtin and then its argument prototype would still apply. */
10457
rm -f conftest.$ac_objext conftest$ac_exeext
10458
if { (ac_try="$ac_link"
10459
case "(($ac_try" in
10460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461
*) ac_try_echo=$ac_try;;
10463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464
(eval "$ac_link") 2>conftest.er1
10466
grep -v '^ *+' conftest.er1 >conftest.err
10468
cat conftest.err >&5
10469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470
(exit $ac_status); } && {
10471
test -z "$ac_c_werror_flag" ||
10472
test ! -s conftest.err
10473
} && test -s conftest$ac_exeext &&
10474
$as_test_x conftest$ac_exeext; then
10475
ac_cv_lib_dl_dlopen=yes
10477
echo "$as_me: failed program was:" >&5
10478
sed 's/^/| /' conftest.$ac_ext >&5
10480
ac_cv_lib_dl_dlopen=no
10483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10484
conftest$ac_exeext conftest.$ac_ext
10485
LIBS=$ac_check_lib_save_LIBS
10487
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10488
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10489
if test $ac_cv_lib_dl_dlopen = yes; then
10490
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10492
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10493
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10494
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10495
echo $ECHO_N "(cached) $ECHO_C" >&6
10497
ac_check_lib_save_LIBS=$LIBS
10498
LIBS="-lsvld $LIBS"
10499
cat >conftest.$ac_ext <<_ACEOF
10502
cat confdefs.h >>conftest.$ac_ext
10503
cat >>conftest.$ac_ext <<_ACEOF
10504
/* end confdefs.h. */
10506
/* Override any GCC internal prototype to avoid an error.
10507
Use char because int might match the return type of a GCC
10508
builtin and then its argument prototype would still apply. */
10521
rm -f conftest.$ac_objext conftest$ac_exeext
10522
if { (ac_try="$ac_link"
10523
case "(($ac_try" in
10524
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525
*) ac_try_echo=$ac_try;;
10527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528
(eval "$ac_link") 2>conftest.er1
10530
grep -v '^ *+' conftest.er1 >conftest.err
10532
cat conftest.err >&5
10533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534
(exit $ac_status); } && {
10535
test -z "$ac_c_werror_flag" ||
10536
test ! -s conftest.err
10537
} && test -s conftest$ac_exeext &&
10538
$as_test_x conftest$ac_exeext; then
10539
ac_cv_lib_svld_dlopen=yes
10541
echo "$as_me: failed program was:" >&5
10542
sed 's/^/| /' conftest.$ac_ext >&5
10544
ac_cv_lib_svld_dlopen=no
10547
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10548
conftest$ac_exeext conftest.$ac_ext
10549
LIBS=$ac_check_lib_save_LIBS
10551
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10552
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10553
if test $ac_cv_lib_svld_dlopen = yes; then
10554
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10556
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10557
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10558
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10559
echo $ECHO_N "(cached) $ECHO_C" >&6
10561
ac_check_lib_save_LIBS=$LIBS
10563
cat >conftest.$ac_ext <<_ACEOF
10566
cat confdefs.h >>conftest.$ac_ext
10567
cat >>conftest.$ac_ext <<_ACEOF
10568
/* end confdefs.h. */
10570
/* Override any GCC internal prototype to avoid an error.
10571
Use char because int might match the return type of a GCC
10572
builtin and then its argument prototype would still apply. */
10580
return dld_link ();
10585
rm -f conftest.$ac_objext conftest$ac_exeext
10586
if { (ac_try="$ac_link"
10587
case "(($ac_try" in
10588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589
*) ac_try_echo=$ac_try;;
10591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592
(eval "$ac_link") 2>conftest.er1
10594
grep -v '^ *+' conftest.er1 >conftest.err
10596
cat conftest.err >&5
10597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598
(exit $ac_status); } && {
10599
test -z "$ac_c_werror_flag" ||
10600
test ! -s conftest.err
10601
} && test -s conftest$ac_exeext &&
10602
$as_test_x conftest$ac_exeext; then
10603
ac_cv_lib_dld_dld_link=yes
10605
echo "$as_me: failed program was:" >&5
10606
sed 's/^/| /' conftest.$ac_ext >&5
10608
ac_cv_lib_dld_dld_link=no
10611
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10612
conftest$ac_exeext conftest.$ac_ext
10613
LIBS=$ac_check_lib_save_LIBS
10615
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10616
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10617
if test $ac_cv_lib_dld_dld_link = yes; then
10618
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10639
if test "x$lt_cv_dlopen" != xno; then
10645
case $lt_cv_dlopen in
10647
save_CPPFLAGS="$CPPFLAGS"
10648
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10650
save_LDFLAGS="$LDFLAGS"
10651
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10654
LIBS="$lt_cv_dlopen_libs $LIBS"
10656
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10657
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10658
if test "${lt_cv_dlopen_self+set}" = set; then
10659
echo $ECHO_N "(cached) $ECHO_C" >&6
10661
if test "$cross_compiling" = yes; then :
10662
lt_cv_dlopen_self=cross
10664
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10665
lt_status=$lt_dlunknown
10666
cat > conftest.$ac_ext <<EOF
10667
#line 10667 "configure"
10668
#include "confdefs.h"
10677
# define LT_DLGLOBAL RTLD_GLOBAL
10680
# define LT_DLGLOBAL DL_GLOBAL
10682
# define LT_DLGLOBAL 0
10686
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10687
find out it does not work in some platform. */
10688
#ifndef LT_DLLAZY_OR_NOW
10690
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10693
# define LT_DLLAZY_OR_NOW DL_LAZY
10696
# define LT_DLLAZY_OR_NOW RTLD_NOW
10699
# define LT_DLLAZY_OR_NOW DL_NOW
10701
# define LT_DLLAZY_OR_NOW 0
10709
extern "C" void exit (int);
10712
void fnord() { int i=42;}
10715
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10716
int status = $lt_dlunknown;
10720
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10721
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10722
/* dlclose (self); */
10730
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731
(eval $ac_link) 2>&5
10733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10735
(./conftest; exit; ) >&5 2>/dev/null
10737
case x$lt_status in
10738
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10739
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10740
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10743
# compilation failed
10744
lt_cv_dlopen_self=no
10751
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10752
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10754
if test "x$lt_cv_dlopen_self" = xyes; then
10755
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10756
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10757
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10758
if test "${lt_cv_dlopen_self_static+set}" = set; then
10759
echo $ECHO_N "(cached) $ECHO_C" >&6
10761
if test "$cross_compiling" = yes; then :
10762
lt_cv_dlopen_self_static=cross
10764
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10765
lt_status=$lt_dlunknown
10766
cat > conftest.$ac_ext <<EOF
10767
#line 10767 "configure"
10768
#include "confdefs.h"
10777
# define LT_DLGLOBAL RTLD_GLOBAL
10780
# define LT_DLGLOBAL DL_GLOBAL
10782
# define LT_DLGLOBAL 0
10786
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10787
find out it does not work in some platform. */
10788
#ifndef LT_DLLAZY_OR_NOW
10790
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10793
# define LT_DLLAZY_OR_NOW DL_LAZY
10796
# define LT_DLLAZY_OR_NOW RTLD_NOW
10799
# define LT_DLLAZY_OR_NOW DL_NOW
10801
# define LT_DLLAZY_OR_NOW 0
10809
extern "C" void exit (int);
10812
void fnord() { int i=42;}
10815
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10816
int status = $lt_dlunknown;
10820
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10821
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10822
/* dlclose (self); */
10830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831
(eval $ac_link) 2>&5
10833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10835
(./conftest; exit; ) >&5 2>/dev/null
10837
case x$lt_status in
10838
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10839
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10840
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10843
# compilation failed
10844
lt_cv_dlopen_self_static=no
10851
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10852
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10855
CPPFLAGS="$save_CPPFLAGS"
10856
LDFLAGS="$save_LDFLAGS"
10861
case $lt_cv_dlopen_self in
10862
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10863
*) enable_dlopen_self=unknown ;;
10866
case $lt_cv_dlopen_self_static in
10867
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10868
*) enable_dlopen_self_static=unknown ;;
10873
# Report which library types will actually be built
10874
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10875
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10876
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10877
echo "${ECHO_T}$can_build_shared" >&6; }
10879
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10880
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10881
test "$can_build_shared" = "no" && enable_shared=no
10883
# On AIX, shared libraries and static libraries use the same namespace, and
10884
# are all built from PIC.
10887
test "$enable_shared" = yes && enable_static=no
10888
if test -n "$RANLIB"; then
10889
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10890
postinstall_cmds='$RANLIB $lib'
10895
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10896
test "$enable_shared" = yes && enable_static=no
10900
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10901
echo "${ECHO_T}$enable_shared" >&6; }
10903
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10904
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10905
# Make sure either enable_shared or enable_static is yes.
10906
test "$enable_shared" = yes || enable_static=yes
10907
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10908
echo "${ECHO_T}$enable_static" >&6; }
10910
# The else clause should only fire when bootstrapping the
10911
# libtool distribution, otherwise you forgot to ship ltmain.sh
10912
# with your package, and you will get complaints that there are
10913
# no rules to generate ltmain.sh.
10914
if test -f "$ltmain"; then
10915
# See if we are running on zsh, and set the options which allow our commands through
10916
# without removal of \ escapes.
10917
if test -n "${ZSH_VERSION+set}" ; then
10918
setopt NO_GLOB_SUBST
10920
# Now quote all the things that may contain metacharacters while being
10921
# careful not to overquote the AC_SUBSTed values. We take copies of the
10922
# variables and quote the copies for generation of the libtool script.
10923
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10925
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10926
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10927
deplibs_check_method reload_flag reload_cmds need_locks \
10928
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10929
lt_cv_sys_global_symbol_to_c_name_address \
10930
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10931
old_postinstall_cmds old_postuninstall_cmds \
10935
lt_prog_compiler_wl \
10936
lt_prog_compiler_pic \
10937
lt_prog_compiler_static \
10938
lt_prog_compiler_no_builtin_flag \
10939
export_dynamic_flag_spec \
10940
thread_safe_flag_spec \
10941
whole_archive_flag_spec \
10942
enable_shared_with_static_runtimes \
10944
old_archive_from_new_cmds \
10949
compiler_lib_search_path \
10950
compiler_lib_search_dirs \
10952
archive_expsym_cmds \
10954
postuninstall_cmds \
10955
old_archive_from_expsyms_cmds \
10956
allow_undefined_flag \
10957
no_undefined_flag \
10958
export_symbols_cmds \
10959
hardcode_libdir_flag_spec \
10960
hardcode_libdir_flag_spec_ld \
10961
hardcode_libdir_separator \
10962
hardcode_automatic \
10964
module_expsym_cmds \
10965
lt_cv_prog_compiler_c_o \
10968
include_expsyms; do
10971
old_archive_cmds | \
10972
old_archive_from_new_cmds | \
10974
archive_expsym_cmds | \
10976
module_expsym_cmds | \
10977
old_archive_from_expsyms_cmds | \
10978
export_symbols_cmds | \
10979
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10980
postinstall_cmds | postuninstall_cmds | \
10981
old_postinstall_cmds | old_postuninstall_cmds | \
10982
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10983
# Double-quote double-evaled strings.
10984
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10987
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10993
*'\$0 --fallback-echo"')
10994
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10998
cfgfile="${ofile}T"
10999
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11001
{ echo "$as_me:$LINENO: creating $ofile" >&5
11002
echo "$as_me: creating $ofile" >&6;}
11004
cat <<__EOF__ >> "$cfgfile"
11007
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11008
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11009
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11011
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11012
# Free Software Foundation, Inc.
11014
# This file is part of GNU Libtool:
11015
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11017
# This program is free software; you can redistribute it and/or modify
11018
# it under the terms of the GNU General Public License as published by
11019
# the Free Software Foundation; either version 2 of the License, or
11020
# (at your option) any later version.
11022
# This program is distributed in the hope that it will be useful, but
11023
# WITHOUT ANY WARRANTY; without even the implied warranty of
11024
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11025
# General Public License for more details.
11027
# You should have received a copy of the GNU General Public License
11028
# along with this program; if not, write to the Free Software
11029
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11031
# As a special exception to the GNU General Public License, if you
11032
# distribute this file as part of a program that contains a
11033
# configuration script generated by Autoconf, you may include it under
11034
# the same distribution terms that you use for the rest of that program.
11036
# A sed program that does not truncate output.
11039
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11040
Xsed="$SED -e 1s/^X//"
11042
# The HP-UX ksh and POSIX shell print the target directory to stdout
11043
# if CDPATH is set.
11044
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11046
# The names of the tagged configurations supported by this script.
11049
# ### BEGIN LIBTOOL CONFIG
11051
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11053
# Shell to use when invoking shell scripts.
11056
# Whether or not to build shared libraries.
11057
build_libtool_libs=$enable_shared
11059
# Whether or not to build static libraries.
11060
build_old_libs=$enable_static
11062
# Whether or not to add -lc for building shared libraries.
11063
build_libtool_need_lc=$archive_cmds_need_lc
11065
# Whether or not to disallow shared libs when runtime libs are static
11066
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11068
# Whether or not to optimize for fast installation.
11069
fast_install=$enable_fast_install
11072
host_alias=$host_alias
11076
# The build system.
11077
build_alias=$build_alias
11081
# An echo program that does not interpret backslashes.
11086
AR_FLAGS=$lt_AR_FLAGS
11091
# LTCC compiler flags.
11092
LTCFLAGS=$lt_LTCFLAGS
11094
# A language-specific compiler.
11097
# Is the compiler the GNU C compiler?
11103
# The linker used to build libraries.
11106
# Whether we need hard or soft links.
11109
# A BSD-compatible nm program.
11112
# A symbol stripping program
11115
# Used to examine libraries when file_magic_cmd begins "file"
11116
MAGIC_CMD=$MAGIC_CMD
11118
# Used on cygwin: DLL creation program.
11121
# Used on cygwin: object dumper.
11124
# Used on cygwin: assembler.
11127
# The name of the directory that contains temporary libtool files.
11130
# How to create reloadable object files.
11131
reload_flag=$lt_reload_flag
11132
reload_cmds=$lt_reload_cmds
11134
# How to pass a linker flag through the compiler.
11135
wl=$lt_lt_prog_compiler_wl
11137
# Object file suffix (normally "o").
11138
objext="$ac_objext"
11140
# Old archive suffix (normally "a").
11143
# Shared library suffix (normally ".so").
11144
shrext_cmds='$shrext_cmds'
11146
# Executable file suffix (normally "").
11149
# Additional compiler flags for building library objects.
11150
pic_flag=$lt_lt_prog_compiler_pic
11153
# What is the maximum length of a command?
11154
max_cmd_len=$lt_cv_sys_max_cmd_len
11156
# Does compiler simultaneously support -c and -o options?
11157
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11159
# Must we lock files when doing compilation?
11160
need_locks=$lt_need_locks
11162
# Do we need the lib prefix for modules?
11163
need_lib_prefix=$need_lib_prefix
11165
# Do we need a version for libraries?
11166
need_version=$need_version
11168
# Whether dlopen is supported.
11169
dlopen_support=$enable_dlopen
11171
# Whether dlopen of programs is supported.
11172
dlopen_self=$enable_dlopen_self
11174
# Whether dlopen of statically linked programs is supported.
11175
dlopen_self_static=$enable_dlopen_self_static
11177
# Compiler flag to prevent dynamic linking.
11178
link_static_flag=$lt_lt_prog_compiler_static
11180
# Compiler flag to turn off builtin functions.
11181
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11183
# Compiler flag to allow reflexive dlopens.
11184
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11186
# Compiler flag to generate shared objects directly from archives.
11187
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11189
# Compiler flag to generate thread-safe objects.
11190
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11192
# Library versioning type.
11193
version_type=$version_type
11195
# Format of library name prefix.
11196
libname_spec=$lt_libname_spec
11198
# List of archive names. First name is the real one, the rest are links.
11199
# The last name is the one that the linker finds with -lNAME.
11200
library_names_spec=$lt_library_names_spec
11202
# The coded name of the library, if different from the real name.
11203
soname_spec=$lt_soname_spec
11205
# Commands used to build and install an old-style archive.
11207
old_archive_cmds=$lt_old_archive_cmds
11208
old_postinstall_cmds=$lt_old_postinstall_cmds
11209
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11211
# Create an old-style archive from a shared archive.
11212
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11214
# Create a temporary old-style archive to link instead of a shared archive.
11215
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11217
# Commands used to build and install a shared archive.
11218
archive_cmds=$lt_archive_cmds
11219
archive_expsym_cmds=$lt_archive_expsym_cmds
11220
postinstall_cmds=$lt_postinstall_cmds
11221
postuninstall_cmds=$lt_postuninstall_cmds
11223
# Commands used to build a loadable module (assumed same as above if empty)
11224
module_cmds=$lt_module_cmds
11225
module_expsym_cmds=$lt_module_expsym_cmds
11227
# Commands to strip libraries.
11228
old_striplib=$lt_old_striplib
11229
striplib=$lt_striplib
11231
# Dependencies to place before the objects being linked to create a
11233
predep_objects=$lt_predep_objects
11235
# Dependencies to place after the objects being linked to create a
11237
postdep_objects=$lt_postdep_objects
11239
# Dependencies to place before the objects being linked to create a
11241
predeps=$lt_predeps
11243
# Dependencies to place after the objects being linked to create a
11245
postdeps=$lt_postdeps
11247
# The directories searched by this compiler when creating a shared
11249
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11251
# The library search path used internally by the compiler when linking
11252
# a shared library.
11253
compiler_lib_search_path=$lt_compiler_lib_search_path
11255
# Method to check whether dependent libraries are shared objects.
11256
deplibs_check_method=$lt_deplibs_check_method
11258
# Command to use when deplibs_check_method == file_magic.
11259
file_magic_cmd=$lt_file_magic_cmd
11261
# Flag that allows shared libraries with undefined symbols to be built.
11262
allow_undefined_flag=$lt_allow_undefined_flag
11264
# Flag that forces no undefined symbols.
11265
no_undefined_flag=$lt_no_undefined_flag
11267
# Commands used to finish a libtool library installation in a directory.
11268
finish_cmds=$lt_finish_cmds
11270
# Same as above, but a single script fragment to be evaled but not shown.
11271
finish_eval=$lt_finish_eval
11273
# Take the output of nm and produce a listing of raw symbols and C names.
11274
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11276
# Transform the output of nm in a proper C declaration
11277
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11279
# Transform the output of nm in a C name address pair
11280
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11282
# This is the shared library runtime path variable.
11283
runpath_var=$runpath_var
11285
# This is the shared library path variable.
11286
shlibpath_var=$shlibpath_var
11288
# Is shlibpath searched before the hard-coded library search path?
11289
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11291
# How to hardcode a shared library path into an executable.
11292
hardcode_action=$hardcode_action
11294
# Whether we should hardcode library paths into libraries.
11295
hardcode_into_libs=$hardcode_into_libs
11297
# Flag to hardcode \$libdir into a binary during linking.
11298
# This must work even if \$libdir does not exist.
11299
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11301
# If ld is used when linking, flag to hardcode \$libdir into
11302
# a binary during linking. This must work even if \$libdir does
11304
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11306
# Whether we need a single -rpath flag with a separated argument.
11307
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11309
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11310
# resulting binary.
11311
hardcode_direct=$hardcode_direct
11313
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11314
# resulting binary.
11315
hardcode_minus_L=$hardcode_minus_L
11317
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11318
# the resulting binary.
11319
hardcode_shlibpath_var=$hardcode_shlibpath_var
11321
# Set to yes if building a shared library automatically hardcodes DIR into the library
11322
# and all subsequent libraries and executables linked against it.
11323
hardcode_automatic=$hardcode_automatic
11325
# Variables whose values should be saved in libtool wrapper scripts and
11326
# restored at relink time.
11327
variables_saved_for_relink="$variables_saved_for_relink"
11329
# Whether libtool must link a program against all its dependency libraries.
11330
link_all_deplibs=$link_all_deplibs
11332
# Compile-time system search path for libraries
11333
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11335
# Run-time system search path for libraries
11336
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11338
# Fix the shell variable \$srcfile for the compiler.
11339
fix_srcfile_path=$lt_fix_srcfile_path
11341
# Set to yes if exported symbols are required.
11342
always_export_symbols=$always_export_symbols
11344
# The commands to list exported symbols.
11345
export_symbols_cmds=$lt_export_symbols_cmds
11347
# The commands to extract the exported symbol list from a shared archive.
11348
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11350
# Symbols that should not be listed in the preloaded symbols.
11351
exclude_expsyms=$lt_exclude_expsyms
11353
# Symbols that must always be exported.
11354
include_expsyms=$lt_include_expsyms
11356
# ### END LIBTOOL CONFIG
11363
cat <<\EOF >> "$cfgfile"
11365
# AIX sometimes has problems with the GCC collect2 program. For some
11366
# reason, if we set the COLLECT_NAMES environment variable, the problems
11367
# vanish in a puff of smoke.
11368
if test "X${COLLECT_NAMES+set}" != Xset; then
11370
export COLLECT_NAMES
11376
# We use sed instead of cat because bash on DJGPP gets confused if
11377
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11378
# text mode, it properly converts lines to CR/LF. This bash problem
11379
# is reportedly fixed, but why not run on old versions too?
11380
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11382
mv -f "$cfgfile" "$ofile" || \
11383
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11387
# If there is no Makefile yet, we rely on a make rule to execute
11388
# `config.status --recheck' to rerun these tests and create the
11389
# libtool script then.
11390
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11391
if test -f "$ltmain_in"; then
11392
test -f Makefile && make "$ltmain"
11398
ac_cpp='$CPP $CPPFLAGS'
11399
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11400
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11401
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11406
# Check whether --with-tags was given.
11407
if test "${with_tags+set}" = set; then
11408
withval=$with_tags; tagnames="$withval"
11412
if test -f "$ltmain" && test -n "$tagnames"; then
11413
if test ! -f "${ofile}"; then
11414
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11415
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11418
if test -z "$LTCC"; then
11419
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11420
if test -z "$LTCC"; then
11421
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11422
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11424
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11425
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11428
if test -z "$LTCFLAGS"; then
11429
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11432
# Extract list of available tagged configurations in $ofile.
11433
# Note that this assumes the entire list is on one line.
11434
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11436
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11437
for tagname in $tagnames; do
11439
# Check whether tagname contains only valid characters
11440
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11442
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11443
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11444
{ (exit 1); exit 1; }; }
11448
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11450
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11451
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11452
{ (exit 1); exit 1; }; }
11455
# Update the list of available tags.
11456
if test -n "$tagname"; then
11457
echo appending configuration tag \"$tagname\" to $ofile
11461
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11462
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11463
(test "X$CXX" != "Xg++"))) ; then
11465
ac_cpp='$CXXCPP $CPPFLAGS'
11466
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11473
archive_cmds_need_lc_CXX=no
11474
allow_undefined_flag_CXX=
11475
always_export_symbols_CXX=no
11476
archive_expsym_cmds_CXX=
11477
export_dynamic_flag_spec_CXX=
11478
hardcode_direct_CXX=no
11479
hardcode_libdir_flag_spec_CXX=
11480
hardcode_libdir_flag_spec_ld_CXX=
11481
hardcode_libdir_separator_CXX=
11482
hardcode_minus_L_CXX=no
11483
hardcode_shlibpath_var_CXX=unsupported
11484
hardcode_automatic_CXX=no
11486
module_expsym_cmds_CXX=
11487
link_all_deplibs_CXX=unknown
11488
old_archive_cmds_CXX=$old_archive_cmds
11489
no_undefined_flag_CXX=
11490
whole_archive_flag_spec_CXX=
11491
enable_shared_with_static_runtimes_CXX=no
11493
# Dependencies to place before and after the object being linked:
11494
predep_objects_CXX=
11495
postdep_objects_CXX=
11498
compiler_lib_search_path_CXX=
11499
compiler_lib_search_dirs_CXX=
11501
# Source file extension for C++ test sources.
11504
# Object file extension for compiled C++ test sources.
11508
# Code to be used in simple compile tests
11509
lt_simple_compile_test_code="int some_variable = 0;"
11511
# Code to be used in simple link tests
11512
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11514
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11516
# If no C compiler was specified, use CC.
11519
# If no C compiler flags were specified, use CFLAGS.
11520
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11522
# Allow CC to be a program name with arguments.
11526
# save warnings/boilerplate of simple test code
11527
ac_outfile=conftest.$ac_objext
11528
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11529
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11530
_lt_compiler_boilerplate=`cat conftest.err`
11533
ac_outfile=conftest.$ac_objext
11534
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11535
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11536
_lt_linker_boilerplate=`cat conftest.err`
11540
# Allow CC to be a program name with arguments.
11545
lt_save_with_gnu_ld=$with_gnu_ld
11546
lt_save_path_LD=$lt_cv_path_LD
11547
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11548
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11550
$as_unset lt_cv_prog_gnu_ld
11552
if test -n "${lt_cv_path_LDCXX+set}"; then
11553
lt_cv_path_LD=$lt_cv_path_LDCXX
11555
$as_unset lt_cv_path_LD
11557
test -z "${LDCXX+set}" || LD=$LDCXX
11561
for cc_temp in $compiler""; do
11563
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11564
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11569
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11572
# We don't want -fno-exception wen compiling C++ code, so set the
11573
# no_builtin_flag separately
11574
if test "$GXX" = yes; then
11575
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11577
lt_prog_compiler_no_builtin_flag_CXX=
11580
if test "$GXX" = yes; then
11581
# Set up default GNU C++ configuration
11584
# Check whether --with-gnu-ld was given.
11585
if test "${with_gnu_ld+set}" = set; then
11586
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11592
if test "$GCC" = yes; then
11593
# Check if gcc -print-prog-name=ld gives a path.
11594
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11595
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11598
# gcc leaves a trailing carriage return which upsets mingw
11599
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11601
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11604
# Accept absolute paths.
11606
re_direlt='/[^/][^/]*/\.\./'
11607
# Canonicalize the pathname of ld
11608
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11609
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11610
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11612
test -z "$LD" && LD="$ac_prog"
11615
# If it fails, then pretend we aren't using GCC.
11619
# If it is relative, then search for the first ld in PATH.
11620
with_gnu_ld=unknown
11623
elif test "$with_gnu_ld" = yes; then
11624
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11625
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11627
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11628
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11630
if test "${lt_cv_path_LD+set}" = set; then
11631
echo $ECHO_N "(cached) $ECHO_C" >&6
11633
if test -z "$LD"; then
11634
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11635
for ac_dir in $PATH; do
11637
test -z "$ac_dir" && ac_dir=.
11638
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11639
lt_cv_path_LD="$ac_dir/$ac_prog"
11640
# Check to see if the program is GNU ld. I'd rather use --version,
11641
# but apparently some variants of GNU ld only accept -v.
11642
# Break only if it was the GNU/non-GNU ld that we prefer.
11643
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11644
*GNU* | *'with BFD'*)
11645
test "$with_gnu_ld" != no && break
11648
test "$with_gnu_ld" != yes && break
11655
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11659
LD="$lt_cv_path_LD"
11660
if test -n "$LD"; then
11661
{ echo "$as_me:$LINENO: result: $LD" >&5
11662
echo "${ECHO_T}$LD" >&6; }
11664
{ echo "$as_me:$LINENO: result: no" >&5
11665
echo "${ECHO_T}no" >&6; }
11667
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11668
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11669
{ (exit 1); exit 1; }; }
11670
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11671
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11672
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11673
echo $ECHO_N "(cached) $ECHO_C" >&6
11675
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11676
case `$LD -v 2>&1 </dev/null` in
11677
*GNU* | *'with BFD'*)
11678
lt_cv_prog_gnu_ld=yes
11681
lt_cv_prog_gnu_ld=no
11685
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11686
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11687
with_gnu_ld=$lt_cv_prog_gnu_ld
11691
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11692
# archiving commands below assume that GNU ld is being used.
11693
if test "$with_gnu_ld" = yes; then
11694
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11695
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'
11697
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11698
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11700
# If archive_cmds runs LD, not CC, wlarc should be empty
11701
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11702
# investigate it a little bit more. (MM)
11705
# ancient GNU ld didn't support --whole-archive et. al.
11706
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11707
grep 'no-whole-archive' > /dev/null; then
11708
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11710
whole_archive_flag_spec_CXX=
11716
# A generic and very simple default shared library creation
11717
# command for GNU C++ for the case where it uses the native
11718
# linker, instead of GNU ld. If possible, this setting should
11719
# overridden to take advantage of the native linker features on
11720
# the platform it is being used on.
11721
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11724
# Commands to make compiler produce verbose output that lists
11725
# what "hidden" libraries, object files and flags are used when
11726
# linking a shared library.
11727
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11735
# PORTME: fill in a description of your system's C++ link characteristics
11736
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11737
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11741
# FIXME: insert proper C++ library support
11745
if test "$host_cpu" = ia64; then
11746
# On IA64, the linker does run time linking by default, so we don't
11747
# have to do anything special.
11748
aix_use_runtimelinking=no
11749
exp_sym_flag='-Bexport'
11752
aix_use_runtimelinking=no
11754
# Test if we are trying to use run time linking or normal
11755
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11756
# need to do runtime linking.
11757
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11758
for ld_flag in $LDFLAGS; do
11761
aix_use_runtimelinking=yes
11769
exp_sym_flag='-bexport'
11770
no_entry_flag='-bnoentry'
11773
# When large executables or shared objects are built, AIX ld can
11774
# have problems creating the table of contents. If linking a library
11775
# or program results in "error TOC overflow" add -mminimal-toc to
11776
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11777
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11779
archive_cmds_CXX=''
11780
hardcode_direct_CXX=yes
11781
hardcode_libdir_separator_CXX=':'
11782
link_all_deplibs_CXX=yes
11784
if test "$GXX" = yes; then
11785
case $host_os in aix4.[012]|aix4.[012].*)
11786
# We only want to do this on AIX 4.2 and lower, the check
11787
# below for broken collect2 doesn't work under 4.3+
11788
collect2name=`${CC} -print-prog-name=collect2`
11789
if test -f "$collect2name" && \
11790
strings "$collect2name" | grep resolve_lib_name >/dev/null
11792
# We have reworked collect2
11795
# We have old collect2
11796
hardcode_direct_CXX=unsupported
11797
# It fails to find uninstalled libraries when the uninstalled
11798
# path is not listed in the libpath. Setting hardcode_minus_L
11799
# to unsupported forces relinking
11800
hardcode_minus_L_CXX=yes
11801
hardcode_libdir_flag_spec_CXX='-L$libdir'
11802
hardcode_libdir_separator_CXX=
11806
shared_flag='-shared'
11807
if test "$aix_use_runtimelinking" = yes; then
11808
shared_flag="$shared_flag "'${wl}-G'
11812
if test "$host_cpu" = ia64; then
11813
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11814
# chokes on -Wl,-G. The following line is correct:
11817
if test "$aix_use_runtimelinking" = yes; then
11818
shared_flag='${wl}-G'
11820
shared_flag='${wl}-bM:SRE'
11825
# It seems that -bexpall does not export symbols beginning with
11826
# underscore (_), so it is better to generate a list of symbols to export.
11827
always_export_symbols_CXX=yes
11828
if test "$aix_use_runtimelinking" = yes; then
11829
# Warning - without using the other runtime loading flags (-brtl),
11830
# -berok will link without error, but may produce a broken library.
11831
allow_undefined_flag_CXX='-berok'
11832
# Determine the default libpath from the value encoded in an empty executable.
11833
cat >conftest.$ac_ext <<_ACEOF
11836
cat confdefs.h >>conftest.$ac_ext
11837
cat >>conftest.$ac_ext <<_ACEOF
11838
/* end confdefs.h. */
11848
rm -f conftest.$ac_objext conftest$ac_exeext
11849
if { (ac_try="$ac_link"
11850
case "(($ac_try" in
11851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852
*) ac_try_echo=$ac_try;;
11854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855
(eval "$ac_link") 2>conftest.er1
11857
grep -v '^ *+' conftest.er1 >conftest.err
11859
cat conftest.err >&5
11860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861
(exit $ac_status); } && {
11862
test -z "$ac_cxx_werror_flag" ||
11863
test ! -s conftest.err
11864
} && test -s conftest$ac_exeext &&
11865
$as_test_x conftest$ac_exeext; then
11867
lt_aix_libpath_sed='
11868
/Import File Strings/,/^$/ {
11874
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11875
# Check for a 64-bit object if we didn't find anything.
11876
if test -z "$aix_libpath"; then
11877
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11880
echo "$as_me: failed program was:" >&5
11881
sed 's/^/| /' conftest.$ac_ext >&5
11886
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11887
conftest$ac_exeext conftest.$ac_ext
11888
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11890
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11892
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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11894
if test "$host_cpu" = ia64; then
11895
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11896
allow_undefined_flag_CXX="-z nodefs"
11897
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"
11899
# Determine the default libpath from the value encoded in an empty executable.
11900
cat >conftest.$ac_ext <<_ACEOF
11903
cat confdefs.h >>conftest.$ac_ext
11904
cat >>conftest.$ac_ext <<_ACEOF
11905
/* end confdefs.h. */
11915
rm -f conftest.$ac_objext conftest$ac_exeext
11916
if { (ac_try="$ac_link"
11917
case "(($ac_try" in
11918
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919
*) ac_try_echo=$ac_try;;
11921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922
(eval "$ac_link") 2>conftest.er1
11924
grep -v '^ *+' conftest.er1 >conftest.err
11926
cat conftest.err >&5
11927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928
(exit $ac_status); } && {
11929
test -z "$ac_cxx_werror_flag" ||
11930
test ! -s conftest.err
11931
} && test -s conftest$ac_exeext &&
11932
$as_test_x conftest$ac_exeext; then
11934
lt_aix_libpath_sed='
11935
/Import File Strings/,/^$/ {
11941
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11942
# Check for a 64-bit object if we didn't find anything.
11943
if test -z "$aix_libpath"; then
11944
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11947
echo "$as_me: failed program was:" >&5
11948
sed 's/^/| /' conftest.$ac_ext >&5
11953
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11954
conftest$ac_exeext conftest.$ac_ext
11955
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11957
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11958
# Warning - without using the other run time loading flags,
11959
# -berok will link without error, but may produce a broken library.
11960
no_undefined_flag_CXX=' ${wl}-bernotok'
11961
allow_undefined_flag_CXX=' ${wl}-berok'
11962
# Exported symbols can be pulled into shared objects from archives
11963
whole_archive_flag_spec_CXX='$convenience'
11964
archive_cmds_need_lc_CXX=yes
11965
# This is similar to how AIX traditionally builds its shared libraries.
11966
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'
11972
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11973
allow_undefined_flag_CXX=unsupported
11974
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11975
# support --undefined. This deserves some investigation. FIXME
11976
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11983
case $cc_basename in
11985
# FIXME: insert proper C++ library support
11991
cygwin* | mingw* | pw32*)
11992
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11993
# as there is no search path for DLLs.
11994
hardcode_libdir_flag_spec_CXX='-L$libdir'
11995
allow_undefined_flag_CXX=unsupported
11996
always_export_symbols_CXX=no
11997
enable_shared_with_static_runtimes_CXX=yes
11999
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12000
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'
12001
# If the export-symbols file already is a .def file (1st line
12002
# is EXPORTS), use it as is; otherwise, prepend...
12003
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12004
cp $export_symbols $output_objdir/$soname.def;
12006
echo EXPORTS > $output_objdir/$soname.def;
12007
cat $export_symbols >> $output_objdir/$soname.def;
12009
$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'
12014
darwin* | rhapsody*)
12015
archive_cmds_need_lc_CXX=no
12016
hardcode_direct_CXX=no
12017
hardcode_automatic_CXX=yes
12018
hardcode_shlibpath_var_CXX=unsupported
12019
whole_archive_flag_spec_CXX=''
12020
link_all_deplibs_CXX=yes
12021
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12022
if test "$GXX" = yes ; then
12023
output_verbose_link_cmd='echo'
12024
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}"
12025
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12026
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}"
12027
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}"
12028
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12029
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}"
12030
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}"
12033
case $cc_basename in
12035
output_verbose_link_cmd='echo'
12036
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12037
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12038
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12039
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12040
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12050
case $cc_basename in
12052
# FIXME: insert proper C++ library support
12056
# Green Hills C++ Compiler
12057
# FIXME: insert proper C++ library support
12061
# FIXME: insert proper C++ library support
12067
# C++ shared libraries reported to be fairly broken before switch to ELF
12071
archive_cmds_need_lc_CXX=no
12073
freebsd* | dragonfly*)
12074
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12081
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12082
hardcode_libdir_separator_CXX=:
12083
export_dynamic_flag_spec_CXX='${wl}-E'
12084
hardcode_direct_CXX=yes
12085
hardcode_minus_L_CXX=yes # Not in the search PATH,
12086
# but as the default
12087
# location of the library.
12089
case $cc_basename in
12091
# FIXME: insert proper C++ library support
12095
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'
12096
# Commands to make compiler produce verbose output that lists
12097
# what "hidden" libraries, object files and flags are used when
12098
# linking a shared library.
12100
# There doesn't appear to be a way to prevent this compiler from
12101
# explicitly linking system object files so we need to strip them
12102
# from the output so that they don't get included in the library
12104
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 $list'
12107
if test "$GXX" = yes; then
12108
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'
12110
# FIXME: insert proper C++ library support
12117
if test $with_gnu_ld = no; then
12118
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12119
hardcode_libdir_separator_CXX=:
12124
export_dynamic_flag_spec_CXX='${wl}-E'
12130
hardcode_direct_CXX=no
12131
hardcode_shlibpath_var_CXX=no
12134
hardcode_direct_CXX=yes
12135
hardcode_minus_L_CXX=yes # Not in the search PATH,
12136
# but as the default
12137
# location of the library.
12141
case $cc_basename in
12143
# FIXME: insert proper C++ library support
12149
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12152
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12155
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12158
# Commands to make compiler produce verbose output that lists
12159
# what "hidden" libraries, object files and flags are used when
12160
# linking a shared library.
12162
# There doesn't appear to be a way to prevent this compiler from
12163
# explicitly linking system object files so we need to strip them
12164
# from the output so that they don't get included in the library
12166
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 $list'
12169
if test "$GXX" = yes; then
12170
if test $with_gnu_ld = no; then
12173
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12176
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12179
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'
12184
# FIXME: insert proper C++ library support
12191
hardcode_direct_CXX=no
12192
hardcode_shlibpath_var_CXX=no
12193
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12194
export_dynamic_flag_spec_CXX='${wl}-E'
12195
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12196
# Instead, shared libraries are loaded at an image base (0x10000000 by
12197
# default) and relocated if they conflict, which is a slow very memory
12198
# consuming and fragmenting process. To avoid this, we pick a random,
12199
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12200
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12201
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'
12202
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'
12205
case $cc_basename in
12208
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12210
# Archives containing C++ object files must be created using
12211
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12212
# necessary to make sure instantiated templates are included
12214
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12217
if test "$GXX" = yes; then
12218
if test "$with_gnu_ld" = no; then
12219
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12221
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12224
link_all_deplibs_CXX=yes
12227
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12228
hardcode_libdir_separator_CXX=:
12230
linux* | k*bsd*-gnu)
12231
case $cc_basename in
12233
# Kuck and Associates, Inc. (KAI) C++ Compiler
12235
# KCC will only create a shared library if the output file
12236
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12237
# to its proper name (with version) after linking.
12238
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'
12239
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'
12240
# Commands to make compiler produce verbose output that lists
12241
# what "hidden" libraries, object files and flags are used when
12242
# linking a shared library.
12244
# There doesn't appear to be a way to prevent this compiler from
12245
# explicitly linking system object files so we need to strip them
12246
# from the output so that they don't get included in the library
12248
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 $list'
12250
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12251
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12253
# Archives containing C++ object files must be created using
12254
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12255
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12260
# version 8.0 and above of icpc choke on multiply defined symbols
12261
# if we add $predep_objects and $postdep_objects, however 7.1 and
12262
# earlier do not add the objects themselves.
12263
case `$CC -V 2>&1` in
12265
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266
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'
12268
*) # Version 8.0 or newer
12271
ia64*) tmp_idyn=' -i_dynamic';;
12273
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12274
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'
12277
archive_cmds_need_lc_CXX=no
12278
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12279
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12280
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12283
# Portland Group C++ compiler
12284
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12285
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'
12287
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12288
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12289
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'
12293
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12294
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'
12296
runpath_var=LD_RUN_PATH
12297
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12298
hardcode_libdir_separator_CXX=:
12300
# Commands to make compiler produce verbose output that lists
12301
# what "hidden" libraries, object files and flags are used when
12302
# linking a shared library.
12304
# There doesn't appear to be a way to prevent this compiler from
12305
# explicitly linking system object files so we need to strip them
12306
# from the output so that they don't get included in the library
12308
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
12311
case `$CC -V 2>&1 | sed 5q` in
12314
no_undefined_flag_CXX=' -zdefs'
12315
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12316
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'
12317
hardcode_libdir_flag_spec_CXX='-R$libdir'
12318
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'
12320
# Not sure whether something based on
12321
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12323
output_verbose_link_cmd='echo'
12325
# Archives containing C++ object files must be created using
12326
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12327
# necessary to make sure instantiated templates are included
12329
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12336
# FIXME: insert proper C++ library support
12340
# FIXME: insert proper C++ library support
12344
case $cc_basename in
12346
# FIXME: insert proper C++ library support
12350
# FIXME: insert proper C++ library support
12355
netbsd* | netbsdelf*-gnu)
12356
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12357
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12359
hardcode_libdir_flag_spec_CXX='-R$libdir'
12360
hardcode_direct_CXX=yes
12361
hardcode_shlibpath_var_CXX=no
12363
# Workaround some broken pre-1.5 toolchains
12364
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12367
# C++ shared libraries are fairly broken
12371
if test -f /usr/libexec/ld.so; then
12372
hardcode_direct_CXX=yes
12373
hardcode_shlibpath_var_CXX=no
12374
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12375
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12376
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12377
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12378
export_dynamic_flag_spec_CXX='${wl}-E'
12379
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12381
output_verbose_link_cmd='echo'
12387
case $cc_basename in
12389
# Kuck and Associates, Inc. (KAI) C++ Compiler
12391
# KCC will only create a shared library if the output file
12392
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12393
# to its proper name (with version) after linking.
12394
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'
12396
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12397
hardcode_libdir_separator_CXX=:
12399
# Archives containing C++ object files must be created using
12400
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12401
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12405
# Rational C++ 2.4.1
12406
# FIXME: insert proper C++ library support
12410
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12411
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12413
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12414
hardcode_libdir_separator_CXX=:
12416
# Commands to make compiler produce verbose output that lists
12417
# what "hidden" libraries, object files and flags are used when
12418
# linking a shared library.
12420
# There doesn't appear to be a way to prevent this compiler from
12421
# explicitly linking system object files so we need to strip them
12422
# from the output so that they don't get included in the library
12424
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
12427
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12428
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12429
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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12431
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12432
hardcode_libdir_separator_CXX=:
12434
# Commands to make compiler produce verbose output that lists
12435
# what "hidden" libraries, object files and flags are used when
12436
# linking a shared library.
12437
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12440
# FIXME: insert proper C++ library support
12447
case $cc_basename in
12449
# Kuck and Associates, Inc. (KAI) C++ Compiler
12451
# KCC will only create a shared library if the output file
12452
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12453
# to its proper name (with version) after linking.
12454
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'
12456
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12457
hardcode_libdir_separator_CXX=:
12459
# Archives containing C++ object files must be created using
12460
# the KAI C++ compiler.
12461
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12464
# Rational C++ 2.4.1
12465
# FIXME: insert proper C++ library support
12469
allow_undefined_flag_CXX=' -expect_unresolved \*'
12470
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12471
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12472
echo "-hidden">> $lib.exp~
12473
$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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12476
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12477
hardcode_libdir_separator_CXX=:
12479
# Commands to make compiler produce verbose output that lists
12480
# what "hidden" libraries, object files and flags are used when
12481
# linking a shared library.
12483
# There doesn't appear to be a way to prevent this compiler from
12484
# explicitly linking system object files so we need to strip them
12485
# from the output so that they don't get included in the library
12487
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
12490
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12491
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12492
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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12494
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12495
hardcode_libdir_separator_CXX=:
12497
# Commands to make compiler produce verbose output that lists
12498
# what "hidden" libraries, object files and flags are used when
12499
# linking a shared library.
12500
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12503
# FIXME: insert proper C++ library support
12510
# FIXME: insert proper C++ library support
12514
case $cc_basename in
12517
# FIXME: insert proper C++ library support
12522
# FIXME: insert proper C++ library support
12526
# FIXME: insert proper C++ library support
12532
case $cc_basename in
12534
# Sun C++ 4.2, 5.x and Centerline C++
12535
archive_cmds_need_lc_CXX=yes
12536
no_undefined_flag_CXX=' -zdefs'
12537
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12538
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12539
$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'
12541
hardcode_libdir_flag_spec_CXX='-R$libdir'
12542
hardcode_shlibpath_var_CXX=no
12544
solaris2.[0-5] | solaris2.[0-5].*) ;;
12546
# The compiler driver will combine and reorder linker options,
12547
# but understands `-z linker_flag'.
12548
# Supported since Solaris 2.6 (maybe 2.5.1?)
12549
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12552
link_all_deplibs_CXX=yes
12554
output_verbose_link_cmd='echo'
12556
# Archives containing C++ object files must be created using
12557
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12558
# necessary to make sure instantiated templates are included
12560
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12563
# Green Hills C++ Compiler
12564
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12566
# The C++ compiler must be used to create the archive.
12567
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12570
# GNU C++ compiler with Solaris linker
12571
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12572
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12573
if $CC --version | grep -v '^2\.7' > /dev/null; then
12574
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12575
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12576
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12578
# Commands to make compiler produce verbose output that lists
12579
# what "hidden" libraries, object files and flags are used when
12580
# linking a shared library.
12581
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12583
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12585
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12586
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12587
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12589
# Commands to make compiler produce verbose output that lists
12590
# what "hidden" libraries, object files and flags are used when
12591
# linking a shared library.
12592
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12595
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12597
solaris2.[0-5] | solaris2.[0-5].*) ;;
12599
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12606
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12607
no_undefined_flag_CXX='${wl}-z,text'
12608
archive_cmds_need_lc_CXX=no
12609
hardcode_shlibpath_var_CXX=no
12610
runpath_var='LD_RUN_PATH'
12612
case $cc_basename in
12614
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12618
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12619
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12623
sysv5* | sco3.2v5* | sco5v6*)
12624
# Note: We can NOT use -z defs as we might desire, because we do not
12625
# link with -lc, and that would cause any symbols used from libc to
12626
# always be unresolved, which means just about no library would
12627
# ever link correctly. If we're not using GNU ld we use -z text
12628
# though, which does catch some bad symbols but isn't as heavy-handed
12630
# For security reasons, it is highly recommended that you always
12631
# use absolute paths for naming shared libraries, and exclude the
12632
# DT_RUNPATH tag from executables and libraries. But doing so
12633
# requires that you compile everything twice, which is a pain.
12634
# So that behaviour is only enabled if SCOABSPATH is set to a
12635
# non-empty value in the environment. Most likely only useful for
12636
# creating official distributions of packages.
12637
# This is a hack until libtool officially supports absolute path
12638
# names for shared libraries.
12639
no_undefined_flag_CXX='${wl}-z,text'
12640
allow_undefined_flag_CXX='${wl}-z,nodefs'
12641
archive_cmds_need_lc_CXX=no
12642
hardcode_shlibpath_var_CXX=no
12643
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12644
hardcode_libdir_separator_CXX=':'
12645
link_all_deplibs_CXX=yes
12646
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12647
runpath_var='LD_RUN_PATH'
12649
case $cc_basename in
12651
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12652
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12655
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12656
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12661
case $cc_basename in
12663
# NonStop-UX NCC 3.20
12664
# FIXME: insert proper C++ library support
12668
# FIXME: insert proper C++ library support
12674
# FIXME: insert proper C++ library support
12678
# FIXME: insert proper C++ library support
12682
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12683
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12684
test "$ld_shlibs_CXX" = no && can_build_shared=no
12689
cat > conftest.$ac_ext <<EOF
12693
Foo (void) { a = 0; }
12699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12700
(eval $ac_compile) 2>&5
12702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703
(exit $ac_status); }; then
12704
# Parse the compiler output and extract the necessary
12705
# objects, libraries and library flags.
12707
# Sentinel used to keep track of whether or not we are before
12708
# the conftest object file.
12709
pre_test_object_deps_done=no
12711
# The `*' in the case matches for architectures that use `case' in
12712
# $output_verbose_cmd can trigger glob expansion during the loop
12713
# eval without this substitution.
12714
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12716
for p in `eval $output_verbose_link_cmd`; do
12720
# Some compilers place space between "-{L,R}" and the path.
12721
# Remove the space.
12722
if test $p = "-L" \
12723
|| test $p = "-R"; then
12730
if test "$pre_test_object_deps_done" = no; then
12733
# Internal compiler library paths should come after those
12734
# provided the user. The postdeps already come after the
12735
# user supplied libs so there is no need to process them.
12736
if test -z "$compiler_lib_search_path_CXX"; then
12737
compiler_lib_search_path_CXX="${prev}${p}"
12739
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12742
# The "-l" case would never come before the object being
12743
# linked, so don't bother handling this case.
12746
if test -z "$postdeps_CXX"; then
12747
postdeps_CXX="${prev}${p}"
12749
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12755
# This assumes that the test object file only shows up
12756
# once in the compiler output.
12757
if test "$p" = "conftest.$objext"; then
12758
pre_test_object_deps_done=yes
12762
if test "$pre_test_object_deps_done" = no; then
12763
if test -z "$predep_objects_CXX"; then
12764
predep_objects_CXX="$p"
12766
predep_objects_CXX="$predep_objects_CXX $p"
12769
if test -z "$postdep_objects_CXX"; then
12770
postdep_objects_CXX="$p"
12772
postdep_objects_CXX="$postdep_objects_CXX $p"
12777
*) ;; # Ignore the rest.
12785
echo "libtool.m4: error: problem compiling CXX test program"
12788
$rm -f confest.$objext
12790
compiler_lib_search_dirs_CXX=
12791
if test -n "$compiler_lib_search_path_CXX"; then
12792
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12795
# PORTME: override above test on systems where it is broken
12798
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12799
# hack all around it, let's just trust "g++" to DTRT.
12800
predep_objects_CXX=
12801
postdep_objects_CXX=
12806
case `$CC -V 2>&1 | sed 5q` in
12810
# The more standards-conforming stlport4 library is
12811
# incompatible with the Cstd library. Avoid specifying
12812
# it if it's in CXXFLAGS. Ignore libCrun as
12813
# -library=stlport4 depends on it.
12814
case " $CXX $CXXFLAGS " in
12815
*" -library=stlport4 "*)
12816
solaris_use_stlport4=yes
12819
if test "$solaris_use_stlport4" != yes; then
12820
postdeps_CXX='-library=Cstd -library=Crun'
12827
case $cc_basename in
12829
# The more standards-conforming stlport4 library is
12830
# incompatible with the Cstd library. Avoid specifying
12831
# it if it's in CXXFLAGS. Ignore libCrun as
12832
# -library=stlport4 depends on it.
12833
case " $CXX $CXXFLAGS " in
12834
*" -library=stlport4 "*)
12835
solaris_use_stlport4=yes
12839
# Adding this requires a known-good setup of shared libraries for
12840
# Sun compiler versions before 5.6, else PIC objects from an old
12841
# archive will be linked into the output, leading to subtle bugs.
12842
if test "$solaris_use_stlport4" != yes; then
12843
postdeps_CXX='-library=Cstd -library=Crun'
12850
case " $postdeps_CXX " in
12851
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12854
lt_prog_compiler_wl_CXX=
12855
lt_prog_compiler_pic_CXX=
12856
lt_prog_compiler_static_CXX=
12858
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12859
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12861
# C++ specific cases for pic, static, wl, etc.
12862
if test "$GXX" = yes; then
12863
lt_prog_compiler_wl_CXX='-Wl,'
12864
lt_prog_compiler_static_CXX='-static'
12868
# All AIX code is PIC.
12869
if test "$host_cpu" = ia64; then
12870
# AIX 5 now supports IA64 processor
12871
lt_prog_compiler_static_CXX='-Bstatic'
12875
# FIXME: we need at least 68020 code to build shared libraries, but
12876
# adding the `-m68020' flag to GCC prevents building anything better,
12878
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12880
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12881
# PIC is the default for these OSes.
12883
mingw* | cygwin* | os2* | pw32*)
12884
# This hack is so that the source file can tell whether it is being
12885
# built for inclusion in a dll (and should export symbols for example).
12886
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12887
# (--disable-auto-import) libraries
12888
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12890
darwin* | rhapsody*)
12891
# PIC is the default on this platform
12892
# Common symbols not allowed in MH_DYLIB files
12893
lt_prog_compiler_pic_CXX='-fno-common'
12896
# DJGPP does not support shared libraries at all
12897
lt_prog_compiler_pic_CXX=
12900
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12901
# Instead, we relocate shared libraries at runtime.
12904
if test -d /usr/nec; then
12905
lt_prog_compiler_pic_CXX=-Kconform_pic
12909
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12910
# not for PA HP-UX.
12915
lt_prog_compiler_pic_CXX='-fPIC'
12920
lt_prog_compiler_pic_CXX='-fPIC'
12926
# All AIX code is PIC.
12927
if test "$host_cpu" = ia64; then
12928
# AIX 5 now supports IA64 processor
12929
lt_prog_compiler_static_CXX='-Bstatic'
12931
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12935
case $cc_basename in
12937
# Green Hills C++ Compiler
12938
# _LT_AC_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"
12943
# PIC is the default on this platform
12944
# Common symbols not allowed in MH_DYLIB files
12945
case $cc_basename in
12947
lt_prog_compiler_pic_CXX='-qnocommon'
12948
lt_prog_compiler_wl_CXX='-Wl,'
12953
case $cc_basename in
12955
lt_prog_compiler_pic_CXX='-KPIC'
12958
# Green Hills C++ Compiler
12959
lt_prog_compiler_pic_CXX='-pic'
12965
freebsd* | dragonfly*)
12966
# FreeBSD uses GNU C++
12968
hpux9* | hpux10* | hpux11*)
12969
case $cc_basename in
12971
lt_prog_compiler_wl_CXX='-Wl,'
12972
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12973
if test "$host_cpu" != ia64; then
12974
lt_prog_compiler_pic_CXX='+Z'
12978
lt_prog_compiler_wl_CXX='-Wl,'
12979
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12985
lt_prog_compiler_pic_CXX='+Z'
12994
# This is c89, which is MS Visual C++ (no shared libs)
12995
# Anyone wants to do a port?
12997
irix5* | irix6* | nonstopux*)
12998
case $cc_basename in
13000
lt_prog_compiler_wl_CXX='-Wl,'
13001
lt_prog_compiler_static_CXX='-non_shared'
13002
# CC pic flag -KPIC is the default.
13008
linux* | k*bsd*-gnu)
13009
case $cc_basename in
13012
lt_prog_compiler_wl_CXX='--backend -Wl,'
13013
lt_prog_compiler_pic_CXX='-fPIC'
13017
lt_prog_compiler_wl_CXX='-Wl,'
13018
lt_prog_compiler_pic_CXX='-KPIC'
13019
lt_prog_compiler_static_CXX='-static'
13022
# Portland Group C++ compiler.
13023
lt_prog_compiler_wl_CXX='-Wl,'
13024
lt_prog_compiler_pic_CXX='-fpic'
13025
lt_prog_compiler_static_CXX='-Bstatic'
13029
# Make sure the PIC flag is empty. It appears that all Alpha
13030
# Linux and Compaq Tru64 Unix objects are PIC.
13031
lt_prog_compiler_pic_CXX=
13032
lt_prog_compiler_static_CXX='-non_shared'
13035
case `$CC -V 2>&1 | sed 5q` in
13038
lt_prog_compiler_pic_CXX='-KPIC'
13039
lt_prog_compiler_static_CXX='-Bstatic'
13040
lt_prog_compiler_wl_CXX='-Qoption ld '
13051
case $cc_basename in
13053
lt_prog_compiler_pic_CXX='-W c,exportall'
13059
netbsd* | netbsdelf*-gnu)
13061
osf3* | osf4* | osf5*)
13062
case $cc_basename in
13064
lt_prog_compiler_wl_CXX='--backend -Wl,'
13067
# Rational C++ 2.4.1
13068
lt_prog_compiler_pic_CXX='-pic'
13071
# Digital/Compaq C++
13072
lt_prog_compiler_wl_CXX='-Wl,'
13073
# Make sure the PIC flag is empty. It appears that all Alpha
13074
# Linux and Compaq Tru64 Unix objects are PIC.
13075
lt_prog_compiler_pic_CXX=
13076
lt_prog_compiler_static_CXX='-non_shared'
13085
case $cc_basename in
13087
# Sun C++ 4.2, 5.x and Centerline C++
13088
lt_prog_compiler_pic_CXX='-KPIC'
13089
lt_prog_compiler_static_CXX='-Bstatic'
13090
lt_prog_compiler_wl_CXX='-Qoption ld '
13093
# Green Hills C++ Compiler
13094
lt_prog_compiler_pic_CXX='-PIC'
13101
case $cc_basename in
13104
lt_prog_compiler_pic_CXX='-pic'
13105
lt_prog_compiler_static_CXX='-Bstatic'
13109
lt_prog_compiler_pic_CXX='-pic'
13116
case $cc_basename in
13118
# NonStop-UX NCC 3.20
13119
lt_prog_compiler_pic_CXX='-KPIC'
13125
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13126
case $cc_basename in
13128
lt_prog_compiler_wl_CXX='-Wl,'
13129
lt_prog_compiler_pic_CXX='-KPIC'
13130
lt_prog_compiler_static_CXX='-Bstatic'
13137
lt_prog_compiler_can_build_shared_CXX=no
13142
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13143
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13146
# Check to make sure the PIC flag actually works.
13148
if test -n "$lt_prog_compiler_pic_CXX"; then
13150
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13151
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13152
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13153
echo $ECHO_N "(cached) $ECHO_C" >&6
13155
lt_cv_prog_compiler_pic_works_CXX=no
13156
ac_outfile=conftest.$ac_objext
13157
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13158
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13159
# Insert the option either (1) after the last *FLAGS variable, or
13160
# (2) before a word containing "conftest.", or (3) at the end.
13161
# Note that $ac_compile itself does not contain backslashes and begins
13162
# with a dollar sign (not a hyphen), so the echo should work correctly.
13163
# The option is referenced via a variable to avoid confusing sed.
13164
lt_compile=`echo "$ac_compile" | $SED \
13165
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13166
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13167
-e 's:$: $lt_compiler_flag:'`
13168
(eval echo "\"\$as_me:13168: $lt_compile\"" >&5)
13169
(eval "$lt_compile" 2>conftest.err)
13171
cat conftest.err >&5
13172
echo "$as_me:13172: \$? = $ac_status" >&5
13173
if (exit $ac_status) && test -s "$ac_outfile"; then
13174
# The compiler can only warn and ignore the option if not recognized
13175
# So say no if there are warnings other than the usual output.
13176
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13177
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13178
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13179
lt_cv_prog_compiler_pic_works_CXX=yes
13185
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13186
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13188
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13189
case $lt_prog_compiler_pic_CXX in
13191
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13194
lt_prog_compiler_pic_CXX=
13195
lt_prog_compiler_can_build_shared_CXX=no
13200
# For platforms which do not support PIC, -DPIC is meaningless:
13202
lt_prog_compiler_pic_CXX=
13205
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13210
# Check to make sure the static flag actually works.
13212
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13213
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13214
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13215
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13216
echo $ECHO_N "(cached) $ECHO_C" >&6
13218
lt_cv_prog_compiler_static_works_CXX=no
13219
save_LDFLAGS="$LDFLAGS"
13220
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13221
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13222
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13223
# The linker can only warn and ignore the option if not recognized
13224
# So say no if there are warnings
13225
if test -s conftest.err; then
13226
# Append any errors to the config.log.
13227
cat conftest.err 1>&5
13228
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13229
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13230
if diff conftest.exp conftest.er2 >/dev/null; then
13231
lt_cv_prog_compiler_static_works_CXX=yes
13234
lt_cv_prog_compiler_static_works_CXX=yes
13238
LDFLAGS="$save_LDFLAGS"
13241
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13242
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13244
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13247
lt_prog_compiler_static_CXX=
13251
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13252
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13253
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13254
echo $ECHO_N "(cached) $ECHO_C" >&6
13256
lt_cv_prog_compiler_c_o_CXX=no
13257
$rm -r conftest 2>/dev/null
13261
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13263
lt_compiler_flag="-o out/conftest2.$ac_objext"
13264
# Insert the option either (1) after the last *FLAGS variable, or
13265
# (2) before a word containing "conftest.", or (3) at the end.
13266
# Note that $ac_compile itself does not contain backslashes and begins
13267
# with a dollar sign (not a hyphen), so the echo should work correctly.
13268
lt_compile=`echo "$ac_compile" | $SED \
13269
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13270
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13271
-e 's:$: $lt_compiler_flag:'`
13272
(eval echo "\"\$as_me:13272: $lt_compile\"" >&5)
13273
(eval "$lt_compile" 2>out/conftest.err)
13275
cat out/conftest.err >&5
13276
echo "$as_me:13276: \$? = $ac_status" >&5
13277
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13279
# The compiler can only warn and ignore the option if not recognized
13280
# So say no if there are warnings
13281
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13282
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13283
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13284
lt_cv_prog_compiler_c_o_CXX=yes
13289
# SGI C++ compiler will create directory out/ii_files/ for
13290
# template instantiation
13291
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13292
$rm out/* && rmdir out
13298
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13299
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13302
hard_links="nottested"
13303
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13304
# do not overwrite the value of need_locks provided by the user
13305
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13306
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13309
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13311
ln conftest.a conftest.b 2>&5 || hard_links=no
13312
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13313
{ echo "$as_me:$LINENO: result: $hard_links" >&5
13314
echo "${ECHO_T}$hard_links" >&6; }
13315
if test "$hard_links" = no; then
13316
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13317
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13324
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13325
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13327
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13330
# If we're using GNU nm, then we don't want the "-C" option.
13331
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13332
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13333
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'
13335
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'
13339
export_symbols_cmds_CXX="$ltdll_cmds"
13342
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'
13344
linux* | k*bsd*-gnu)
13345
link_all_deplibs_CXX=no
13348
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13351
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13353
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13354
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13355
test "$ld_shlibs_CXX" = no && can_build_shared=no
13358
# Do we need to explicitly link libc?
13360
case "x$archive_cmds_need_lc_CXX" in
13362
# Assume -lc should be added
13363
archive_cmds_need_lc_CXX=yes
13365
if test "$enable_shared" = yes && test "$GCC" = yes; then
13366
case $archive_cmds_CXX in
13368
# FIXME: we may have to deal with multi-command sequences.
13371
# Test whether the compiler implicitly links with -lc since on some
13372
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13373
# to ld, don't add -lc before -lgcc.
13374
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13375
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13377
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13379
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380
(eval $ac_compile) 2>&5
13382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383
(exit $ac_status); } 2>conftest.err; then
13386
libobjs=conftest.$ac_objext
13388
wl=$lt_prog_compiler_wl_CXX
13389
pic_flag=$lt_prog_compiler_pic_CXX
13395
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13396
allow_undefined_flag_CXX=
13397
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13398
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401
(exit $ac_status); }
13403
archive_cmds_need_lc_CXX=no
13405
archive_cmds_need_lc_CXX=yes
13407
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13409
cat conftest.err 1>&5
13412
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13413
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13420
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13421
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13422
library_names_spec=
13423
libname_spec='lib$name'
13427
postuninstall_cmds=
13431
shlibpath_overrides_runpath=unknown
13433
dynamic_linker="$host_os ld.so"
13434
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13436
need_lib_prefix=unknown
13437
hardcode_into_libs=no
13439
# when you set need_version to no, make sure it does not cause -set_version
13440
# flags to be left without arguments
13441
need_version=unknown
13446
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13447
shlibpath_var=LIBPATH
13449
# AIX 3 has no versioning support, so we append a major version to the name.
13450
soname_spec='${libname}${release}${shared_ext}$major'
13457
hardcode_into_libs=yes
13458
if test "$host_cpu" = ia64; then
13459
# AIX 5 supports IA64
13460
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13461
shlibpath_var=LD_LIBRARY_PATH
13463
# With GCC up to 2.95.x, collect2 would create an import file
13464
# for dependence libraries. The import file would start with
13465
# the line `#! .'. This would cause the generated library to
13466
# depend on `.', always an invalid library. This was fixed in
13467
# development snapshots of GCC prior to 3.0.
13469
aix4 | aix4.[01] | aix4.[01].*)
13470
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13472
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13475
can_build_shared=no
13479
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13480
# soname into executable. Probably we can add versioning support to
13481
# collect2, so additional links can be useful in future.
13482
if test "$aix_use_runtimelinking" = yes; then
13483
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13484
# instead of lib<name>.a to let people know that these are not
13485
# typical AIX shared libraries.
13486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13488
# We preserve .a as extension for shared libraries through AIX4.2
13489
# and later when we are not doing run time linking.
13490
library_names_spec='${libname}${release}.a $libname.a'
13491
soname_spec='${libname}${release}${shared_ext}$major'
13493
shlibpath_var=LIBPATH
13498
library_names_spec='$libname.ixlibrary $libname.a'
13499
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13500
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'
13504
library_names_spec='${libname}${shared_ext}'
13505
dynamic_linker="$host_os ld.so"
13506
shlibpath_var=LIBRARY_PATH
13512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513
soname_spec='${libname}${release}${shared_ext}$major'
13514
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13515
shlibpath_var=LD_LIBRARY_PATH
13516
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13517
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13518
# the default ld.so.conf also contains /usr/contrib/lib and
13519
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13520
# libtool to hard-code these into programs
13523
cygwin* | mingw* | pw32*)
13524
version_type=windows
13529
case $GCC,$host_os in
13530
yes,cygwin* | yes,mingw* | yes,pw32*)
13531
library_names_spec='$libname.dll.a'
13532
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13533
postinstall_cmds='base_file=`basename \${file}`~
13534
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13535
dldir=$destdir/`dirname \$dlpath`~
13536
test -d \$dldir || mkdir -p \$dldir~
13537
$install_prog $dir/$dlname \$dldir/$dlname~
13538
chmod a+x \$dldir/$dlname'
13539
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13540
dlpath=$dir/\$dldll~
13542
shlibpath_overrides_runpath=yes
13546
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13547
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13548
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13551
# MinGW DLLs use traditional 'lib' prefix
13552
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13553
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13554
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13555
# It is most probably a Windows format PATH printed by
13556
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13557
# path with ; separators, and with drive letters. We can handle the
13558
# drive letters (cygwin fileutils understands them), so leave them,
13559
# especially as we might pass files found there to a mingw objdump,
13560
# which wouldn't understand a cygwinified path. Ahh.
13561
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13563
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13567
# pw32 DLLs use 'pw' prefix rather than 'lib'
13568
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13574
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13577
dynamic_linker='Win32 ld.exe'
13578
# FIXME: first we should search . and the directory the executable is in
13582
darwin* | rhapsody*)
13583
dynamic_linker="$host_os dyld"
13584
version_type=darwin
13587
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13588
soname_spec='${libname}${release}${major}$shared_ext'
13589
shlibpath_overrides_runpath=yes
13590
shlibpath_var=DYLD_LIBRARY_PATH
13591
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13593
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13601
soname_spec='${libname}${release}${shared_ext}$major'
13602
shlibpath_var=LD_LIBRARY_PATH
13609
freebsd* | dragonfly*)
13610
# DragonFly does not have aout. When/if they implement a new
13611
# versioning mechanism, adjust this.
13612
if test -x /usr/bin/objformat; then
13613
objformat=`/usr/bin/objformat`
13616
freebsd[123]*) objformat=aout ;;
13617
*) objformat=elf ;;
13620
version_type=freebsd-$objformat
13621
case $version_type in
13623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13628
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13632
shlibpath_var=LD_LIBRARY_PATH
13635
shlibpath_overrides_runpath=yes
13637
freebsd3.[01]* | freebsdelf3.[01]*)
13638
shlibpath_overrides_runpath=yes
13639
hardcode_into_libs=yes
13641
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13642
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13643
shlibpath_overrides_runpath=no
13644
hardcode_into_libs=yes
13646
*) # from 4.6 on, and DragonFly
13647
shlibpath_overrides_runpath=yes
13648
hardcode_into_libs=yes
13657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13658
soname_spec='${libname}${release}${shared_ext}$major'
13659
shlibpath_var=LD_LIBRARY_PATH
13660
hardcode_into_libs=yes
13663
hpux9* | hpux10* | hpux11*)
13664
# Give a soname corresponding to the major version so that dld.sl refuses to
13665
# link against other versions.
13672
hardcode_into_libs=yes
13673
dynamic_linker="$host_os dld.so"
13674
shlibpath_var=LD_LIBRARY_PATH
13675
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677
soname_spec='${libname}${release}${shared_ext}$major'
13678
if test "X$HPUX_IA64_MODE" = X32; then
13679
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13681
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13683
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13687
hardcode_into_libs=yes
13688
dynamic_linker="$host_os dld.sl"
13689
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13690
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692
soname_spec='${libname}${release}${shared_ext}$major'
13693
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13694
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13698
dynamic_linker="$host_os dld.sl"
13699
shlibpath_var=SHLIB_PATH
13700
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702
soname_spec='${libname}${release}${shared_ext}$major'
13705
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13706
postinstall_cmds='chmod 555 $lib'
13713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13714
soname_spec='${libname}${release}${shared_ext}$major'
13715
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13716
shlibpath_var=LD_LIBRARY_PATH
13717
shlibpath_overrides_runpath=no
13718
hardcode_into_libs=yes
13721
irix5* | irix6* | nonstopux*)
13723
nonstopux*) version_type=nonstopux ;;
13725
if test "$lt_cv_prog_gnu_ld" = yes; then
13733
soname_spec='${libname}${release}${shared_ext}$major'
13734
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13736
irix5* | nonstopux*)
13737
libsuff= shlibsuff=
13740
case $LD in # libtool.m4 will add one of these switches to LD
13741
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13742
libsuff= shlibsuff= libmagic=32-bit;;
13743
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13744
libsuff=32 shlibsuff=N32 libmagic=N32;;
13745
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13746
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13747
*) libsuff= shlibsuff= libmagic=never-match;;
13751
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13752
shlibpath_overrides_runpath=no
13753
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13754
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13755
hardcode_into_libs=yes
13758
# No shared lib support for Linux oldld, aout, or coff.
13759
linux*oldld* | linux*aout* | linux*coff*)
13763
# This must be Linux ELF.
13764
linux* | k*bsd*-gnu)
13768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13769
soname_spec='${libname}${release}${shared_ext}$major'
13770
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13771
shlibpath_var=LD_LIBRARY_PATH
13772
shlibpath_overrides_runpath=no
13773
# This implies no fast_install, which is unacceptable.
13774
# Some rework will be needed to allow for fast_install
13775
# before this can be enabled.
13776
hardcode_into_libs=yes
13778
# Append ld.so.conf contents to the search path
13779
if test -f /etc/ld.so.conf; then
13780
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' ' '`
13781
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13784
# We used to test for /lib/ld.so.1 and disable shared libraries on
13785
# powerpc, because MkLinux only supported shared libraries with the
13786
# GNU dynamic linker. Since this was broken with cross compilers,
13787
# most powerpc-linux boxes support dynamic linking these days and
13788
# people can always --disable-shared, the test was removed, and we
13789
# assume the GNU/Linux dynamic linker is in use.
13790
dynamic_linker='GNU/Linux ld.so'
13797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13798
soname_spec='${libname}${release}${shared_ext}$major'
13799
shlibpath_var=LD_LIBRARY_PATH
13800
shlibpath_overrides_runpath=no
13801
hardcode_into_libs=yes
13802
dynamic_linker='NetBSD ld.elf_so'
13809
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13811
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13812
dynamic_linker='NetBSD (a.out) ld.so'
13814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13815
soname_spec='${libname}${release}${shared_ext}$major'
13816
dynamic_linker='NetBSD ld.elf_so'
13818
shlibpath_var=LD_LIBRARY_PATH
13819
shlibpath_overrides_runpath=yes
13820
hardcode_into_libs=yes
13825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826
shlibpath_var=LD_LIBRARY_PATH
13827
shlibpath_overrides_runpath=yes
13834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835
soname_spec='${libname}${release}${shared_ext}$major'
13836
shlibpath_var=LD_LIBRARY_PATH
13837
shlibpath_overrides_runpath=yes
13842
sys_lib_dlsearch_path_spec="/usr/lib"
13844
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13846
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13847
*) need_version=no ;;
13849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13850
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13851
shlibpath_var=LD_LIBRARY_PATH
13852
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13854
openbsd2.[89] | openbsd2.[89].*)
13855
shlibpath_overrides_runpath=no
13858
shlibpath_overrides_runpath=yes
13862
shlibpath_overrides_runpath=yes
13867
libname_spec='$name'
13870
library_names_spec='$libname${shared_ext} $libname.a'
13871
dynamic_linker='OS/2 ld.exe'
13872
shlibpath_var=LIBPATH
13875
osf3* | osf4* | osf5*)
13879
soname_spec='${libname}${release}${shared_ext}$major'
13880
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13881
shlibpath_var=LD_LIBRARY_PATH
13882
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13883
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13894
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13895
soname_spec='${libname}${release}${shared_ext}$major'
13896
shlibpath_var=LD_LIBRARY_PATH
13897
shlibpath_overrides_runpath=yes
13898
hardcode_into_libs=yes
13899
# ldd complains unless libraries are executable
13900
postinstall_cmds='chmod +x $lib'
13905
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13906
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13907
shlibpath_var=LD_LIBRARY_PATH
13908
shlibpath_overrides_runpath=yes
13909
if test "$with_gnu_ld" = yes; then
13917
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13918
soname_spec='${libname}${release}${shared_ext}$major'
13919
shlibpath_var=LD_LIBRARY_PATH
13920
case $host_vendor in
13922
shlibpath_overrides_runpath=no
13924
export_dynamic_flag_spec='${wl}-Blargedynsym'
13925
runpath_var=LD_RUN_PATH
13933
shlibpath_overrides_runpath=no
13934
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13940
if test -d /usr/nec ;then
13942
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13943
soname_spec='$libname${shared_ext}.$major'
13944
shlibpath_var=LD_LIBRARY_PATH
13948
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13949
version_type=freebsd-elf
13952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13953
soname_spec='${libname}${release}${shared_ext}$major'
13954
shlibpath_var=LD_LIBRARY_PATH
13955
hardcode_into_libs=yes
13956
if test "$with_gnu_ld" = yes; then
13957
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13958
shlibpath_overrides_runpath=no
13960
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13961
shlibpath_overrides_runpath=yes
13964
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13968
sys_lib_dlsearch_path_spec='/usr/lib'
13973
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974
soname_spec='${libname}${release}${shared_ext}$major'
13975
shlibpath_var=LD_LIBRARY_PATH
13982
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13983
echo "${ECHO_T}$dynamic_linker" >&6; }
13984
test "$dynamic_linker" = no && can_build_shared=no
13986
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13987
echo $ECHO_N "(cached) $ECHO_C" >&6
13989
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13992
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13993
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13994
echo $ECHO_N "(cached) $ECHO_C" >&6
13996
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13999
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14001
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14002
if test "$GCC" = yes; then
14003
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14006
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14007
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14008
hardcode_action_CXX=
14009
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14010
test -n "$runpath_var_CXX" || \
14011
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14013
# We can hardcode non-existant directories.
14014
if test "$hardcode_direct_CXX" != no &&
14015
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14016
# have to relink, otherwise we might link with an installed library
14017
# when we should be linking with a yet-to-be-installed one
14018
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14019
test "$hardcode_minus_L_CXX" != no; then
14020
# Linking always hardcodes the temporary library directory.
14021
hardcode_action_CXX=relink
14023
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14024
hardcode_action_CXX=immediate
14027
# We cannot hardcode anything, or else we can only hardcode existing
14029
hardcode_action_CXX=unsupported
14031
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14032
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14034
if test "$hardcode_action_CXX" = relink; then
14035
# Fast installation is not supported
14036
enable_fast_install=no
14037
elif test "$shlibpath_overrides_runpath" = yes ||
14038
test "$enable_shared" = no; then
14039
# Fast installation is not necessary
14040
enable_fast_install=needless
14044
# The else clause should only fire when bootstrapping the
14045
# libtool distribution, otherwise you forgot to ship ltmain.sh
14046
# with your package, and you will get complaints that there are
14047
# no rules to generate ltmain.sh.
14048
if test -f "$ltmain"; then
14049
# See if we are running on zsh, and set the options which allow our commands through
14050
# without removal of \ escapes.
14051
if test -n "${ZSH_VERSION+set}" ; then
14052
setopt NO_GLOB_SUBST
14054
# Now quote all the things that may contain metacharacters while being
14055
# careful not to overquote the AC_SUBSTed values. We take copies of the
14056
# variables and quote the copies for generation of the libtool script.
14057
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14059
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14060
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14061
deplibs_check_method reload_flag reload_cmds need_locks \
14062
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14063
lt_cv_sys_global_symbol_to_c_name_address \
14064
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14065
old_postinstall_cmds old_postuninstall_cmds \
14069
lt_prog_compiler_wl_CXX \
14070
lt_prog_compiler_pic_CXX \
14071
lt_prog_compiler_static_CXX \
14072
lt_prog_compiler_no_builtin_flag_CXX \
14073
export_dynamic_flag_spec_CXX \
14074
thread_safe_flag_spec_CXX \
14075
whole_archive_flag_spec_CXX \
14076
enable_shared_with_static_runtimes_CXX \
14077
old_archive_cmds_CXX \
14078
old_archive_from_new_cmds_CXX \
14079
predep_objects_CXX \
14080
postdep_objects_CXX \
14083
compiler_lib_search_path_CXX \
14084
compiler_lib_search_dirs_CXX \
14086
archive_expsym_cmds_CXX \
14087
postinstall_cmds_CXX \
14088
postuninstall_cmds_CXX \
14089
old_archive_from_expsyms_cmds_CXX \
14090
allow_undefined_flag_CXX \
14091
no_undefined_flag_CXX \
14092
export_symbols_cmds_CXX \
14093
hardcode_libdir_flag_spec_CXX \
14094
hardcode_libdir_flag_spec_ld_CXX \
14095
hardcode_libdir_separator_CXX \
14096
hardcode_automatic_CXX \
14098
module_expsym_cmds_CXX \
14099
lt_cv_prog_compiler_c_o_CXX \
14100
fix_srcfile_path_CXX \
14101
exclude_expsyms_CXX \
14102
include_expsyms_CXX; do
14105
old_archive_cmds_CXX | \
14106
old_archive_from_new_cmds_CXX | \
14107
archive_cmds_CXX | \
14108
archive_expsym_cmds_CXX | \
14109
module_cmds_CXX | \
14110
module_expsym_cmds_CXX | \
14111
old_archive_from_expsyms_cmds_CXX | \
14112
export_symbols_cmds_CXX | \
14113
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14114
postinstall_cmds | postuninstall_cmds | \
14115
old_postinstall_cmds | old_postuninstall_cmds | \
14116
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14117
# Double-quote double-evaled strings.
14118
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14121
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14127
*'\$0 --fallback-echo"')
14128
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14134
cat <<__EOF__ >> "$cfgfile"
14135
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14137
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14139
# Shell to use when invoking shell scripts.
14142
# Whether or not to build shared libraries.
14143
build_libtool_libs=$enable_shared
14145
# Whether or not to build static libraries.
14146
build_old_libs=$enable_static
14148
# Whether or not to add -lc for building shared libraries.
14149
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14151
# Whether or not to disallow shared libs when runtime libs are static
14152
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14154
# Whether or not to optimize for fast installation.
14155
fast_install=$enable_fast_install
14158
host_alias=$host_alias
14162
# The build system.
14163
build_alias=$build_alias
14167
# An echo program that does not interpret backslashes.
14172
AR_FLAGS=$lt_AR_FLAGS
14177
# LTCC compiler flags.
14178
LTCFLAGS=$lt_LTCFLAGS
14180
# A language-specific compiler.
14181
CC=$lt_compiler_CXX
14183
# Is the compiler the GNU C compiler?
14189
# The linker used to build libraries.
14192
# Whether we need hard or soft links.
14195
# A BSD-compatible nm program.
14198
# A symbol stripping program
14201
# Used to examine libraries when file_magic_cmd begins "file"
14202
MAGIC_CMD=$MAGIC_CMD
14204
# Used on cygwin: DLL creation program.
14207
# Used on cygwin: object dumper.
14210
# Used on cygwin: assembler.
14213
# The name of the directory that contains temporary libtool files.
14216
# How to create reloadable object files.
14217
reload_flag=$lt_reload_flag
14218
reload_cmds=$lt_reload_cmds
14220
# How to pass a linker flag through the compiler.
14221
wl=$lt_lt_prog_compiler_wl_CXX
14223
# Object file suffix (normally "o").
14224
objext="$ac_objext"
14226
# Old archive suffix (normally "a").
14229
# Shared library suffix (normally ".so").
14230
shrext_cmds='$shrext_cmds'
14232
# Executable file suffix (normally "").
14235
# Additional compiler flags for building library objects.
14236
pic_flag=$lt_lt_prog_compiler_pic_CXX
14239
# What is the maximum length of a command?
14240
max_cmd_len=$lt_cv_sys_max_cmd_len
14242
# Does compiler simultaneously support -c and -o options?
14243
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14245
# Must we lock files when doing compilation?
14246
need_locks=$lt_need_locks
14248
# Do we need the lib prefix for modules?
14249
need_lib_prefix=$need_lib_prefix
14251
# Do we need a version for libraries?
14252
need_version=$need_version
14254
# Whether dlopen is supported.
14255
dlopen_support=$enable_dlopen
14257
# Whether dlopen of programs is supported.
14258
dlopen_self=$enable_dlopen_self
14260
# Whether dlopen of statically linked programs is supported.
14261
dlopen_self_static=$enable_dlopen_self_static
14263
# Compiler flag to prevent dynamic linking.
14264
link_static_flag=$lt_lt_prog_compiler_static_CXX
14266
# Compiler flag to turn off builtin functions.
14267
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14269
# Compiler flag to allow reflexive dlopens.
14270
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14272
# Compiler flag to generate shared objects directly from archives.
14273
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14275
# Compiler flag to generate thread-safe objects.
14276
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14278
# Library versioning type.
14279
version_type=$version_type
14281
# Format of library name prefix.
14282
libname_spec=$lt_libname_spec
14284
# List of archive names. First name is the real one, the rest are links.
14285
# The last name is the one that the linker finds with -lNAME.
14286
library_names_spec=$lt_library_names_spec
14288
# The coded name of the library, if different from the real name.
14289
soname_spec=$lt_soname_spec
14291
# Commands used to build and install an old-style archive.
14293
old_archive_cmds=$lt_old_archive_cmds_CXX
14294
old_postinstall_cmds=$lt_old_postinstall_cmds
14295
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14297
# Create an old-style archive from a shared archive.
14298
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14300
# Create a temporary old-style archive to link instead of a shared archive.
14301
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14303
# Commands used to build and install a shared archive.
14304
archive_cmds=$lt_archive_cmds_CXX
14305
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14306
postinstall_cmds=$lt_postinstall_cmds
14307
postuninstall_cmds=$lt_postuninstall_cmds
14309
# Commands used to build a loadable module (assumed same as above if empty)
14310
module_cmds=$lt_module_cmds_CXX
14311
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14313
# Commands to strip libraries.
14314
old_striplib=$lt_old_striplib
14315
striplib=$lt_striplib
14317
# Dependencies to place before the objects being linked to create a
14319
predep_objects=$lt_predep_objects_CXX
14321
# Dependencies to place after the objects being linked to create a
14323
postdep_objects=$lt_postdep_objects_CXX
14325
# Dependencies to place before the objects being linked to create a
14327
predeps=$lt_predeps_CXX
14329
# Dependencies to place after the objects being linked to create a
14331
postdeps=$lt_postdeps_CXX
14333
# The directories searched by this compiler when creating a shared
14335
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14337
# The library search path used internally by the compiler when linking
14338
# a shared library.
14339
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14341
# Method to check whether dependent libraries are shared objects.
14342
deplibs_check_method=$lt_deplibs_check_method
14344
# Command to use when deplibs_check_method == file_magic.
14345
file_magic_cmd=$lt_file_magic_cmd
14347
# Flag that allows shared libraries with undefined symbols to be built.
14348
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14350
# Flag that forces no undefined symbols.
14351
no_undefined_flag=$lt_no_undefined_flag_CXX
14353
# Commands used to finish a libtool library installation in a directory.
14354
finish_cmds=$lt_finish_cmds
14356
# Same as above, but a single script fragment to be evaled but not shown.
14357
finish_eval=$lt_finish_eval
14359
# Take the output of nm and produce a listing of raw symbols and C names.
14360
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14362
# Transform the output of nm in a proper C declaration
14363
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14365
# Transform the output of nm in a C name address pair
14366
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14368
# This is the shared library runtime path variable.
14369
runpath_var=$runpath_var
14371
# This is the shared library path variable.
14372
shlibpath_var=$shlibpath_var
14374
# Is shlibpath searched before the hard-coded library search path?
14375
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14377
# How to hardcode a shared library path into an executable.
14378
hardcode_action=$hardcode_action_CXX
14380
# Whether we should hardcode library paths into libraries.
14381
hardcode_into_libs=$hardcode_into_libs
14383
# Flag to hardcode \$libdir into a binary during linking.
14384
# This must work even if \$libdir does not exist.
14385
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14387
# If ld is used when linking, flag to hardcode \$libdir into
14388
# a binary during linking. This must work even if \$libdir does
14390
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14392
# Whether we need a single -rpath flag with a separated argument.
14393
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14395
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14396
# resulting binary.
14397
hardcode_direct=$hardcode_direct_CXX
14399
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14400
# resulting binary.
14401
hardcode_minus_L=$hardcode_minus_L_CXX
14403
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14404
# the resulting binary.
14405
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14407
# Set to yes if building a shared library automatically hardcodes DIR into the library
14408
# and all subsequent libraries and executables linked against it.
14409
hardcode_automatic=$hardcode_automatic_CXX
14411
# Variables whose values should be saved in libtool wrapper scripts and
14412
# restored at relink time.
14413
variables_saved_for_relink="$variables_saved_for_relink"
14415
# Whether libtool must link a program against all its dependency libraries.
14416
link_all_deplibs=$link_all_deplibs_CXX
14418
# Compile-time system search path for libraries
14419
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14421
# Run-time system search path for libraries
14422
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14424
# Fix the shell variable \$srcfile for the compiler.
14425
fix_srcfile_path=$lt_fix_srcfile_path
14427
# Set to yes if exported symbols are required.
14428
always_export_symbols=$always_export_symbols_CXX
14430
# The commands to list exported symbols.
14431
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14433
# The commands to extract the exported symbol list from a shared archive.
14434
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14436
# Symbols that should not be listed in the preloaded symbols.
14437
exclude_expsyms=$lt_exclude_expsyms_CXX
14439
# Symbols that must always be exported.
14440
include_expsyms=$lt_include_expsyms_CXX
14442
# ### END LIBTOOL TAG CONFIG: $tagname
14448
# If there is no Makefile yet, we rely on a make rule to execute
14449
# `config.status --recheck' to rerun these tests and create the
14450
# libtool script then.
14451
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14452
if test -f "$ltmain_in"; then
14453
test -f Makefile && make "$ltmain"
14459
ac_cpp='$CPP $CPPFLAGS'
14460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14468
with_gnu_ldcxx=$with_gnu_ld
14469
with_gnu_ld=$lt_save_with_gnu_ld
14470
lt_cv_path_LDCXX=$lt_cv_path_LD
14471
lt_cv_path_LD=$lt_save_path_LD
14472
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14473
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14481
if test -n "$F77" && test "X$F77" != "Xno"; then
14484
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14485
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14486
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14489
archive_cmds_need_lc_F77=no
14490
allow_undefined_flag_F77=
14491
always_export_symbols_F77=no
14492
archive_expsym_cmds_F77=
14493
export_dynamic_flag_spec_F77=
14494
hardcode_direct_F77=no
14495
hardcode_libdir_flag_spec_F77=
14496
hardcode_libdir_flag_spec_ld_F77=
14497
hardcode_libdir_separator_F77=
14498
hardcode_minus_L_F77=no
14499
hardcode_automatic_F77=no
14501
module_expsym_cmds_F77=
14502
link_all_deplibs_F77=unknown
14503
old_archive_cmds_F77=$old_archive_cmds
14504
no_undefined_flag_F77=
14505
whole_archive_flag_spec_F77=
14506
enable_shared_with_static_runtimes_F77=no
14508
# Source file extension for f77 test sources.
14511
# Object file extension for compiled f77 test sources.
14515
# Code to be used in simple compile tests
14516
lt_simple_compile_test_code="\
14522
# Code to be used in simple link tests
14523
lt_simple_link_test_code="\
14528
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14530
# If no C compiler was specified, use CC.
14533
# If no C compiler flags were specified, use CFLAGS.
14534
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14536
# Allow CC to be a program name with arguments.
14540
# save warnings/boilerplate of simple test code
14541
ac_outfile=conftest.$ac_objext
14542
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14543
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14544
_lt_compiler_boilerplate=`cat conftest.err`
14547
ac_outfile=conftest.$ac_objext
14548
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14549
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14550
_lt_linker_boilerplate=`cat conftest.err`
14554
# Allow CC to be a program name with arguments.
14559
for cc_temp in $compiler""; do
14561
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14562
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14567
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14570
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14571
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14572
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14573
echo "${ECHO_T}$can_build_shared" >&6; }
14575
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14576
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14577
test "$can_build_shared" = "no" && enable_shared=no
14579
# On AIX, shared libraries and static libraries use the same namespace, and
14580
# are all built from PIC.
14583
test "$enable_shared" = yes && enable_static=no
14584
if test -n "$RANLIB"; then
14585
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14586
postinstall_cmds='$RANLIB $lib'
14590
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14591
test "$enable_shared" = yes && enable_static=no
14595
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14596
echo "${ECHO_T}$enable_shared" >&6; }
14598
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14599
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14600
# Make sure either enable_shared or enable_static is yes.
14601
test "$enable_shared" = yes || enable_static=yes
14602
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14603
echo "${ECHO_T}$enable_static" >&6; }
14608
lt_prog_compiler_wl_F77=
14609
lt_prog_compiler_pic_F77=
14610
lt_prog_compiler_static_F77=
14612
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14613
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14615
if test "$GCC" = yes; then
14616
lt_prog_compiler_wl_F77='-Wl,'
14617
lt_prog_compiler_static_F77='-static'
14621
# All AIX code is PIC.
14622
if test "$host_cpu" = ia64; then
14623
# AIX 5 now supports IA64 processor
14624
lt_prog_compiler_static_F77='-Bstatic'
14629
# FIXME: we need at least 68020 code to build shared libraries, but
14630
# adding the `-m68020' flag to GCC prevents building anything better,
14632
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14635
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14636
# PIC is the default for these OSes.
14639
mingw* | cygwin* | pw32* | os2*)
14640
# This hack is so that the source file can tell whether it is being
14641
# built for inclusion in a dll (and should export symbols for example).
14642
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14643
# (--disable-auto-import) libraries
14644
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14647
darwin* | rhapsody*)
14648
# PIC is the default on this platform
14649
# Common symbols not allowed in MH_DYLIB files
14650
lt_prog_compiler_pic_F77='-fno-common'
14654
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14655
# Instead, we relocate shared libraries at runtime.
14659
# Just because we use GCC doesn't mean we suddenly get shared libraries
14660
# on systems that don't support them.
14661
lt_prog_compiler_can_build_shared_F77=no
14666
if test -d /usr/nec; then
14667
lt_prog_compiler_pic_F77=-Kconform_pic
14672
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14673
# not for PA HP-UX.
14679
lt_prog_compiler_pic_F77='-fPIC'
14685
lt_prog_compiler_pic_F77='-fPIC'
14689
# PORTME Check for flag to pass linker flags through the system compiler.
14692
lt_prog_compiler_wl_F77='-Wl,'
14693
if test "$host_cpu" = ia64; then
14694
# AIX 5 now supports IA64 processor
14695
lt_prog_compiler_static_F77='-Bstatic'
14697
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14701
# PIC is the default on this platform
14702
# Common symbols not allowed in MH_DYLIB files
14703
case $cc_basename in
14705
lt_prog_compiler_pic_F77='-qnocommon'
14706
lt_prog_compiler_wl_F77='-Wl,'
14711
mingw* | cygwin* | pw32* | os2*)
14712
# This hack is so that the source file can tell whether it is being
14713
# built for inclusion in a dll (and should export symbols for example).
14714
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14717
hpux9* | hpux10* | hpux11*)
14718
lt_prog_compiler_wl_F77='-Wl,'
14719
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14720
# not for PA HP-UX.
14726
lt_prog_compiler_pic_F77='+Z'
14729
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14730
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14733
irix5* | irix6* | nonstopux*)
14734
lt_prog_compiler_wl_F77='-Wl,'
14735
# PIC (with -KPIC) is the default.
14736
lt_prog_compiler_static_F77='-non_shared'
14740
lt_prog_compiler_pic_F77='-KPIC'
14741
lt_prog_compiler_static_F77='-Bstatic'
14744
linux* | k*bsd*-gnu)
14745
case $cc_basename in
14747
lt_prog_compiler_wl_F77='-Wl,'
14748
lt_prog_compiler_pic_F77='-KPIC'
14749
lt_prog_compiler_static_F77='-static'
14751
pgcc* | pgf77* | pgf90* | pgf95*)
14752
# Portland Group compilers (*not* the Pentium gcc compiler,
14753
# which looks to be a dead project)
14754
lt_prog_compiler_wl_F77='-Wl,'
14755
lt_prog_compiler_pic_F77='-fpic'
14756
lt_prog_compiler_static_F77='-Bstatic'
14759
lt_prog_compiler_wl_F77='-Wl,'
14760
# All Alpha code is PIC.
14761
lt_prog_compiler_static_F77='-non_shared'
14764
case `$CC -V 2>&1 | sed 5q` in
14767
lt_prog_compiler_pic_F77='-KPIC'
14768
lt_prog_compiler_static_F77='-Bstatic'
14769
lt_prog_compiler_wl_F77='-Wl,'
14772
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14773
lt_prog_compiler_pic_F77='-KPIC'
14774
lt_prog_compiler_static_F77='-Bstatic'
14775
lt_prog_compiler_wl_F77=''
14782
osf3* | osf4* | osf5*)
14783
lt_prog_compiler_wl_F77='-Wl,'
14784
# All OSF/1 code is PIC.
14785
lt_prog_compiler_static_F77='-non_shared'
14789
lt_prog_compiler_static_F77='-non_shared'
14793
lt_prog_compiler_pic_F77='-KPIC'
14794
lt_prog_compiler_static_F77='-Bstatic'
14795
case $cc_basename in
14796
f77* | f90* | f95*)
14797
lt_prog_compiler_wl_F77='-Qoption ld ';;
14799
lt_prog_compiler_wl_F77='-Wl,';;
14804
lt_prog_compiler_wl_F77='-Qoption ld '
14805
lt_prog_compiler_pic_F77='-PIC'
14806
lt_prog_compiler_static_F77='-Bstatic'
14809
sysv4 | sysv4.2uw2* | sysv4.3*)
14810
lt_prog_compiler_wl_F77='-Wl,'
14811
lt_prog_compiler_pic_F77='-KPIC'
14812
lt_prog_compiler_static_F77='-Bstatic'
14816
if test -d /usr/nec ;then
14817
lt_prog_compiler_pic_F77='-Kconform_pic'
14818
lt_prog_compiler_static_F77='-Bstatic'
14822
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14823
lt_prog_compiler_wl_F77='-Wl,'
14824
lt_prog_compiler_pic_F77='-KPIC'
14825
lt_prog_compiler_static_F77='-Bstatic'
14829
lt_prog_compiler_wl_F77='-Wl,'
14830
lt_prog_compiler_can_build_shared_F77=no
14834
lt_prog_compiler_pic_F77='-pic'
14835
lt_prog_compiler_static_F77='-Bstatic'
14839
lt_prog_compiler_can_build_shared_F77=no
14844
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14845
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14848
# Check to make sure the PIC flag actually works.
14850
if test -n "$lt_prog_compiler_pic_F77"; then
14852
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14853
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14854
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14855
echo $ECHO_N "(cached) $ECHO_C" >&6
14857
lt_cv_prog_compiler_pic_works_F77=no
14858
ac_outfile=conftest.$ac_objext
14859
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14860
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14861
# Insert the option either (1) after the last *FLAGS variable, or
14862
# (2) before a word containing "conftest.", or (3) at the end.
14863
# Note that $ac_compile itself does not contain backslashes and begins
14864
# with a dollar sign (not a hyphen), so the echo should work correctly.
14865
# The option is referenced via a variable to avoid confusing sed.
14866
lt_compile=`echo "$ac_compile" | $SED \
14867
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14868
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14869
-e 's:$: $lt_compiler_flag:'`
14870
(eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
14871
(eval "$lt_compile" 2>conftest.err)
14873
cat conftest.err >&5
14874
echo "$as_me:14874: \$? = $ac_status" >&5
14875
if (exit $ac_status) && test -s "$ac_outfile"; then
14876
# The compiler can only warn and ignore the option if not recognized
14877
# So say no if there are warnings other than the usual output.
14878
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14879
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14880
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14881
lt_cv_prog_compiler_pic_works_F77=yes
14887
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14888
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14890
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14891
case $lt_prog_compiler_pic_F77 in
14893
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14896
lt_prog_compiler_pic_F77=
14897
lt_prog_compiler_can_build_shared_F77=no
14902
# For platforms which do not support PIC, -DPIC is meaningless:
14904
lt_prog_compiler_pic_F77=
14907
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14912
# Check to make sure the static flag actually works.
14914
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14915
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14916
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14917
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14918
echo $ECHO_N "(cached) $ECHO_C" >&6
14920
lt_cv_prog_compiler_static_works_F77=no
14921
save_LDFLAGS="$LDFLAGS"
14922
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14923
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14924
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14925
# The linker can only warn and ignore the option if not recognized
14926
# So say no if there are warnings
14927
if test -s conftest.err; then
14928
# Append any errors to the config.log.
14929
cat conftest.err 1>&5
14930
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14931
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14932
if diff conftest.exp conftest.er2 >/dev/null; then
14933
lt_cv_prog_compiler_static_works_F77=yes
14936
lt_cv_prog_compiler_static_works_F77=yes
14940
LDFLAGS="$save_LDFLAGS"
14943
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14944
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14946
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14949
lt_prog_compiler_static_F77=
14953
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14954
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14955
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14956
echo $ECHO_N "(cached) $ECHO_C" >&6
14958
lt_cv_prog_compiler_c_o_F77=no
14959
$rm -r conftest 2>/dev/null
14963
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14965
lt_compiler_flag="-o out/conftest2.$ac_objext"
14966
# Insert the option either (1) after the last *FLAGS variable, or
14967
# (2) before a word containing "conftest.", or (3) at the end.
14968
# Note that $ac_compile itself does not contain backslashes and begins
14969
# with a dollar sign (not a hyphen), so the echo should work correctly.
14970
lt_compile=`echo "$ac_compile" | $SED \
14971
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14972
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14973
-e 's:$: $lt_compiler_flag:'`
14974
(eval echo "\"\$as_me:14974: $lt_compile\"" >&5)
14975
(eval "$lt_compile" 2>out/conftest.err)
14977
cat out/conftest.err >&5
14978
echo "$as_me:14978: \$? = $ac_status" >&5
14979
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14981
# The compiler can only warn and ignore the option if not recognized
14982
# So say no if there are warnings
14983
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14984
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14985
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14986
lt_cv_prog_compiler_c_o_F77=yes
14991
# SGI C++ compiler will create directory out/ii_files/ for
14992
# template instantiation
14993
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14994
$rm out/* && rmdir out
15000
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15001
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15004
hard_links="nottested"
15005
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15006
# do not overwrite the value of need_locks provided by the user
15007
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15008
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15011
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15013
ln conftest.a conftest.b 2>&5 || hard_links=no
15014
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15015
{ echo "$as_me:$LINENO: result: $hard_links" >&5
15016
echo "${ECHO_T}$hard_links" >&6; }
15017
if test "$hard_links" = no; then
15018
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15019
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15026
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15027
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15030
allow_undefined_flag_F77=
15031
enable_shared_with_static_runtimes_F77=no
15033
archive_expsym_cmds_F77=
15034
old_archive_From_new_cmds_F77=
15035
old_archive_from_expsyms_cmds_F77=
15036
export_dynamic_flag_spec_F77=
15037
whole_archive_flag_spec_F77=
15038
thread_safe_flag_spec_F77=
15039
hardcode_libdir_flag_spec_F77=
15040
hardcode_libdir_flag_spec_ld_F77=
15041
hardcode_libdir_separator_F77=
15042
hardcode_direct_F77=no
15043
hardcode_minus_L_F77=no
15044
hardcode_shlibpath_var_F77=unsupported
15045
link_all_deplibs_F77=unknown
15046
hardcode_automatic_F77=no
15048
module_expsym_cmds_F77=
15049
always_export_symbols_F77=no
15050
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15051
# include_expsyms should be a list of space-separated symbols to be *always*
15052
# included in the symbol list
15053
include_expsyms_F77=
15054
# exclude_expsyms can be an extended regexp of symbols to exclude
15055
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15056
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15057
# as well as any symbol that contains `d'.
15058
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15059
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15060
# platforms (ab)use it in PIC code, but their linkers get confused if
15061
# the symbol is explicitly referenced. Since portable code cannot
15062
# rely on this symbol name, it's probably fine to never include it in
15063
# preloaded symbol tables.
15064
# Exclude shared library initialization/finalization symbols.
15065
extract_expsyms_cmds=
15066
# Just being paranoid about ensuring that cc_basename is set.
15067
for cc_temp in $compiler""; do
15069
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15070
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15075
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15078
cygwin* | mingw* | pw32*)
15079
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15080
# When not using gcc, we currently assume that we are using
15081
# Microsoft Visual C++.
15082
if test "$GCC" != yes; then
15087
# we just hope/assume this is gcc and not c89 (= MSVC++)
15096
if test "$with_gnu_ld" = yes; then
15097
# If archive_cmds runs LD, not CC, wlarc should be empty
15100
# Set some defaults for GNU ld with shared library support. These
15101
# are reset later if shared libraries are not supported. Putting them
15102
# here allows them to be overridden if necessary.
15103
runpath_var=LD_RUN_PATH
15104
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15105
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15106
# ancient GNU ld didn't support --whole-archive et. al.
15107
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15108
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15110
whole_archive_flag_spec_F77=
15112
supports_anon_versioning=no
15113
case `$LD -v 2>/dev/null` in
15114
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15115
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15116
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15117
*\ 2.11.*) ;; # other 2.11 versions
15118
*) supports_anon_versioning=yes ;;
15121
# See if GNU ld supports shared libraries.
15124
# On AIX/PPC, the GNU linker is very broken
15125
if test "$host_cpu" != ia64; then
15129
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15130
*** to be unable to reliably create shared libraries on AIX.
15131
*** Therefore, libtool is disabling shared libraries support. If you
15132
*** really care for shared libraries, you may want to modify your PATH
15133
*** so that a non-GNU linker is found, and then restart.
15140
archive_cmds_F77='$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)'
15141
hardcode_libdir_flag_spec_F77='-L$libdir'
15142
hardcode_minus_L_F77=yes
15144
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15145
# that the semantics of dynamic libraries on AmigaOS, at least up
15146
# to version 4, is to share data among multiple programs linked
15147
# with the same dynamic library. Since this doesn't match the
15148
# behavior of shared libraries on other platforms, we can't use
15154
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15155
allow_undefined_flag_F77=unsupported
15156
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15157
# support --undefined. This deserves some investigation. FIXME
15158
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164
cygwin* | mingw* | pw32*)
15165
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15166
# as there is no search path for DLLs.
15167
hardcode_libdir_flag_spec_F77='-L$libdir'
15168
allow_undefined_flag_F77=unsupported
15169
always_export_symbols_F77=no
15170
enable_shared_with_static_runtimes_F77=yes
15171
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15173
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15174
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15175
# If the export-symbols file already is a .def file (1st line
15176
# is EXPORTS), use it as is; otherwise, prepend...
15177
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15178
cp $export_symbols $output_objdir/$soname.def;
15180
echo EXPORTS > $output_objdir/$soname.def;
15181
cat $export_symbols >> $output_objdir/$soname.def;
15183
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15190
hardcode_direct_F77=no
15191
hardcode_shlibpath_var_F77=no
15192
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15193
export_dynamic_flag_spec_F77='${wl}-E'
15194
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15195
# Instead, shared libraries are loaded at an image base (0x10000000 by
15196
# default) and relocated if they conflict, which is a slow very memory
15197
# consuming and fragmenting process. To avoid this, we pick a random,
15198
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15199
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15200
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15201
archive_expsym_cmds_F77='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'
15204
gnu* | linux* | k*bsd*-gnu)
15205
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15207
case $cc_basename,$host_cpu in
15208
pgcc*) # Portland Group C compiler
15209
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15210
tmp_addflag=' $pic_flag'
15212
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15213
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15214
tmp_addflag=' $pic_flag -Mnomain' ;;
15215
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15216
tmp_addflag=' -i_dynamic' ;;
15217
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15218
tmp_addflag=' -i_dynamic -nofor_main' ;;
15219
ifc* | ifort*) # Intel Fortran compiler
15220
tmp_addflag=' -nofor_main' ;;
15222
case `$CC -V 2>&1 | sed 5q` in
15223
*Sun\ C*) # Sun C 5.9
15224
whole_archive_flag_spec_F77='${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'
15225
tmp_sharedflag='-G' ;;
15226
*Sun\ F*) # Sun Fortran 8.3
15227
tmp_sharedflag='-G' ;;
15229
tmp_sharedflag='-shared' ;;
15231
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233
if test $supports_anon_versioning = yes; then
15234
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15235
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15236
$echo "local: *; };" >> $output_objdir/$libname.ver~
15237
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15239
link_all_deplibs_F77=no
15245
netbsd* | netbsdelf*-gnu)
15246
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15247
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15250
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15251
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15256
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15260
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15261
*** create shared libraries on Solaris systems. Therefore, libtool
15262
*** is disabling shared libraries support. We urge you to upgrade GNU
15263
*** binutils to release 2.9.1 or newer. Another option is to modify
15264
*** your PATH or compiler configuration so that the native linker is
15265
*** used, and then restart.
15268
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15269
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15270
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15276
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15277
case `$LD -v 2>&1` in
15278
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15282
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15283
*** reliably create shared libraries on SCO systems. Therefore, libtool
15284
*** is disabling shared libraries support. We urge you to upgrade GNU
15285
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15286
*** your PATH or compiler configuration so that the native linker is
15287
*** used, and then restart.
15292
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15293
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15294
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15295
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15304
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15306
hardcode_direct_F77=yes
15307
hardcode_shlibpath_var_F77=no
15311
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15312
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15313
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15320
if test "$ld_shlibs_F77" = no; then
15322
hardcode_libdir_flag_spec_F77=
15323
export_dynamic_flag_spec_F77=
15324
whole_archive_flag_spec_F77=
15327
# PORTME fill in a description of your system's linker (not GNU ld)
15330
allow_undefined_flag_F77=unsupported
15331
always_export_symbols_F77=yes
15332
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15333
# Note: this linker hardcodes the directories in LIBPATH if there
15334
# are no directories specified by -L.
15335
hardcode_minus_L_F77=yes
15336
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15337
# Neither direct hardcoding nor static linking is supported with a
15339
hardcode_direct_F77=unsupported
15344
if test "$host_cpu" = ia64; then
15345
# On IA64, the linker does run time linking by default, so we don't
15346
# have to do anything special.
15347
aix_use_runtimelinking=no
15348
exp_sym_flag='-Bexport'
15351
# If we're using GNU nm, then we don't want the "-C" option.
15352
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15353
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15354
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15356
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15358
aix_use_runtimelinking=no
15360
# Test if we are trying to use run time linking or normal
15361
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15362
# need to do runtime linking.
15363
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15364
for ld_flag in $LDFLAGS; do
15365
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15366
aix_use_runtimelinking=yes
15373
exp_sym_flag='-bexport'
15374
no_entry_flag='-bnoentry'
15377
# When large executables or shared objects are built, AIX ld can
15378
# have problems creating the table of contents. If linking a library
15379
# or program results in "error TOC overflow" add -mminimal-toc to
15380
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15381
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15383
archive_cmds_F77=''
15384
hardcode_direct_F77=yes
15385
hardcode_libdir_separator_F77=':'
15386
link_all_deplibs_F77=yes
15388
if test "$GCC" = yes; then
15389
case $host_os in aix4.[012]|aix4.[012].*)
15390
# We only want to do this on AIX 4.2 and lower, the check
15391
# below for broken collect2 doesn't work under 4.3+
15392
collect2name=`${CC} -print-prog-name=collect2`
15393
if test -f "$collect2name" && \
15394
strings "$collect2name" | grep resolve_lib_name >/dev/null
15396
# We have reworked collect2
15399
# We have old collect2
15400
hardcode_direct_F77=unsupported
15401
# It fails to find uninstalled libraries when the uninstalled
15402
# path is not listed in the libpath. Setting hardcode_minus_L
15403
# to unsupported forces relinking
15404
hardcode_minus_L_F77=yes
15405
hardcode_libdir_flag_spec_F77='-L$libdir'
15406
hardcode_libdir_separator_F77=
15410
shared_flag='-shared'
15411
if test "$aix_use_runtimelinking" = yes; then
15412
shared_flag="$shared_flag "'${wl}-G'
15416
if test "$host_cpu" = ia64; then
15417
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15418
# chokes on -Wl,-G. The following line is correct:
15421
if test "$aix_use_runtimelinking" = yes; then
15422
shared_flag='${wl}-G'
15424
shared_flag='${wl}-bM:SRE'
15429
# It seems that -bexpall does not export symbols beginning with
15430
# underscore (_), so it is better to generate a list of symbols to export.
15431
always_export_symbols_F77=yes
15432
if test "$aix_use_runtimelinking" = yes; then
15433
# Warning - without using the other runtime loading flags (-brtl),
15434
# -berok will link without error, but may produce a broken library.
15435
allow_undefined_flag_F77='-berok'
15436
# Determine the default libpath from the value encoded in an empty executable.
15437
cat >conftest.$ac_ext <<_ACEOF
15442
rm -f conftest.$ac_objext conftest$ac_exeext
15443
if { (ac_try="$ac_link"
15444
case "(($ac_try" in
15445
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446
*) ac_try_echo=$ac_try;;
15448
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449
(eval "$ac_link") 2>conftest.er1
15451
grep -v '^ *+' conftest.er1 >conftest.err
15453
cat conftest.err >&5
15454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455
(exit $ac_status); } && {
15456
test -z "$ac_f77_werror_flag" ||
15457
test ! -s conftest.err
15458
} && test -s conftest$ac_exeext &&
15459
$as_test_x conftest$ac_exeext; then
15461
lt_aix_libpath_sed='
15462
/Import File Strings/,/^$/ {
15468
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15469
# Check for a 64-bit object if we didn't find anything.
15470
if test -z "$aix_libpath"; then
15471
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15474
echo "$as_me: failed program was:" >&5
15475
sed 's/^/| /' conftest.$ac_ext >&5
15480
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15481
conftest$ac_exeext conftest.$ac_ext
15482
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15484
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15485
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15487
if test "$host_cpu" = ia64; then
15488
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15489
allow_undefined_flag_F77="-z nodefs"
15490
archive_expsym_cmds_F77="\$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"
15492
# Determine the default libpath from the value encoded in an empty executable.
15493
cat >conftest.$ac_ext <<_ACEOF
15498
rm -f conftest.$ac_objext conftest$ac_exeext
15499
if { (ac_try="$ac_link"
15500
case "(($ac_try" in
15501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502
*) ac_try_echo=$ac_try;;
15504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505
(eval "$ac_link") 2>conftest.er1
15507
grep -v '^ *+' conftest.er1 >conftest.err
15509
cat conftest.err >&5
15510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511
(exit $ac_status); } && {
15512
test -z "$ac_f77_werror_flag" ||
15513
test ! -s conftest.err
15514
} && test -s conftest$ac_exeext &&
15515
$as_test_x conftest$ac_exeext; then
15517
lt_aix_libpath_sed='
15518
/Import File Strings/,/^$/ {
15524
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15525
# Check for a 64-bit object if we didn't find anything.
15526
if test -z "$aix_libpath"; then
15527
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15530
echo "$as_me: failed program was:" >&5
15531
sed 's/^/| /' conftest.$ac_ext >&5
15536
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15537
conftest$ac_exeext conftest.$ac_ext
15538
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15540
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15541
# Warning - without using the other run time loading flags,
15542
# -berok will link without error, but may produce a broken library.
15543
no_undefined_flag_F77=' ${wl}-bernotok'
15544
allow_undefined_flag_F77=' ${wl}-berok'
15545
# Exported symbols can be pulled into shared objects from archives
15546
whole_archive_flag_spec_F77='$convenience'
15547
archive_cmds_need_lc_F77=yes
15548
# This is similar to how AIX traditionally builds its shared libraries.
15549
archive_expsym_cmds_F77="\$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'
15555
archive_cmds_F77='$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)'
15556
hardcode_libdir_flag_spec_F77='-L$libdir'
15557
hardcode_minus_L_F77=yes
15558
# see comment about different semantics on the GNU ld section
15563
export_dynamic_flag_spec_F77=-rdynamic
15566
cygwin* | mingw* | pw32*)
15567
# When not using gcc, we currently assume that we are using
15568
# Microsoft Visual C++.
15569
# hardcode_libdir_flag_spec is actually meaningless, as there is
15570
# no search path for DLLs.
15571
hardcode_libdir_flag_spec_F77=' '
15572
allow_undefined_flag_F77=unsupported
15573
# Tell ltmain to make .lib files, not .a files.
15575
# Tell ltmain to make .dll files, not .so files.
15577
# FIXME: Setting linknames here is a bad hack.
15578
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15579
# The linker will automatically build a .lib file if we build a DLL.
15580
old_archive_From_new_cmds_F77='true'
15581
# FIXME: Should let the user specify the lib program.
15582
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15583
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15584
enable_shared_with_static_runtimes_F77=yes
15587
darwin* | rhapsody*)
15589
rhapsody* | darwin1.[012])
15590
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15593
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15594
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15596
case ${MACOSX_DEPLOYMENT_TARGET} in
15598
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15601
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15607
archive_cmds_need_lc_F77=no
15608
hardcode_direct_F77=no
15609
hardcode_automatic_F77=yes
15610
hardcode_shlibpath_var_F77=unsupported
15611
whole_archive_flag_spec_F77=''
15612
link_all_deplibs_F77=yes
15613
if test "$GCC" = yes ; then
15614
output_verbose_link_cmd='echo'
15615
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15616
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15617
archive_expsym_cmds_F77="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}"
15618
module_expsym_cmds_F77="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}"
15620
case $cc_basename in
15622
output_verbose_link_cmd='echo'
15623
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15624
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15625
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15626
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15627
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15637
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638
hardcode_libdir_flag_spec_F77='-L$libdir'
15639
hardcode_shlibpath_var_F77=no
15646
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15647
# support. Future versions do this automatically, but an explicit c++rt0.o
15648
# does not break anything, and helps significantly (at the cost of a little
15651
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15652
hardcode_libdir_flag_spec_F77='-R$libdir'
15653
hardcode_direct_F77=yes
15654
hardcode_shlibpath_var_F77=no
15657
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15659
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15660
hardcode_direct_F77=yes
15661
hardcode_minus_L_F77=yes
15662
hardcode_shlibpath_var_F77=no
15665
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15666
freebsd* | dragonfly*)
15667
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15668
hardcode_libdir_flag_spec_F77='-R$libdir'
15669
hardcode_direct_F77=yes
15670
hardcode_shlibpath_var_F77=no
15674
if test "$GCC" = yes; then
15675
archive_cmds_F77='$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'
15677
archive_cmds_F77='$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'
15679
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15680
hardcode_libdir_separator_F77=:
15681
hardcode_direct_F77=yes
15683
# hardcode_minus_L: Not really in the search PATH,
15684
# but as the default location of the library.
15685
hardcode_minus_L_F77=yes
15686
export_dynamic_flag_spec_F77='${wl}-E'
15690
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15691
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15693
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15695
if test "$with_gnu_ld" = no; then
15696
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15697
hardcode_libdir_separator_F77=:
15699
hardcode_direct_F77=yes
15700
export_dynamic_flag_spec_F77='${wl}-E'
15702
# hardcode_minus_L: Not really in the search PATH,
15703
# but as the default location of the library.
15704
hardcode_minus_L_F77=yes
15709
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15712
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15715
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15718
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15724
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15727
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15730
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15734
if test "$with_gnu_ld" = no; then
15735
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15736
hardcode_libdir_separator_F77=:
15740
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15741
hardcode_direct_F77=no
15742
hardcode_shlibpath_var_F77=no
15745
hardcode_direct_F77=yes
15746
export_dynamic_flag_spec_F77='${wl}-E'
15748
# hardcode_minus_L: Not really in the search PATH,
15749
# but as the default location of the library.
15750
hardcode_minus_L_F77=yes
15756
irix5* | irix6* | nonstopux*)
15757
if test "$GCC" = yes; then
15758
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15760
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15761
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15763
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15764
hardcode_libdir_separator_F77=:
15765
link_all_deplibs_F77=yes
15768
netbsd* | netbsdelf*-gnu)
15769
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15770
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15772
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15774
hardcode_libdir_flag_spec_F77='-R$libdir'
15775
hardcode_direct_F77=yes
15776
hardcode_shlibpath_var_F77=no
15780
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15781
hardcode_direct_F77=yes
15782
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15783
hardcode_libdir_separator_F77=:
15784
hardcode_shlibpath_var_F77=no
15788
if test -f /usr/libexec/ld.so; then
15789
hardcode_direct_F77=yes
15790
hardcode_shlibpath_var_F77=no
15791
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15792
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15793
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15794
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15795
export_dynamic_flag_spec_F77='${wl}-E'
15798
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15799
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15800
hardcode_libdir_flag_spec_F77='-R$libdir'
15803
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15804
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15814
hardcode_libdir_flag_spec_F77='-L$libdir'
15815
hardcode_minus_L_F77=yes
15816
allow_undefined_flag_F77=unsupported
15817
archive_cmds_F77='$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'
15818
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15822
if test "$GCC" = yes; then
15823
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15824
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15826
allow_undefined_flag_F77=' -expect_unresolved \*'
15827
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15829
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15830
hardcode_libdir_separator_F77=:
15833
osf4* | osf5*) # as osf3* with the addition of -msym flag
15834
if test "$GCC" = yes; then
15835
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15836
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15837
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15839
allow_undefined_flag_F77=' -expect_unresolved \*'
15840
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15841
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15842
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15844
# Both c and cxx compiler support -rpath directly
15845
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15847
hardcode_libdir_separator_F77=:
15851
no_undefined_flag_F77=' -z text'
15852
if test "$GCC" = yes; then
15854
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15855
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15856
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15859
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15860
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15861
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15863
hardcode_libdir_flag_spec_F77='-R$libdir'
15864
hardcode_shlibpath_var_F77=no
15866
solaris2.[0-5] | solaris2.[0-5].*) ;;
15868
# The compiler driver will combine and reorder linker options,
15869
# but understands `-z linker_flag'. GCC discards it without `$wl',
15870
# but is careful enough not to reorder.
15871
# Supported since Solaris 2.6 (maybe 2.5.1?)
15872
if test "$GCC" = yes; then
15873
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15875
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15879
link_all_deplibs_F77=yes
15883
if test "x$host_vendor" = xsequent; then
15884
# Use $CC to link under sequent, because it throws in some extra .o
15885
# files that make .init and .fini sections work.
15886
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15888
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15890
hardcode_libdir_flag_spec_F77='-L$libdir'
15891
hardcode_direct_F77=yes
15892
hardcode_minus_L_F77=yes
15893
hardcode_shlibpath_var_F77=no
15897
case $host_vendor in
15899
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15900
hardcode_direct_F77=yes # is this really true???
15903
## LD is ld it makes a PLAMLIB
15904
## CC just makes a GrossModule.
15905
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15906
reload_cmds_F77='$CC -r -o $output$reload_objs'
15907
hardcode_direct_F77=no
15910
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15911
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15914
runpath_var='LD_RUN_PATH'
15915
hardcode_shlibpath_var_F77=no
15919
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15920
hardcode_shlibpath_var_F77=no
15921
export_dynamic_flag_spec_F77='-Bexport'
15925
if test -d /usr/nec; then
15926
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15927
hardcode_shlibpath_var_F77=no
15928
runpath_var=LD_RUN_PATH
15929
hardcode_runpath_var=yes
15934
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15935
no_undefined_flag_F77='${wl}-z,text'
15936
archive_cmds_need_lc_F77=no
15937
hardcode_shlibpath_var_F77=no
15938
runpath_var='LD_RUN_PATH'
15940
if test "$GCC" = yes; then
15941
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15944
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15945
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15949
sysv5* | sco3.2v5* | sco5v6*)
15950
# Note: We can NOT use -z defs as we might desire, because we do not
15951
# link with -lc, and that would cause any symbols used from libc to
15952
# always be unresolved, which means just about no library would
15953
# ever link correctly. If we're not using GNU ld we use -z text
15954
# though, which does catch some bad symbols but isn't as heavy-handed
15956
no_undefined_flag_F77='${wl}-z,text'
15957
allow_undefined_flag_F77='${wl}-z,nodefs'
15958
archive_cmds_need_lc_F77=no
15959
hardcode_shlibpath_var_F77=no
15960
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15961
hardcode_libdir_separator_F77=':'
15962
link_all_deplibs_F77=yes
15963
export_dynamic_flag_spec_F77='${wl}-Bexport'
15964
runpath_var='LD_RUN_PATH'
15966
if test "$GCC" = yes; then
15967
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15968
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15970
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15971
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15976
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15977
hardcode_libdir_flag_spec_F77='-L$libdir'
15978
hardcode_shlibpath_var_F77=no
15987
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15988
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15989
test "$ld_shlibs_F77" = no && can_build_shared=no
15992
# Do we need to explicitly link libc?
15994
case "x$archive_cmds_need_lc_F77" in
15996
# Assume -lc should be added
15997
archive_cmds_need_lc_F77=yes
15999
if test "$enable_shared" = yes && test "$GCC" = yes; then
16000
case $archive_cmds_F77 in
16002
# FIXME: we may have to deal with multi-command sequences.
16005
# Test whether the compiler implicitly links with -lc since on some
16006
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16007
# to ld, don't add -lc before -lgcc.
16008
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16009
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16011
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16013
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16014
(eval $ac_compile) 2>&5
16016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017
(exit $ac_status); } 2>conftest.err; then
16020
libobjs=conftest.$ac_objext
16022
wl=$lt_prog_compiler_wl_F77
16023
pic_flag=$lt_prog_compiler_pic_F77
16029
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16030
allow_undefined_flag_F77=
16031
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16032
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035
(exit $ac_status); }
16037
archive_cmds_need_lc_F77=no
16039
archive_cmds_need_lc_F77=yes
16041
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16043
cat conftest.err 1>&5
16046
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16047
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16054
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16055
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16056
library_names_spec=
16057
libname_spec='lib$name'
16061
postuninstall_cmds=
16065
shlibpath_overrides_runpath=unknown
16067
dynamic_linker="$host_os ld.so"
16068
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16070
need_lib_prefix=unknown
16071
hardcode_into_libs=no
16073
# when you set need_version to no, make sure it does not cause -set_version
16074
# flags to be left without arguments
16075
need_version=unknown
16080
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16081
shlibpath_var=LIBPATH
16083
# AIX 3 has no versioning support, so we append a major version to the name.
16084
soname_spec='${libname}${release}${shared_ext}$major'
16091
hardcode_into_libs=yes
16092
if test "$host_cpu" = ia64; then
16093
# AIX 5 supports IA64
16094
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16095
shlibpath_var=LD_LIBRARY_PATH
16097
# With GCC up to 2.95.x, collect2 would create an import file
16098
# for dependence libraries. The import file would start with
16099
# the line `#! .'. This would cause the generated library to
16100
# depend on `.', always an invalid library. This was fixed in
16101
# development snapshots of GCC prior to 3.0.
16103
aix4 | aix4.[01] | aix4.[01].*)
16104
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16106
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16109
can_build_shared=no
16113
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16114
# soname into executable. Probably we can add versioning support to
16115
# collect2, so additional links can be useful in future.
16116
if test "$aix_use_runtimelinking" = yes; then
16117
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16118
# instead of lib<name>.a to let people know that these are not
16119
# typical AIX shared libraries.
16120
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16122
# We preserve .a as extension for shared libraries through AIX4.2
16123
# and later when we are not doing run time linking.
16124
library_names_spec='${libname}${release}.a $libname.a'
16125
soname_spec='${libname}${release}${shared_ext}$major'
16127
shlibpath_var=LIBPATH
16132
library_names_spec='$libname.ixlibrary $libname.a'
16133
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16134
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'
16138
library_names_spec='${libname}${shared_ext}'
16139
dynamic_linker="$host_os ld.so"
16140
shlibpath_var=LIBRARY_PATH
16146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147
soname_spec='${libname}${release}${shared_ext}$major'
16148
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16149
shlibpath_var=LD_LIBRARY_PATH
16150
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16151
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16152
# the default ld.so.conf also contains /usr/contrib/lib and
16153
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16154
# libtool to hard-code these into programs
16157
cygwin* | mingw* | pw32*)
16158
version_type=windows
16163
case $GCC,$host_os in
16164
yes,cygwin* | yes,mingw* | yes,pw32*)
16165
library_names_spec='$libname.dll.a'
16166
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16167
postinstall_cmds='base_file=`basename \${file}`~
16168
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16169
dldir=$destdir/`dirname \$dlpath`~
16170
test -d \$dldir || mkdir -p \$dldir~
16171
$install_prog $dir/$dlname \$dldir/$dlname~
16172
chmod a+x \$dldir/$dlname'
16173
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16174
dlpath=$dir/\$dldll~
16176
shlibpath_overrides_runpath=yes
16180
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16181
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16182
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16185
# MinGW DLLs use traditional 'lib' prefix
16186
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16187
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16188
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16189
# It is most probably a Windows format PATH printed by
16190
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16191
# path with ; separators, and with drive letters. We can handle the
16192
# drive letters (cygwin fileutils understands them), so leave them,
16193
# especially as we might pass files found there to a mingw objdump,
16194
# which wouldn't understand a cygwinified path. Ahh.
16195
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16197
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16201
# pw32 DLLs use 'pw' prefix rather than 'lib'
16202
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16208
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16211
dynamic_linker='Win32 ld.exe'
16212
# FIXME: first we should search . and the directory the executable is in
16216
darwin* | rhapsody*)
16217
dynamic_linker="$host_os dyld"
16218
version_type=darwin
16221
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16222
soname_spec='${libname}${release}${major}$shared_ext'
16223
shlibpath_overrides_runpath=yes
16224
shlibpath_var=DYLD_LIBRARY_PATH
16225
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16227
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16235
soname_spec='${libname}${release}${shared_ext}$major'
16236
shlibpath_var=LD_LIBRARY_PATH
16243
freebsd* | dragonfly*)
16244
# DragonFly does not have aout. When/if they implement a new
16245
# versioning mechanism, adjust this.
16246
if test -x /usr/bin/objformat; then
16247
objformat=`/usr/bin/objformat`
16250
freebsd[123]*) objformat=aout ;;
16251
*) objformat=elf ;;
16254
version_type=freebsd-$objformat
16255
case $version_type in
16257
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16262
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16266
shlibpath_var=LD_LIBRARY_PATH
16269
shlibpath_overrides_runpath=yes
16271
freebsd3.[01]* | freebsdelf3.[01]*)
16272
shlibpath_overrides_runpath=yes
16273
hardcode_into_libs=yes
16275
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16276
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16277
shlibpath_overrides_runpath=no
16278
hardcode_into_libs=yes
16280
*) # from 4.6 on, and DragonFly
16281
shlibpath_overrides_runpath=yes
16282
hardcode_into_libs=yes
16291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16292
soname_spec='${libname}${release}${shared_ext}$major'
16293
shlibpath_var=LD_LIBRARY_PATH
16294
hardcode_into_libs=yes
16297
hpux9* | hpux10* | hpux11*)
16298
# Give a soname corresponding to the major version so that dld.sl refuses to
16299
# link against other versions.
16306
hardcode_into_libs=yes
16307
dynamic_linker="$host_os dld.so"
16308
shlibpath_var=LD_LIBRARY_PATH
16309
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16310
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311
soname_spec='${libname}${release}${shared_ext}$major'
16312
if test "X$HPUX_IA64_MODE" = X32; then
16313
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16315
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16317
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16321
hardcode_into_libs=yes
16322
dynamic_linker="$host_os dld.sl"
16323
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16324
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326
soname_spec='${libname}${release}${shared_ext}$major'
16327
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16328
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16332
dynamic_linker="$host_os dld.sl"
16333
shlibpath_var=SHLIB_PATH
16334
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16335
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336
soname_spec='${libname}${release}${shared_ext}$major'
16339
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16340
postinstall_cmds='chmod 555 $lib'
16347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16348
soname_spec='${libname}${release}${shared_ext}$major'
16349
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16350
shlibpath_var=LD_LIBRARY_PATH
16351
shlibpath_overrides_runpath=no
16352
hardcode_into_libs=yes
16355
irix5* | irix6* | nonstopux*)
16357
nonstopux*) version_type=nonstopux ;;
16359
if test "$lt_cv_prog_gnu_ld" = yes; then
16367
soname_spec='${libname}${release}${shared_ext}$major'
16368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16370
irix5* | nonstopux*)
16371
libsuff= shlibsuff=
16374
case $LD in # libtool.m4 will add one of these switches to LD
16375
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16376
libsuff= shlibsuff= libmagic=32-bit;;
16377
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16378
libsuff=32 shlibsuff=N32 libmagic=N32;;
16379
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16380
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16381
*) libsuff= shlibsuff= libmagic=never-match;;
16385
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16386
shlibpath_overrides_runpath=no
16387
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16388
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16389
hardcode_into_libs=yes
16392
# No shared lib support for Linux oldld, aout, or coff.
16393
linux*oldld* | linux*aout* | linux*coff*)
16397
# This must be Linux ELF.
16398
linux* | k*bsd*-gnu)
16402
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403
soname_spec='${libname}${release}${shared_ext}$major'
16404
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16405
shlibpath_var=LD_LIBRARY_PATH
16406
shlibpath_overrides_runpath=no
16407
# This implies no fast_install, which is unacceptable.
16408
# Some rework will be needed to allow for fast_install
16409
# before this can be enabled.
16410
hardcode_into_libs=yes
16412
# Append ld.so.conf contents to the search path
16413
if test -f /etc/ld.so.conf; then
16414
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' ' '`
16415
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16418
# We used to test for /lib/ld.so.1 and disable shared libraries on
16419
# powerpc, because MkLinux only supported shared libraries with the
16420
# GNU dynamic linker. Since this was broken with cross compilers,
16421
# most powerpc-linux boxes support dynamic linking these days and
16422
# people can always --disable-shared, the test was removed, and we
16423
# assume the GNU/Linux dynamic linker is in use.
16424
dynamic_linker='GNU/Linux ld.so'
16431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16432
soname_spec='${libname}${release}${shared_ext}$major'
16433
shlibpath_var=LD_LIBRARY_PATH
16434
shlibpath_overrides_runpath=no
16435
hardcode_into_libs=yes
16436
dynamic_linker='NetBSD ld.elf_so'
16443
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16445
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16446
dynamic_linker='NetBSD (a.out) ld.so'
16448
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16449
soname_spec='${libname}${release}${shared_ext}$major'
16450
dynamic_linker='NetBSD ld.elf_so'
16452
shlibpath_var=LD_LIBRARY_PATH
16453
shlibpath_overrides_runpath=yes
16454
hardcode_into_libs=yes
16459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460
shlibpath_var=LD_LIBRARY_PATH
16461
shlibpath_overrides_runpath=yes
16468
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469
soname_spec='${libname}${release}${shared_ext}$major'
16470
shlibpath_var=LD_LIBRARY_PATH
16471
shlibpath_overrides_runpath=yes
16476
sys_lib_dlsearch_path_spec="/usr/lib"
16478
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16480
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16481
*) need_version=no ;;
16483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16484
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16485
shlibpath_var=LD_LIBRARY_PATH
16486
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16488
openbsd2.[89] | openbsd2.[89].*)
16489
shlibpath_overrides_runpath=no
16492
shlibpath_overrides_runpath=yes
16496
shlibpath_overrides_runpath=yes
16501
libname_spec='$name'
16504
library_names_spec='$libname${shared_ext} $libname.a'
16505
dynamic_linker='OS/2 ld.exe'
16506
shlibpath_var=LIBPATH
16509
osf3* | osf4* | osf5*)
16513
soname_spec='${libname}${release}${shared_ext}$major'
16514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515
shlibpath_var=LD_LIBRARY_PATH
16516
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16517
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529
soname_spec='${libname}${release}${shared_ext}$major'
16530
shlibpath_var=LD_LIBRARY_PATH
16531
shlibpath_overrides_runpath=yes
16532
hardcode_into_libs=yes
16533
# ldd complains unless libraries are executable
16534
postinstall_cmds='chmod +x $lib'
16539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16540
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16541
shlibpath_var=LD_LIBRARY_PATH
16542
shlibpath_overrides_runpath=yes
16543
if test "$with_gnu_ld" = yes; then
16551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552
soname_spec='${libname}${release}${shared_ext}$major'
16553
shlibpath_var=LD_LIBRARY_PATH
16554
case $host_vendor in
16556
shlibpath_overrides_runpath=no
16558
export_dynamic_flag_spec='${wl}-Blargedynsym'
16559
runpath_var=LD_RUN_PATH
16567
shlibpath_overrides_runpath=no
16568
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16574
if test -d /usr/nec ;then
16576
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16577
soname_spec='$libname${shared_ext}.$major'
16578
shlibpath_var=LD_LIBRARY_PATH
16582
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16583
version_type=freebsd-elf
16586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16587
soname_spec='${libname}${release}${shared_ext}$major'
16588
shlibpath_var=LD_LIBRARY_PATH
16589
hardcode_into_libs=yes
16590
if test "$with_gnu_ld" = yes; then
16591
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16592
shlibpath_overrides_runpath=no
16594
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16595
shlibpath_overrides_runpath=yes
16598
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16602
sys_lib_dlsearch_path_spec='/usr/lib'
16607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16608
soname_spec='${libname}${release}${shared_ext}$major'
16609
shlibpath_var=LD_LIBRARY_PATH
16616
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16617
echo "${ECHO_T}$dynamic_linker" >&6; }
16618
test "$dynamic_linker" = no && can_build_shared=no
16620
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16621
echo $ECHO_N "(cached) $ECHO_C" >&6
16623
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16626
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16627
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16628
echo $ECHO_N "(cached) $ECHO_C" >&6
16630
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16633
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16635
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16636
if test "$GCC" = yes; then
16637
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16640
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16641
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16642
hardcode_action_F77=
16643
if test -n "$hardcode_libdir_flag_spec_F77" || \
16644
test -n "$runpath_var_F77" || \
16645
test "X$hardcode_automatic_F77" = "Xyes" ; then
16647
# We can hardcode non-existant directories.
16648
if test "$hardcode_direct_F77" != no &&
16649
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16650
# have to relink, otherwise we might link with an installed library
16651
# when we should be linking with a yet-to-be-installed one
16652
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16653
test "$hardcode_minus_L_F77" != no; then
16654
# Linking always hardcodes the temporary library directory.
16655
hardcode_action_F77=relink
16657
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16658
hardcode_action_F77=immediate
16661
# We cannot hardcode anything, or else we can only hardcode existing
16663
hardcode_action_F77=unsupported
16665
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16666
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16668
if test "$hardcode_action_F77" = relink; then
16669
# Fast installation is not supported
16670
enable_fast_install=no
16671
elif test "$shlibpath_overrides_runpath" = yes ||
16672
test "$enable_shared" = no; then
16673
# Fast installation is not necessary
16674
enable_fast_install=needless
16678
# The else clause should only fire when bootstrapping the
16679
# libtool distribution, otherwise you forgot to ship ltmain.sh
16680
# with your package, and you will get complaints that there are
16681
# no rules to generate ltmain.sh.
16682
if test -f "$ltmain"; then
16683
# See if we are running on zsh, and set the options which allow our commands through
16684
# without removal of \ escapes.
16685
if test -n "${ZSH_VERSION+set}" ; then
16686
setopt NO_GLOB_SUBST
16688
# Now quote all the things that may contain metacharacters while being
16689
# careful not to overquote the AC_SUBSTed values. We take copies of the
16690
# variables and quote the copies for generation of the libtool script.
16691
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16693
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16694
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16695
deplibs_check_method reload_flag reload_cmds need_locks \
16696
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16697
lt_cv_sys_global_symbol_to_c_name_address \
16698
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16699
old_postinstall_cmds old_postuninstall_cmds \
16703
lt_prog_compiler_wl_F77 \
16704
lt_prog_compiler_pic_F77 \
16705
lt_prog_compiler_static_F77 \
16706
lt_prog_compiler_no_builtin_flag_F77 \
16707
export_dynamic_flag_spec_F77 \
16708
thread_safe_flag_spec_F77 \
16709
whole_archive_flag_spec_F77 \
16710
enable_shared_with_static_runtimes_F77 \
16711
old_archive_cmds_F77 \
16712
old_archive_from_new_cmds_F77 \
16713
predep_objects_F77 \
16714
postdep_objects_F77 \
16717
compiler_lib_search_path_F77 \
16718
compiler_lib_search_dirs_F77 \
16720
archive_expsym_cmds_F77 \
16721
postinstall_cmds_F77 \
16722
postuninstall_cmds_F77 \
16723
old_archive_from_expsyms_cmds_F77 \
16724
allow_undefined_flag_F77 \
16725
no_undefined_flag_F77 \
16726
export_symbols_cmds_F77 \
16727
hardcode_libdir_flag_spec_F77 \
16728
hardcode_libdir_flag_spec_ld_F77 \
16729
hardcode_libdir_separator_F77 \
16730
hardcode_automatic_F77 \
16732
module_expsym_cmds_F77 \
16733
lt_cv_prog_compiler_c_o_F77 \
16734
fix_srcfile_path_F77 \
16735
exclude_expsyms_F77 \
16736
include_expsyms_F77; do
16739
old_archive_cmds_F77 | \
16740
old_archive_from_new_cmds_F77 | \
16741
archive_cmds_F77 | \
16742
archive_expsym_cmds_F77 | \
16743
module_cmds_F77 | \
16744
module_expsym_cmds_F77 | \
16745
old_archive_from_expsyms_cmds_F77 | \
16746
export_symbols_cmds_F77 | \
16747
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16748
postinstall_cmds | postuninstall_cmds | \
16749
old_postinstall_cmds | old_postuninstall_cmds | \
16750
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16751
# Double-quote double-evaled strings.
16752
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16755
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16761
*'\$0 --fallback-echo"')
16762
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16768
cat <<__EOF__ >> "$cfgfile"
16769
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16771
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16773
# Shell to use when invoking shell scripts.
16776
# Whether or not to build shared libraries.
16777
build_libtool_libs=$enable_shared
16779
# Whether or not to build static libraries.
16780
build_old_libs=$enable_static
16782
# Whether or not to add -lc for building shared libraries.
16783
build_libtool_need_lc=$archive_cmds_need_lc_F77
16785
# Whether or not to disallow shared libs when runtime libs are static
16786
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16788
# Whether or not to optimize for fast installation.
16789
fast_install=$enable_fast_install
16792
host_alias=$host_alias
16796
# The build system.
16797
build_alias=$build_alias
16801
# An echo program that does not interpret backslashes.
16806
AR_FLAGS=$lt_AR_FLAGS
16811
# LTCC compiler flags.
16812
LTCFLAGS=$lt_LTCFLAGS
16814
# A language-specific compiler.
16815
CC=$lt_compiler_F77
16817
# Is the compiler the GNU C compiler?
16823
# The linker used to build libraries.
16826
# Whether we need hard or soft links.
16829
# A BSD-compatible nm program.
16832
# A symbol stripping program
16835
# Used to examine libraries when file_magic_cmd begins "file"
16836
MAGIC_CMD=$MAGIC_CMD
16838
# Used on cygwin: DLL creation program.
16841
# Used on cygwin: object dumper.
16844
# Used on cygwin: assembler.
16847
# The name of the directory that contains temporary libtool files.
16850
# How to create reloadable object files.
16851
reload_flag=$lt_reload_flag
16852
reload_cmds=$lt_reload_cmds
16854
# How to pass a linker flag through the compiler.
16855
wl=$lt_lt_prog_compiler_wl_F77
16857
# Object file suffix (normally "o").
16858
objext="$ac_objext"
16860
# Old archive suffix (normally "a").
16863
# Shared library suffix (normally ".so").
16864
shrext_cmds='$shrext_cmds'
16866
# Executable file suffix (normally "").
16869
# Additional compiler flags for building library objects.
16870
pic_flag=$lt_lt_prog_compiler_pic_F77
16873
# What is the maximum length of a command?
16874
max_cmd_len=$lt_cv_sys_max_cmd_len
16876
# Does compiler simultaneously support -c and -o options?
16877
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16879
# Must we lock files when doing compilation?
16880
need_locks=$lt_need_locks
16882
# Do we need the lib prefix for modules?
16883
need_lib_prefix=$need_lib_prefix
16885
# Do we need a version for libraries?
16886
need_version=$need_version
16888
# Whether dlopen is supported.
16889
dlopen_support=$enable_dlopen
16891
# Whether dlopen of programs is supported.
16892
dlopen_self=$enable_dlopen_self
16894
# Whether dlopen of statically linked programs is supported.
16895
dlopen_self_static=$enable_dlopen_self_static
16897
# Compiler flag to prevent dynamic linking.
16898
link_static_flag=$lt_lt_prog_compiler_static_F77
16900
# Compiler flag to turn off builtin functions.
16901
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16903
# Compiler flag to allow reflexive dlopens.
16904
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16906
# Compiler flag to generate shared objects directly from archives.
16907
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16909
# Compiler flag to generate thread-safe objects.
16910
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16912
# Library versioning type.
16913
version_type=$version_type
16915
# Format of library name prefix.
16916
libname_spec=$lt_libname_spec
16918
# List of archive names. First name is the real one, the rest are links.
16919
# The last name is the one that the linker finds with -lNAME.
16920
library_names_spec=$lt_library_names_spec
16922
# The coded name of the library, if different from the real name.
16923
soname_spec=$lt_soname_spec
16925
# Commands used to build and install an old-style archive.
16927
old_archive_cmds=$lt_old_archive_cmds_F77
16928
old_postinstall_cmds=$lt_old_postinstall_cmds
16929
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16931
# Create an old-style archive from a shared archive.
16932
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16934
# Create a temporary old-style archive to link instead of a shared archive.
16935
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16937
# Commands used to build and install a shared archive.
16938
archive_cmds=$lt_archive_cmds_F77
16939
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16940
postinstall_cmds=$lt_postinstall_cmds
16941
postuninstall_cmds=$lt_postuninstall_cmds
16943
# Commands used to build a loadable module (assumed same as above if empty)
16944
module_cmds=$lt_module_cmds_F77
16945
module_expsym_cmds=$lt_module_expsym_cmds_F77
16947
# Commands to strip libraries.
16948
old_striplib=$lt_old_striplib
16949
striplib=$lt_striplib
16951
# Dependencies to place before the objects being linked to create a
16953
predep_objects=$lt_predep_objects_F77
16955
# Dependencies to place after the objects being linked to create a
16957
postdep_objects=$lt_postdep_objects_F77
16959
# Dependencies to place before the objects being linked to create a
16961
predeps=$lt_predeps_F77
16963
# Dependencies to place after the objects being linked to create a
16965
postdeps=$lt_postdeps_F77
16967
# The directories searched by this compiler when creating a shared
16969
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16971
# The library search path used internally by the compiler when linking
16972
# a shared library.
16973
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16975
# Method to check whether dependent libraries are shared objects.
16976
deplibs_check_method=$lt_deplibs_check_method
16978
# Command to use when deplibs_check_method == file_magic.
16979
file_magic_cmd=$lt_file_magic_cmd
16981
# Flag that allows shared libraries with undefined symbols to be built.
16982
allow_undefined_flag=$lt_allow_undefined_flag_F77
16984
# Flag that forces no undefined symbols.
16985
no_undefined_flag=$lt_no_undefined_flag_F77
16987
# Commands used to finish a libtool library installation in a directory.
16988
finish_cmds=$lt_finish_cmds
16990
# Same as above, but a single script fragment to be evaled but not shown.
16991
finish_eval=$lt_finish_eval
16993
# Take the output of nm and produce a listing of raw symbols and C names.
16994
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16996
# Transform the output of nm in a proper C declaration
16997
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16999
# Transform the output of nm in a C name address pair
17000
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17002
# This is the shared library runtime path variable.
17003
runpath_var=$runpath_var
17005
# This is the shared library path variable.
17006
shlibpath_var=$shlibpath_var
17008
# Is shlibpath searched before the hard-coded library search path?
17009
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17011
# How to hardcode a shared library path into an executable.
17012
hardcode_action=$hardcode_action_F77
17014
# Whether we should hardcode library paths into libraries.
17015
hardcode_into_libs=$hardcode_into_libs
17017
# Flag to hardcode \$libdir into a binary during linking.
17018
# This must work even if \$libdir does not exist.
17019
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17021
# If ld is used when linking, flag to hardcode \$libdir into
17022
# a binary during linking. This must work even if \$libdir does
17024
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17026
# Whether we need a single -rpath flag with a separated argument.
17027
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17029
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17030
# resulting binary.
17031
hardcode_direct=$hardcode_direct_F77
17033
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17034
# resulting binary.
17035
hardcode_minus_L=$hardcode_minus_L_F77
17037
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17038
# the resulting binary.
17039
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17041
# Set to yes if building a shared library automatically hardcodes DIR into the library
17042
# and all subsequent libraries and executables linked against it.
17043
hardcode_automatic=$hardcode_automatic_F77
17045
# Variables whose values should be saved in libtool wrapper scripts and
17046
# restored at relink time.
17047
variables_saved_for_relink="$variables_saved_for_relink"
17049
# Whether libtool must link a program against all its dependency libraries.
17050
link_all_deplibs=$link_all_deplibs_F77
17052
# Compile-time system search path for libraries
17053
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17055
# Run-time system search path for libraries
17056
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17058
# Fix the shell variable \$srcfile for the compiler.
17059
fix_srcfile_path=$lt_fix_srcfile_path
17061
# Set to yes if exported symbols are required.
17062
always_export_symbols=$always_export_symbols_F77
17064
# The commands to list exported symbols.
17065
export_symbols_cmds=$lt_export_symbols_cmds_F77
17067
# The commands to extract the exported symbol list from a shared archive.
17068
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17070
# Symbols that should not be listed in the preloaded symbols.
17071
exclude_expsyms=$lt_exclude_expsyms_F77
17073
# Symbols that must always be exported.
17074
include_expsyms=$lt_include_expsyms_F77
17076
# ### END LIBTOOL TAG CONFIG: $tagname
17082
# If there is no Makefile yet, we rely on a make rule to execute
17083
# `config.status --recheck' to rerun these tests and create the
17084
# libtool script then.
17085
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17086
if test -f "$ltmain_in"; then
17087
test -f Makefile && make "$ltmain"
17093
ac_cpp='$CPP $CPPFLAGS'
17094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17106
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17109
# Source file extension for Java test sources.
17112
# Object file extension for compiled Java test sources.
17116
# Code to be used in simple compile tests
17117
lt_simple_compile_test_code="class foo {}"
17119
# Code to be used in simple link tests
17120
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17122
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17124
# If no C compiler was specified, use CC.
17127
# If no C compiler flags were specified, use CFLAGS.
17128
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17130
# Allow CC to be a program name with arguments.
17134
# save warnings/boilerplate of simple test code
17135
ac_outfile=conftest.$ac_objext
17136
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17137
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17138
_lt_compiler_boilerplate=`cat conftest.err`
17141
ac_outfile=conftest.$ac_objext
17142
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17143
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17144
_lt_linker_boilerplate=`cat conftest.err`
17148
# Allow CC to be a program name with arguments.
17153
for cc_temp in $compiler""; do
17155
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17156
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17161
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17164
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17165
archive_cmds_need_lc_GCJ=no
17167
old_archive_cmds_GCJ=$old_archive_cmds
17170
lt_prog_compiler_no_builtin_flag_GCJ=
17172
if test "$GCC" = yes; then
17173
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17176
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17177
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17178
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17179
echo $ECHO_N "(cached) $ECHO_C" >&6
17181
lt_cv_prog_compiler_rtti_exceptions=no
17182
ac_outfile=conftest.$ac_objext
17183
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17184
lt_compiler_flag="-fno-rtti -fno-exceptions"
17185
# Insert the option either (1) after the last *FLAGS variable, or
17186
# (2) before a word containing "conftest.", or (3) at the end.
17187
# Note that $ac_compile itself does not contain backslashes and begins
17188
# with a dollar sign (not a hyphen), so the echo should work correctly.
17189
# The option is referenced via a variable to avoid confusing sed.
17190
lt_compile=`echo "$ac_compile" | $SED \
17191
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17192
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17193
-e 's:$: $lt_compiler_flag:'`
17194
(eval echo "\"\$as_me:17194: $lt_compile\"" >&5)
17195
(eval "$lt_compile" 2>conftest.err)
17197
cat conftest.err >&5
17198
echo "$as_me:17198: \$? = $ac_status" >&5
17199
if (exit $ac_status) && test -s "$ac_outfile"; then
17200
# The compiler can only warn and ignore the option if not recognized
17201
# So say no if there are warnings other than the usual output.
17202
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17203
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17204
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17205
lt_cv_prog_compiler_rtti_exceptions=yes
17211
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17212
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17214
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17215
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17222
lt_prog_compiler_wl_GCJ=
17223
lt_prog_compiler_pic_GCJ=
17224
lt_prog_compiler_static_GCJ=
17226
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17227
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17229
if test "$GCC" = yes; then
17230
lt_prog_compiler_wl_GCJ='-Wl,'
17231
lt_prog_compiler_static_GCJ='-static'
17235
# All AIX code is PIC.
17236
if test "$host_cpu" = ia64; then
17237
# AIX 5 now supports IA64 processor
17238
lt_prog_compiler_static_GCJ='-Bstatic'
17243
# FIXME: we need at least 68020 code to build shared libraries, but
17244
# adding the `-m68020' flag to GCC prevents building anything better,
17246
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17249
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17250
# PIC is the default for these OSes.
17253
mingw* | cygwin* | pw32* | os2*)
17254
# This hack is so that the source file can tell whether it is being
17255
# built for inclusion in a dll (and should export symbols for example).
17256
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17257
# (--disable-auto-import) libraries
17261
darwin* | rhapsody*)
17262
# PIC is the default on this platform
17263
# Common symbols not allowed in MH_DYLIB files
17264
lt_prog_compiler_pic_GCJ='-fno-common'
17268
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17269
# Instead, we relocate shared libraries at runtime.
17273
# Just because we use GCC doesn't mean we suddenly get shared libraries
17274
# on systems that don't support them.
17275
lt_prog_compiler_can_build_shared_GCJ=no
17280
if test -d /usr/nec; then
17281
lt_prog_compiler_pic_GCJ=-Kconform_pic
17286
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17287
# not for PA HP-UX.
17293
lt_prog_compiler_pic_GCJ='-fPIC'
17299
lt_prog_compiler_pic_GCJ='-fPIC'
17303
# PORTME Check for flag to pass linker flags through the system compiler.
17306
lt_prog_compiler_wl_GCJ='-Wl,'
17307
if test "$host_cpu" = ia64; then
17308
# AIX 5 now supports IA64 processor
17309
lt_prog_compiler_static_GCJ='-Bstatic'
17311
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17315
# PIC is the default on this platform
17316
# Common symbols not allowed in MH_DYLIB files
17317
case $cc_basename in
17319
lt_prog_compiler_pic_GCJ='-qnocommon'
17320
lt_prog_compiler_wl_GCJ='-Wl,'
17325
mingw* | cygwin* | pw32* | os2*)
17326
# This hack is so that the source file can tell whether it is being
17327
# built for inclusion in a dll (and should export symbols for example).
17331
hpux9* | hpux10* | hpux11*)
17332
lt_prog_compiler_wl_GCJ='-Wl,'
17333
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17334
# not for PA HP-UX.
17340
lt_prog_compiler_pic_GCJ='+Z'
17343
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17344
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17347
irix5* | irix6* | nonstopux*)
17348
lt_prog_compiler_wl_GCJ='-Wl,'
17349
# PIC (with -KPIC) is the default.
17350
lt_prog_compiler_static_GCJ='-non_shared'
17354
lt_prog_compiler_pic_GCJ='-KPIC'
17355
lt_prog_compiler_static_GCJ='-Bstatic'
17358
linux* | k*bsd*-gnu)
17359
case $cc_basename in
17361
lt_prog_compiler_wl_GCJ='-Wl,'
17362
lt_prog_compiler_pic_GCJ='-KPIC'
17363
lt_prog_compiler_static_GCJ='-static'
17365
pgcc* | pgf77* | pgf90* | pgf95*)
17366
# Portland Group compilers (*not* the Pentium gcc compiler,
17367
# which looks to be a dead project)
17368
lt_prog_compiler_wl_GCJ='-Wl,'
17369
lt_prog_compiler_pic_GCJ='-fpic'
17370
lt_prog_compiler_static_GCJ='-Bstatic'
17373
lt_prog_compiler_wl_GCJ='-Wl,'
17374
# All Alpha code is PIC.
17375
lt_prog_compiler_static_GCJ='-non_shared'
17378
case `$CC -V 2>&1 | sed 5q` in
17381
lt_prog_compiler_pic_GCJ='-KPIC'
17382
lt_prog_compiler_static_GCJ='-Bstatic'
17383
lt_prog_compiler_wl_GCJ='-Wl,'
17386
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17387
lt_prog_compiler_pic_GCJ='-KPIC'
17388
lt_prog_compiler_static_GCJ='-Bstatic'
17389
lt_prog_compiler_wl_GCJ=''
17396
osf3* | osf4* | osf5*)
17397
lt_prog_compiler_wl_GCJ='-Wl,'
17398
# All OSF/1 code is PIC.
17399
lt_prog_compiler_static_GCJ='-non_shared'
17403
lt_prog_compiler_static_GCJ='-non_shared'
17407
lt_prog_compiler_pic_GCJ='-KPIC'
17408
lt_prog_compiler_static_GCJ='-Bstatic'
17409
case $cc_basename in
17410
f77* | f90* | f95*)
17411
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17413
lt_prog_compiler_wl_GCJ='-Wl,';;
17418
lt_prog_compiler_wl_GCJ='-Qoption ld '
17419
lt_prog_compiler_pic_GCJ='-PIC'
17420
lt_prog_compiler_static_GCJ='-Bstatic'
17423
sysv4 | sysv4.2uw2* | sysv4.3*)
17424
lt_prog_compiler_wl_GCJ='-Wl,'
17425
lt_prog_compiler_pic_GCJ='-KPIC'
17426
lt_prog_compiler_static_GCJ='-Bstatic'
17430
if test -d /usr/nec ;then
17431
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17432
lt_prog_compiler_static_GCJ='-Bstatic'
17436
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17437
lt_prog_compiler_wl_GCJ='-Wl,'
17438
lt_prog_compiler_pic_GCJ='-KPIC'
17439
lt_prog_compiler_static_GCJ='-Bstatic'
17443
lt_prog_compiler_wl_GCJ='-Wl,'
17444
lt_prog_compiler_can_build_shared_GCJ=no
17448
lt_prog_compiler_pic_GCJ='-pic'
17449
lt_prog_compiler_static_GCJ='-Bstatic'
17453
lt_prog_compiler_can_build_shared_GCJ=no
17458
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17459
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17462
# Check to make sure the PIC flag actually works.
17464
if test -n "$lt_prog_compiler_pic_GCJ"; then
17466
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17467
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17468
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17469
echo $ECHO_N "(cached) $ECHO_C" >&6
17471
lt_cv_prog_compiler_pic_works_GCJ=no
17472
ac_outfile=conftest.$ac_objext
17473
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17474
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17475
# Insert the option either (1) after the last *FLAGS variable, or
17476
# (2) before a word containing "conftest.", or (3) at the end.
17477
# Note that $ac_compile itself does not contain backslashes and begins
17478
# with a dollar sign (not a hyphen), so the echo should work correctly.
17479
# The option is referenced via a variable to avoid confusing sed.
17480
lt_compile=`echo "$ac_compile" | $SED \
17481
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17482
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17483
-e 's:$: $lt_compiler_flag:'`
17484
(eval echo "\"\$as_me:17484: $lt_compile\"" >&5)
17485
(eval "$lt_compile" 2>conftest.err)
17487
cat conftest.err >&5
17488
echo "$as_me:17488: \$? = $ac_status" >&5
17489
if (exit $ac_status) && test -s "$ac_outfile"; then
17490
# The compiler can only warn and ignore the option if not recognized
17491
# So say no if there are warnings other than the usual output.
17492
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17493
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17494
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17495
lt_cv_prog_compiler_pic_works_GCJ=yes
17501
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17502
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17504
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17505
case $lt_prog_compiler_pic_GCJ in
17507
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17510
lt_prog_compiler_pic_GCJ=
17511
lt_prog_compiler_can_build_shared_GCJ=no
17516
# For platforms which do not support PIC, -DPIC is meaningless:
17518
lt_prog_compiler_pic_GCJ=
17521
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17526
# Check to make sure the static flag actually works.
17528
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17529
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17530
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17531
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17532
echo $ECHO_N "(cached) $ECHO_C" >&6
17534
lt_cv_prog_compiler_static_works_GCJ=no
17535
save_LDFLAGS="$LDFLAGS"
17536
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17537
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17538
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17539
# The linker can only warn and ignore the option if not recognized
17540
# So say no if there are warnings
17541
if test -s conftest.err; then
17542
# Append any errors to the config.log.
17543
cat conftest.err 1>&5
17544
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17545
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17546
if diff conftest.exp conftest.er2 >/dev/null; then
17547
lt_cv_prog_compiler_static_works_GCJ=yes
17550
lt_cv_prog_compiler_static_works_GCJ=yes
17554
LDFLAGS="$save_LDFLAGS"
17557
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17558
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17560
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17563
lt_prog_compiler_static_GCJ=
17567
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17568
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17569
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17570
echo $ECHO_N "(cached) $ECHO_C" >&6
17572
lt_cv_prog_compiler_c_o_GCJ=no
17573
$rm -r conftest 2>/dev/null
17577
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17579
lt_compiler_flag="-o out/conftest2.$ac_objext"
17580
# Insert the option either (1) after the last *FLAGS variable, or
17581
# (2) before a word containing "conftest.", or (3) at the end.
17582
# Note that $ac_compile itself does not contain backslashes and begins
17583
# with a dollar sign (not a hyphen), so the echo should work correctly.
17584
lt_compile=`echo "$ac_compile" | $SED \
17585
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17586
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17587
-e 's:$: $lt_compiler_flag:'`
17588
(eval echo "\"\$as_me:17588: $lt_compile\"" >&5)
17589
(eval "$lt_compile" 2>out/conftest.err)
17591
cat out/conftest.err >&5
17592
echo "$as_me:17592: \$? = $ac_status" >&5
17593
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17595
# The compiler can only warn and ignore the option if not recognized
17596
# So say no if there are warnings
17597
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17598
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17599
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17600
lt_cv_prog_compiler_c_o_GCJ=yes
17605
# SGI C++ compiler will create directory out/ii_files/ for
17606
# template instantiation
17607
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17608
$rm out/* && rmdir out
17614
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17615
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17618
hard_links="nottested"
17619
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17620
# do not overwrite the value of need_locks provided by the user
17621
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17622
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17625
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17627
ln conftest.a conftest.b 2>&5 || hard_links=no
17628
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17629
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17630
echo "${ECHO_T}$hard_links" >&6; }
17631
if test "$hard_links" = no; then
17632
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17633
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17640
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17641
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17644
allow_undefined_flag_GCJ=
17645
enable_shared_with_static_runtimes_GCJ=no
17647
archive_expsym_cmds_GCJ=
17648
old_archive_From_new_cmds_GCJ=
17649
old_archive_from_expsyms_cmds_GCJ=
17650
export_dynamic_flag_spec_GCJ=
17651
whole_archive_flag_spec_GCJ=
17652
thread_safe_flag_spec_GCJ=
17653
hardcode_libdir_flag_spec_GCJ=
17654
hardcode_libdir_flag_spec_ld_GCJ=
17655
hardcode_libdir_separator_GCJ=
17656
hardcode_direct_GCJ=no
17657
hardcode_minus_L_GCJ=no
17658
hardcode_shlibpath_var_GCJ=unsupported
17659
link_all_deplibs_GCJ=unknown
17660
hardcode_automatic_GCJ=no
17662
module_expsym_cmds_GCJ=
17663
always_export_symbols_GCJ=no
17664
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17665
# include_expsyms should be a list of space-separated symbols to be *always*
17666
# included in the symbol list
17667
include_expsyms_GCJ=
17668
# exclude_expsyms can be an extended regexp of symbols to exclude
17669
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17670
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17671
# as well as any symbol that contains `d'.
17672
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17673
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17674
# platforms (ab)use it in PIC code, but their linkers get confused if
17675
# the symbol is explicitly referenced. Since portable code cannot
17676
# rely on this symbol name, it's probably fine to never include it in
17677
# preloaded symbol tables.
17678
# Exclude shared library initialization/finalization symbols.
17679
extract_expsyms_cmds=
17680
# Just being paranoid about ensuring that cc_basename is set.
17681
for cc_temp in $compiler""; do
17683
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17684
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17689
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17692
cygwin* | mingw* | pw32*)
17693
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17694
# When not using gcc, we currently assume that we are using
17695
# Microsoft Visual C++.
17696
if test "$GCC" != yes; then
17701
# we just hope/assume this is gcc and not c89 (= MSVC++)
17710
if test "$with_gnu_ld" = yes; then
17711
# If archive_cmds runs LD, not CC, wlarc should be empty
17714
# Set some defaults for GNU ld with shared library support. These
17715
# are reset later if shared libraries are not supported. Putting them
17716
# here allows them to be overridden if necessary.
17717
runpath_var=LD_RUN_PATH
17718
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17719
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17720
# ancient GNU ld didn't support --whole-archive et. al.
17721
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17722
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17724
whole_archive_flag_spec_GCJ=
17726
supports_anon_versioning=no
17727
case `$LD -v 2>/dev/null` in
17728
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17729
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17730
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17731
*\ 2.11.*) ;; # other 2.11 versions
17732
*) supports_anon_versioning=yes ;;
17735
# See if GNU ld supports shared libraries.
17738
# On AIX/PPC, the GNU linker is very broken
17739
if test "$host_cpu" != ia64; then
17743
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17744
*** to be unable to reliably create shared libraries on AIX.
17745
*** Therefore, libtool is disabling shared libraries support. If you
17746
*** really care for shared libraries, you may want to modify your PATH
17747
*** so that a non-GNU linker is found, and then restart.
17754
archive_cmds_GCJ='$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)'
17755
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17756
hardcode_minus_L_GCJ=yes
17758
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17759
# that the semantics of dynamic libraries on AmigaOS, at least up
17760
# to version 4, is to share data among multiple programs linked
17761
# with the same dynamic library. Since this doesn't match the
17762
# behavior of shared libraries on other platforms, we can't use
17768
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17769
allow_undefined_flag_GCJ=unsupported
17770
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17771
# support --undefined. This deserves some investigation. FIXME
17772
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17778
cygwin* | mingw* | pw32*)
17779
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17780
# as there is no search path for DLLs.
17781
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17782
allow_undefined_flag_GCJ=unsupported
17783
always_export_symbols_GCJ=no
17784
enable_shared_with_static_runtimes_GCJ=yes
17785
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17787
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17788
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17789
# If the export-symbols file already is a .def file (1st line
17790
# is EXPORTS), use it as is; otherwise, prepend...
17791
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17792
cp $export_symbols $output_objdir/$soname.def;
17794
echo EXPORTS > $output_objdir/$soname.def;
17795
cat $export_symbols >> $output_objdir/$soname.def;
17797
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17804
hardcode_direct_GCJ=no
17805
hardcode_shlibpath_var_GCJ=no
17806
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17807
export_dynamic_flag_spec_GCJ='${wl}-E'
17808
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17809
# Instead, shared libraries are loaded at an image base (0x10000000 by
17810
# default) and relocated if they conflict, which is a slow very memory
17811
# consuming and fragmenting process. To avoid this, we pick a random,
17812
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17813
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17814
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17815
archive_expsym_cmds_GCJ='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'
17818
gnu* | linux* | k*bsd*-gnu)
17819
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17821
case $cc_basename,$host_cpu in
17822
pgcc*) # Portland Group C compiler
17823
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17824
tmp_addflag=' $pic_flag'
17826
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17827
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17828
tmp_addflag=' $pic_flag -Mnomain' ;;
17829
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17830
tmp_addflag=' -i_dynamic' ;;
17831
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17832
tmp_addflag=' -i_dynamic -nofor_main' ;;
17833
ifc* | ifort*) # Intel Fortran compiler
17834
tmp_addflag=' -nofor_main' ;;
17836
case `$CC -V 2>&1 | sed 5q` in
17837
*Sun\ C*) # Sun C 5.9
17838
whole_archive_flag_spec_GCJ='${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'
17839
tmp_sharedflag='-G' ;;
17840
*Sun\ F*) # Sun Fortran 8.3
17841
tmp_sharedflag='-G' ;;
17843
tmp_sharedflag='-shared' ;;
17845
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17847
if test $supports_anon_versioning = yes; then
17848
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17849
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17850
$echo "local: *; };" >> $output_objdir/$libname.ver~
17851
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17853
link_all_deplibs_GCJ=no
17859
netbsd* | netbsdelf*-gnu)
17860
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17861
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17864
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17865
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17870
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17874
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17875
*** create shared libraries on Solaris systems. Therefore, libtool
17876
*** is disabling shared libraries support. We urge you to upgrade GNU
17877
*** binutils to release 2.9.1 or newer. Another option is to modify
17878
*** your PATH or compiler configuration so that the native linker is
17879
*** used, and then restart.
17882
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17883
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17884
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17890
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17891
case `$LD -v 2>&1` in
17892
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17896
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17897
*** reliably create shared libraries on SCO systems. Therefore, libtool
17898
*** is disabling shared libraries support. We urge you to upgrade GNU
17899
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17900
*** your PATH or compiler configuration so that the native linker is
17901
*** used, and then restart.
17906
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17907
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17908
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17909
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17918
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17920
hardcode_direct_GCJ=yes
17921
hardcode_shlibpath_var_GCJ=no
17925
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17926
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17927
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17934
if test "$ld_shlibs_GCJ" = no; then
17936
hardcode_libdir_flag_spec_GCJ=
17937
export_dynamic_flag_spec_GCJ=
17938
whole_archive_flag_spec_GCJ=
17941
# PORTME fill in a description of your system's linker (not GNU ld)
17944
allow_undefined_flag_GCJ=unsupported
17945
always_export_symbols_GCJ=yes
17946
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17947
# Note: this linker hardcodes the directories in LIBPATH if there
17948
# are no directories specified by -L.
17949
hardcode_minus_L_GCJ=yes
17950
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17951
# Neither direct hardcoding nor static linking is supported with a
17953
hardcode_direct_GCJ=unsupported
17958
if test "$host_cpu" = ia64; then
17959
# On IA64, the linker does run time linking by default, so we don't
17960
# have to do anything special.
17961
aix_use_runtimelinking=no
17962
exp_sym_flag='-Bexport'
17965
# If we're using GNU nm, then we don't want the "-C" option.
17966
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17967
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17968
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17970
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17972
aix_use_runtimelinking=no
17974
# Test if we are trying to use run time linking or normal
17975
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17976
# need to do runtime linking.
17977
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17978
for ld_flag in $LDFLAGS; do
17979
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17980
aix_use_runtimelinking=yes
17987
exp_sym_flag='-bexport'
17988
no_entry_flag='-bnoentry'
17991
# When large executables or shared objects are built, AIX ld can
17992
# have problems creating the table of contents. If linking a library
17993
# or program results in "error TOC overflow" add -mminimal-toc to
17994
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17995
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17997
archive_cmds_GCJ=''
17998
hardcode_direct_GCJ=yes
17999
hardcode_libdir_separator_GCJ=':'
18000
link_all_deplibs_GCJ=yes
18002
if test "$GCC" = yes; then
18003
case $host_os in aix4.[012]|aix4.[012].*)
18004
# We only want to do this on AIX 4.2 and lower, the check
18005
# below for broken collect2 doesn't work under 4.3+
18006
collect2name=`${CC} -print-prog-name=collect2`
18007
if test -f "$collect2name" && \
18008
strings "$collect2name" | grep resolve_lib_name >/dev/null
18010
# We have reworked collect2
18013
# We have old collect2
18014
hardcode_direct_GCJ=unsupported
18015
# It fails to find uninstalled libraries when the uninstalled
18016
# path is not listed in the libpath. Setting hardcode_minus_L
18017
# to unsupported forces relinking
18018
hardcode_minus_L_GCJ=yes
18019
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18020
hardcode_libdir_separator_GCJ=
18024
shared_flag='-shared'
18025
if test "$aix_use_runtimelinking" = yes; then
18026
shared_flag="$shared_flag "'${wl}-G'
18030
if test "$host_cpu" = ia64; then
18031
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18032
# chokes on -Wl,-G. The following line is correct:
18035
if test "$aix_use_runtimelinking" = yes; then
18036
shared_flag='${wl}-G'
18038
shared_flag='${wl}-bM:SRE'
18043
# It seems that -bexpall does not export symbols beginning with
18044
# underscore (_), so it is better to generate a list of symbols to export.
18045
always_export_symbols_GCJ=yes
18046
if test "$aix_use_runtimelinking" = yes; then
18047
# Warning - without using the other runtime loading flags (-brtl),
18048
# -berok will link without error, but may produce a broken library.
18049
allow_undefined_flag_GCJ='-berok'
18050
# Determine the default libpath from the value encoded in an empty executable.
18051
cat >conftest.$ac_ext <<_ACEOF
18054
cat confdefs.h >>conftest.$ac_ext
18055
cat >>conftest.$ac_ext <<_ACEOF
18056
/* end confdefs.h. */
18066
rm -f conftest.$ac_objext conftest$ac_exeext
18067
if { (ac_try="$ac_link"
18068
case "(($ac_try" in
18069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070
*) ac_try_echo=$ac_try;;
18072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073
(eval "$ac_link") 2>conftest.er1
18075
grep -v '^ *+' conftest.er1 >conftest.err
18077
cat conftest.err >&5
18078
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079
(exit $ac_status); } && {
18080
test -z "$ac_c_werror_flag" ||
18081
test ! -s conftest.err
18082
} && test -s conftest$ac_exeext &&
18083
$as_test_x conftest$ac_exeext; then
18085
lt_aix_libpath_sed='
18086
/Import File Strings/,/^$/ {
18092
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18093
# Check for a 64-bit object if we didn't find anything.
18094
if test -z "$aix_libpath"; then
18095
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18098
echo "$as_me: failed program was:" >&5
18099
sed 's/^/| /' conftest.$ac_ext >&5
18104
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18105
conftest$ac_exeext conftest.$ac_ext
18106
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18108
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18109
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18111
if test "$host_cpu" = ia64; then
18112
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18113
allow_undefined_flag_GCJ="-z nodefs"
18114
archive_expsym_cmds_GCJ="\$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"
18116
# Determine the default libpath from the value encoded in an empty executable.
18117
cat >conftest.$ac_ext <<_ACEOF
18120
cat confdefs.h >>conftest.$ac_ext
18121
cat >>conftest.$ac_ext <<_ACEOF
18122
/* end confdefs.h. */
18132
rm -f conftest.$ac_objext conftest$ac_exeext
18133
if { (ac_try="$ac_link"
18134
case "(($ac_try" in
18135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136
*) ac_try_echo=$ac_try;;
18138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139
(eval "$ac_link") 2>conftest.er1
18141
grep -v '^ *+' conftest.er1 >conftest.err
18143
cat conftest.err >&5
18144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145
(exit $ac_status); } && {
18146
test -z "$ac_c_werror_flag" ||
18147
test ! -s conftest.err
18148
} && test -s conftest$ac_exeext &&
18149
$as_test_x conftest$ac_exeext; then
18151
lt_aix_libpath_sed='
18152
/Import File Strings/,/^$/ {
18158
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18159
# Check for a 64-bit object if we didn't find anything.
18160
if test -z "$aix_libpath"; then
18161
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18164
echo "$as_me: failed program was:" >&5
18165
sed 's/^/| /' conftest.$ac_ext >&5
18170
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18171
conftest$ac_exeext conftest.$ac_ext
18172
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18174
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18175
# Warning - without using the other run time loading flags,
18176
# -berok will link without error, but may produce a broken library.
18177
no_undefined_flag_GCJ=' ${wl}-bernotok'
18178
allow_undefined_flag_GCJ=' ${wl}-berok'
18179
# Exported symbols can be pulled into shared objects from archives
18180
whole_archive_flag_spec_GCJ='$convenience'
18181
archive_cmds_need_lc_GCJ=yes
18182
# This is similar to how AIX traditionally builds its shared libraries.
18183
archive_expsym_cmds_GCJ="\$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'
18189
archive_cmds_GCJ='$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)'
18190
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18191
hardcode_minus_L_GCJ=yes
18192
# see comment about different semantics on the GNU ld section
18197
export_dynamic_flag_spec_GCJ=-rdynamic
18200
cygwin* | mingw* | pw32*)
18201
# When not using gcc, we currently assume that we are using
18202
# Microsoft Visual C++.
18203
# hardcode_libdir_flag_spec is actually meaningless, as there is
18204
# no search path for DLLs.
18205
hardcode_libdir_flag_spec_GCJ=' '
18206
allow_undefined_flag_GCJ=unsupported
18207
# Tell ltmain to make .lib files, not .a files.
18209
# Tell ltmain to make .dll files, not .so files.
18211
# FIXME: Setting linknames here is a bad hack.
18212
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18213
# The linker will automatically build a .lib file if we build a DLL.
18214
old_archive_From_new_cmds_GCJ='true'
18215
# FIXME: Should let the user specify the lib program.
18216
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18217
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18218
enable_shared_with_static_runtimes_GCJ=yes
18221
darwin* | rhapsody*)
18223
rhapsody* | darwin1.[012])
18224
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18227
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18228
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18230
case ${MACOSX_DEPLOYMENT_TARGET} in
18232
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18235
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18241
archive_cmds_need_lc_GCJ=no
18242
hardcode_direct_GCJ=no
18243
hardcode_automatic_GCJ=yes
18244
hardcode_shlibpath_var_GCJ=unsupported
18245
whole_archive_flag_spec_GCJ=''
18246
link_all_deplibs_GCJ=yes
18247
if test "$GCC" = yes ; then
18248
output_verbose_link_cmd='echo'
18249
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18250
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18251
archive_expsym_cmds_GCJ="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}"
18252
module_expsym_cmds_GCJ="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}"
18254
case $cc_basename in
18256
output_verbose_link_cmd='echo'
18257
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18258
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18259
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18260
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18261
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18271
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18272
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18273
hardcode_shlibpath_var_GCJ=no
18280
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18281
# support. Future versions do this automatically, but an explicit c++rt0.o
18282
# does not break anything, and helps significantly (at the cost of a little
18285
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18286
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18287
hardcode_direct_GCJ=yes
18288
hardcode_shlibpath_var_GCJ=no
18291
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18293
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18294
hardcode_direct_GCJ=yes
18295
hardcode_minus_L_GCJ=yes
18296
hardcode_shlibpath_var_GCJ=no
18299
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18300
freebsd* | dragonfly*)
18301
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18302
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18303
hardcode_direct_GCJ=yes
18304
hardcode_shlibpath_var_GCJ=no
18308
if test "$GCC" = yes; then
18309
archive_cmds_GCJ='$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'
18311
archive_cmds_GCJ='$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'
18313
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18314
hardcode_libdir_separator_GCJ=:
18315
hardcode_direct_GCJ=yes
18317
# hardcode_minus_L: Not really in the search PATH,
18318
# but as the default location of the library.
18319
hardcode_minus_L_GCJ=yes
18320
export_dynamic_flag_spec_GCJ='${wl}-E'
18324
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18325
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18327
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18329
if test "$with_gnu_ld" = no; then
18330
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18331
hardcode_libdir_separator_GCJ=:
18333
hardcode_direct_GCJ=yes
18334
export_dynamic_flag_spec_GCJ='${wl}-E'
18336
# hardcode_minus_L: Not really in the search PATH,
18337
# but as the default location of the library.
18338
hardcode_minus_L_GCJ=yes
18343
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18346
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18349
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18352
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18358
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18361
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18364
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18368
if test "$with_gnu_ld" = no; then
18369
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18370
hardcode_libdir_separator_GCJ=:
18374
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18375
hardcode_direct_GCJ=no
18376
hardcode_shlibpath_var_GCJ=no
18379
hardcode_direct_GCJ=yes
18380
export_dynamic_flag_spec_GCJ='${wl}-E'
18382
# hardcode_minus_L: Not really in the search PATH,
18383
# but as the default location of the library.
18384
hardcode_minus_L_GCJ=yes
18390
irix5* | irix6* | nonstopux*)
18391
if test "$GCC" = yes; then
18392
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18394
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18395
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18397
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18398
hardcode_libdir_separator_GCJ=:
18399
link_all_deplibs_GCJ=yes
18402
netbsd* | netbsdelf*-gnu)
18403
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18404
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18406
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18408
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18409
hardcode_direct_GCJ=yes
18410
hardcode_shlibpath_var_GCJ=no
18414
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18415
hardcode_direct_GCJ=yes
18416
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18417
hardcode_libdir_separator_GCJ=:
18418
hardcode_shlibpath_var_GCJ=no
18422
if test -f /usr/libexec/ld.so; then
18423
hardcode_direct_GCJ=yes
18424
hardcode_shlibpath_var_GCJ=no
18425
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18426
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18427
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18428
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18429
export_dynamic_flag_spec_GCJ='${wl}-E'
18432
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18433
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18434
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18437
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18438
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18448
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18449
hardcode_minus_L_GCJ=yes
18450
allow_undefined_flag_GCJ=unsupported
18451
archive_cmds_GCJ='$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'
18452
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18456
if test "$GCC" = yes; then
18457
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18458
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18460
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18461
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18463
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18464
hardcode_libdir_separator_GCJ=:
18467
osf4* | osf5*) # as osf3* with the addition of -msym flag
18468
if test "$GCC" = yes; then
18469
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18470
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18471
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18473
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18474
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18475
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18476
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18478
# Both c and cxx compiler support -rpath directly
18479
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18481
hardcode_libdir_separator_GCJ=:
18485
no_undefined_flag_GCJ=' -z text'
18486
if test "$GCC" = yes; then
18488
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18489
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18490
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18493
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18494
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18495
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18497
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18498
hardcode_shlibpath_var_GCJ=no
18500
solaris2.[0-5] | solaris2.[0-5].*) ;;
18502
# The compiler driver will combine and reorder linker options,
18503
# but understands `-z linker_flag'. GCC discards it without `$wl',
18504
# but is careful enough not to reorder.
18505
# Supported since Solaris 2.6 (maybe 2.5.1?)
18506
if test "$GCC" = yes; then
18507
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18509
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18513
link_all_deplibs_GCJ=yes
18517
if test "x$host_vendor" = xsequent; then
18518
# Use $CC to link under sequent, because it throws in some extra .o
18519
# files that make .init and .fini sections work.
18520
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18522
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18524
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18525
hardcode_direct_GCJ=yes
18526
hardcode_minus_L_GCJ=yes
18527
hardcode_shlibpath_var_GCJ=no
18531
case $host_vendor in
18533
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18534
hardcode_direct_GCJ=yes # is this really true???
18537
## LD is ld it makes a PLAMLIB
18538
## CC just makes a GrossModule.
18539
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18540
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18541
hardcode_direct_GCJ=no
18544
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18545
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18548
runpath_var='LD_RUN_PATH'
18549
hardcode_shlibpath_var_GCJ=no
18553
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18554
hardcode_shlibpath_var_GCJ=no
18555
export_dynamic_flag_spec_GCJ='-Bexport'
18559
if test -d /usr/nec; then
18560
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18561
hardcode_shlibpath_var_GCJ=no
18562
runpath_var=LD_RUN_PATH
18563
hardcode_runpath_var=yes
18568
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18569
no_undefined_flag_GCJ='${wl}-z,text'
18570
archive_cmds_need_lc_GCJ=no
18571
hardcode_shlibpath_var_GCJ=no
18572
runpath_var='LD_RUN_PATH'
18574
if test "$GCC" = yes; then
18575
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18576
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18578
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18579
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18583
sysv5* | sco3.2v5* | sco5v6*)
18584
# Note: We can NOT use -z defs as we might desire, because we do not
18585
# link with -lc, and that would cause any symbols used from libc to
18586
# always be unresolved, which means just about no library would
18587
# ever link correctly. If we're not using GNU ld we use -z text
18588
# though, which does catch some bad symbols but isn't as heavy-handed
18590
no_undefined_flag_GCJ='${wl}-z,text'
18591
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18592
archive_cmds_need_lc_GCJ=no
18593
hardcode_shlibpath_var_GCJ=no
18594
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18595
hardcode_libdir_separator_GCJ=':'
18596
link_all_deplibs_GCJ=yes
18597
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18598
runpath_var='LD_RUN_PATH'
18600
if test "$GCC" = yes; then
18601
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18602
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18604
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18605
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18610
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18611
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18612
hardcode_shlibpath_var_GCJ=no
18621
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18622
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18623
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18626
# Do we need to explicitly link libc?
18628
case "x$archive_cmds_need_lc_GCJ" in
18630
# Assume -lc should be added
18631
archive_cmds_need_lc_GCJ=yes
18633
if test "$enable_shared" = yes && test "$GCC" = yes; then
18634
case $archive_cmds_GCJ in
18636
# FIXME: we may have to deal with multi-command sequences.
18639
# Test whether the compiler implicitly links with -lc since on some
18640
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18641
# to ld, don't add -lc before -lgcc.
18642
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18643
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18645
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18647
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648
(eval $ac_compile) 2>&5
18650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651
(exit $ac_status); } 2>conftest.err; then
18654
libobjs=conftest.$ac_objext
18656
wl=$lt_prog_compiler_wl_GCJ
18657
pic_flag=$lt_prog_compiler_pic_GCJ
18663
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18664
allow_undefined_flag_GCJ=
18665
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18666
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669
(exit $ac_status); }
18671
archive_cmds_need_lc_GCJ=no
18673
archive_cmds_need_lc_GCJ=yes
18675
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18677
cat conftest.err 1>&5
18680
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18681
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18688
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18689
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18690
library_names_spec=
18691
libname_spec='lib$name'
18695
postuninstall_cmds=
18699
shlibpath_overrides_runpath=unknown
18701
dynamic_linker="$host_os ld.so"
18702
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18704
need_lib_prefix=unknown
18705
hardcode_into_libs=no
18707
# when you set need_version to no, make sure it does not cause -set_version
18708
# flags to be left without arguments
18709
need_version=unknown
18714
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18715
shlibpath_var=LIBPATH
18717
# AIX 3 has no versioning support, so we append a major version to the name.
18718
soname_spec='${libname}${release}${shared_ext}$major'
18725
hardcode_into_libs=yes
18726
if test "$host_cpu" = ia64; then
18727
# AIX 5 supports IA64
18728
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18729
shlibpath_var=LD_LIBRARY_PATH
18731
# With GCC up to 2.95.x, collect2 would create an import file
18732
# for dependence libraries. The import file would start with
18733
# the line `#! .'. This would cause the generated library to
18734
# depend on `.', always an invalid library. This was fixed in
18735
# development snapshots of GCC prior to 3.0.
18737
aix4 | aix4.[01] | aix4.[01].*)
18738
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18740
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18743
can_build_shared=no
18747
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18748
# soname into executable. Probably we can add versioning support to
18749
# collect2, so additional links can be useful in future.
18750
if test "$aix_use_runtimelinking" = yes; then
18751
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18752
# instead of lib<name>.a to let people know that these are not
18753
# typical AIX shared libraries.
18754
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18756
# We preserve .a as extension for shared libraries through AIX4.2
18757
# and later when we are not doing run time linking.
18758
library_names_spec='${libname}${release}.a $libname.a'
18759
soname_spec='${libname}${release}${shared_ext}$major'
18761
shlibpath_var=LIBPATH
18766
library_names_spec='$libname.ixlibrary $libname.a'
18767
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18768
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'
18772
library_names_spec='${libname}${shared_ext}'
18773
dynamic_linker="$host_os ld.so"
18774
shlibpath_var=LIBRARY_PATH
18780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781
soname_spec='${libname}${release}${shared_ext}$major'
18782
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18783
shlibpath_var=LD_LIBRARY_PATH
18784
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18785
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18786
# the default ld.so.conf also contains /usr/contrib/lib and
18787
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18788
# libtool to hard-code these into programs
18791
cygwin* | mingw* | pw32*)
18792
version_type=windows
18797
case $GCC,$host_os in
18798
yes,cygwin* | yes,mingw* | yes,pw32*)
18799
library_names_spec='$libname.dll.a'
18800
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18801
postinstall_cmds='base_file=`basename \${file}`~
18802
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18803
dldir=$destdir/`dirname \$dlpath`~
18804
test -d \$dldir || mkdir -p \$dldir~
18805
$install_prog $dir/$dlname \$dldir/$dlname~
18806
chmod a+x \$dldir/$dlname'
18807
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18808
dlpath=$dir/\$dldll~
18810
shlibpath_overrides_runpath=yes
18814
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18815
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18816
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18819
# MinGW DLLs use traditional 'lib' prefix
18820
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18821
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18822
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18823
# It is most probably a Windows format PATH printed by
18824
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18825
# path with ; separators, and with drive letters. We can handle the
18826
# drive letters (cygwin fileutils understands them), so leave them,
18827
# especially as we might pass files found there to a mingw objdump,
18828
# which wouldn't understand a cygwinified path. Ahh.
18829
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18831
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18835
# pw32 DLLs use 'pw' prefix rather than 'lib'
18836
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18842
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18845
dynamic_linker='Win32 ld.exe'
18846
# FIXME: first we should search . and the directory the executable is in
18850
darwin* | rhapsody*)
18851
dynamic_linker="$host_os dyld"
18852
version_type=darwin
18855
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18856
soname_spec='${libname}${release}${major}$shared_ext'
18857
shlibpath_overrides_runpath=yes
18858
shlibpath_var=DYLD_LIBRARY_PATH
18859
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18861
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18869
soname_spec='${libname}${release}${shared_ext}$major'
18870
shlibpath_var=LD_LIBRARY_PATH
18877
freebsd* | dragonfly*)
18878
# DragonFly does not have aout. When/if they implement a new
18879
# versioning mechanism, adjust this.
18880
if test -x /usr/bin/objformat; then
18881
objformat=`/usr/bin/objformat`
18884
freebsd[123]*) objformat=aout ;;
18885
*) objformat=elf ;;
18888
version_type=freebsd-$objformat
18889
case $version_type in
18891
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18896
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18900
shlibpath_var=LD_LIBRARY_PATH
18903
shlibpath_overrides_runpath=yes
18905
freebsd3.[01]* | freebsdelf3.[01]*)
18906
shlibpath_overrides_runpath=yes
18907
hardcode_into_libs=yes
18909
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18910
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18911
shlibpath_overrides_runpath=no
18912
hardcode_into_libs=yes
18914
*) # from 4.6 on, and DragonFly
18915
shlibpath_overrides_runpath=yes
18916
hardcode_into_libs=yes
18925
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18926
soname_spec='${libname}${release}${shared_ext}$major'
18927
shlibpath_var=LD_LIBRARY_PATH
18928
hardcode_into_libs=yes
18931
hpux9* | hpux10* | hpux11*)
18932
# Give a soname corresponding to the major version so that dld.sl refuses to
18933
# link against other versions.
18940
hardcode_into_libs=yes
18941
dynamic_linker="$host_os dld.so"
18942
shlibpath_var=LD_LIBRARY_PATH
18943
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18945
soname_spec='${libname}${release}${shared_ext}$major'
18946
if test "X$HPUX_IA64_MODE" = X32; then
18947
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18949
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18951
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18955
hardcode_into_libs=yes
18956
dynamic_linker="$host_os dld.sl"
18957
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18958
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18959
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18960
soname_spec='${libname}${release}${shared_ext}$major'
18961
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18962
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18966
dynamic_linker="$host_os dld.sl"
18967
shlibpath_var=SHLIB_PATH
18968
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970
soname_spec='${libname}${release}${shared_ext}$major'
18973
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18974
postinstall_cmds='chmod 555 $lib'
18981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18982
soname_spec='${libname}${release}${shared_ext}$major'
18983
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18984
shlibpath_var=LD_LIBRARY_PATH
18985
shlibpath_overrides_runpath=no
18986
hardcode_into_libs=yes
18989
irix5* | irix6* | nonstopux*)
18991
nonstopux*) version_type=nonstopux ;;
18993
if test "$lt_cv_prog_gnu_ld" = yes; then
19001
soname_spec='${libname}${release}${shared_ext}$major'
19002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19004
irix5* | nonstopux*)
19005
libsuff= shlibsuff=
19008
case $LD in # libtool.m4 will add one of these switches to LD
19009
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19010
libsuff= shlibsuff= libmagic=32-bit;;
19011
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19012
libsuff=32 shlibsuff=N32 libmagic=N32;;
19013
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19014
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19015
*) libsuff= shlibsuff= libmagic=never-match;;
19019
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19020
shlibpath_overrides_runpath=no
19021
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19022
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19023
hardcode_into_libs=yes
19026
# No shared lib support for Linux oldld, aout, or coff.
19027
linux*oldld* | linux*aout* | linux*coff*)
19031
# This must be Linux ELF.
19032
linux* | k*bsd*-gnu)
19036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19037
soname_spec='${libname}${release}${shared_ext}$major'
19038
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19039
shlibpath_var=LD_LIBRARY_PATH
19040
shlibpath_overrides_runpath=no
19041
# This implies no fast_install, which is unacceptable.
19042
# Some rework will be needed to allow for fast_install
19043
# before this can be enabled.
19044
hardcode_into_libs=yes
19046
# Append ld.so.conf contents to the search path
19047
if test -f /etc/ld.so.conf; then
19048
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' ' '`
19049
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19052
# We used to test for /lib/ld.so.1 and disable shared libraries on
19053
# powerpc, because MkLinux only supported shared libraries with the
19054
# GNU dynamic linker. Since this was broken with cross compilers,
19055
# most powerpc-linux boxes support dynamic linking these days and
19056
# people can always --disable-shared, the test was removed, and we
19057
# assume the GNU/Linux dynamic linker is in use.
19058
dynamic_linker='GNU/Linux ld.so'
19065
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19066
soname_spec='${libname}${release}${shared_ext}$major'
19067
shlibpath_var=LD_LIBRARY_PATH
19068
shlibpath_overrides_runpath=no
19069
hardcode_into_libs=yes
19070
dynamic_linker='NetBSD ld.elf_so'
19077
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19078
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19079
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19080
dynamic_linker='NetBSD (a.out) ld.so'
19082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19083
soname_spec='${libname}${release}${shared_ext}$major'
19084
dynamic_linker='NetBSD ld.elf_so'
19086
shlibpath_var=LD_LIBRARY_PATH
19087
shlibpath_overrides_runpath=yes
19088
hardcode_into_libs=yes
19093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19094
shlibpath_var=LD_LIBRARY_PATH
19095
shlibpath_overrides_runpath=yes
19102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19103
soname_spec='${libname}${release}${shared_ext}$major'
19104
shlibpath_var=LD_LIBRARY_PATH
19105
shlibpath_overrides_runpath=yes
19110
sys_lib_dlsearch_path_spec="/usr/lib"
19112
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19114
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19115
*) need_version=no ;;
19117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19118
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19119
shlibpath_var=LD_LIBRARY_PATH
19120
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19122
openbsd2.[89] | openbsd2.[89].*)
19123
shlibpath_overrides_runpath=no
19126
shlibpath_overrides_runpath=yes
19130
shlibpath_overrides_runpath=yes
19135
libname_spec='$name'
19138
library_names_spec='$libname${shared_ext} $libname.a'
19139
dynamic_linker='OS/2 ld.exe'
19140
shlibpath_var=LIBPATH
19143
osf3* | osf4* | osf5*)
19147
soname_spec='${libname}${release}${shared_ext}$major'
19148
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149
shlibpath_var=LD_LIBRARY_PATH
19150
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19151
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19163
soname_spec='${libname}${release}${shared_ext}$major'
19164
shlibpath_var=LD_LIBRARY_PATH
19165
shlibpath_overrides_runpath=yes
19166
hardcode_into_libs=yes
19167
# ldd complains unless libraries are executable
19168
postinstall_cmds='chmod +x $lib'
19173
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19174
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19175
shlibpath_var=LD_LIBRARY_PATH
19176
shlibpath_overrides_runpath=yes
19177
if test "$with_gnu_ld" = yes; then
19185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19186
soname_spec='${libname}${release}${shared_ext}$major'
19187
shlibpath_var=LD_LIBRARY_PATH
19188
case $host_vendor in
19190
shlibpath_overrides_runpath=no
19192
export_dynamic_flag_spec='${wl}-Blargedynsym'
19193
runpath_var=LD_RUN_PATH
19201
shlibpath_overrides_runpath=no
19202
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19208
if test -d /usr/nec ;then
19210
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19211
soname_spec='$libname${shared_ext}.$major'
19212
shlibpath_var=LD_LIBRARY_PATH
19216
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19217
version_type=freebsd-elf
19220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19221
soname_spec='${libname}${release}${shared_ext}$major'
19222
shlibpath_var=LD_LIBRARY_PATH
19223
hardcode_into_libs=yes
19224
if test "$with_gnu_ld" = yes; then
19225
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19226
shlibpath_overrides_runpath=no
19228
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19229
shlibpath_overrides_runpath=yes
19232
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19236
sys_lib_dlsearch_path_spec='/usr/lib'
19241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19242
soname_spec='${libname}${release}${shared_ext}$major'
19243
shlibpath_var=LD_LIBRARY_PATH
19250
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19251
echo "${ECHO_T}$dynamic_linker" >&6; }
19252
test "$dynamic_linker" = no && can_build_shared=no
19254
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19255
echo $ECHO_N "(cached) $ECHO_C" >&6
19257
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19260
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19261
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19262
echo $ECHO_N "(cached) $ECHO_C" >&6
19264
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19267
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19269
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19270
if test "$GCC" = yes; then
19271
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19274
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19275
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19276
hardcode_action_GCJ=
19277
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19278
test -n "$runpath_var_GCJ" || \
19279
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19281
# We can hardcode non-existant directories.
19282
if test "$hardcode_direct_GCJ" != no &&
19283
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19284
# have to relink, otherwise we might link with an installed library
19285
# when we should be linking with a yet-to-be-installed one
19286
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19287
test "$hardcode_minus_L_GCJ" != no; then
19288
# Linking always hardcodes the temporary library directory.
19289
hardcode_action_GCJ=relink
19291
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19292
hardcode_action_GCJ=immediate
19295
# We cannot hardcode anything, or else we can only hardcode existing
19297
hardcode_action_GCJ=unsupported
19299
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19300
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19302
if test "$hardcode_action_GCJ" = relink; then
19303
# Fast installation is not supported
19304
enable_fast_install=no
19305
elif test "$shlibpath_overrides_runpath" = yes ||
19306
test "$enable_shared" = no; then
19307
# Fast installation is not necessary
19308
enable_fast_install=needless
19312
# The else clause should only fire when bootstrapping the
19313
# libtool distribution, otherwise you forgot to ship ltmain.sh
19314
# with your package, and you will get complaints that there are
19315
# no rules to generate ltmain.sh.
19316
if test -f "$ltmain"; then
19317
# See if we are running on zsh, and set the options which allow our commands through
19318
# without removal of \ escapes.
19319
if test -n "${ZSH_VERSION+set}" ; then
19320
setopt NO_GLOB_SUBST
19322
# Now quote all the things that may contain metacharacters while being
19323
# careful not to overquote the AC_SUBSTed values. We take copies of the
19324
# variables and quote the copies for generation of the libtool script.
19325
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19327
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19328
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19329
deplibs_check_method reload_flag reload_cmds need_locks \
19330
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19331
lt_cv_sys_global_symbol_to_c_name_address \
19332
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19333
old_postinstall_cmds old_postuninstall_cmds \
19337
lt_prog_compiler_wl_GCJ \
19338
lt_prog_compiler_pic_GCJ \
19339
lt_prog_compiler_static_GCJ \
19340
lt_prog_compiler_no_builtin_flag_GCJ \
19341
export_dynamic_flag_spec_GCJ \
19342
thread_safe_flag_spec_GCJ \
19343
whole_archive_flag_spec_GCJ \
19344
enable_shared_with_static_runtimes_GCJ \
19345
old_archive_cmds_GCJ \
19346
old_archive_from_new_cmds_GCJ \
19347
predep_objects_GCJ \
19348
postdep_objects_GCJ \
19351
compiler_lib_search_path_GCJ \
19352
compiler_lib_search_dirs_GCJ \
19354
archive_expsym_cmds_GCJ \
19355
postinstall_cmds_GCJ \
19356
postuninstall_cmds_GCJ \
19357
old_archive_from_expsyms_cmds_GCJ \
19358
allow_undefined_flag_GCJ \
19359
no_undefined_flag_GCJ \
19360
export_symbols_cmds_GCJ \
19361
hardcode_libdir_flag_spec_GCJ \
19362
hardcode_libdir_flag_spec_ld_GCJ \
19363
hardcode_libdir_separator_GCJ \
19364
hardcode_automatic_GCJ \
19366
module_expsym_cmds_GCJ \
19367
lt_cv_prog_compiler_c_o_GCJ \
19368
fix_srcfile_path_GCJ \
19369
exclude_expsyms_GCJ \
19370
include_expsyms_GCJ; do
19373
old_archive_cmds_GCJ | \
19374
old_archive_from_new_cmds_GCJ | \
19375
archive_cmds_GCJ | \
19376
archive_expsym_cmds_GCJ | \
19377
module_cmds_GCJ | \
19378
module_expsym_cmds_GCJ | \
19379
old_archive_from_expsyms_cmds_GCJ | \
19380
export_symbols_cmds_GCJ | \
19381
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19382
postinstall_cmds | postuninstall_cmds | \
19383
old_postinstall_cmds | old_postuninstall_cmds | \
19384
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19385
# Double-quote double-evaled strings.
19386
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19389
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19395
*'\$0 --fallback-echo"')
19396
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19402
cat <<__EOF__ >> "$cfgfile"
19403
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19405
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19407
# Shell to use when invoking shell scripts.
19410
# Whether or not to build shared libraries.
19411
build_libtool_libs=$enable_shared
19413
# Whether or not to build static libraries.
19414
build_old_libs=$enable_static
19416
# Whether or not to add -lc for building shared libraries.
19417
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19419
# Whether or not to disallow shared libs when runtime libs are static
19420
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19422
# Whether or not to optimize for fast installation.
19423
fast_install=$enable_fast_install
19426
host_alias=$host_alias
19430
# The build system.
19431
build_alias=$build_alias
19435
# An echo program that does not interpret backslashes.
19440
AR_FLAGS=$lt_AR_FLAGS
19445
# LTCC compiler flags.
19446
LTCFLAGS=$lt_LTCFLAGS
19448
# A language-specific compiler.
19449
CC=$lt_compiler_GCJ
19451
# Is the compiler the GNU C compiler?
19457
# The linker used to build libraries.
19460
# Whether we need hard or soft links.
19463
# A BSD-compatible nm program.
19466
# A symbol stripping program
19469
# Used to examine libraries when file_magic_cmd begins "file"
19470
MAGIC_CMD=$MAGIC_CMD
19472
# Used on cygwin: DLL creation program.
19475
# Used on cygwin: object dumper.
19478
# Used on cygwin: assembler.
19481
# The name of the directory that contains temporary libtool files.
19484
# How to create reloadable object files.
19485
reload_flag=$lt_reload_flag
19486
reload_cmds=$lt_reload_cmds
19488
# How to pass a linker flag through the compiler.
19489
wl=$lt_lt_prog_compiler_wl_GCJ
19491
# Object file suffix (normally "o").
19492
objext="$ac_objext"
19494
# Old archive suffix (normally "a").
19497
# Shared library suffix (normally ".so").
19498
shrext_cmds='$shrext_cmds'
19500
# Executable file suffix (normally "").
19503
# Additional compiler flags for building library objects.
19504
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19507
# What is the maximum length of a command?
19508
max_cmd_len=$lt_cv_sys_max_cmd_len
19510
# Does compiler simultaneously support -c and -o options?
19511
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19513
# Must we lock files when doing compilation?
19514
need_locks=$lt_need_locks
19516
# Do we need the lib prefix for modules?
19517
need_lib_prefix=$need_lib_prefix
19519
# Do we need a version for libraries?
19520
need_version=$need_version
19522
# Whether dlopen is supported.
19523
dlopen_support=$enable_dlopen
19525
# Whether dlopen of programs is supported.
19526
dlopen_self=$enable_dlopen_self
19528
# Whether dlopen of statically linked programs is supported.
19529
dlopen_self_static=$enable_dlopen_self_static
19531
# Compiler flag to prevent dynamic linking.
19532
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19534
# Compiler flag to turn off builtin functions.
19535
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19537
# Compiler flag to allow reflexive dlopens.
19538
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19540
# Compiler flag to generate shared objects directly from archives.
19541
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19543
# Compiler flag to generate thread-safe objects.
19544
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19546
# Library versioning type.
19547
version_type=$version_type
19549
# Format of library name prefix.
19550
libname_spec=$lt_libname_spec
19552
# List of archive names. First name is the real one, the rest are links.
19553
# The last name is the one that the linker finds with -lNAME.
19554
library_names_spec=$lt_library_names_spec
19556
# The coded name of the library, if different from the real name.
19557
soname_spec=$lt_soname_spec
19559
# Commands used to build and install an old-style archive.
19561
old_archive_cmds=$lt_old_archive_cmds_GCJ
19562
old_postinstall_cmds=$lt_old_postinstall_cmds
19563
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19565
# Create an old-style archive from a shared archive.
19566
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19568
# Create a temporary old-style archive to link instead of a shared archive.
19569
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19571
# Commands used to build and install a shared archive.
19572
archive_cmds=$lt_archive_cmds_GCJ
19573
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19574
postinstall_cmds=$lt_postinstall_cmds
19575
postuninstall_cmds=$lt_postuninstall_cmds
19577
# Commands used to build a loadable module (assumed same as above if empty)
19578
module_cmds=$lt_module_cmds_GCJ
19579
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19581
# Commands to strip libraries.
19582
old_striplib=$lt_old_striplib
19583
striplib=$lt_striplib
19585
# Dependencies to place before the objects being linked to create a
19587
predep_objects=$lt_predep_objects_GCJ
19589
# Dependencies to place after the objects being linked to create a
19591
postdep_objects=$lt_postdep_objects_GCJ
19593
# Dependencies to place before the objects being linked to create a
19595
predeps=$lt_predeps_GCJ
19597
# Dependencies to place after the objects being linked to create a
19599
postdeps=$lt_postdeps_GCJ
19601
# The directories searched by this compiler when creating a shared
19603
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19605
# The library search path used internally by the compiler when linking
19606
# a shared library.
19607
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19609
# Method to check whether dependent libraries are shared objects.
19610
deplibs_check_method=$lt_deplibs_check_method
19612
# Command to use when deplibs_check_method == file_magic.
19613
file_magic_cmd=$lt_file_magic_cmd
19615
# Flag that allows shared libraries with undefined symbols to be built.
19616
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19618
# Flag that forces no undefined symbols.
19619
no_undefined_flag=$lt_no_undefined_flag_GCJ
19621
# Commands used to finish a libtool library installation in a directory.
19622
finish_cmds=$lt_finish_cmds
19624
# Same as above, but a single script fragment to be evaled but not shown.
19625
finish_eval=$lt_finish_eval
19627
# Take the output of nm and produce a listing of raw symbols and C names.
19628
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19630
# Transform the output of nm in a proper C declaration
19631
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19633
# Transform the output of nm in a C name address pair
19634
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19636
# This is the shared library runtime path variable.
19637
runpath_var=$runpath_var
19639
# This is the shared library path variable.
19640
shlibpath_var=$shlibpath_var
19642
# Is shlibpath searched before the hard-coded library search path?
19643
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19645
# How to hardcode a shared library path into an executable.
19646
hardcode_action=$hardcode_action_GCJ
19648
# Whether we should hardcode library paths into libraries.
19649
hardcode_into_libs=$hardcode_into_libs
19651
# Flag to hardcode \$libdir into a binary during linking.
19652
# This must work even if \$libdir does not exist.
19653
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19655
# If ld is used when linking, flag to hardcode \$libdir into
19656
# a binary during linking. This must work even if \$libdir does
19658
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19660
# Whether we need a single -rpath flag with a separated argument.
19661
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19663
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19664
# resulting binary.
19665
hardcode_direct=$hardcode_direct_GCJ
19667
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19668
# resulting binary.
19669
hardcode_minus_L=$hardcode_minus_L_GCJ
19671
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19672
# the resulting binary.
19673
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19675
# Set to yes if building a shared library automatically hardcodes DIR into the library
19676
# and all subsequent libraries and executables linked against it.
19677
hardcode_automatic=$hardcode_automatic_GCJ
19679
# Variables whose values should be saved in libtool wrapper scripts and
19680
# restored at relink time.
19681
variables_saved_for_relink="$variables_saved_for_relink"
19683
# Whether libtool must link a program against all its dependency libraries.
19684
link_all_deplibs=$link_all_deplibs_GCJ
19686
# Compile-time system search path for libraries
19687
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19689
# Run-time system search path for libraries
19690
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19692
# Fix the shell variable \$srcfile for the compiler.
19693
fix_srcfile_path=$lt_fix_srcfile_path
19695
# Set to yes if exported symbols are required.
19696
always_export_symbols=$always_export_symbols_GCJ
19698
# The commands to list exported symbols.
19699
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19701
# The commands to extract the exported symbol list from a shared archive.
19702
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19704
# Symbols that should not be listed in the preloaded symbols.
19705
exclude_expsyms=$lt_exclude_expsyms_GCJ
19707
# Symbols that must always be exported.
19708
include_expsyms=$lt_include_expsyms_GCJ
19710
# ### END LIBTOOL TAG CONFIG: $tagname
19716
# If there is no Makefile yet, we rely on a make rule to execute
19717
# `config.status --recheck' to rerun these tests and create the
19718
# libtool script then.
19719
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19720
if test -f "$ltmain_in"; then
19721
test -f Makefile && make "$ltmain"
19727
ac_cpp='$CPP $CPPFLAGS'
19728
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19742
# Source file extension for RC test sources.
19745
# Object file extension for compiled RC test sources.
19749
# Code to be used in simple compile tests
19750
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19752
# Code to be used in simple link tests
19753
lt_simple_link_test_code="$lt_simple_compile_test_code"
19755
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19757
# If no C compiler was specified, use CC.
19760
# If no C compiler flags were specified, use CFLAGS.
19761
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19763
# Allow CC to be a program name with arguments.
19767
# save warnings/boilerplate of simple test code
19768
ac_outfile=conftest.$ac_objext
19769
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19770
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19771
_lt_compiler_boilerplate=`cat conftest.err`
19774
ac_outfile=conftest.$ac_objext
19775
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19776
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19777
_lt_linker_boilerplate=`cat conftest.err`
19781
# Allow CC to be a program name with arguments.
19786
for cc_temp in $compiler""; do
19788
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19789
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19794
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19796
lt_cv_prog_compiler_c_o_RC=yes
19798
# The else clause should only fire when bootstrapping the
19799
# libtool distribution, otherwise you forgot to ship ltmain.sh
19800
# with your package, and you will get complaints that there are
19801
# no rules to generate ltmain.sh.
19802
if test -f "$ltmain"; then
19803
# See if we are running on zsh, and set the options which allow our commands through
19804
# without removal of \ escapes.
19805
if test -n "${ZSH_VERSION+set}" ; then
19806
setopt NO_GLOB_SUBST
19808
# Now quote all the things that may contain metacharacters while being
19809
# careful not to overquote the AC_SUBSTed values. We take copies of the
19810
# variables and quote the copies for generation of the libtool script.
19811
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19813
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19814
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19815
deplibs_check_method reload_flag reload_cmds need_locks \
19816
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19817
lt_cv_sys_global_symbol_to_c_name_address \
19818
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19819
old_postinstall_cmds old_postuninstall_cmds \
19823
lt_prog_compiler_wl_RC \
19824
lt_prog_compiler_pic_RC \
19825
lt_prog_compiler_static_RC \
19826
lt_prog_compiler_no_builtin_flag_RC \
19827
export_dynamic_flag_spec_RC \
19828
thread_safe_flag_spec_RC \
19829
whole_archive_flag_spec_RC \
19830
enable_shared_with_static_runtimes_RC \
19831
old_archive_cmds_RC \
19832
old_archive_from_new_cmds_RC \
19833
predep_objects_RC \
19834
postdep_objects_RC \
19837
compiler_lib_search_path_RC \
19838
compiler_lib_search_dirs_RC \
19840
archive_expsym_cmds_RC \
19841
postinstall_cmds_RC \
19842
postuninstall_cmds_RC \
19843
old_archive_from_expsyms_cmds_RC \
19844
allow_undefined_flag_RC \
19845
no_undefined_flag_RC \
19846
export_symbols_cmds_RC \
19847
hardcode_libdir_flag_spec_RC \
19848
hardcode_libdir_flag_spec_ld_RC \
19849
hardcode_libdir_separator_RC \
19850
hardcode_automatic_RC \
19852
module_expsym_cmds_RC \
19853
lt_cv_prog_compiler_c_o_RC \
19854
fix_srcfile_path_RC \
19855
exclude_expsyms_RC \
19856
include_expsyms_RC; do
19859
old_archive_cmds_RC | \
19860
old_archive_from_new_cmds_RC | \
19861
archive_cmds_RC | \
19862
archive_expsym_cmds_RC | \
19864
module_expsym_cmds_RC | \
19865
old_archive_from_expsyms_cmds_RC | \
19866
export_symbols_cmds_RC | \
19867
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19868
postinstall_cmds | postuninstall_cmds | \
19869
old_postinstall_cmds | old_postuninstall_cmds | \
19870
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19871
# Double-quote double-evaled strings.
19872
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19875
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19881
*'\$0 --fallback-echo"')
19882
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19888
cat <<__EOF__ >> "$cfgfile"
19889
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19891
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19893
# Shell to use when invoking shell scripts.
19896
# Whether or not to build shared libraries.
19897
build_libtool_libs=$enable_shared
19899
# Whether or not to build static libraries.
19900
build_old_libs=$enable_static
19902
# Whether or not to add -lc for building shared libraries.
19903
build_libtool_need_lc=$archive_cmds_need_lc_RC
19905
# Whether or not to disallow shared libs when runtime libs are static
19906
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19908
# Whether or not to optimize for fast installation.
19909
fast_install=$enable_fast_install
19912
host_alias=$host_alias
19916
# The build system.
19917
build_alias=$build_alias
19921
# An echo program that does not interpret backslashes.
19926
AR_FLAGS=$lt_AR_FLAGS
19931
# LTCC compiler flags.
19932
LTCFLAGS=$lt_LTCFLAGS
19934
# A language-specific compiler.
19937
# Is the compiler the GNU C compiler?
19943
# The linker used to build libraries.
19946
# Whether we need hard or soft links.
19949
# A BSD-compatible nm program.
19952
# A symbol stripping program
19955
# Used to examine libraries when file_magic_cmd begins "file"
19956
MAGIC_CMD=$MAGIC_CMD
19958
# Used on cygwin: DLL creation program.
19961
# Used on cygwin: object dumper.
19964
# Used on cygwin: assembler.
19967
# The name of the directory that contains temporary libtool files.
19970
# How to create reloadable object files.
19971
reload_flag=$lt_reload_flag
19972
reload_cmds=$lt_reload_cmds
19974
# How to pass a linker flag through the compiler.
19975
wl=$lt_lt_prog_compiler_wl_RC
19977
# Object file suffix (normally "o").
19978
objext="$ac_objext"
19980
# Old archive suffix (normally "a").
19983
# Shared library suffix (normally ".so").
19984
shrext_cmds='$shrext_cmds'
19986
# Executable file suffix (normally "").
19989
# Additional compiler flags for building library objects.
19990
pic_flag=$lt_lt_prog_compiler_pic_RC
19993
# What is the maximum length of a command?
19994
max_cmd_len=$lt_cv_sys_max_cmd_len
19996
# Does compiler simultaneously support -c and -o options?
19997
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19999
# Must we lock files when doing compilation?
20000
need_locks=$lt_need_locks
20002
# Do we need the lib prefix for modules?
20003
need_lib_prefix=$need_lib_prefix
20005
# Do we need a version for libraries?
20006
need_version=$need_version
20008
# Whether dlopen is supported.
20009
dlopen_support=$enable_dlopen
20011
# Whether dlopen of programs is supported.
20012
dlopen_self=$enable_dlopen_self
20014
# Whether dlopen of statically linked programs is supported.
20015
dlopen_self_static=$enable_dlopen_self_static
20017
# Compiler flag to prevent dynamic linking.
20018
link_static_flag=$lt_lt_prog_compiler_static_RC
20020
# Compiler flag to turn off builtin functions.
20021
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20023
# Compiler flag to allow reflexive dlopens.
20024
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20026
# Compiler flag to generate shared objects directly from archives.
20027
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20029
# Compiler flag to generate thread-safe objects.
20030
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20032
# Library versioning type.
20033
version_type=$version_type
20035
# Format of library name prefix.
20036
libname_spec=$lt_libname_spec
20038
# List of archive names. First name is the real one, the rest are links.
20039
# The last name is the one that the linker finds with -lNAME.
20040
library_names_spec=$lt_library_names_spec
20042
# The coded name of the library, if different from the real name.
20043
soname_spec=$lt_soname_spec
20045
# Commands used to build and install an old-style archive.
20047
old_archive_cmds=$lt_old_archive_cmds_RC
20048
old_postinstall_cmds=$lt_old_postinstall_cmds
20049
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20051
# Create an old-style archive from a shared archive.
20052
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20054
# Create a temporary old-style archive to link instead of a shared archive.
20055
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20057
# Commands used to build and install a shared archive.
20058
archive_cmds=$lt_archive_cmds_RC
20059
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20060
postinstall_cmds=$lt_postinstall_cmds
20061
postuninstall_cmds=$lt_postuninstall_cmds
20063
# Commands used to build a loadable module (assumed same as above if empty)
20064
module_cmds=$lt_module_cmds_RC
20065
module_expsym_cmds=$lt_module_expsym_cmds_RC
20067
# Commands to strip libraries.
20068
old_striplib=$lt_old_striplib
20069
striplib=$lt_striplib
20071
# Dependencies to place before the objects being linked to create a
20073
predep_objects=$lt_predep_objects_RC
20075
# Dependencies to place after the objects being linked to create a
20077
postdep_objects=$lt_postdep_objects_RC
20079
# Dependencies to place before the objects being linked to create a
20081
predeps=$lt_predeps_RC
20083
# Dependencies to place after the objects being linked to create a
20085
postdeps=$lt_postdeps_RC
20087
# The directories searched by this compiler when creating a shared
20089
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20091
# The library search path used internally by the compiler when linking
20092
# a shared library.
20093
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20095
# Method to check whether dependent libraries are shared objects.
20096
deplibs_check_method=$lt_deplibs_check_method
20098
# Command to use when deplibs_check_method == file_magic.
20099
file_magic_cmd=$lt_file_magic_cmd
20101
# Flag that allows shared libraries with undefined symbols to be built.
20102
allow_undefined_flag=$lt_allow_undefined_flag_RC
20104
# Flag that forces no undefined symbols.
20105
no_undefined_flag=$lt_no_undefined_flag_RC
20107
# Commands used to finish a libtool library installation in a directory.
20108
finish_cmds=$lt_finish_cmds
20110
# Same as above, but a single script fragment to be evaled but not shown.
20111
finish_eval=$lt_finish_eval
20113
# Take the output of nm and produce a listing of raw symbols and C names.
20114
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20116
# Transform the output of nm in a proper C declaration
20117
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20119
# Transform the output of nm in a C name address pair
20120
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20122
# This is the shared library runtime path variable.
20123
runpath_var=$runpath_var
20125
# This is the shared library path variable.
20126
shlibpath_var=$shlibpath_var
20128
# Is shlibpath searched before the hard-coded library search path?
20129
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20131
# How to hardcode a shared library path into an executable.
20132
hardcode_action=$hardcode_action_RC
20134
# Whether we should hardcode library paths into libraries.
20135
hardcode_into_libs=$hardcode_into_libs
20137
# Flag to hardcode \$libdir into a binary during linking.
20138
# This must work even if \$libdir does not exist.
20139
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20141
# If ld is used when linking, flag to hardcode \$libdir into
20142
# a binary during linking. This must work even if \$libdir does
20144
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20146
# Whether we need a single -rpath flag with a separated argument.
20147
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20149
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20150
# resulting binary.
20151
hardcode_direct=$hardcode_direct_RC
20153
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20154
# resulting binary.
20155
hardcode_minus_L=$hardcode_minus_L_RC
20157
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20158
# the resulting binary.
20159
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20161
# Set to yes if building a shared library automatically hardcodes DIR into the library
20162
# and all subsequent libraries and executables linked against it.
20163
hardcode_automatic=$hardcode_automatic_RC
20165
# Variables whose values should be saved in libtool wrapper scripts and
20166
# restored at relink time.
20167
variables_saved_for_relink="$variables_saved_for_relink"
20169
# Whether libtool must link a program against all its dependency libraries.
20170
link_all_deplibs=$link_all_deplibs_RC
20172
# Compile-time system search path for libraries
20173
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20175
# Run-time system search path for libraries
20176
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20178
# Fix the shell variable \$srcfile for the compiler.
20179
fix_srcfile_path=$lt_fix_srcfile_path
20181
# Set to yes if exported symbols are required.
20182
always_export_symbols=$always_export_symbols_RC
20184
# The commands to list exported symbols.
20185
export_symbols_cmds=$lt_export_symbols_cmds_RC
20187
# The commands to extract the exported symbol list from a shared archive.
20188
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20190
# Symbols that should not be listed in the preloaded symbols.
20191
exclude_expsyms=$lt_exclude_expsyms_RC
20193
# Symbols that must always be exported.
20194
include_expsyms=$lt_include_expsyms_RC
20196
# ### END LIBTOOL TAG CONFIG: $tagname
20202
# If there is no Makefile yet, we rely on a make rule to execute
20203
# `config.status --recheck' to rerun these tests and create the
20204
# libtool script then.
20205
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20206
if test -f "$ltmain_in"; then
20207
test -f Makefile && make "$ltmain"
20213
ac_cpp='$CPP $CPPFLAGS'
20214
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20215
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20216
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20223
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20224
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20225
{ (exit 1); exit 1; }; }
20229
# Append the new tag name to the list of available tags.
20230
if test -n "$tagname" ; then
20231
available_tags="$available_tags $tagname"
20237
# Now substitute the updated list of available tags.
20238
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20239
mv "${ofile}T" "$ofile"
20243
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20244
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20245
{ (exit 1); exit 1; }; }
20251
# This can be used to rebuild libtool when needed
20252
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20254
# Always use our own libtool.
20255
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20257
# Prevent multiple expansion
20279
ac_cpp='$CPP $CPPFLAGS'
20280
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20283
if test -n "$ac_tool_prefix"; then
20284
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20285
set dummy ${ac_tool_prefix}gcc; ac_word=$2
20286
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20288
if test "${ac_cv_prog_CC+set}" = set; then
20289
echo $ECHO_N "(cached) $ECHO_C" >&6
20291
if test -n "$CC"; then
20292
ac_cv_prog_CC="$CC" # Let the user override the test.
20294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20295
for as_dir in $PATH
20298
test -z "$as_dir" && as_dir=.
20299
for ac_exec_ext in '' $ac_executable_extensions; do
20300
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20301
ac_cv_prog_CC="${ac_tool_prefix}gcc"
20302
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20312
if test -n "$CC"; then
20313
{ echo "$as_me:$LINENO: result: $CC" >&5
20314
echo "${ECHO_T}$CC" >&6; }
20316
{ echo "$as_me:$LINENO: result: no" >&5
20317
echo "${ECHO_T}no" >&6; }
20322
if test -z "$ac_cv_prog_CC"; then
20324
# Extract the first word of "gcc", so it can be a program name with args.
20325
set dummy gcc; ac_word=$2
20326
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20327
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20328
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20329
echo $ECHO_N "(cached) $ECHO_C" >&6
20331
if test -n "$ac_ct_CC"; then
20332
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20335
for as_dir in $PATH
20338
test -z "$as_dir" && as_dir=.
20339
for ac_exec_ext in '' $ac_executable_extensions; do
20340
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20341
ac_cv_prog_ac_ct_CC="gcc"
20342
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20351
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20352
if test -n "$ac_ct_CC"; then
20353
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20354
echo "${ECHO_T}$ac_ct_CC" >&6; }
20356
{ echo "$as_me:$LINENO: result: no" >&5
20357
echo "${ECHO_T}no" >&6; }
20360
if test "x$ac_ct_CC" = x; then
20363
case $cross_compiling:$ac_tool_warned in
20365
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20366
whose name does not start with the host triplet. If you think this
20367
configuration is useful to you, please write to autoconf@gnu.org." >&5
20368
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20369
whose name does not start with the host triplet. If you think this
20370
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20371
ac_tool_warned=yes ;;
20376
CC="$ac_cv_prog_CC"
20379
if test -z "$CC"; then
20380
if test -n "$ac_tool_prefix"; then
20381
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20382
set dummy ${ac_tool_prefix}cc; ac_word=$2
20383
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20385
if test "${ac_cv_prog_CC+set}" = set; then
20386
echo $ECHO_N "(cached) $ECHO_C" >&6
20388
if test -n "$CC"; then
20389
ac_cv_prog_CC="$CC" # Let the user override the test.
20391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20392
for as_dir in $PATH
20395
test -z "$as_dir" && as_dir=.
20396
for ac_exec_ext in '' $ac_executable_extensions; do
20397
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20398
ac_cv_prog_CC="${ac_tool_prefix}cc"
20399
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20409
if test -n "$CC"; then
20410
{ echo "$as_me:$LINENO: result: $CC" >&5
20411
echo "${ECHO_T}$CC" >&6; }
20413
{ echo "$as_me:$LINENO: result: no" >&5
20414
echo "${ECHO_T}no" >&6; }
20420
if test -z "$CC"; then
20421
# Extract the first word of "cc", so it can be a program name with args.
20422
set dummy cc; ac_word=$2
20423
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20425
if test "${ac_cv_prog_CC+set}" = set; then
20426
echo $ECHO_N "(cached) $ECHO_C" >&6
20428
if test -n "$CC"; then
20429
ac_cv_prog_CC="$CC" # Let the user override the test.
20431
ac_prog_rejected=no
20432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20433
for as_dir in $PATH
20436
test -z "$as_dir" && as_dir=.
20437
for ac_exec_ext in '' $ac_executable_extensions; do
20438
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20439
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20440
ac_prog_rejected=yes
20444
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20451
if test $ac_prog_rejected = yes; then
20452
# We found a bogon in the path, so make sure we never use it.
20453
set dummy $ac_cv_prog_CC
20455
if test $# != 0; then
20456
# We chose a different compiler from the bogus one.
20457
# However, it has the same basename, so the bogon will be chosen
20458
# first if we set CC to just the basename; use the full file name.
20460
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20466
if test -n "$CC"; then
20467
{ echo "$as_me:$LINENO: result: $CC" >&5
20468
echo "${ECHO_T}$CC" >&6; }
20470
{ echo "$as_me:$LINENO: result: no" >&5
20471
echo "${ECHO_T}no" >&6; }
20476
if test -z "$CC"; then
20477
if test -n "$ac_tool_prefix"; then
20478
for ac_prog in cl.exe
20480
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20481
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20482
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20483
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20484
if test "${ac_cv_prog_CC+set}" = set; then
20485
echo $ECHO_N "(cached) $ECHO_C" >&6
20487
if test -n "$CC"; then
20488
ac_cv_prog_CC="$CC" # Let the user override the test.
20490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20491
for as_dir in $PATH
20494
test -z "$as_dir" && as_dir=.
20495
for ac_exec_ext in '' $ac_executable_extensions; do
20496
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20497
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20498
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20508
if test -n "$CC"; then
20509
{ echo "$as_me:$LINENO: result: $CC" >&5
20510
echo "${ECHO_T}$CC" >&6; }
20512
{ echo "$as_me:$LINENO: result: no" >&5
20513
echo "${ECHO_T}no" >&6; }
20517
test -n "$CC" && break
20520
if test -z "$CC"; then
20522
for ac_prog in cl.exe
20524
# Extract the first word of "$ac_prog", so it can be a program name with args.
20525
set dummy $ac_prog; ac_word=$2
20526
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20528
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20529
echo $ECHO_N "(cached) $ECHO_C" >&6
20531
if test -n "$ac_ct_CC"; then
20532
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20535
for as_dir in $PATH
20538
test -z "$as_dir" && as_dir=.
20539
for ac_exec_ext in '' $ac_executable_extensions; do
20540
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20541
ac_cv_prog_ac_ct_CC="$ac_prog"
20542
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20551
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20552
if test -n "$ac_ct_CC"; then
20553
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20554
echo "${ECHO_T}$ac_ct_CC" >&6; }
20556
{ echo "$as_me:$LINENO: result: no" >&5
20557
echo "${ECHO_T}no" >&6; }
20561
test -n "$ac_ct_CC" && break
20564
if test "x$ac_ct_CC" = x; then
20567
case $cross_compiling:$ac_tool_warned in
20569
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20570
whose name does not start with the host triplet. If you think this
20571
configuration is useful to you, please write to autoconf@gnu.org." >&5
20572
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20573
whose name does not start with the host triplet. If you think this
20574
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20575
ac_tool_warned=yes ;;
20584
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20585
See \`config.log' for more details." >&5
20586
echo "$as_me: error: no acceptable C compiler found in \$PATH
20587
See \`config.log' for more details." >&2;}
20588
{ (exit 1); exit 1; }; }
20590
# Provide some information about the compiler.
20591
echo "$as_me:$LINENO: checking for C compiler version" >&5
20592
ac_compiler=`set X $ac_compile; echo $2`
20593
{ (ac_try="$ac_compiler --version >&5"
20594
case "(($ac_try" in
20595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596
*) ac_try_echo=$ac_try;;
20598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599
(eval "$ac_compiler --version >&5") 2>&5
20601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602
(exit $ac_status); }
20603
{ (ac_try="$ac_compiler -v >&5"
20604
case "(($ac_try" in
20605
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606
*) ac_try_echo=$ac_try;;
20608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609
(eval "$ac_compiler -v >&5") 2>&5
20611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612
(exit $ac_status); }
20613
{ (ac_try="$ac_compiler -V >&5"
20614
case "(($ac_try" in
20615
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616
*) ac_try_echo=$ac_try;;
20618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619
(eval "$ac_compiler -V >&5") 2>&5
20621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622
(exit $ac_status); }
20624
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20625
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20626
if test "${ac_cv_c_compiler_gnu+set}" = set; then
20627
echo $ECHO_N "(cached) $ECHO_C" >&6
20629
cat >conftest.$ac_ext <<_ACEOF
20632
cat confdefs.h >>conftest.$ac_ext
20633
cat >>conftest.$ac_ext <<_ACEOF
20634
/* end confdefs.h. */
20647
rm -f conftest.$ac_objext
20648
if { (ac_try="$ac_compile"
20649
case "(($ac_try" in
20650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651
*) ac_try_echo=$ac_try;;
20653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654
(eval "$ac_compile") 2>conftest.er1
20656
grep -v '^ *+' conftest.er1 >conftest.err
20658
cat conftest.err >&5
20659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660
(exit $ac_status); } && {
20661
test -z "$ac_c_werror_flag" ||
20662
test ! -s conftest.err
20663
} && test -s conftest.$ac_objext; then
20664
ac_compiler_gnu=yes
20666
echo "$as_me: failed program was:" >&5
20667
sed 's/^/| /' conftest.$ac_ext >&5
20672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673
ac_cv_c_compiler_gnu=$ac_compiler_gnu
20676
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20677
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20678
GCC=`test $ac_compiler_gnu = yes && echo yes`
20679
ac_test_CFLAGS=${CFLAGS+set}
20680
ac_save_CFLAGS=$CFLAGS
20681
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20682
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20683
if test "${ac_cv_prog_cc_g+set}" = set; then
20684
echo $ECHO_N "(cached) $ECHO_C" >&6
20686
ac_save_c_werror_flag=$ac_c_werror_flag
20687
ac_c_werror_flag=yes
20690
cat >conftest.$ac_ext <<_ACEOF
20693
cat confdefs.h >>conftest.$ac_ext
20694
cat >>conftest.$ac_ext <<_ACEOF
20695
/* end confdefs.h. */
20705
rm -f conftest.$ac_objext
20706
if { (ac_try="$ac_compile"
20707
case "(($ac_try" in
20708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709
*) ac_try_echo=$ac_try;;
20711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712
(eval "$ac_compile") 2>conftest.er1
20714
grep -v '^ *+' conftest.er1 >conftest.err
20716
cat conftest.err >&5
20717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718
(exit $ac_status); } && {
20719
test -z "$ac_c_werror_flag" ||
20720
test ! -s conftest.err
20721
} && test -s conftest.$ac_objext; then
20722
ac_cv_prog_cc_g=yes
20724
echo "$as_me: failed program was:" >&5
20725
sed 's/^/| /' conftest.$ac_ext >&5
20728
cat >conftest.$ac_ext <<_ACEOF
20731
cat confdefs.h >>conftest.$ac_ext
20732
cat >>conftest.$ac_ext <<_ACEOF
20733
/* end confdefs.h. */
20743
rm -f conftest.$ac_objext
20744
if { (ac_try="$ac_compile"
20745
case "(($ac_try" in
20746
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747
*) ac_try_echo=$ac_try;;
20749
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750
(eval "$ac_compile") 2>conftest.er1
20752
grep -v '^ *+' conftest.er1 >conftest.err
20754
cat conftest.err >&5
20755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756
(exit $ac_status); } && {
20757
test -z "$ac_c_werror_flag" ||
20758
test ! -s conftest.err
20759
} && test -s conftest.$ac_objext; then
20762
echo "$as_me: failed program was:" >&5
20763
sed 's/^/| /' conftest.$ac_ext >&5
20765
ac_c_werror_flag=$ac_save_c_werror_flag
20767
cat >conftest.$ac_ext <<_ACEOF
20770
cat confdefs.h >>conftest.$ac_ext
20771
cat >>conftest.$ac_ext <<_ACEOF
20772
/* end confdefs.h. */
20782
rm -f conftest.$ac_objext
20783
if { (ac_try="$ac_compile"
20784
case "(($ac_try" in
20785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786
*) ac_try_echo=$ac_try;;
20788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789
(eval "$ac_compile") 2>conftest.er1
20791
grep -v '^ *+' conftest.er1 >conftest.err
20793
cat conftest.err >&5
20794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795
(exit $ac_status); } && {
20796
test -z "$ac_c_werror_flag" ||
20797
test ! -s conftest.err
20798
} && test -s conftest.$ac_objext; then
20799
ac_cv_prog_cc_g=yes
20801
echo "$as_me: failed program was:" >&5
20802
sed 's/^/| /' conftest.$ac_ext >&5
20807
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20814
ac_c_werror_flag=$ac_save_c_werror_flag
20816
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20817
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20818
if test "$ac_test_CFLAGS" = set; then
20819
CFLAGS=$ac_save_CFLAGS
20820
elif test $ac_cv_prog_cc_g = yes; then
20821
if test "$GCC" = yes; then
20827
if test "$GCC" = yes; then
20833
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20834
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20835
if test "${ac_cv_prog_cc_c89+set}" = set; then
20836
echo $ECHO_N "(cached) $ECHO_C" >&6
20838
ac_cv_prog_cc_c89=no
20840
cat >conftest.$ac_ext <<_ACEOF
20843
cat confdefs.h >>conftest.$ac_ext
20844
cat >>conftest.$ac_ext <<_ACEOF
20845
/* end confdefs.h. */
20846
#include <stdarg.h>
20848
#include <sys/types.h>
20849
#include <sys/stat.h>
20850
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20851
struct buf { int x; };
20852
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20853
static char *e (p, i)
20859
static char *f (char * (*g) (char **, int), char **p, ...)
20864
s = g (p, va_arg (v,int));
20869
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20870
function prototypes and stuff, but not '\xHH' hex character constants.
20871
These don't provoke an error unfortunately, instead are silently treated
20872
as 'x'. The following induces an error, until -std is added to get
20873
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20874
array size at least. It's necessary to write '\x00'==0 to get something
20875
that's true only with -std. */
20876
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20878
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20879
inside strings and character constants. */
20881
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20883
int test (int i, double x);
20884
struct s1 {int (*f) (int a);};
20885
struct s2 {int (*f) (double a);};
20886
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20892
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20897
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20898
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20900
CC="$ac_save_CC $ac_arg"
20901
rm -f conftest.$ac_objext
20902
if { (ac_try="$ac_compile"
20903
case "(($ac_try" in
20904
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905
*) ac_try_echo=$ac_try;;
20907
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908
(eval "$ac_compile") 2>conftest.er1
20910
grep -v '^ *+' conftest.er1 >conftest.err
20912
cat conftest.err >&5
20913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914
(exit $ac_status); } && {
20915
test -z "$ac_c_werror_flag" ||
20916
test ! -s conftest.err
20917
} && test -s conftest.$ac_objext; then
20918
ac_cv_prog_cc_c89=$ac_arg
20920
echo "$as_me: failed program was:" >&5
20921
sed 's/^/| /' conftest.$ac_ext >&5
20926
rm -f core conftest.err conftest.$ac_objext
20927
test "x$ac_cv_prog_cc_c89" != "xno" && break
20929
rm -f conftest.$ac_ext
20934
case "x$ac_cv_prog_cc_c89" in
20936
{ echo "$as_me:$LINENO: result: none needed" >&5
20937
echo "${ECHO_T}none needed" >&6; } ;;
20939
{ echo "$as_me:$LINENO: result: unsupported" >&5
20940
echo "${ECHO_T}unsupported" >&6; } ;;
20942
CC="$CC $ac_cv_prog_cc_c89"
20943
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20944
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20949
ac_cpp='$CPP $CPPFLAGS'
20950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20954
depcc="$CC" am_compiler_list=
20956
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20957
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20958
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20959
echo $ECHO_N "(cached) $ECHO_C" >&6
20961
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20962
# We make a subdir and do the tests there. Otherwise we can end up
20963
# making bogus files that we don't know about and never remove. For
20964
# instance it was reported that on HP-UX the gcc test will end up
20965
# making a dummy file named `D' -- because `-MD' means `put the output
20968
# Copy depcomp to subdir because otherwise we won't find it if we're
20969
# using a relative directory.
20970
cp "$am_depcomp" conftest.dir
20972
# We will build objects and dependencies in a subdirectory because
20973
# it helps to detect inapplicable dependency modes. For instance
20974
# both Tru64's cc and ICC support -MD to output dependencies as a
20975
# side effect of compilation, but ICC will put the dependencies in
20976
# the current directory while Tru64 will put them in the object
20980
am_cv_CC_dependencies_compiler_type=none
20981
if test "$am_compiler_list" = ""; then
20982
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20984
for depmode in $am_compiler_list; do
20985
# Setup a source with many dependencies, because some compilers
20986
# like to wrap large dependency lists on column 80 (with \), and
20987
# we should not choose a depcomp mode which is confused by this.
20989
# We need to recreate these files for each test, as the compiler may
20990
# overwrite some of them when testing with obscure command lines.
20991
# This happens at least with the AIX C compiler.
20993
for i in 1 2 3 4 5 6; do
20994
echo '#include "conftst'$i'.h"' >> sub/conftest.c
20995
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20996
# Solaris 8's {/usr,}/bin/sh.
20997
touch sub/conftst$i.h
20999
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21003
# after this tag, mechanisms are not by side-effect, so they'll
21004
# only be used when explicitly requested
21005
if test "x$enable_dependency_tracking" = xyes; then
21013
# We check with `-c' and `-o' for the sake of the "dashmstdout"
21014
# mode. It turns out that the SunPro C++ compiler does not properly
21015
# handle `-M -o', and we need to detect this.
21016
if depmode=$depmode \
21017
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21018
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21019
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21020
>/dev/null 2>conftest.err &&
21021
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
21022
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21023
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21024
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21025
# icc doesn't choke on unknown options, it will just issue warnings
21026
# or remarks (even with -Werror). So we grep stderr for any message
21027
# that says an option was ignored or not supported.
21028
# When given -MP, icc 7.0 and 7.1 complain thusly:
21029
# icc: Command line warning: ignoring option '-M'; no argument required
21030
# The diagnosis changed in icc 8.0:
21031
# icc: Command line remark: option '-MP' not supported
21032
if (grep 'ignoring option' conftest.err ||
21033
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21034
am_cv_CC_dependencies_compiler_type=$depmode
21041
rm -rf conftest.dir
21043
am_cv_CC_dependencies_compiler_type=none
21047
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
21048
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
21049
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
21052
test "x$enable_dependency_tracking" != xno \
21053
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
21054
am__fastdepCC_TRUE=
21055
am__fastdepCC_FALSE='#'
21057
am__fastdepCC_TRUE='#'
21058
am__fastdepCC_FALSE=
21063
# Extract the first word of "xsltproc", so it can be a program name with args.
21064
set dummy xsltproc; ac_word=$2
21065
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21067
if test "${ac_cv_path_XSLTPROC+set}" = set; then
21068
echo $ECHO_N "(cached) $ECHO_C" >&6
21072
ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21076
for as_dir in $PATH
21079
test -z "$as_dir" && as_dir=.
21080
for ac_exec_ext in '' $ac_executable_extensions; do
21081
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21082
ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21083
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21090
test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
21094
XSLTPROC=$ac_cv_path_XSLTPROC
21095
if test -n "$XSLTPROC"; then
21096
{ echo "$as_me:$LINENO: result: $XSLTPROC" >&5
21097
echo "${ECHO_T}$XSLTPROC" >&6; }
21099
{ echo "$as_me:$LINENO: result: no" >&5
21100
echo "${ECHO_T}no" >&6; }
21104
if test "$XSLTPROC" = "no"; then
21105
{ { echo "$as_me:$LINENO: error: XCB requires xsltproc." >&5
21106
echo "$as_me: error: XCB requires xsltproc." >&2;}
21107
{ (exit 1); exit 1; }; }
21110
HTML_CHECK_RESULT=false
21111
if test x"$HAVE_CHECK" = xyes; then
21112
if test x"$XSLTPROC" != xno; then
21113
HTML_CHECK_RESULT=true
21118
# Checks for pkg-config packages
21121
{ echo "$as_me:$LINENO: checking for XCBPROTO" >&5
21122
echo $ECHO_N "checking for XCBPROTO... $ECHO_C" >&6; }
21124
if test -n "$PKG_CONFIG"; then
21125
if test -n "$XCBPROTO_CFLAGS"; then
21126
pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
21128
if test -n "$PKG_CONFIG" && \
21129
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.1\"") >&5
21130
($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.1") 2>&5
21132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133
(exit $ac_status); }; then
21134
pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.1" 2>/dev/null`
21142
if test -n "$PKG_CONFIG"; then
21143
if test -n "$XCBPROTO_LIBS"; then
21144
pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
21146
if test -n "$PKG_CONFIG" && \
21147
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.1\"") >&5
21148
($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.1") 2>&5
21150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151
(exit $ac_status); }; then
21152
pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.1" 2>/dev/null`
21163
if test $pkg_failed = yes; then
21165
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21166
_pkg_short_errors_supported=yes
21168
_pkg_short_errors_supported=no
21170
if test $_pkg_short_errors_supported = yes; then
21171
XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-proto >= 1.1"`
21173
XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-proto >= 1.1"`
21175
# Put the nasty error message in config.log where it belongs
21176
echo "$XCBPROTO_PKG_ERRORS" >&5
21178
{ { echo "$as_me:$LINENO: error: Package requirements (xcb-proto >= 1.1) were not met:
21180
$XCBPROTO_PKG_ERRORS
21182
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21183
installed software in a non-standard prefix.
21185
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
21186
and XCBPROTO_LIBS to avoid the need to call pkg-config.
21187
See the pkg-config man page for more details.
21189
echo "$as_me: error: Package requirements (xcb-proto >= 1.1) were not met:
21191
$XCBPROTO_PKG_ERRORS
21193
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21194
installed software in a non-standard prefix.
21196
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
21197
and XCBPROTO_LIBS to avoid the need to call pkg-config.
21198
See the pkg-config man page for more details.
21200
{ (exit 1); exit 1; }; }
21201
elif test $pkg_failed = untried; then
21202
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21203
is in your PATH or set the PKG_CONFIG environment variable to the full
21204
path to pkg-config.
21206
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
21207
and XCBPROTO_LIBS to avoid the need to call pkg-config.
21208
See the pkg-config man page for more details.
21210
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21211
See \`config.log' for more details." >&5
21212
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21213
is in your PATH or set the PKG_CONFIG environment variable to the full
21214
path to pkg-config.
21216
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
21217
and XCBPROTO_LIBS to avoid the need to call pkg-config.
21218
See the pkg-config man page for more details.
21220
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21221
See \`config.log' for more details." >&2;}
21222
{ (exit 1); exit 1; }; }
21224
XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
21225
XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
21226
{ echo "$as_me:$LINENO: result: yes" >&5
21227
echo "${ECHO_T}yes" >&6; }
21230
NEEDED="pthread-stubs xau >= 0.99.2"
21233
{ echo "$as_me:$LINENO: checking for NEEDED" >&5
21234
echo $ECHO_N "checking for NEEDED... $ECHO_C" >&6; }
21236
if test -n "$PKG_CONFIG"; then
21237
if test -n "$NEEDED_CFLAGS"; then
21238
pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
21240
if test -n "$PKG_CONFIG" && \
21241
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\"") >&5
21242
($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
21244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245
(exit $ac_status); }; then
21246
pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
21254
if test -n "$PKG_CONFIG"; then
21255
if test -n "$NEEDED_LIBS"; then
21256
pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
21258
if test -n "$PKG_CONFIG" && \
21259
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\"") >&5
21260
($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
21262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263
(exit $ac_status); }; then
21264
pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
21275
if test $pkg_failed = yes; then
21277
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21278
_pkg_short_errors_supported=yes
21280
_pkg_short_errors_supported=no
21282
if test $_pkg_short_errors_supported = yes; then
21283
NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$NEEDED"`
21285
NEEDED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$NEEDED"`
21287
# Put the nasty error message in config.log where it belongs
21288
echo "$NEEDED_PKG_ERRORS" >&5
21290
{ { echo "$as_me:$LINENO: error: Package requirements ($NEEDED) were not met:
21294
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21295
installed software in a non-standard prefix.
21297
Alternatively, you may set the environment variables NEEDED_CFLAGS
21298
and NEEDED_LIBS to avoid the need to call pkg-config.
21299
See the pkg-config man page for more details.
21301
echo "$as_me: error: Package requirements ($NEEDED) were not met:
21305
Consider adjusting the PKG_CONFIG_PATH environment variable if you
21306
installed software in a non-standard prefix.
21308
Alternatively, you may set the environment variables NEEDED_CFLAGS
21309
and NEEDED_LIBS to avoid the need to call pkg-config.
21310
See the pkg-config man page for more details.
21312
{ (exit 1); exit 1; }; }
21313
elif test $pkg_failed = untried; then
21314
{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21315
is in your PATH or set the PKG_CONFIG environment variable to the full
21316
path to pkg-config.
21318
Alternatively, you may set the environment variables NEEDED_CFLAGS
21319
and NEEDED_LIBS to avoid the need to call pkg-config.
21320
See the pkg-config man page for more details.
21322
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21323
See \`config.log' for more details." >&5
21324
echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21325
is in your PATH or set the PKG_CONFIG environment variable to the full
21326
path to pkg-config.
21328
Alternatively, you may set the environment variables NEEDED_CFLAGS
21329
and NEEDED_LIBS to avoid the need to call pkg-config.
21330
See the pkg-config man page for more details.
21332
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21333
See \`config.log' for more details." >&2;}
21334
{ (exit 1); exit 1; }; }
21336
NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
21337
NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
21338
{ echo "$as_me:$LINENO: result: yes" >&5
21339
echo "${ECHO_T}yes" >&6; }
21346
{ echo "$as_me:$LINENO: checking for XDMCP" >&5
21347
echo $ECHO_N "checking for XDMCP... $ECHO_C" >&6; }
21349
if test -n "$PKG_CONFIG"; then
21350
if test -n "$XDMCP_CFLAGS"; then
21351
pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
21353
if test -n "$PKG_CONFIG" && \
21354
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
21355
($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
21357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358
(exit $ac_status); }; then
21359
pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
21367
if test -n "$PKG_CONFIG"; then
21368
if test -n "$XDMCP_LIBS"; then
21369
pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
21371
if test -n "$PKG_CONFIG" && \
21372
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
21373
($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
21375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376
(exit $ac_status); }; then
21377
pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
21388
if test $pkg_failed = yes; then
21390
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21391
_pkg_short_errors_supported=yes
21393
_pkg_short_errors_supported=no
21395
if test $_pkg_short_errors_supported = yes; then
21396
XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"`
21398
XDMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
21400
# Put the nasty error message in config.log where it belongs
21401
echo "$XDMCP_PKG_ERRORS" >&5
21403
{ echo "$as_me:$LINENO: result: no" >&5
21404
echo "${ECHO_T}no" >&6; }
21405
{ echo "$as_me:$LINENO: result: no" >&5
21406
echo "${ECHO_T}no" >&6; }
21407
elif test $pkg_failed = untried; then
21408
{ echo "$as_me:$LINENO: result: no" >&5
21409
echo "${ECHO_T}no" >&6; }
21411
XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
21412
XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
21413
{ echo "$as_me:$LINENO: result: yes" >&5
21414
echo "${ECHO_T}yes" >&6; }
21415
{ echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
21416
echo $ECHO_N "checking for XdmcpWrap in -lXdmcp... $ECHO_C" >&6; }
21417
if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
21418
echo $ECHO_N "(cached) $ECHO_C" >&6
21420
ac_check_lib_save_LIBS=$LIBS
21421
LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
21422
cat >conftest.$ac_ext <<_ACEOF
21425
cat confdefs.h >>conftest.$ac_ext
21426
cat >>conftest.$ac_ext <<_ACEOF
21427
/* end confdefs.h. */
21429
/* Override any GCC internal prototype to avoid an error.
21430
Use char because int might match the return type of a GCC
21431
builtin and then its argument prototype would still apply. */
21439
return XdmcpWrap ();
21444
rm -f conftest.$ac_objext conftest$ac_exeext
21445
if { (ac_try="$ac_link"
21446
case "(($ac_try" in
21447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448
*) ac_try_echo=$ac_try;;
21450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451
(eval "$ac_link") 2>conftest.er1
21453
grep -v '^ *+' conftest.er1 >conftest.err
21455
cat conftest.err >&5
21456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457
(exit $ac_status); } && {
21458
test -z "$ac_c_werror_flag" ||
21459
test ! -s conftest.err
21460
} && test -s conftest$ac_exeext &&
21461
$as_test_x conftest$ac_exeext; then
21462
ac_cv_lib_Xdmcp_XdmcpWrap=yes
21464
echo "$as_me: failed program was:" >&5
21465
sed 's/^/| /' conftest.$ac_ext >&5
21467
ac_cv_lib_Xdmcp_XdmcpWrap=no
21470
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21471
conftest$ac_exeext conftest.$ac_ext
21472
LIBS=$ac_check_lib_save_LIBS
21474
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
21475
echo "${ECHO_T}$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
21476
if test $ac_cv_lib_Xdmcp_XdmcpWrap = yes; then
21479
cat >>confdefs.h <<\_ACEOF
21480
#define HASXDMAUTH 1
21483
NEEDED="$NEEDED xdmcp"
21497
# Find the xcb-proto protocol descriptions
21498
{ echo "$as_me:$LINENO: checking XCBPROTO_XCBINCLUDEDIR" >&5
21499
echo $ECHO_N "checking XCBPROTO_XCBINCLUDEDIR... $ECHO_C" >&6; }
21500
XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
21501
{ echo "$as_me:$LINENO: result: $XCBPROTO_XCBINCLUDEDIR" >&5
21502
echo "${ECHO_T}$XCBPROTO_XCBINCLUDEDIR" >&6; }
21505
# Find the xcbgen Python package
21506
{ echo "$as_me:$LINENO: checking XCBPROTO_XCBPYTHONDIR" >&5
21507
echo $ECHO_N "checking XCBPROTO_XCBPYTHONDIR... $ECHO_C" >&6; }
21508
XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
21509
{ echo "$as_me:$LINENO: result: $XCBPROTO_XCBPYTHONDIR" >&5
21510
echo "${ECHO_T}$XCBPROTO_XCBPYTHONDIR" >&6; }
21513
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21514
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21515
if test "${ac_cv_header_stdc+set}" = set; then
21516
echo $ECHO_N "(cached) $ECHO_C" >&6
21518
cat >conftest.$ac_ext <<_ACEOF
21521
cat confdefs.h >>conftest.$ac_ext
21522
cat >>conftest.$ac_ext <<_ACEOF
21523
/* end confdefs.h. */
21524
#include <stdlib.h>
21525
#include <stdarg.h>
21526
#include <string.h>
21537
rm -f conftest.$ac_objext
21538
if { (ac_try="$ac_compile"
21539
case "(($ac_try" in
21540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541
*) ac_try_echo=$ac_try;;
21543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544
(eval "$ac_compile") 2>conftest.er1
21546
grep -v '^ *+' conftest.er1 >conftest.err
21548
cat conftest.err >&5
21549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550
(exit $ac_status); } && {
21551
test -z "$ac_c_werror_flag" ||
21552
test ! -s conftest.err
21553
} && test -s conftest.$ac_objext; then
21554
ac_cv_header_stdc=yes
21556
echo "$as_me: failed program was:" >&5
21557
sed 's/^/| /' conftest.$ac_ext >&5
21559
ac_cv_header_stdc=no
21562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564
if test $ac_cv_header_stdc = yes; then
21565
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21566
cat >conftest.$ac_ext <<_ACEOF
21569
cat confdefs.h >>conftest.$ac_ext
21570
cat >>conftest.$ac_ext <<_ACEOF
21571
/* end confdefs.h. */
21572
#include <string.h>
21575
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21576
$EGREP "memchr" >/dev/null 2>&1; then
21579
ac_cv_header_stdc=no
21585
if test $ac_cv_header_stdc = yes; then
21586
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21587
cat >conftest.$ac_ext <<_ACEOF
21590
cat confdefs.h >>conftest.$ac_ext
21591
cat >>conftest.$ac_ext <<_ACEOF
21592
/* end confdefs.h. */
21593
#include <stdlib.h>
21596
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21597
$EGREP "free" >/dev/null 2>&1; then
21600
ac_cv_header_stdc=no
21606
if test $ac_cv_header_stdc = yes; then
21607
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21608
if test "$cross_compiling" = yes; then
21611
cat >conftest.$ac_ext <<_ACEOF
21614
cat confdefs.h >>conftest.$ac_ext
21615
cat >>conftest.$ac_ext <<_ACEOF
21616
/* end confdefs.h. */
21618
#include <stdlib.h>
21619
#if ((' ' & 0x0FF) == 0x020)
21620
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21621
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21623
# define ISLOWER(c) \
21624
(('a' <= (c) && (c) <= 'i') \
21625
|| ('j' <= (c) && (c) <= 'r') \
21626
|| ('s' <= (c) && (c) <= 'z'))
21627
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21630
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21635
for (i = 0; i < 256; i++)
21636
if (XOR (islower (i), ISLOWER (i))
21637
|| toupper (i) != TOUPPER (i))
21642
rm -f conftest$ac_exeext
21643
if { (ac_try="$ac_link"
21644
case "(($ac_try" in
21645
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646
*) ac_try_echo=$ac_try;;
21648
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649
(eval "$ac_link") 2>&5
21651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21653
{ (case "(($ac_try" in
21654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655
*) ac_try_echo=$ac_try;;
21657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658
(eval "$ac_try") 2>&5
21660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661
(exit $ac_status); }; }; then
21664
echo "$as_me: program exited with status $ac_status" >&5
21665
echo "$as_me: failed program was:" >&5
21666
sed 's/^/| /' conftest.$ac_ext >&5
21668
( exit $ac_status )
21669
ac_cv_header_stdc=no
21671
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21677
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21678
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21679
if test $ac_cv_header_stdc = yes; then
21681
cat >>confdefs.h <<\_ACEOF
21682
#define STDC_HEADERS 1
21687
{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
21688
echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
21689
if test "${ac_cv_search_getaddrinfo+set}" = set; then
21690
echo $ECHO_N "(cached) $ECHO_C" >&6
21692
ac_func_search_save_LIBS=$LIBS
21693
cat >conftest.$ac_ext <<_ACEOF
21696
cat confdefs.h >>conftest.$ac_ext
21697
cat >>conftest.$ac_ext <<_ACEOF
21698
/* end confdefs.h. */
21700
/* Override any GCC internal prototype to avoid an error.
21701
Use char because int might match the return type of a GCC
21702
builtin and then its argument prototype would still apply. */
21706
char getaddrinfo ();
21710
return getaddrinfo ();
21715
for ac_lib in '' socket; do
21716
if test -z "$ac_lib"; then
21717
ac_res="none required"
21720
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21722
rm -f conftest.$ac_objext conftest$ac_exeext
21723
if { (ac_try="$ac_link"
21724
case "(($ac_try" in
21725
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726
*) ac_try_echo=$ac_try;;
21728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729
(eval "$ac_link") 2>conftest.er1
21731
grep -v '^ *+' conftest.er1 >conftest.err
21733
cat conftest.err >&5
21734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735
(exit $ac_status); } && {
21736
test -z "$ac_c_werror_flag" ||
21737
test ! -s conftest.err
21738
} && test -s conftest$ac_exeext &&
21739
$as_test_x conftest$ac_exeext; then
21740
ac_cv_search_getaddrinfo=$ac_res
21742
echo "$as_me: failed program was:" >&5
21743
sed 's/^/| /' conftest.$ac_ext >&5
21748
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21750
if test "${ac_cv_search_getaddrinfo+set}" = set; then
21754
if test "${ac_cv_search_getaddrinfo+set}" = set; then
21757
ac_cv_search_getaddrinfo=no
21759
rm conftest.$ac_ext
21760
LIBS=$ac_func_search_save_LIBS
21762
{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
21763
echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
21764
ac_res=$ac_cv_search_getaddrinfo
21765
if test "$ac_res" != no; then
21766
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21770
{ echo "$as_me:$LINENO: checking for library containing connect" >&5
21771
echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
21772
if test "${ac_cv_search_connect+set}" = set; then
21773
echo $ECHO_N "(cached) $ECHO_C" >&6
21775
ac_func_search_save_LIBS=$LIBS
21776
cat >conftest.$ac_ext <<_ACEOF
21779
cat confdefs.h >>conftest.$ac_ext
21780
cat >>conftest.$ac_ext <<_ACEOF
21781
/* end confdefs.h. */
21783
/* Override any GCC internal prototype to avoid an error.
21784
Use char because int might match the return type of a GCC
21785
builtin and then its argument prototype would still apply. */
21798
for ac_lib in '' socket; do
21799
if test -z "$ac_lib"; then
21800
ac_res="none required"
21803
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21805
rm -f conftest.$ac_objext conftest$ac_exeext
21806
if { (ac_try="$ac_link"
21807
case "(($ac_try" in
21808
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809
*) ac_try_echo=$ac_try;;
21811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812
(eval "$ac_link") 2>conftest.er1
21814
grep -v '^ *+' conftest.er1 >conftest.err
21816
cat conftest.err >&5
21817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818
(exit $ac_status); } && {
21819
test -z "$ac_c_werror_flag" ||
21820
test ! -s conftest.err
21821
} && test -s conftest$ac_exeext &&
21822
$as_test_x conftest$ac_exeext; then
21823
ac_cv_search_connect=$ac_res
21825
echo "$as_me: failed program was:" >&5
21826
sed 's/^/| /' conftest.$ac_ext >&5
21831
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833
if test "${ac_cv_search_connect+set}" = set; then
21837
if test "${ac_cv_search_connect+set}" = set; then
21840
ac_cv_search_connect=no
21842
rm conftest.$ac_ext
21843
LIBS=$ac_func_search_save_LIBS
21845
{ echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
21846
echo "${ECHO_T}$ac_cv_search_connect" >&6; }
21847
ac_res=$ac_cv_search_connect
21848
if test "$ac_res" != no; then
21849
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21857
cat >>confdefs.h <<\_ACEOF
21858
#define HAVE_ABSTRACT_SOCKETS 1
21865
# Check whether --with-queue-size was given.
21866
if test "${with_queue_size+set}" = set; then
21867
withval=$with_queue_size; xcb_queue_buffer_size="$withval"
21869
xcb_queue_buffer_size=16384
21873
cat >>confdefs.h <<_ACEOF
21874
#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
21878
{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
21879
echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
21880
if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
21881
echo $ECHO_N "(cached) $ECHO_C" >&6
21883
cat >conftest.$ac_ext <<_ACEOF
21886
cat confdefs.h >>conftest.$ac_ext
21887
cat >>conftest.$ac_ext <<_ACEOF
21888
/* end confdefs.h. */
21889
#include <sys/types.h>
21890
#include <sys/un.h>
21896
static struct sockaddr_un ac_aggr;
21897
if (ac_aggr.sun_len)
21903
rm -f conftest.$ac_objext
21904
if { (ac_try="$ac_compile"
21905
case "(($ac_try" in
21906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907
*) ac_try_echo=$ac_try;;
21909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910
(eval "$ac_compile") 2>conftest.er1
21912
grep -v '^ *+' conftest.er1 >conftest.err
21914
cat conftest.err >&5
21915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916
(exit $ac_status); } && {
21917
test -z "$ac_c_werror_flag" ||
21918
test ! -s conftest.err
21919
} && test -s conftest.$ac_objext; then
21920
ac_cv_member_struct_sockaddr_un_sun_len=yes
21922
echo "$as_me: failed program was:" >&5
21923
sed 's/^/| /' conftest.$ac_ext >&5
21925
cat >conftest.$ac_ext <<_ACEOF
21928
cat confdefs.h >>conftest.$ac_ext
21929
cat >>conftest.$ac_ext <<_ACEOF
21930
/* end confdefs.h. */
21931
#include <sys/types.h>
21932
#include <sys/un.h>
21938
static struct sockaddr_un ac_aggr;
21939
if (sizeof ac_aggr.sun_len)
21945
rm -f conftest.$ac_objext
21946
if { (ac_try="$ac_compile"
21947
case "(($ac_try" in
21948
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949
*) ac_try_echo=$ac_try;;
21951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21952
(eval "$ac_compile") 2>conftest.er1
21954
grep -v '^ *+' conftest.er1 >conftest.err
21956
cat conftest.err >&5
21957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958
(exit $ac_status); } && {
21959
test -z "$ac_c_werror_flag" ||
21960
test ! -s conftest.err
21961
} && test -s conftest.$ac_objext; then
21962
ac_cv_member_struct_sockaddr_un_sun_len=yes
21964
echo "$as_me: failed program was:" >&5
21965
sed 's/^/| /' conftest.$ac_ext >&5
21967
ac_cv_member_struct_sockaddr_un_sun_len=no
21970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
21976
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
21977
if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
21979
cat >>confdefs.h <<\_ACEOF
21980
#define HAVE_SOCKADDR_SUN_LEN 1
21986
xcbincludedir='${includedir}/xcb'
21989
if test "x$GCC" = xyes ; then
21990
CWARNFLAGS="-Wall -pedantic -Wpointer-arith \
21991
-Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
21993
{ echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
21994
echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
21995
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
21996
echo $ECHO_N "(cached) $ECHO_C" >&6
21998
cat >conftest.$ac_ext <<_ACEOF
22001
cat confdefs.h >>conftest.$ac_ext
22002
cat >>conftest.$ac_ext <<_ACEOF
22003
/* end confdefs.h. */
22004
$ac_includes_default
22016
rm -f conftest.$ac_objext
22017
if { (ac_try="$ac_compile"
22018
case "(($ac_try" in
22019
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020
*) ac_try_echo=$ac_try;;
22022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22023
(eval "$ac_compile") 2>conftest.er1
22025
grep -v '^ *+' conftest.er1 >conftest.err
22027
cat conftest.err >&5
22028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029
(exit $ac_status); } && {
22030
test -z "$ac_c_werror_flag" ||
22031
test ! -s conftest.err
22032
} && test -s conftest.$ac_objext; then
22033
ac_cv_have_decl___SUNPRO_C=yes
22035
echo "$as_me: failed program was:" >&5
22036
sed 's/^/| /' conftest.$ac_ext >&5
22038
ac_cv_have_decl___SUNPRO_C=no
22041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22043
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
22044
echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
22045
if test $ac_cv_have_decl___SUNPRO_C = yes; then
22051
if test "x$SUNCC" = "xyes"; then
22058
{ echo "$as_me:$LINENO: checking whether ${CC} supports symbol visibility" >&5
22059
echo $ECHO_N "checking whether ${CC} supports symbol visibility... $ECHO_C" >&6; }
22061
save_CFLAGS=${CFLAGS}
22062
CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
22063
cat >conftest.$ac_ext <<_ACEOF
22066
cat confdefs.h >>conftest.$ac_ext
22067
cat >>conftest.$ac_ext <<_ACEOF
22068
/* end confdefs.h. */
22070
#pragma GCC visibility push(hidden)
22071
extern void f(int);
22072
#pragma GCC visibility pop
22083
rm -f conftest.$ac_objext
22084
if { (ac_try="$ac_compile"
22085
case "(($ac_try" in
22086
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087
*) ac_try_echo=$ac_try;;
22089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090
(eval "$ac_compile") 2>conftest.er1
22092
grep -v '^ *+' conftest.er1 >conftest.err
22094
cat conftest.err >&5
22095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096
(exit $ac_status); } && {
22097
test -z "$ac_c_werror_flag" ||
22098
test ! -s conftest.err
22099
} && test -s conftest.$ac_objext; then
22101
cat >>confdefs.h <<\_ACEOF
22102
#define GCC_HAS_VISIBILITY
22106
{ echo "$as_me:$LINENO: result: yes" >&5
22107
echo "${ECHO_T}yes" >&6; }
22109
echo "$as_me: failed program was:" >&5
22110
sed 's/^/| /' conftest.$ac_ext >&5
22113
{ echo "$as_me:$LINENO: result: no" >&5
22114
echo "${ECHO_T}no" >&6; }
22117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119
CFLAGS=${save_CFLAGS}
22122
# htmldir is not defined prior to autoconf 2.59c, so on earlier versions
22123
# set an equivalent value.
22129
# Check whether --enable-build_docs was given.
22130
if test "${enable_build_docs+set}" = set; then
22131
enableval=$enable_build_docs; if test x"$enableval" != x"yes" ; then
22132
enable_build_docs="no"
22134
enable_build_docs="yes"
22137
enable_build_docs="yes"
22141
if test "$enable_build_docs" = "no" ; then
22145
# Check whether --with-doxygen was given.
22146
if test "${with_doxygen+set}" = set; then
22147
withval=$with_doxygen; DOXYGEN=${withval}
22148
# Extract the first word of "${DOXYGEN}", so it can be a program name with args.
22149
set dummy ${DOXYGEN}; ac_word=$2
22150
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22151
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22152
if test "${ac_cv_prog_BUILD_DOCS+set}" = set; then
22153
echo $ECHO_N "(cached) $ECHO_C" >&6
22155
if test -n "$BUILD_DOCS"; then
22156
ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test.
22158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22159
for as_dir in $PATH
22162
test -z "$as_dir" && as_dir=.
22163
for ac_exec_ext in '' $ac_executable_extensions; do
22164
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22165
ac_cv_prog_BUILD_DOCS="yes"
22166
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22173
test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no"
22176
BUILD_DOCS=$ac_cv_prog_BUILD_DOCS
22177
if test -n "$BUILD_DOCS"; then
22178
{ echo "$as_me:$LINENO: result: $BUILD_DOCS" >&5
22179
echo "${ECHO_T}$BUILD_DOCS" >&6; }
22181
{ echo "$as_me:$LINENO: result: no" >&5
22182
echo "${ECHO_T}no" >&6; }
22186
if test $BUILD_DOCS = no; then
22188
echo "The doxygen program you specified:"
22190
echo "was not found. Please check the path and make sure "
22191
echo "the program exists and is executable."
22192
{ echo "$as_me:$LINENO: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5
22193
echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;}
22196
# Extract the first word of "${DOXYGEN}", so it can be a program name with args.
22197
set dummy ${DOXYGEN}; ac_word=$2
22198
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22200
if test "${ac_cv_prog_BUILD_DOCS+set}" = set; then
22201
echo $ECHO_N "(cached) $ECHO_C" >&6
22203
if test -n "$BUILD_DOCS"; then
22204
ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test.
22206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22207
for as_dir in $PATH
22210
test -z "$as_dir" && as_dir=.
22211
for ac_exec_ext in '' $ac_executable_extensions; do
22212
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22213
ac_cv_prog_BUILD_DOCS="yes"
22214
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22221
test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no"
22224
BUILD_DOCS=$ac_cv_prog_BUILD_DOCS
22225
if test -n "$BUILD_DOCS"; then
22226
{ echo "$as_me:$LINENO: result: $BUILD_DOCS" >&5
22227
echo "${ECHO_T}$BUILD_DOCS" >&6; }
22229
{ echo "$as_me:$LINENO: result: no" >&5
22230
echo "${ECHO_T}no" >&6; }
22234
if test ${BUILD_DOCS} = no; then
22236
echo "The doxygen program was not found in your execute"
22237
echo "You may have doxygen installed somewhere not covered by your path."
22239
echo "If this is the case make sure you have the packages installed, AND"
22240
echo "that the doxygen program is in your execute path (see your"
22241
echo "shell manual page on setting the \$PATH environment variable), OR"
22242
echo "alternatively, specify the program to use with --with-doxygen."
22243
{ echo "$as_me:$LINENO: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5
22244
echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;}
22249
{ echo "$as_me:$LINENO: checking whether documentation is built" >&5
22250
echo $ECHO_N "checking whether documentation is built... $ECHO_C" >&6; }
22251
{ echo "$as_me:$LINENO: result: ${BUILD_DOCS}" >&5
22252
echo "${ECHO_T}${BUILD_DOCS}" >&6; }
22256
if test "x$BUILD_DOCS" = "xyes"; then
22258
BUILD_DOCS_FALSE='#'
22260
BUILD_DOCS_TRUE='#'
22269
# Check whether --enable-composite was given.
22270
if test "${enable_composite+set}" = set; then
22271
enableval=$enable_composite; BUILD_COMPOSITE=$enableval
22273
BUILD_COMPOSITE="yes"
22277
if test "x$BUILD_COMPOSITE" = "xyes"; then
22278
BUILD_COMPOSITE_TRUE=
22279
BUILD_COMPOSITE_FALSE='#'
22281
BUILD_COMPOSITE_TRUE='#'
22282
BUILD_COMPOSITE_FALSE=
22288
# Check whether --enable-damage was given.
22289
if test "${enable_damage+set}" = set; then
22290
enableval=$enable_damage; BUILD_DAMAGE=$enableval
22296
if test "x$BUILD_DAMAGE" = "xyes"; then
22298
BUILD_DAMAGE_FALSE='#'
22300
BUILD_DAMAGE_TRUE='#'
22301
BUILD_DAMAGE_FALSE=
22307
# Check whether --enable-dpms was given.
22308
if test "${enable_dpms+set}" = set; then
22309
enableval=$enable_dpms; BUILD_DPMS=$enableval
22315
if test "x$BUILD_DPMS" = "xyes"; then
22317
BUILD_DPMS_FALSE='#'
22319
BUILD_DPMS_TRUE='#'
22326
# Check whether --enable-glx was given.
22327
if test "${enable_glx+set}" = set; then
22328
enableval=$enable_glx; BUILD_GLX=$enableval
22334
if test "x$BUILD_GLX" = "xyes"; then
22336
BUILD_GLX_FALSE='#'
22345
# Check whether --enable-randr was given.
22346
if test "${enable_randr+set}" = set; then
22347
enableval=$enable_randr; BUILD_RANDR=$enableval
22353
if test "x$BUILD_RANDR" = "xyes"; then
22355
BUILD_RANDR_FALSE='#'
22357
BUILD_RANDR_TRUE='#'
22364
# Check whether --enable-record was given.
22365
if test "${enable_record+set}" = set; then
22366
enableval=$enable_record; BUILD_RECORD=$enableval
22372
if test "x$BUILD_RECORD" = "xyes"; then
22374
BUILD_RECORD_FALSE='#'
22376
BUILD_RECORD_TRUE='#'
22377
BUILD_RECORD_FALSE=
22383
# Check whether --enable-render was given.
22384
if test "${enable_render+set}" = set; then
22385
enableval=$enable_render; BUILD_RENDER=$enableval
22391
if test "x$BUILD_RENDER" = "xyes"; then
22393
BUILD_RENDER_FALSE='#'
22395
BUILD_RENDER_TRUE='#'
22396
BUILD_RENDER_FALSE=
22402
# Check whether --enable-resource was given.
22403
if test "${enable_resource+set}" = set; then
22404
enableval=$enable_resource; BUILD_RESOURCE=$enableval
22406
BUILD_RESOURCE="yes"
22410
if test "x$BUILD_RESOURCE" = "xyes"; then
22411
BUILD_RESOURCE_TRUE=
22412
BUILD_RESOURCE_FALSE='#'
22414
BUILD_RESOURCE_TRUE='#'
22415
BUILD_RESOURCE_FALSE=
22421
# Check whether --enable-screensaver was given.
22422
if test "${enable_screensaver+set}" = set; then
22423
enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
22425
BUILD_SCREENSAVER="yes"
22429
if test "x$BUILD_SCREENSAVER" = "xyes"; then
22430
BUILD_SCREENSAVER_TRUE=
22431
BUILD_SCREENSAVER_FALSE='#'
22433
BUILD_SCREENSAVER_TRUE='#'
22434
BUILD_SCREENSAVER_FALSE=
22440
# Check whether --enable-shape was given.
22441
if test "${enable_shape+set}" = set; then
22442
enableval=$enable_shape; BUILD_SHAPE=$enableval
22448
if test "x$BUILD_SHAPE" = "xyes"; then
22450
BUILD_SHAPE_FALSE='#'
22452
BUILD_SHAPE_TRUE='#'
22459
# Check whether --enable-shm was given.
22460
if test "${enable_shm+set}" = set; then
22461
enableval=$enable_shm; BUILD_SHM=$enableval
22467
if test "x$BUILD_SHM" = "xyes"; then
22469
BUILD_SHM_FALSE='#'
22478
# Check whether --enable-sync was given.
22479
if test "${enable_sync+set}" = set; then
22480
enableval=$enable_sync; BUILD_SYNC=$enableval
22486
if test "x$BUILD_SYNC" = "xyes"; then
22488
BUILD_SYNC_FALSE='#'
22490
BUILD_SYNC_TRUE='#'
22497
# Check whether --enable-xevie was given.
22498
if test "${enable_xevie+set}" = set; then
22499
enableval=$enable_xevie; BUILD_XEVIE=$enableval
22505
if test "x$BUILD_XEVIE" = "xyes"; then
22507
BUILD_XEVIE_FALSE='#'
22509
BUILD_XEVIE_TRUE='#'
22516
# Check whether --enable-xfixes was given.
22517
if test "${enable_xfixes+set}" = set; then
22518
enableval=$enable_xfixes; BUILD_XFIXES=$enableval
22524
if test "x$BUILD_XFIXES" = "xyes"; then
22526
BUILD_XFIXES_FALSE='#'
22528
BUILD_XFIXES_TRUE='#'
22529
BUILD_XFIXES_FALSE=
22535
# Check whether --enable-xfree86-dri was given.
22536
if test "${enable_xfree86_dri+set}" = set; then
22537
enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
22539
BUILD_XFREE86_DRI="yes"
22543
if test "x$BUILD_XFREE86_DRI" = "xyes"; then
22544
BUILD_XFREE86_DRI_TRUE=
22545
BUILD_XFREE86_DRI_FALSE='#'
22547
BUILD_XFREE86_DRI_TRUE='#'
22548
BUILD_XFREE86_DRI_FALSE=
22554
# Check whether --enable-xinerama was given.
22555
if test "${enable_xinerama+set}" = set; then
22556
enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
22558
BUILD_XINERAMA="yes"
22562
if test "x$BUILD_XINERAMA" = "xyes"; then
22563
BUILD_XINERAMA_TRUE=
22564
BUILD_XINERAMA_FALSE='#'
22566
BUILD_XINERAMA_TRUE='#'
22567
BUILD_XINERAMA_FALSE=
22573
# Check whether --enable-xinput was given.
22574
if test "${enable_xinput+set}" = set; then
22575
enableval=$enable_xinput; BUILD_XINPUT=$enableval
22581
if test "x$BUILD_XINPUT" = "xyes"; then
22583
BUILD_XINPUT_FALSE='#'
22585
BUILD_XINPUT_TRUE='#'
22586
BUILD_XINPUT_FALSE=
22592
# Check whether --enable-xprint was given.
22593
if test "${enable_xprint+set}" = set; then
22594
enableval=$enable_xprint; BUILD_XPRINT=$enableval
22600
if test "x$BUILD_XPRINT" = "xyes"; then
22602
BUILD_XPRINT_FALSE='#'
22604
BUILD_XPRINT_TRUE='#'
22605
BUILD_XPRINT_FALSE=
22611
# Check whether --enable-selinux was given.
22612
if test "${enable_selinux+set}" = set; then
22613
enableval=$enable_selinux; BUILD_SELINUX=$enableval
22619
if test "x$BUILD_SELINUX" = "xyes"; then
22620
BUILD_SELINUX_TRUE=
22621
BUILD_SELINUX_FALSE='#'
22623
BUILD_SELINUX_TRUE='#'
22624
BUILD_SELINUX_FALSE=
22630
# Check whether --enable-xtest was given.
22631
if test "${enable_xtest+set}" = set; then
22632
enableval=$enable_xtest; BUILD_XTEST=$enableval
22638
if test "x$BUILD_XTEST" = "xyes"; then
22640
BUILD_XTEST_FALSE='#'
22642
BUILD_XTEST_TRUE='#'
22649
# Check whether --enable-xv was given.
22650
if test "${enable_xv+set}" = set; then
22651
enableval=$enable_xv; BUILD_XV=$enableval
22657
if test "x$BUILD_XV" = "xyes"; then
22668
# Check whether --enable-xvmc was given.
22669
if test "${enable_xvmc+set}" = set; then
22670
enableval=$enable_xvmc; BUILD_XVMC=$enableval
22676
if test "x$BUILD_XVMC" = "xyes"; then
22678
BUILD_XVMC_FALSE='#'
22680
BUILD_XVMC_TRUE='#'
22687
# Check whether --with-launchd was given.
22688
if test "${with_launchd+set}" = set; then
22689
withval=$with_launchd; LAUNCHD=$withval
22694
if test "x$LAUNCHD" = xauto; then
22696
# Extract the first word of "launchd", so it can be a program name with args.
22697
set dummy launchd; ac_word=$2
22698
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22700
if test "${ac_cv_prog_LAUNCHD+set}" = set; then
22701
echo $ECHO_N "(cached) $ECHO_C" >&6
22703
if test -n "$LAUNCHD"; then
22704
ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
22706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22707
for as_dir in $PATH
22710
test -z "$as_dir" && as_dir=.
22711
for ac_exec_ext in '' $ac_executable_extensions; do
22712
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22713
ac_cv_prog_LAUNCHD="yes"
22714
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22721
test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
22724
LAUNCHD=$ac_cv_prog_LAUNCHD
22725
if test -n "$LAUNCHD"; then
22726
{ echo "$as_me:$LINENO: result: $LAUNCHD" >&5
22727
echo "${ECHO_T}$LAUNCHD" >&6; }
22729
{ echo "$as_me:$LINENO: result: no" >&5
22730
echo "${ECHO_T}no" >&6; }
22736
if test "x$LAUNCHD" = xyes ; then
22738
cat >>confdefs.h <<\_ACEOF
22739
#define HAVE_LAUNCHD 1
22744
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile"
22747
ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc"
22750
ac_config_files="$ac_config_files doc/xcb.doxygen"
22753
cat >confcache <<\_ACEOF
22754
# This file is a shell script that caches the results of configure
22755
# tests run on this system so they can be shared between configure
22756
# scripts and configure runs, see configure's option --config-cache.
22757
# It is not useful on other systems. If it contains results you don't
22758
# want to keep, you may remove or edit it.
22760
# config.status only pays attention to the cache file if you give it
22761
# the --recheck option to rerun configure.
22763
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22764
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22765
# following values.
22769
# The following way of writing the cache mishandles newlines in values,
22770
# but we know of no workaround that is simple, portable, and efficient.
22771
# So, we kill variables containing newlines.
22772
# Ultrix sh set writes to stderr and can't be redirected directly,
22773
# and sets the high bit in the cache file unless we assign to the vars.
22775
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22776
eval ac_val=\$$ac_var
22780
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22781
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22784
_ | IFS | as_nl) ;; #(
22785
*) $as_unset $ac_var ;;
22791
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22792
*${as_nl}ac_space=\ *)
22793
# `set' does not quote correctly, so add quotes (double-quote
22794
# substitution turns \\\\ into \\, and sed turns \\ into \).
22797
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22800
# `set' quotes correctly as required by POSIX, so do not add quotes.
22801
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22810
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22812
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22814
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22815
if test -w "$cache_file"; then
22816
test "x$cache_file" != "x/dev/null" &&
22817
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
22818
echo "$as_me: updating cache $cache_file" >&6;}
22819
cat confcache >$cache_file
22821
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22822
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22827
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22828
# Let make expand exec_prefix.
22829
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22831
DEFS=-DHAVE_CONFIG_H
22835
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22836
# 1. Remove the extension, and $U if already installed.
22837
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22838
ac_i=`echo "$ac_i" | sed "$ac_script"`
22839
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22840
# will be set to the directory where LIBOBJS objects are built.
22841
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22842
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22844
LIBOBJS=$ac_libobjs
22846
LTLIBOBJS=$ac_ltlibobjs
22849
if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
22850
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_CHECK\" was never defined.
22851
Usually this means the macro was only invoked conditionally." >&5
22852
echo "$as_me: error: conditional \"HAVE_CHECK\" was never defined.
22853
Usually this means the macro was only invoked conditionally." >&2;}
22854
{ (exit 1); exit 1; }; }
22856
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22857
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22858
Usually this means the macro was only invoked conditionally." >&5
22859
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22860
Usually this means the macro was only invoked conditionally." >&2;}
22861
{ (exit 1); exit 1; }; }
22863
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22864
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22865
Usually this means the macro was only invoked conditionally." >&5
22866
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22867
Usually this means the macro was only invoked conditionally." >&2;}
22868
{ (exit 1); exit 1; }; }
22870
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22871
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22872
Usually this means the macro was only invoked conditionally." >&5
22873
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22874
Usually this means the macro was only invoked conditionally." >&2;}
22875
{ (exit 1); exit 1; }; }
22877
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22878
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22879
Usually this means the macro was only invoked conditionally." >&5
22880
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22881
Usually this means the macro was only invoked conditionally." >&2;}
22882
{ (exit 1); exit 1; }; }
22884
if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
22885
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
22886
Usually this means the macro was only invoked conditionally." >&5
22887
echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
22888
Usually this means the macro was only invoked conditionally." >&2;}
22889
{ (exit 1); exit 1; }; }
22891
if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
22892
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_COMPOSITE\" was never defined.
22893
Usually this means the macro was only invoked conditionally." >&5
22894
echo "$as_me: error: conditional \"BUILD_COMPOSITE\" was never defined.
22895
Usually this means the macro was only invoked conditionally." >&2;}
22896
{ (exit 1); exit 1; }; }
22898
if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
22899
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_DAMAGE\" was never defined.
22900
Usually this means the macro was only invoked conditionally." >&5
22901
echo "$as_me: error: conditional \"BUILD_DAMAGE\" was never defined.
22902
Usually this means the macro was only invoked conditionally." >&2;}
22903
{ (exit 1); exit 1; }; }
22905
if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
22906
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_DPMS\" was never defined.
22907
Usually this means the macro was only invoked conditionally." >&5
22908
echo "$as_me: error: conditional \"BUILD_DPMS\" was never defined.
22909
Usually this means the macro was only invoked conditionally." >&2;}
22910
{ (exit 1); exit 1; }; }
22912
if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
22913
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_GLX\" was never defined.
22914
Usually this means the macro was only invoked conditionally." >&5
22915
echo "$as_me: error: conditional \"BUILD_GLX\" was never defined.
22916
Usually this means the macro was only invoked conditionally." >&2;}
22917
{ (exit 1); exit 1; }; }
22919
if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
22920
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_RANDR\" was never defined.
22921
Usually this means the macro was only invoked conditionally." >&5
22922
echo "$as_me: error: conditional \"BUILD_RANDR\" was never defined.
22923
Usually this means the macro was only invoked conditionally." >&2;}
22924
{ (exit 1); exit 1; }; }
22926
if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
22927
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_RECORD\" was never defined.
22928
Usually this means the macro was only invoked conditionally." >&5
22929
echo "$as_me: error: conditional \"BUILD_RECORD\" was never defined.
22930
Usually this means the macro was only invoked conditionally." >&2;}
22931
{ (exit 1); exit 1; }; }
22933
if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
22934
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_RENDER\" was never defined.
22935
Usually this means the macro was only invoked conditionally." >&5
22936
echo "$as_me: error: conditional \"BUILD_RENDER\" was never defined.
22937
Usually this means the macro was only invoked conditionally." >&2;}
22938
{ (exit 1); exit 1; }; }
22940
if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
22941
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_RESOURCE\" was never defined.
22942
Usually this means the macro was only invoked conditionally." >&5
22943
echo "$as_me: error: conditional \"BUILD_RESOURCE\" was never defined.
22944
Usually this means the macro was only invoked conditionally." >&2;}
22945
{ (exit 1); exit 1; }; }
22947
if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
22948
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SCREENSAVER\" was never defined.
22949
Usually this means the macro was only invoked conditionally." >&5
22950
echo "$as_me: error: conditional \"BUILD_SCREENSAVER\" was never defined.
22951
Usually this means the macro was only invoked conditionally." >&2;}
22952
{ (exit 1); exit 1; }; }
22954
if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
22955
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SHAPE\" was never defined.
22956
Usually this means the macro was only invoked conditionally." >&5
22957
echo "$as_me: error: conditional \"BUILD_SHAPE\" was never defined.
22958
Usually this means the macro was only invoked conditionally." >&2;}
22959
{ (exit 1); exit 1; }; }
22961
if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
22962
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SHM\" was never defined.
22963
Usually this means the macro was only invoked conditionally." >&5
22964
echo "$as_me: error: conditional \"BUILD_SHM\" was never defined.
22965
Usually this means the macro was only invoked conditionally." >&2;}
22966
{ (exit 1); exit 1; }; }
22968
if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
22969
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SYNC\" was never defined.
22970
Usually this means the macro was only invoked conditionally." >&5
22971
echo "$as_me: error: conditional \"BUILD_SYNC\" was never defined.
22972
Usually this means the macro was only invoked conditionally." >&2;}
22973
{ (exit 1); exit 1; }; }
22975
if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
22976
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XEVIE\" was never defined.
22977
Usually this means the macro was only invoked conditionally." >&5
22978
echo "$as_me: error: conditional \"BUILD_XEVIE\" was never defined.
22979
Usually this means the macro was only invoked conditionally." >&2;}
22980
{ (exit 1); exit 1; }; }
22982
if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
22983
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XFIXES\" was never defined.
22984
Usually this means the macro was only invoked conditionally." >&5
22985
echo "$as_me: error: conditional \"BUILD_XFIXES\" was never defined.
22986
Usually this means the macro was only invoked conditionally." >&2;}
22987
{ (exit 1); exit 1; }; }
22989
if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
22990
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XFREE86_DRI\" was never defined.
22991
Usually this means the macro was only invoked conditionally." >&5
22992
echo "$as_me: error: conditional \"BUILD_XFREE86_DRI\" was never defined.
22993
Usually this means the macro was only invoked conditionally." >&2;}
22994
{ (exit 1); exit 1; }; }
22996
if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
22997
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XINERAMA\" was never defined.
22998
Usually this means the macro was only invoked conditionally." >&5
22999
echo "$as_me: error: conditional \"BUILD_XINERAMA\" was never defined.
23000
Usually this means the macro was only invoked conditionally." >&2;}
23001
{ (exit 1); exit 1; }; }
23003
if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
23004
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XINPUT\" was never defined.
23005
Usually this means the macro was only invoked conditionally." >&5
23006
echo "$as_me: error: conditional \"BUILD_XINPUT\" was never defined.
23007
Usually this means the macro was only invoked conditionally." >&2;}
23008
{ (exit 1); exit 1; }; }
23010
if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
23011
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XPRINT\" was never defined.
23012
Usually this means the macro was only invoked conditionally." >&5
23013
echo "$as_me: error: conditional \"BUILD_XPRINT\" was never defined.
23014
Usually this means the macro was only invoked conditionally." >&2;}
23015
{ (exit 1); exit 1; }; }
23017
if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
23018
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_SELINUX\" was never defined.
23019
Usually this means the macro was only invoked conditionally." >&5
23020
echo "$as_me: error: conditional \"BUILD_SELINUX\" was never defined.
23021
Usually this means the macro was only invoked conditionally." >&2;}
23022
{ (exit 1); exit 1; }; }
23024
if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
23025
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XTEST\" was never defined.
23026
Usually this means the macro was only invoked conditionally." >&5
23027
echo "$as_me: error: conditional \"BUILD_XTEST\" was never defined.
23028
Usually this means the macro was only invoked conditionally." >&2;}
23029
{ (exit 1); exit 1; }; }
23031
if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
23032
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XV\" was never defined.
23033
Usually this means the macro was only invoked conditionally." >&5
23034
echo "$as_me: error: conditional \"BUILD_XV\" was never defined.
23035
Usually this means the macro was only invoked conditionally." >&2;}
23036
{ (exit 1); exit 1; }; }
23038
if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
23039
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_XVMC\" was never defined.
23040
Usually this means the macro was only invoked conditionally." >&5
23041
echo "$as_me: error: conditional \"BUILD_XVMC\" was never defined.
23042
Usually this means the macro was only invoked conditionally." >&2;}
23043
{ (exit 1); exit 1; }; }
23046
: ${CONFIG_STATUS=./config.status}
23047
ac_clean_files_save=$ac_clean_files
23048
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23049
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23050
echo "$as_me: creating $CONFIG_STATUS" >&6;}
23051
cat >$CONFIG_STATUS <<_ACEOF
23053
# Generated by $as_me.
23054
# Run this file to recreate the current configuration.
23055
# Compiler output produced by configure, useful for debugging
23056
# configure, is in config.log if it exists.
23059
ac_cs_recheck=false
23061
SHELL=\${CONFIG_SHELL-$SHELL}
23064
cat >>$CONFIG_STATUS <<\_ACEOF
23065
## --------------------- ##
23066
## M4sh Initialization. ##
23067
## --------------------- ##
23069
# Be more Bourne compatible
23070
DUALCASE=1; export DUALCASE # for MKS sh
23071
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23074
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23075
# is contrary to our usage. Disable this feature.
23076
alias -g '${1+"$@"}'='"$@"'
23077
setopt NO_GLOB_SUBST
23079
case `(set -o) 2>/dev/null` in
23080
*posix*) set -o posix ;;
23089
# Avoid depending upon Character Ranges.
23090
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23091
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23092
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23093
as_cr_digits='0123456789'
23094
as_cr_alnum=$as_cr_Letters$as_cr_digits
23096
# The user is always right.
23097
if test "${PATH_SEPARATOR+set}" != set; then
23098
echo "#! /bin/sh" >conf$$.sh
23099
echo "exit 0" >>conf$$.sh
23101
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23109
# Support unset when possible.
23110
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23118
# We need space, tab and new line, in precisely that order. Quoting is
23119
# there to prevent editors from complaining about space-tab.
23120
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23121
# splitting by setting IFS to empty value.)
23126
# Find who we are. Look in the path if we contain no directory separator.
23128
*[\\/]* ) as_myself=$0 ;;
23129
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23130
for as_dir in $PATH
23133
test -z "$as_dir" && as_dir=.
23134
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23140
# We did not find ourselves, most probably we were run as `sh COMMAND'
23141
# in which case we are not to be found in the path.
23142
if test "x$as_myself" = x; then
23145
if test ! -f "$as_myself"; then
23146
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23147
{ (exit 1); exit 1; }
23150
# Work around bugs in pre-3.0 UWIN ksh.
23151
for as_var in ENV MAIL MAILPATH
23152
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23160
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23161
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23162
LC_TELEPHONE LC_TIME
23164
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23165
eval $as_var=C; export $as_var
23167
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23171
# Required to use basename.
23172
if expr a : '\(a\)' >/dev/null 2>&1 &&
23173
test "X`expr 00001 : '.*\(...\)'`" = X001; then
23179
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23180
as_basename=basename
23186
# Name of the executable.
23187
as_me=`$as_basename -- "$0" ||
23188
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23189
X"$0" : 'X\(//\)$' \| \
23190
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23192
sed '/^.*\/\([^/][^/]*\)\/*$/{
23211
as_lineno_1=$LINENO
23212
as_lineno_2=$LINENO
23213
test "x$as_lineno_1" != "x$as_lineno_2" &&
23214
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23216
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23217
# uniformly replaced by the line number. The first 'sed' inserts a
23218
# line-number line after each line using $LINENO; the second 'sed'
23219
# does the real work. The second script uses 'N' to pair each
23220
# line-number line with the line containing $LINENO, and appends
23221
# trailing '-' during substitution so that $LINENO is not a special
23222
# case at line end.
23223
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23224
# scripts with optimization help from Paolo Bonzini. Blame Lee
23225
# E. McMahon (1931-1989) for sed's syntax. :-)
23237
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23240
' >$as_me.lineno &&
23241
chmod +x "$as_me.lineno" ||
23242
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23243
{ (exit 1); exit 1; }; }
23245
# Don't try to exec as it changes $[0], causing all sort of problems
23246
# (the dirname of $[0] is not the place where we might find the
23247
# original and so on. Autoconf is especially sensitive to this).
23248
. "./$as_me.lineno"
23249
# Exit status is that of the last command.
23254
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23260
ECHO_C= ECHO_N= ECHO_T=
23261
case `echo -n x` in
23263
case `echo 'x\c'` in
23264
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
23271
if expr a : '\(a\)' >/dev/null 2>&1 &&
23272
test "X`expr 00001 : '.*\(...\)'`" = X001; then
23278
rm -f conf$$ conf$$.exe conf$$.file
23279
if test -d conf$$.dir; then
23280
rm -f conf$$.dir/conf$$.file
23286
if ln -s conf$$.file conf$$ 2>/dev/null; then
23288
# ... but there are two gotchas:
23289
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23290
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23291
# In both cases, we have to default to `cp -p'.
23292
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23294
elif ln conf$$.file conf$$ 2>/dev/null; then
23299
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23300
rmdir conf$$.dir 2>/dev/null
23302
if mkdir -p . 2>/dev/null; then
23305
test -d ./-p && rmdir ./-p
23309
if test -x / >/dev/null 2>&1; then
23310
as_test_x='test -x'
23312
if ls -dL / >/dev/null 2>&1; then
23319
if test -d "$1"; then
23325
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23326
???[sx]*):;;*)false;;esac;fi
23330
as_executable_p=$as_test_x
23332
# Sed expression to map a string onto a valid CPP name.
23333
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23335
# Sed expression to map a string onto a valid variable name.
23336
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23341
# Save the log message, to keep $[0] and so on meaningful, and to
23342
# report actual input values of CONFIG_FILES etc. instead of their
23343
# values after options handling.
23345
This file was extended by libxcb $as_me 1.2, which was
23346
generated by GNU Autoconf 2.61. Invocation command line was
23348
CONFIG_FILES = $CONFIG_FILES
23349
CONFIG_HEADERS = $CONFIG_HEADERS
23350
CONFIG_LINKS = $CONFIG_LINKS
23351
CONFIG_COMMANDS = $CONFIG_COMMANDS
23354
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23359
cat >>$CONFIG_STATUS <<_ACEOF
23360
# Files that config.status was made for.
23361
config_files="$ac_config_files"
23362
config_headers="$ac_config_headers"
23363
config_commands="$ac_config_commands"
23367
cat >>$CONFIG_STATUS <<\_ACEOF
23369
\`$as_me' instantiates files from templates according to the
23370
current configuration.
23372
Usage: $0 [OPTIONS] [FILE]...
23374
-h, --help print this help, then exit
23375
-V, --version print version number and configuration settings, then exit
23376
-q, --quiet do not print progress messages
23377
-d, --debug don't remove temporary files
23378
--recheck update $as_me by reconfiguring in the same conditions
23379
--file=FILE[:TEMPLATE]
23380
instantiate the configuration file FILE
23381
--header=FILE[:TEMPLATE]
23382
instantiate the configuration header FILE
23384
Configuration files:
23387
Configuration headers:
23390
Configuration commands:
23393
Report bugs to <bug-autoconf@gnu.org>."
23396
cat >>$CONFIG_STATUS <<_ACEOF
23398
libxcb config.status 1.2
23399
configured by $0, generated by GNU Autoconf 2.61,
23400
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23402
Copyright (C) 2006 Free Software Foundation, Inc.
23403
This config.status script is free software; the Free Software Foundation
23404
gives unlimited permission to copy, distribute and modify it."
23412
cat >>$CONFIG_STATUS <<\_ACEOF
23413
# If no file are specified by the user, then we need to provide default
23414
# value. By we need to know if files were specified by the user.
23420
ac_option=`expr "X$1" : 'X\([^=]*\)='`
23421
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23432
# Handling of the options.
23433
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23435
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23436
echo "$ac_cs_version"; exit ;;
23437
--debug | --debu | --deb | --de | --d | -d )
23439
--file | --fil | --fi | --f )
23441
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23442
ac_need_defaults=false;;
23443
--header | --heade | --head | --hea )
23445
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23446
ac_need_defaults=false;;
23448
# Conflict between --help and --header
23449
{ echo "$as_me: error: ambiguous option: $1
23450
Try \`$0 --help' for more information." >&2
23451
{ (exit 1); exit 1; }; };;
23452
--help | --hel | -h )
23453
echo "$ac_cs_usage"; exit ;;
23454
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23455
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23458
# This is an error.
23459
-*) { echo "$as_me: error: unrecognized option: $1
23460
Try \`$0 --help' for more information." >&2
23461
{ (exit 1); exit 1; }; } ;;
23463
*) ac_config_targets="$ac_config_targets $1"
23464
ac_need_defaults=false ;;
23470
ac_configure_extra_args=
23472
if $ac_cs_silent; then
23474
ac_configure_extra_args="$ac_configure_extra_args --silent"
23478
cat >>$CONFIG_STATUS <<_ACEOF
23479
if \$ac_cs_recheck; then
23480
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23481
CONFIG_SHELL=$SHELL
23482
export CONFIG_SHELL
23483
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23487
cat >>$CONFIG_STATUS <<\_ACEOF
23491
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23492
## Running $as_me. ##
23498
cat >>$CONFIG_STATUS <<_ACEOF
23502
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23506
cat >>$CONFIG_STATUS <<\_ACEOF
23508
# Handling of arguments.
23509
for ac_config_target in $ac_config_targets
23511
case $ac_config_target in
23512
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
23513
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23514
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23515
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23516
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23517
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23518
"xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
23519
"xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
23520
"xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
23521
"xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
23522
"xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
23523
"xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
23524
"xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
23525
"xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
23526
"xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
23527
"xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
23528
"xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
23529
"xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
23530
"xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
23531
"xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
23532
"xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
23533
"xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
23534
"xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
23535
"xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
23536
"xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
23537
"xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
23538
"xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
23539
"xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
23540
"xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
23541
"doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
23543
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23544
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23545
{ (exit 1); exit 1; }; };;
23550
# If the user did not use the arguments to specify the items to instantiate,
23551
# then the envvar interface is used. Set only those that are not.
23552
# We use the long form for the default assignment because of an extremely
23553
# bizarre bug on SunOS 4.1.3.
23554
if $ac_need_defaults; then
23555
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23556
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23557
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23560
# Have a temporary directory for convenience. Make it in the build tree
23561
# simply because there is no reason against having it here, and in addition,
23562
# creating and moving files from /tmp can sometimes cause problems.
23563
# Hook for its removal unless debugging.
23564
# Note that there is a small window in which the directory will not be cleaned:
23565
# after its creation but before its name has been assigned to `$tmp'.
23569
trap 'exit_status=$?
23570
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23572
trap '{ (exit 1); exit 1; }' 1 2 13 15
23574
# Create a (secure) tmp directory for tmp files.
23577
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23578
test -n "$tmp" && test -d "$tmp"
23581
tmp=./conf$$-$RANDOM
23582
(umask 077 && mkdir "$tmp")
23585
echo "$me: cannot create a temporary directory in ." >&2
23586
{ (exit 1); exit 1; }
23590
# Set up the sed scripts for CONFIG_FILES section.
23593
# No need to generate the scripts if there are no CONFIG_FILES.
23594
# This happens for instance when ./config.status config.h
23595
if test -n "$CONFIG_FILES"; then
23602
for ac_last_try in false false false false false :; do
23603
cat >conf$$subs.sed <<_ACEOF
23604
SHELL!$SHELL$ac_delim
23605
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23606
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23607
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23608
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23609
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23610
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23611
exec_prefix!$exec_prefix$ac_delim
23612
prefix!$prefix$ac_delim
23613
program_transform_name!$program_transform_name$ac_delim
23614
bindir!$bindir$ac_delim
23615
sbindir!$sbindir$ac_delim
23616
libexecdir!$libexecdir$ac_delim
23617
datarootdir!$datarootdir$ac_delim
23618
datadir!$datadir$ac_delim
23619
sysconfdir!$sysconfdir$ac_delim
23620
sharedstatedir!$sharedstatedir$ac_delim
23621
localstatedir!$localstatedir$ac_delim
23622
includedir!$includedir$ac_delim
23623
oldincludedir!$oldincludedir$ac_delim
23624
docdir!$docdir$ac_delim
23625
infodir!$infodir$ac_delim
23626
htmldir!$htmldir$ac_delim
23627
dvidir!$dvidir$ac_delim
23628
pdfdir!$pdfdir$ac_delim
23629
psdir!$psdir$ac_delim
23630
libdir!$libdir$ac_delim
23631
localedir!$localedir$ac_delim
23632
mandir!$mandir$ac_delim
23633
DEFS!$DEFS$ac_delim
23634
ECHO_C!$ECHO_C$ac_delim
23635
ECHO_N!$ECHO_N$ac_delim
23636
ECHO_T!$ECHO_T$ac_delim
23637
LIBS!$LIBS$ac_delim
23638
build_alias!$build_alias$ac_delim
23639
host_alias!$host_alias$ac_delim
23640
target_alias!$target_alias$ac_delim
23641
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23642
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23643
INSTALL_DATA!$INSTALL_DATA$ac_delim
23644
am__isrc!$am__isrc$ac_delim
23645
CYGPATH_W!$CYGPATH_W$ac_delim
23646
PACKAGE!$PACKAGE$ac_delim
23647
VERSION!$VERSION$ac_delim
23648
ACLOCAL!$ACLOCAL$ac_delim
23649
AUTOCONF!$AUTOCONF$ac_delim
23650
AUTOMAKE!$AUTOMAKE$ac_delim
23651
AUTOHEADER!$AUTOHEADER$ac_delim
23652
MAKEINFO!$MAKEINFO$ac_delim
23653
install_sh!$install_sh$ac_delim
23654
STRIP!$STRIP$ac_delim
23655
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23656
mkdir_p!$mkdir_p$ac_delim
23658
SET_MAKE!$SET_MAKE$ac_delim
23659
am__leading_dot!$am__leading_dot$ac_delim
23660
AMTAR!$AMTAR$ac_delim
23661
am__tar!$am__tar$ac_delim
23662
am__untar!$am__untar$ac_delim
23663
PYTHON!$PYTHON$ac_delim
23664
PYTHON_VERSION!$PYTHON_VERSION$ac_delim
23665
PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
23666
PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
23667
PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
23668
pythondir!$pythondir$ac_delim
23669
pkgpythondir!$pkgpythondir$ac_delim
23670
pyexecdir!$pyexecdir$ac_delim
23671
pkgpyexecdir!$pkgpyexecdir$ac_delim
23672
PKG_CONFIG!$PKG_CONFIG$ac_delim
23673
CHECK_CFLAGS!$CHECK_CFLAGS$ac_delim
23674
CHECK_LIBS!$CHECK_LIBS$ac_delim
23675
HAVE_CHECK_TRUE!$HAVE_CHECK_TRUE$ac_delim
23676
HAVE_CHECK_FALSE!$HAVE_CHECK_FALSE$ac_delim
23677
build!$build$ac_delim
23678
build_cpu!$build_cpu$ac_delim
23679
build_vendor!$build_vendor$ac_delim
23680
build_os!$build_os$ac_delim
23681
host!$host$ac_delim
23682
host_cpu!$host_cpu$ac_delim
23683
host_vendor!$host_vendor$ac_delim
23684
host_os!$host_os$ac_delim
23686
CFLAGS!$CFLAGS$ac_delim
23687
LDFLAGS!$LDFLAGS$ac_delim
23688
CPPFLAGS!$CPPFLAGS$ac_delim
23689
ac_ct_CC!$ac_ct_CC$ac_delim
23690
EXEEXT!$EXEEXT$ac_delim
23691
OBJEXT!$OBJEXT$ac_delim
23692
DEPDIR!$DEPDIR$ac_delim
23693
am__include!$am__include$ac_delim
23694
am__quote!$am__quote$ac_delim
23695
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23696
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23697
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23698
CCDEPMODE!$CCDEPMODE$ac_delim
23699
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23700
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23703
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23705
elif $ac_last_try; then
23706
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23707
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23708
{ (exit 1); exit 1; }; }
23710
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23714
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23715
if test -n "$ac_eof"; then
23716
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23717
ac_eof=`expr $ac_eof + 1`
23720
cat >>$CONFIG_STATUS <<_ACEOF
23721
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23722
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23725
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23726
s/^/s,@/; s/!/@,|#_!!_#|/
23729
s/'"$ac_delim"'$/,g/; t
23731
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23732
' >>$CONFIG_STATUS <conf$$subs.sed
23733
rm -f conf$$subs.sed
23734
cat >>$CONFIG_STATUS <<_ACEOF
23740
for ac_last_try in false false false false false :; do
23741
cat >conf$$subs.sed <<_ACEOF
23743
GREP!$GREP$ac_delim
23744
EGREP!$EGREP$ac_delim
23745
LN_S!$LN_S$ac_delim
23746
ECHO!$ECHO$ac_delim
23748
RANLIB!$RANLIB$ac_delim
23749
DSYMUTIL!$DSYMUTIL$ac_delim
23750
NMEDIT!$NMEDIT$ac_delim
23753
CXXFLAGS!$CXXFLAGS$ac_delim
23754
ac_ct_CXX!$ac_ct_CXX$ac_delim
23755
CXXDEPMODE!$CXXDEPMODE$ac_delim
23756
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23757
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23758
CXXCPP!$CXXCPP$ac_delim
23760
FFLAGS!$FFLAGS$ac_delim
23761
ac_ct_F77!$ac_ct_F77$ac_delim
23762
LIBTOOL!$LIBTOOL$ac_delim
23763
XSLTPROC!$XSLTPROC$ac_delim
23764
HTML_CHECK_RESULT!$HTML_CHECK_RESULT$ac_delim
23765
XCBPROTO_CFLAGS!$XCBPROTO_CFLAGS$ac_delim
23766
XCBPROTO_LIBS!$XCBPROTO_LIBS$ac_delim
23767
NEEDED_CFLAGS!$NEEDED_CFLAGS$ac_delim
23768
NEEDED_LIBS!$NEEDED_LIBS$ac_delim
23769
XDMCP_CFLAGS!$XDMCP_CFLAGS$ac_delim
23770
XDMCP_LIBS!$XDMCP_LIBS$ac_delim
23771
NEEDED!$NEEDED$ac_delim
23772
XCBPROTO_XCBINCLUDEDIR!$XCBPROTO_XCBINCLUDEDIR$ac_delim
23773
XCBPROTO_XCBPYTHONDIR!$XCBPROTO_XCBPYTHONDIR$ac_delim
23774
xcbincludedir!$xcbincludedir$ac_delim
23775
CWARNFLAGS!$CWARNFLAGS$ac_delim
23776
BUILD_DOCS!$BUILD_DOCS$ac_delim
23777
DOXYGEN!$DOXYGEN$ac_delim
23778
BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
23779
BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
23780
BUILD_COMPOSITE_TRUE!$BUILD_COMPOSITE_TRUE$ac_delim
23781
BUILD_COMPOSITE_FALSE!$BUILD_COMPOSITE_FALSE$ac_delim
23782
BUILD_DAMAGE_TRUE!$BUILD_DAMAGE_TRUE$ac_delim
23783
BUILD_DAMAGE_FALSE!$BUILD_DAMAGE_FALSE$ac_delim
23784
BUILD_DPMS_TRUE!$BUILD_DPMS_TRUE$ac_delim
23785
BUILD_DPMS_FALSE!$BUILD_DPMS_FALSE$ac_delim
23786
BUILD_GLX_TRUE!$BUILD_GLX_TRUE$ac_delim
23787
BUILD_GLX_FALSE!$BUILD_GLX_FALSE$ac_delim
23788
BUILD_RANDR_TRUE!$BUILD_RANDR_TRUE$ac_delim
23789
BUILD_RANDR_FALSE!$BUILD_RANDR_FALSE$ac_delim
23790
BUILD_RECORD_TRUE!$BUILD_RECORD_TRUE$ac_delim
23791
BUILD_RECORD_FALSE!$BUILD_RECORD_FALSE$ac_delim
23792
BUILD_RENDER_TRUE!$BUILD_RENDER_TRUE$ac_delim
23793
BUILD_RENDER_FALSE!$BUILD_RENDER_FALSE$ac_delim
23794
BUILD_RESOURCE_TRUE!$BUILD_RESOURCE_TRUE$ac_delim
23795
BUILD_RESOURCE_FALSE!$BUILD_RESOURCE_FALSE$ac_delim
23796
BUILD_SCREENSAVER_TRUE!$BUILD_SCREENSAVER_TRUE$ac_delim
23797
BUILD_SCREENSAVER_FALSE!$BUILD_SCREENSAVER_FALSE$ac_delim
23798
BUILD_SHAPE_TRUE!$BUILD_SHAPE_TRUE$ac_delim
23799
BUILD_SHAPE_FALSE!$BUILD_SHAPE_FALSE$ac_delim
23800
BUILD_SHM_TRUE!$BUILD_SHM_TRUE$ac_delim
23801
BUILD_SHM_FALSE!$BUILD_SHM_FALSE$ac_delim
23802
BUILD_SYNC_TRUE!$BUILD_SYNC_TRUE$ac_delim
23803
BUILD_SYNC_FALSE!$BUILD_SYNC_FALSE$ac_delim
23804
BUILD_XEVIE_TRUE!$BUILD_XEVIE_TRUE$ac_delim
23805
BUILD_XEVIE_FALSE!$BUILD_XEVIE_FALSE$ac_delim
23806
BUILD_XFIXES_TRUE!$BUILD_XFIXES_TRUE$ac_delim
23807
BUILD_XFIXES_FALSE!$BUILD_XFIXES_FALSE$ac_delim
23808
BUILD_XFREE86_DRI_TRUE!$BUILD_XFREE86_DRI_TRUE$ac_delim
23809
BUILD_XFREE86_DRI_FALSE!$BUILD_XFREE86_DRI_FALSE$ac_delim
23810
BUILD_XINERAMA_TRUE!$BUILD_XINERAMA_TRUE$ac_delim
23811
BUILD_XINERAMA_FALSE!$BUILD_XINERAMA_FALSE$ac_delim
23812
BUILD_XINPUT_TRUE!$BUILD_XINPUT_TRUE$ac_delim
23813
BUILD_XINPUT_FALSE!$BUILD_XINPUT_FALSE$ac_delim
23814
BUILD_XPRINT_TRUE!$BUILD_XPRINT_TRUE$ac_delim
23815
BUILD_XPRINT_FALSE!$BUILD_XPRINT_FALSE$ac_delim
23816
BUILD_SELINUX_TRUE!$BUILD_SELINUX_TRUE$ac_delim
23817
BUILD_SELINUX_FALSE!$BUILD_SELINUX_FALSE$ac_delim
23818
BUILD_XTEST_TRUE!$BUILD_XTEST_TRUE$ac_delim
23819
BUILD_XTEST_FALSE!$BUILD_XTEST_FALSE$ac_delim
23820
BUILD_XV_TRUE!$BUILD_XV_TRUE$ac_delim
23821
BUILD_XV_FALSE!$BUILD_XV_FALSE$ac_delim
23822
BUILD_XVMC_TRUE!$BUILD_XVMC_TRUE$ac_delim
23823
BUILD_XVMC_FALSE!$BUILD_XVMC_FALSE$ac_delim
23824
LAUNCHD!$LAUNCHD$ac_delim
23825
LIBOBJS!$LIBOBJS$ac_delim
23826
LTLIBOBJS!$LTLIBOBJS$ac_delim
23829
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
23831
elif $ac_last_try; then
23832
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23833
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23834
{ (exit 1); exit 1; }; }
23836
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23840
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23841
if test -n "$ac_eof"; then
23842
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23843
ac_eof=`expr $ac_eof + 1`
23846
cat >>$CONFIG_STATUS <<_ACEOF
23847
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23848
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23851
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23852
s/^/s,@/; s/!/@,|#_!!_#|/
23855
s/'"$ac_delim"'$/,g/; t
23857
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23858
' >>$CONFIG_STATUS <conf$$subs.sed
23859
rm -f conf$$subs.sed
23860
cat >>$CONFIG_STATUS <<_ACEOF
23867
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23868
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23869
# trailing colons and then remove the whole line if VPATH becomes empty
23870
# (actually we leave an empty line to preserve line numbers).
23871
if test "x$srcdir" = x.; then
23872
ac_vpsub='/^[ ]*VPATH[ ]*=/{
23873
s/:*\$(srcdir):*/:/
23874
s/:*\${srcdir}:*/:/
23876
s/^\([^=]*=[ ]*\):*/\1/
23882
cat >>$CONFIG_STATUS <<\_ACEOF
23883
fi # test -n "$CONFIG_FILES"
23886
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23889
:[FHLC]) ac_mode=$ac_tag; continue;;
23891
case $ac_mode$ac_tag in
23893
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23894
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23895
{ (exit 1); exit 1; }; };;
23896
:[FH]-) ac_tag=-:-;;
23897
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23914
-) ac_f="$tmp/stdin";;
23915
*) # Look for the file first in the build tree, then in the source tree
23916
# (if the path is not absolute). The absolute path cannot be DOS-style,
23917
# because $ac_f cannot contain `:'.
23921
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23923
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23924
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23925
{ (exit 1); exit 1; }; };;
23927
ac_file_inputs="$ac_file_inputs $ac_f"
23930
# Let's still pretend it is `configure' which instantiates (i.e., don't
23931
# use $as_me), people would be surprised to read:
23932
# /* config.h. Generated by config.status. */
23933
configure_input="Generated from "`IFS=:
23934
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23935
if test x"$ac_file" != x-; then
23936
configure_input="$ac_file. $configure_input"
23937
{ echo "$as_me:$LINENO: creating $ac_file" >&5
23938
echo "$as_me: creating $ac_file" >&6;}
23942
*:-:* | *:-) cat >"$tmp/stdin";;
23947
ac_dir=`$as_dirname -- "$ac_file" ||
23948
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23949
X"$ac_file" : 'X\(//\)[^/]' \| \
23950
X"$ac_file" : 'X\(//\)$' \| \
23951
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23953
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23957
/^X\(\/\/\)[^/].*/{
23972
-*) as_dir=./$as_dir;;
23974
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23978
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23979
*) as_qdir=$as_dir;;
23981
as_dirs="'$as_qdir' $as_dirs"
23982
as_dir=`$as_dirname -- "$as_dir" ||
23983
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23984
X"$as_dir" : 'X\(//\)[^/]' \| \
23985
X"$as_dir" : 'X\(//\)$' \| \
23986
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23988
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23992
/^X\(\/\/\)[^/].*/{
24005
test -d "$as_dir" && break
24007
test -z "$as_dirs" || eval "mkdir $as_dirs"
24008
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24009
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24010
{ (exit 1); exit 1; }; }; }
24014
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24016
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24017
# A ".." for each directory in $ac_dir_suffix.
24018
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24019
case $ac_top_builddir_sub in
24020
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24021
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24024
ac_abs_top_builddir=$ac_pwd
24025
ac_abs_builddir=$ac_pwd$ac_dir_suffix
24026
# for backward compatibility:
24027
ac_top_builddir=$ac_top_build_prefix
24030
.) # We are building in place.
24032
ac_top_srcdir=$ac_top_builddir_sub
24033
ac_abs_top_srcdir=$ac_pwd ;;
24034
[\\/]* | ?:[\\/]* ) # Absolute name.
24035
ac_srcdir=$srcdir$ac_dir_suffix;
24036
ac_top_srcdir=$srcdir
24037
ac_abs_top_srcdir=$srcdir ;;
24038
*) # Relative name.
24039
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24040
ac_top_srcdir=$ac_top_build_prefix$srcdir
24041
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24043
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24053
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24054
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24056
ac_MKDIR_P=$MKDIR_P
24058
[\\/$]* | ?:[\\/]* ) ;;
24059
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24063
cat >>$CONFIG_STATUS <<\_ACEOF
24064
# If the template does not know about datarootdir, expand it.
24065
# FIXME: This hack should be removed a few years after 2.60.
24066
ac_datarootdir_hack=; ac_datarootdir_seen=
24068
case `sed -n '/datarootdir/ {
24077
' $ac_file_inputs` in
24078
*datarootdir*) ac_datarootdir_seen=yes;;
24079
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24080
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24081
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24083
cat >>$CONFIG_STATUS <<_ACEOF
24084
ac_datarootdir_hack='
24085
s&@datadir@&$datadir&g
24086
s&@docdir@&$docdir&g
24087
s&@infodir@&$infodir&g
24088
s&@localedir@&$localedir&g
24089
s&@mandir@&$mandir&g
24090
s&\\\${datarootdir}&$datarootdir&g' ;;
24094
# Neutralize VPATH when `$srcdir' = `.'.
24095
# Shell code in configure.ac might set extrasub.
24096
# FIXME: do we really want to maintain this feature?
24097
cat >>$CONFIG_STATUS <<_ACEOF
24101
cat >>$CONFIG_STATUS <<\_ACEOF
24103
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24104
s&@configure_input@&$configure_input&;t t
24105
s&@top_builddir@&$ac_top_builddir_sub&;t t
24106
s&@srcdir@&$ac_srcdir&;t t
24107
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24108
s&@top_srcdir@&$ac_top_srcdir&;t t
24109
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24110
s&@builddir@&$ac_builddir&;t t
24111
s&@abs_builddir@&$ac_abs_builddir&;t t
24112
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24113
s&@INSTALL@&$ac_INSTALL&;t t
24114
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24115
$ac_datarootdir_hack
24116
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24118
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24119
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24120
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24121
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24122
which seems to be undefined. Please make sure it is defined." >&5
24123
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24124
which seems to be undefined. Please make sure it is defined." >&2;}
24128
-) cat "$tmp/out"; rm -f "$tmp/out";;
24129
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24138
# Transform confdefs.h into a sed script `conftest.defines', that
24139
# substitutes the proper values into config.h.in to produce config.h.
24140
rm -f conftest.defines conftest.tail
24141
# First, append a space to every undef/define line, to ease matching.
24142
echo 's/$/ /' >conftest.defines
24143
# Then, protect against being on the right side of a sed subst, or in
24144
# an unquoted here document, in config.status. If some macros were
24145
# called several times there might be several #defines for the same
24146
# symbol, which is useless. But do not sort them, since the last
24147
# AC_DEFINE must be honored.
24148
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24149
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24150
# NAME is the cpp macro being defined, VALUE is the value it is being given.
24151
# PARAMS is the parameter list in the macro definition--in most cases, it's
24152
# just an empty string.
24153
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24154
ac_dB='\\)[ (].*,\\1define\\2'
24162
s/^[ ]*#[ ]*define[ ][ ]*//
24167
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24168
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24169
' >>conftest.defines
24171
# Remove the space that was appended to ease matching.
24172
# Then replace #undef with comments. This is necessary, for
24173
# example, in the case of _POSIX_SOURCE, which is predefined and required
24174
# on some systems where configure will not decide to define it.
24175
# (The regexp can be short, since the line contains either #define or #undef.)
24177
s,^[ #]*u.*,/* & */,' >>conftest.defines
24179
# Break up conftest.defines:
24180
ac_max_sed_lines=50
24182
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24183
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24184
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24186
ac_in='$ac_file_inputs'
24187
ac_out='"$tmp/out1"'
24188
ac_nxt='"$tmp/out2"'
24192
# Write a here document:
24193
cat >>$CONFIG_STATUS <<_ACEOF
24194
# First, check the format of the line:
24195
cat >"\$tmp/defines.sed" <<\\CEOF
24196
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24197
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24201
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24203
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24204
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24205
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24206
grep . conftest.tail >/dev/null || break
24207
rm -f conftest.defines
24208
mv conftest.tail conftest.defines
24210
rm -f conftest.defines conftest.tail
24212
echo "ac_result=$ac_in" >>$CONFIG_STATUS
24213
cat >>$CONFIG_STATUS <<\_ACEOF
24214
if test x"$ac_file" != x-; then
24215
echo "/* $configure_input */" >"$tmp/config.h"
24216
cat "$ac_result" >>"$tmp/config.h"
24217
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24218
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24219
echo "$as_me: $ac_file is unchanged" >&6;}
24222
mv "$tmp/config.h" $ac_file
24225
echo "/* $configure_input */"
24229
# Compute $ac_file's index in $config_headers.
24232
for _am_header in $config_headers :; do
24233
case $_am_header in
24234
$_am_arg | $_am_arg:* )
24237
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
24240
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24241
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24242
X"$_am_arg" : 'X\(//\)[^/]' \| \
24243
X"$_am_arg" : 'X\(//\)$' \| \
24244
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24246
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24250
/^X\(\/\/\)[^/].*/{
24262
s/.*/./; q'`/stamp-h$_am_stamp_count
24265
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24266
echo "$as_me: executing $ac_file commands" >&6;}
24271
case $ac_file$ac_mode in
24272
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24273
# Strip MF so we end up with the name of the file.
24274
mf=`echo "$mf" | sed -e 's/:.*$//'`
24275
# Check whether this is an Automake generated Makefile or not.
24276
# We used to match only the files named `Makefile.in', but
24277
# some people rename them; so instead we look at the file content.
24278
# Grep'ing the first line is not enough: some people post-process
24279
# each Makefile.in and add a new line on top of each file to say so.
24280
# Grep'ing the whole file is not good either: AIX grep has a line
24281
# limit of 2048, but all sed's we know have understand at least 4000.
24282
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24283
dirpart=`$as_dirname -- "$mf" ||
24284
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24285
X"$mf" : 'X\(//\)[^/]' \| \
24286
X"$mf" : 'X\(//\)$' \| \
24287
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24289
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24293
/^X\(\/\/\)[^/].*/{
24309
# Extract the definition of DEPDIR, am__include, and am__quote
24310
# from the Makefile without running `make'.
24311
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24312
test -z "$DEPDIR" && continue
24313
am__include=`sed -n 's/^am__include = //p' < "$mf"`
24314
test -z "am__include" && continue
24315
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24316
# When using ansi2knr, U may be empty or an underscore; expand it
24317
U=`sed -n 's/^U = //p' < "$mf"`
24318
# Find all dependency output files, they are included files with
24319
# $(DEPDIR) in their names. We invoke sed twice because it is the
24320
# simplest approach to changing $(DEPDIR) to its actual value in the
24322
for file in `sed -n "
24323
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24324
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24325
# Make sure the directory exists.
24326
test -f "$dirpart/$file" && continue
24327
fdir=`$as_dirname -- "$file" ||
24328
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24329
X"$file" : 'X\(//\)[^/]' \| \
24330
X"$file" : 'X\(//\)$' \| \
24331
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24333
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24337
/^X\(\/\/\)[^/].*/{
24350
{ as_dir=$dirpart/$fdir
24352
-*) as_dir=./$as_dir;;
24354
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24358
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24359
*) as_qdir=$as_dir;;
24361
as_dirs="'$as_qdir' $as_dirs"
24362
as_dir=`$as_dirname -- "$as_dir" ||
24363
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24364
X"$as_dir" : 'X\(//\)[^/]' \| \
24365
X"$as_dir" : 'X\(//\)$' \| \
24366
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24368
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24372
/^X\(\/\/\)[^/].*/{
24385
test -d "$as_dir" && break
24387
test -z "$as_dirs" || eval "mkdir $as_dirs"
24388
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24389
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24390
{ (exit 1); exit 1; }; }; }
24391
# echo "creating $dirpart/$file"
24392
echo '# dummy' > "$dirpart/$file"
24401
{ (exit 0); exit 0; }
24403
chmod +x $CONFIG_STATUS
24404
ac_clean_files=$ac_clean_files_save
24407
# configure is writing to config.log, and then calls config.status.
24408
# config.status does its own redirection, appending to config.log.
24409
# Unfortunately, on DOS this fails, as config.log is still kept open
24410
# by configure, so config.status won't be able to write to it; its
24411
# output is simply discarded. So we exec the FD to /dev/null,
24412
# effectively closing config.log, so it can be properly (re)opened and
24413
# appended to by config.status. When coming back to configure, we
24414
# need to make the FD available again.
24415
if test "$no_create" != yes; then
24417
ac_config_status_args=
24418
test "$silent" = yes &&
24419
ac_config_status_args="$ac_config_status_args --quiet"
24421
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24423
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
24424
# would make configure fail if this is the last instruction.
24425
$ac_cs_success || { (exit 1); exit 1; }
24431
echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
24433
echo " Configuration"
24434
echo " XDM support.........: ${have_xdmcp}"
24435
echo " Build unit tests....: ${HAVE_CHECK}"
24436
echo " XCB buffer size.....: ${xcb_queue_buffer_size}"
24438
echo " Used CFLAGS:"
24439
echo " CPPFLAGS............: ${CPPFLAGS}"
24440
echo " CFLAGS..............: ${CFLAGS}"
24441
echo " Warning CFLAGS......: ${CWARNFLAGS}"
24443
echo " Installation:"
24444
echo " Prefix..............: ${prefix}"