2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.63 for Ember 0.5.6.
5
# Report bugs to <clients@worldforge.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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.
12
# This script is under the GPL and is owned by the people in AUTHORS
13
## --------------------- ##
14
## M4sh Initialization. ##
15
## --------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in
28
*posix*) set -o posix ;;
37
# Avoid depending upon Character Ranges.
38
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41
as_cr_digits='0123456789'
42
as_cr_alnum=$as_cr_Letters$as_cr_digits
47
# Printing a long string crashes Solaris 7 /usr/bin/printf.
48
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# Support unset when possible.
86
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94
# We need space, tab and new line, in precisely that order. Quoting is
95
# there to prevent editors from complaining about space-tab.
96
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
97
# splitting by setting IFS to empty value.)
100
# Find who we are. Look in the path if we contain no directory separator.
102
*[\\/]* ) as_myself=$0 ;;
103
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107
test -z "$as_dir" && as_dir=.
108
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114
# We did not find ourselves, most probably we were run as `sh COMMAND'
115
# in which case we are not to be found in the path.
116
if test "x$as_myself" = x; then
119
if test ! -f "$as_myself"; then
120
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121
{ (exit 1); exit 1; }
124
# Work around bugs in pre-3.0 UWIN ksh.
125
for as_var in ENV MAIL MAILPATH
126
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
138
# Required to use basename.
139
if expr a : '\(a\)' >/dev/null 2>&1 &&
140
test "X`expr 00001 : '.*\(...\)'`" = X001; then
146
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153
# Name of the executable.
154
as_me=`$as_basename -- "$0" ||
155
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156
X"$0" : 'X\(//\)$' \| \
157
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159
sed '/^.*\/\([^/][^/]*\)\/*$/{
177
if test "x$CONFIG_SHELL" = x; then
178
if (eval ":") 2>/dev/null; then
184
if test $as_have_required = yes && (eval ":
194
as_func_ret_success () {
197
as_func_ret_failure () {
202
if as_func_success; then
206
echo as_func_success failed.
209
if as_func_failure; then
211
echo as_func_failure succeeded.
214
if as_func_ret_success; then
218
echo as_func_ret_success failed.
221
if as_func_ret_failure; then
223
echo as_func_ret_failure succeeded.
226
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230
echo positional parameters were not saved.
233
test \$exitcode = 0) || { (exit 1); exit 1; }
238
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240
") 2> /dev/null; then
244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
248
test -z "$as_dir" && as_dir=.
251
for as_base in sh bash ksh sh5; do
252
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
259
for as_shell in $as_candidate_shells $SHELL; do
260
# Try only shells that exist, to save several forks.
261
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262
{ ("$as_shell") 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Pre-4.2 versions of Zsh do 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 ;;
281
CONFIG_SHELL=$as_shell
283
if { "$as_shell" 2> /dev/null <<\_ASEOF
284
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
287
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288
# is contrary to our usage. Disable this feature.
289
alias -g '${1+"$@"}'='"$@"'
292
case `(set -o) 2>/dev/null` in
293
*posix*) set -o posix ;;
309
as_func_ret_success () {
312
as_func_ret_failure () {
317
if as_func_success; then
321
echo as_func_success failed.
324
if as_func_failure; then
326
echo as_func_failure succeeded.
329
if as_func_ret_success; then
333
echo as_func_ret_success failed.
336
if as_func_ret_failure; then
338
echo as_func_ret_failure succeeded.
341
if ( set x; as_func_ret_success y && test x = "$1" ); then
345
echo positional parameters were not saved.
348
test $exitcode = 0) || { (exit 1); exit 1; }
353
test "x$as_lineno_1" != "x$as_lineno_2" &&
354
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
365
if test "x$CONFIG_SHELL" != x; then
366
for as_var in BASH_ENV ENV
367
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
370
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374
if test $as_have_required = no; then
375
echo This script requires a shell more modern than all the
376
echo shells that I found on your system. Please install a
377
echo modern shell, or manually run the script under such a
378
echo shell if you do have one.
379
{ (exit 1); exit 1; }
389
(eval "as_func_return () {
398
as_func_ret_success () {
401
as_func_ret_failure () {
406
if as_func_success; then
410
echo as_func_success failed.
413
if as_func_failure; then
415
echo as_func_failure succeeded.
418
if as_func_ret_success; then
422
echo as_func_ret_success failed.
425
if as_func_ret_failure; then
427
echo as_func_ret_failure succeeded.
430
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434
echo positional parameters were not saved.
437
test \$exitcode = 0") || {
438
echo No shell found that supports shell functions.
439
echo Please tell bug-autoconf@gnu.org about your system,
440
echo including any error possibly output before this message.
441
echo This can help us improve future autoconf versions.
442
echo Configuration will now proceed without shell functions.
449
test "x$as_lineno_1" != "x$as_lineno_2" &&
450
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
452
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453
# uniformly replaced by the line number. The first 'sed' inserts a
454
# line-number line after each line using $LINENO; the second 'sed'
455
# does the real work. The second script uses 'N' to pair each
456
# line-number line with the line containing $LINENO, and appends
457
# trailing '-' during substitution so that $LINENO is not a special
459
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460
# scripts with optimization help from Paolo Bonzini. Blame Lee
461
# E. McMahon (1931-1989) for sed's syntax. :-)
473
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477
chmod +x "$as_me.lineno" ||
478
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479
{ (exit 1); exit 1; }; }
481
# Don't try to exec as it changes $[0], causing all sort of problems
482
# (the dirname of $[0] is not the place where we might find the
483
# original and so on. Autoconf is especially sensitive to this).
485
# Exit status is that of the last command.
490
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
496
ECHO_C= ECHO_N= ECHO_T=
500
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
506
if expr a : '\(a\)' >/dev/null 2>&1 &&
507
test "X`expr 00001 : '.*\(...\)'`" = X001; then
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
rm -f conf$$.dir/conf$$.file
518
mkdir conf$$.dir 2>/dev/null
520
if (echo >conf$$.file) 2>/dev/null; then
521
if ln -s conf$$.file conf$$ 2>/dev/null; then
523
# ... but there are two gotchas:
524
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
# In both cases, we have to default to `cp -p'.
527
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529
elif ln conf$$.file conf$$ 2>/dev/null; then
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
540
if mkdir -p . 2>/dev/null; then
543
test -d ./-p && rmdir ./-p
547
if test -x / >/dev/null 2>&1; then
550
if ls -dL / >/dev/null 2>&1; then
557
if test -d "$1"; then
563
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564
???[sx]*):;;*)false;;esac;fi
568
as_executable_p=$as_test_x
570
# Sed expression to map a string onto a valid CPP name.
571
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573
# Sed expression to map a string onto a valid variable name.
574
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
579
# Check that we are running under the correct shell.
580
SHELL=${CONFIG_SHELL-/bin/sh}
584
# Remove one level of quotation (which was required for Make).
585
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
590
if test "X$1" = X--no-reexec; then
591
# Discard the --no-reexec flag, and continue.
593
elif test "X$1" = X--fallback-echo; then
594
# Avoid inline document here, it may be left over
596
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
597
# Yippee, $echo works!
600
# Restart under the correct shell.
601
exec $SHELL "$0" --no-reexec ${1+"$@"}
604
if test "X$1" = X--fallback-echo; then
605
# used as fallback echo
613
# The HP-UX ksh and POSIX shell print the target directory to stdout
615
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
617
if test -z "$ECHO"; then
618
if test "X${echo_test_string+set}" != Xset; then
619
# find a string as large as possible, as long as the shell can cope with it
620
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
621
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
622
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
623
echo_test_string=`eval $cmd` &&
624
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
631
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
636
# The Solaris, AIX, and Digital Unix default echo programs unquote
637
# backslashes. This makes it impossible to quote backslashes using
638
# echo "$something" | sed 's/\\/\\\\/g'
640
# So, first we look for a working echo in the user's PATH.
642
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
643
for dir in $PATH /usr/ucb; do
645
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
646
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
647
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
648
test "X$echo_testing_string" = "X$echo_test_string"; then
655
if test "X$echo" = Xecho; then
656
# We didn't find a better echo, so look for alternatives.
657
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
658
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
659
test "X$echo_testing_string" = "X$echo_test_string"; then
660
# This shell has a builtin print -r that does the trick.
662
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
663
test "X$CONFIG_SHELL" != X/bin/ksh; then
664
# If we have ksh, try running configure again with it.
665
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
666
export ORIGINAL_CONFIG_SHELL
667
CONFIG_SHELL=/bin/ksh
669
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
673
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
674
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
675
test "X$echo_testing_string" = "X$echo_test_string"; then
678
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
679
test "X$echo_testing_string" = 'X\t' &&
680
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
681
test "X$echo_testing_string" = "X$echo_test_string"; then
682
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
684
SHELL="$CONFIG_SHELL"
686
echo="$CONFIG_SHELL $0 --fallback-echo"
687
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
688
test "X$echo_testing_string" = 'X\t' &&
689
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
690
test "X$echo_testing_string" = "X$echo_test_string"; then
691
echo="$CONFIG_SHELL $0 --fallback-echo"
693
# maybe with a smaller string...
696
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
697
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
704
if test "$prev" != 'sed 50q "$0"'; then
705
echo_test_string=`eval $prev`
706
export echo_test_string
707
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
709
# Oops. We lost completely, so just stick with echo.
718
# Copy echo and quote the copy suitably for passing to libtool from
719
# the Makefile, instead of quoting the original, which is used later.
721
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
722
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
728
tagnames=${tagnames+${tagnames},}CXX
730
tagnames=${tagnames+${tagnames},}F77
732
exec 7<&0 </dev/null 6>&1
735
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
736
# so uname gets run too.
737
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
742
ac_default_prefix=/usr/local
744
ac_config_libobj_dir=.
750
SHELL=${CONFIG_SHELL-/bin/sh}
752
# Identity of this package.
754
PACKAGE_TARNAME='ember'
755
PACKAGE_VERSION='0.5.6'
756
PACKAGE_STRING='Ember 0.5.6'
757
PACKAGE_BUGREPORT='clients@worldforge.org'
760
# Factoring default headers for most tests.
761
ac_includes_default="\
763
#ifdef HAVE_SYS_TYPES_H
764
# include <sys/types.h>
766
#ifdef HAVE_SYS_STAT_H
767
# include <sys/stat.h>
773
# ifdef HAVE_STDLIB_H
778
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
783
#ifdef HAVE_STRINGS_H
784
# include <strings.h>
786
#ifdef HAVE_INTTYPES_H
787
# include <inttypes.h>
796
ac_subst_vars='LTLIBOBJS
812
HAVE_LIBTINYXML_FALSE
868
INSTALL_STRIP_PROGRAM
922
program_transform_name
934
enable_option_checking
935
enable_dependency_tracking
944
enable_freeimage_check
949
enable_binreloc_threads
954
ac_precious_vars='build_alias
986
# Initialize some variables set by options.
988
ac_init_version=false
989
ac_unrecognized_opts=
991
# The variables have the same names as the options, with
992
# dashes changed to underlines.
1000
program_transform_name=s,x,x,
1008
# Installation directory options.
1009
# These are left unexpanded so users can "make install exec_prefix=/foo"
1010
# and all the variables that are supposed to be based on exec_prefix
1011
# by default will actually change.
1012
# Use braces instead of parens because sh, perl, etc. also accept them.
1013
# (The list follows the same order as the GNU Coding Standards.)
1014
bindir='${exec_prefix}/bin'
1015
sbindir='${exec_prefix}/sbin'
1016
libexecdir='${exec_prefix}/libexec'
1017
datarootdir='${prefix}/share'
1018
datadir='${datarootdir}'
1019
sysconfdir='${prefix}/etc'
1020
sharedstatedir='${prefix}/com'
1021
localstatedir='${prefix}/var'
1022
includedir='${prefix}/include'
1023
oldincludedir='/usr/include'
1024
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1025
infodir='${datarootdir}/info'
1030
libdir='${exec_prefix}/lib'
1031
localedir='${datarootdir}/locale'
1032
mandir='${datarootdir}/man'
1038
# If the previous option needs an argument, assign it.
1039
if test -n "$ac_prev"; then
1040
eval $ac_prev=\$ac_option
1046
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1050
# Accept the important Cygnus configure options, so we can diagnose typos.
1052
case $ac_dashdash$ac_option in
1056
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1058
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1059
bindir=$ac_optarg ;;
1061
-build | --build | --buil | --bui | --bu)
1062
ac_prev=build_alias ;;
1063
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1064
build_alias=$ac_optarg ;;
1066
-cache-file | --cache-file | --cache-fil | --cache-fi \
1067
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1068
ac_prev=cache_file ;;
1069
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1070
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1071
cache_file=$ac_optarg ;;
1073
--config-cache | -C)
1074
cache_file=config.cache ;;
1076
-datadir | --datadir | --datadi | --datad)
1078
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1079
datadir=$ac_optarg ;;
1081
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1082
| --dataroo | --dataro | --datar)
1083
ac_prev=datarootdir ;;
1084
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1085
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1086
datarootdir=$ac_optarg ;;
1088
-disable-* | --disable-*)
1089
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090
# Reject names that are not valid shell variable names.
1091
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1093
{ (exit 1); exit 1; }; }
1094
ac_useropt_orig=$ac_useropt
1095
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096
case $ac_user_opts in
1098
"enable_$ac_useropt"
1100
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1101
ac_unrecognized_sep=', ';;
1103
eval enable_$ac_useropt=no ;;
1105
-docdir | --docdir | --docdi | --doc | --do)
1107
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108
docdir=$ac_optarg ;;
1110
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113
dvidir=$ac_optarg ;;
1115
-enable-* | --enable-*)
1116
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117
# Reject names that are not valid shell variable names.
1118
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1120
{ (exit 1); exit 1; }; }
1121
ac_useropt_orig=$ac_useropt
1122
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123
case $ac_user_opts in
1125
"enable_$ac_useropt"
1127
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1128
ac_unrecognized_sep=', ';;
1130
eval enable_$ac_useropt=\$ac_optarg ;;
1132
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134
| --exec | --exe | --ex)
1135
ac_prev=exec_prefix ;;
1136
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138
| --exec=* | --exe=* | --ex=*)
1139
exec_prefix=$ac_optarg ;;
1141
-gas | --gas | --ga | --g)
1142
# Obsolete; use --with-gas.
1145
-help | --help | --hel | --he | -h)
1146
ac_init_help=long ;;
1147
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148
ac_init_help=recursive ;;
1149
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150
ac_init_help=short ;;
1152
-host | --host | --hos | --ho)
1153
ac_prev=host_alias ;;
1154
-host=* | --host=* | --hos=* | --ho=*)
1155
host_alias=$ac_optarg ;;
1157
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1159
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1161
htmldir=$ac_optarg ;;
1163
-includedir | --includedir | --includedi | --included | --include \
1164
| --includ | --inclu | --incl | --inc)
1165
ac_prev=includedir ;;
1166
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167
| --includ=* | --inclu=* | --incl=* | --inc=*)
1168
includedir=$ac_optarg ;;
1170
-infodir | --infodir | --infodi | --infod | --info | --inf)
1172
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173
infodir=$ac_optarg ;;
1175
-libdir | --libdir | --libdi | --libd)
1177
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1178
libdir=$ac_optarg ;;
1180
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181
| --libexe | --libex | --libe)
1182
ac_prev=libexecdir ;;
1183
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184
| --libexe=* | --libex=* | --libe=*)
1185
libexecdir=$ac_optarg ;;
1187
-localedir | --localedir | --localedi | --localed | --locale)
1188
ac_prev=localedir ;;
1189
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190
localedir=$ac_optarg ;;
1192
-localstatedir | --localstatedir | --localstatedi | --localstated \
1193
| --localstate | --localstat | --localsta | --localst | --locals)
1194
ac_prev=localstatedir ;;
1195
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197
localstatedir=$ac_optarg ;;
1199
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1201
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202
mandir=$ac_optarg ;;
1204
-nfp | --nfp | --nf)
1205
# Obsolete; use --without-fp.
1208
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209
| --no-cr | --no-c | -n)
1212
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218
| --oldin | --oldi | --old | --ol | --o)
1219
ac_prev=oldincludedir ;;
1220
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223
oldincludedir=$ac_optarg ;;
1225
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1227
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228
prefix=$ac_optarg ;;
1230
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1231
| --program-pre | --program-pr | --program-p)
1232
ac_prev=program_prefix ;;
1233
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1234
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235
program_prefix=$ac_optarg ;;
1237
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1238
| --program-suf | --program-su | --program-s)
1239
ac_prev=program_suffix ;;
1240
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1241
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242
program_suffix=$ac_optarg ;;
1244
-program-transform-name | --program-transform-name \
1245
| --program-transform-nam | --program-transform-na \
1246
| --program-transform-n | --program-transform- \
1247
| --program-transform | --program-transfor \
1248
| --program-transfo | --program-transf \
1249
| --program-trans | --program-tran \
1250
| --progr-tra | --program-tr | --program-t)
1251
ac_prev=program_transform_name ;;
1252
-program-transform-name=* | --program-transform-name=* \
1253
| --program-transform-nam=* | --program-transform-na=* \
1254
| --program-transform-n=* | --program-transform-=* \
1255
| --program-transform=* | --program-transfor=* \
1256
| --program-transfo=* | --program-transf=* \
1257
| --program-trans=* | --program-tran=* \
1258
| --progr-tra=* | --program-tr=* | --program-t=*)
1259
program_transform_name=$ac_optarg ;;
1261
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1263
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264
pdfdir=$ac_optarg ;;
1266
-psdir | --psdir | --psdi | --psd | --ps)
1268
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272
| -silent | --silent | --silen | --sile | --sil)
1275
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1277
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1279
sbindir=$ac_optarg ;;
1281
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1282
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1283
| --sharedst | --shareds | --shared | --share | --shar \
1285
ac_prev=sharedstatedir ;;
1286
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1287
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1288
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1290
sharedstatedir=$ac_optarg ;;
1292
-site | --site | --sit)
1294
-site=* | --site=* | --sit=*)
1297
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1299
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1300
srcdir=$ac_optarg ;;
1302
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1303
| --syscon | --sysco | --sysc | --sys | --sy)
1304
ac_prev=sysconfdir ;;
1305
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1306
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1307
sysconfdir=$ac_optarg ;;
1309
-target | --target | --targe | --targ | --tar | --ta | --t)
1310
ac_prev=target_alias ;;
1311
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1312
target_alias=$ac_optarg ;;
1314
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1317
-version | --version | --versio | --versi | --vers | -V)
1318
ac_init_version=: ;;
1321
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1322
# Reject names that are not valid shell variable names.
1323
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1325
{ (exit 1); exit 1; }; }
1326
ac_useropt_orig=$ac_useropt
1327
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328
case $ac_user_opts in
1332
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1333
ac_unrecognized_sep=', ';;
1335
eval with_$ac_useropt=\$ac_optarg ;;
1337
-without-* | --without-*)
1338
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1339
# Reject names that are not valid shell variable names.
1340
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1342
{ (exit 1); exit 1; }; }
1343
ac_useropt_orig=$ac_useropt
1344
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345
case $ac_user_opts in
1349
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350
ac_unrecognized_sep=', ';;
1352
eval with_$ac_useropt=no ;;
1355
# Obsolete; use --with-x.
1358
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1359
| --x-incl | --x-inc | --x-in | --x-i)
1360
ac_prev=x_includes ;;
1361
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1362
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1363
x_includes=$ac_optarg ;;
1365
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1366
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1367
ac_prev=x_libraries ;;
1368
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1369
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1370
x_libraries=$ac_optarg ;;
1372
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1373
Try \`$0 --help' for more information." >&2
1374
{ (exit 1); exit 1; }; }
1378
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1379
# Reject names that are not valid shell variable names.
1380
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1381
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1382
{ (exit 1); exit 1; }; }
1383
eval $ac_envvar=\$ac_optarg
1384
export $ac_envvar ;;
1387
# FIXME: should be removed in autoconf 3.0.
1388
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1389
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1391
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1397
if test -n "$ac_prev"; then
1398
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1399
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
1400
{ (exit 1); exit 1; }; }
1403
if test -n "$ac_unrecognized_opts"; then
1404
case $enable_option_checking in
1406
fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1407
{ (exit 1); exit 1; }; } ;;
1408
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1412
# Check all directory arguments for consistency.
1413
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1414
datadir sysconfdir sharedstatedir localstatedir includedir \
1415
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1416
libdir localedir mandir
1418
eval ac_val=\$$ac_var
1419
# Remove trailing slashes.
1422
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1423
eval $ac_var=\$ac_val;;
1425
# Be sure to have absolute directory names.
1427
[\\/$]* | ?:[\\/]* ) continue;;
1428
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1430
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1431
{ (exit 1); exit 1; }; }
1434
# There might be people who depend on the old broken behavior: `$host'
1435
# used to hold the argument of --host etc.
1436
# FIXME: To remove some day.
1439
target=$target_alias
1441
# FIXME: To remove some day.
1442
if test "x$host_alias" != x; then
1443
if test "x$build_alias" = x; then
1444
cross_compiling=maybe
1445
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1446
If a cross compiler is detected then cross compile mode will be used." >&2
1447
elif test "x$build_alias" != "x$host_alias"; then
1453
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455
test "$silent" = yes && exec 6>/dev/null
1458
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459
ac_ls_di=`ls -di .` &&
1460
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461
{ $as_echo "$as_me: error: working directory cannot be determined" >&2
1462
{ (exit 1); exit 1; }; }
1463
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1464
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1465
{ (exit 1); exit 1; }; }
1468
# Find the source files, if location was not specified.
1469
if test -z "$srcdir"; then
1470
ac_srcdir_defaulted=yes
1471
# Try the directory containing this script, then the parent directory.
1472
ac_confdir=`$as_dirname -- "$as_myself" ||
1473
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1474
X"$as_myself" : 'X\(//\)[^/]' \| \
1475
X"$as_myself" : 'X\(//\)$' \| \
1476
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1477
$as_echo X"$as_myself" |
1478
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496
if test ! -r "$srcdir/$ac_unique_file"; then
1500
ac_srcdir_defaulted=no
1502
if test ! -r "$srcdir/$ac_unique_file"; then
1503
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1504
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1505
{ (exit 1); exit 1; }; }
1507
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1509
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1510
{ (exit 1); exit 1; }; }
1512
# When building in place, set srcdir=.
1513
if test "$ac_abs_confdir" = "$ac_pwd"; then
1516
# Remove unnecessary trailing slashes from srcdir.
1517
# Double slashes in file names in object file debugging info
1518
# mess up M-x gdb in Emacs.
1520
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1522
for ac_var in $ac_precious_vars; do
1523
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1524
eval ac_env_${ac_var}_value=\$${ac_var}
1525
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1526
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1530
# Report the --help message.
1532
if test "$ac_init_help" = "long"; then
1533
# Omit some internal or obsolete options to make the list less imposing.
1534
# This message is too long to be a string in the A/UX 3.1 sh.
1536
\`configure' configures Ember 0.5.6 to adapt to many kinds of systems.
1538
Usage: $0 [OPTION]... [VAR=VALUE]...
1540
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1541
VAR=VALUE. See below for descriptions of some of the useful variables.
1543
Defaults for the options are specified in brackets.
1546
-h, --help display this help and exit
1547
--help=short display options specific to this package
1548
--help=recursive display the short help of all the included packages
1549
-V, --version display version information and exit
1550
-q, --quiet, --silent do not print \`checking...' messages
1551
--cache-file=FILE cache test results in FILE [disabled]
1552
-C, --config-cache alias for \`--cache-file=config.cache'
1553
-n, --no-create do not create output files
1554
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1556
Installation directories:
1557
--prefix=PREFIX install architecture-independent files in PREFIX
1558
[$ac_default_prefix]
1559
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1562
By default, \`make install' will install all the files in
1563
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1564
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1565
for instance \`--prefix=\$HOME'.
1567
For better control, use the options below.
1569
Fine tuning of the installation directories:
1570
--bindir=DIR user executables [EPREFIX/bin]
1571
--sbindir=DIR system admin executables [EPREFIX/sbin]
1572
--libexecdir=DIR program executables [EPREFIX/libexec]
1573
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1574
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1575
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1576
--libdir=DIR object code libraries [EPREFIX/lib]
1577
--includedir=DIR C header files [PREFIX/include]
1578
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1579
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1580
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1581
--infodir=DIR info documentation [DATAROOTDIR/info]
1582
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1583
--mandir=DIR man documentation [DATAROOTDIR/man]
1584
--docdir=DIR documentation root [DATAROOTDIR/doc/ember]
1585
--htmldir=DIR html documentation [DOCDIR]
1586
--dvidir=DIR dvi documentation [DOCDIR]
1587
--pdfdir=DIR pdf documentation [DOCDIR]
1588
--psdir=DIR ps documentation [DOCDIR]
1594
--program-prefix=PREFIX prepend PREFIX to installed program names
1595
--program-suffix=SUFFIX append SUFFIX to installed program names
1596
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1599
--build=BUILD configure for building on BUILD [guessed]
1600
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1601
--target=TARGET configure for building compilers for TARGET [HOST]
1605
if test -n "$ac_init_help"; then
1606
case $ac_init_help in
1607
short | recursive ) echo "Configuration of Ember 0.5.6:";;
1612
--disable-option-checking ignore unrecognized --enable/--with options
1613
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1614
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1615
--disable-dependency-tracking speeds up one-time build
1616
--enable-dependency-tracking do not reject slow dependency extractors
1617
--enable-shared[=PKGS] build shared libraries [default=yes]
1618
--enable-static[=PKGS] build static libraries [default=yes]
1619
--enable-fast-install[=PKGS]
1620
optimize for fast installation [default=yes]
1621
--disable-libtool-lock avoid locking (might break parallel builds)
1622
--enable-static-build enable static link of some libs (default=no)
1623
--disable-freeimage-check
1624
disable the check for if Ogre is built with
1625
FreeImage. Disable this only if you're absolutly
1626
sure that libraries in FreeImage won't clash with
1627
other system libraries (default is enabled)
1628
--disable-sdltest Do not try to compile and run a test SDL program
1629
--enable-binreloc compile with binary relocation support
1630
(default=enable when available)
1631
--enable-binreloc-threads compile binary relocation with threads support
1633
--enable-debug creates debugging code default=no
1634
--enable-multithread creates multi threaded code default=no
1635
--enable-gprof Add flags for gprof default=no
1638
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1641
--with-pic try to use only PIC/non-PIC objects [default=use
1643
--with-tags[=TAGS] include additional configurations [automatic]
1644
--with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1645
--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1647
Some influential environment variables:
1648
CXX C++ compiler command
1649
CXXFLAGS C++ compiler flags
1650
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651
nonstandard directory <lib dir>
1652
LIBS libraries to pass to the linker, e.g. -l<library>
1653
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1654
you have headers in a nonstandard directory <include dir>
1655
CC C compiler command
1656
CFLAGS C compiler flags
1658
CXXCPP C++ preprocessor
1659
F77 Fortran 77 compiler command
1660
FFLAGS Fortran 77 compiler flags
1661
PKG_CONFIG path to pkg-config utility
1663
C compiler flags for CEGUI, overriding pkg-config
1664
CEGUI_LIBS linker flags for CEGUI, overriding pkg-config
1665
OGRE_CFLAGS C compiler flags for OGRE, overriding pkg-config
1666
OGRE_LIBS linker flags for OGRE, overriding pkg-config
1667
LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1668
LUA_LIBS linker flags for LUA, overriding pkg-config
1670
C compiler flags for OPENAL, overriding pkg-config
1671
OPENAL_LIBS linker flags for OPENAL, overriding pkg-config
1673
C compiler flags for FREEALUT, overriding pkg-config
1675
linker flags for FREEALUT, overriding pkg-config
1676
SIG_CFLAGS C compiler flags for SIG, overriding pkg-config
1677
SIG_LIBS linker flags for SIG, overriding pkg-config
1678
WF_CFLAGS C compiler flags for WF, overriding pkg-config
1679
WF_LIBS linker flags for WF, overriding pkg-config
1681
Use these variables to override the choices made by `configure' or to help
1682
it to find libraries and programs with nonstandard names/locations.
1684
Report bugs to <clients@worldforge.org>.
1689
if test "$ac_init_help" = "recursive"; then
1690
# If there are subdirs, report their specific --help.
1691
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692
test -d "$ac_dir" ||
1693
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701
# A ".." for each directory in $ac_dir_suffix.
1702
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703
case $ac_top_builddir_sub in
1704
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1708
ac_abs_top_builddir=$ac_pwd
1709
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710
# for backward compatibility:
1711
ac_top_builddir=$ac_top_build_prefix
1714
.) # We are building in place.
1716
ac_top_srcdir=$ac_top_builddir_sub
1717
ac_abs_top_srcdir=$ac_pwd ;;
1718
[\\/]* | ?:[\\/]* ) # Absolute name.
1719
ac_srcdir=$srcdir$ac_dir_suffix;
1720
ac_top_srcdir=$srcdir
1721
ac_abs_top_srcdir=$srcdir ;;
1723
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724
ac_top_srcdir=$ac_top_build_prefix$srcdir
1725
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729
cd "$ac_dir" || { ac_status=$?; continue; }
1730
# Check for guested configure.
1731
if test -f "$ac_srcdir/configure.gnu"; then
1733
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734
elif test -f "$ac_srcdir/configure"; then
1736
$SHELL "$ac_srcdir/configure" --help=recursive
1738
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740
cd "$ac_pwd" || { ac_status=$?; break; }
1744
test -n "$ac_init_help" && exit $ac_status
1745
if $ac_init_version; then
1747
Ember configure 0.5.6
1748
generated by GNU Autoconf 2.63
1750
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1751
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1752
This configure script is free software; the Free Software Foundation
1753
gives unlimited permission to copy, distribute and modify it.
1755
This script is under the GPL and is owned by the people in AUTHORS
1759
cat >config.log <<_ACEOF
1760
This file contains any messages produced by compilers while
1761
running configure, to aid debugging if configure makes a mistake.
1763
It was created by Ember $as_me 0.5.6, which was
1764
generated by GNU Autoconf 2.63. Invocation command line was
1776
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1777
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1778
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1779
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1780
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1782
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1783
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1785
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1786
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1787
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1788
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1789
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1790
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1791
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799
test -z "$as_dir" && as_dir=.
1800
$as_echo "PATH: $as_dir"
1816
# Keep a trace of the command line.
1817
# Strip out --no-create and --no-recursion so they do not pile up.
1818
# Strip out --silent because we don't want to record it for future runs.
1819
# Also quote any args containing shell meta-characters.
1820
# Make two passes to allow for proper duplicate-argument suppression.
1824
ac_must_keep_next=false
1830
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832
| -silent | --silent | --silen | --sile | --sil)
1835
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1838
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1840
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1841
if test $ac_must_keep_next = true; then
1842
ac_must_keep_next=false # Got value, back to normal.
1845
*=* | --config-cache | -C | -disable-* | --disable-* \
1846
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848
| -with-* | --with-* | -without-* | --without-* | --x)
1849
case "$ac_configure_args0 " in
1850
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1853
-* ) ac_must_keep_next=true ;;
1856
ac_configure_args="$ac_configure_args '$ac_arg'"
1861
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1862
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1864
# When interrupted or exit'd, cleanup temporary files, and complete
1865
# config.log. We remove comments because anyway the quotes in there
1866
# would cause problems or look ugly.
1867
# WARNING: Use '\'' to represent an apostrophe within the trap.
1868
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1869
trap 'exit_status=$?
1870
# Save into config.log some information that might help in debugging.
1875
## ---------------- ##
1876
## Cache variables. ##
1877
## ---------------- ##
1880
# The following way of writing the cache mishandles newlines in values,
1882
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1883
eval ac_val=\$$ac_var
1887
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1888
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1891
_ | IFS | as_nl) ;; #(
1892
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1893
*) $as_unset $ac_var ;;
1898
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1899
*${as_nl}ac_space=\ *)
1901
"s/'\''/'\''\\\\'\'''\''/g;
1902
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1905
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1913
## ----------------- ##
1914
## Output variables. ##
1915
## ----------------- ##
1918
for ac_var in $ac_subst_vars
1920
eval ac_val=\$$ac_var
1922
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924
$as_echo "$ac_var='\''$ac_val'\''"
1928
if test -n "$ac_subst_files"; then
1930
## ------------------- ##
1931
## File substitutions. ##
1932
## ------------------- ##
1935
for ac_var in $ac_subst_files
1937
eval ac_val=\$$ac_var
1939
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941
$as_echo "$ac_var='\''$ac_val'\''"
1946
if test -s confdefs.h; then
1956
test "$ac_signal" != 0 &&
1957
$as_echo "$as_me: caught signal $ac_signal"
1958
$as_echo "$as_me: exit $exit_status"
1960
rm -f core *.core core.conftest.* &&
1961
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1964
for ac_signal in 1 2 13 15; do
1965
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1969
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1970
rm -f -r conftest* confdefs.h
1972
# Predefined preprocessor variables.
1974
cat >>confdefs.h <<_ACEOF
1975
#define PACKAGE_NAME "$PACKAGE_NAME"
1979
cat >>confdefs.h <<_ACEOF
1980
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1984
cat >>confdefs.h <<_ACEOF
1985
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1989
cat >>confdefs.h <<_ACEOF
1990
#define PACKAGE_STRING "$PACKAGE_STRING"
1994
cat >>confdefs.h <<_ACEOF
1995
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999
# Let the site file select an alternate cache file if it wants to.
2000
# Prefer an explicitly selected file to automatically selected ones.
2003
if test -n "$CONFIG_SITE"; then
2004
ac_site_file1=$CONFIG_SITE
2005
elif test "x$prefix" != xNONE; then
2006
ac_site_file1=$prefix/share/config.site
2007
ac_site_file2=$prefix/etc/config.site
2009
ac_site_file1=$ac_default_prefix/share/config.site
2010
ac_site_file2=$ac_default_prefix/etc/config.site
2012
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2014
test "x$ac_site_file" = xNONE && continue
2015
if test -r "$ac_site_file"; then
2016
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2017
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2018
sed 's/^/| /' "$ac_site_file" >&5
2023
if test -r "$cache_file"; then
2024
# Some versions of bash will fail to source /dev/null (special
2025
# files actually), so we avoid doing that.
2026
if test -f "$cache_file"; then
2027
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2028
$as_echo "$as_me: loading cache $cache_file" >&6;}
2030
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2031
*) . "./$cache_file";;
2035
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2036
$as_echo "$as_me: creating cache $cache_file" >&6;}
2040
# Check that the precious variables saved in the cache have kept the same
2042
ac_cache_corrupted=false
2043
for ac_var in $ac_precious_vars; do
2044
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2045
eval ac_new_set=\$ac_env_${ac_var}_set
2046
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2047
eval ac_new_val=\$ac_env_${ac_var}_value
2048
case $ac_old_set,$ac_new_set in
2050
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2051
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2052
ac_cache_corrupted=: ;;
2054
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2055
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2056
ac_cache_corrupted=: ;;
2059
if test "x$ac_old_val" != "x$ac_new_val"; then
2060
# differences in whitespace do not lead to failure.
2061
ac_old_val_w=`echo x $ac_old_val`
2062
ac_new_val_w=`echo x $ac_new_val`
2063
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2064
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2065
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2066
ac_cache_corrupted=:
2068
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2069
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2070
eval $ac_var=\$ac_old_val
2072
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2073
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2074
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2075
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2078
# Pass precious variables to config.status.
2079
if test "$ac_new_set" = set; then
2081
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2082
*) ac_arg=$ac_var=$ac_new_val ;;
2084
case " $ac_configure_args " in
2085
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2086
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2090
if $ac_cache_corrupted; then
2091
{ $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2092
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2093
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2094
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2095
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2096
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2097
{ (exit 1); exit 1; }; }
2125
ac_cpp='$CPP $CPPFLAGS'
2126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
# Detect the canonical host and target build environment.
2136
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2137
if test -f "$ac_dir/install-sh"; then
2139
ac_install_sh="$ac_aux_dir/install-sh -c"
2141
elif test -f "$ac_dir/install.sh"; then
2143
ac_install_sh="$ac_aux_dir/install.sh -c"
2145
elif test -f "$ac_dir/shtool"; then
2147
ac_install_sh="$ac_aux_dir/shtool install -c"
2151
if test -z "$ac_aux_dir"; then
2152
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2153
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2154
{ (exit 1); exit 1; }; }
2157
# These three variables are undocumented and unsupported,
2158
# and are intended to be withdrawn in a future Autoconf release.
2159
# They can cause serious problems if a builder's source tree is in a directory
2160
# whose full name contains unusual characters.
2161
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2162
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2163
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2166
# Make sure we can run config.sub.
2167
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2168
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2169
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2170
{ (exit 1); exit 1; }; }
2172
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2173
$as_echo_n "checking build system type... " >&6; }
2174
if test "${ac_cv_build+set}" = set; then
2175
$as_echo_n "(cached) " >&6
2177
ac_build_alias=$build_alias
2178
test "x$ac_build_alias" = x &&
2179
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2180
test "x$ac_build_alias" = x &&
2181
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2182
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2183
{ (exit 1); exit 1; }; }
2184
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2185
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2186
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2187
{ (exit 1); exit 1; }; }
2190
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2191
$as_echo "$ac_cv_build" >&6; }
2192
case $ac_cv_build in
2194
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2195
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2196
{ (exit 1); exit 1; }; };;
2199
ac_save_IFS=$IFS; IFS='-'
2205
# Remember, the first character of IFS is used to create $*,
2206
# except with old shells:
2209
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2212
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2213
$as_echo_n "checking host system type... " >&6; }
2214
if test "${ac_cv_host+set}" = set; then
2215
$as_echo_n "(cached) " >&6
2217
if test "x$host_alias" = x; then
2218
ac_cv_host=$ac_cv_build
2220
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2221
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2222
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2223
{ (exit 1); exit 1; }; }
2227
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2228
$as_echo "$ac_cv_host" >&6; }
2231
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2232
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2233
{ (exit 1); exit 1; }; };;
2236
ac_save_IFS=$IFS; IFS='-'
2242
# Remember, the first character of IFS is used to create $*,
2243
# except with old shells:
2246
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2249
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2250
$as_echo_n "checking target system type... " >&6; }
2251
if test "${ac_cv_target+set}" = set; then
2252
$as_echo_n "(cached) " >&6
2254
if test "x$target_alias" = x; then
2255
ac_cv_target=$ac_cv_host
2257
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2258
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2259
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2260
{ (exit 1); exit 1; }; }
2264
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2265
$as_echo "$ac_cv_target" >&6; }
2266
case $ac_cv_target in
2268
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2269
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2270
{ (exit 1); exit 1; }; };;
2272
target=$ac_cv_target
2273
ac_save_IFS=$IFS; IFS='-'
2279
# Remember, the first character of IFS is used to create $*,
2280
# except with old shells:
2283
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2286
# The aliases save the names the user supplied, while $host etc.
2287
# will get canonicalized.
2288
test -n "$target_alias" &&
2289
test "$program_prefix$program_suffix$program_transform_name" = \
2291
program_prefix=${target_alias}-
2293
#AM_INIT_AUTOMAKE([tar-ustar nostdinc dist-bzip2 check-news])
2294
am__api_version='1.10'
2296
# Find a good install program. We prefer a C program (faster),
2297
# so one script is as good as another. But avoid the broken or
2298
# incompatible versions:
2299
# SysV /etc/install, /usr/sbin/install
2300
# SunOS /usr/etc/install
2301
# IRIX /sbin/install
2303
# AmigaOS /C/install, which installs bootblocks on floppy discs
2304
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2305
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2306
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2307
# OS/2's system install, which has a completely different semantic
2308
# ./install, which can be erroneously created by make from ./install.sh.
2309
# Reject install programs that cannot install multiple files.
2310
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2311
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2312
if test -z "$INSTALL"; then
2313
if test "${ac_cv_path_install+set}" = set; then
2314
$as_echo_n "(cached) " >&6
2316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320
test -z "$as_dir" && as_dir=.
2321
# Account for people who put trailing slashes in PATH elements.
2323
./ | .// | /cC/* | \
2324
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2325
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2328
# OSF1 and SCO ODT 3.0 have their own names for install.
2329
# Don't use installbsd from OSF since it installs stuff as root
2331
for ac_prog in ginstall scoinst install; do
2332
for ac_exec_ext in '' $ac_executable_extensions; do
2333
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2334
if test $ac_prog = install &&
2335
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336
# AIX install. It has an incompatible calling convention.
2338
elif test $ac_prog = install &&
2339
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2340
# program-specific install script used by HP pwplus--don't use.
2343
rm -rf conftest.one conftest.two conftest.dir
2344
echo one > conftest.one
2345
echo two > conftest.two
2347
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2348
test -s conftest.one && test -s conftest.two &&
2349
test -s conftest.dir/conftest.one &&
2350
test -s conftest.dir/conftest.two
2352
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2365
rm -rf conftest.one conftest.two conftest.dir
2368
if test "${ac_cv_path_install+set}" = set; then
2369
INSTALL=$ac_cv_path_install
2371
# As a last resort, use the slow shell script. Don't cache a
2372
# value for INSTALL within a source directory, because that will
2373
# break other packages using the cache if that directory is
2374
# removed, or if the value is a relative name.
2375
INSTALL=$ac_install_sh
2378
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2379
$as_echo "$INSTALL" >&6; }
2381
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2382
# It thinks the first close brace ends the variable substitution.
2383
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2385
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2387
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2389
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2390
$as_echo_n "checking whether build environment is sane... " >&6; }
2393
echo timestamp > conftest.file
2394
# Do `set' in a subshell so we don't clobber the current shell's
2395
# arguments. Must try -L first in case configure is actually a
2396
# symlink; some systems play weird games with the mod time of symlinks
2397
# (eg FreeBSD returns the mod time of the symlink's containing
2400
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2401
if test "$*" = "X"; then
2403
set X `ls -t $srcdir/configure conftest.file`
2406
if test "$*" != "X $srcdir/configure conftest.file" \
2407
&& test "$*" != "X conftest.file $srcdir/configure"; then
2409
# If neither matched, then we have a broken ls. This can happen
2410
# if, for instance, CONFIG_SHELL is bash and it inherits a
2411
# broken ls alias from the environment. This has actually
2412
# happened. Such a system could not be considered "sane".
2413
{ { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2414
alias in your environment" >&5
2415
$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2416
alias in your environment" >&2;}
2417
{ (exit 1); exit 1; }; }
2420
test "$2" = conftest.file
2426
{ { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2427
Check your system clock" >&5
2428
$as_echo "$as_me: error: newly created file is older than distributed files!
2429
Check your system clock" >&2;}
2430
{ (exit 1); exit 1; }; }
2432
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2433
$as_echo "yes" >&6; }
2434
test "$program_prefix" != NONE &&
2435
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2436
# Use a double $ so make ignores it.
2437
test "$program_suffix" != NONE &&
2438
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2439
# Double any \ or $.
2440
# By default was `s,x,x', remove it if useless.
2441
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2442
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2444
# expand $ac_aux_dir to an absolute path
2445
am_aux_dir=`cd $ac_aux_dir && pwd`
2447
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2448
# Use eval to expand $SHELL
2449
if eval "$MISSING --run true"; then
2450
am_missing_run="$MISSING --run "
2453
{ $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2454
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2457
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2458
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2459
if test -z "$MKDIR_P"; then
2460
if test "${ac_cv_path_mkdir+set}" = set; then
2461
$as_echo_n "(cached) " >&6
2463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2467
test -z "$as_dir" && as_dir=.
2468
for ac_prog in mkdir gmkdir; do
2469
for ac_exec_ext in '' $ac_executable_extensions; do
2470
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2471
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2472
'mkdir (GNU coreutils) '* | \
2473
'mkdir (coreutils) '* | \
2474
'mkdir (fileutils) '4.1*)
2475
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2485
if test "${ac_cv_path_mkdir+set}" = set; then
2486
MKDIR_P="$ac_cv_path_mkdir -p"
2488
# As a last resort, use the slow shell script. Don't cache a
2489
# value for MKDIR_P within a source directory, because that will
2490
# break other packages using the cache if that directory is
2491
# removed, or if the value is a relative name.
2492
test -d ./--version && rmdir ./--version
2493
MKDIR_P="$ac_install_sh -d"
2496
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2497
$as_echo "$MKDIR_P" >&6; }
2501
[\\/$]* | ?:[\\/]*) ;;
2502
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2505
for ac_prog in gawk mawk nawk awk
2507
# Extract the first word of "$ac_prog", so it can be a program name with args.
2508
set dummy $ac_prog; ac_word=$2
2509
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2510
$as_echo_n "checking for $ac_word... " >&6; }
2511
if test "${ac_cv_prog_AWK+set}" = set; then
2512
$as_echo_n "(cached) " >&6
2514
if test -n "$AWK"; then
2515
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521
test -z "$as_dir" && as_dir=.
2522
for ac_exec_ext in '' $ac_executable_extensions; do
2523
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524
ac_cv_prog_AWK="$ac_prog"
2525
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535
if test -n "$AWK"; then
2536
{ $as_echo "$as_me:$LINENO: result: $AWK" >&5
2537
$as_echo "$AWK" >&6; }
2539
{ $as_echo "$as_me:$LINENO: result: no" >&5
2540
$as_echo "no" >&6; }
2544
test -n "$AWK" && break
2547
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2548
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2550
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2551
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2552
$as_echo_n "(cached) " >&6
2554
cat >conftest.make <<\_ACEOF
2557
@echo '@@@%%%=$(MAKE)=@@@%%%'
2559
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2560
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2562
eval ac_cv_prog_make_${ac_make}_set=yes;;
2564
eval ac_cv_prog_make_${ac_make}_set=no;;
2568
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2569
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2570
$as_echo "yes" >&6; }
2573
{ $as_echo "$as_me:$LINENO: result: no" >&5
2574
$as_echo "no" >&6; }
2575
SET_MAKE="MAKE=${MAKE-make}"
2578
rm -rf .tst 2>/dev/null
2579
mkdir .tst 2>/dev/null
2580
if test -d .tst; then
2585
rmdir .tst 2>/dev/null
2587
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2588
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2589
# is not polluted with repeated "-I."
2590
am__isrc=' -I$(srcdir)'
2591
# test to see if srcdir already configured
2592
if test -f $srcdir/config.status; then
2593
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2594
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2595
{ (exit 1); exit 1; }; }
2599
# test whether we have cygpath
2600
if test -z "$CYGPATH_W"; then
2601
if (cygpath --version) >/dev/null 2>/dev/null; then
2602
CYGPATH_W='cygpath -w'
2609
# Define the identity of the package.
2614
cat >>confdefs.h <<_ACEOF
2615
#define PACKAGE "$PACKAGE"
2619
cat >>confdefs.h <<_ACEOF
2620
#define VERSION "$VERSION"
2623
# Some tools Automake needs.
2625
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2628
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2631
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2634
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2637
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2639
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2641
# Installed binaries are usually stripped using `strip' when the user
2642
# run `make install-strip'. However `strip' might not be the right
2643
# tool to use in cross-compilation environments, therefore Automake
2644
# will honor the `STRIP' environment variable to overrule this program.
2645
if test "$cross_compiling" != no; then
2646
if test -n "$ac_tool_prefix"; then
2647
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2648
set dummy ${ac_tool_prefix}strip; ac_word=$2
2649
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2650
$as_echo_n "checking for $ac_word... " >&6; }
2651
if test "${ac_cv_prog_STRIP+set}" = set; then
2652
$as_echo_n "(cached) " >&6
2654
if test -n "$STRIP"; then
2655
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661
test -z "$as_dir" && as_dir=.
2662
for ac_exec_ext in '' $ac_executable_extensions; do
2663
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2665
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674
STRIP=$ac_cv_prog_STRIP
2675
if test -n "$STRIP"; then
2676
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2677
$as_echo "$STRIP" >&6; }
2679
{ $as_echo "$as_me:$LINENO: result: no" >&5
2680
$as_echo "no" >&6; }
2685
if test -z "$ac_cv_prog_STRIP"; then
2687
# Extract the first word of "strip", so it can be a program name with args.
2688
set dummy strip; ac_word=$2
2689
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2690
$as_echo_n "checking for $ac_word... " >&6; }
2691
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2692
$as_echo_n "(cached) " >&6
2694
if test -n "$ac_ct_STRIP"; then
2695
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701
test -z "$as_dir" && as_dir=.
2702
for ac_exec_ext in '' $ac_executable_extensions; do
2703
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704
ac_cv_prog_ac_ct_STRIP="strip"
2705
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2715
if test -n "$ac_ct_STRIP"; then
2716
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2717
$as_echo "$ac_ct_STRIP" >&6; }
2719
{ $as_echo "$as_me:$LINENO: result: no" >&5
2720
$as_echo "no" >&6; }
2723
if test "x$ac_ct_STRIP" = x; then
2726
case $cross_compiling:$ac_tool_warned in
2728
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2729
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730
ac_tool_warned=yes ;;
2735
STRIP="$ac_cv_prog_STRIP"
2739
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2741
# We need awk for the "check" target. The system "awk" is bad on
2743
# Always define AMTAR for backward compatibility.
2745
AMTAR=${AMTAR-"${am_missing_run}tar"}
2748
{ $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2749
$as_echo_n "checking how to create a ustar tar archive... " >&6; }
2750
# Loop over all known methods to create a tar archive until one works.
2751
_am_tools='gnutar plaintar pax cpio none'
2752
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2753
# Do not fold the above two line into one, because Tru64 sh and
2754
# Solaris sh will not grok spaces in the rhs of `-'.
2755
for _am_tool in $_am_tools
2759
for _am_tar in tar gnutar gtar;
2761
{ echo "$as_me:$LINENO: $_am_tar --version" >&5
2762
($_am_tar --version) >&5 2>&5
2764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765
(exit $ac_status); } && break
2767
am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2768
am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2769
am__untar="$_am_tar -xf -"
2772
# Must skip GNU tar: if it does not support --format= it doesn't create
2773
# ustar tarball either.
2774
(tar --version) >/dev/null 2>&1 && continue
2775
am__tar='tar chf - "$$tardir"'
2776
am__tar_='tar chf - "$tardir"'
2777
am__untar='tar xf -'
2780
am__tar='pax -L -x ustar -w "$$tardir"'
2781
am__tar_='pax -L -x ustar -w "$tardir"'
2785
am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2786
am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2787
am__untar='cpio -i -H ustar -d'
2796
# If the value was cached, stop now. We just wanted to have am__tar
2797
# and am__untar set.
2798
test -n "${am_cv_prog_tar_ustar}" && break
2800
# tar/untar a dummy directory, and stop if the command works
2803
echo GrepMe > conftest.dir/file
2804
{ echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2805
(tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808
(exit $ac_status); }
2810
if test -s conftest.tar; then
2811
{ echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2812
($am__untar <conftest.tar) >&5 2>&5
2814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815
(exit $ac_status); }
2816
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2821
if test "${am_cv_prog_tar_ustar+set}" = set; then
2822
$as_echo_n "(cached) " >&6
2824
am_cv_prog_tar_ustar=$_am_tool
2827
{ $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2828
$as_echo "$am_cv_prog_tar_ustar" >&6; }
2834
ac_config_headers="$ac_config_headers src/config.h"
2844
# Checks for Programs
2846
ac_cpp='$CXXCPP $CPPFLAGS'
2847
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2850
if test -z "$CXX"; then
2851
if test -n "$CCC"; then
2854
if test -n "$ac_tool_prefix"; then
2855
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2857
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2858
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2859
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2860
$as_echo_n "checking for $ac_word... " >&6; }
2861
if test "${ac_cv_prog_CXX+set}" = set; then
2862
$as_echo_n "(cached) " >&6
2864
if test -n "$CXX"; then
2865
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871
test -z "$as_dir" && as_dir=.
2872
for ac_exec_ext in '' $ac_executable_extensions; do
2873
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2875
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885
if test -n "$CXX"; then
2886
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
2887
$as_echo "$CXX" >&6; }
2889
{ $as_echo "$as_me:$LINENO: result: no" >&5
2890
$as_echo "no" >&6; }
2894
test -n "$CXX" && break
2897
if test -z "$CXX"; then
2899
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2901
# Extract the first word of "$ac_prog", so it can be a program name with args.
2902
set dummy $ac_prog; ac_word=$2
2903
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2904
$as_echo_n "checking for $ac_word... " >&6; }
2905
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2906
$as_echo_n "(cached) " >&6
2908
if test -n "$ac_ct_CXX"; then
2909
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915
test -z "$as_dir" && as_dir=.
2916
for ac_exec_ext in '' $ac_executable_extensions; do
2917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918
ac_cv_prog_ac_ct_CXX="$ac_prog"
2919
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2929
if test -n "$ac_ct_CXX"; then
2930
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2931
$as_echo "$ac_ct_CXX" >&6; }
2933
{ $as_echo "$as_me:$LINENO: result: no" >&5
2934
$as_echo "no" >&6; }
2938
test -n "$ac_ct_CXX" && break
2941
if test "x$ac_ct_CXX" = x; then
2944
case $cross_compiling:$ac_tool_warned in
2946
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2947
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2948
ac_tool_warned=yes ;;
2956
# Provide some information about the compiler.
2957
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2960
{ (ac_try="$ac_compiler --version >&5"
2962
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963
*) ac_try_echo=$ac_try;;
2965
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2966
$as_echo "$ac_try_echo") >&5
2967
(eval "$ac_compiler --version >&5") 2>&5
2969
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970
(exit $ac_status); }
2971
{ (ac_try="$ac_compiler -v >&5"
2973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974
*) ac_try_echo=$ac_try;;
2976
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2977
$as_echo "$ac_try_echo") >&5
2978
(eval "$ac_compiler -v >&5") 2>&5
2980
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981
(exit $ac_status); }
2982
{ (ac_try="$ac_compiler -V >&5"
2984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985
*) ac_try_echo=$ac_try;;
2987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988
$as_echo "$ac_try_echo") >&5
2989
(eval "$ac_compiler -V >&5") 2>&5
2991
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992
(exit $ac_status); }
2994
cat >conftest.$ac_ext <<_ACEOF
2997
cat confdefs.h >>conftest.$ac_ext
2998
cat >>conftest.$ac_ext <<_ACEOF
2999
/* end confdefs.h. */
3009
ac_clean_files_save=$ac_clean_files
3010
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3011
# Try to create an executable without -o first, disregard a.out.
3012
# It will help us diagnose broken compilers, and finding out an intuition
3014
{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
3015
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3016
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3018
# The possible output files:
3019
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3022
for ac_file in $ac_files
3025
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3026
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3031
if { (ac_try="$ac_link_default"
3033
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034
*) ac_try_echo=$ac_try;;
3036
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3037
$as_echo "$ac_try_echo") >&5
3038
(eval "$ac_link_default") 2>&5
3040
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041
(exit $ac_status); }; then
3042
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3043
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3044
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3045
# so that the user can short-circuit this test for compilers unknown to
3047
for ac_file in $ac_files ''
3049
test -f "$ac_file" || continue
3051
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3054
# We found the default executable, but exeext='' is most
3058
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3060
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062
# We set ac_cv_exeext here because the later test for it is not
3063
# safe: cross compilers may not add the suffix if given an `-o'
3064
# argument, so we may need to know it at that point already.
3065
# Even if this section looks crufty: it has the advantage of
3072
test "$ac_cv_exeext" = no && ac_cv_exeext=
3078
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3079
$as_echo "$ac_file" >&6; }
3080
if test -z "$ac_file"; then
3081
$as_echo "$as_me: failed program was:" >&5
3082
sed 's/^/| /' conftest.$ac_ext >&5
3084
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3085
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086
{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
3087
See \`config.log' for more details." >&5
3088
$as_echo "$as_me: error: C++ compiler cannot create executables
3089
See \`config.log' for more details." >&2;}
3090
{ (exit 77); exit 77; }; }; }
3093
ac_exeext=$ac_cv_exeext
3095
# Check that the compiler produces executables we can run. If not, either
3096
# the compiler is broken, or we cross compile.
3097
{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
3098
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3099
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100
# If not cross compiling, check that we can run a simple program.
3101
if test "$cross_compiling" != yes; then
3102
if { ac_try='./$ac_file'
3103
{ (case "(($ac_try" in
3104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105
*) ac_try_echo=$ac_try;;
3107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3108
$as_echo "$ac_try_echo") >&5
3109
(eval "$ac_try") 2>&5
3111
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112
(exit $ac_status); }; }; then
3115
if test "$cross_compiling" = maybe; then
3118
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3119
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120
{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
3121
If you meant to cross compile, use \`--host'.
3122
See \`config.log' for more details." >&5
3123
$as_echo "$as_me: error: cannot run C++ compiled programs.
3124
If you meant to cross compile, use \`--host'.
3125
See \`config.log' for more details." >&2;}
3126
{ (exit 1); exit 1; }; }; }
3130
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3131
$as_echo "yes" >&6; }
3133
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3134
ac_clean_files=$ac_clean_files_save
3135
# Check that the compiler produces executables we can run. If not, either
3136
# the compiler is broken, or we cross compile.
3137
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3138
$as_echo_n "checking whether we are cross compiling... " >&6; }
3139
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3140
$as_echo "$cross_compiling" >&6; }
3142
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3143
$as_echo_n "checking for suffix of executables... " >&6; }
3144
if { (ac_try="$ac_link"
3146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147
*) ac_try_echo=$ac_try;;
3149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3150
$as_echo "$ac_try_echo") >&5
3151
(eval "$ac_link") 2>&5
3153
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154
(exit $ac_status); }; then
3155
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3156
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3157
# work properly (i.e., refer to `conftest.exe'), while it won't with
3159
for ac_file in conftest.exe conftest conftest.*; do
3160
test -f "$ac_file" || continue
3162
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3163
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3170
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3172
See \`config.log' for more details." >&5
3173
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3174
See \`config.log' for more details." >&2;}
3175
{ (exit 1); exit 1; }; }; }
3178
rm -f conftest$ac_cv_exeext
3179
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3180
$as_echo "$ac_cv_exeext" >&6; }
3182
rm -f conftest.$ac_ext
3183
EXEEXT=$ac_cv_exeext
3185
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3186
$as_echo_n "checking for suffix of object files... " >&6; }
3187
if test "${ac_cv_objext+set}" = set; then
3188
$as_echo_n "(cached) " >&6
3190
cat >conftest.$ac_ext <<_ACEOF
3193
cat confdefs.h >>conftest.$ac_ext
3194
cat >>conftest.$ac_ext <<_ACEOF
3195
/* end confdefs.h. */
3205
rm -f conftest.o conftest.obj
3206
if { (ac_try="$ac_compile"
3208
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209
*) ac_try_echo=$ac_try;;
3211
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3212
$as_echo "$ac_try_echo") >&5
3213
(eval "$ac_compile") 2>&5
3215
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216
(exit $ac_status); }; then
3217
for ac_file in conftest.o conftest.obj conftest.*; do
3218
test -f "$ac_file" || continue;
3220
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3221
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3226
$as_echo "$as_me: failed program was:" >&5
3227
sed 's/^/| /' conftest.$ac_ext >&5
3229
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3230
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3232
See \`config.log' for more details." >&5
3233
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3234
See \`config.log' for more details." >&2;}
3235
{ (exit 1); exit 1; }; }; }
3238
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3240
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3241
$as_echo "$ac_cv_objext" >&6; }
3242
OBJEXT=$ac_cv_objext
3244
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3245
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3246
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3247
$as_echo_n "(cached) " >&6
3249
cat >conftest.$ac_ext <<_ACEOF
3252
cat confdefs.h >>conftest.$ac_ext
3253
cat >>conftest.$ac_ext <<_ACEOF
3254
/* end confdefs.h. */
3267
rm -f conftest.$ac_objext
3268
if { (ac_try="$ac_compile"
3270
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271
*) ac_try_echo=$ac_try;;
3273
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274
$as_echo "$ac_try_echo") >&5
3275
(eval "$ac_compile") 2>conftest.er1
3277
grep -v '^ *+' conftest.er1 >conftest.err
3279
cat conftest.err >&5
3280
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281
(exit $ac_status); } && {
3282
test -z "$ac_cxx_werror_flag" ||
3283
test ! -s conftest.err
3284
} && test -s conftest.$ac_objext; then
3287
$as_echo "$as_me: failed program was:" >&5
3288
sed 's/^/| /' conftest.$ac_ext >&5
3293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3297
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3298
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3299
if test $ac_compiler_gnu = yes; then
3304
ac_test_CXXFLAGS=${CXXFLAGS+set}
3305
ac_save_CXXFLAGS=$CXXFLAGS
3306
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3307
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3308
if test "${ac_cv_prog_cxx_g+set}" = set; then
3309
$as_echo_n "(cached) " >&6
3311
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3312
ac_cxx_werror_flag=yes
3315
cat >conftest.$ac_ext <<_ACEOF
3318
cat confdefs.h >>conftest.$ac_ext
3319
cat >>conftest.$ac_ext <<_ACEOF
3320
/* end confdefs.h. */
3330
rm -f conftest.$ac_objext
3331
if { (ac_try="$ac_compile"
3333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334
*) ac_try_echo=$ac_try;;
3336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337
$as_echo "$ac_try_echo") >&5
3338
(eval "$ac_compile") 2>conftest.er1
3340
grep -v '^ *+' conftest.er1 >conftest.err
3342
cat conftest.err >&5
3343
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344
(exit $ac_status); } && {
3345
test -z "$ac_cxx_werror_flag" ||
3346
test ! -s conftest.err
3347
} && test -s conftest.$ac_objext; then
3348
ac_cv_prog_cxx_g=yes
3350
$as_echo "$as_me: failed program was:" >&5
3351
sed 's/^/| /' conftest.$ac_ext >&5
3354
cat >conftest.$ac_ext <<_ACEOF
3357
cat confdefs.h >>conftest.$ac_ext
3358
cat >>conftest.$ac_ext <<_ACEOF
3359
/* end confdefs.h. */
3369
rm -f conftest.$ac_objext
3370
if { (ac_try="$ac_compile"
3372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373
*) ac_try_echo=$ac_try;;
3375
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3376
$as_echo "$ac_try_echo") >&5
3377
(eval "$ac_compile") 2>conftest.er1
3379
grep -v '^ *+' conftest.er1 >conftest.err
3381
cat conftest.err >&5
3382
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383
(exit $ac_status); } && {
3384
test -z "$ac_cxx_werror_flag" ||
3385
test ! -s conftest.err
3386
} && test -s conftest.$ac_objext; then
3389
$as_echo "$as_me: failed program was:" >&5
3390
sed 's/^/| /' conftest.$ac_ext >&5
3392
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3394
cat >conftest.$ac_ext <<_ACEOF
3397
cat confdefs.h >>conftest.$ac_ext
3398
cat >>conftest.$ac_ext <<_ACEOF
3399
/* end confdefs.h. */
3409
rm -f conftest.$ac_objext
3410
if { (ac_try="$ac_compile"
3412
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413
*) ac_try_echo=$ac_try;;
3415
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3416
$as_echo "$ac_try_echo") >&5
3417
(eval "$ac_compile") 2>conftest.er1
3419
grep -v '^ *+' conftest.er1 >conftest.err
3421
cat conftest.err >&5
3422
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423
(exit $ac_status); } && {
3424
test -z "$ac_cxx_werror_flag" ||
3425
test ! -s conftest.err
3426
} && test -s conftest.$ac_objext; then
3427
ac_cv_prog_cxx_g=yes
3429
$as_echo "$as_me: failed program was:" >&5
3430
sed 's/^/| /' conftest.$ac_ext >&5
3435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3444
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3445
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3446
if test "$ac_test_CXXFLAGS" = set; then
3447
CXXFLAGS=$ac_save_CXXFLAGS
3448
elif test $ac_cv_prog_cxx_g = yes; then
3449
if test "$GXX" = yes; then
3455
if test "$GXX" = yes; then
3462
ac_cpp='$CPP $CPPFLAGS'
3463
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
DEPDIR="${am__leading_dot}deps"
3468
ac_config_commands="$ac_config_commands depfiles"
3471
am_make=${MAKE-make}
3472
cat > confinc << 'END'
3477
# If we don't find an include directive, just comment out the code.
3478
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3479
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3483
# First try GNU make style include.
3484
echo "include confinc" > confmf
3485
# We grep out `Entering directory' and `Leaving directory'
3486
# messages which can occur if `w' ends up in MAKEFLAGS.
3487
# In particular we don't look at `^make:' because GNU make might
3488
# be invoked under some other name (usually "gmake"), in which
3489
# case it prints its new name instead of `make'.
3490
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3495
# Now try BSD make style include.
3496
if test "$am__include" = "#"; then
3497
echo '.include "confinc"' > confmf
3498
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3499
am__include=.include
3506
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3507
$as_echo "$_am_result" >&6; }
3508
rm -f confinc confmf
3510
# Check whether --enable-dependency-tracking was given.
3511
if test "${enable_dependency_tracking+set}" = set; then
3512
enableval=$enable_dependency_tracking;
3515
if test "x$enable_dependency_tracking" != xno; then
3516
am_depcomp="$ac_aux_dir/depcomp"
3519
if test "x$enable_dependency_tracking" != xno; then
3529
depcc="$CXX" am_compiler_list=
3531
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3532
$as_echo_n "checking dependency style of $depcc... " >&6; }
3533
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3534
$as_echo_n "(cached) " >&6
3536
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3537
# We make a subdir and do the tests there. Otherwise we can end up
3538
# making bogus files that we don't know about and never remove. For
3539
# instance it was reported that on HP-UX the gcc test will end up
3540
# making a dummy file named `D' -- because `-MD' means `put the output
3543
# Copy depcomp to subdir because otherwise we won't find it if we're
3544
# using a relative directory.
3545
cp "$am_depcomp" conftest.dir
3547
# We will build objects and dependencies in a subdirectory because
3548
# it helps to detect inapplicable dependency modes. For instance
3549
# both Tru64's cc and ICC support -MD to output dependencies as a
3550
# side effect of compilation, but ICC will put the dependencies in
3551
# the current directory while Tru64 will put them in the object
3555
am_cv_CXX_dependencies_compiler_type=none
3556
if test "$am_compiler_list" = ""; then
3557
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3559
for depmode in $am_compiler_list; do
3560
# Setup a source with many dependencies, because some compilers
3561
# like to wrap large dependency lists on column 80 (with \), and
3562
# we should not choose a depcomp mode which is confused by this.
3564
# We need to recreate these files for each test, as the compiler may
3565
# overwrite some of them when testing with obscure command lines.
3566
# This happens at least with the AIX C compiler.
3568
for i in 1 2 3 4 5 6; do
3569
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3570
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3571
# Solaris 8's {/usr,}/bin/sh.
3572
touch sub/conftst$i.h
3574
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3578
# after this tag, mechanisms are not by side-effect, so they'll
3579
# only be used when explicitly requested
3580
if test "x$enable_dependency_tracking" = xyes; then
3588
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3589
# mode. It turns out that the SunPro C++ compiler does not properly
3590
# handle `-M -o', and we need to detect this.
3591
if depmode=$depmode \
3592
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3593
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3594
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3595
>/dev/null 2>conftest.err &&
3596
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3597
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3598
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3599
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3600
# icc doesn't choke on unknown options, it will just issue warnings
3601
# or remarks (even with -Werror). So we grep stderr for any message
3602
# that says an option was ignored or not supported.
3603
# When given -MP, icc 7.0 and 7.1 complain thusly:
3604
# icc: Command line warning: ignoring option '-M'; no argument required
3605
# The diagnosis changed in icc 8.0:
3606
# icc: Command line remark: option '-MP' not supported
3607
if (grep 'ignoring option' conftest.err ||
3608
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3609
am_cv_CXX_dependencies_compiler_type=$depmode
3618
am_cv_CXX_dependencies_compiler_type=none
3622
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3623
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3624
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3627
test "x$enable_dependency_tracking" != xno \
3628
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3629
am__fastdepCXX_TRUE=
3630
am__fastdepCXX_FALSE='#'
3632
am__fastdepCXX_TRUE='#'
3633
am__fastdepCXX_FALSE=
3637
for ac_prog in gawk mawk nawk awk
3639
# Extract the first word of "$ac_prog", so it can be a program name with args.
3640
set dummy $ac_prog; ac_word=$2
3641
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3642
$as_echo_n "checking for $ac_word... " >&6; }
3643
if test "${ac_cv_prog_AWK+set}" = set; then
3644
$as_echo_n "(cached) " >&6
3646
if test -n "$AWK"; then
3647
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653
test -z "$as_dir" && as_dir=.
3654
for ac_exec_ext in '' $ac_executable_extensions; do
3655
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3656
ac_cv_prog_AWK="$ac_prog"
3657
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667
if test -n "$AWK"; then
3668
{ $as_echo "$as_me:$LINENO: result: $AWK" >&5
3669
$as_echo "$AWK" >&6; }
3671
{ $as_echo "$as_me:$LINENO: result: no" >&5
3672
$as_echo "no" >&6; }
3676
test -n "$AWK" && break
3680
ac_cpp='$CPP $CPPFLAGS'
3681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684
if test -n "$ac_tool_prefix"; then
3685
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3686
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3687
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3688
$as_echo_n "checking for $ac_word... " >&6; }
3689
if test "${ac_cv_prog_CC+set}" = set; then
3690
$as_echo_n "(cached) " >&6
3692
if test -n "$CC"; then
3693
ac_cv_prog_CC="$CC" # Let the user override the test.
3695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699
test -z "$as_dir" && as_dir=.
3700
for ac_exec_ext in '' $ac_executable_extensions; do
3701
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3703
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713
if test -n "$CC"; then
3714
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3715
$as_echo "$CC" >&6; }
3717
{ $as_echo "$as_me:$LINENO: result: no" >&5
3718
$as_echo "no" >&6; }
3723
if test -z "$ac_cv_prog_CC"; then
3725
# Extract the first word of "gcc", so it can be a program name with args.
3726
set dummy gcc; ac_word=$2
3727
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3728
$as_echo_n "checking for $ac_word... " >&6; }
3729
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3730
$as_echo_n "(cached) " >&6
3732
if test -n "$ac_ct_CC"; then
3733
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739
test -z "$as_dir" && as_dir=.
3740
for ac_exec_ext in '' $ac_executable_extensions; do
3741
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742
ac_cv_prog_ac_ct_CC="gcc"
3743
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3753
if test -n "$ac_ct_CC"; then
3754
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3755
$as_echo "$ac_ct_CC" >&6; }
3757
{ $as_echo "$as_me:$LINENO: result: no" >&5
3758
$as_echo "no" >&6; }
3761
if test "x$ac_ct_CC" = x; then
3764
case $cross_compiling:$ac_tool_warned in
3766
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3767
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3768
ac_tool_warned=yes ;;
3776
if test -z "$CC"; then
3777
if test -n "$ac_tool_prefix"; then
3778
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3779
set dummy ${ac_tool_prefix}cc; ac_word=$2
3780
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3781
$as_echo_n "checking for $ac_word... " >&6; }
3782
if test "${ac_cv_prog_CC+set}" = set; then
3783
$as_echo_n "(cached) " >&6
3785
if test -n "$CC"; then
3786
ac_cv_prog_CC="$CC" # Let the user override the test.
3788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792
test -z "$as_dir" && as_dir=.
3793
for ac_exec_ext in '' $ac_executable_extensions; do
3794
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795
ac_cv_prog_CC="${ac_tool_prefix}cc"
3796
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806
if test -n "$CC"; then
3807
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3808
$as_echo "$CC" >&6; }
3810
{ $as_echo "$as_me:$LINENO: result: no" >&5
3811
$as_echo "no" >&6; }
3817
if test -z "$CC"; then
3818
# Extract the first word of "cc", so it can be a program name with args.
3819
set dummy cc; ac_word=$2
3820
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3821
$as_echo_n "checking for $ac_word... " >&6; }
3822
if test "${ac_cv_prog_CC+set}" = set; then
3823
$as_echo_n "(cached) " >&6
3825
if test -n "$CC"; then
3826
ac_cv_prog_CC="$CC" # Let the user override the test.
3829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833
test -z "$as_dir" && as_dir=.
3834
for ac_exec_ext in '' $ac_executable_extensions; do
3835
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3836
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3837
ac_prog_rejected=yes
3841
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848
if test $ac_prog_rejected = yes; then
3849
# We found a bogon in the path, so make sure we never use it.
3850
set dummy $ac_cv_prog_CC
3852
if test $# != 0; then
3853
# We chose a different compiler from the bogus one.
3854
# However, it has the same basename, so the bogon will be chosen
3855
# first if we set CC to just the basename; use the full file name.
3857
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3863
if test -n "$CC"; then
3864
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3865
$as_echo "$CC" >&6; }
3867
{ $as_echo "$as_me:$LINENO: result: no" >&5
3868
$as_echo "no" >&6; }
3873
if test -z "$CC"; then
3874
if test -n "$ac_tool_prefix"; then
3875
for ac_prog in cl.exe
3877
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3878
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3879
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3880
$as_echo_n "checking for $ac_word... " >&6; }
3881
if test "${ac_cv_prog_CC+set}" = set; then
3882
$as_echo_n "(cached) " >&6
3884
if test -n "$CC"; then
3885
ac_cv_prog_CC="$CC" # Let the user override the test.
3887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891
test -z "$as_dir" && as_dir=.
3892
for ac_exec_ext in '' $ac_executable_extensions; do
3893
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3895
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905
if test -n "$CC"; then
3906
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3907
$as_echo "$CC" >&6; }
3909
{ $as_echo "$as_me:$LINENO: result: no" >&5
3910
$as_echo "no" >&6; }
3914
test -n "$CC" && break
3917
if test -z "$CC"; then
3919
for ac_prog in cl.exe
3921
# Extract the first word of "$ac_prog", so it can be a program name with args.
3922
set dummy $ac_prog; ac_word=$2
3923
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3924
$as_echo_n "checking for $ac_word... " >&6; }
3925
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3926
$as_echo_n "(cached) " >&6
3928
if test -n "$ac_ct_CC"; then
3929
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935
test -z "$as_dir" && as_dir=.
3936
for ac_exec_ext in '' $ac_executable_extensions; do
3937
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938
ac_cv_prog_ac_ct_CC="$ac_prog"
3939
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3949
if test -n "$ac_ct_CC"; then
3950
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3951
$as_echo "$ac_ct_CC" >&6; }
3953
{ $as_echo "$as_me:$LINENO: result: no" >&5
3954
$as_echo "no" >&6; }
3958
test -n "$ac_ct_CC" && break
3961
if test "x$ac_ct_CC" = x; then
3964
case $cross_compiling:$ac_tool_warned in
3966
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968
ac_tool_warned=yes ;;
3977
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3978
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3980
See \`config.log' for more details." >&5
3981
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3982
See \`config.log' for more details." >&2;}
3983
{ (exit 1); exit 1; }; }; }
3985
# Provide some information about the compiler.
3986
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3989
{ (ac_try="$ac_compiler --version >&5"
3991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992
*) ac_try_echo=$ac_try;;
3994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3995
$as_echo "$ac_try_echo") >&5
3996
(eval "$ac_compiler --version >&5") 2>&5
3998
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999
(exit $ac_status); }
4000
{ (ac_try="$ac_compiler -v >&5"
4002
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003
*) ac_try_echo=$ac_try;;
4005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4006
$as_echo "$ac_try_echo") >&5
4007
(eval "$ac_compiler -v >&5") 2>&5
4009
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010
(exit $ac_status); }
4011
{ (ac_try="$ac_compiler -V >&5"
4013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014
*) ac_try_echo=$ac_try;;
4016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4017
$as_echo "$ac_try_echo") >&5
4018
(eval "$ac_compiler -V >&5") 2>&5
4020
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021
(exit $ac_status); }
4023
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4024
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4025
if test "${ac_cv_c_compiler_gnu+set}" = set; then
4026
$as_echo_n "(cached) " >&6
4028
cat >conftest.$ac_ext <<_ACEOF
4031
cat confdefs.h >>conftest.$ac_ext
4032
cat >>conftest.$ac_ext <<_ACEOF
4033
/* end confdefs.h. */
4046
rm -f conftest.$ac_objext
4047
if { (ac_try="$ac_compile"
4049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050
*) ac_try_echo=$ac_try;;
4052
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4053
$as_echo "$ac_try_echo") >&5
4054
(eval "$ac_compile") 2>conftest.er1
4056
grep -v '^ *+' conftest.er1 >conftest.err
4058
cat conftest.err >&5
4059
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
(exit $ac_status); } && {
4061
test -z "$ac_c_werror_flag" ||
4062
test ! -s conftest.err
4063
} && test -s conftest.$ac_objext; then
4066
$as_echo "$as_me: failed program was:" >&5
4067
sed 's/^/| /' conftest.$ac_ext >&5
4072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4077
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4078
if test $ac_compiler_gnu = yes; then
4083
ac_test_CFLAGS=${CFLAGS+set}
4084
ac_save_CFLAGS=$CFLAGS
4085
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4086
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4087
if test "${ac_cv_prog_cc_g+set}" = set; then
4088
$as_echo_n "(cached) " >&6
4090
ac_save_c_werror_flag=$ac_c_werror_flag
4091
ac_c_werror_flag=yes
4094
cat >conftest.$ac_ext <<_ACEOF
4097
cat confdefs.h >>conftest.$ac_ext
4098
cat >>conftest.$ac_ext <<_ACEOF
4099
/* end confdefs.h. */
4109
rm -f conftest.$ac_objext
4110
if { (ac_try="$ac_compile"
4112
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113
*) ac_try_echo=$ac_try;;
4115
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4116
$as_echo "$ac_try_echo") >&5
4117
(eval "$ac_compile") 2>conftest.er1
4119
grep -v '^ *+' conftest.er1 >conftest.err
4121
cat conftest.err >&5
4122
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123
(exit $ac_status); } && {
4124
test -z "$ac_c_werror_flag" ||
4125
test ! -s conftest.err
4126
} && test -s conftest.$ac_objext; then
4129
$as_echo "$as_me: failed program was:" >&5
4130
sed 's/^/| /' conftest.$ac_ext >&5
4133
cat >conftest.$ac_ext <<_ACEOF
4136
cat confdefs.h >>conftest.$ac_ext
4137
cat >>conftest.$ac_ext <<_ACEOF
4138
/* end confdefs.h. */
4148
rm -f conftest.$ac_objext
4149
if { (ac_try="$ac_compile"
4151
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152
*) ac_try_echo=$ac_try;;
4154
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4155
$as_echo "$ac_try_echo") >&5
4156
(eval "$ac_compile") 2>conftest.er1
4158
grep -v '^ *+' conftest.er1 >conftest.err
4160
cat conftest.err >&5
4161
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162
(exit $ac_status); } && {
4163
test -z "$ac_c_werror_flag" ||
4164
test ! -s conftest.err
4165
} && test -s conftest.$ac_objext; then
4168
$as_echo "$as_me: failed program was:" >&5
4169
sed 's/^/| /' conftest.$ac_ext >&5
4171
ac_c_werror_flag=$ac_save_c_werror_flag
4173
cat >conftest.$ac_ext <<_ACEOF
4176
cat confdefs.h >>conftest.$ac_ext
4177
cat >>conftest.$ac_ext <<_ACEOF
4178
/* end confdefs.h. */
4188
rm -f conftest.$ac_objext
4189
if { (ac_try="$ac_compile"
4191
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192
*) ac_try_echo=$ac_try;;
4194
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4195
$as_echo "$ac_try_echo") >&5
4196
(eval "$ac_compile") 2>conftest.er1
4198
grep -v '^ *+' conftest.er1 >conftest.err
4200
cat conftest.err >&5
4201
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202
(exit $ac_status); } && {
4203
test -z "$ac_c_werror_flag" ||
4204
test ! -s conftest.err
4205
} && test -s conftest.$ac_objext; then
4208
$as_echo "$as_me: failed program was:" >&5
4209
sed 's/^/| /' conftest.$ac_ext >&5
4214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221
ac_c_werror_flag=$ac_save_c_werror_flag
4223
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4224
$as_echo "$ac_cv_prog_cc_g" >&6; }
4225
if test "$ac_test_CFLAGS" = set; then
4226
CFLAGS=$ac_save_CFLAGS
4227
elif test $ac_cv_prog_cc_g = yes; then
4228
if test "$GCC" = yes; then
4234
if test "$GCC" = yes; then
4240
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4241
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4242
if test "${ac_cv_prog_cc_c89+set}" = set; then
4243
$as_echo_n "(cached) " >&6
4245
ac_cv_prog_cc_c89=no
4247
cat >conftest.$ac_ext <<_ACEOF
4250
cat confdefs.h >>conftest.$ac_ext
4251
cat >>conftest.$ac_ext <<_ACEOF
4252
/* end confdefs.h. */
4255
#include <sys/types.h>
4256
#include <sys/stat.h>
4257
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4258
struct buf { int x; };
4259
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4260
static char *e (p, i)
4266
static char *f (char * (*g) (char **, int), char **p, ...)
4271
s = g (p, va_arg (v,int));
4276
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4277
function prototypes and stuff, but not '\xHH' hex character constants.
4278
These don't provoke an error unfortunately, instead are silently treated
4279
as 'x'. The following induces an error, until -std is added to get
4280
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4281
array size at least. It's necessary to write '\x00'==0 to get something
4282
that's true only with -std. */
4283
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4285
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4286
inside strings and character constants. */
4288
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4290
int test (int i, double x);
4291
struct s1 {int (*f) (int a);};
4292
struct s2 {int (*f) (double a);};
4293
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4299
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4304
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4305
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4307
CC="$ac_save_CC $ac_arg"
4308
rm -f conftest.$ac_objext
4309
if { (ac_try="$ac_compile"
4311
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312
*) ac_try_echo=$ac_try;;
4314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4315
$as_echo "$ac_try_echo") >&5
4316
(eval "$ac_compile") 2>conftest.er1
4318
grep -v '^ *+' conftest.er1 >conftest.err
4320
cat conftest.err >&5
4321
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322
(exit $ac_status); } && {
4323
test -z "$ac_c_werror_flag" ||
4324
test ! -s conftest.err
4325
} && test -s conftest.$ac_objext; then
4326
ac_cv_prog_cc_c89=$ac_arg
4328
$as_echo "$as_me: failed program was:" >&5
4329
sed 's/^/| /' conftest.$ac_ext >&5
4334
rm -f core conftest.err conftest.$ac_objext
4335
test "x$ac_cv_prog_cc_c89" != "xno" && break
4337
rm -f conftest.$ac_ext
4342
case "x$ac_cv_prog_cc_c89" in
4344
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
4345
$as_echo "none needed" >&6; } ;;
4347
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
4348
$as_echo "unsupported" >&6; } ;;
4350
CC="$CC $ac_cv_prog_cc_c89"
4351
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4352
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4357
ac_cpp='$CPP $CPPFLAGS'
4358
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362
depcc="$CC" am_compiler_list=
4364
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4365
$as_echo_n "checking dependency style of $depcc... " >&6; }
4366
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4367
$as_echo_n "(cached) " >&6
4369
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4370
# We make a subdir and do the tests there. Otherwise we can end up
4371
# making bogus files that we don't know about and never remove. For
4372
# instance it was reported that on HP-UX the gcc test will end up
4373
# making a dummy file named `D' -- because `-MD' means `put the output
4376
# Copy depcomp to subdir because otherwise we won't find it if we're
4377
# using a relative directory.
4378
cp "$am_depcomp" conftest.dir
4380
# We will build objects and dependencies in a subdirectory because
4381
# it helps to detect inapplicable dependency modes. For instance
4382
# both Tru64's cc and ICC support -MD to output dependencies as a
4383
# side effect of compilation, but ICC will put the dependencies in
4384
# the current directory while Tru64 will put them in the object
4388
am_cv_CC_dependencies_compiler_type=none
4389
if test "$am_compiler_list" = ""; then
4390
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4392
for depmode in $am_compiler_list; do
4393
# Setup a source with many dependencies, because some compilers
4394
# like to wrap large dependency lists on column 80 (with \), and
4395
# we should not choose a depcomp mode which is confused by this.
4397
# We need to recreate these files for each test, as the compiler may
4398
# overwrite some of them when testing with obscure command lines.
4399
# This happens at least with the AIX C compiler.
4401
for i in 1 2 3 4 5 6; do
4402
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4403
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4404
# Solaris 8's {/usr,}/bin/sh.
4405
touch sub/conftst$i.h
4407
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4411
# after this tag, mechanisms are not by side-effect, so they'll
4412
# only be used when explicitly requested
4413
if test "x$enable_dependency_tracking" = xyes; then
4421
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4422
# mode. It turns out that the SunPro C++ compiler does not properly
4423
# handle `-M -o', and we need to detect this.
4424
if depmode=$depmode \
4425
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4426
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4427
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4428
>/dev/null 2>conftest.err &&
4429
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4430
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4431
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4432
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4433
# icc doesn't choke on unknown options, it will just issue warnings
4434
# or remarks (even with -Werror). So we grep stderr for any message
4435
# that says an option was ignored or not supported.
4436
# When given -MP, icc 7.0 and 7.1 complain thusly:
4437
# icc: Command line warning: ignoring option '-M'; no argument required
4438
# The diagnosis changed in icc 8.0:
4439
# icc: Command line remark: option '-MP' not supported
4440
if (grep 'ignoring option' conftest.err ||
4441
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4442
am_cv_CC_dependencies_compiler_type=$depmode
4451
am_cv_CC_dependencies_compiler_type=none
4455
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4456
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4457
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4460
test "x$enable_dependency_tracking" != xno \
4461
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4463
am__fastdepCC_FALSE='#'
4465
am__fastdepCC_TRUE='#'
4466
am__fastdepCC_FALSE=
4471
ac_cpp='$CPP $CPPFLAGS'
4472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4476
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4477
# On Suns, sometimes $CPP names a directory.
4478
if test -n "$CPP" && test -d "$CPP"; then
4481
if test -z "$CPP"; then
4482
if test "${ac_cv_prog_CPP+set}" = set; then
4483
$as_echo_n "(cached) " >&6
4485
# Double quotes because CPP needs to be expanded
4486
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4489
for ac_c_preproc_warn_flag in '' yes
4491
# Use a header file that comes with gcc, so configuring glibc
4492
# with a fresh cross-compiler works.
4493
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494
# <limits.h> exists even on freestanding compilers.
4495
# On the NeXT, cc -E runs the code through the compiler's parser,
4496
# not just through cpp. "Syntax error" is here to catch this case.
4497
cat >conftest.$ac_ext <<_ACEOF
4500
cat confdefs.h >>conftest.$ac_ext
4501
cat >>conftest.$ac_ext <<_ACEOF
4502
/* end confdefs.h. */
4504
# include <limits.h>
4506
# include <assert.h>
4510
if { (ac_try="$ac_cpp conftest.$ac_ext"
4512
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513
*) ac_try_echo=$ac_try;;
4515
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4516
$as_echo "$ac_try_echo") >&5
4517
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4519
grep -v '^ *+' conftest.er1 >conftest.err
4521
cat conftest.err >&5
4522
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523
(exit $ac_status); } >/dev/null && {
4524
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4525
test ! -s conftest.err
4529
$as_echo "$as_me: failed program was:" >&5
4530
sed 's/^/| /' conftest.$ac_ext >&5
4532
# Broken: fails on valid input.
4536
rm -f conftest.err conftest.$ac_ext
4538
# OK, works on sane cases. Now check whether nonexistent headers
4539
# can be detected and how.
4540
cat >conftest.$ac_ext <<_ACEOF
4543
cat confdefs.h >>conftest.$ac_ext
4544
cat >>conftest.$ac_ext <<_ACEOF
4545
/* end confdefs.h. */
4546
#include <ac_nonexistent.h>
4548
if { (ac_try="$ac_cpp conftest.$ac_ext"
4550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551
*) ac_try_echo=$ac_try;;
4553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4554
$as_echo "$ac_try_echo") >&5
4555
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4557
grep -v '^ *+' conftest.er1 >conftest.err
4559
cat conftest.err >&5
4560
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561
(exit $ac_status); } >/dev/null && {
4562
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4563
test ! -s conftest.err
4565
# Broken: success on invalid input.
4568
$as_echo "$as_me: failed program was:" >&5
4569
sed 's/^/| /' conftest.$ac_ext >&5
4571
# Passes both tests.
4576
rm -f conftest.err conftest.$ac_ext
4579
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4580
rm -f conftest.err conftest.$ac_ext
4581
if $ac_preproc_ok; then
4593
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4594
$as_echo "$CPP" >&6; }
4596
for ac_c_preproc_warn_flag in '' yes
4598
# Use a header file that comes with gcc, so configuring glibc
4599
# with a fresh cross-compiler works.
4600
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4601
# <limits.h> exists even on freestanding compilers.
4602
# On the NeXT, cc -E runs the code through the compiler's parser,
4603
# not just through cpp. "Syntax error" is here to catch this case.
4604
cat >conftest.$ac_ext <<_ACEOF
4607
cat confdefs.h >>conftest.$ac_ext
4608
cat >>conftest.$ac_ext <<_ACEOF
4609
/* end confdefs.h. */
4611
# include <limits.h>
4613
# include <assert.h>
4617
if { (ac_try="$ac_cpp conftest.$ac_ext"
4619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620
*) ac_try_echo=$ac_try;;
4622
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4623
$as_echo "$ac_try_echo") >&5
4624
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4626
grep -v '^ *+' conftest.er1 >conftest.err
4628
cat conftest.err >&5
4629
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630
(exit $ac_status); } >/dev/null && {
4631
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4632
test ! -s conftest.err
4636
$as_echo "$as_me: failed program was:" >&5
4637
sed 's/^/| /' conftest.$ac_ext >&5
4639
# Broken: fails on valid input.
4643
rm -f conftest.err conftest.$ac_ext
4645
# OK, works on sane cases. Now check whether nonexistent headers
4646
# can be detected and how.
4647
cat >conftest.$ac_ext <<_ACEOF
4650
cat confdefs.h >>conftest.$ac_ext
4651
cat >>conftest.$ac_ext <<_ACEOF
4652
/* end confdefs.h. */
4653
#include <ac_nonexistent.h>
4655
if { (ac_try="$ac_cpp conftest.$ac_ext"
4657
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658
*) ac_try_echo=$ac_try;;
4660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4661
$as_echo "$ac_try_echo") >&5
4662
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4664
grep -v '^ *+' conftest.er1 >conftest.err
4666
cat conftest.err >&5
4667
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); } >/dev/null && {
4669
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4670
test ! -s conftest.err
4672
# Broken: success on invalid input.
4675
$as_echo "$as_me: failed program was:" >&5
4676
sed 's/^/| /' conftest.$ac_ext >&5
4678
# Passes both tests.
4683
rm -f conftest.err conftest.$ac_ext
4686
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4687
rm -f conftest.err conftest.$ac_ext
4688
if $ac_preproc_ok; then
4691
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4692
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4693
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4694
See \`config.log' for more details." >&5
4695
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4696
See \`config.log' for more details." >&2;}
4697
{ (exit 1); exit 1; }; }; }
4701
ac_cpp='$CPP $CPPFLAGS'
4702
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706
# Find a good install program. We prefer a C program (faster),
4707
# so one script is as good as another. But avoid the broken or
4708
# incompatible versions:
4709
# SysV /etc/install, /usr/sbin/install
4710
# SunOS /usr/etc/install
4711
# IRIX /sbin/install
4713
# AmigaOS /C/install, which installs bootblocks on floppy discs
4714
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4715
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4716
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4717
# OS/2's system install, which has a completely different semantic
4718
# ./install, which can be erroneously created by make from ./install.sh.
4719
# Reject install programs that cannot install multiple files.
4720
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4721
$as_echo_n "checking for a BSD-compatible install... " >&6; }
4722
if test -z "$INSTALL"; then
4723
if test "${ac_cv_path_install+set}" = set; then
4724
$as_echo_n "(cached) " >&6
4726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730
test -z "$as_dir" && as_dir=.
4731
# Account for people who put trailing slashes in PATH elements.
4733
./ | .// | /cC/* | \
4734
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4735
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4738
# OSF1 and SCO ODT 3.0 have their own names for install.
4739
# Don't use installbsd from OSF since it installs stuff as root
4741
for ac_prog in ginstall scoinst install; do
4742
for ac_exec_ext in '' $ac_executable_extensions; do
4743
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4744
if test $ac_prog = install &&
4745
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4746
# AIX install. It has an incompatible calling convention.
4748
elif test $ac_prog = install &&
4749
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4750
# program-specific install script used by HP pwplus--don't use.
4753
rm -rf conftest.one conftest.two conftest.dir
4754
echo one > conftest.one
4755
echo two > conftest.two
4757
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4758
test -s conftest.one && test -s conftest.two &&
4759
test -s conftest.dir/conftest.one &&
4760
test -s conftest.dir/conftest.two
4762
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4775
rm -rf conftest.one conftest.two conftest.dir
4778
if test "${ac_cv_path_install+set}" = set; then
4779
INSTALL=$ac_cv_path_install
4781
# As a last resort, use the slow shell script. Don't cache a
4782
# value for INSTALL within a source directory, because that will
4783
# break other packages using the cache if that directory is
4784
# removed, or if the value is a relative name.
4785
INSTALL=$ac_install_sh
4788
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4789
$as_echo "$INSTALL" >&6; }
4791
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4792
# It thinks the first close brace ends the variable substitution.
4793
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4795
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4797
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4799
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4800
$as_echo_n "checking whether ln -s works... " >&6; }
4802
if test "$LN_S" = "ln -s"; then
4803
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4804
$as_echo "yes" >&6; }
4806
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4807
$as_echo "no, using $LN_S" >&6; }
4810
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4811
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4813
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4814
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4815
$as_echo_n "(cached) " >&6
4817
cat >conftest.make <<\_ACEOF
4820
@echo '@@@%%%=$(MAKE)=@@@%%%'
4822
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4823
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4825
eval ac_cv_prog_make_${ac_make}_set=yes;;
4827
eval ac_cv_prog_make_${ac_make}_set=no;;
4831
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4832
{ $as_echo "$as_me:$LINENO: result: yes" >&5
4833
$as_echo "yes" >&6; }
4836
{ $as_echo "$as_me:$LINENO: result: no" >&5
4837
$as_echo "no" >&6; }
4838
SET_MAKE="MAKE=${MAKE-make}"
4841
# Check whether --enable-shared was given.
4842
if test "${enable_shared+set}" = set; then
4843
enableval=$enable_shared; p=${PACKAGE-default}
4845
yes) enable_shared=yes ;;
4846
no) enable_shared=no ;;
4849
# Look at the argument we got. We use all the common list separators.
4850
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4851
for pkg in $enableval; do
4853
if test "X$pkg" = "X$p"; then
4865
# Check whether --enable-static was given.
4866
if test "${enable_static+set}" = set; then
4867
enableval=$enable_static; p=${PACKAGE-default}
4869
yes) enable_static=yes ;;
4870
no) enable_static=no ;;
4873
# Look at the argument we got. We use all the common list separators.
4874
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4875
for pkg in $enableval; do
4877
if test "X$pkg" = "X$p"; then
4889
# Check whether --enable-fast-install was given.
4890
if test "${enable_fast_install+set}" = set; then
4891
enableval=$enable_fast_install; p=${PACKAGE-default}
4893
yes) enable_fast_install=yes ;;
4894
no) enable_fast_install=no ;;
4896
enable_fast_install=no
4897
# Look at the argument we got. We use all the common list separators.
4898
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4899
for pkg in $enableval; do
4901
if test "X$pkg" = "X$p"; then
4902
enable_fast_install=yes
4909
enable_fast_install=yes
4913
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4914
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4915
if test "${lt_cv_path_SED+set}" = set; then
4916
$as_echo_n "(cached) " >&6
4918
# Loop through the user's path and test for sed and gsed.
4919
# Then use that list of sed's as ones to test for truncation.
4920
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924
test -z "$as_dir" && as_dir=.
4925
for lt_ac_prog in sed gsed; do
4926
for ac_exec_ext in '' $ac_executable_extensions; do
4927
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4928
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4936
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4937
# along with /bin/sed that truncates output.
4938
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4939
test ! -f $lt_ac_sed && continue
4940
cat /dev/null > conftest.in
4942
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4943
# Check for GNU sed and select it if it is found.
4944
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4945
lt_cv_path_SED=$lt_ac_sed
4949
cat conftest.in conftest.in >conftest.tmp
4950
mv conftest.tmp conftest.in
4951
cp conftest.in conftest.nl
4953
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4954
cmp -s conftest.out conftest.nl || break
4955
# 10000 chars as input seems more than enough
4956
test $lt_ac_count -gt 10 && break
4957
lt_ac_count=`expr $lt_ac_count + 1`
4958
if test $lt_ac_count -gt $lt_ac_max; then
4959
lt_ac_max=$lt_ac_count
4960
lt_cv_path_SED=$lt_ac_sed
4969
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
4970
$as_echo "$SED" >&6; }
4972
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4973
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4974
if test "${ac_cv_path_GREP+set}" = set; then
4975
$as_echo_n "(cached) " >&6
4977
if test -z "$GREP"; then
4978
ac_path_GREP_found=false
4979
# Loop through the user's path and test for each of PROGNAME-LIST
4980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4984
test -z "$as_dir" && as_dir=.
4985
for ac_prog in grep ggrep; do
4986
for ac_exec_ext in '' $ac_executable_extensions; do
4987
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4988
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4989
# Check for GNU ac_path_GREP and select it if it is found.
4990
# Check for GNU $ac_path_GREP
4991
case `"$ac_path_GREP" --version 2>&1` in
4993
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4996
$as_echo_n 0123456789 >"conftest.in"
4999
cat "conftest.in" "conftest.in" >"conftest.tmp"
5000
mv "conftest.tmp" "conftest.in"
5001
cp "conftest.in" "conftest.nl"
5002
$as_echo 'GREP' >> "conftest.nl"
5003
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5004
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5005
ac_count=`expr $ac_count + 1`
5006
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5007
# Best one so far, save it but keep looking for a better one
5008
ac_cv_path_GREP="$ac_path_GREP"
5009
ac_path_GREP_max=$ac_count
5011
# 10*(2^10) chars as input seems more than enough
5012
test $ac_count -gt 10 && break
5014
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017
$ac_path_GREP_found && break 3
5022
if test -z "$ac_cv_path_GREP"; then
5023
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5024
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5025
{ (exit 1); exit 1; }; }
5028
ac_cv_path_GREP=$GREP
5032
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5033
$as_echo "$ac_cv_path_GREP" >&6; }
5034
GREP="$ac_cv_path_GREP"
5037
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5038
$as_echo_n "checking for egrep... " >&6; }
5039
if test "${ac_cv_path_EGREP+set}" = set; then
5040
$as_echo_n "(cached) " >&6
5042
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5043
then ac_cv_path_EGREP="$GREP -E"
5045
if test -z "$EGREP"; then
5046
ac_path_EGREP_found=false
5047
# Loop through the user's path and test for each of PROGNAME-LIST
5048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052
test -z "$as_dir" && as_dir=.
5053
for ac_prog in egrep; do
5054
for ac_exec_ext in '' $ac_executable_extensions; do
5055
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5056
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5057
# Check for GNU ac_path_EGREP and select it if it is found.
5058
# Check for GNU $ac_path_EGREP
5059
case `"$ac_path_EGREP" --version 2>&1` in
5061
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5064
$as_echo_n 0123456789 >"conftest.in"
5067
cat "conftest.in" "conftest.in" >"conftest.tmp"
5068
mv "conftest.tmp" "conftest.in"
5069
cp "conftest.in" "conftest.nl"
5070
$as_echo 'EGREP' >> "conftest.nl"
5071
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5072
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5073
ac_count=`expr $ac_count + 1`
5074
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5075
# Best one so far, save it but keep looking for a better one
5076
ac_cv_path_EGREP="$ac_path_EGREP"
5077
ac_path_EGREP_max=$ac_count
5079
# 10*(2^10) chars as input seems more than enough
5080
test $ac_count -gt 10 && break
5082
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085
$ac_path_EGREP_found && break 3
5090
if test -z "$ac_cv_path_EGREP"; then
5091
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5092
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5093
{ (exit 1); exit 1; }; }
5096
ac_cv_path_EGREP=$EGREP
5101
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5102
$as_echo "$ac_cv_path_EGREP" >&6; }
5103
EGREP="$ac_cv_path_EGREP"
5107
# Check whether --with-gnu-ld was given.
5108
if test "${with_gnu_ld+set}" = set; then
5109
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5115
if test "$GCC" = yes; then
5116
# Check if gcc -print-prog-name=ld gives a path.
5117
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5118
$as_echo_n "checking for ld used by $CC... " >&6; }
5121
# gcc leaves a trailing carriage return which upsets mingw
5122
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5124
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5127
# Accept absolute paths.
5129
re_direlt='/[^/][^/]*/\.\./'
5130
# Canonicalize the pathname of ld
5131
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5132
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5133
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5135
test -z "$LD" && LD="$ac_prog"
5138
# If it fails, then pretend we aren't using GCC.
5142
# If it is relative, then search for the first ld in PATH.
5146
elif test "$with_gnu_ld" = yes; then
5147
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5148
$as_echo_n "checking for GNU ld... " >&6; }
5150
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5151
$as_echo_n "checking for non-GNU ld... " >&6; }
5153
if test "${lt_cv_path_LD+set}" = set; then
5154
$as_echo_n "(cached) " >&6
5156
if test -z "$LD"; then
5157
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5158
for ac_dir in $PATH; do
5160
test -z "$ac_dir" && ac_dir=.
5161
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5162
lt_cv_path_LD="$ac_dir/$ac_prog"
5163
# Check to see if the program is GNU ld. I'd rather use --version,
5164
# but apparently some variants of GNU ld only accept -v.
5165
# Break only if it was the GNU/non-GNU ld that we prefer.
5166
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5167
*GNU* | *'with BFD'*)
5168
test "$with_gnu_ld" != no && break
5171
test "$with_gnu_ld" != yes && break
5178
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5183
if test -n "$LD"; then
5184
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
5185
$as_echo "$LD" >&6; }
5187
{ $as_echo "$as_me:$LINENO: result: no" >&5
5188
$as_echo "no" >&6; }
5190
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5191
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5192
{ (exit 1); exit 1; }; }
5193
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5194
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5195
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5196
$as_echo_n "(cached) " >&6
5198
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5199
case `$LD -v 2>&1 </dev/null` in
5200
*GNU* | *'with BFD'*)
5201
lt_cv_prog_gnu_ld=yes
5204
lt_cv_prog_gnu_ld=no
5208
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5209
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5210
with_gnu_ld=$lt_cv_prog_gnu_ld
5213
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5214
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5215
if test "${lt_cv_ld_reload_flag+set}" = set; then
5216
$as_echo_n "(cached) " >&6
5218
lt_cv_ld_reload_flag='-r'
5220
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5221
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5222
reload_flag=$lt_cv_ld_reload_flag
5223
case $reload_flag in
5225
*) reload_flag=" $reload_flag" ;;
5227
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5230
if test "$GCC" = yes; then
5231
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5233
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5238
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5239
$as_echo_n "checking for BSD-compatible nm... " >&6; }
5240
if test "${lt_cv_path_NM+set}" = set; then
5241
$as_echo_n "(cached) " >&6
5243
if test -n "$NM"; then
5244
# Let the user override the test.
5247
lt_nm_to_check="${ac_tool_prefix}nm"
5248
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5249
lt_nm_to_check="$lt_nm_to_check nm"
5251
for lt_tmp_nm in $lt_nm_to_check; do
5252
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5253
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5255
test -z "$ac_dir" && ac_dir=.
5256
tmp_nm="$ac_dir/$lt_tmp_nm"
5257
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5258
# Check to see if the nm accepts a BSD-compat flag.
5259
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5260
# nm: unknown option "B" ignored
5261
# Tru64's nm complains that /dev/null is an invalid object file
5262
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5263
*/dev/null* | *'Invalid file or object type'*)
5264
lt_cv_path_NM="$tmp_nm -B"
5268
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5270
lt_cv_path_NM="$tmp_nm -p"
5274
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5275
continue # so that we can try to find one that supports BSD flags
5284
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5287
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5288
$as_echo "$lt_cv_path_NM" >&6; }
5291
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5292
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5293
if test "${lt_cv_deplibs_check_method+set}" = set; then
5294
$as_echo_n "(cached) " >&6
5296
lt_cv_file_magic_cmd='$MAGIC_CMD'
5297
lt_cv_file_magic_test_file=
5298
lt_cv_deplibs_check_method='unknown'
5299
# Need to set the preceding variable on all platforms that support
5300
# interlibrary dependencies.
5301
# 'none' -- dependencies not supported.
5302
# `unknown' -- same as none, but documents that we really don't know.
5303
# 'pass_all' -- all dependencies passed with no checks.
5304
# 'test_compile' -- check by making test program.
5305
# 'file_magic [[regex]]' -- check by looking for files in library path
5306
# which responds to the $file_magic_cmd with a given extended regex.
5307
# If you have `file' or equivalent on your system and you're not sure
5308
# whether `pass_all' will *always* work, you probably want this one.
5312
lt_cv_deplibs_check_method=pass_all
5316
lt_cv_deplibs_check_method=pass_all
5320
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5321
lt_cv_file_magic_cmd='/usr/bin/file -L'
5322
lt_cv_file_magic_test_file=/shlib/libc.so
5326
# func_win32_libid is a shell function defined in ltmain.sh
5327
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5328
lt_cv_file_magic_cmd='func_win32_libid'
5332
# Base MSYS/MinGW do not provide the 'file' command needed by
5333
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5334
# unless we find 'file', for example because we are cross-compiling.
5335
if ( file / ) >/dev/null 2>&1; then
5336
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5337
lt_cv_file_magic_cmd='func_win32_libid'
5339
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5340
lt_cv_file_magic_cmd='$OBJDUMP -f'
5344
darwin* | rhapsody*)
5345
lt_cv_deplibs_check_method=pass_all
5348
freebsd* | dragonfly*)
5349
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5352
# Not sure whether the presence of OpenBSD here was a mistake.
5353
# Let's accept both of them until this is cleared up.
5354
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5355
lt_cv_file_magic_cmd=/usr/bin/file
5356
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5360
lt_cv_deplibs_check_method=pass_all
5365
lt_cv_deplibs_check_method=pass_all
5368
hpux10.20* | hpux11*)
5369
lt_cv_file_magic_cmd=/usr/bin/file
5372
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5373
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5376
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]'
5377
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5380
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5381
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5387
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5388
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5391
irix5* | irix6* | nonstopux*)
5393
*-32|*"-32 ") libmagic=32-bit;;
5394
*-n32|*"-n32 ") libmagic=N32;;
5395
*-64|*"-64 ") libmagic=64-bit;;
5396
*) libmagic=never-match;;
5398
lt_cv_deplibs_check_method=pass_all
5401
# This must be Linux ELF.
5402
linux* | k*bsd*-gnu)
5403
lt_cv_deplibs_check_method=pass_all
5407
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5408
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5410
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5415
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5416
lt_cv_file_magic_cmd=/usr/bin/file
5417
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5421
lt_cv_deplibs_check_method=unknown
5425
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5426
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5428
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5432
osf3* | osf4* | osf5*)
5433
lt_cv_deplibs_check_method=pass_all
5437
lt_cv_deplibs_check_method=pass_all
5441
lt_cv_deplibs_check_method=pass_all
5445
case $host_vendor in
5447
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]'
5448
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5451
lt_cv_deplibs_check_method=pass_all
5454
lt_cv_file_magic_cmd='/bin/file'
5455
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5458
lt_cv_file_magic_cmd='/bin/file'
5459
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5460
lt_cv_file_magic_test_file=/lib/libc.so
5463
lt_cv_deplibs_check_method=pass_all
5466
lt_cv_deplibs_check_method=pass_all
5471
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5472
lt_cv_deplibs_check_method=pass_all
5477
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5478
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5479
file_magic_cmd=$lt_cv_file_magic_cmd
5480
deplibs_check_method=$lt_cv_deplibs_check_method
5481
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5486
# If no C compiler was specified, use CC.
5489
# If no C compiler flags were specified, use CFLAGS.
5490
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5492
# Allow CC to be a program name with arguments.
5496
# Check whether --enable-libtool-lock was given.
5497
if test "${enable_libtool_lock+set}" = set; then
5498
enableval=$enable_libtool_lock;
5501
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5503
# Some flags need to be propagated to the compiler or linker for good
5507
# Find out which ABI we are using.
5508
echo 'int i;' > conftest.$ac_ext
5509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510
(eval $ac_compile) 2>&5
5512
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513
(exit $ac_status); }; then
5514
case `/usr/bin/file conftest.$ac_objext` in
5526
# Find out which ABI we are using.
5527
echo '#line 5527 "configure"' > conftest.$ac_ext
5528
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529
(eval $ac_compile) 2>&5
5531
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532
(exit $ac_status); }; then
5533
if test "$lt_cv_prog_gnu_ld" = yes; then
5534
case `/usr/bin/file conftest.$ac_objext` in
5536
LD="${LD-ld} -melf32bsmip"
5539
LD="${LD-ld} -melf32bmipn32"
5542
LD="${LD-ld} -melf64bmip"
5546
case `/usr/bin/file conftest.$ac_objext` in
5562
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5563
s390*-*linux*|sparc*-*linux*)
5564
# Find out which ABI we are using.
5565
echo 'int i;' > conftest.$ac_ext
5566
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567
(eval $ac_compile) 2>&5
5569
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570
(exit $ac_status); }; then
5571
case `/usr/bin/file conftest.o` in
5574
x86_64-*kfreebsd*-gnu)
5575
LD="${LD-ld} -m elf_i386_fbsd"
5578
LD="${LD-ld} -m elf_i386"
5580
ppc64-*linux*|powerpc64-*linux*)
5581
LD="${LD-ld} -m elf32ppclinux"
5584
LD="${LD-ld} -m elf_s390"
5587
LD="${LD-ld} -m elf32_sparc"
5593
x86_64-*kfreebsd*-gnu)
5594
LD="${LD-ld} -m elf_x86_64_fbsd"
5597
LD="${LD-ld} -m elf_x86_64"
5599
ppc*-*linux*|powerpc*-*linux*)
5600
LD="${LD-ld} -m elf64ppc"
5603
LD="${LD-ld} -m elf64_s390"
5606
LD="${LD-ld} -m elf64_sparc"
5616
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5617
SAVE_CFLAGS="$CFLAGS"
5618
CFLAGS="$CFLAGS -belf"
5619
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5620
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5621
if test "${lt_cv_cc_needs_belf+set}" = set; then
5622
$as_echo_n "(cached) " >&6
5625
ac_cpp='$CPP $CPPFLAGS'
5626
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630
cat >conftest.$ac_ext <<_ACEOF
5633
cat confdefs.h >>conftest.$ac_ext
5634
cat >>conftest.$ac_ext <<_ACEOF
5635
/* end confdefs.h. */
5645
rm -f conftest.$ac_objext conftest$ac_exeext
5646
if { (ac_try="$ac_link"
5648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649
*) ac_try_echo=$ac_try;;
5651
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5652
$as_echo "$ac_try_echo") >&5
5653
(eval "$ac_link") 2>conftest.er1
5655
grep -v '^ *+' conftest.er1 >conftest.err
5657
cat conftest.err >&5
5658
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659
(exit $ac_status); } && {
5660
test -z "$ac_c_werror_flag" ||
5661
test ! -s conftest.err
5662
} && test -s conftest$ac_exeext && {
5663
test "$cross_compiling" = yes ||
5664
$as_test_x conftest$ac_exeext
5666
lt_cv_cc_needs_belf=yes
5668
$as_echo "$as_me: failed program was:" >&5
5669
sed 's/^/| /' conftest.$ac_ext >&5
5671
lt_cv_cc_needs_belf=no
5674
rm -rf conftest.dSYM
5675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5676
conftest$ac_exeext conftest.$ac_ext
5678
ac_cpp='$CPP $CPPFLAGS'
5679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5685
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5686
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5687
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5688
CFLAGS="$SAVE_CFLAGS"
5692
# Find out which ABI we are using.
5693
echo 'int i;' > conftest.$ac_ext
5694
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695
(eval $ac_compile) 2>&5
5697
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698
(exit $ac_status); }; then
5699
case `/usr/bin/file conftest.o` in
5701
case $lt_cv_prog_gnu_ld in
5702
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5704
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5718
need_locks="$enable_libtool_lock"
5722
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5723
$as_echo_n "checking for ANSI C header files... " >&6; }
5724
if test "${ac_cv_header_stdc+set}" = set; then
5725
$as_echo_n "(cached) " >&6
5727
cat >conftest.$ac_ext <<_ACEOF
5730
cat confdefs.h >>conftest.$ac_ext
5731
cat >>conftest.$ac_ext <<_ACEOF
5732
/* end confdefs.h. */
5746
rm -f conftest.$ac_objext
5747
if { (ac_try="$ac_compile"
5749
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750
*) ac_try_echo=$ac_try;;
5752
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5753
$as_echo "$ac_try_echo") >&5
5754
(eval "$ac_compile") 2>conftest.er1
5756
grep -v '^ *+' conftest.er1 >conftest.err
5758
cat conftest.err >&5
5759
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760
(exit $ac_status); } && {
5761
test -z "$ac_c_werror_flag" ||
5762
test ! -s conftest.err
5763
} && test -s conftest.$ac_objext; then
5764
ac_cv_header_stdc=yes
5766
$as_echo "$as_me: failed program was:" >&5
5767
sed 's/^/| /' conftest.$ac_ext >&5
5769
ac_cv_header_stdc=no
5772
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774
if test $ac_cv_header_stdc = yes; then
5775
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5776
cat >conftest.$ac_ext <<_ACEOF
5779
cat confdefs.h >>conftest.$ac_ext
5780
cat >>conftest.$ac_ext <<_ACEOF
5781
/* end confdefs.h. */
5785
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5786
$EGREP "memchr" >/dev/null 2>&1; then
5789
ac_cv_header_stdc=no
5795
if test $ac_cv_header_stdc = yes; then
5796
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5797
cat >conftest.$ac_ext <<_ACEOF
5800
cat confdefs.h >>conftest.$ac_ext
5801
cat >>conftest.$ac_ext <<_ACEOF
5802
/* end confdefs.h. */
5806
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5807
$EGREP "free" >/dev/null 2>&1; then
5810
ac_cv_header_stdc=no
5816
if test $ac_cv_header_stdc = yes; then
5817
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5818
if test "$cross_compiling" = yes; then
5821
cat >conftest.$ac_ext <<_ACEOF
5824
cat confdefs.h >>conftest.$ac_ext
5825
cat >>conftest.$ac_ext <<_ACEOF
5826
/* end confdefs.h. */
5829
#if ((' ' & 0x0FF) == 0x020)
5830
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5831
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5833
# define ISLOWER(c) \
5834
(('a' <= (c) && (c) <= 'i') \
5835
|| ('j' <= (c) && (c) <= 'r') \
5836
|| ('s' <= (c) && (c) <= 'z'))
5837
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5840
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5845
for (i = 0; i < 256; i++)
5846
if (XOR (islower (i), ISLOWER (i))
5847
|| toupper (i) != TOUPPER (i))
5852
rm -f conftest$ac_exeext
5853
if { (ac_try="$ac_link"
5855
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856
*) ac_try_echo=$ac_try;;
5858
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5859
$as_echo "$ac_try_echo") >&5
5860
(eval "$ac_link") 2>&5
5862
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864
{ (case "(($ac_try" in
5865
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866
*) ac_try_echo=$ac_try;;
5868
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5869
$as_echo "$ac_try_echo") >&5
5870
(eval "$ac_try") 2>&5
5872
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873
(exit $ac_status); }; }; then
5876
$as_echo "$as_me: program exited with status $ac_status" >&5
5877
$as_echo "$as_me: failed program was:" >&5
5878
sed 's/^/| /' conftest.$ac_ext >&5
5881
ac_cv_header_stdc=no
5883
rm -rf conftest.dSYM
5884
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5890
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5891
$as_echo "$ac_cv_header_stdc" >&6; }
5892
if test $ac_cv_header_stdc = yes; then
5894
cat >>confdefs.h <<\_ACEOF
5895
#define STDC_HEADERS 1
5900
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5910
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5911
inttypes.h stdint.h unistd.h
5913
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5914
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5915
$as_echo_n "checking for $ac_header... " >&6; }
5916
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5917
$as_echo_n "(cached) " >&6
5919
cat >conftest.$ac_ext <<_ACEOF
5922
cat confdefs.h >>conftest.$ac_ext
5923
cat >>conftest.$ac_ext <<_ACEOF
5924
/* end confdefs.h. */
5925
$ac_includes_default
5927
#include <$ac_header>
5929
rm -f conftest.$ac_objext
5930
if { (ac_try="$ac_compile"
5932
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933
*) ac_try_echo=$ac_try;;
5935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936
$as_echo "$ac_try_echo") >&5
5937
(eval "$ac_compile") 2>conftest.er1
5939
grep -v '^ *+' conftest.er1 >conftest.err
5941
cat conftest.err >&5
5942
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
(exit $ac_status); } && {
5944
test -z "$ac_c_werror_flag" ||
5945
test ! -s conftest.err
5946
} && test -s conftest.$ac_objext; then
5947
eval "$as_ac_Header=yes"
5949
$as_echo "$as_me: failed program was:" >&5
5950
sed 's/^/| /' conftest.$ac_ext >&5
5952
eval "$as_ac_Header=no"
5955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957
ac_res=`eval 'as_val=${'$as_ac_Header'}
5958
$as_echo "$as_val"'`
5959
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5960
$as_echo "$ac_res" >&6; }
5961
as_val=`eval 'as_val=${'$as_ac_Header'}
5962
$as_echo "$as_val"'`
5963
if test "x$as_val" = x""yes; then
5964
cat >>confdefs.h <<_ACEOF
5965
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5974
for ac_header in dlfcn.h
5976
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5978
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5979
$as_echo_n "checking for $ac_header... " >&6; }
5980
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5981
$as_echo_n "(cached) " >&6
5983
ac_res=`eval 'as_val=${'$as_ac_Header'}
5984
$as_echo "$as_val"'`
5985
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5986
$as_echo "$ac_res" >&6; }
5988
# Is the header compilable?
5989
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990
$as_echo_n "checking $ac_header usability... " >&6; }
5991
cat >conftest.$ac_ext <<_ACEOF
5994
cat confdefs.h >>conftest.$ac_ext
5995
cat >>conftest.$ac_ext <<_ACEOF
5996
/* end confdefs.h. */
5997
$ac_includes_default
5998
#include <$ac_header>
6000
rm -f conftest.$ac_objext
6001
if { (ac_try="$ac_compile"
6003
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004
*) ac_try_echo=$ac_try;;
6006
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6007
$as_echo "$ac_try_echo") >&5
6008
(eval "$ac_compile") 2>conftest.er1
6010
grep -v '^ *+' conftest.er1 >conftest.err
6012
cat conftest.err >&5
6013
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014
(exit $ac_status); } && {
6015
test -z "$ac_c_werror_flag" ||
6016
test ! -s conftest.err
6017
} && test -s conftest.$ac_objext; then
6018
ac_header_compiler=yes
6020
$as_echo "$as_me: failed program was:" >&5
6021
sed 's/^/| /' conftest.$ac_ext >&5
6023
ac_header_compiler=no
6026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6028
$as_echo "$ac_header_compiler" >&6; }
6030
# Is the header present?
6031
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6032
$as_echo_n "checking $ac_header presence... " >&6; }
6033
cat >conftest.$ac_ext <<_ACEOF
6036
cat confdefs.h >>conftest.$ac_ext
6037
cat >>conftest.$ac_ext <<_ACEOF
6038
/* end confdefs.h. */
6039
#include <$ac_header>
6041
if { (ac_try="$ac_cpp conftest.$ac_ext"
6043
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044
*) ac_try_echo=$ac_try;;
6046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6047
$as_echo "$ac_try_echo") >&5
6048
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6050
grep -v '^ *+' conftest.er1 >conftest.err
6052
cat conftest.err >&5
6053
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054
(exit $ac_status); } >/dev/null && {
6055
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6056
test ! -s conftest.err
6058
ac_header_preproc=yes
6060
$as_echo "$as_me: failed program was:" >&5
6061
sed 's/^/| /' conftest.$ac_ext >&5
6063
ac_header_preproc=no
6066
rm -f conftest.err conftest.$ac_ext
6067
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6068
$as_echo "$ac_header_preproc" >&6; }
6070
# So? What about this header?
6071
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6073
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6074
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6075
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6076
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6077
ac_header_preproc=yes
6080
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6081
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6082
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6083
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6084
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6085
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6086
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6087
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6088
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6089
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6090
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6091
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6093
## ------------------------------------- ##
6094
## Report this to clients@worldforge.org ##
6095
## ------------------------------------- ##
6097
) | sed "s/^/$as_me: WARNING: /" >&2
6100
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6101
$as_echo_n "checking for $ac_header... " >&6; }
6102
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6103
$as_echo_n "(cached) " >&6
6105
eval "$as_ac_Header=\$ac_header_preproc"
6107
ac_res=`eval 'as_val=${'$as_ac_Header'}
6108
$as_echo "$as_val"'`
6109
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6110
$as_echo "$ac_res" >&6; }
6113
as_val=`eval 'as_val=${'$as_ac_Header'}
6114
$as_echo "$as_val"'`
6115
if test "x$as_val" = x""yes; then
6116
cat >>confdefs.h <<_ACEOF
6117
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6126
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6127
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6128
(test "X$CXX" != "Xg++"))) ; then
6130
ac_cpp='$CXXCPP $CPPFLAGS'
6131
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6134
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6135
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6136
if test -z "$CXXCPP"; then
6137
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6138
$as_echo_n "(cached) " >&6
6140
# Double quotes because CXXCPP needs to be expanded
6141
for CXXCPP in "$CXX -E" "/lib/cpp"
6144
for ac_cxx_preproc_warn_flag in '' yes
6146
# Use a header file that comes with gcc, so configuring glibc
6147
# with a fresh cross-compiler works.
6148
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6149
# <limits.h> exists even on freestanding compilers.
6150
# On the NeXT, cc -E runs the code through the compiler's parser,
6151
# not just through cpp. "Syntax error" is here to catch this case.
6152
cat >conftest.$ac_ext <<_ACEOF
6155
cat confdefs.h >>conftest.$ac_ext
6156
cat >>conftest.$ac_ext <<_ACEOF
6157
/* end confdefs.h. */
6159
# include <limits.h>
6161
# include <assert.h>
6165
if { (ac_try="$ac_cpp conftest.$ac_ext"
6167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168
*) ac_try_echo=$ac_try;;
6170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171
$as_echo "$ac_try_echo") >&5
6172
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6174
grep -v '^ *+' conftest.er1 >conftest.err
6176
cat conftest.err >&5
6177
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178
(exit $ac_status); } >/dev/null && {
6179
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6180
test ! -s conftest.err
6184
$as_echo "$as_me: failed program was:" >&5
6185
sed 's/^/| /' conftest.$ac_ext >&5
6187
# Broken: fails on valid input.
6191
rm -f conftest.err conftest.$ac_ext
6193
# OK, works on sane cases. Now check whether nonexistent headers
6194
# can be detected and how.
6195
cat >conftest.$ac_ext <<_ACEOF
6198
cat confdefs.h >>conftest.$ac_ext
6199
cat >>conftest.$ac_ext <<_ACEOF
6200
/* end confdefs.h. */
6201
#include <ac_nonexistent.h>
6203
if { (ac_try="$ac_cpp conftest.$ac_ext"
6205
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206
*) ac_try_echo=$ac_try;;
6208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209
$as_echo "$ac_try_echo") >&5
6210
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6212
grep -v '^ *+' conftest.er1 >conftest.err
6214
cat conftest.err >&5
6215
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216
(exit $ac_status); } >/dev/null && {
6217
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6218
test ! -s conftest.err
6220
# Broken: success on invalid input.
6223
$as_echo "$as_me: failed program was:" >&5
6224
sed 's/^/| /' conftest.$ac_ext >&5
6226
# Passes both tests.
6231
rm -f conftest.err conftest.$ac_ext
6234
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6235
rm -f conftest.err conftest.$ac_ext
6236
if $ac_preproc_ok; then
6241
ac_cv_prog_CXXCPP=$CXXCPP
6244
CXXCPP=$ac_cv_prog_CXXCPP
6246
ac_cv_prog_CXXCPP=$CXXCPP
6248
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6249
$as_echo "$CXXCPP" >&6; }
6251
for ac_cxx_preproc_warn_flag in '' yes
6253
# Use a header file that comes with gcc, so configuring glibc
6254
# with a fresh cross-compiler works.
6255
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6256
# <limits.h> exists even on freestanding compilers.
6257
# On the NeXT, cc -E runs the code through the compiler's parser,
6258
# not just through cpp. "Syntax error" is here to catch this case.
6259
cat >conftest.$ac_ext <<_ACEOF
6262
cat confdefs.h >>conftest.$ac_ext
6263
cat >>conftest.$ac_ext <<_ACEOF
6264
/* end confdefs.h. */
6266
# include <limits.h>
6268
# include <assert.h>
6272
if { (ac_try="$ac_cpp conftest.$ac_ext"
6274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6275
*) ac_try_echo=$ac_try;;
6277
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6278
$as_echo "$ac_try_echo") >&5
6279
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6281
grep -v '^ *+' conftest.er1 >conftest.err
6283
cat conftest.err >&5
6284
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285
(exit $ac_status); } >/dev/null && {
6286
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6287
test ! -s conftest.err
6291
$as_echo "$as_me: failed program was:" >&5
6292
sed 's/^/| /' conftest.$ac_ext >&5
6294
# Broken: fails on valid input.
6298
rm -f conftest.err conftest.$ac_ext
6300
# OK, works on sane cases. Now check whether nonexistent headers
6301
# can be detected and how.
6302
cat >conftest.$ac_ext <<_ACEOF
6305
cat confdefs.h >>conftest.$ac_ext
6306
cat >>conftest.$ac_ext <<_ACEOF
6307
/* end confdefs.h. */
6308
#include <ac_nonexistent.h>
6310
if { (ac_try="$ac_cpp conftest.$ac_ext"
6312
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313
*) ac_try_echo=$ac_try;;
6315
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6316
$as_echo "$ac_try_echo") >&5
6317
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6319
grep -v '^ *+' conftest.er1 >conftest.err
6321
cat conftest.err >&5
6322
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323
(exit $ac_status); } >/dev/null && {
6324
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6325
test ! -s conftest.err
6327
# Broken: success on invalid input.
6330
$as_echo "$as_me: failed program was:" >&5
6331
sed 's/^/| /' conftest.$ac_ext >&5
6333
# Passes both tests.
6338
rm -f conftest.err conftest.$ac_ext
6341
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6342
rm -f conftest.err conftest.$ac_ext
6343
if $ac_preproc_ok; then
6346
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6347
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6348
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6349
See \`config.log' for more details." >&5
6350
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6351
See \`config.log' for more details." >&2;}
6352
{ (exit 1); exit 1; }; }; }
6356
ac_cpp='$CXXCPP $CPPFLAGS'
6357
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6358
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6359
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6365
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6366
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6368
if test -n "$ac_tool_prefix"; then
6369
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
6371
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6372
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6373
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6374
$as_echo_n "checking for $ac_word... " >&6; }
6375
if test "${ac_cv_prog_F77+set}" = set; then
6376
$as_echo_n "(cached) " >&6
6378
if test -n "$F77"; then
6379
ac_cv_prog_F77="$F77" # Let the user override the test.
6381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385
test -z "$as_dir" && as_dir=.
6386
for ac_exec_ext in '' $ac_executable_extensions; do
6387
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6389
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399
if test -n "$F77"; then
6400
{ $as_echo "$as_me:$LINENO: result: $F77" >&5
6401
$as_echo "$F77" >&6; }
6403
{ $as_echo "$as_me:$LINENO: result: no" >&5
6404
$as_echo "no" >&6; }
6408
test -n "$F77" && break
6411
if test -z "$F77"; then
6413
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
6415
# Extract the first word of "$ac_prog", so it can be a program name with args.
6416
set dummy $ac_prog; ac_word=$2
6417
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6418
$as_echo_n "checking for $ac_word... " >&6; }
6419
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6420
$as_echo_n "(cached) " >&6
6422
if test -n "$ac_ct_F77"; then
6423
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429
test -z "$as_dir" && as_dir=.
6430
for ac_exec_ext in '' $ac_executable_extensions; do
6431
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432
ac_cv_prog_ac_ct_F77="$ac_prog"
6433
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6443
if test -n "$ac_ct_F77"; then
6444
{ $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6445
$as_echo "$ac_ct_F77" >&6; }
6447
{ $as_echo "$as_me:$LINENO: result: no" >&5
6448
$as_echo "no" >&6; }
6452
test -n "$ac_ct_F77" && break
6455
if test "x$ac_ct_F77" = x; then
6458
case $cross_compiling:$ac_tool_warned in
6460
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6461
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462
ac_tool_warned=yes ;;
6469
# Provide some information about the compiler.
6470
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6473
{ (ac_try="$ac_compiler --version >&5"
6475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476
*) ac_try_echo=$ac_try;;
6478
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6479
$as_echo "$ac_try_echo") >&5
6480
(eval "$ac_compiler --version >&5") 2>&5
6482
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483
(exit $ac_status); }
6484
{ (ac_try="$ac_compiler -v >&5"
6486
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487
*) ac_try_echo=$ac_try;;
6489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6490
$as_echo "$ac_try_echo") >&5
6491
(eval "$ac_compiler -v >&5") 2>&5
6493
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494
(exit $ac_status); }
6495
{ (ac_try="$ac_compiler -V >&5"
6497
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498
*) ac_try_echo=$ac_try;;
6500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6501
$as_echo "$ac_try_echo") >&5
6502
(eval "$ac_compiler -V >&5") 2>&5
6504
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505
(exit $ac_status); }
6508
# If we don't use `.F' as extension, the preprocessor is not run on the
6509
# input file. (Note that this only needs to work for GNU compilers.)
6512
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6513
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6514
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6515
$as_echo_n "(cached) " >&6
6517
cat >conftest.$ac_ext <<_ACEOF
6525
rm -f conftest.$ac_objext
6526
if { (ac_try="$ac_compile"
6528
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529
*) ac_try_echo=$ac_try;;
6531
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6532
$as_echo "$ac_try_echo") >&5
6533
(eval "$ac_compile") 2>conftest.er1
6535
grep -v '^ *+' conftest.er1 >conftest.err
6537
cat conftest.err >&5
6538
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539
(exit $ac_status); } && {
6540
test -z "$ac_f77_werror_flag" ||
6541
test ! -s conftest.err
6542
} && test -s conftest.$ac_objext; then
6545
$as_echo "$as_me: failed program was:" >&5
6546
sed 's/^/| /' conftest.$ac_ext >&5
6551
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6555
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6556
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6558
ac_test_FFLAGS=${FFLAGS+set}
6559
ac_save_FFLAGS=$FFLAGS
6561
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6562
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6563
if test "${ac_cv_prog_f77_g+set}" = set; then
6564
$as_echo_n "(cached) " >&6
6567
cat >conftest.$ac_ext <<_ACEOF
6572
rm -f conftest.$ac_objext
6573
if { (ac_try="$ac_compile"
6575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576
*) ac_try_echo=$ac_try;;
6578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6579
$as_echo "$ac_try_echo") >&5
6580
(eval "$ac_compile") 2>conftest.er1
6582
grep -v '^ *+' conftest.er1 >conftest.err
6584
cat conftest.err >&5
6585
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586
(exit $ac_status); } && {
6587
test -z "$ac_f77_werror_flag" ||
6588
test ! -s conftest.err
6589
} && test -s conftest.$ac_objext; then
6590
ac_cv_prog_f77_g=yes
6592
$as_echo "$as_me: failed program was:" >&5
6593
sed 's/^/| /' conftest.$ac_ext >&5
6598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6602
$as_echo "$ac_cv_prog_f77_g" >&6; }
6603
if test "$ac_test_FFLAGS" = set; then
6604
FFLAGS=$ac_save_FFLAGS
6605
elif test $ac_cv_prog_f77_g = yes; then
6606
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6612
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6619
if test $ac_compiler_gnu = yes; then
6625
ac_cpp='$CPP $CPPFLAGS'
6626
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6633
# find the maximum length of command line arguments
6634
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6635
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6636
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6637
$as_echo_n "(cached) " >&6
6644
# On DJGPP, this test can blow up pretty badly due to problems in libc
6645
# (any single argument exceeding 2000 bytes causes a buffer overrun
6646
# during glob expansion). Even if it were fixed, the result of this
6647
# check would be larger than it should be.
6648
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6652
# Under GNU Hurd, this test is not required because there is
6653
# no limit to the length of command line arguments.
6654
# Libtool will interpret -1 as no limit whatsoever
6655
lt_cv_sys_max_cmd_len=-1;
6659
# On Win9x/ME, this test blows up -- it succeeds, but takes
6660
# about 5 minutes as the teststring grows exponentially.
6661
# Worse, since 9x/ME are not pre-emptively multitasking,
6662
# you end up with a "frozen" computer, even though with patience
6663
# the test eventually succeeds (with a max line length of 256k).
6664
# Instead, let's just punt: use the minimum linelength reported by
6665
# all of the supported platforms: 8192 (on NT/2K/XP).
6666
lt_cv_sys_max_cmd_len=8192;
6670
# On AmigaOS with pdksh, this test takes hours, literally.
6671
# So we just punt and use a minimum line length of 8192.
6672
lt_cv_sys_max_cmd_len=8192;
6675
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6676
# This has been around since 386BSD, at least. Likely further.
6677
if test -x /sbin/sysctl; then
6678
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6679
elif test -x /usr/sbin/sysctl; then
6680
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6682
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6684
# And add a safety zone
6685
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6686
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6690
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6691
lt_cv_sys_max_cmd_len=196608
6695
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6696
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6697
# nice to cause kernel panics so lets avoid the loop below.
6698
# First set a reasonable default.
6699
lt_cv_sys_max_cmd_len=16384
6701
if test -x /sbin/sysconfig; then
6702
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6703
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6708
lt_cv_sys_max_cmd_len=102400
6710
sysv5* | sco5v6* | sysv4.2uw2*)
6711
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6712
if test -n "$kargmax"; then
6713
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6715
lt_cv_sys_max_cmd_len=32768
6719
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6720
if test -n "$lt_cv_sys_max_cmd_len"; then
6721
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6722
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6724
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6725
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6726
= "XX$teststring") >/dev/null 2>&1 &&
6727
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6728
lt_cv_sys_max_cmd_len=$new_result &&
6729
test $i != 17 # 1/2 MB should be enough
6732
teststring=$teststring$teststring
6735
# Add a significant safety factor because C++ compilers can tack on massive
6736
# amounts of additional arguments before passing them to the linker.
6737
# It appears as though 1/2 is a usable value.
6738
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6745
if test -n $lt_cv_sys_max_cmd_len ; then
6746
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6747
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6749
{ $as_echo "$as_me:$LINENO: result: none" >&5
6750
$as_echo "none" >&6; }
6757
# Check for command to grab the raw symbol name followed by C symbol from nm.
6758
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6759
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6760
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6761
$as_echo_n "(cached) " >&6
6764
# These are sane defaults that work on at least a few old systems.
6765
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6767
# Character class describing NM global symbol codes.
6768
symcode='[BCDEGRST]'
6770
# Regexp to match symbols that can be accessed directly from C.
6771
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6773
# Transform an extracted symbol line into a proper C declaration
6774
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6776
# Transform an extracted symbol line into symbol name and symbol address
6777
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'"
6779
# Define system-specific variables.
6784
cygwin* | mingw* | pw32*)
6785
symcode='[ABCDGISTW]'
6787
hpux*) # Its linker distinguishes data from code symbols
6788
if test "$host_cpu" = ia64; then
6789
symcode='[ABCDEGRST]'
6791
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6792
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'"
6794
linux* | k*bsd*-gnu)
6795
if test "$host_cpu" = ia64; then
6796
symcode='[ABCDGIRSTW]'
6797
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6798
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'"
6802
symcode='[BCDEGRST]'
6805
symcode='[BCDEGQRST]'
6816
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6824
# Handle CRLF in mingw tool chain
6828
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6832
# If we're using GNU nm, then use its standard symbol codes.
6833
case `$NM -V 2>&1` in
6834
*GNU* | *'with BFD'*)
6835
symcode='[ABCDGIRSTW]' ;;
6838
# Try without a prefix undercore, then with it.
6839
for ac_symprfx in "" "_"; do
6841
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6842
symxfrm="\\1 $ac_symprfx\\2 \\2"
6844
# Write the raw and C identifiers.
6845
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6847
# Check to see that the pipe works correctly.
6851
cat > conftest.$ac_ext <<EOF
6856
void nm_test_func(){}
6860
int main(){nm_test_var='a';nm_test_func();return(0);}
6863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864
(eval $ac_compile) 2>&5
6866
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867
(exit $ac_status); }; then
6868
# Now try to grab the symbols.
6870
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6871
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6873
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874
(exit $ac_status); } && test -s "$nlist"; then
6875
# Try sorting and uniquifying the output.
6876
if sort "$nlist" | uniq > "$nlist"T; then
6877
mv -f "$nlist"T "$nlist"
6882
# Make sure that we snagged all the symbols we need.
6883
if grep ' nm_test_var$' "$nlist" >/dev/null; then
6884
if grep ' nm_test_func$' "$nlist" >/dev/null; then
6885
cat <<EOF > conftest.$ac_ext
6891
# Now generate the symbol file.
6892
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6894
cat <<EOF >> conftest.$ac_ext
6895
#if defined (__STDC__) && __STDC__
6896
# define lt_ptr_t void *
6898
# define lt_ptr_t char *
6902
/* The mapping between symbol names and symbols. */
6907
lt_preloaded_symbols[] =
6910
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6911
cat <<\EOF >> conftest.$ac_ext
6919
# Now try linking the two files.
6920
mv conftest.$ac_objext conftstm.$ac_objext
6921
lt_save_LIBS="$LIBS"
6922
lt_save_CFLAGS="$CFLAGS"
6923
LIBS="conftstm.$ac_objext"
6924
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6926
(eval $ac_link) 2>&5
6928
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929
(exit $ac_status); } && test -s conftest${ac_exeext}; then
6932
LIBS="$lt_save_LIBS"
6933
CFLAGS="$lt_save_CFLAGS"
6935
echo "cannot find nm_test_func in $nlist" >&5
6938
echo "cannot find nm_test_var in $nlist" >&5
6941
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6944
echo "$progname: failed program was:" >&5
6945
cat conftest.$ac_ext >&5
6947
rm -rf conftest* conftst*
6949
# Do not use the global_symbol_pipe unless it works.
6950
if test "$pipe_works" = yes; then
6953
lt_cv_sys_global_symbol_pipe=
6959
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6960
lt_cv_sys_global_symbol_to_cdecl=
6962
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6963
{ $as_echo "$as_me:$LINENO: result: failed" >&5
6964
$as_echo "failed" >&6; }
6966
{ $as_echo "$as_me:$LINENO: result: ok" >&5
6967
$as_echo "ok" >&6; }
6970
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6971
$as_echo_n "checking for objdir... " >&6; }
6972
if test "${lt_cv_objdir+set}" = set; then
6973
$as_echo_n "(cached) " >&6
6975
rm -f .libs 2>/dev/null
6976
mkdir .libs 2>/dev/null
6977
if test -d .libs; then
6980
# MS-DOS does not allow filenames that begin with a dot.
6983
rmdir .libs 2>/dev/null
6985
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6986
$as_echo "$lt_cv_objdir" >&6; }
6987
objdir=$lt_cv_objdir
6995
# AIX sometimes has problems with the GCC collect2 program. For some
6996
# reason, if we set the COLLECT_NAMES environment variable, the problems
6997
# vanish in a puff of smoke.
6998
if test "X${COLLECT_NAMES+set}" != Xset; then
7000
export COLLECT_NAMES
7005
# Sed substitution that helps us do robust quoting. It backslashifies
7006
# metacharacters that are still active within double-quoted strings.
7007
Xsed='sed -e 1s/^X//'
7008
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7010
# Same as above, but do not quote variable references.
7011
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7013
# Sed substitution to delay expansion of an escaped shell variable in a
7014
# double_quote_subst'ed string.
7015
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7017
# Sed substitution to avoid accidental globbing in evaled expressions
7018
no_glob_subst='s/\*/\\\*/g'
7024
default_ofile=libtool
7025
can_build_shared=yes
7027
# All known linkers require a `.a' archive for static linking (except MSVC,
7028
# which needs '.lib').
7030
ltmain="$ac_aux_dir/ltmain.sh"
7031
ofile="$default_ofile"
7032
with_gnu_ld="$lt_cv_prog_gnu_ld"
7034
if test -n "$ac_tool_prefix"; then
7035
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7036
set dummy ${ac_tool_prefix}ar; ac_word=$2
7037
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7038
$as_echo_n "checking for $ac_word... " >&6; }
7039
if test "${ac_cv_prog_AR+set}" = set; then
7040
$as_echo_n "(cached) " >&6
7042
if test -n "$AR"; then
7043
ac_cv_prog_AR="$AR" # Let the user override the test.
7045
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049
test -z "$as_dir" && as_dir=.
7050
for ac_exec_ext in '' $ac_executable_extensions; do
7051
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052
ac_cv_prog_AR="${ac_tool_prefix}ar"
7053
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063
if test -n "$AR"; then
7064
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
7065
$as_echo "$AR" >&6; }
7067
{ $as_echo "$as_me:$LINENO: result: no" >&5
7068
$as_echo "no" >&6; }
7073
if test -z "$ac_cv_prog_AR"; then
7075
# Extract the first word of "ar", so it can be a program name with args.
7076
set dummy ar; ac_word=$2
7077
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7078
$as_echo_n "checking for $ac_word... " >&6; }
7079
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7080
$as_echo_n "(cached) " >&6
7082
if test -n "$ac_ct_AR"; then
7083
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089
test -z "$as_dir" && as_dir=.
7090
for ac_exec_ext in '' $ac_executable_extensions; do
7091
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092
ac_cv_prog_ac_ct_AR="ar"
7093
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7103
if test -n "$ac_ct_AR"; then
7104
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7105
$as_echo "$ac_ct_AR" >&6; }
7107
{ $as_echo "$as_me:$LINENO: result: no" >&5
7108
$as_echo "no" >&6; }
7111
if test "x$ac_ct_AR" = x; then
7114
case $cross_compiling:$ac_tool_warned in
7116
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7117
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118
ac_tool_warned=yes ;;
7126
if test -n "$ac_tool_prefix"; then
7127
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7128
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7129
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7130
$as_echo_n "checking for $ac_word... " >&6; }
7131
if test "${ac_cv_prog_RANLIB+set}" = set; then
7132
$as_echo_n "(cached) " >&6
7134
if test -n "$RANLIB"; then
7135
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141
test -z "$as_dir" && as_dir=.
7142
for ac_exec_ext in '' $ac_executable_extensions; do
7143
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7145
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154
RANLIB=$ac_cv_prog_RANLIB
7155
if test -n "$RANLIB"; then
7156
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7157
$as_echo "$RANLIB" >&6; }
7159
{ $as_echo "$as_me:$LINENO: result: no" >&5
7160
$as_echo "no" >&6; }
7165
if test -z "$ac_cv_prog_RANLIB"; then
7166
ac_ct_RANLIB=$RANLIB
7167
# Extract the first word of "ranlib", so it can be a program name with args.
7168
set dummy ranlib; ac_word=$2
7169
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7170
$as_echo_n "checking for $ac_word... " >&6; }
7171
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7172
$as_echo_n "(cached) " >&6
7174
if test -n "$ac_ct_RANLIB"; then
7175
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181
test -z "$as_dir" && as_dir=.
7182
for ac_exec_ext in '' $ac_executable_extensions; do
7183
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184
ac_cv_prog_ac_ct_RANLIB="ranlib"
7185
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7194
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7195
if test -n "$ac_ct_RANLIB"; then
7196
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7197
$as_echo "$ac_ct_RANLIB" >&6; }
7199
{ $as_echo "$as_me:$LINENO: result: no" >&5
7200
$as_echo "no" >&6; }
7203
if test "x$ac_ct_RANLIB" = x; then
7206
case $cross_compiling:$ac_tool_warned in
7208
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7209
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210
ac_tool_warned=yes ;;
7212
RANLIB=$ac_ct_RANLIB
7215
RANLIB="$ac_cv_prog_RANLIB"
7218
if test -n "$ac_tool_prefix"; then
7219
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7220
set dummy ${ac_tool_prefix}strip; ac_word=$2
7221
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7222
$as_echo_n "checking for $ac_word... " >&6; }
7223
if test "${ac_cv_prog_STRIP+set}" = set; then
7224
$as_echo_n "(cached) " >&6
7226
if test -n "$STRIP"; then
7227
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233
test -z "$as_dir" && as_dir=.
7234
for ac_exec_ext in '' $ac_executable_extensions; do
7235
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7237
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246
STRIP=$ac_cv_prog_STRIP
7247
if test -n "$STRIP"; then
7248
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7249
$as_echo "$STRIP" >&6; }
7251
{ $as_echo "$as_me:$LINENO: result: no" >&5
7252
$as_echo "no" >&6; }
7257
if test -z "$ac_cv_prog_STRIP"; then
7259
# Extract the first word of "strip", so it can be a program name with args.
7260
set dummy strip; ac_word=$2
7261
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7262
$as_echo_n "checking for $ac_word... " >&6; }
7263
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7264
$as_echo_n "(cached) " >&6
7266
if test -n "$ac_ct_STRIP"; then
7267
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273
test -z "$as_dir" && as_dir=.
7274
for ac_exec_ext in '' $ac_executable_extensions; do
7275
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276
ac_cv_prog_ac_ct_STRIP="strip"
7277
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7287
if test -n "$ac_ct_STRIP"; then
7288
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7289
$as_echo "$ac_ct_STRIP" >&6; }
7291
{ $as_echo "$as_me:$LINENO: result: no" >&5
7292
$as_echo "no" >&6; }
7295
if test "x$ac_ct_STRIP" = x; then
7298
case $cross_compiling:$ac_tool_warned in
7300
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7301
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302
ac_tool_warned=yes ;;
7307
STRIP="$ac_cv_prog_STRIP"
7312
old_CFLAGS="$CFLAGS"
7314
# Set sane defaults for various variables
7315
test -z "$AR" && AR=ar
7316
test -z "$AR_FLAGS" && AR_FLAGS=cru
7317
test -z "$AS" && AS=as
7318
test -z "$CC" && CC=cc
7319
test -z "$LTCC" && LTCC=$CC
7320
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7321
test -z "$DLLTOOL" && DLLTOOL=dlltool
7322
test -z "$LD" && LD=ld
7323
test -z "$LN_S" && LN_S="ln -s"
7324
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7325
test -z "$NM" && NM=nm
7326
test -z "$SED" && SED=sed
7327
test -z "$OBJDUMP" && OBJDUMP=objdump
7328
test -z "$RANLIB" && RANLIB=:
7329
test -z "$STRIP" && STRIP=:
7330
test -z "$ac_objext" && ac_objext=o
7332
# Determine commands to create old-style static archives.
7333
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7334
old_postinstall_cmds='chmod 644 $oldlib'
7335
old_postuninstall_cmds=
7337
if test -n "$RANLIB"; then
7340
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7343
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7346
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7349
for cc_temp in $compiler""; do
7351
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7352
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7357
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7360
# Only perform the check for file, if the check method requires it
7361
case $deplibs_check_method in
7363
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7364
{ $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7365
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7366
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7367
$as_echo_n "(cached) " >&6
7371
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7374
lt_save_MAGIC_CMD="$MAGIC_CMD"
7375
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7376
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7377
for ac_dir in $ac_dummy; do
7379
test -z "$ac_dir" && ac_dir=.
7380
if test -f $ac_dir/${ac_tool_prefix}file; then
7381
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7382
if test -n "$file_magic_test_file"; then
7383
case $deplibs_check_method in
7385
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7386
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7387
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7388
$EGREP "$file_magic_regex" > /dev/null; then
7393
*** Warning: the command libtool uses to detect shared libraries,
7394
*** $file_magic_cmd, produces output that libtool cannot recognize.
7395
*** The result is that libtool may fail to recognize shared libraries
7396
*** as such. This will affect the creation of libtool libraries that
7397
*** depend on shared libraries, but programs linked with such libtool
7398
*** libraries will work regardless of this problem. Nevertheless, you
7399
*** may want to report the problem to your system manager and/or to
7400
*** bug-libtool@gnu.org
7410
MAGIC_CMD="$lt_save_MAGIC_CMD"
7415
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416
if test -n "$MAGIC_CMD"; then
7417
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7418
$as_echo "$MAGIC_CMD" >&6; }
7420
{ $as_echo "$as_me:$LINENO: result: no" >&5
7421
$as_echo "no" >&6; }
7424
if test -z "$lt_cv_path_MAGIC_CMD"; then
7425
if test -n "$ac_tool_prefix"; then
7426
{ $as_echo "$as_me:$LINENO: checking for file" >&5
7427
$as_echo_n "checking for file... " >&6; }
7428
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7429
$as_echo_n "(cached) " >&6
7433
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7436
lt_save_MAGIC_CMD="$MAGIC_CMD"
7437
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7438
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7439
for ac_dir in $ac_dummy; do
7441
test -z "$ac_dir" && ac_dir=.
7442
if test -f $ac_dir/file; then
7443
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7444
if test -n "$file_magic_test_file"; then
7445
case $deplibs_check_method in
7447
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7448
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7450
$EGREP "$file_magic_regex" > /dev/null; then
7455
*** Warning: the command libtool uses to detect shared libraries,
7456
*** $file_magic_cmd, produces output that libtool cannot recognize.
7457
*** The result is that libtool may fail to recognize shared libraries
7458
*** as such. This will affect the creation of libtool libraries that
7459
*** depend on shared libraries, but programs linked with such libtool
7460
*** libraries will work regardless of this problem. Nevertheless, you
7461
*** may want to report the problem to your system manager and/or to
7462
*** bug-libtool@gnu.org
7472
MAGIC_CMD="$lt_save_MAGIC_CMD"
7477
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478
if test -n "$MAGIC_CMD"; then
7479
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7480
$as_echo "$MAGIC_CMD" >&6; }
7482
{ $as_echo "$as_me:$LINENO: result: no" >&5
7483
$as_echo "no" >&6; }
7497
rhapsody* | darwin*)
7498
if test -n "$ac_tool_prefix"; then
7499
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7500
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7501
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7502
$as_echo_n "checking for $ac_word... " >&6; }
7503
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7504
$as_echo_n "(cached) " >&6
7506
if test -n "$DSYMUTIL"; then
7507
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513
test -z "$as_dir" && as_dir=.
7514
for ac_exec_ext in '' $ac_executable_extensions; do
7515
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7517
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7526
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7527
if test -n "$DSYMUTIL"; then
7528
{ $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7529
$as_echo "$DSYMUTIL" >&6; }
7531
{ $as_echo "$as_me:$LINENO: result: no" >&5
7532
$as_echo "no" >&6; }
7537
if test -z "$ac_cv_prog_DSYMUTIL"; then
7538
ac_ct_DSYMUTIL=$DSYMUTIL
7539
# Extract the first word of "dsymutil", so it can be a program name with args.
7540
set dummy dsymutil; ac_word=$2
7541
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7542
$as_echo_n "checking for $ac_word... " >&6; }
7543
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7544
$as_echo_n "(cached) " >&6
7546
if test -n "$ac_ct_DSYMUTIL"; then
7547
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553
test -z "$as_dir" && as_dir=.
7554
for ac_exec_ext in '' $ac_executable_extensions; do
7555
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7557
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7567
if test -n "$ac_ct_DSYMUTIL"; then
7568
{ $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7569
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7571
{ $as_echo "$as_me:$LINENO: result: no" >&5
7572
$as_echo "no" >&6; }
7575
if test "x$ac_ct_DSYMUTIL" = x; then
7578
case $cross_compiling:$ac_tool_warned in
7580
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7594
$as_echo_n "checking for $ac_word... " >&6; }
7595
if test "${ac_cv_prog_NMEDIT+set}" = set; then
7596
$as_echo_n "(cached) " >&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
$as_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
{ $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7621
$as_echo "$NMEDIT" >&6; }
7623
{ $as_echo "$as_me:$LINENO: result: no" >&5
7624
$as_echo "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
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7634
$as_echo_n "checking for $ac_word... " >&6; }
7635
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7636
$as_echo_n "(cached) " >&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
$as_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
{ $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7661
$as_echo "$ac_ct_NMEDIT" >&6; }
7663
{ $as_echo "$as_me:$LINENO: result: no" >&5
7664
$as_echo "no" >&6; }
7667
if test "x$ac_ct_NMEDIT" = x; then
7670
case $cross_compiling:$ac_tool_warned in
7672
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7673
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7674
ac_tool_warned=yes ;;
7676
NMEDIT=$ac_ct_NMEDIT
7679
NMEDIT="$ac_cv_prog_NMEDIT"
7683
{ $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7684
$as_echo_n "checking for -single_module linker flag... " >&6; }
7685
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7686
$as_echo_n "(cached) " >&6
7688
lt_cv_apple_cc_single_mod=no
7689
if test -z "${LT_MULTI_MODULE}"; then
7690
# By default we will add the -single_module flag. You can override
7691
# by either setting the environment variable LT_MULTI_MODULE
7692
# non-empty at configure time, or by adding -multi_module to the
7694
echo "int foo(void){return 1;}" > conftest.c
7695
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7696
-dynamiclib ${wl}-single_module conftest.c
7697
if test -f libconftest.dylib; then
7698
lt_cv_apple_cc_single_mod=yes
7699
rm -rf libconftest.dylib*
7704
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7705
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7706
{ $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7707
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7708
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7709
$as_echo_n "(cached) " >&6
7711
lt_cv_ld_exported_symbols_list=no
7712
save_LDFLAGS=$LDFLAGS
7713
echo "_main" > conftest.sym
7714
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7715
cat >conftest.$ac_ext <<_ACEOF
7718
cat confdefs.h >>conftest.$ac_ext
7719
cat >>conftest.$ac_ext <<_ACEOF
7720
/* end confdefs.h. */
7730
rm -f conftest.$ac_objext conftest$ac_exeext
7731
if { (ac_try="$ac_link"
7733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734
*) ac_try_echo=$ac_try;;
7736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7737
$as_echo "$ac_try_echo") >&5
7738
(eval "$ac_link") 2>conftest.er1
7740
grep -v '^ *+' conftest.er1 >conftest.err
7742
cat conftest.err >&5
7743
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744
(exit $ac_status); } && {
7745
test -z "$ac_c_werror_flag" ||
7746
test ! -s conftest.err
7747
} && test -s conftest$ac_exeext && {
7748
test "$cross_compiling" = yes ||
7749
$as_test_x conftest$ac_exeext
7751
lt_cv_ld_exported_symbols_list=yes
7753
$as_echo "$as_me: failed program was:" >&5
7754
sed 's/^/| /' conftest.$ac_ext >&5
7756
lt_cv_ld_exported_symbols_list=no
7759
rm -rf conftest.dSYM
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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7766
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7879
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7880
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7881
$as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7914
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7929
$as_echo_n "checking for $compiler option to produce PIC... " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8161
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8169
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8170
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8171
$as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8204
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8232
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8233
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8234
$as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8260
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8270
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8271
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8272
$as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8317
$as_echo "$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
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8324
$as_echo_n "checking if we can lock with hard links... " >&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
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8332
$as_echo "$hard_links" >&6; }
8333
if test "$hard_links" = no; then
8334
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8335
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8342
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8343
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&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'
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8775
$as_echo "$ac_try_echo") >&5
8776
(eval "$ac_link") 2>conftest.er1
8778
grep -v '^ *+' conftest.er1 >conftest.err
8780
cat conftest.err >&5
8781
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782
(exit $ac_status); } && {
8783
test -z "$ac_c_werror_flag" ||
8784
test ! -s conftest.err
8785
} && test -s conftest$ac_exeext && {
8786
test "$cross_compiling" = yes ||
8787
$as_test_x conftest$ac_exeext
8790
lt_aix_libpath_sed='
8791
/Import File Strings/,/^$/ {
8797
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8798
# Check for a 64-bit object if we didn't find anything.
8799
if test -z "$aix_libpath"; then
8800
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8803
$as_echo "$as_me: failed program was:" >&5
8804
sed 's/^/| /' conftest.$ac_ext >&5
8809
rm -rf conftest.dSYM
8810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8811
conftest$ac_exeext conftest.$ac_ext
8812
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8814
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8815
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"
8817
if test "$host_cpu" = ia64; then
8818
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8819
allow_undefined_flag="-z nodefs"
8820
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"
8822
# Determine the default libpath from the value encoded in an empty executable.
8823
cat >conftest.$ac_ext <<_ACEOF
8826
cat confdefs.h >>conftest.$ac_ext
8827
cat >>conftest.$ac_ext <<_ACEOF
8828
/* end confdefs.h. */
8838
rm -f conftest.$ac_objext conftest$ac_exeext
8839
if { (ac_try="$ac_link"
8841
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842
*) ac_try_echo=$ac_try;;
8844
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845
$as_echo "$ac_try_echo") >&5
8846
(eval "$ac_link") 2>conftest.er1
8848
grep -v '^ *+' conftest.er1 >conftest.err
8850
cat conftest.err >&5
8851
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852
(exit $ac_status); } && {
8853
test -z "$ac_c_werror_flag" ||
8854
test ! -s conftest.err
8855
} && test -s conftest$ac_exeext && {
8856
test "$cross_compiling" = yes ||
8857
$as_test_x conftest$ac_exeext
8860
lt_aix_libpath_sed='
8861
/Import File Strings/,/^$/ {
8867
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8868
# Check for a 64-bit object if we didn't find anything.
8869
if test -z "$aix_libpath"; then
8870
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873
$as_echo "$as_me: failed program was:" >&5
8874
sed 's/^/| /' conftest.$ac_ext >&5
8879
rm -rf conftest.dSYM
8880
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8881
conftest$ac_exeext conftest.$ac_ext
8882
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8884
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8885
# Warning - without using the other run time loading flags,
8886
# -berok will link without error, but may produce a broken library.
8887
no_undefined_flag=' ${wl}-bernotok'
8888
allow_undefined_flag=' ${wl}-berok'
8889
# Exported symbols can be pulled into shared objects from archives
8890
whole_archive_flag_spec='$convenience'
8891
archive_cmds_need_lc=yes
8892
# This is similar to how AIX traditionally builds its shared libraries.
8893
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'
8899
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)'
8900
hardcode_libdir_flag_spec='-L$libdir'
8901
hardcode_minus_L=yes
8902
# see comment about different semantics on the GNU ld section
8907
export_dynamic_flag_spec=-rdynamic
8910
cygwin* | mingw* | pw32*)
8911
# When not using gcc, we currently assume that we are using
8912
# Microsoft Visual C++.
8913
# hardcode_libdir_flag_spec is actually meaningless, as there is
8914
# no search path for DLLs.
8915
hardcode_libdir_flag_spec=' '
8916
allow_undefined_flag=unsupported
8917
# Tell ltmain to make .lib files, not .a files.
8919
# Tell ltmain to make .dll files, not .so files.
8921
# FIXME: Setting linknames here is a bad hack.
8922
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8923
# The linker will automatically build a .lib file if we build a DLL.
8924
old_archive_From_new_cmds='true'
8925
# FIXME: Should let the user specify the lib program.
8926
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8927
fix_srcfile_path='`cygpath -w "$srcfile"`'
8928
enable_shared_with_static_runtimes=yes
8931
darwin* | rhapsody*)
8933
rhapsody* | darwin1.[012])
8934
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8937
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8938
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8940
case ${MACOSX_DEPLOYMENT_TARGET} in
8942
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8945
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8951
archive_cmds_need_lc=no
8953
hardcode_automatic=yes
8954
hardcode_shlibpath_var=unsupported
8955
whole_archive_flag_spec=''
8956
link_all_deplibs=yes
8957
if test "$GCC" = yes ; then
8958
output_verbose_link_cmd='echo'
8959
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8960
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8961
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}"
8962
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}"
8964
case $cc_basename in
8966
output_verbose_link_cmd='echo'
8967
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8968
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8969
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8970
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}'
8971
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}'
8981
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982
hardcode_libdir_flag_spec='-L$libdir'
8983
hardcode_shlibpath_var=no
8990
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8991
# support. Future versions do this automatically, but an explicit c++rt0.o
8992
# does not break anything, and helps significantly (at the cost of a little
8995
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8996
hardcode_libdir_flag_spec='-R$libdir'
8998
hardcode_shlibpath_var=no
9001
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9003
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9005
hardcode_minus_L=yes
9006
hardcode_shlibpath_var=no
9009
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9010
freebsd* | dragonfly*)
9011
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9012
hardcode_libdir_flag_spec='-R$libdir'
9014
hardcode_shlibpath_var=no
9018
if test "$GCC" = yes; then
9019
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'
9021
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'
9023
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9024
hardcode_libdir_separator=:
9027
# hardcode_minus_L: Not really in the search PATH,
9028
# but as the default location of the library.
9029
hardcode_minus_L=yes
9030
export_dynamic_flag_spec='${wl}-E'
9034
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9035
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9037
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9039
if test "$with_gnu_ld" = no; then
9040
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9041
hardcode_libdir_separator=:
9044
export_dynamic_flag_spec='${wl}-E'
9046
# hardcode_minus_L: Not really in the search PATH,
9047
# but as the default location of the library.
9048
hardcode_minus_L=yes
9053
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9056
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9059
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9062
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9068
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9074
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9078
if test "$with_gnu_ld" = no; then
9079
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9080
hardcode_libdir_separator=:
9084
hardcode_libdir_flag_spec_ld='+b $libdir'
9086
hardcode_shlibpath_var=no
9090
export_dynamic_flag_spec='${wl}-E'
9092
# hardcode_minus_L: Not really in the search PATH,
9093
# but as the default location of the library.
9094
hardcode_minus_L=yes
9100
irix5* | irix6* | nonstopux*)
9101
if test "$GCC" = yes; then
9102
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'
9104
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'
9105
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9107
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9108
hardcode_libdir_separator=:
9109
link_all_deplibs=yes
9113
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9114
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9116
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9118
hardcode_libdir_flag_spec='-R$libdir'
9120
hardcode_shlibpath_var=no
9124
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9127
hardcode_libdir_separator=:
9128
hardcode_shlibpath_var=no
9132
if test -f /usr/libexec/ld.so; then
9134
hardcode_shlibpath_var=no
9135
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9136
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9137
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9138
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9139
export_dynamic_flag_spec='${wl}-E'
9142
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9143
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9144
hardcode_libdir_flag_spec='-R$libdir'
9147
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9158
hardcode_libdir_flag_spec='-L$libdir'
9159
hardcode_minus_L=yes
9160
allow_undefined_flag=unsupported
9161
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'
9162
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9166
if test "$GCC" = yes; then
9167
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9168
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'
9170
allow_undefined_flag=' -expect_unresolved \*'
9171
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'
9173
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9174
hardcode_libdir_separator=:
9177
osf4* | osf5*) # as osf3* with the addition of -msym flag
9178
if test "$GCC" = yes; then
9179
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9180
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'
9181
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9183
allow_undefined_flag=' -expect_unresolved \*'
9184
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'
9185
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9186
$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'
9188
# Both c and cxx compiler support -rpath directly
9189
hardcode_libdir_flag_spec='-rpath $libdir'
9191
hardcode_libdir_separator=:
9195
no_undefined_flag=' -z text'
9196
if test "$GCC" = yes; then
9198
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9199
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9200
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9203
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9205
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9207
hardcode_libdir_flag_spec='-R$libdir'
9208
hardcode_shlibpath_var=no
9210
solaris2.[0-5] | solaris2.[0-5].*) ;;
9212
# The compiler driver will combine and reorder linker options,
9213
# but understands `-z linker_flag'. GCC discards it without `$wl',
9214
# but is careful enough not to reorder.
9215
# Supported since Solaris 2.6 (maybe 2.5.1?)
9216
if test "$GCC" = yes; then
9217
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9219
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9223
link_all_deplibs=yes
9227
if test "x$host_vendor" = xsequent; then
9228
# Use $CC to link under sequent, because it throws in some extra .o
9229
# files that make .init and .fini sections work.
9230
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9232
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9234
hardcode_libdir_flag_spec='-L$libdir'
9236
hardcode_minus_L=yes
9237
hardcode_shlibpath_var=no
9241
case $host_vendor in
9243
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244
hardcode_direct=yes # is this really true???
9247
## LD is ld it makes a PLAMLIB
9248
## CC just makes a GrossModule.
9249
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9250
reload_cmds='$CC -r -o $output$reload_objs'
9254
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9258
runpath_var='LD_RUN_PATH'
9259
hardcode_shlibpath_var=no
9263
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9264
hardcode_shlibpath_var=no
9265
export_dynamic_flag_spec='-Bexport'
9269
if test -d /usr/nec; then
9270
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9271
hardcode_shlibpath_var=no
9272
runpath_var=LD_RUN_PATH
9273
hardcode_runpath_var=yes
9278
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9279
no_undefined_flag='${wl}-z,text'
9280
archive_cmds_need_lc=no
9281
hardcode_shlibpath_var=no
9282
runpath_var='LD_RUN_PATH'
9284
if test "$GCC" = yes; then
9285
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9293
sysv5* | sco3.2v5* | sco5v6*)
9294
# Note: We can NOT use -z defs as we might desire, because we do not
9295
# link with -lc, and that would cause any symbols used from libc to
9296
# always be unresolved, which means just about no library would
9297
# ever link correctly. If we're not using GNU ld we use -z text
9298
# though, which does catch some bad symbols but isn't as heavy-handed
9300
no_undefined_flag='${wl}-z,text'
9301
allow_undefined_flag='${wl}-z,nodefs'
9302
archive_cmds_need_lc=no
9303
hardcode_shlibpath_var=no
9304
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9305
hardcode_libdir_separator=':'
9306
link_all_deplibs=yes
9307
export_dynamic_flag_spec='${wl}-Bexport'
9308
runpath_var='LD_RUN_PATH'
9310
if test "$GCC" = yes; then
9311
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9312
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9315
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321
hardcode_libdir_flag_spec='-L$libdir'
9322
hardcode_shlibpath_var=no
9331
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9332
$as_echo "$ld_shlibs" >&6; }
9333
test "$ld_shlibs" = no && can_build_shared=no
9336
# Do we need to explicitly link libc?
9338
case "x$archive_cmds_need_lc" in
9340
# Assume -lc should be added
9341
archive_cmds_need_lc=yes
9343
if test "$enable_shared" = yes && test "$GCC" = yes; then
9344
case $archive_cmds in
9346
# FIXME: we may have to deal with multi-command sequences.
9349
# Test whether the compiler implicitly links with -lc since on some
9350
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9351
# to ld, don't add -lc before -lgcc.
9352
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9353
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9355
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9358
(eval $ac_compile) 2>&5
9360
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361
(exit $ac_status); } 2>conftest.err; then
9364
libobjs=conftest.$ac_objext
9366
wl=$lt_prog_compiler_wl
9367
pic_flag=$lt_prog_compiler_pic
9373
lt_save_allow_undefined_flag=$allow_undefined_flag
9374
allow_undefined_flag=
9375
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9376
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9378
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379
(exit $ac_status); }
9381
archive_cmds_need_lc=no
9383
archive_cmds_need_lc=yes
9385
allow_undefined_flag=$lt_save_allow_undefined_flag
9387
cat conftest.err 1>&5
9390
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9391
$as_echo "$archive_cmds_need_lc" >&6; }
9398
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9399
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9401
libname_spec='lib$name'
9409
shlibpath_overrides_runpath=unknown
9411
dynamic_linker="$host_os ld.so"
9412
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9414
if test "$GCC" = yes; then
9416
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9417
*) lt_awk_arg="/^libraries:/" ;;
9419
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9420
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9421
# if the path contains ";" then we assume it to be the separator
9422
# otherwise default to the standard path separator (i.e. ":") - it is
9423
# assumed that no part of a normal pathname contains ";" but that should
9424
# okay in the real world where ";" in dirpaths is itself problematic.
9425
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9427
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9429
# Ok, now we have the path, separated by spaces, we can step through it
9430
# and add multilib dir if necessary.
9431
lt_tmp_lt_search_path_spec=
9432
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9433
for lt_sys_path in $lt_search_path_spec; do
9434
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9435
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9437
test -d "$lt_sys_path" && \
9438
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9441
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9442
BEGIN {RS=" "; FS="/|\n";} {
9445
for (lt_i = NF; lt_i > 0; lt_i--) {
9446
if ($lt_i != "" && $lt_i != ".") {
9447
if ($lt_i == "..") {
9450
if (lt_count == 0) {
9451
lt_foo="/" $lt_i lt_foo;
9458
if (lt_foo != "") { lt_freq[lt_foo]++; }
9459
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9461
sys_lib_search_path_spec=`echo $lt_search_path_spec`
9463
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9465
need_lib_prefix=unknown
9466
hardcode_into_libs=no
9468
# when you set need_version to no, make sure it does not cause -set_version
9469
# flags to be left without arguments
9470
need_version=unknown
9475
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9476
shlibpath_var=LIBPATH
9478
# AIX 3 has no versioning support, so we append a major version to the name.
9479
soname_spec='${libname}${release}${shared_ext}$major'
9486
hardcode_into_libs=yes
9487
if test "$host_cpu" = ia64; then
9488
# AIX 5 supports IA64
9489
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9490
shlibpath_var=LD_LIBRARY_PATH
9492
# With GCC up to 2.95.x, collect2 would create an import file
9493
# for dependence libraries. The import file would start with
9494
# the line `#! .'. This would cause the generated library to
9495
# depend on `.', always an invalid library. This was fixed in
9496
# development snapshots of GCC prior to 3.0.
9498
aix4 | aix4.[01] | aix4.[01].*)
9499
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9501
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9508
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9509
# soname into executable. Probably we can add versioning support to
9510
# collect2, so additional links can be useful in future.
9511
if test "$aix_use_runtimelinking" = yes; then
9512
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9513
# instead of lib<name>.a to let people know that these are not
9514
# typical AIX shared libraries.
9515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517
# We preserve .a as extension for shared libraries through AIX4.2
9518
# and later when we are not doing run time linking.
9519
library_names_spec='${libname}${release}.a $libname.a'
9520
soname_spec='${libname}${release}${shared_ext}$major'
9522
shlibpath_var=LIBPATH
9527
library_names_spec='$libname.ixlibrary $libname.a'
9528
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9529
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'
9533
library_names_spec='${libname}${shared_ext}'
9534
dynamic_linker="$host_os ld.so"
9535
shlibpath_var=LIBRARY_PATH
9541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542
soname_spec='${libname}${release}${shared_ext}$major'
9543
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9544
shlibpath_var=LD_LIBRARY_PATH
9545
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9546
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9547
# the default ld.so.conf also contains /usr/contrib/lib and
9548
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9549
# libtool to hard-code these into programs
9552
cygwin* | mingw* | pw32*)
9553
version_type=windows
9558
case $GCC,$host_os in
9559
yes,cygwin* | yes,mingw* | yes,pw32*)
9560
library_names_spec='$libname.dll.a'
9561
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9562
postinstall_cmds='base_file=`basename \${file}`~
9563
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9564
dldir=$destdir/`dirname \$dlpath`~
9565
test -d \$dldir || mkdir -p \$dldir~
9566
$install_prog $dir/$dlname \$dldir/$dlname~
9567
chmod a+x \$dldir/$dlname'
9568
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9569
dlpath=$dir/\$dldll~
9571
shlibpath_overrides_runpath=yes
9575
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9576
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9577
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9580
# MinGW DLLs use traditional 'lib' prefix
9581
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9582
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9583
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9584
# It is most probably a Windows format PATH printed by
9585
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9586
# path with ; separators, and with drive letters. We can handle the
9587
# drive letters (cygwin fileutils understands them), so leave them,
9588
# especially as we might pass files found there to a mingw objdump,
9589
# which wouldn't understand a cygwinified path. Ahh.
9590
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9592
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9596
# pw32 DLLs use 'pw' prefix rather than 'lib'
9597
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9603
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9606
dynamic_linker='Win32 ld.exe'
9607
# FIXME: first we should search . and the directory the executable is in
9611
darwin* | rhapsody*)
9612
dynamic_linker="$host_os dyld"
9616
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9617
soname_spec='${libname}${release}${major}$shared_ext'
9618
shlibpath_overrides_runpath=yes
9619
shlibpath_var=DYLD_LIBRARY_PATH
9620
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9622
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9623
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9630
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9631
soname_spec='${libname}${release}${shared_ext}$major'
9632
shlibpath_var=LD_LIBRARY_PATH
9639
freebsd* | dragonfly*)
9640
# DragonFly does not have aout. When/if they implement a new
9641
# versioning mechanism, adjust this.
9642
if test -x /usr/bin/objformat; then
9643
objformat=`/usr/bin/objformat`
9646
freebsd[123]*) objformat=aout ;;
9650
version_type=freebsd-$objformat
9651
case $version_type in
9653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9658
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9662
shlibpath_var=LD_LIBRARY_PATH
9665
shlibpath_overrides_runpath=yes
9667
freebsd3.[01]* | freebsdelf3.[01]*)
9668
shlibpath_overrides_runpath=yes
9669
hardcode_into_libs=yes
9671
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9672
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9673
shlibpath_overrides_runpath=no
9674
hardcode_into_libs=yes
9676
*) # from 4.6 on, and DragonFly
9677
shlibpath_overrides_runpath=yes
9678
hardcode_into_libs=yes
9687
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9688
soname_spec='${libname}${release}${shared_ext}$major'
9689
shlibpath_var=LD_LIBRARY_PATH
9690
hardcode_into_libs=yes
9693
hpux9* | hpux10* | hpux11*)
9694
# Give a soname corresponding to the major version so that dld.sl refuses to
9695
# link against other versions.
9702
hardcode_into_libs=yes
9703
dynamic_linker="$host_os dld.so"
9704
shlibpath_var=LD_LIBRARY_PATH
9705
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707
soname_spec='${libname}${release}${shared_ext}$major'
9708
if test "X$HPUX_IA64_MODE" = X32; then
9709
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9711
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9713
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9717
hardcode_into_libs=yes
9718
dynamic_linker="$host_os dld.sl"
9719
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9720
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9721
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722
soname_spec='${libname}${release}${shared_ext}$major'
9723
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9724
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9728
dynamic_linker="$host_os dld.sl"
9729
shlibpath_var=SHLIB_PATH
9730
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9731
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732
soname_spec='${libname}${release}${shared_ext}$major'
9735
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9736
postinstall_cmds='chmod 555 $lib'
9743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9744
soname_spec='${libname}${release}${shared_ext}$major'
9745
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9746
shlibpath_var=LD_LIBRARY_PATH
9747
shlibpath_overrides_runpath=no
9748
hardcode_into_libs=yes
9751
irix5* | irix6* | nonstopux*)
9753
nonstopux*) version_type=nonstopux ;;
9755
if test "$lt_cv_prog_gnu_ld" = yes; then
9763
soname_spec='${libname}${release}${shared_ext}$major'
9764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9766
irix5* | nonstopux*)
9770
case $LD in # libtool.m4 will add one of these switches to LD
9771
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9772
libsuff= shlibsuff= libmagic=32-bit;;
9773
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9774
libsuff=32 shlibsuff=N32 libmagic=N32;;
9775
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9776
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9777
*) libsuff= shlibsuff= libmagic=never-match;;
9781
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9782
shlibpath_overrides_runpath=no
9783
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9784
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9785
hardcode_into_libs=yes
9788
# No shared lib support for Linux oldld, aout, or coff.
9789
linux*oldld* | linux*aout* | linux*coff*)
9793
# This must be Linux ELF.
9794
linux* | k*bsd*-gnu)
9798
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799
soname_spec='${libname}${release}${shared_ext}$major'
9800
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9801
shlibpath_var=LD_LIBRARY_PATH
9802
shlibpath_overrides_runpath=no
9803
# This implies no fast_install, which is unacceptable.
9804
# Some rework will be needed to allow for fast_install
9805
# before this can be enabled.
9806
hardcode_into_libs=yes
9808
# find out which ABI we are using
9811
x86_64*|s390x*|powerpc64*)
9812
echo '#line 9812 "configure"' > conftest.$ac_ext
9813
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814
(eval $ac_compile) 2>&5
9816
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817
(exit $ac_status); }; then
9818
case `/usr/bin/file conftest.$ac_objext` in
9828
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
9830
# Append ld.so.conf contents to the search path
9831
if test -f /etc/ld.so.conf; then
9832
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' ' '`
9833
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9836
# We used to test for /lib/ld.so.1 and disable shared libraries on
9837
# powerpc, because MkLinux only supported shared libraries with the
9838
# GNU dynamic linker. Since this was broken with cross compilers,
9839
# most powerpc-linux boxes support dynamic linking these days and
9840
# people can always --disable-shared, the test was removed, and we
9841
# assume the GNU/Linux dynamic linker is in use.
9842
dynamic_linker='GNU/Linux ld.so'
9849
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9851
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9852
dynamic_linker='NetBSD (a.out) ld.so'
9854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9855
soname_spec='${libname}${release}${shared_ext}$major'
9856
dynamic_linker='NetBSD ld.elf_so'
9858
shlibpath_var=LD_LIBRARY_PATH
9859
shlibpath_overrides_runpath=yes
9860
hardcode_into_libs=yes
9865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866
shlibpath_var=LD_LIBRARY_PATH
9867
shlibpath_overrides_runpath=yes
9874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875
soname_spec='${libname}${release}${shared_ext}$major'
9876
shlibpath_var=LD_LIBRARY_PATH
9877
shlibpath_overrides_runpath=yes
9882
sys_lib_dlsearch_path_spec="/usr/lib"
9884
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9886
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9887
*) need_version=no ;;
9889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9890
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9891
shlibpath_var=LD_LIBRARY_PATH
9892
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9894
openbsd2.[89] | openbsd2.[89].*)
9895
shlibpath_overrides_runpath=no
9898
shlibpath_overrides_runpath=yes
9902
shlibpath_overrides_runpath=yes
9907
libname_spec='$name'
9910
library_names_spec='$libname${shared_ext} $libname.a'
9911
dynamic_linker='OS/2 ld.exe'
9912
shlibpath_var=LIBPATH
9915
osf3* | osf4* | osf5*)
9919
soname_spec='${libname}${release}${shared_ext}$major'
9920
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921
shlibpath_var=LD_LIBRARY_PATH
9922
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9923
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935
soname_spec='${libname}${release}${shared_ext}$major'
9936
shlibpath_var=LD_LIBRARY_PATH
9937
shlibpath_overrides_runpath=yes
9938
hardcode_into_libs=yes
9939
# ldd complains unless libraries are executable
9940
postinstall_cmds='chmod +x $lib'
9945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9946
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9947
shlibpath_var=LD_LIBRARY_PATH
9948
shlibpath_overrides_runpath=yes
9949
if test "$with_gnu_ld" = yes; then
9957
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958
soname_spec='${libname}${release}${shared_ext}$major'
9959
shlibpath_var=LD_LIBRARY_PATH
9960
case $host_vendor in
9962
shlibpath_overrides_runpath=no
9964
export_dynamic_flag_spec='${wl}-Blargedynsym'
9965
runpath_var=LD_RUN_PATH
9973
shlibpath_overrides_runpath=no
9974
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9980
if test -d /usr/nec ;then
9982
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9983
soname_spec='$libname${shared_ext}.$major'
9984
shlibpath_var=LD_LIBRARY_PATH
9988
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9989
version_type=freebsd-elf
9992
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9993
soname_spec='${libname}${release}${shared_ext}$major'
9994
shlibpath_var=LD_LIBRARY_PATH
9995
hardcode_into_libs=yes
9996
if test "$with_gnu_ld" = yes; then
9997
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9998
shlibpath_overrides_runpath=no
10000
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10001
shlibpath_overrides_runpath=yes
10004
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10008
sys_lib_dlsearch_path_spec='/usr/lib'
10013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014
soname_spec='${libname}${release}${shared_ext}$major'
10015
shlibpath_var=LD_LIBRARY_PATH
10022
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10023
$as_echo "$dynamic_linker" >&6; }
10024
test "$dynamic_linker" = no && can_build_shared=no
10026
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10027
$as_echo_n "(cached) " >&6
10029
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10032
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10033
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10034
$as_echo_n "(cached) " >&6
10036
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10039
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10041
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10042
if test "$GCC" = yes; then
10043
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10046
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10047
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10049
if test -n "$hardcode_libdir_flag_spec" || \
10050
test -n "$runpath_var" || \
10051
test "X$hardcode_automatic" = "Xyes" ; then
10053
# We can hardcode non-existant directories.
10054
if test "$hardcode_direct" != no &&
10055
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10056
# have to relink, otherwise we might link with an installed library
10057
# when we should be linking with a yet-to-be-installed one
10058
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10059
test "$hardcode_minus_L" != no; then
10060
# Linking always hardcodes the temporary library directory.
10061
hardcode_action=relink
10063
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10064
hardcode_action=immediate
10067
# We cannot hardcode anything, or else we can only hardcode existing
10069
hardcode_action=unsupported
10071
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10072
$as_echo "$hardcode_action" >&6; }
10074
if test "$hardcode_action" = relink; then
10075
# Fast installation is not supported
10076
enable_fast_install=no
10077
elif test "$shlibpath_overrides_runpath" = yes ||
10078
test "$enable_shared" = no; then
10079
# Fast installation is not necessary
10080
enable_fast_install=needless
10085
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10086
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10087
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10088
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10089
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10090
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10091
$as_echo "yes" >&6; }
10093
# FIXME - insert some real tests, host_os isn't really good enough
10096
if test -n "$STRIP" ; then
10097
striplib="$STRIP -x"
10098
old_striplib="$STRIP -S"
10099
{ $as_echo "$as_me:$LINENO: result: yes" >&5
10100
$as_echo "yes" >&6; }
10102
{ $as_echo "$as_me:$LINENO: result: no" >&5
10103
$as_echo "no" >&6; }
10107
{ $as_echo "$as_me:$LINENO: result: no" >&5
10108
$as_echo "no" >&6; }
10113
if test "x$enable_dlopen" != xyes; then
10114
enable_dlopen=unknown
10115
enable_dlopen_self=unknown
10116
enable_dlopen_self_static=unknown
10123
lt_cv_dlopen="load_add_on"
10125
lt_cv_dlopen_self=yes
10129
lt_cv_dlopen="LoadLibrary"
10134
lt_cv_dlopen="dlopen"
10139
# if libdl is installed we need to link against it
10140
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10141
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10142
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10143
$as_echo_n "(cached) " >&6
10145
ac_check_lib_save_LIBS=$LIBS
10147
cat >conftest.$ac_ext <<_ACEOF
10150
cat confdefs.h >>conftest.$ac_ext
10151
cat >>conftest.$ac_ext <<_ACEOF
10152
/* end confdefs.h. */
10154
/* Override any GCC internal prototype to avoid an error.
10155
Use char because int might match the return type of a GCC
10156
builtin and then its argument prototype would still apply. */
10169
rm -f conftest.$ac_objext conftest$ac_exeext
10170
if { (ac_try="$ac_link"
10171
case "(($ac_try" in
10172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173
*) ac_try_echo=$ac_try;;
10175
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176
$as_echo "$ac_try_echo") >&5
10177
(eval "$ac_link") 2>conftest.er1
10179
grep -v '^ *+' conftest.er1 >conftest.err
10181
cat conftest.err >&5
10182
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183
(exit $ac_status); } && {
10184
test -z "$ac_c_werror_flag" ||
10185
test ! -s conftest.err
10186
} && test -s conftest$ac_exeext && {
10187
test "$cross_compiling" = yes ||
10188
$as_test_x conftest$ac_exeext
10190
ac_cv_lib_dl_dlopen=yes
10192
$as_echo "$as_me: failed program was:" >&5
10193
sed 's/^/| /' conftest.$ac_ext >&5
10195
ac_cv_lib_dl_dlopen=no
10198
rm -rf conftest.dSYM
10199
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10200
conftest$ac_exeext conftest.$ac_ext
10201
LIBS=$ac_check_lib_save_LIBS
10203
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10204
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10205
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10206
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10209
lt_cv_dlopen="dyld"
10211
lt_cv_dlopen_self=yes
10218
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10219
$as_echo_n "checking for shl_load... " >&6; }
10220
if test "${ac_cv_func_shl_load+set}" = set; then
10221
$as_echo_n "(cached) " >&6
10223
cat >conftest.$ac_ext <<_ACEOF
10226
cat confdefs.h >>conftest.$ac_ext
10227
cat >>conftest.$ac_ext <<_ACEOF
10228
/* end confdefs.h. */
10229
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10230
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10231
#define shl_load innocuous_shl_load
10233
/* System header to define __stub macros and hopefully few prototypes,
10234
which can conflict with char shl_load (); below.
10235
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236
<limits.h> exists even on freestanding compilers. */
10239
# include <limits.h>
10241
# include <assert.h>
10246
/* Override any GCC internal prototype to avoid an error.
10247
Use char because int might match the return type of a GCC
10248
builtin and then its argument prototype would still apply. */
10253
/* The GNU C library defines this for functions which it implements
10254
to always fail with ENOSYS. Some functions are actually named
10255
something starting with __ and the normal name is an alias. */
10256
#if defined __stub_shl_load || defined __stub___shl_load
10263
return shl_load ();
10268
rm -f conftest.$ac_objext conftest$ac_exeext
10269
if { (ac_try="$ac_link"
10270
case "(($ac_try" in
10271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272
*) ac_try_echo=$ac_try;;
10274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10275
$as_echo "$ac_try_echo") >&5
10276
(eval "$ac_link") 2>conftest.er1
10278
grep -v '^ *+' conftest.er1 >conftest.err
10280
cat conftest.err >&5
10281
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282
(exit $ac_status); } && {
10283
test -z "$ac_c_werror_flag" ||
10284
test ! -s conftest.err
10285
} && test -s conftest$ac_exeext && {
10286
test "$cross_compiling" = yes ||
10287
$as_test_x conftest$ac_exeext
10289
ac_cv_func_shl_load=yes
10291
$as_echo "$as_me: failed program was:" >&5
10292
sed 's/^/| /' conftest.$ac_ext >&5
10294
ac_cv_func_shl_load=no
10297
rm -rf conftest.dSYM
10298
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299
conftest$ac_exeext conftest.$ac_ext
10301
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10302
$as_echo "$ac_cv_func_shl_load" >&6; }
10303
if test "x$ac_cv_func_shl_load" = x""yes; then
10304
lt_cv_dlopen="shl_load"
10306
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10307
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10308
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10309
$as_echo_n "(cached) " >&6
10311
ac_check_lib_save_LIBS=$LIBS
10313
cat >conftest.$ac_ext <<_ACEOF
10316
cat confdefs.h >>conftest.$ac_ext
10317
cat >>conftest.$ac_ext <<_ACEOF
10318
/* end confdefs.h. */
10320
/* Override any GCC internal prototype to avoid an error.
10321
Use char because int might match the return type of a GCC
10322
builtin and then its argument prototype would still apply. */
10330
return shl_load ();
10335
rm -f conftest.$ac_objext conftest$ac_exeext
10336
if { (ac_try="$ac_link"
10337
case "(($ac_try" in
10338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339
*) ac_try_echo=$ac_try;;
10341
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10342
$as_echo "$ac_try_echo") >&5
10343
(eval "$ac_link") 2>conftest.er1
10345
grep -v '^ *+' conftest.er1 >conftest.err
10347
cat conftest.err >&5
10348
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349
(exit $ac_status); } && {
10350
test -z "$ac_c_werror_flag" ||
10351
test ! -s conftest.err
10352
} && test -s conftest$ac_exeext && {
10353
test "$cross_compiling" = yes ||
10354
$as_test_x conftest$ac_exeext
10356
ac_cv_lib_dld_shl_load=yes
10358
$as_echo "$as_me: failed program was:" >&5
10359
sed 's/^/| /' conftest.$ac_ext >&5
10361
ac_cv_lib_dld_shl_load=no
10364
rm -rf conftest.dSYM
10365
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10366
conftest$ac_exeext conftest.$ac_ext
10367
LIBS=$ac_check_lib_save_LIBS
10369
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10370
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10371
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10372
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10374
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10375
$as_echo_n "checking for dlopen... " >&6; }
10376
if test "${ac_cv_func_dlopen+set}" = set; then
10377
$as_echo_n "(cached) " >&6
10379
cat >conftest.$ac_ext <<_ACEOF
10382
cat confdefs.h >>conftest.$ac_ext
10383
cat >>conftest.$ac_ext <<_ACEOF
10384
/* end confdefs.h. */
10385
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10386
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10387
#define dlopen innocuous_dlopen
10389
/* System header to define __stub macros and hopefully few prototypes,
10390
which can conflict with char dlopen (); below.
10391
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10392
<limits.h> exists even on freestanding compilers. */
10395
# include <limits.h>
10397
# include <assert.h>
10402
/* Override any GCC internal prototype to avoid an error.
10403
Use char because int might match the return type of a GCC
10404
builtin and then its argument prototype would still apply. */
10409
/* The GNU C library defines this for functions which it implements
10410
to always fail with ENOSYS. Some functions are actually named
10411
something starting with __ and the normal name is an alias. */
10412
#if defined __stub_dlopen || defined __stub___dlopen
10424
rm -f conftest.$ac_objext conftest$ac_exeext
10425
if { (ac_try="$ac_link"
10426
case "(($ac_try" in
10427
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428
*) ac_try_echo=$ac_try;;
10430
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10431
$as_echo "$ac_try_echo") >&5
10432
(eval "$ac_link") 2>conftest.er1
10434
grep -v '^ *+' conftest.er1 >conftest.err
10436
cat conftest.err >&5
10437
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438
(exit $ac_status); } && {
10439
test -z "$ac_c_werror_flag" ||
10440
test ! -s conftest.err
10441
} && test -s conftest$ac_exeext && {
10442
test "$cross_compiling" = yes ||
10443
$as_test_x conftest$ac_exeext
10445
ac_cv_func_dlopen=yes
10447
$as_echo "$as_me: failed program was:" >&5
10448
sed 's/^/| /' conftest.$ac_ext >&5
10450
ac_cv_func_dlopen=no
10453
rm -rf conftest.dSYM
10454
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10455
conftest$ac_exeext conftest.$ac_ext
10457
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10458
$as_echo "$ac_cv_func_dlopen" >&6; }
10459
if test "x$ac_cv_func_dlopen" = x""yes; then
10460
lt_cv_dlopen="dlopen"
10462
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10463
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10464
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10465
$as_echo_n "(cached) " >&6
10467
ac_check_lib_save_LIBS=$LIBS
10469
cat >conftest.$ac_ext <<_ACEOF
10472
cat confdefs.h >>conftest.$ac_ext
10473
cat >>conftest.$ac_ext <<_ACEOF
10474
/* end confdefs.h. */
10476
/* Override any GCC internal prototype to avoid an error.
10477
Use char because int might match the return type of a GCC
10478
builtin and then its argument prototype would still apply. */
10491
rm -f conftest.$ac_objext conftest$ac_exeext
10492
if { (ac_try="$ac_link"
10493
case "(($ac_try" in
10494
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495
*) ac_try_echo=$ac_try;;
10497
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10498
$as_echo "$ac_try_echo") >&5
10499
(eval "$ac_link") 2>conftest.er1
10501
grep -v '^ *+' conftest.er1 >conftest.err
10503
cat conftest.err >&5
10504
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505
(exit $ac_status); } && {
10506
test -z "$ac_c_werror_flag" ||
10507
test ! -s conftest.err
10508
} && test -s conftest$ac_exeext && {
10509
test "$cross_compiling" = yes ||
10510
$as_test_x conftest$ac_exeext
10512
ac_cv_lib_dl_dlopen=yes
10514
$as_echo "$as_me: failed program was:" >&5
10515
sed 's/^/| /' conftest.$ac_ext >&5
10517
ac_cv_lib_dl_dlopen=no
10520
rm -rf conftest.dSYM
10521
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10522
conftest$ac_exeext conftest.$ac_ext
10523
LIBS=$ac_check_lib_save_LIBS
10525
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10526
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10527
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10528
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10530
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10531
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10532
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10533
$as_echo_n "(cached) " >&6
10535
ac_check_lib_save_LIBS=$LIBS
10536
LIBS="-lsvld $LIBS"
10537
cat >conftest.$ac_ext <<_ACEOF
10540
cat confdefs.h >>conftest.$ac_ext
10541
cat >>conftest.$ac_ext <<_ACEOF
10542
/* end confdefs.h. */
10544
/* Override any GCC internal prototype to avoid an error.
10545
Use char because int might match the return type of a GCC
10546
builtin and then its argument prototype would still apply. */
10559
rm -f conftest.$ac_objext conftest$ac_exeext
10560
if { (ac_try="$ac_link"
10561
case "(($ac_try" in
10562
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563
*) ac_try_echo=$ac_try;;
10565
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10566
$as_echo "$ac_try_echo") >&5
10567
(eval "$ac_link") 2>conftest.er1
10569
grep -v '^ *+' conftest.er1 >conftest.err
10571
cat conftest.err >&5
10572
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573
(exit $ac_status); } && {
10574
test -z "$ac_c_werror_flag" ||
10575
test ! -s conftest.err
10576
} && test -s conftest$ac_exeext && {
10577
test "$cross_compiling" = yes ||
10578
$as_test_x conftest$ac_exeext
10580
ac_cv_lib_svld_dlopen=yes
10582
$as_echo "$as_me: failed program was:" >&5
10583
sed 's/^/| /' conftest.$ac_ext >&5
10585
ac_cv_lib_svld_dlopen=no
10588
rm -rf conftest.dSYM
10589
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590
conftest$ac_exeext conftest.$ac_ext
10591
LIBS=$ac_check_lib_save_LIBS
10593
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10594
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10595
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10596
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10598
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10599
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10600
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10601
$as_echo_n "(cached) " >&6
10603
ac_check_lib_save_LIBS=$LIBS
10605
cat >conftest.$ac_ext <<_ACEOF
10608
cat confdefs.h >>conftest.$ac_ext
10609
cat >>conftest.$ac_ext <<_ACEOF
10610
/* end confdefs.h. */
10612
/* Override any GCC internal prototype to avoid an error.
10613
Use char because int might match the return type of a GCC
10614
builtin and then its argument prototype would still apply. */
10622
return dld_link ();
10627
rm -f conftest.$ac_objext conftest$ac_exeext
10628
if { (ac_try="$ac_link"
10629
case "(($ac_try" in
10630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631
*) ac_try_echo=$ac_try;;
10633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10634
$as_echo "$ac_try_echo") >&5
10635
(eval "$ac_link") 2>conftest.er1
10637
grep -v '^ *+' conftest.er1 >conftest.err
10639
cat conftest.err >&5
10640
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641
(exit $ac_status); } && {
10642
test -z "$ac_c_werror_flag" ||
10643
test ! -s conftest.err
10644
} && test -s conftest$ac_exeext && {
10645
test "$cross_compiling" = yes ||
10646
$as_test_x conftest$ac_exeext
10648
ac_cv_lib_dld_dld_link=yes
10650
$as_echo "$as_me: failed program was:" >&5
10651
sed 's/^/| /' conftest.$ac_ext >&5
10653
ac_cv_lib_dld_dld_link=no
10656
rm -rf conftest.dSYM
10657
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658
conftest$ac_exeext conftest.$ac_ext
10659
LIBS=$ac_check_lib_save_LIBS
10661
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10662
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10663
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10664
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10685
if test "x$lt_cv_dlopen" != xno; then
10691
case $lt_cv_dlopen in
10693
save_CPPFLAGS="$CPPFLAGS"
10694
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10696
save_LDFLAGS="$LDFLAGS"
10697
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10700
LIBS="$lt_cv_dlopen_libs $LIBS"
10702
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10703
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10704
if test "${lt_cv_dlopen_self+set}" = set; then
10705
$as_echo_n "(cached) " >&6
10707
if test "$cross_compiling" = yes; then :
10708
lt_cv_dlopen_self=cross
10710
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10711
lt_status=$lt_dlunknown
10712
cat > conftest.$ac_ext <<EOF
10713
#line 10713 "configure"
10714
#include "confdefs.h"
10723
# define LT_DLGLOBAL RTLD_GLOBAL
10726
# define LT_DLGLOBAL DL_GLOBAL
10728
# define LT_DLGLOBAL 0
10732
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10733
find out it does not work in some platform. */
10734
#ifndef LT_DLLAZY_OR_NOW
10736
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10739
# define LT_DLLAZY_OR_NOW DL_LAZY
10742
# define LT_DLLAZY_OR_NOW RTLD_NOW
10745
# define LT_DLLAZY_OR_NOW DL_NOW
10747
# define LT_DLLAZY_OR_NOW 0
10755
extern "C" void exit (int);
10758
void fnord() { int i=42;}
10761
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10762
int status = $lt_dlunknown;
10766
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10767
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10768
/* dlclose (self); */
10776
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10777
(eval $ac_link) 2>&5
10779
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10781
(./conftest; exit; ) >&5 2>/dev/null
10783
case x$lt_status in
10784
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10785
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10786
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10789
# compilation failed
10790
lt_cv_dlopen_self=no
10797
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10798
$as_echo "$lt_cv_dlopen_self" >&6; }
10800
if test "x$lt_cv_dlopen_self" = xyes; then
10801
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10802
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10803
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10804
if test "${lt_cv_dlopen_self_static+set}" = set; then
10805
$as_echo_n "(cached) " >&6
10807
if test "$cross_compiling" = yes; then :
10808
lt_cv_dlopen_self_static=cross
10810
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10811
lt_status=$lt_dlunknown
10812
cat > conftest.$ac_ext <<EOF
10813
#line 10813 "configure"
10814
#include "confdefs.h"
10823
# define LT_DLGLOBAL RTLD_GLOBAL
10826
# define LT_DLGLOBAL DL_GLOBAL
10828
# define LT_DLGLOBAL 0
10832
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10833
find out it does not work in some platform. */
10834
#ifndef LT_DLLAZY_OR_NOW
10836
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10839
# define LT_DLLAZY_OR_NOW DL_LAZY
10842
# define LT_DLLAZY_OR_NOW RTLD_NOW
10845
# define LT_DLLAZY_OR_NOW DL_NOW
10847
# define LT_DLLAZY_OR_NOW 0
10855
extern "C" void exit (int);
10858
void fnord() { int i=42;}
10861
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10862
int status = $lt_dlunknown;
10866
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10867
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10868
/* dlclose (self); */
10876
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10877
(eval $ac_link) 2>&5
10879
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10881
(./conftest; exit; ) >&5 2>/dev/null
10883
case x$lt_status in
10884
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10885
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10886
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10889
# compilation failed
10890
lt_cv_dlopen_self_static=no
10897
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10898
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10901
CPPFLAGS="$save_CPPFLAGS"
10902
LDFLAGS="$save_LDFLAGS"
10907
case $lt_cv_dlopen_self in
10908
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10909
*) enable_dlopen_self=unknown ;;
10912
case $lt_cv_dlopen_self_static in
10913
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10914
*) enable_dlopen_self_static=unknown ;;
10919
# Report which library types will actually be built
10920
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10921
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10922
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10923
$as_echo "$can_build_shared" >&6; }
10925
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10926
$as_echo_n "checking whether to build shared libraries... " >&6; }
10927
test "$can_build_shared" = "no" && enable_shared=no
10929
# On AIX, shared libraries and static libraries use the same namespace, and
10930
# are all built from PIC.
10933
test "$enable_shared" = yes && enable_static=no
10934
if test -n "$RANLIB"; then
10935
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10936
postinstall_cmds='$RANLIB $lib'
10941
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10942
test "$enable_shared" = yes && enable_static=no
10946
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10947
$as_echo "$enable_shared" >&6; }
10949
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10950
$as_echo_n "checking whether to build static libraries... " >&6; }
10951
# Make sure either enable_shared or enable_static is yes.
10952
test "$enable_shared" = yes || enable_static=yes
10953
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10954
$as_echo "$enable_static" >&6; }
10956
# The else clause should only fire when bootstrapping the
10957
# libtool distribution, otherwise you forgot to ship ltmain.sh
10958
# with your package, and you will get complaints that there are
10959
# no rules to generate ltmain.sh.
10960
if test -f "$ltmain"; then
10961
# See if we are running on zsh, and set the options which allow our commands through
10962
# without removal of \ escapes.
10963
if test -n "${ZSH_VERSION+set}" ; then
10964
setopt NO_GLOB_SUBST
10966
# Now quote all the things that may contain metacharacters while being
10967
# careful not to overquote the AC_SUBSTed values. We take copies of the
10968
# variables and quote the copies for generation of the libtool script.
10969
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10971
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10972
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10973
deplibs_check_method reload_flag reload_cmds need_locks \
10974
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10975
lt_cv_sys_global_symbol_to_c_name_address \
10976
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10977
old_postinstall_cmds old_postuninstall_cmds \
10981
lt_prog_compiler_wl \
10982
lt_prog_compiler_pic \
10983
lt_prog_compiler_static \
10984
lt_prog_compiler_no_builtin_flag \
10985
export_dynamic_flag_spec \
10986
thread_safe_flag_spec \
10987
whole_archive_flag_spec \
10988
enable_shared_with_static_runtimes \
10990
old_archive_from_new_cmds \
10995
compiler_lib_search_path \
10996
compiler_lib_search_dirs \
10998
archive_expsym_cmds \
11000
postuninstall_cmds \
11001
old_archive_from_expsyms_cmds \
11002
allow_undefined_flag \
11003
no_undefined_flag \
11004
export_symbols_cmds \
11005
hardcode_libdir_flag_spec \
11006
hardcode_libdir_flag_spec_ld \
11007
hardcode_libdir_separator \
11008
hardcode_automatic \
11010
module_expsym_cmds \
11011
lt_cv_prog_compiler_c_o \
11014
include_expsyms; do
11017
old_archive_cmds | \
11018
old_archive_from_new_cmds | \
11020
archive_expsym_cmds | \
11022
module_expsym_cmds | \
11023
old_archive_from_expsyms_cmds | \
11024
export_symbols_cmds | \
11025
extract_expsyms_cmds | reload_cmds | finish_cmds | \
11026
postinstall_cmds | postuninstall_cmds | \
11027
old_postinstall_cmds | old_postuninstall_cmds | \
11028
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11029
# Double-quote double-evaled strings.
11030
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11033
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11039
*'\$0 --fallback-echo"')
11040
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11044
cfgfile="${ofile}T"
11045
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11047
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
11048
$as_echo "$as_me: creating $ofile" >&6;}
11050
cat <<__EOF__ >> "$cfgfile"
11053
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11054
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11055
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11057
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11058
# Free Software Foundation, Inc.
11060
# This file is part of GNU Libtool:
11061
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11063
# This program is free software; you can redistribute it and/or modify
11064
# it under the terms of the GNU General Public License as published by
11065
# the Free Software Foundation; either version 2 of the License, or
11066
# (at your option) any later version.
11068
# This program is distributed in the hope that it will be useful, but
11069
# WITHOUT ANY WARRANTY; without even the implied warranty of
11070
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11071
# General Public License for more details.
11073
# You should have received a copy of the GNU General Public License
11074
# along with this program; if not, write to the Free Software
11075
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11077
# As a special exception to the GNU General Public License, if you
11078
# distribute this file as part of a program that contains a
11079
# configuration script generated by Autoconf, you may include it under
11080
# the same distribution terms that you use for the rest of that program.
11082
# A sed program that does not truncate output.
11085
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11086
Xsed="$SED -e 1s/^X//"
11088
# The HP-UX ksh and POSIX shell print the target directory to stdout
11089
# if CDPATH is set.
11090
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11092
# The names of the tagged configurations supported by this script.
11095
# ### BEGIN LIBTOOL CONFIG
11097
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11099
# Shell to use when invoking shell scripts.
11102
# Whether or not to build shared libraries.
11103
build_libtool_libs=$enable_shared
11105
# Whether or not to build static libraries.
11106
build_old_libs=$enable_static
11108
# Whether or not to add -lc for building shared libraries.
11109
build_libtool_need_lc=$archive_cmds_need_lc
11111
# Whether or not to disallow shared libs when runtime libs are static
11112
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11114
# Whether or not to optimize for fast installation.
11115
fast_install=$enable_fast_install
11118
host_alias=$host_alias
11122
# The build system.
11123
build_alias=$build_alias
11127
# An echo program that does not interpret backslashes.
11132
AR_FLAGS=$lt_AR_FLAGS
11137
# LTCC compiler flags.
11138
LTCFLAGS=$lt_LTCFLAGS
11140
# A language-specific compiler.
11143
# Is the compiler the GNU C compiler?
11149
# The linker used to build libraries.
11152
# Whether we need hard or soft links.
11155
# A BSD-compatible nm program.
11158
# A symbol stripping program
11161
# Used to examine libraries when file_magic_cmd begins "file"
11162
MAGIC_CMD=$MAGIC_CMD
11164
# Used on cygwin: DLL creation program.
11167
# Used on cygwin: object dumper.
11170
# Used on cygwin: assembler.
11173
# The name of the directory that contains temporary libtool files.
11176
# How to create reloadable object files.
11177
reload_flag=$lt_reload_flag
11178
reload_cmds=$lt_reload_cmds
11180
# How to pass a linker flag through the compiler.
11181
wl=$lt_lt_prog_compiler_wl
11183
# Object file suffix (normally "o").
11184
objext="$ac_objext"
11186
# Old archive suffix (normally "a").
11189
# Shared library suffix (normally ".so").
11190
shrext_cmds='$shrext_cmds'
11192
# Executable file suffix (normally "").
11195
# Additional compiler flags for building library objects.
11196
pic_flag=$lt_lt_prog_compiler_pic
11199
# What is the maximum length of a command?
11200
max_cmd_len=$lt_cv_sys_max_cmd_len
11202
# Does compiler simultaneously support -c and -o options?
11203
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11205
# Must we lock files when doing compilation?
11206
need_locks=$lt_need_locks
11208
# Do we need the lib prefix for modules?
11209
need_lib_prefix=$need_lib_prefix
11211
# Do we need a version for libraries?
11212
need_version=$need_version
11214
# Whether dlopen is supported.
11215
dlopen_support=$enable_dlopen
11217
# Whether dlopen of programs is supported.
11218
dlopen_self=$enable_dlopen_self
11220
# Whether dlopen of statically linked programs is supported.
11221
dlopen_self_static=$enable_dlopen_self_static
11223
# Compiler flag to prevent dynamic linking.
11224
link_static_flag=$lt_lt_prog_compiler_static
11226
# Compiler flag to turn off builtin functions.
11227
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11229
# Compiler flag to allow reflexive dlopens.
11230
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11232
# Compiler flag to generate shared objects directly from archives.
11233
whole_archive_flag_spec=$lt_whole_archive_flag_spec
11235
# Compiler flag to generate thread-safe objects.
11236
thread_safe_flag_spec=$lt_thread_safe_flag_spec
11238
# Library versioning type.
11239
version_type=$version_type
11241
# Format of library name prefix.
11242
libname_spec=$lt_libname_spec
11244
# List of archive names. First name is the real one, the rest are links.
11245
# The last name is the one that the linker finds with -lNAME.
11246
library_names_spec=$lt_library_names_spec
11248
# The coded name of the library, if different from the real name.
11249
soname_spec=$lt_soname_spec
11251
# Commands used to build and install an old-style archive.
11253
old_archive_cmds=$lt_old_archive_cmds
11254
old_postinstall_cmds=$lt_old_postinstall_cmds
11255
old_postuninstall_cmds=$lt_old_postuninstall_cmds
11257
# Create an old-style archive from a shared archive.
11258
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11260
# Create a temporary old-style archive to link instead of a shared archive.
11261
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11263
# Commands used to build and install a shared archive.
11264
archive_cmds=$lt_archive_cmds
11265
archive_expsym_cmds=$lt_archive_expsym_cmds
11266
postinstall_cmds=$lt_postinstall_cmds
11267
postuninstall_cmds=$lt_postuninstall_cmds
11269
# Commands used to build a loadable module (assumed same as above if empty)
11270
module_cmds=$lt_module_cmds
11271
module_expsym_cmds=$lt_module_expsym_cmds
11273
# Commands to strip libraries.
11274
old_striplib=$lt_old_striplib
11275
striplib=$lt_striplib
11277
# Dependencies to place before the objects being linked to create a
11279
predep_objects=$lt_predep_objects
11281
# Dependencies to place after the objects being linked to create a
11283
postdep_objects=$lt_postdep_objects
11285
# Dependencies to place before the objects being linked to create a
11287
predeps=$lt_predeps
11289
# Dependencies to place after the objects being linked to create a
11291
postdeps=$lt_postdeps
11293
# The directories searched by this compiler when creating a shared
11295
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11297
# The library search path used internally by the compiler when linking
11298
# a shared library.
11299
compiler_lib_search_path=$lt_compiler_lib_search_path
11301
# Method to check whether dependent libraries are shared objects.
11302
deplibs_check_method=$lt_deplibs_check_method
11304
# Command to use when deplibs_check_method == file_magic.
11305
file_magic_cmd=$lt_file_magic_cmd
11307
# Flag that allows shared libraries with undefined symbols to be built.
11308
allow_undefined_flag=$lt_allow_undefined_flag
11310
# Flag that forces no undefined symbols.
11311
no_undefined_flag=$lt_no_undefined_flag
11313
# Commands used to finish a libtool library installation in a directory.
11314
finish_cmds=$lt_finish_cmds
11316
# Same as above, but a single script fragment to be evaled but not shown.
11317
finish_eval=$lt_finish_eval
11319
# Take the output of nm and produce a listing of raw symbols and C names.
11320
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11322
# Transform the output of nm in a proper C declaration
11323
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11325
# Transform the output of nm in a C name address pair
11326
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11328
# This is the shared library runtime path variable.
11329
runpath_var=$runpath_var
11331
# This is the shared library path variable.
11332
shlibpath_var=$shlibpath_var
11334
# Is shlibpath searched before the hard-coded library search path?
11335
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11337
# How to hardcode a shared library path into an executable.
11338
hardcode_action=$hardcode_action
11340
# Whether we should hardcode library paths into libraries.
11341
hardcode_into_libs=$hardcode_into_libs
11343
# Flag to hardcode \$libdir into a binary during linking.
11344
# This must work even if \$libdir does not exist.
11345
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11347
# If ld is used when linking, flag to hardcode \$libdir into
11348
# a binary during linking. This must work even if \$libdir does
11350
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11352
# Whether we need a single -rpath flag with a separated argument.
11353
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11355
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11356
# resulting binary.
11357
hardcode_direct=$hardcode_direct
11359
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11360
# resulting binary.
11361
hardcode_minus_L=$hardcode_minus_L
11363
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11364
# the resulting binary.
11365
hardcode_shlibpath_var=$hardcode_shlibpath_var
11367
# Set to yes if building a shared library automatically hardcodes DIR into the library
11368
# and all subsequent libraries and executables linked against it.
11369
hardcode_automatic=$hardcode_automatic
11371
# Variables whose values should be saved in libtool wrapper scripts and
11372
# restored at relink time.
11373
variables_saved_for_relink="$variables_saved_for_relink"
11375
# Whether libtool must link a program against all its dependency libraries.
11376
link_all_deplibs=$link_all_deplibs
11378
# Compile-time system search path for libraries
11379
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11381
# Run-time system search path for libraries
11382
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11384
# Fix the shell variable \$srcfile for the compiler.
11385
fix_srcfile_path=$lt_fix_srcfile_path
11387
# Set to yes if exported symbols are required.
11388
always_export_symbols=$always_export_symbols
11390
# The commands to list exported symbols.
11391
export_symbols_cmds=$lt_export_symbols_cmds
11393
# The commands to extract the exported symbol list from a shared archive.
11394
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11396
# Symbols that should not be listed in the preloaded symbols.
11397
exclude_expsyms=$lt_exclude_expsyms
11399
# Symbols that must always be exported.
11400
include_expsyms=$lt_include_expsyms
11402
# ### END LIBTOOL CONFIG
11409
cat <<\EOF >> "$cfgfile"
11411
# AIX sometimes has problems with the GCC collect2 program. For some
11412
# reason, if we set the COLLECT_NAMES environment variable, the problems
11413
# vanish in a puff of smoke.
11414
if test "X${COLLECT_NAMES+set}" != Xset; then
11416
export COLLECT_NAMES
11422
# We use sed instead of cat because bash on DJGPP gets confused if
11423
# if finds mixed CR/LF and LF-only lines. Since sed operates in
11424
# text mode, it properly converts lines to CR/LF. This bash problem
11425
# is reportedly fixed, but why not run on old versions too?
11426
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11428
mv -f "$cfgfile" "$ofile" || \
11429
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11433
# If there is no Makefile yet, we rely on a make rule to execute
11434
# `config.status --recheck' to rerun these tests and create the
11435
# libtool script then.
11436
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11437
if test -f "$ltmain_in"; then
11438
test -f Makefile && make "$ltmain"
11444
ac_cpp='$CPP $CPPFLAGS'
11445
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11446
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11447
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11452
# Check whether --with-tags was given.
11453
if test "${with_tags+set}" = set; then
11454
withval=$with_tags; tagnames="$withval"
11458
if test -f "$ltmain" && test -n "$tagnames"; then
11459
if test ! -f "${ofile}"; then
11460
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11461
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11464
if test -z "$LTCC"; then
11465
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11466
if test -z "$LTCC"; then
11467
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11468
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11470
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11471
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11474
if test -z "$LTCFLAGS"; then
11475
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11478
# Extract list of available tagged configurations in $ofile.
11479
# Note that this assumes the entire list is on one line.
11480
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11482
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11483
for tagname in $tagnames; do
11485
# Check whether tagname contains only valid characters
11486
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11488
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11489
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11490
{ (exit 1); exit 1; }; }
11494
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11496
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11497
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11498
{ (exit 1); exit 1; }; }
11501
# Update the list of available tags.
11502
if test -n "$tagname"; then
11503
echo appending configuration tag \"$tagname\" to $ofile
11507
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11508
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11509
(test "X$CXX" != "Xg++"))) ; then
11511
ac_cpp='$CXXCPP $CPPFLAGS'
11512
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11513
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11514
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11519
archive_cmds_need_lc_CXX=no
11520
allow_undefined_flag_CXX=
11521
always_export_symbols_CXX=no
11522
archive_expsym_cmds_CXX=
11523
export_dynamic_flag_spec_CXX=
11524
hardcode_direct_CXX=no
11525
hardcode_libdir_flag_spec_CXX=
11526
hardcode_libdir_flag_spec_ld_CXX=
11527
hardcode_libdir_separator_CXX=
11528
hardcode_minus_L_CXX=no
11529
hardcode_shlibpath_var_CXX=unsupported
11530
hardcode_automatic_CXX=no
11532
module_expsym_cmds_CXX=
11533
link_all_deplibs_CXX=unknown
11534
old_archive_cmds_CXX=$old_archive_cmds
11535
no_undefined_flag_CXX=
11536
whole_archive_flag_spec_CXX=
11537
enable_shared_with_static_runtimes_CXX=no
11539
# Dependencies to place before and after the object being linked:
11540
predep_objects_CXX=
11541
postdep_objects_CXX=
11544
compiler_lib_search_path_CXX=
11545
compiler_lib_search_dirs_CXX=
11547
# Source file extension for C++ test sources.
11550
# Object file extension for compiled C++ test sources.
11554
# Code to be used in simple compile tests
11555
lt_simple_compile_test_code="int some_variable = 0;"
11557
# Code to be used in simple link tests
11558
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11560
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11562
# If no C compiler was specified, use CC.
11565
# If no C compiler flags were specified, use CFLAGS.
11566
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11568
# Allow CC to be a program name with arguments.
11572
# save warnings/boilerplate of simple test code
11573
ac_outfile=conftest.$ac_objext
11574
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11575
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11576
_lt_compiler_boilerplate=`cat conftest.err`
11579
ac_outfile=conftest.$ac_objext
11580
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11581
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11582
_lt_linker_boilerplate=`cat conftest.err`
11586
# Allow CC to be a program name with arguments.
11591
lt_save_with_gnu_ld=$with_gnu_ld
11592
lt_save_path_LD=$lt_cv_path_LD
11593
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11594
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11596
$as_unset lt_cv_prog_gnu_ld
11598
if test -n "${lt_cv_path_LDCXX+set}"; then
11599
lt_cv_path_LD=$lt_cv_path_LDCXX
11601
$as_unset lt_cv_path_LD
11603
test -z "${LDCXX+set}" || LD=$LDCXX
11607
for cc_temp in $compiler""; do
11609
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11610
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11615
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11618
# We don't want -fno-exception wen compiling C++ code, so set the
11619
# no_builtin_flag separately
11620
if test "$GXX" = yes; then
11621
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11623
lt_prog_compiler_no_builtin_flag_CXX=
11626
if test "$GXX" = yes; then
11627
# Set up default GNU C++ configuration
11630
# Check whether --with-gnu-ld was given.
11631
if test "${with_gnu_ld+set}" = set; then
11632
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11638
if test "$GCC" = yes; then
11639
# Check if gcc -print-prog-name=ld gives a path.
11640
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11641
$as_echo_n "checking for ld used by $CC... " >&6; }
11644
# gcc leaves a trailing carriage return which upsets mingw
11645
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11647
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11650
# Accept absolute paths.
11652
re_direlt='/[^/][^/]*/\.\./'
11653
# Canonicalize the pathname of ld
11654
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11655
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11656
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11658
test -z "$LD" && LD="$ac_prog"
11661
# If it fails, then pretend we aren't using GCC.
11665
# If it is relative, then search for the first ld in PATH.
11666
with_gnu_ld=unknown
11669
elif test "$with_gnu_ld" = yes; then
11670
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11671
$as_echo_n "checking for GNU ld... " >&6; }
11673
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11674
$as_echo_n "checking for non-GNU ld... " >&6; }
11676
if test "${lt_cv_path_LD+set}" = set; then
11677
$as_echo_n "(cached) " >&6
11679
if test -z "$LD"; then
11680
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11681
for ac_dir in $PATH; do
11683
test -z "$ac_dir" && ac_dir=.
11684
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11685
lt_cv_path_LD="$ac_dir/$ac_prog"
11686
# Check to see if the program is GNU ld. I'd rather use --version,
11687
# but apparently some variants of GNU ld only accept -v.
11688
# Break only if it was the GNU/non-GNU ld that we prefer.
11689
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11690
*GNU* | *'with BFD'*)
11691
test "$with_gnu_ld" != no && break
11694
test "$with_gnu_ld" != yes && break
11701
lt_cv_path_LD="$LD" # Let the user override the test with a path.
11705
LD="$lt_cv_path_LD"
11706
if test -n "$LD"; then
11707
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
11708
$as_echo "$LD" >&6; }
11710
{ $as_echo "$as_me:$LINENO: result: no" >&5
11711
$as_echo "no" >&6; }
11713
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11714
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11715
{ (exit 1); exit 1; }; }
11716
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11717
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11718
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11719
$as_echo_n "(cached) " >&6
11721
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11722
case `$LD -v 2>&1 </dev/null` in
11723
*GNU* | *'with BFD'*)
11724
lt_cv_prog_gnu_ld=yes
11727
lt_cv_prog_gnu_ld=no
11731
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11732
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11733
with_gnu_ld=$lt_cv_prog_gnu_ld
11737
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11738
# archiving commands below assume that GNU ld is being used.
11739
if test "$with_gnu_ld" = yes; then
11740
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11741
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'
11743
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11744
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11746
# If archive_cmds runs LD, not CC, wlarc should be empty
11747
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11748
# investigate it a little bit more. (MM)
11751
# ancient GNU ld didn't support --whole-archive et. al.
11752
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11753
grep 'no-whole-archive' > /dev/null; then
11754
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11756
whole_archive_flag_spec_CXX=
11762
# A generic and very simple default shared library creation
11763
# command for GNU C++ for the case where it uses the native
11764
# linker, instead of GNU ld. If possible, this setting should
11765
# overridden to take advantage of the native linker features on
11766
# the platform it is being used on.
11767
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11770
# Commands to make compiler produce verbose output that lists
11771
# what "hidden" libraries, object files and flags are used when
11772
# linking a shared library.
11773
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11781
# PORTME: fill in a description of your system's C++ link characteristics
11782
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11783
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11787
# FIXME: insert proper C++ library support
11791
if test "$host_cpu" = ia64; then
11792
# On IA64, the linker does run time linking by default, so we don't
11793
# have to do anything special.
11794
aix_use_runtimelinking=no
11795
exp_sym_flag='-Bexport'
11798
aix_use_runtimelinking=no
11800
# Test if we are trying to use run time linking or normal
11801
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11802
# need to do runtime linking.
11803
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11804
for ld_flag in $LDFLAGS; do
11807
aix_use_runtimelinking=yes
11815
exp_sym_flag='-bexport'
11816
no_entry_flag='-bnoentry'
11819
# When large executables or shared objects are built, AIX ld can
11820
# have problems creating the table of contents. If linking a library
11821
# or program results in "error TOC overflow" add -mminimal-toc to
11822
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11823
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11825
archive_cmds_CXX=''
11826
hardcode_direct_CXX=yes
11827
hardcode_libdir_separator_CXX=':'
11828
link_all_deplibs_CXX=yes
11830
if test "$GXX" = yes; then
11831
case $host_os in aix4.[012]|aix4.[012].*)
11832
# We only want to do this on AIX 4.2 and lower, the check
11833
# below for broken collect2 doesn't work under 4.3+
11834
collect2name=`${CC} -print-prog-name=collect2`
11835
if test -f "$collect2name" && \
11836
strings "$collect2name" | grep resolve_lib_name >/dev/null
11838
# We have reworked collect2
11841
# We have old collect2
11842
hardcode_direct_CXX=unsupported
11843
# It fails to find uninstalled libraries when the uninstalled
11844
# path is not listed in the libpath. Setting hardcode_minus_L
11845
# to unsupported forces relinking
11846
hardcode_minus_L_CXX=yes
11847
hardcode_libdir_flag_spec_CXX='-L$libdir'
11848
hardcode_libdir_separator_CXX=
11852
shared_flag='-shared'
11853
if test "$aix_use_runtimelinking" = yes; then
11854
shared_flag="$shared_flag "'${wl}-G'
11858
if test "$host_cpu" = ia64; then
11859
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11860
# chokes on -Wl,-G. The following line is correct:
11863
if test "$aix_use_runtimelinking" = yes; then
11864
shared_flag='${wl}-G'
11866
shared_flag='${wl}-bM:SRE'
11871
# It seems that -bexpall does not export symbols beginning with
11872
# underscore (_), so it is better to generate a list of symbols to export.
11873
always_export_symbols_CXX=yes
11874
if test "$aix_use_runtimelinking" = yes; then
11875
# Warning - without using the other runtime loading flags (-brtl),
11876
# -berok will link without error, but may produce a broken library.
11877
allow_undefined_flag_CXX='-berok'
11878
# Determine the default libpath from the value encoded in an empty executable.
11879
cat >conftest.$ac_ext <<_ACEOF
11882
cat confdefs.h >>conftest.$ac_ext
11883
cat >>conftest.$ac_ext <<_ACEOF
11884
/* end confdefs.h. */
11894
rm -f conftest.$ac_objext conftest$ac_exeext
11895
if { (ac_try="$ac_link"
11896
case "(($ac_try" in
11897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898
*) ac_try_echo=$ac_try;;
11900
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11901
$as_echo "$ac_try_echo") >&5
11902
(eval "$ac_link") 2>conftest.er1
11904
grep -v '^ *+' conftest.er1 >conftest.err
11906
cat conftest.err >&5
11907
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908
(exit $ac_status); } && {
11909
test -z "$ac_cxx_werror_flag" ||
11910
test ! -s conftest.err
11911
} && test -s conftest$ac_exeext && {
11912
test "$cross_compiling" = yes ||
11913
$as_test_x conftest$ac_exeext
11916
lt_aix_libpath_sed='
11917
/Import File Strings/,/^$/ {
11923
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11924
# Check for a 64-bit object if we didn't find anything.
11925
if test -z "$aix_libpath"; then
11926
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11929
$as_echo "$as_me: failed program was:" >&5
11930
sed 's/^/| /' conftest.$ac_ext >&5
11935
rm -rf conftest.dSYM
11936
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11937
conftest$ac_exeext conftest.$ac_ext
11938
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11940
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11942
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"
11944
if test "$host_cpu" = ia64; then
11945
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11946
allow_undefined_flag_CXX="-z nodefs"
11947
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"
11949
# Determine the default libpath from the value encoded in an empty executable.
11950
cat >conftest.$ac_ext <<_ACEOF
11953
cat confdefs.h >>conftest.$ac_ext
11954
cat >>conftest.$ac_ext <<_ACEOF
11955
/* end confdefs.h. */
11965
rm -f conftest.$ac_objext conftest$ac_exeext
11966
if { (ac_try="$ac_link"
11967
case "(($ac_try" in
11968
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969
*) ac_try_echo=$ac_try;;
11971
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11972
$as_echo "$ac_try_echo") >&5
11973
(eval "$ac_link") 2>conftest.er1
11975
grep -v '^ *+' conftest.er1 >conftest.err
11977
cat conftest.err >&5
11978
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979
(exit $ac_status); } && {
11980
test -z "$ac_cxx_werror_flag" ||
11981
test ! -s conftest.err
11982
} && test -s conftest$ac_exeext && {
11983
test "$cross_compiling" = yes ||
11984
$as_test_x conftest$ac_exeext
11987
lt_aix_libpath_sed='
11988
/Import File Strings/,/^$/ {
11994
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11995
# Check for a 64-bit object if we didn't find anything.
11996
if test -z "$aix_libpath"; then
11997
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12000
$as_echo "$as_me: failed program was:" >&5
12001
sed 's/^/| /' conftest.$ac_ext >&5
12006
rm -rf conftest.dSYM
12007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12008
conftest$ac_exeext conftest.$ac_ext
12009
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12011
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12012
# Warning - without using the other run time loading flags,
12013
# -berok will link without error, but may produce a broken library.
12014
no_undefined_flag_CXX=' ${wl}-bernotok'
12015
allow_undefined_flag_CXX=' ${wl}-berok'
12016
# Exported symbols can be pulled into shared objects from archives
12017
whole_archive_flag_spec_CXX='$convenience'
12018
archive_cmds_need_lc_CXX=yes
12019
# This is similar to how AIX traditionally builds its shared libraries.
12020
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'
12026
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12027
allow_undefined_flag_CXX=unsupported
12028
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12029
# support --undefined. This deserves some investigation. FIXME
12030
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12037
case $cc_basename in
12039
# FIXME: insert proper C++ library support
12045
cygwin* | mingw* | pw32*)
12046
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12047
# as there is no search path for DLLs.
12048
hardcode_libdir_flag_spec_CXX='-L$libdir'
12049
allow_undefined_flag_CXX=unsupported
12050
always_export_symbols_CXX=no
12051
enable_shared_with_static_runtimes_CXX=yes
12053
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12054
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'
12055
# If the export-symbols file already is a .def file (1st line
12056
# is EXPORTS), use it as is; otherwise, prepend...
12057
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12058
cp $export_symbols $output_objdir/$soname.def;
12060
echo EXPORTS > $output_objdir/$soname.def;
12061
cat $export_symbols >> $output_objdir/$soname.def;
12063
$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'
12068
darwin* | rhapsody*)
12069
archive_cmds_need_lc_CXX=no
12070
hardcode_direct_CXX=no
12071
hardcode_automatic_CXX=yes
12072
hardcode_shlibpath_var_CXX=unsupported
12073
whole_archive_flag_spec_CXX=''
12074
link_all_deplibs_CXX=yes
12075
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12076
if test "$GXX" = yes ; then
12077
output_verbose_link_cmd='echo'
12078
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}"
12079
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12080
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}"
12081
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}"
12082
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12083
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}"
12084
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}"
12087
case $cc_basename in
12089
output_verbose_link_cmd='echo'
12090
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'
12091
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12092
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12093
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}'
12094
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}'
12104
case $cc_basename in
12106
# FIXME: insert proper C++ library support
12110
# Green Hills C++ Compiler
12111
# FIXME: insert proper C++ library support
12115
# FIXME: insert proper C++ library support
12121
# C++ shared libraries reported to be fairly broken before switch to ELF
12125
archive_cmds_need_lc_CXX=no
12127
freebsd* | dragonfly*)
12128
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12135
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12136
hardcode_libdir_separator_CXX=:
12137
export_dynamic_flag_spec_CXX='${wl}-E'
12138
hardcode_direct_CXX=yes
12139
hardcode_minus_L_CXX=yes # Not in the search PATH,
12140
# but as the default
12141
# location of the library.
12143
case $cc_basename in
12145
# FIXME: insert proper C++ library support
12149
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'
12150
# Commands to make compiler produce verbose output that lists
12151
# what "hidden" libraries, object files and flags are used when
12152
# linking a shared library.
12154
# There doesn't appear to be a way to prevent this compiler from
12155
# explicitly linking system object files so we need to strip them
12156
# from the output so that they don't get included in the library
12158
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'
12161
if test "$GXX" = yes; then
12162
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'
12164
# FIXME: insert proper C++ library support
12171
if test $with_gnu_ld = no; then
12172
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12173
hardcode_libdir_separator_CXX=:
12178
export_dynamic_flag_spec_CXX='${wl}-E'
12184
hardcode_direct_CXX=no
12185
hardcode_shlibpath_var_CXX=no
12188
hardcode_direct_CXX=yes
12189
hardcode_minus_L_CXX=yes # Not in the search PATH,
12190
# but as the default
12191
# location of the library.
12195
case $cc_basename in
12197
# FIXME: insert proper C++ library support
12203
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12206
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12209
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12212
# Commands to make compiler produce verbose output that lists
12213
# what "hidden" libraries, object files and flags are used when
12214
# linking a shared library.
12216
# There doesn't appear to be a way to prevent this compiler from
12217
# explicitly linking system object files so we need to strip them
12218
# from the output so that they don't get included in the library
12220
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'
12223
if test "$GXX" = yes; then
12224
if test $with_gnu_ld = no; then
12227
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12230
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233
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'
12238
# FIXME: insert proper C++ library support
12245
hardcode_direct_CXX=no
12246
hardcode_shlibpath_var_CXX=no
12247
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12248
export_dynamic_flag_spec_CXX='${wl}-E'
12249
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12250
# Instead, shared libraries are loaded at an image base (0x10000000 by
12251
# default) and relocated if they conflict, which is a slow very memory
12252
# consuming and fragmenting process. To avoid this, we pick a random,
12253
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12254
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12255
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'
12256
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'
12259
case $cc_basename in
12262
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'
12264
# Archives containing C++ object files must be created using
12265
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12266
# necessary to make sure instantiated templates are included
12268
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12271
if test "$GXX" = yes; then
12272
if test "$with_gnu_ld" = no; then
12273
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'
12275
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'
12278
link_all_deplibs_CXX=yes
12281
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12282
hardcode_libdir_separator_CXX=:
12284
linux* | k*bsd*-gnu)
12285
case $cc_basename in
12287
# Kuck and Associates, Inc. (KAI) C++ Compiler
12289
# KCC will only create a shared library if the output file
12290
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12291
# to its proper name (with version) after linking.
12292
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'
12293
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'
12294
# Commands to make compiler produce verbose output that lists
12295
# what "hidden" libraries, object files and flags are used when
12296
# linking a shared library.
12298
# There doesn't appear to be a way to prevent this compiler from
12299
# explicitly linking system object files so we need to strip them
12300
# from the output so that they don't get included in the library
12302
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'
12304
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12305
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12307
# Archives containing C++ object files must be created using
12308
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12309
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12314
# version 8.0 and above of icpc choke on multiply defined symbols
12315
# if we add $predep_objects and $postdep_objects, however 7.1 and
12316
# earlier do not add the objects themselves.
12317
case `$CC -V 2>&1` in
12319
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12320
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'
12322
*) # Version 8.0 or newer
12325
ia64*) tmp_idyn=' -i_dynamic';;
12327
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12328
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'
12331
archive_cmds_need_lc_CXX=no
12332
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12333
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12334
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12337
# Portland Group C++ compiler
12338
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12339
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'
12341
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12342
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12343
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'
12347
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12348
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'
12350
runpath_var=LD_RUN_PATH
12351
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12352
hardcode_libdir_separator_CXX=:
12354
# Commands to make compiler produce verbose output that lists
12355
# what "hidden" libraries, object files and flags are used when
12356
# linking a shared library.
12358
# There doesn't appear to be a way to prevent this compiler from
12359
# explicitly linking system object files so we need to strip them
12360
# from the output so that they don't get included in the library
12362
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'
12365
case `$CC -V 2>&1 | sed 5q` in
12368
no_undefined_flag_CXX=' -zdefs'
12369
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12370
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'
12371
hardcode_libdir_flag_spec_CXX='-R$libdir'
12372
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'
12374
# Not sure whether something based on
12375
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12377
output_verbose_link_cmd='echo'
12379
# Archives containing C++ object files must be created using
12380
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12381
# necessary to make sure instantiated templates are included
12383
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12390
# FIXME: insert proper C++ library support
12394
# FIXME: insert proper C++ library support
12398
case $cc_basename in
12400
# FIXME: insert proper C++ library support
12404
# FIXME: insert proper C++ library support
12410
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12411
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12413
hardcode_libdir_flag_spec_CXX='-R$libdir'
12414
hardcode_direct_CXX=yes
12415
hardcode_shlibpath_var_CXX=no
12417
# Workaround some broken pre-1.5 toolchains
12418
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12421
# C++ shared libraries are fairly broken
12425
if test -f /usr/libexec/ld.so; then
12426
hardcode_direct_CXX=yes
12427
hardcode_shlibpath_var_CXX=no
12428
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12429
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12430
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12431
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12432
export_dynamic_flag_spec_CXX='${wl}-E'
12433
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12435
output_verbose_link_cmd='echo'
12441
case $cc_basename in
12443
# Kuck and Associates, Inc. (KAI) C++ Compiler
12445
# KCC will only create a shared library if the output file
12446
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12447
# to its proper name (with version) after linking.
12448
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'
12450
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12451
hardcode_libdir_separator_CXX=:
12453
# Archives containing C++ object files must be created using
12454
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12455
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12459
# Rational C++ 2.4.1
12460
# FIXME: insert proper C++ library support
12464
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12465
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'
12467
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12468
hardcode_libdir_separator_CXX=:
12470
# Commands to make compiler produce verbose output that lists
12471
# what "hidden" libraries, object files and flags are used when
12472
# linking a shared library.
12474
# There doesn't appear to be a way to prevent this compiler from
12475
# explicitly linking system object files so we need to strip them
12476
# from the output so that they don't get included in the library
12478
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'
12481
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12482
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12483
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'
12485
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12486
hardcode_libdir_separator_CXX=:
12488
# Commands to make compiler produce verbose output that lists
12489
# what "hidden" libraries, object files and flags are used when
12490
# linking a shared library.
12491
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12494
# FIXME: insert proper C++ library support
12501
case $cc_basename in
12503
# Kuck and Associates, Inc. (KAI) C++ Compiler
12505
# KCC will only create a shared library if the output file
12506
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12507
# to its proper name (with version) after linking.
12508
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'
12510
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12511
hardcode_libdir_separator_CXX=:
12513
# Archives containing C++ object files must be created using
12514
# the KAI C++ compiler.
12515
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12518
# Rational C++ 2.4.1
12519
# FIXME: insert proper C++ library support
12523
allow_undefined_flag_CXX=' -expect_unresolved \*'
12524
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'
12525
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12526
echo "-hidden">> $lib.exp~
12527
$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~
12530
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12531
hardcode_libdir_separator_CXX=:
12533
# Commands to make compiler produce verbose output that lists
12534
# what "hidden" libraries, object files and flags are used when
12535
# linking a shared library.
12537
# There doesn't appear to be a way to prevent this compiler from
12538
# explicitly linking system object files so we need to strip them
12539
# from the output so that they don't get included in the library
12541
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'
12544
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12545
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12546
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'
12548
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12549
hardcode_libdir_separator_CXX=:
12551
# Commands to make compiler produce verbose output that lists
12552
# what "hidden" libraries, object files and flags are used when
12553
# linking a shared library.
12554
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12557
# FIXME: insert proper C++ library support
12564
# FIXME: insert proper C++ library support
12568
case $cc_basename in
12571
# FIXME: insert proper C++ library support
12576
# FIXME: insert proper C++ library support
12580
# FIXME: insert proper C++ library support
12586
case $cc_basename in
12588
# Sun C++ 4.2, 5.x and Centerline C++
12589
archive_cmds_need_lc_CXX=yes
12590
no_undefined_flag_CXX=' -zdefs'
12591
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12592
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12593
$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'
12595
hardcode_libdir_flag_spec_CXX='-R$libdir'
12596
hardcode_shlibpath_var_CXX=no
12598
solaris2.[0-5] | solaris2.[0-5].*) ;;
12600
# The compiler driver will combine and reorder linker options,
12601
# but understands `-z linker_flag'.
12602
# Supported since Solaris 2.6 (maybe 2.5.1?)
12603
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12606
link_all_deplibs_CXX=yes
12608
output_verbose_link_cmd='echo'
12610
# Archives containing C++ object files must be created using
12611
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12612
# necessary to make sure instantiated templates are included
12614
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12617
# Green Hills C++ Compiler
12618
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12620
# The C++ compiler must be used to create the archive.
12621
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12624
# GNU C++ compiler with Solaris linker
12625
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12626
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12627
if $CC --version | grep -v '^2\.7' > /dev/null; then
12628
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12629
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12630
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12632
# Commands to make compiler produce verbose output that lists
12633
# what "hidden" libraries, object files and flags are used when
12634
# linking a shared library.
12635
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12637
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12639
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12640
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12641
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12643
# Commands to make compiler produce verbose output that lists
12644
# what "hidden" libraries, object files and flags are used when
12645
# linking a shared library.
12646
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12649
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12651
solaris2.[0-5] | solaris2.[0-5].*) ;;
12653
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12660
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12661
no_undefined_flag_CXX='${wl}-z,text'
12662
archive_cmds_need_lc_CXX=no
12663
hardcode_shlibpath_var_CXX=no
12664
runpath_var='LD_RUN_PATH'
12666
case $cc_basename in
12668
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12669
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12672
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12673
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12677
sysv5* | sco3.2v5* | sco5v6*)
12678
# Note: We can NOT use -z defs as we might desire, because we do not
12679
# link with -lc, and that would cause any symbols used from libc to
12680
# always be unresolved, which means just about no library would
12681
# ever link correctly. If we're not using GNU ld we use -z text
12682
# though, which does catch some bad symbols but isn't as heavy-handed
12684
# For security reasons, it is highly recommended that you always
12685
# use absolute paths for naming shared libraries, and exclude the
12686
# DT_RUNPATH tag from executables and libraries. But doing so
12687
# requires that you compile everything twice, which is a pain.
12688
# So that behaviour is only enabled if SCOABSPATH is set to a
12689
# non-empty value in the environment. Most likely only useful for
12690
# creating official distributions of packages.
12691
# This is a hack until libtool officially supports absolute path
12692
# names for shared libraries.
12693
no_undefined_flag_CXX='${wl}-z,text'
12694
allow_undefined_flag_CXX='${wl}-z,nodefs'
12695
archive_cmds_need_lc_CXX=no
12696
hardcode_shlibpath_var_CXX=no
12697
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12698
hardcode_libdir_separator_CXX=':'
12699
link_all_deplibs_CXX=yes
12700
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12701
runpath_var='LD_RUN_PATH'
12703
case $cc_basename in
12705
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12706
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12709
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12710
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12715
case $cc_basename in
12717
# NonStop-UX NCC 3.20
12718
# FIXME: insert proper C++ library support
12722
# FIXME: insert proper C++ library support
12728
# FIXME: insert proper C++ library support
12732
# FIXME: insert proper C++ library support
12736
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12737
$as_echo "$ld_shlibs_CXX" >&6; }
12738
test "$ld_shlibs_CXX" = no && can_build_shared=no
12743
cat > conftest.$ac_ext <<EOF
12747
Foo (void) { a = 0; }
12753
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12754
(eval $ac_compile) 2>&5
12756
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757
(exit $ac_status); }; then
12758
# Parse the compiler output and extract the necessary
12759
# objects, libraries and library flags.
12761
# Sentinel used to keep track of whether or not we are before
12762
# the conftest object file.
12763
pre_test_object_deps_done=no
12765
# The `*' in the case matches for architectures that use `case' in
12766
# $output_verbose_cmd can trigger glob expansion during the loop
12767
# eval without this substitution.
12768
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12770
for p in `eval $output_verbose_link_cmd`; do
12774
# Some compilers place space between "-{L,R}" and the path.
12775
# Remove the space.
12776
if test $p = "-L" \
12777
|| test $p = "-R"; then
12784
if test "$pre_test_object_deps_done" = no; then
12787
# Internal compiler library paths should come after those
12788
# provided the user. The postdeps already come after the
12789
# user supplied libs so there is no need to process them.
12790
if test -z "$compiler_lib_search_path_CXX"; then
12791
compiler_lib_search_path_CXX="${prev}${p}"
12793
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12796
# The "-l" case would never come before the object being
12797
# linked, so don't bother handling this case.
12800
if test -z "$postdeps_CXX"; then
12801
postdeps_CXX="${prev}${p}"
12803
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12809
# This assumes that the test object file only shows up
12810
# once in the compiler output.
12811
if test "$p" = "conftest.$objext"; then
12812
pre_test_object_deps_done=yes
12816
if test "$pre_test_object_deps_done" = no; then
12817
if test -z "$predep_objects_CXX"; then
12818
predep_objects_CXX="$p"
12820
predep_objects_CXX="$predep_objects_CXX $p"
12823
if test -z "$postdep_objects_CXX"; then
12824
postdep_objects_CXX="$p"
12826
postdep_objects_CXX="$postdep_objects_CXX $p"
12831
*) ;; # Ignore the rest.
12839
echo "libtool.m4: error: problem compiling CXX test program"
12842
$rm -f confest.$objext
12844
compiler_lib_search_dirs_CXX=
12845
if test -n "$compiler_lib_search_path_CXX"; then
12846
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12849
# PORTME: override above test on systems where it is broken
12852
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12853
# hack all around it, let's just trust "g++" to DTRT.
12854
predep_objects_CXX=
12855
postdep_objects_CXX=
12860
case `$CC -V 2>&1 | sed 5q` in
12864
# The more standards-conforming stlport4 library is
12865
# incompatible with the Cstd library. Avoid specifying
12866
# it if it's in CXXFLAGS. Ignore libCrun as
12867
# -library=stlport4 depends on it.
12868
case " $CXX $CXXFLAGS " in
12869
*" -library=stlport4 "*)
12870
solaris_use_stlport4=yes
12873
if test "$solaris_use_stlport4" != yes; then
12874
postdeps_CXX='-library=Cstd -library=Crun'
12881
case $cc_basename in
12883
# The more standards-conforming stlport4 library is
12884
# incompatible with the Cstd library. Avoid specifying
12885
# it if it's in CXXFLAGS. Ignore libCrun as
12886
# -library=stlport4 depends on it.
12887
case " $CXX $CXXFLAGS " in
12888
*" -library=stlport4 "*)
12889
solaris_use_stlport4=yes
12893
# Adding this requires a known-good setup of shared libraries for
12894
# Sun compiler versions before 5.6, else PIC objects from an old
12895
# archive will be linked into the output, leading to subtle bugs.
12896
if test "$solaris_use_stlport4" != yes; then
12897
postdeps_CXX='-library=Cstd -library=Crun'
12904
case " $postdeps_CXX " in
12905
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12908
lt_prog_compiler_wl_CXX=
12909
lt_prog_compiler_pic_CXX=
12910
lt_prog_compiler_static_CXX=
12912
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12913
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12915
# C++ specific cases for pic, static, wl, etc.
12916
if test "$GXX" = yes; then
12917
lt_prog_compiler_wl_CXX='-Wl,'
12918
lt_prog_compiler_static_CXX='-static'
12922
# All AIX code is PIC.
12923
if test "$host_cpu" = ia64; then
12924
# AIX 5 now supports IA64 processor
12925
lt_prog_compiler_static_CXX='-Bstatic'
12929
# FIXME: we need at least 68020 code to build shared libraries, but
12930
# adding the `-m68020' flag to GCC prevents building anything better,
12932
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12934
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12935
# PIC is the default for these OSes.
12937
mingw* | cygwin* | os2* | pw32*)
12938
# This hack is so that the source file can tell whether it is being
12939
# built for inclusion in a dll (and should export symbols for example).
12940
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12941
# (--disable-auto-import) libraries
12942
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12944
darwin* | rhapsody*)
12945
# PIC is the default on this platform
12946
# Common symbols not allowed in MH_DYLIB files
12947
lt_prog_compiler_pic_CXX='-fno-common'
12950
# DJGPP does not support shared libraries at all
12951
lt_prog_compiler_pic_CXX=
12954
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12955
# Instead, we relocate shared libraries at runtime.
12958
if test -d /usr/nec; then
12959
lt_prog_compiler_pic_CXX=-Kconform_pic
12963
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12964
# not for PA HP-UX.
12969
lt_prog_compiler_pic_CXX='-fPIC'
12974
lt_prog_compiler_pic_CXX='-fPIC'
12980
# All AIX code is PIC.
12981
if test "$host_cpu" = ia64; then
12982
# AIX 5 now supports IA64 processor
12983
lt_prog_compiler_static_CXX='-Bstatic'
12985
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12989
case $cc_basename in
12991
# Green Hills C++ Compiler
12992
# _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"
12997
# PIC is the default on this platform
12998
# Common symbols not allowed in MH_DYLIB files
12999
case $cc_basename in
13001
lt_prog_compiler_pic_CXX='-qnocommon'
13002
lt_prog_compiler_wl_CXX='-Wl,'
13007
case $cc_basename in
13009
lt_prog_compiler_pic_CXX='-KPIC'
13012
# Green Hills C++ Compiler
13013
lt_prog_compiler_pic_CXX='-pic'
13019
freebsd* | dragonfly*)
13020
# FreeBSD uses GNU C++
13022
hpux9* | hpux10* | hpux11*)
13023
case $cc_basename in
13025
lt_prog_compiler_wl_CXX='-Wl,'
13026
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13027
if test "$host_cpu" != ia64; then
13028
lt_prog_compiler_pic_CXX='+Z'
13032
lt_prog_compiler_wl_CXX='-Wl,'
13033
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13039
lt_prog_compiler_pic_CXX='+Z'
13048
# This is c89, which is MS Visual C++ (no shared libs)
13049
# Anyone wants to do a port?
13051
irix5* | irix6* | nonstopux*)
13052
case $cc_basename in
13054
lt_prog_compiler_wl_CXX='-Wl,'
13055
lt_prog_compiler_static_CXX='-non_shared'
13056
# CC pic flag -KPIC is the default.
13062
linux* | k*bsd*-gnu)
13063
case $cc_basename in
13066
lt_prog_compiler_wl_CXX='--backend -Wl,'
13067
lt_prog_compiler_pic_CXX='-fPIC'
13071
lt_prog_compiler_wl_CXX='-Wl,'
13072
lt_prog_compiler_pic_CXX='-KPIC'
13073
lt_prog_compiler_static_CXX='-static'
13076
# Portland Group C++ compiler.
13077
lt_prog_compiler_wl_CXX='-Wl,'
13078
lt_prog_compiler_pic_CXX='-fpic'
13079
lt_prog_compiler_static_CXX='-Bstatic'
13083
# Make sure the PIC flag is empty. It appears that all Alpha
13084
# Linux and Compaq Tru64 Unix objects are PIC.
13085
lt_prog_compiler_pic_CXX=
13086
lt_prog_compiler_static_CXX='-non_shared'
13089
case `$CC -V 2>&1 | sed 5q` in
13092
lt_prog_compiler_pic_CXX='-KPIC'
13093
lt_prog_compiler_static_CXX='-Bstatic'
13094
lt_prog_compiler_wl_CXX='-Qoption ld '
13105
case $cc_basename in
13107
lt_prog_compiler_pic_CXX='-W c,exportall'
13115
osf3* | osf4* | osf5*)
13116
case $cc_basename in
13118
lt_prog_compiler_wl_CXX='--backend -Wl,'
13121
# Rational C++ 2.4.1
13122
lt_prog_compiler_pic_CXX='-pic'
13125
# Digital/Compaq C++
13126
lt_prog_compiler_wl_CXX='-Wl,'
13127
# Make sure the PIC flag is empty. It appears that all Alpha
13128
# Linux and Compaq Tru64 Unix objects are PIC.
13129
lt_prog_compiler_pic_CXX=
13130
lt_prog_compiler_static_CXX='-non_shared'
13139
case $cc_basename in
13141
# Sun C++ 4.2, 5.x and Centerline C++
13142
lt_prog_compiler_pic_CXX='-KPIC'
13143
lt_prog_compiler_static_CXX='-Bstatic'
13144
lt_prog_compiler_wl_CXX='-Qoption ld '
13147
# Green Hills C++ Compiler
13148
lt_prog_compiler_pic_CXX='-PIC'
13155
case $cc_basename in
13158
lt_prog_compiler_pic_CXX='-pic'
13159
lt_prog_compiler_static_CXX='-Bstatic'
13163
lt_prog_compiler_pic_CXX='-pic'
13170
case $cc_basename in
13172
# NonStop-UX NCC 3.20
13173
lt_prog_compiler_pic_CXX='-KPIC'
13179
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13180
case $cc_basename in
13182
lt_prog_compiler_wl_CXX='-Wl,'
13183
lt_prog_compiler_pic_CXX='-KPIC'
13184
lt_prog_compiler_static_CXX='-Bstatic'
13191
lt_prog_compiler_can_build_shared_CXX=no
13196
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13197
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13200
# Check to make sure the PIC flag actually works.
13202
if test -n "$lt_prog_compiler_pic_CXX"; then
13204
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13205
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13206
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13207
$as_echo_n "(cached) " >&6
13209
lt_cv_prog_compiler_pic_works_CXX=no
13210
ac_outfile=conftest.$ac_objext
13211
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13212
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13213
# Insert the option either (1) after the last *FLAGS variable, or
13214
# (2) before a word containing "conftest.", or (3) at the end.
13215
# Note that $ac_compile itself does not contain backslashes and begins
13216
# with a dollar sign (not a hyphen), so the echo should work correctly.
13217
# The option is referenced via a variable to avoid confusing sed.
13218
lt_compile=`echo "$ac_compile" | $SED \
13219
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13220
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13221
-e 's:$: $lt_compiler_flag:'`
13222
(eval echo "\"\$as_me:13222: $lt_compile\"" >&5)
13223
(eval "$lt_compile" 2>conftest.err)
13225
cat conftest.err >&5
13226
echo "$as_me:13226: \$? = $ac_status" >&5
13227
if (exit $ac_status) && test -s "$ac_outfile"; then
13228
# The compiler can only warn and ignore the option if not recognized
13229
# So say no if there are warnings other than the usual output.
13230
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13231
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13232
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13233
lt_cv_prog_compiler_pic_works_CXX=yes
13239
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13240
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13242
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13243
case $lt_prog_compiler_pic_CXX in
13245
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13248
lt_prog_compiler_pic_CXX=
13249
lt_prog_compiler_can_build_shared_CXX=no
13254
# For platforms which do not support PIC, -DPIC is meaningless:
13256
lt_prog_compiler_pic_CXX=
13259
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13264
# Check to make sure the static flag actually works.
13266
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13267
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13268
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13269
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13270
$as_echo_n "(cached) " >&6
13272
lt_cv_prog_compiler_static_works_CXX=no
13273
save_LDFLAGS="$LDFLAGS"
13274
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13275
echo "$lt_simple_link_test_code" > conftest.$ac_ext
13276
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13277
# The linker can only warn and ignore the option if not recognized
13278
# So say no if there are warnings
13279
if test -s conftest.err; then
13280
# Append any errors to the config.log.
13281
cat conftest.err 1>&5
13282
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13283
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13284
if diff conftest.exp conftest.er2 >/dev/null; then
13285
lt_cv_prog_compiler_static_works_CXX=yes
13288
lt_cv_prog_compiler_static_works_CXX=yes
13292
LDFLAGS="$save_LDFLAGS"
13295
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13296
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13298
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13301
lt_prog_compiler_static_CXX=
13305
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13306
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13307
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13308
$as_echo_n "(cached) " >&6
13310
lt_cv_prog_compiler_c_o_CXX=no
13311
$rm -r conftest 2>/dev/null
13315
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13317
lt_compiler_flag="-o out/conftest2.$ac_objext"
13318
# Insert the option either (1) after the last *FLAGS variable, or
13319
# (2) before a word containing "conftest.", or (3) at the end.
13320
# Note that $ac_compile itself does not contain backslashes and begins
13321
# with a dollar sign (not a hyphen), so the echo should work correctly.
13322
lt_compile=`echo "$ac_compile" | $SED \
13323
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13324
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13325
-e 's:$: $lt_compiler_flag:'`
13326
(eval echo "\"\$as_me:13326: $lt_compile\"" >&5)
13327
(eval "$lt_compile" 2>out/conftest.err)
13329
cat out/conftest.err >&5
13330
echo "$as_me:13330: \$? = $ac_status" >&5
13331
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13333
# The compiler can only warn and ignore the option if not recognized
13334
# So say no if there are warnings
13335
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13336
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13337
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13338
lt_cv_prog_compiler_c_o_CXX=yes
13343
# SGI C++ compiler will create directory out/ii_files/ for
13344
# template instantiation
13345
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13346
$rm out/* && rmdir out
13352
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13353
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13356
hard_links="nottested"
13357
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13358
# do not overwrite the value of need_locks provided by the user
13359
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13360
$as_echo_n "checking if we can lock with hard links... " >&6; }
13363
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13365
ln conftest.a conftest.b 2>&5 || hard_links=no
13366
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13367
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13368
$as_echo "$hard_links" >&6; }
13369
if test "$hard_links" = no; then
13370
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13371
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13378
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13379
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13381
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13384
# If we're using GNU nm, then we don't want the "-C" option.
13385
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13386
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13387
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'
13389
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'
13393
export_symbols_cmds_CXX="$ltdll_cmds"
13396
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'
13398
linux* | k*bsd*-gnu)
13399
link_all_deplibs_CXX=no
13402
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13405
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13407
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13408
$as_echo "$ld_shlibs_CXX" >&6; }
13409
test "$ld_shlibs_CXX" = no && can_build_shared=no
13412
# Do we need to explicitly link libc?
13414
case "x$archive_cmds_need_lc_CXX" in
13416
# Assume -lc should be added
13417
archive_cmds_need_lc_CXX=yes
13419
if test "$enable_shared" = yes && test "$GCC" = yes; then
13420
case $archive_cmds_CXX in
13422
# FIXME: we may have to deal with multi-command sequences.
13425
# Test whether the compiler implicitly links with -lc since on some
13426
# systems, -lgcc has to come before -lc. If gcc already passes -lc
13427
# to ld, don't add -lc before -lgcc.
13428
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13429
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13431
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434
(eval $ac_compile) 2>&5
13436
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437
(exit $ac_status); } 2>conftest.err; then
13440
libobjs=conftest.$ac_objext
13442
wl=$lt_prog_compiler_wl_CXX
13443
pic_flag=$lt_prog_compiler_pic_CXX
13449
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13450
allow_undefined_flag_CXX=
13451
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13452
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13454
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455
(exit $ac_status); }
13457
archive_cmds_need_lc_CXX=no
13459
archive_cmds_need_lc_CXX=yes
13461
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13463
cat conftest.err 1>&5
13466
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13467
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13474
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13475
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13476
library_names_spec=
13477
libname_spec='lib$name'
13481
postuninstall_cmds=
13485
shlibpath_overrides_runpath=unknown
13487
dynamic_linker="$host_os ld.so"
13488
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13490
need_lib_prefix=unknown
13491
hardcode_into_libs=no
13493
# when you set need_version to no, make sure it does not cause -set_version
13494
# flags to be left without arguments
13495
need_version=unknown
13500
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13501
shlibpath_var=LIBPATH
13503
# AIX 3 has no versioning support, so we append a major version to the name.
13504
soname_spec='${libname}${release}${shared_ext}$major'
13511
hardcode_into_libs=yes
13512
if test "$host_cpu" = ia64; then
13513
# AIX 5 supports IA64
13514
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13515
shlibpath_var=LD_LIBRARY_PATH
13517
# With GCC up to 2.95.x, collect2 would create an import file
13518
# for dependence libraries. The import file would start with
13519
# the line `#! .'. This would cause the generated library to
13520
# depend on `.', always an invalid library. This was fixed in
13521
# development snapshots of GCC prior to 3.0.
13523
aix4 | aix4.[01] | aix4.[01].*)
13524
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13526
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13529
can_build_shared=no
13533
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13534
# soname into executable. Probably we can add versioning support to
13535
# collect2, so additional links can be useful in future.
13536
if test "$aix_use_runtimelinking" = yes; then
13537
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
13538
# instead of lib<name>.a to let people know that these are not
13539
# typical AIX shared libraries.
13540
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542
# We preserve .a as extension for shared libraries through AIX4.2
13543
# and later when we are not doing run time linking.
13544
library_names_spec='${libname}${release}.a $libname.a'
13545
soname_spec='${libname}${release}${shared_ext}$major'
13547
shlibpath_var=LIBPATH
13552
library_names_spec='$libname.ixlibrary $libname.a'
13553
# Create ${libname}_ixlibrary.a entries in /sys/libs.
13554
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'
13558
library_names_spec='${libname}${shared_ext}'
13559
dynamic_linker="$host_os ld.so"
13560
shlibpath_var=LIBRARY_PATH
13566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567
soname_spec='${libname}${release}${shared_ext}$major'
13568
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13569
shlibpath_var=LD_LIBRARY_PATH
13570
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13571
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13572
# the default ld.so.conf also contains /usr/contrib/lib and
13573
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13574
# libtool to hard-code these into programs
13577
cygwin* | mingw* | pw32*)
13578
version_type=windows
13583
case $GCC,$host_os in
13584
yes,cygwin* | yes,mingw* | yes,pw32*)
13585
library_names_spec='$libname.dll.a'
13586
# DLL is installed to $(libdir)/../bin by postinstall_cmds
13587
postinstall_cmds='base_file=`basename \${file}`~
13588
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13589
dldir=$destdir/`dirname \$dlpath`~
13590
test -d \$dldir || mkdir -p \$dldir~
13591
$install_prog $dir/$dlname \$dldir/$dlname~
13592
chmod a+x \$dldir/$dlname'
13593
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13594
dlpath=$dir/\$dldll~
13596
shlibpath_overrides_runpath=yes
13600
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
13601
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13602
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13605
# MinGW DLLs use traditional 'lib' prefix
13606
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13607
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13608
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13609
# It is most probably a Windows format PATH printed by
13610
# mingw gcc, but we are running on Cygwin. Gcc prints its search
13611
# path with ; separators, and with drive letters. We can handle the
13612
# drive letters (cygwin fileutils understands them), so leave them,
13613
# especially as we might pass files found there to a mingw objdump,
13614
# which wouldn't understand a cygwinified path. Ahh.
13615
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13617
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13621
# pw32 DLLs use 'pw' prefix rather than 'lib'
13622
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13628
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13631
dynamic_linker='Win32 ld.exe'
13632
# FIXME: first we should search . and the directory the executable is in
13636
darwin* | rhapsody*)
13637
dynamic_linker="$host_os dyld"
13638
version_type=darwin
13641
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13642
soname_spec='${libname}${release}${major}$shared_ext'
13643
shlibpath_overrides_runpath=yes
13644
shlibpath_var=DYLD_LIBRARY_PATH
13645
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13647
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13654
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13655
soname_spec='${libname}${release}${shared_ext}$major'
13656
shlibpath_var=LD_LIBRARY_PATH
13663
freebsd* | dragonfly*)
13664
# DragonFly does not have aout. When/if they implement a new
13665
# versioning mechanism, adjust this.
13666
if test -x /usr/bin/objformat; then
13667
objformat=`/usr/bin/objformat`
13670
freebsd[123]*) objformat=aout ;;
13671
*) objformat=elf ;;
13674
version_type=freebsd-$objformat
13675
case $version_type in
13677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13682
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13686
shlibpath_var=LD_LIBRARY_PATH
13689
shlibpath_overrides_runpath=yes
13691
freebsd3.[01]* | freebsdelf3.[01]*)
13692
shlibpath_overrides_runpath=yes
13693
hardcode_into_libs=yes
13695
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13696
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13697
shlibpath_overrides_runpath=no
13698
hardcode_into_libs=yes
13700
*) # from 4.6 on, and DragonFly
13701
shlibpath_overrides_runpath=yes
13702
hardcode_into_libs=yes
13711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13712
soname_spec='${libname}${release}${shared_ext}$major'
13713
shlibpath_var=LD_LIBRARY_PATH
13714
hardcode_into_libs=yes
13717
hpux9* | hpux10* | hpux11*)
13718
# Give a soname corresponding to the major version so that dld.sl refuses to
13719
# link against other versions.
13726
hardcode_into_libs=yes
13727
dynamic_linker="$host_os dld.so"
13728
shlibpath_var=LD_LIBRARY_PATH
13729
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13731
soname_spec='${libname}${release}${shared_ext}$major'
13732
if test "X$HPUX_IA64_MODE" = X32; then
13733
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13735
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13737
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13741
hardcode_into_libs=yes
13742
dynamic_linker="$host_os dld.sl"
13743
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13744
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13746
soname_spec='${libname}${release}${shared_ext}$major'
13747
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13748
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13752
dynamic_linker="$host_os dld.sl"
13753
shlibpath_var=SHLIB_PATH
13754
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13755
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756
soname_spec='${libname}${release}${shared_ext}$major'
13759
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13760
postinstall_cmds='chmod 555 $lib'
13767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13768
soname_spec='${libname}${release}${shared_ext}$major'
13769
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13770
shlibpath_var=LD_LIBRARY_PATH
13771
shlibpath_overrides_runpath=no
13772
hardcode_into_libs=yes
13775
irix5* | irix6* | nonstopux*)
13777
nonstopux*) version_type=nonstopux ;;
13779
if test "$lt_cv_prog_gnu_ld" = yes; then
13787
soname_spec='${libname}${release}${shared_ext}$major'
13788
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13790
irix5* | nonstopux*)
13791
libsuff= shlibsuff=
13794
case $LD in # libtool.m4 will add one of these switches to LD
13795
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13796
libsuff= shlibsuff= libmagic=32-bit;;
13797
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13798
libsuff=32 shlibsuff=N32 libmagic=N32;;
13799
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13800
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13801
*) libsuff= shlibsuff= libmagic=never-match;;
13805
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13806
shlibpath_overrides_runpath=no
13807
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13808
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13809
hardcode_into_libs=yes
13812
# No shared lib support for Linux oldld, aout, or coff.
13813
linux*oldld* | linux*aout* | linux*coff*)
13817
# This must be Linux ELF.
13818
linux* | k*bsd*-gnu)
13822
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13823
soname_spec='${libname}${release}${shared_ext}$major'
13824
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13825
shlibpath_var=LD_LIBRARY_PATH
13826
shlibpath_overrides_runpath=no
13827
# This implies no fast_install, which is unacceptable.
13828
# Some rework will be needed to allow for fast_install
13829
# before this can be enabled.
13830
hardcode_into_libs=yes
13832
# find out which ABI we are using
13834
case "$host_cpu" in
13835
x86_64*|s390x*|powerpc64*)
13836
echo '#line 13836 "configure"' > conftest.$ac_ext
13837
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838
(eval $ac_compile) 2>&5
13840
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841
(exit $ac_status); }; then
13842
case `/usr/bin/file conftest.$ac_objext` in
13852
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13854
# Append ld.so.conf contents to the search path
13855
if test -f /etc/ld.so.conf; then
13856
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' ' '`
13857
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13860
# We used to test for /lib/ld.so.1 and disable shared libraries on
13861
# powerpc, because MkLinux only supported shared libraries with the
13862
# GNU dynamic linker. Since this was broken with cross compilers,
13863
# most powerpc-linux boxes support dynamic linking these days and
13864
# people can always --disable-shared, the test was removed, and we
13865
# assume the GNU/Linux dynamic linker is in use.
13866
dynamic_linker='GNU/Linux ld.so'
13873
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13875
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13876
dynamic_linker='NetBSD (a.out) ld.so'
13878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13879
soname_spec='${libname}${release}${shared_ext}$major'
13880
dynamic_linker='NetBSD ld.elf_so'
13882
shlibpath_var=LD_LIBRARY_PATH
13883
shlibpath_overrides_runpath=yes
13884
hardcode_into_libs=yes
13889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13890
shlibpath_var=LD_LIBRARY_PATH
13891
shlibpath_overrides_runpath=yes
13898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899
soname_spec='${libname}${release}${shared_ext}$major'
13900
shlibpath_var=LD_LIBRARY_PATH
13901
shlibpath_overrides_runpath=yes
13906
sys_lib_dlsearch_path_spec="/usr/lib"
13908
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13910
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13911
*) need_version=no ;;
13913
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13914
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13915
shlibpath_var=LD_LIBRARY_PATH
13916
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13918
openbsd2.[89] | openbsd2.[89].*)
13919
shlibpath_overrides_runpath=no
13922
shlibpath_overrides_runpath=yes
13926
shlibpath_overrides_runpath=yes
13931
libname_spec='$name'
13934
library_names_spec='$libname${shared_ext} $libname.a'
13935
dynamic_linker='OS/2 ld.exe'
13936
shlibpath_var=LIBPATH
13939
osf3* | osf4* | osf5*)
13943
soname_spec='${libname}${release}${shared_ext}$major'
13944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13945
shlibpath_var=LD_LIBRARY_PATH
13946
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13947
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959
soname_spec='${libname}${release}${shared_ext}$major'
13960
shlibpath_var=LD_LIBRARY_PATH
13961
shlibpath_overrides_runpath=yes
13962
hardcode_into_libs=yes
13963
# ldd complains unless libraries are executable
13964
postinstall_cmds='chmod +x $lib'
13969
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13970
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13971
shlibpath_var=LD_LIBRARY_PATH
13972
shlibpath_overrides_runpath=yes
13973
if test "$with_gnu_ld" = yes; then
13981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13982
soname_spec='${libname}${release}${shared_ext}$major'
13983
shlibpath_var=LD_LIBRARY_PATH
13984
case $host_vendor in
13986
shlibpath_overrides_runpath=no
13988
export_dynamic_flag_spec='${wl}-Blargedynsym'
13989
runpath_var=LD_RUN_PATH
13997
shlibpath_overrides_runpath=no
13998
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14004
if test -d /usr/nec ;then
14006
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14007
soname_spec='$libname${shared_ext}.$major'
14008
shlibpath_var=LD_LIBRARY_PATH
14012
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14013
version_type=freebsd-elf
14016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14017
soname_spec='${libname}${release}${shared_ext}$major'
14018
shlibpath_var=LD_LIBRARY_PATH
14019
hardcode_into_libs=yes
14020
if test "$with_gnu_ld" = yes; then
14021
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14022
shlibpath_overrides_runpath=no
14024
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14025
shlibpath_overrides_runpath=yes
14028
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14032
sys_lib_dlsearch_path_spec='/usr/lib'
14037
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14038
soname_spec='${libname}${release}${shared_ext}$major'
14039
shlibpath_var=LD_LIBRARY_PATH
14046
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14047
$as_echo "$dynamic_linker" >&6; }
14048
test "$dynamic_linker" = no && can_build_shared=no
14050
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14051
$as_echo_n "(cached) " >&6
14053
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14056
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14057
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14058
$as_echo_n "(cached) " >&6
14060
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14063
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14065
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14066
if test "$GCC" = yes; then
14067
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14070
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14071
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14072
hardcode_action_CXX=
14073
if test -n "$hardcode_libdir_flag_spec_CXX" || \
14074
test -n "$runpath_var_CXX" || \
14075
test "X$hardcode_automatic_CXX" = "Xyes" ; then
14077
# We can hardcode non-existant directories.
14078
if test "$hardcode_direct_CXX" != no &&
14079
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14080
# have to relink, otherwise we might link with an installed library
14081
# when we should be linking with a yet-to-be-installed one
14082
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14083
test "$hardcode_minus_L_CXX" != no; then
14084
# Linking always hardcodes the temporary library directory.
14085
hardcode_action_CXX=relink
14087
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14088
hardcode_action_CXX=immediate
14091
# We cannot hardcode anything, or else we can only hardcode existing
14093
hardcode_action_CXX=unsupported
14095
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14096
$as_echo "$hardcode_action_CXX" >&6; }
14098
if test "$hardcode_action_CXX" = relink; then
14099
# Fast installation is not supported
14100
enable_fast_install=no
14101
elif test "$shlibpath_overrides_runpath" = yes ||
14102
test "$enable_shared" = no; then
14103
# Fast installation is not necessary
14104
enable_fast_install=needless
14108
# The else clause should only fire when bootstrapping the
14109
# libtool distribution, otherwise you forgot to ship ltmain.sh
14110
# with your package, and you will get complaints that there are
14111
# no rules to generate ltmain.sh.
14112
if test -f "$ltmain"; then
14113
# See if we are running on zsh, and set the options which allow our commands through
14114
# without removal of \ escapes.
14115
if test -n "${ZSH_VERSION+set}" ; then
14116
setopt NO_GLOB_SUBST
14118
# Now quote all the things that may contain metacharacters while being
14119
# careful not to overquote the AC_SUBSTed values. We take copies of the
14120
# variables and quote the copies for generation of the libtool script.
14121
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14123
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14124
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14125
deplibs_check_method reload_flag reload_cmds need_locks \
14126
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14127
lt_cv_sys_global_symbol_to_c_name_address \
14128
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14129
old_postinstall_cmds old_postuninstall_cmds \
14133
lt_prog_compiler_wl_CXX \
14134
lt_prog_compiler_pic_CXX \
14135
lt_prog_compiler_static_CXX \
14136
lt_prog_compiler_no_builtin_flag_CXX \
14137
export_dynamic_flag_spec_CXX \
14138
thread_safe_flag_spec_CXX \
14139
whole_archive_flag_spec_CXX \
14140
enable_shared_with_static_runtimes_CXX \
14141
old_archive_cmds_CXX \
14142
old_archive_from_new_cmds_CXX \
14143
predep_objects_CXX \
14144
postdep_objects_CXX \
14147
compiler_lib_search_path_CXX \
14148
compiler_lib_search_dirs_CXX \
14150
archive_expsym_cmds_CXX \
14151
postinstall_cmds_CXX \
14152
postuninstall_cmds_CXX \
14153
old_archive_from_expsyms_cmds_CXX \
14154
allow_undefined_flag_CXX \
14155
no_undefined_flag_CXX \
14156
export_symbols_cmds_CXX \
14157
hardcode_libdir_flag_spec_CXX \
14158
hardcode_libdir_flag_spec_ld_CXX \
14159
hardcode_libdir_separator_CXX \
14160
hardcode_automatic_CXX \
14162
module_expsym_cmds_CXX \
14163
lt_cv_prog_compiler_c_o_CXX \
14164
fix_srcfile_path_CXX \
14165
exclude_expsyms_CXX \
14166
include_expsyms_CXX; do
14169
old_archive_cmds_CXX | \
14170
old_archive_from_new_cmds_CXX | \
14171
archive_cmds_CXX | \
14172
archive_expsym_cmds_CXX | \
14173
module_cmds_CXX | \
14174
module_expsym_cmds_CXX | \
14175
old_archive_from_expsyms_cmds_CXX | \
14176
export_symbols_cmds_CXX | \
14177
extract_expsyms_cmds | reload_cmds | finish_cmds | \
14178
postinstall_cmds | postuninstall_cmds | \
14179
old_postinstall_cmds | old_postuninstall_cmds | \
14180
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14181
# Double-quote double-evaled strings.
14182
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14185
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14191
*'\$0 --fallback-echo"')
14192
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14198
cat <<__EOF__ >> "$cfgfile"
14199
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14201
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14203
# Shell to use when invoking shell scripts.
14206
# Whether or not to build shared libraries.
14207
build_libtool_libs=$enable_shared
14209
# Whether or not to build static libraries.
14210
build_old_libs=$enable_static
14212
# Whether or not to add -lc for building shared libraries.
14213
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14215
# Whether or not to disallow shared libs when runtime libs are static
14216
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14218
# Whether or not to optimize for fast installation.
14219
fast_install=$enable_fast_install
14222
host_alias=$host_alias
14226
# The build system.
14227
build_alias=$build_alias
14231
# An echo program that does not interpret backslashes.
14236
AR_FLAGS=$lt_AR_FLAGS
14241
# LTCC compiler flags.
14242
LTCFLAGS=$lt_LTCFLAGS
14244
# A language-specific compiler.
14245
CC=$lt_compiler_CXX
14247
# Is the compiler the GNU C compiler?
14253
# The linker used to build libraries.
14256
# Whether we need hard or soft links.
14259
# A BSD-compatible nm program.
14262
# A symbol stripping program
14265
# Used to examine libraries when file_magic_cmd begins "file"
14266
MAGIC_CMD=$MAGIC_CMD
14268
# Used on cygwin: DLL creation program.
14271
# Used on cygwin: object dumper.
14274
# Used on cygwin: assembler.
14277
# The name of the directory that contains temporary libtool files.
14280
# How to create reloadable object files.
14281
reload_flag=$lt_reload_flag
14282
reload_cmds=$lt_reload_cmds
14284
# How to pass a linker flag through the compiler.
14285
wl=$lt_lt_prog_compiler_wl_CXX
14287
# Object file suffix (normally "o").
14288
objext="$ac_objext"
14290
# Old archive suffix (normally "a").
14293
# Shared library suffix (normally ".so").
14294
shrext_cmds='$shrext_cmds'
14296
# Executable file suffix (normally "").
14299
# Additional compiler flags for building library objects.
14300
pic_flag=$lt_lt_prog_compiler_pic_CXX
14303
# What is the maximum length of a command?
14304
max_cmd_len=$lt_cv_sys_max_cmd_len
14306
# Does compiler simultaneously support -c and -o options?
14307
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14309
# Must we lock files when doing compilation?
14310
need_locks=$lt_need_locks
14312
# Do we need the lib prefix for modules?
14313
need_lib_prefix=$need_lib_prefix
14315
# Do we need a version for libraries?
14316
need_version=$need_version
14318
# Whether dlopen is supported.
14319
dlopen_support=$enable_dlopen
14321
# Whether dlopen of programs is supported.
14322
dlopen_self=$enable_dlopen_self
14324
# Whether dlopen of statically linked programs is supported.
14325
dlopen_self_static=$enable_dlopen_self_static
14327
# Compiler flag to prevent dynamic linking.
14328
link_static_flag=$lt_lt_prog_compiler_static_CXX
14330
# Compiler flag to turn off builtin functions.
14331
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14333
# Compiler flag to allow reflexive dlopens.
14334
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14336
# Compiler flag to generate shared objects directly from archives.
14337
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14339
# Compiler flag to generate thread-safe objects.
14340
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14342
# Library versioning type.
14343
version_type=$version_type
14345
# Format of library name prefix.
14346
libname_spec=$lt_libname_spec
14348
# List of archive names. First name is the real one, the rest are links.
14349
# The last name is the one that the linker finds with -lNAME.
14350
library_names_spec=$lt_library_names_spec
14352
# The coded name of the library, if different from the real name.
14353
soname_spec=$lt_soname_spec
14355
# Commands used to build and install an old-style archive.
14357
old_archive_cmds=$lt_old_archive_cmds_CXX
14358
old_postinstall_cmds=$lt_old_postinstall_cmds
14359
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14361
# Create an old-style archive from a shared archive.
14362
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14364
# Create a temporary old-style archive to link instead of a shared archive.
14365
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14367
# Commands used to build and install a shared archive.
14368
archive_cmds=$lt_archive_cmds_CXX
14369
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14370
postinstall_cmds=$lt_postinstall_cmds
14371
postuninstall_cmds=$lt_postuninstall_cmds
14373
# Commands used to build a loadable module (assumed same as above if empty)
14374
module_cmds=$lt_module_cmds_CXX
14375
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14377
# Commands to strip libraries.
14378
old_striplib=$lt_old_striplib
14379
striplib=$lt_striplib
14381
# Dependencies to place before the objects being linked to create a
14383
predep_objects=$lt_predep_objects_CXX
14385
# Dependencies to place after the objects being linked to create a
14387
postdep_objects=$lt_postdep_objects_CXX
14389
# Dependencies to place before the objects being linked to create a
14391
predeps=$lt_predeps_CXX
14393
# Dependencies to place after the objects being linked to create a
14395
postdeps=$lt_postdeps_CXX
14397
# The directories searched by this compiler when creating a shared
14399
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14401
# The library search path used internally by the compiler when linking
14402
# a shared library.
14403
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14405
# Method to check whether dependent libraries are shared objects.
14406
deplibs_check_method=$lt_deplibs_check_method
14408
# Command to use when deplibs_check_method == file_magic.
14409
file_magic_cmd=$lt_file_magic_cmd
14411
# Flag that allows shared libraries with undefined symbols to be built.
14412
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14414
# Flag that forces no undefined symbols.
14415
no_undefined_flag=$lt_no_undefined_flag_CXX
14417
# Commands used to finish a libtool library installation in a directory.
14418
finish_cmds=$lt_finish_cmds
14420
# Same as above, but a single script fragment to be evaled but not shown.
14421
finish_eval=$lt_finish_eval
14423
# Take the output of nm and produce a listing of raw symbols and C names.
14424
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14426
# Transform the output of nm in a proper C declaration
14427
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14429
# Transform the output of nm in a C name address pair
14430
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14432
# This is the shared library runtime path variable.
14433
runpath_var=$runpath_var
14435
# This is the shared library path variable.
14436
shlibpath_var=$shlibpath_var
14438
# Is shlibpath searched before the hard-coded library search path?
14439
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14441
# How to hardcode a shared library path into an executable.
14442
hardcode_action=$hardcode_action_CXX
14444
# Whether we should hardcode library paths into libraries.
14445
hardcode_into_libs=$hardcode_into_libs
14447
# Flag to hardcode \$libdir into a binary during linking.
14448
# This must work even if \$libdir does not exist.
14449
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14451
# If ld is used when linking, flag to hardcode \$libdir into
14452
# a binary during linking. This must work even if \$libdir does
14454
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14456
# Whether we need a single -rpath flag with a separated argument.
14457
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14459
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14460
# resulting binary.
14461
hardcode_direct=$hardcode_direct_CXX
14463
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14464
# resulting binary.
14465
hardcode_minus_L=$hardcode_minus_L_CXX
14467
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14468
# the resulting binary.
14469
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14471
# Set to yes if building a shared library automatically hardcodes DIR into the library
14472
# and all subsequent libraries and executables linked against it.
14473
hardcode_automatic=$hardcode_automatic_CXX
14475
# Variables whose values should be saved in libtool wrapper scripts and
14476
# restored at relink time.
14477
variables_saved_for_relink="$variables_saved_for_relink"
14479
# Whether libtool must link a program against all its dependency libraries.
14480
link_all_deplibs=$link_all_deplibs_CXX
14482
# Compile-time system search path for libraries
14483
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14485
# Run-time system search path for libraries
14486
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14488
# Fix the shell variable \$srcfile for the compiler.
14489
fix_srcfile_path=$lt_fix_srcfile_path
14491
# Set to yes if exported symbols are required.
14492
always_export_symbols=$always_export_symbols_CXX
14494
# The commands to list exported symbols.
14495
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14497
# The commands to extract the exported symbol list from a shared archive.
14498
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14500
# Symbols that should not be listed in the preloaded symbols.
14501
exclude_expsyms=$lt_exclude_expsyms_CXX
14503
# Symbols that must always be exported.
14504
include_expsyms=$lt_include_expsyms_CXX
14506
# ### END LIBTOOL TAG CONFIG: $tagname
14512
# If there is no Makefile yet, we rely on a make rule to execute
14513
# `config.status --recheck' to rerun these tests and create the
14514
# libtool script then.
14515
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14516
if test -f "$ltmain_in"; then
14517
test -f Makefile && make "$ltmain"
14523
ac_cpp='$CPP $CPPFLAGS'
14524
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14525
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14526
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14532
with_gnu_ldcxx=$with_gnu_ld
14533
with_gnu_ld=$lt_save_with_gnu_ld
14534
lt_cv_path_LDCXX=$lt_cv_path_LD
14535
lt_cv_path_LD=$lt_save_path_LD
14536
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14537
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14545
if test -n "$F77" && test "X$F77" != "Xno"; then
14548
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14549
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14550
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14553
archive_cmds_need_lc_F77=no
14554
allow_undefined_flag_F77=
14555
always_export_symbols_F77=no
14556
archive_expsym_cmds_F77=
14557
export_dynamic_flag_spec_F77=
14558
hardcode_direct_F77=no
14559
hardcode_libdir_flag_spec_F77=
14560
hardcode_libdir_flag_spec_ld_F77=
14561
hardcode_libdir_separator_F77=
14562
hardcode_minus_L_F77=no
14563
hardcode_automatic_F77=no
14565
module_expsym_cmds_F77=
14566
link_all_deplibs_F77=unknown
14567
old_archive_cmds_F77=$old_archive_cmds
14568
no_undefined_flag_F77=
14569
whole_archive_flag_spec_F77=
14570
enable_shared_with_static_runtimes_F77=no
14572
# Source file extension for f77 test sources.
14575
# Object file extension for compiled f77 test sources.
14579
# Code to be used in simple compile tests
14580
lt_simple_compile_test_code="\
14586
# Code to be used in simple link tests
14587
lt_simple_link_test_code="\
14592
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14594
# If no C compiler was specified, use CC.
14597
# If no C compiler flags were specified, use CFLAGS.
14598
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14600
# Allow CC to be a program name with arguments.
14604
# save warnings/boilerplate of simple test code
14605
ac_outfile=conftest.$ac_objext
14606
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14607
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14608
_lt_compiler_boilerplate=`cat conftest.err`
14611
ac_outfile=conftest.$ac_objext
14612
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14613
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14614
_lt_linker_boilerplate=`cat conftest.err`
14618
# Allow CC to be a program name with arguments.
14623
for cc_temp in $compiler""; do
14625
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14626
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14631
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14634
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14635
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14636
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14637
$as_echo "$can_build_shared" >&6; }
14639
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14640
$as_echo_n "checking whether to build shared libraries... " >&6; }
14641
test "$can_build_shared" = "no" && enable_shared=no
14643
# On AIX, shared libraries and static libraries use the same namespace, and
14644
# are all built from PIC.
14647
test "$enable_shared" = yes && enable_static=no
14648
if test -n "$RANLIB"; then
14649
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14650
postinstall_cmds='$RANLIB $lib'
14654
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14655
test "$enable_shared" = yes && enable_static=no
14659
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14660
$as_echo "$enable_shared" >&6; }
14662
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14663
$as_echo_n "checking whether to build static libraries... " >&6; }
14664
# Make sure either enable_shared or enable_static is yes.
14665
test "$enable_shared" = yes || enable_static=yes
14666
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14667
$as_echo "$enable_static" >&6; }
14672
lt_prog_compiler_wl_F77=
14673
lt_prog_compiler_pic_F77=
14674
lt_prog_compiler_static_F77=
14676
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14677
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14679
if test "$GCC" = yes; then
14680
lt_prog_compiler_wl_F77='-Wl,'
14681
lt_prog_compiler_static_F77='-static'
14685
# All AIX code is PIC.
14686
if test "$host_cpu" = ia64; then
14687
# AIX 5 now supports IA64 processor
14688
lt_prog_compiler_static_F77='-Bstatic'
14693
# FIXME: we need at least 68020 code to build shared libraries, but
14694
# adding the `-m68020' flag to GCC prevents building anything better,
14696
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14699
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14700
# PIC is the default for these OSes.
14703
mingw* | cygwin* | pw32* | os2*)
14704
# This hack is so that the source file can tell whether it is being
14705
# built for inclusion in a dll (and should export symbols for example).
14706
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14707
# (--disable-auto-import) libraries
14708
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14711
darwin* | rhapsody*)
14712
# PIC is the default on this platform
14713
# Common symbols not allowed in MH_DYLIB files
14714
lt_prog_compiler_pic_F77='-fno-common'
14718
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14719
# Instead, we relocate shared libraries at runtime.
14723
# Just because we use GCC doesn't mean we suddenly get shared libraries
14724
# on systems that don't support them.
14725
lt_prog_compiler_can_build_shared_F77=no
14730
if test -d /usr/nec; then
14731
lt_prog_compiler_pic_F77=-Kconform_pic
14736
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14737
# not for PA HP-UX.
14743
lt_prog_compiler_pic_F77='-fPIC'
14749
lt_prog_compiler_pic_F77='-fPIC'
14753
# PORTME Check for flag to pass linker flags through the system compiler.
14756
lt_prog_compiler_wl_F77='-Wl,'
14757
if test "$host_cpu" = ia64; then
14758
# AIX 5 now supports IA64 processor
14759
lt_prog_compiler_static_F77='-Bstatic'
14761
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14765
# PIC is the default on this platform
14766
# Common symbols not allowed in MH_DYLIB files
14767
case $cc_basename in
14769
lt_prog_compiler_pic_F77='-qnocommon'
14770
lt_prog_compiler_wl_F77='-Wl,'
14775
mingw* | cygwin* | pw32* | os2*)
14776
# This hack is so that the source file can tell whether it is being
14777
# built for inclusion in a dll (and should export symbols for example).
14778
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14781
hpux9* | hpux10* | hpux11*)
14782
lt_prog_compiler_wl_F77='-Wl,'
14783
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14784
# not for PA HP-UX.
14790
lt_prog_compiler_pic_F77='+Z'
14793
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14794
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14797
irix5* | irix6* | nonstopux*)
14798
lt_prog_compiler_wl_F77='-Wl,'
14799
# PIC (with -KPIC) is the default.
14800
lt_prog_compiler_static_F77='-non_shared'
14804
lt_prog_compiler_pic_F77='-KPIC'
14805
lt_prog_compiler_static_F77='-Bstatic'
14808
linux* | k*bsd*-gnu)
14809
case $cc_basename in
14811
lt_prog_compiler_wl_F77='-Wl,'
14812
lt_prog_compiler_pic_F77='-KPIC'
14813
lt_prog_compiler_static_F77='-static'
14815
pgcc* | pgf77* | pgf90* | pgf95*)
14816
# Portland Group compilers (*not* the Pentium gcc compiler,
14817
# which looks to be a dead project)
14818
lt_prog_compiler_wl_F77='-Wl,'
14819
lt_prog_compiler_pic_F77='-fpic'
14820
lt_prog_compiler_static_F77='-Bstatic'
14823
lt_prog_compiler_wl_F77='-Wl,'
14824
# All Alpha code is PIC.
14825
lt_prog_compiler_static_F77='-non_shared'
14828
case `$CC -V 2>&1 | sed 5q` in
14831
lt_prog_compiler_pic_F77='-KPIC'
14832
lt_prog_compiler_static_F77='-Bstatic'
14833
lt_prog_compiler_wl_F77='-Wl,'
14836
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14837
lt_prog_compiler_pic_F77='-KPIC'
14838
lt_prog_compiler_static_F77='-Bstatic'
14839
lt_prog_compiler_wl_F77=''
14846
osf3* | osf4* | osf5*)
14847
lt_prog_compiler_wl_F77='-Wl,'
14848
# All OSF/1 code is PIC.
14849
lt_prog_compiler_static_F77='-non_shared'
14853
lt_prog_compiler_static_F77='-non_shared'
14857
lt_prog_compiler_pic_F77='-KPIC'
14858
lt_prog_compiler_static_F77='-Bstatic'
14859
case $cc_basename in
14860
f77* | f90* | f95*)
14861
lt_prog_compiler_wl_F77='-Qoption ld ';;
14863
lt_prog_compiler_wl_F77='-Wl,';;
14868
lt_prog_compiler_wl_F77='-Qoption ld '
14869
lt_prog_compiler_pic_F77='-PIC'
14870
lt_prog_compiler_static_F77='-Bstatic'
14873
sysv4 | sysv4.2uw2* | sysv4.3*)
14874
lt_prog_compiler_wl_F77='-Wl,'
14875
lt_prog_compiler_pic_F77='-KPIC'
14876
lt_prog_compiler_static_F77='-Bstatic'
14880
if test -d /usr/nec ;then
14881
lt_prog_compiler_pic_F77='-Kconform_pic'
14882
lt_prog_compiler_static_F77='-Bstatic'
14886
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14887
lt_prog_compiler_wl_F77='-Wl,'
14888
lt_prog_compiler_pic_F77='-KPIC'
14889
lt_prog_compiler_static_F77='-Bstatic'
14893
lt_prog_compiler_wl_F77='-Wl,'
14894
lt_prog_compiler_can_build_shared_F77=no
14898
lt_prog_compiler_pic_F77='-pic'
14899
lt_prog_compiler_static_F77='-Bstatic'
14903
lt_prog_compiler_can_build_shared_F77=no
14908
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14909
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14912
# Check to make sure the PIC flag actually works.
14914
if test -n "$lt_prog_compiler_pic_F77"; then
14916
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14917
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14918
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14919
$as_echo_n "(cached) " >&6
14921
lt_cv_prog_compiler_pic_works_F77=no
14922
ac_outfile=conftest.$ac_objext
14923
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14924
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14925
# Insert the option either (1) after the last *FLAGS variable, or
14926
# (2) before a word containing "conftest.", or (3) at the end.
14927
# Note that $ac_compile itself does not contain backslashes and begins
14928
# with a dollar sign (not a hyphen), so the echo should work correctly.
14929
# The option is referenced via a variable to avoid confusing sed.
14930
lt_compile=`echo "$ac_compile" | $SED \
14931
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14932
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14933
-e 's:$: $lt_compiler_flag:'`
14934
(eval echo "\"\$as_me:14934: $lt_compile\"" >&5)
14935
(eval "$lt_compile" 2>conftest.err)
14937
cat conftest.err >&5
14938
echo "$as_me:14938: \$? = $ac_status" >&5
14939
if (exit $ac_status) && test -s "$ac_outfile"; then
14940
# The compiler can only warn and ignore the option if not recognized
14941
# So say no if there are warnings other than the usual output.
14942
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14943
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14944
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14945
lt_cv_prog_compiler_pic_works_F77=yes
14951
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14952
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14954
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14955
case $lt_prog_compiler_pic_F77 in
14957
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14960
lt_prog_compiler_pic_F77=
14961
lt_prog_compiler_can_build_shared_F77=no
14966
# For platforms which do not support PIC, -DPIC is meaningless:
14968
lt_prog_compiler_pic_F77=
14971
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14976
# Check to make sure the static flag actually works.
14978
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14979
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14980
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14981
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14982
$as_echo_n "(cached) " >&6
14984
lt_cv_prog_compiler_static_works_F77=no
14985
save_LDFLAGS="$LDFLAGS"
14986
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14987
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14988
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14989
# The linker can only warn and ignore the option if not recognized
14990
# So say no if there are warnings
14991
if test -s conftest.err; then
14992
# Append any errors to the config.log.
14993
cat conftest.err 1>&5
14994
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14995
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14996
if diff conftest.exp conftest.er2 >/dev/null; then
14997
lt_cv_prog_compiler_static_works_F77=yes
15000
lt_cv_prog_compiler_static_works_F77=yes
15004
LDFLAGS="$save_LDFLAGS"
15007
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15008
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
15010
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15013
lt_prog_compiler_static_F77=
15017
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15018
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15019
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15020
$as_echo_n "(cached) " >&6
15022
lt_cv_prog_compiler_c_o_F77=no
15023
$rm -r conftest 2>/dev/null
15027
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15029
lt_compiler_flag="-o out/conftest2.$ac_objext"
15030
# Insert the option either (1) after the last *FLAGS variable, or
15031
# (2) before a word containing "conftest.", or (3) at the end.
15032
# Note that $ac_compile itself does not contain backslashes and begins
15033
# with a dollar sign (not a hyphen), so the echo should work correctly.
15034
lt_compile=`echo "$ac_compile" | $SED \
15035
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15036
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15037
-e 's:$: $lt_compiler_flag:'`
15038
(eval echo "\"\$as_me:15038: $lt_compile\"" >&5)
15039
(eval "$lt_compile" 2>out/conftest.err)
15041
cat out/conftest.err >&5
15042
echo "$as_me:15042: \$? = $ac_status" >&5
15043
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15045
# The compiler can only warn and ignore the option if not recognized
15046
# So say no if there are warnings
15047
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15048
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15049
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15050
lt_cv_prog_compiler_c_o_F77=yes
15055
# SGI C++ compiler will create directory out/ii_files/ for
15056
# template instantiation
15057
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15058
$rm out/* && rmdir out
15064
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15065
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15068
hard_links="nottested"
15069
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15070
# do not overwrite the value of need_locks provided by the user
15071
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15072
$as_echo_n "checking if we can lock with hard links... " >&6; }
15075
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15077
ln conftest.a conftest.b 2>&5 || hard_links=no
15078
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15079
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15080
$as_echo "$hard_links" >&6; }
15081
if test "$hard_links" = no; then
15082
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15083
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15090
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15091
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15094
allow_undefined_flag_F77=
15095
enable_shared_with_static_runtimes_F77=no
15097
archive_expsym_cmds_F77=
15098
old_archive_From_new_cmds_F77=
15099
old_archive_from_expsyms_cmds_F77=
15100
export_dynamic_flag_spec_F77=
15101
whole_archive_flag_spec_F77=
15102
thread_safe_flag_spec_F77=
15103
hardcode_libdir_flag_spec_F77=
15104
hardcode_libdir_flag_spec_ld_F77=
15105
hardcode_libdir_separator_F77=
15106
hardcode_direct_F77=no
15107
hardcode_minus_L_F77=no
15108
hardcode_shlibpath_var_F77=unsupported
15109
link_all_deplibs_F77=unknown
15110
hardcode_automatic_F77=no
15112
module_expsym_cmds_F77=
15113
always_export_symbols_F77=no
15114
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15115
# include_expsyms should be a list of space-separated symbols to be *always*
15116
# included in the symbol list
15117
include_expsyms_F77=
15118
# exclude_expsyms can be an extended regexp of symbols to exclude
15119
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15120
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15121
# as well as any symbol that contains `d'.
15122
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15123
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15124
# platforms (ab)use it in PIC code, but their linkers get confused if
15125
# the symbol is explicitly referenced. Since portable code cannot
15126
# rely on this symbol name, it's probably fine to never include it in
15127
# preloaded symbol tables.
15128
# Exclude shared library initialization/finalization symbols.
15129
extract_expsyms_cmds=
15130
# Just being paranoid about ensuring that cc_basename is set.
15131
for cc_temp in $compiler""; do
15133
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15134
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15139
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15142
cygwin* | mingw* | pw32*)
15143
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15144
# When not using gcc, we currently assume that we are using
15145
# Microsoft Visual C++.
15146
if test "$GCC" != yes; then
15151
# we just hope/assume this is gcc and not c89 (= MSVC++)
15160
if test "$with_gnu_ld" = yes; then
15161
# If archive_cmds runs LD, not CC, wlarc should be empty
15164
# Set some defaults for GNU ld with shared library support. These
15165
# are reset later if shared libraries are not supported. Putting them
15166
# here allows them to be overridden if necessary.
15167
runpath_var=LD_RUN_PATH
15168
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15169
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15170
# ancient GNU ld didn't support --whole-archive et. al.
15171
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15172
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15174
whole_archive_flag_spec_F77=
15176
supports_anon_versioning=no
15177
case `$LD -v 2>/dev/null` in
15178
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15179
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15180
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15181
*\ 2.11.*) ;; # other 2.11 versions
15182
*) supports_anon_versioning=yes ;;
15185
# See if GNU ld supports shared libraries.
15188
# On AIX/PPC, the GNU linker is very broken
15189
if test "$host_cpu" != ia64; then
15193
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15194
*** to be unable to reliably create shared libraries on AIX.
15195
*** Therefore, libtool is disabling shared libraries support. If you
15196
*** really care for shared libraries, you may want to modify your PATH
15197
*** so that a non-GNU linker is found, and then restart.
15204
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)'
15205
hardcode_libdir_flag_spec_F77='-L$libdir'
15206
hardcode_minus_L_F77=yes
15208
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15209
# that the semantics of dynamic libraries on AmigaOS, at least up
15210
# to version 4, is to share data among multiple programs linked
15211
# with the same dynamic library. Since this doesn't match the
15212
# behavior of shared libraries on other platforms, we can't use
15218
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15219
allow_undefined_flag_F77=unsupported
15220
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15221
# support --undefined. This deserves some investigation. FIXME
15222
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15228
cygwin* | mingw* | pw32*)
15229
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15230
# as there is no search path for DLLs.
15231
hardcode_libdir_flag_spec_F77='-L$libdir'
15232
allow_undefined_flag_F77=unsupported
15233
always_export_symbols_F77=no
15234
enable_shared_with_static_runtimes_F77=yes
15235
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15237
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15238
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15239
# If the export-symbols file already is a .def file (1st line
15240
# is EXPORTS), use it as is; otherwise, prepend...
15241
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15242
cp $export_symbols $output_objdir/$soname.def;
15244
echo EXPORTS > $output_objdir/$soname.def;
15245
cat $export_symbols >> $output_objdir/$soname.def;
15247
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15254
hardcode_direct_F77=no
15255
hardcode_shlibpath_var_F77=no
15256
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15257
export_dynamic_flag_spec_F77='${wl}-E'
15258
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15259
# Instead, shared libraries are loaded at an image base (0x10000000 by
15260
# default) and relocated if they conflict, which is a slow very memory
15261
# consuming and fragmenting process. To avoid this, we pick a random,
15262
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15263
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
15264
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'
15265
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'
15268
gnu* | linux* | k*bsd*-gnu)
15269
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15271
case $cc_basename,$host_cpu in
15272
pgcc*) # Portland Group C compiler
15273
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'
15274
tmp_addflag=' $pic_flag'
15276
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15277
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'
15278
tmp_addflag=' $pic_flag -Mnomain' ;;
15279
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15280
tmp_addflag=' -i_dynamic' ;;
15281
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15282
tmp_addflag=' -i_dynamic -nofor_main' ;;
15283
ifc* | ifort*) # Intel Fortran compiler
15284
tmp_addflag=' -nofor_main' ;;
15286
case `$CC -V 2>&1 | sed 5q` in
15287
*Sun\ C*) # Sun C 5.9
15288
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'
15289
tmp_sharedflag='-G' ;;
15290
*Sun\ F*) # Sun Fortran 8.3
15291
tmp_sharedflag='-G' ;;
15293
tmp_sharedflag='-shared' ;;
15295
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15297
if test $supports_anon_versioning = yes; then
15298
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15299
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15300
$echo "local: *; };" >> $output_objdir/$libname.ver~
15301
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15303
link_all_deplibs_F77=no
15310
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15311
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15314
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15315
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 $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15324
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15325
*** create shared libraries on Solaris systems. Therefore, libtool
15326
*** is disabling shared libraries support. We urge you to upgrade GNU
15327
*** binutils to release 2.9.1 or newer. Another option is to modify
15328
*** your PATH or compiler configuration so that the native linker is
15329
*** used, and then restart.
15332
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15333
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15334
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15340
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15341
case `$LD -v 2>&1` in
15342
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15346
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15347
*** reliably create shared libraries on SCO systems. Therefore, libtool
15348
*** is disabling shared libraries support. We urge you to upgrade GNU
15349
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15350
*** your PATH or compiler configuration so that the native linker is
15351
*** used, and then restart.
15356
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15357
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15358
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15359
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15368
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15370
hardcode_direct_F77=yes
15371
hardcode_shlibpath_var_F77=no
15375
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15376
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15377
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15384
if test "$ld_shlibs_F77" = no; then
15386
hardcode_libdir_flag_spec_F77=
15387
export_dynamic_flag_spec_F77=
15388
whole_archive_flag_spec_F77=
15391
# PORTME fill in a description of your system's linker (not GNU ld)
15394
allow_undefined_flag_F77=unsupported
15395
always_export_symbols_F77=yes
15396
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'
15397
# Note: this linker hardcodes the directories in LIBPATH if there
15398
# are no directories specified by -L.
15399
hardcode_minus_L_F77=yes
15400
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15401
# Neither direct hardcoding nor static linking is supported with a
15403
hardcode_direct_F77=unsupported
15408
if test "$host_cpu" = ia64; then
15409
# On IA64, the linker does run time linking by default, so we don't
15410
# have to do anything special.
15411
aix_use_runtimelinking=no
15412
exp_sym_flag='-Bexport'
15415
# If we're using GNU nm, then we don't want the "-C" option.
15416
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15417
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15418
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'
15420
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'
15422
aix_use_runtimelinking=no
15424
# Test if we are trying to use run time linking or normal
15425
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15426
# need to do runtime linking.
15427
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15428
for ld_flag in $LDFLAGS; do
15429
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15430
aix_use_runtimelinking=yes
15437
exp_sym_flag='-bexport'
15438
no_entry_flag='-bnoentry'
15441
# When large executables or shared objects are built, AIX ld can
15442
# have problems creating the table of contents. If linking a library
15443
# or program results in "error TOC overflow" add -mminimal-toc to
15444
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15445
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15447
archive_cmds_F77=''
15448
hardcode_direct_F77=yes
15449
hardcode_libdir_separator_F77=':'
15450
link_all_deplibs_F77=yes
15452
if test "$GCC" = yes; then
15453
case $host_os in aix4.[012]|aix4.[012].*)
15454
# We only want to do this on AIX 4.2 and lower, the check
15455
# below for broken collect2 doesn't work under 4.3+
15456
collect2name=`${CC} -print-prog-name=collect2`
15457
if test -f "$collect2name" && \
15458
strings "$collect2name" | grep resolve_lib_name >/dev/null
15460
# We have reworked collect2
15463
# We have old collect2
15464
hardcode_direct_F77=unsupported
15465
# It fails to find uninstalled libraries when the uninstalled
15466
# path is not listed in the libpath. Setting hardcode_minus_L
15467
# to unsupported forces relinking
15468
hardcode_minus_L_F77=yes
15469
hardcode_libdir_flag_spec_F77='-L$libdir'
15470
hardcode_libdir_separator_F77=
15474
shared_flag='-shared'
15475
if test "$aix_use_runtimelinking" = yes; then
15476
shared_flag="$shared_flag "'${wl}-G'
15480
if test "$host_cpu" = ia64; then
15481
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15482
# chokes on -Wl,-G. The following line is correct:
15485
if test "$aix_use_runtimelinking" = yes; then
15486
shared_flag='${wl}-G'
15488
shared_flag='${wl}-bM:SRE'
15493
# It seems that -bexpall does not export symbols beginning with
15494
# underscore (_), so it is better to generate a list of symbols to export.
15495
always_export_symbols_F77=yes
15496
if test "$aix_use_runtimelinking" = yes; then
15497
# Warning - without using the other runtime loading flags (-brtl),
15498
# -berok will link without error, but may produce a broken library.
15499
allow_undefined_flag_F77='-berok'
15500
# Determine the default libpath from the value encoded in an empty executable.
15501
cat >conftest.$ac_ext <<_ACEOF
15506
rm -f conftest.$ac_objext conftest$ac_exeext
15507
if { (ac_try="$ac_link"
15508
case "(($ac_try" in
15509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510
*) ac_try_echo=$ac_try;;
15512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15513
$as_echo "$ac_try_echo") >&5
15514
(eval "$ac_link") 2>conftest.er1
15516
grep -v '^ *+' conftest.er1 >conftest.err
15518
cat conftest.err >&5
15519
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520
(exit $ac_status); } && {
15521
test -z "$ac_f77_werror_flag" ||
15522
test ! -s conftest.err
15523
} && test -s conftest$ac_exeext && {
15524
test "$cross_compiling" = yes ||
15525
$as_test_x conftest$ac_exeext
15528
lt_aix_libpath_sed='
15529
/Import File Strings/,/^$/ {
15535
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15536
# Check for a 64-bit object if we didn't find anything.
15537
if test -z "$aix_libpath"; then
15538
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15541
$as_echo "$as_me: failed program was:" >&5
15542
sed 's/^/| /' conftest.$ac_ext >&5
15547
rm -rf conftest.dSYM
15548
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15549
conftest$ac_exeext conftest.$ac_ext
15550
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15552
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15553
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"
15555
if test "$host_cpu" = ia64; then
15556
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15557
allow_undefined_flag_F77="-z nodefs"
15558
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"
15560
# Determine the default libpath from the value encoded in an empty executable.
15561
cat >conftest.$ac_ext <<_ACEOF
15566
rm -f conftest.$ac_objext conftest$ac_exeext
15567
if { (ac_try="$ac_link"
15568
case "(($ac_try" in
15569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570
*) ac_try_echo=$ac_try;;
15572
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15573
$as_echo "$ac_try_echo") >&5
15574
(eval "$ac_link") 2>conftest.er1
15576
grep -v '^ *+' conftest.er1 >conftest.err
15578
cat conftest.err >&5
15579
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580
(exit $ac_status); } && {
15581
test -z "$ac_f77_werror_flag" ||
15582
test ! -s conftest.err
15583
} && test -s conftest$ac_exeext && {
15584
test "$cross_compiling" = yes ||
15585
$as_test_x conftest$ac_exeext
15588
lt_aix_libpath_sed='
15589
/Import File Strings/,/^$/ {
15595
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15596
# Check for a 64-bit object if we didn't find anything.
15597
if test -z "$aix_libpath"; then
15598
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15601
$as_echo "$as_me: failed program was:" >&5
15602
sed 's/^/| /' conftest.$ac_ext >&5
15607
rm -rf conftest.dSYM
15608
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15609
conftest$ac_exeext conftest.$ac_ext
15610
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15612
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15613
# Warning - without using the other run time loading flags,
15614
# -berok will link without error, but may produce a broken library.
15615
no_undefined_flag_F77=' ${wl}-bernotok'
15616
allow_undefined_flag_F77=' ${wl}-berok'
15617
# Exported symbols can be pulled into shared objects from archives
15618
whole_archive_flag_spec_F77='$convenience'
15619
archive_cmds_need_lc_F77=yes
15620
# This is similar to how AIX traditionally builds its shared libraries.
15621
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'
15627
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)'
15628
hardcode_libdir_flag_spec_F77='-L$libdir'
15629
hardcode_minus_L_F77=yes
15630
# see comment about different semantics on the GNU ld section
15635
export_dynamic_flag_spec_F77=-rdynamic
15638
cygwin* | mingw* | pw32*)
15639
# When not using gcc, we currently assume that we are using
15640
# Microsoft Visual C++.
15641
# hardcode_libdir_flag_spec is actually meaningless, as there is
15642
# no search path for DLLs.
15643
hardcode_libdir_flag_spec_F77=' '
15644
allow_undefined_flag_F77=unsupported
15645
# Tell ltmain to make .lib files, not .a files.
15647
# Tell ltmain to make .dll files, not .so files.
15649
# FIXME: Setting linknames here is a bad hack.
15650
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15651
# The linker will automatically build a .lib file if we build a DLL.
15652
old_archive_From_new_cmds_F77='true'
15653
# FIXME: Should let the user specify the lib program.
15654
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15655
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15656
enable_shared_with_static_runtimes_F77=yes
15659
darwin* | rhapsody*)
15661
rhapsody* | darwin1.[012])
15662
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15665
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15666
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15668
case ${MACOSX_DEPLOYMENT_TARGET} in
15670
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15673
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15679
archive_cmds_need_lc_F77=no
15680
hardcode_direct_F77=no
15681
hardcode_automatic_F77=yes
15682
hardcode_shlibpath_var_F77=unsupported
15683
whole_archive_flag_spec_F77=''
15684
link_all_deplibs_F77=yes
15685
if test "$GCC" = yes ; then
15686
output_verbose_link_cmd='echo'
15687
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}"
15688
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15689
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}"
15690
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}"
15692
case $cc_basename in
15694
output_verbose_link_cmd='echo'
15695
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15696
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15697
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15698
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}'
15699
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}'
15709
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15710
hardcode_libdir_flag_spec_F77='-L$libdir'
15711
hardcode_shlibpath_var_F77=no
15718
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15719
# support. Future versions do this automatically, but an explicit c++rt0.o
15720
# does not break anything, and helps significantly (at the cost of a little
15723
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15724
hardcode_libdir_flag_spec_F77='-R$libdir'
15725
hardcode_direct_F77=yes
15726
hardcode_shlibpath_var_F77=no
15729
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15731
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15732
hardcode_direct_F77=yes
15733
hardcode_minus_L_F77=yes
15734
hardcode_shlibpath_var_F77=no
15737
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15738
freebsd* | dragonfly*)
15739
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15740
hardcode_libdir_flag_spec_F77='-R$libdir'
15741
hardcode_direct_F77=yes
15742
hardcode_shlibpath_var_F77=no
15746
if test "$GCC" = yes; then
15747
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'
15749
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'
15751
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15752
hardcode_libdir_separator_F77=:
15753
hardcode_direct_F77=yes
15755
# hardcode_minus_L: Not really in the search PATH,
15756
# but as the default location of the library.
15757
hardcode_minus_L_F77=yes
15758
export_dynamic_flag_spec_F77='${wl}-E'
15762
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15763
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15765
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15767
if test "$with_gnu_ld" = no; then
15768
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15769
hardcode_libdir_separator_F77=:
15771
hardcode_direct_F77=yes
15772
export_dynamic_flag_spec_F77='${wl}-E'
15774
# hardcode_minus_L: Not really in the search PATH,
15775
# but as the default location of the library.
15776
hardcode_minus_L_F77=yes
15781
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15784
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15790
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15796
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15799
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15802
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15806
if test "$with_gnu_ld" = no; then
15807
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15808
hardcode_libdir_separator_F77=:
15812
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15813
hardcode_direct_F77=no
15814
hardcode_shlibpath_var_F77=no
15817
hardcode_direct_F77=yes
15818
export_dynamic_flag_spec_F77='${wl}-E'
15820
# hardcode_minus_L: Not really in the search PATH,
15821
# but as the default location of the library.
15822
hardcode_minus_L_F77=yes
15828
irix5* | irix6* | nonstopux*)
15829
if test "$GCC" = yes; then
15830
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'
15832
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'
15833
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15835
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15836
hardcode_libdir_separator_F77=:
15837
link_all_deplibs_F77=yes
15841
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15842
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15844
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15846
hardcode_libdir_flag_spec_F77='-R$libdir'
15847
hardcode_direct_F77=yes
15848
hardcode_shlibpath_var_F77=no
15852
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15853
hardcode_direct_F77=yes
15854
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15855
hardcode_libdir_separator_F77=:
15856
hardcode_shlibpath_var_F77=no
15860
if test -f /usr/libexec/ld.so; then
15861
hardcode_direct_F77=yes
15862
hardcode_shlibpath_var_F77=no
15863
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15864
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15865
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15866
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15867
export_dynamic_flag_spec_F77='${wl}-E'
15870
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15871
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15872
hardcode_libdir_flag_spec_F77='-R$libdir'
15875
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15876
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15886
hardcode_libdir_flag_spec_F77='-L$libdir'
15887
hardcode_minus_L_F77=yes
15888
allow_undefined_flag_F77=unsupported
15889
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'
15890
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15894
if test "$GCC" = yes; then
15895
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15896
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'
15898
allow_undefined_flag_F77=' -expect_unresolved \*'
15899
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'
15901
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15902
hardcode_libdir_separator_F77=:
15905
osf4* | osf5*) # as osf3* with the addition of -msym flag
15906
if test "$GCC" = yes; then
15907
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15908
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'
15909
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15911
allow_undefined_flag_F77=' -expect_unresolved \*'
15912
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'
15913
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~
15914
$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'
15916
# Both c and cxx compiler support -rpath directly
15917
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15919
hardcode_libdir_separator_F77=:
15923
no_undefined_flag_F77=' -z text'
15924
if test "$GCC" = yes; then
15926
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15927
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15928
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15931
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15933
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15935
hardcode_libdir_flag_spec_F77='-R$libdir'
15936
hardcode_shlibpath_var_F77=no
15938
solaris2.[0-5] | solaris2.[0-5].*) ;;
15940
# The compiler driver will combine and reorder linker options,
15941
# but understands `-z linker_flag'. GCC discards it without `$wl',
15942
# but is careful enough not to reorder.
15943
# Supported since Solaris 2.6 (maybe 2.5.1?)
15944
if test "$GCC" = yes; then
15945
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15947
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15951
link_all_deplibs_F77=yes
15955
if test "x$host_vendor" = xsequent; then
15956
# Use $CC to link under sequent, because it throws in some extra .o
15957
# files that make .init and .fini sections work.
15958
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15960
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15962
hardcode_libdir_flag_spec_F77='-L$libdir'
15963
hardcode_direct_F77=yes
15964
hardcode_minus_L_F77=yes
15965
hardcode_shlibpath_var_F77=no
15969
case $host_vendor in
15971
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15972
hardcode_direct_F77=yes # is this really true???
15975
## LD is ld it makes a PLAMLIB
15976
## CC just makes a GrossModule.
15977
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15978
reload_cmds_F77='$CC -r -o $output$reload_objs'
15979
hardcode_direct_F77=no
15982
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15983
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15986
runpath_var='LD_RUN_PATH'
15987
hardcode_shlibpath_var_F77=no
15991
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15992
hardcode_shlibpath_var_F77=no
15993
export_dynamic_flag_spec_F77='-Bexport'
15997
if test -d /usr/nec; then
15998
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15999
hardcode_shlibpath_var_F77=no
16000
runpath_var=LD_RUN_PATH
16001
hardcode_runpath_var=yes
16006
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16007
no_undefined_flag_F77='${wl}-z,text'
16008
archive_cmds_need_lc_F77=no
16009
hardcode_shlibpath_var_F77=no
16010
runpath_var='LD_RUN_PATH'
16012
if test "$GCC" = yes; then
16013
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16016
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16017
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16021
sysv5* | sco3.2v5* | sco5v6*)
16022
# Note: We can NOT use -z defs as we might desire, because we do not
16023
# link with -lc, and that would cause any symbols used from libc to
16024
# always be unresolved, which means just about no library would
16025
# ever link correctly. If we're not using GNU ld we use -z text
16026
# though, which does catch some bad symbols but isn't as heavy-handed
16028
no_undefined_flag_F77='${wl}-z,text'
16029
allow_undefined_flag_F77='${wl}-z,nodefs'
16030
archive_cmds_need_lc_F77=no
16031
hardcode_shlibpath_var_F77=no
16032
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16033
hardcode_libdir_separator_F77=':'
16034
link_all_deplibs_F77=yes
16035
export_dynamic_flag_spec_F77='${wl}-Bexport'
16036
runpath_var='LD_RUN_PATH'
16038
if test "$GCC" = yes; then
16039
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16040
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16042
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16043
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16048
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049
hardcode_libdir_flag_spec_F77='-L$libdir'
16050
hardcode_shlibpath_var_F77=no
16059
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16060
$as_echo "$ld_shlibs_F77" >&6; }
16061
test "$ld_shlibs_F77" = no && can_build_shared=no
16064
# Do we need to explicitly link libc?
16066
case "x$archive_cmds_need_lc_F77" in
16068
# Assume -lc should be added
16069
archive_cmds_need_lc_F77=yes
16071
if test "$enable_shared" = yes && test "$GCC" = yes; then
16072
case $archive_cmds_F77 in
16074
# FIXME: we may have to deal with multi-command sequences.
16077
# Test whether the compiler implicitly links with -lc since on some
16078
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16079
# to ld, don't add -lc before -lgcc.
16080
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16081
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16083
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16086
(eval $ac_compile) 2>&5
16088
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089
(exit $ac_status); } 2>conftest.err; then
16092
libobjs=conftest.$ac_objext
16094
wl=$lt_prog_compiler_wl_F77
16095
pic_flag=$lt_prog_compiler_pic_F77
16101
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16102
allow_undefined_flag_F77=
16103
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16104
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16106
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107
(exit $ac_status); }
16109
archive_cmds_need_lc_F77=no
16111
archive_cmds_need_lc_F77=yes
16113
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16115
cat conftest.err 1>&5
16118
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16119
$as_echo "$archive_cmds_need_lc_F77" >&6; }
16126
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16127
$as_echo_n "checking dynamic linker characteristics... " >&6; }
16128
library_names_spec=
16129
libname_spec='lib$name'
16133
postuninstall_cmds=
16137
shlibpath_overrides_runpath=unknown
16139
dynamic_linker="$host_os ld.so"
16140
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16142
need_lib_prefix=unknown
16143
hardcode_into_libs=no
16145
# when you set need_version to no, make sure it does not cause -set_version
16146
# flags to be left without arguments
16147
need_version=unknown
16152
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16153
shlibpath_var=LIBPATH
16155
# AIX 3 has no versioning support, so we append a major version to the name.
16156
soname_spec='${libname}${release}${shared_ext}$major'
16163
hardcode_into_libs=yes
16164
if test "$host_cpu" = ia64; then
16165
# AIX 5 supports IA64
16166
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16167
shlibpath_var=LD_LIBRARY_PATH
16169
# With GCC up to 2.95.x, collect2 would create an import file
16170
# for dependence libraries. The import file would start with
16171
# the line `#! .'. This would cause the generated library to
16172
# depend on `.', always an invalid library. This was fixed in
16173
# development snapshots of GCC prior to 3.0.
16175
aix4 | aix4.[01] | aix4.[01].*)
16176
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16178
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16181
can_build_shared=no
16185
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16186
# soname into executable. Probably we can add versioning support to
16187
# collect2, so additional links can be useful in future.
16188
if test "$aix_use_runtimelinking" = yes; then
16189
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16190
# instead of lib<name>.a to let people know that these are not
16191
# typical AIX shared libraries.
16192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194
# We preserve .a as extension for shared libraries through AIX4.2
16195
# and later when we are not doing run time linking.
16196
library_names_spec='${libname}${release}.a $libname.a'
16197
soname_spec='${libname}${release}${shared_ext}$major'
16199
shlibpath_var=LIBPATH
16204
library_names_spec='$libname.ixlibrary $libname.a'
16205
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16206
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'
16210
library_names_spec='${libname}${shared_ext}'
16211
dynamic_linker="$host_os ld.so"
16212
shlibpath_var=LIBRARY_PATH
16218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219
soname_spec='${libname}${release}${shared_ext}$major'
16220
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16221
shlibpath_var=LD_LIBRARY_PATH
16222
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16223
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16224
# the default ld.so.conf also contains /usr/contrib/lib and
16225
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16226
# libtool to hard-code these into programs
16229
cygwin* | mingw* | pw32*)
16230
version_type=windows
16235
case $GCC,$host_os in
16236
yes,cygwin* | yes,mingw* | yes,pw32*)
16237
library_names_spec='$libname.dll.a'
16238
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16239
postinstall_cmds='base_file=`basename \${file}`~
16240
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16241
dldir=$destdir/`dirname \$dlpath`~
16242
test -d \$dldir || mkdir -p \$dldir~
16243
$install_prog $dir/$dlname \$dldir/$dlname~
16244
chmod a+x \$dldir/$dlname'
16245
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16246
dlpath=$dir/\$dldll~
16248
shlibpath_overrides_runpath=yes
16252
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16253
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16254
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16257
# MinGW DLLs use traditional 'lib' prefix
16258
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16259
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16260
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16261
# It is most probably a Windows format PATH printed by
16262
# mingw gcc, but we are running on Cygwin. Gcc prints its search
16263
# path with ; separators, and with drive letters. We can handle the
16264
# drive letters (cygwin fileutils understands them), so leave them,
16265
# especially as we might pass files found there to a mingw objdump,
16266
# which wouldn't understand a cygwinified path. Ahh.
16267
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16269
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16273
# pw32 DLLs use 'pw' prefix rather than 'lib'
16274
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16280
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16283
dynamic_linker='Win32 ld.exe'
16284
# FIXME: first we should search . and the directory the executable is in
16288
darwin* | rhapsody*)
16289
dynamic_linker="$host_os dyld"
16290
version_type=darwin
16293
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16294
soname_spec='${libname}${release}${major}$shared_ext'
16295
shlibpath_overrides_runpath=yes
16296
shlibpath_var=DYLD_LIBRARY_PATH
16297
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16299
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16306
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16307
soname_spec='${libname}${release}${shared_ext}$major'
16308
shlibpath_var=LD_LIBRARY_PATH
16315
freebsd* | dragonfly*)
16316
# DragonFly does not have aout. When/if they implement a new
16317
# versioning mechanism, adjust this.
16318
if test -x /usr/bin/objformat; then
16319
objformat=`/usr/bin/objformat`
16322
freebsd[123]*) objformat=aout ;;
16323
*) objformat=elf ;;
16326
version_type=freebsd-$objformat
16327
case $version_type in
16329
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16334
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16338
shlibpath_var=LD_LIBRARY_PATH
16341
shlibpath_overrides_runpath=yes
16343
freebsd3.[01]* | freebsdelf3.[01]*)
16344
shlibpath_overrides_runpath=yes
16345
hardcode_into_libs=yes
16347
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16348
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16349
shlibpath_overrides_runpath=no
16350
hardcode_into_libs=yes
16352
*) # from 4.6 on, and DragonFly
16353
shlibpath_overrides_runpath=yes
16354
hardcode_into_libs=yes
16363
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16364
soname_spec='${libname}${release}${shared_ext}$major'
16365
shlibpath_var=LD_LIBRARY_PATH
16366
hardcode_into_libs=yes
16369
hpux9* | hpux10* | hpux11*)
16370
# Give a soname corresponding to the major version so that dld.sl refuses to
16371
# link against other versions.
16378
hardcode_into_libs=yes
16379
dynamic_linker="$host_os dld.so"
16380
shlibpath_var=LD_LIBRARY_PATH
16381
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383
soname_spec='${libname}${release}${shared_ext}$major'
16384
if test "X$HPUX_IA64_MODE" = X32; then
16385
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16387
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16389
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16393
hardcode_into_libs=yes
16394
dynamic_linker="$host_os dld.sl"
16395
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16396
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16397
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398
soname_spec='${libname}${release}${shared_ext}$major'
16399
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16400
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16404
dynamic_linker="$host_os dld.sl"
16405
shlibpath_var=SHLIB_PATH
16406
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16407
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408
soname_spec='${libname}${release}${shared_ext}$major'
16411
# HP-UX runs *really* slowly unless shared libraries are mode 555.
16412
postinstall_cmds='chmod 555 $lib'
16419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16420
soname_spec='${libname}${release}${shared_ext}$major'
16421
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16422
shlibpath_var=LD_LIBRARY_PATH
16423
shlibpath_overrides_runpath=no
16424
hardcode_into_libs=yes
16427
irix5* | irix6* | nonstopux*)
16429
nonstopux*) version_type=nonstopux ;;
16431
if test "$lt_cv_prog_gnu_ld" = yes; then
16439
soname_spec='${libname}${release}${shared_ext}$major'
16440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16442
irix5* | nonstopux*)
16443
libsuff= shlibsuff=
16446
case $LD in # libtool.m4 will add one of these switches to LD
16447
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16448
libsuff= shlibsuff= libmagic=32-bit;;
16449
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16450
libsuff=32 shlibsuff=N32 libmagic=N32;;
16451
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16452
libsuff=64 shlibsuff=64 libmagic=64-bit;;
16453
*) libsuff= shlibsuff= libmagic=never-match;;
16457
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16458
shlibpath_overrides_runpath=no
16459
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16460
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16461
hardcode_into_libs=yes
16464
# No shared lib support for Linux oldld, aout, or coff.
16465
linux*oldld* | linux*aout* | linux*coff*)
16469
# This must be Linux ELF.
16470
linux* | k*bsd*-gnu)
16474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475
soname_spec='${libname}${release}${shared_ext}$major'
16476
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16477
shlibpath_var=LD_LIBRARY_PATH
16478
shlibpath_overrides_runpath=no
16479
# This implies no fast_install, which is unacceptable.
16480
# Some rework will be needed to allow for fast_install
16481
# before this can be enabled.
16482
hardcode_into_libs=yes
16484
# find out which ABI we are using
16486
case "$host_cpu" in
16487
x86_64*|s390x*|powerpc64*)
16488
echo '#line 16488 "configure"' > conftest.$ac_ext
16489
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16490
(eval $ac_compile) 2>&5
16492
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493
(exit $ac_status); }; then
16494
case `/usr/bin/file conftest.$ac_objext` in
16504
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16506
# Append ld.so.conf contents to the search path
16507
if test -f /etc/ld.so.conf; then
16508
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' ' '`
16509
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16512
# We used to test for /lib/ld.so.1 and disable shared libraries on
16513
# powerpc, because MkLinux only supported shared libraries with the
16514
# GNU dynamic linker. Since this was broken with cross compilers,
16515
# most powerpc-linux boxes support dynamic linking these days and
16516
# people can always --disable-shared, the test was removed, and we
16517
# assume the GNU/Linux dynamic linker is in use.
16518
dynamic_linker='GNU/Linux ld.so'
16525
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16527
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16528
dynamic_linker='NetBSD (a.out) ld.so'
16530
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16531
soname_spec='${libname}${release}${shared_ext}$major'
16532
dynamic_linker='NetBSD ld.elf_so'
16534
shlibpath_var=LD_LIBRARY_PATH
16535
shlibpath_overrides_runpath=yes
16536
hardcode_into_libs=yes
16541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542
shlibpath_var=LD_LIBRARY_PATH
16543
shlibpath_overrides_runpath=yes
16550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551
soname_spec='${libname}${release}${shared_ext}$major'
16552
shlibpath_var=LD_LIBRARY_PATH
16553
shlibpath_overrides_runpath=yes
16558
sys_lib_dlsearch_path_spec="/usr/lib"
16560
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16562
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16563
*) need_version=no ;;
16565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16566
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16567
shlibpath_var=LD_LIBRARY_PATH
16568
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16570
openbsd2.[89] | openbsd2.[89].*)
16571
shlibpath_overrides_runpath=no
16574
shlibpath_overrides_runpath=yes
16578
shlibpath_overrides_runpath=yes
16583
libname_spec='$name'
16586
library_names_spec='$libname${shared_ext} $libname.a'
16587
dynamic_linker='OS/2 ld.exe'
16588
shlibpath_var=LIBPATH
16591
osf3* | osf4* | osf5*)
16595
soname_spec='${libname}${release}${shared_ext}$major'
16596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597
shlibpath_var=LD_LIBRARY_PATH
16598
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16599
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16610
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16611
soname_spec='${libname}${release}${shared_ext}$major'
16612
shlibpath_var=LD_LIBRARY_PATH
16613
shlibpath_overrides_runpath=yes
16614
hardcode_into_libs=yes
16615
# ldd complains unless libraries are executable
16616
postinstall_cmds='chmod +x $lib'
16621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16622
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16623
shlibpath_var=LD_LIBRARY_PATH
16624
shlibpath_overrides_runpath=yes
16625
if test "$with_gnu_ld" = yes; then
16633
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634
soname_spec='${libname}${release}${shared_ext}$major'
16635
shlibpath_var=LD_LIBRARY_PATH
16636
case $host_vendor in
16638
shlibpath_overrides_runpath=no
16640
export_dynamic_flag_spec='${wl}-Blargedynsym'
16641
runpath_var=LD_RUN_PATH
16649
shlibpath_overrides_runpath=no
16650
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16656
if test -d /usr/nec ;then
16658
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16659
soname_spec='$libname${shared_ext}.$major'
16660
shlibpath_var=LD_LIBRARY_PATH
16664
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16665
version_type=freebsd-elf
16668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16669
soname_spec='${libname}${release}${shared_ext}$major'
16670
shlibpath_var=LD_LIBRARY_PATH
16671
hardcode_into_libs=yes
16672
if test "$with_gnu_ld" = yes; then
16673
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16674
shlibpath_overrides_runpath=no
16676
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16677
shlibpath_overrides_runpath=yes
16680
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16684
sys_lib_dlsearch_path_spec='/usr/lib'
16689
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16690
soname_spec='${libname}${release}${shared_ext}$major'
16691
shlibpath_var=LD_LIBRARY_PATH
16698
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16699
$as_echo "$dynamic_linker" >&6; }
16700
test "$dynamic_linker" = no && can_build_shared=no
16702
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16703
$as_echo_n "(cached) " >&6
16705
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16708
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16709
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16710
$as_echo_n "(cached) " >&6
16712
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16715
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16717
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16718
if test "$GCC" = yes; then
16719
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16722
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16723
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16724
hardcode_action_F77=
16725
if test -n "$hardcode_libdir_flag_spec_F77" || \
16726
test -n "$runpath_var_F77" || \
16727
test "X$hardcode_automatic_F77" = "Xyes" ; then
16729
# We can hardcode non-existant directories.
16730
if test "$hardcode_direct_F77" != no &&
16731
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16732
# have to relink, otherwise we might link with an installed library
16733
# when we should be linking with a yet-to-be-installed one
16734
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16735
test "$hardcode_minus_L_F77" != no; then
16736
# Linking always hardcodes the temporary library directory.
16737
hardcode_action_F77=relink
16739
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16740
hardcode_action_F77=immediate
16743
# We cannot hardcode anything, or else we can only hardcode existing
16745
hardcode_action_F77=unsupported
16747
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16748
$as_echo "$hardcode_action_F77" >&6; }
16750
if test "$hardcode_action_F77" = relink; then
16751
# Fast installation is not supported
16752
enable_fast_install=no
16753
elif test "$shlibpath_overrides_runpath" = yes ||
16754
test "$enable_shared" = no; then
16755
# Fast installation is not necessary
16756
enable_fast_install=needless
16760
# The else clause should only fire when bootstrapping the
16761
# libtool distribution, otherwise you forgot to ship ltmain.sh
16762
# with your package, and you will get complaints that there are
16763
# no rules to generate ltmain.sh.
16764
if test -f "$ltmain"; then
16765
# See if we are running on zsh, and set the options which allow our commands through
16766
# without removal of \ escapes.
16767
if test -n "${ZSH_VERSION+set}" ; then
16768
setopt NO_GLOB_SUBST
16770
# Now quote all the things that may contain metacharacters while being
16771
# careful not to overquote the AC_SUBSTed values. We take copies of the
16772
# variables and quote the copies for generation of the libtool script.
16773
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16775
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16776
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16777
deplibs_check_method reload_flag reload_cmds need_locks \
16778
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16779
lt_cv_sys_global_symbol_to_c_name_address \
16780
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16781
old_postinstall_cmds old_postuninstall_cmds \
16785
lt_prog_compiler_wl_F77 \
16786
lt_prog_compiler_pic_F77 \
16787
lt_prog_compiler_static_F77 \
16788
lt_prog_compiler_no_builtin_flag_F77 \
16789
export_dynamic_flag_spec_F77 \
16790
thread_safe_flag_spec_F77 \
16791
whole_archive_flag_spec_F77 \
16792
enable_shared_with_static_runtimes_F77 \
16793
old_archive_cmds_F77 \
16794
old_archive_from_new_cmds_F77 \
16795
predep_objects_F77 \
16796
postdep_objects_F77 \
16799
compiler_lib_search_path_F77 \
16800
compiler_lib_search_dirs_F77 \
16802
archive_expsym_cmds_F77 \
16803
postinstall_cmds_F77 \
16804
postuninstall_cmds_F77 \
16805
old_archive_from_expsyms_cmds_F77 \
16806
allow_undefined_flag_F77 \
16807
no_undefined_flag_F77 \
16808
export_symbols_cmds_F77 \
16809
hardcode_libdir_flag_spec_F77 \
16810
hardcode_libdir_flag_spec_ld_F77 \
16811
hardcode_libdir_separator_F77 \
16812
hardcode_automatic_F77 \
16814
module_expsym_cmds_F77 \
16815
lt_cv_prog_compiler_c_o_F77 \
16816
fix_srcfile_path_F77 \
16817
exclude_expsyms_F77 \
16818
include_expsyms_F77; do
16821
old_archive_cmds_F77 | \
16822
old_archive_from_new_cmds_F77 | \
16823
archive_cmds_F77 | \
16824
archive_expsym_cmds_F77 | \
16825
module_cmds_F77 | \
16826
module_expsym_cmds_F77 | \
16827
old_archive_from_expsyms_cmds_F77 | \
16828
export_symbols_cmds_F77 | \
16829
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16830
postinstall_cmds | postuninstall_cmds | \
16831
old_postinstall_cmds | old_postuninstall_cmds | \
16832
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16833
# Double-quote double-evaled strings.
16834
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16837
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16843
*'\$0 --fallback-echo"')
16844
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16850
cat <<__EOF__ >> "$cfgfile"
16851
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16853
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16855
# Shell to use when invoking shell scripts.
16858
# Whether or not to build shared libraries.
16859
build_libtool_libs=$enable_shared
16861
# Whether or not to build static libraries.
16862
build_old_libs=$enable_static
16864
# Whether or not to add -lc for building shared libraries.
16865
build_libtool_need_lc=$archive_cmds_need_lc_F77
16867
# Whether or not to disallow shared libs when runtime libs are static
16868
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16870
# Whether or not to optimize for fast installation.
16871
fast_install=$enable_fast_install
16874
host_alias=$host_alias
16878
# The build system.
16879
build_alias=$build_alias
16883
# An echo program that does not interpret backslashes.
16888
AR_FLAGS=$lt_AR_FLAGS
16893
# LTCC compiler flags.
16894
LTCFLAGS=$lt_LTCFLAGS
16896
# A language-specific compiler.
16897
CC=$lt_compiler_F77
16899
# Is the compiler the GNU C compiler?
16905
# The linker used to build libraries.
16908
# Whether we need hard or soft links.
16911
# A BSD-compatible nm program.
16914
# A symbol stripping program
16917
# Used to examine libraries when file_magic_cmd begins "file"
16918
MAGIC_CMD=$MAGIC_CMD
16920
# Used on cygwin: DLL creation program.
16923
# Used on cygwin: object dumper.
16926
# Used on cygwin: assembler.
16929
# The name of the directory that contains temporary libtool files.
16932
# How to create reloadable object files.
16933
reload_flag=$lt_reload_flag
16934
reload_cmds=$lt_reload_cmds
16936
# How to pass a linker flag through the compiler.
16937
wl=$lt_lt_prog_compiler_wl_F77
16939
# Object file suffix (normally "o").
16940
objext="$ac_objext"
16942
# Old archive suffix (normally "a").
16945
# Shared library suffix (normally ".so").
16946
shrext_cmds='$shrext_cmds'
16948
# Executable file suffix (normally "").
16951
# Additional compiler flags for building library objects.
16952
pic_flag=$lt_lt_prog_compiler_pic_F77
16955
# What is the maximum length of a command?
16956
max_cmd_len=$lt_cv_sys_max_cmd_len
16958
# Does compiler simultaneously support -c and -o options?
16959
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16961
# Must we lock files when doing compilation?
16962
need_locks=$lt_need_locks
16964
# Do we need the lib prefix for modules?
16965
need_lib_prefix=$need_lib_prefix
16967
# Do we need a version for libraries?
16968
need_version=$need_version
16970
# Whether dlopen is supported.
16971
dlopen_support=$enable_dlopen
16973
# Whether dlopen of programs is supported.
16974
dlopen_self=$enable_dlopen_self
16976
# Whether dlopen of statically linked programs is supported.
16977
dlopen_self_static=$enable_dlopen_self_static
16979
# Compiler flag to prevent dynamic linking.
16980
link_static_flag=$lt_lt_prog_compiler_static_F77
16982
# Compiler flag to turn off builtin functions.
16983
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16985
# Compiler flag to allow reflexive dlopens.
16986
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16988
# Compiler flag to generate shared objects directly from archives.
16989
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16991
# Compiler flag to generate thread-safe objects.
16992
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16994
# Library versioning type.
16995
version_type=$version_type
16997
# Format of library name prefix.
16998
libname_spec=$lt_libname_spec
17000
# List of archive names. First name is the real one, the rest are links.
17001
# The last name is the one that the linker finds with -lNAME.
17002
library_names_spec=$lt_library_names_spec
17004
# The coded name of the library, if different from the real name.
17005
soname_spec=$lt_soname_spec
17007
# Commands used to build and install an old-style archive.
17009
old_archive_cmds=$lt_old_archive_cmds_F77
17010
old_postinstall_cmds=$lt_old_postinstall_cmds
17011
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17013
# Create an old-style archive from a shared archive.
17014
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17016
# Create a temporary old-style archive to link instead of a shared archive.
17017
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17019
# Commands used to build and install a shared archive.
17020
archive_cmds=$lt_archive_cmds_F77
17021
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17022
postinstall_cmds=$lt_postinstall_cmds
17023
postuninstall_cmds=$lt_postuninstall_cmds
17025
# Commands used to build a loadable module (assumed same as above if empty)
17026
module_cmds=$lt_module_cmds_F77
17027
module_expsym_cmds=$lt_module_expsym_cmds_F77
17029
# Commands to strip libraries.
17030
old_striplib=$lt_old_striplib
17031
striplib=$lt_striplib
17033
# Dependencies to place before the objects being linked to create a
17035
predep_objects=$lt_predep_objects_F77
17037
# Dependencies to place after the objects being linked to create a
17039
postdep_objects=$lt_postdep_objects_F77
17041
# Dependencies to place before the objects being linked to create a
17043
predeps=$lt_predeps_F77
17045
# Dependencies to place after the objects being linked to create a
17047
postdeps=$lt_postdeps_F77
17049
# The directories searched by this compiler when creating a shared
17051
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17053
# The library search path used internally by the compiler when linking
17054
# a shared library.
17055
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17057
# Method to check whether dependent libraries are shared objects.
17058
deplibs_check_method=$lt_deplibs_check_method
17060
# Command to use when deplibs_check_method == file_magic.
17061
file_magic_cmd=$lt_file_magic_cmd
17063
# Flag that allows shared libraries with undefined symbols to be built.
17064
allow_undefined_flag=$lt_allow_undefined_flag_F77
17066
# Flag that forces no undefined symbols.
17067
no_undefined_flag=$lt_no_undefined_flag_F77
17069
# Commands used to finish a libtool library installation in a directory.
17070
finish_cmds=$lt_finish_cmds
17072
# Same as above, but a single script fragment to be evaled but not shown.
17073
finish_eval=$lt_finish_eval
17075
# Take the output of nm and produce a listing of raw symbols and C names.
17076
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17078
# Transform the output of nm in a proper C declaration
17079
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17081
# Transform the output of nm in a C name address pair
17082
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17084
# This is the shared library runtime path variable.
17085
runpath_var=$runpath_var
17087
# This is the shared library path variable.
17088
shlibpath_var=$shlibpath_var
17090
# Is shlibpath searched before the hard-coded library search path?
17091
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17093
# How to hardcode a shared library path into an executable.
17094
hardcode_action=$hardcode_action_F77
17096
# Whether we should hardcode library paths into libraries.
17097
hardcode_into_libs=$hardcode_into_libs
17099
# Flag to hardcode \$libdir into a binary during linking.
17100
# This must work even if \$libdir does not exist.
17101
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17103
# If ld is used when linking, flag to hardcode \$libdir into
17104
# a binary during linking. This must work even if \$libdir does
17106
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17108
# Whether we need a single -rpath flag with a separated argument.
17109
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17111
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17112
# resulting binary.
17113
hardcode_direct=$hardcode_direct_F77
17115
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17116
# resulting binary.
17117
hardcode_minus_L=$hardcode_minus_L_F77
17119
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17120
# the resulting binary.
17121
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17123
# Set to yes if building a shared library automatically hardcodes DIR into the library
17124
# and all subsequent libraries and executables linked against it.
17125
hardcode_automatic=$hardcode_automatic_F77
17127
# Variables whose values should be saved in libtool wrapper scripts and
17128
# restored at relink time.
17129
variables_saved_for_relink="$variables_saved_for_relink"
17131
# Whether libtool must link a program against all its dependency libraries.
17132
link_all_deplibs=$link_all_deplibs_F77
17134
# Compile-time system search path for libraries
17135
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17137
# Run-time system search path for libraries
17138
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17140
# Fix the shell variable \$srcfile for the compiler.
17141
fix_srcfile_path=$lt_fix_srcfile_path
17143
# Set to yes if exported symbols are required.
17144
always_export_symbols=$always_export_symbols_F77
17146
# The commands to list exported symbols.
17147
export_symbols_cmds=$lt_export_symbols_cmds_F77
17149
# The commands to extract the exported symbol list from a shared archive.
17150
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17152
# Symbols that should not be listed in the preloaded symbols.
17153
exclude_expsyms=$lt_exclude_expsyms_F77
17155
# Symbols that must always be exported.
17156
include_expsyms=$lt_include_expsyms_F77
17158
# ### END LIBTOOL TAG CONFIG: $tagname
17164
# If there is no Makefile yet, we rely on a make rule to execute
17165
# `config.status --recheck' to rerun these tests and create the
17166
# libtool script then.
17167
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17168
if test -f "$ltmain_in"; then
17169
test -f Makefile && make "$ltmain"
17175
ac_cpp='$CPP $CPPFLAGS'
17176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17188
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17191
# Source file extension for Java test sources.
17194
# Object file extension for compiled Java test sources.
17198
# Code to be used in simple compile tests
17199
lt_simple_compile_test_code="class foo {}"
17201
# Code to be used in simple link tests
17202
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17204
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17206
# If no C compiler was specified, use CC.
17209
# If no C compiler flags were specified, use CFLAGS.
17210
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17212
# Allow CC to be a program name with arguments.
17216
# save warnings/boilerplate of simple test code
17217
ac_outfile=conftest.$ac_objext
17218
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17219
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17220
_lt_compiler_boilerplate=`cat conftest.err`
17223
ac_outfile=conftest.$ac_objext
17224
echo "$lt_simple_link_test_code" >conftest.$ac_ext
17225
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17226
_lt_linker_boilerplate=`cat conftest.err`
17230
# Allow CC to be a program name with arguments.
17235
for cc_temp in $compiler""; do
17237
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17238
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17243
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17247
# GCJ did not exist at the time GCC didn't implicitly link libc in.
17248
archive_cmds_need_lc_GCJ=no
17250
old_archive_cmds_GCJ=$old_archive_cmds
17253
lt_prog_compiler_no_builtin_flag_GCJ=
17255
if test "$GCC" = yes; then
17256
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17259
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17260
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17261
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17262
$as_echo_n "(cached) " >&6
17264
lt_cv_prog_compiler_rtti_exceptions=no
17265
ac_outfile=conftest.$ac_objext
17266
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17267
lt_compiler_flag="-fno-rtti -fno-exceptions"
17268
# Insert the option either (1) after the last *FLAGS variable, or
17269
# (2) before a word containing "conftest.", or (3) at the end.
17270
# Note that $ac_compile itself does not contain backslashes and begins
17271
# with a dollar sign (not a hyphen), so the echo should work correctly.
17272
# The option is referenced via a variable to avoid confusing sed.
17273
lt_compile=`echo "$ac_compile" | $SED \
17274
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17275
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17276
-e 's:$: $lt_compiler_flag:'`
17277
(eval echo "\"\$as_me:17277: $lt_compile\"" >&5)
17278
(eval "$lt_compile" 2>conftest.err)
17280
cat conftest.err >&5
17281
echo "$as_me:17281: \$? = $ac_status" >&5
17282
if (exit $ac_status) && test -s "$ac_outfile"; then
17283
# The compiler can only warn and ignore the option if not recognized
17284
# So say no if there are warnings other than the usual output.
17285
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17286
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17287
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17288
lt_cv_prog_compiler_rtti_exceptions=yes
17294
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17295
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17297
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17298
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17305
lt_prog_compiler_wl_GCJ=
17306
lt_prog_compiler_pic_GCJ=
17307
lt_prog_compiler_static_GCJ=
17309
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17310
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17312
if test "$GCC" = yes; then
17313
lt_prog_compiler_wl_GCJ='-Wl,'
17314
lt_prog_compiler_static_GCJ='-static'
17318
# All AIX code is PIC.
17319
if test "$host_cpu" = ia64; then
17320
# AIX 5 now supports IA64 processor
17321
lt_prog_compiler_static_GCJ='-Bstatic'
17326
# FIXME: we need at least 68020 code to build shared libraries, but
17327
# adding the `-m68020' flag to GCC prevents building anything better,
17329
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17332
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17333
# PIC is the default for these OSes.
17336
mingw* | cygwin* | pw32* | os2*)
17337
# This hack is so that the source file can tell whether it is being
17338
# built for inclusion in a dll (and should export symbols for example).
17339
# Although the cygwin gcc ignores -fPIC, still need this for old-style
17340
# (--disable-auto-import) libraries
17344
darwin* | rhapsody*)
17345
# PIC is the default on this platform
17346
# Common symbols not allowed in MH_DYLIB files
17347
lt_prog_compiler_pic_GCJ='-fno-common'
17351
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
17352
# Instead, we relocate shared libraries at runtime.
17356
# Just because we use GCC doesn't mean we suddenly get shared libraries
17357
# on systems that don't support them.
17358
lt_prog_compiler_can_build_shared_GCJ=no
17363
if test -d /usr/nec; then
17364
lt_prog_compiler_pic_GCJ=-Kconform_pic
17369
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17370
# not for PA HP-UX.
17376
lt_prog_compiler_pic_GCJ='-fPIC'
17382
lt_prog_compiler_pic_GCJ='-fPIC'
17386
# PORTME Check for flag to pass linker flags through the system compiler.
17389
lt_prog_compiler_wl_GCJ='-Wl,'
17390
if test "$host_cpu" = ia64; then
17391
# AIX 5 now supports IA64 processor
17392
lt_prog_compiler_static_GCJ='-Bstatic'
17394
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17398
# PIC is the default on this platform
17399
# Common symbols not allowed in MH_DYLIB files
17400
case $cc_basename in
17402
lt_prog_compiler_pic_GCJ='-qnocommon'
17403
lt_prog_compiler_wl_GCJ='-Wl,'
17408
mingw* | cygwin* | pw32* | os2*)
17409
# This hack is so that the source file can tell whether it is being
17410
# built for inclusion in a dll (and should export symbols for example).
17414
hpux9* | hpux10* | hpux11*)
17415
lt_prog_compiler_wl_GCJ='-Wl,'
17416
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17417
# not for PA HP-UX.
17423
lt_prog_compiler_pic_GCJ='+Z'
17426
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17427
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17430
irix5* | irix6* | nonstopux*)
17431
lt_prog_compiler_wl_GCJ='-Wl,'
17432
# PIC (with -KPIC) is the default.
17433
lt_prog_compiler_static_GCJ='-non_shared'
17437
lt_prog_compiler_pic_GCJ='-KPIC'
17438
lt_prog_compiler_static_GCJ='-Bstatic'
17441
linux* | k*bsd*-gnu)
17442
case $cc_basename in
17444
lt_prog_compiler_wl_GCJ='-Wl,'
17445
lt_prog_compiler_pic_GCJ='-KPIC'
17446
lt_prog_compiler_static_GCJ='-static'
17448
pgcc* | pgf77* | pgf90* | pgf95*)
17449
# Portland Group compilers (*not* the Pentium gcc compiler,
17450
# which looks to be a dead project)
17451
lt_prog_compiler_wl_GCJ='-Wl,'
17452
lt_prog_compiler_pic_GCJ='-fpic'
17453
lt_prog_compiler_static_GCJ='-Bstatic'
17456
lt_prog_compiler_wl_GCJ='-Wl,'
17457
# All Alpha code is PIC.
17458
lt_prog_compiler_static_GCJ='-non_shared'
17461
case `$CC -V 2>&1 | sed 5q` in
17464
lt_prog_compiler_pic_GCJ='-KPIC'
17465
lt_prog_compiler_static_GCJ='-Bstatic'
17466
lt_prog_compiler_wl_GCJ='-Wl,'
17469
# Sun Fortran 8.3 passes all unrecognized flags to the linker
17470
lt_prog_compiler_pic_GCJ='-KPIC'
17471
lt_prog_compiler_static_GCJ='-Bstatic'
17472
lt_prog_compiler_wl_GCJ=''
17479
osf3* | osf4* | osf5*)
17480
lt_prog_compiler_wl_GCJ='-Wl,'
17481
# All OSF/1 code is PIC.
17482
lt_prog_compiler_static_GCJ='-non_shared'
17486
lt_prog_compiler_static_GCJ='-non_shared'
17490
lt_prog_compiler_pic_GCJ='-KPIC'
17491
lt_prog_compiler_static_GCJ='-Bstatic'
17492
case $cc_basename in
17493
f77* | f90* | f95*)
17494
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17496
lt_prog_compiler_wl_GCJ='-Wl,';;
17501
lt_prog_compiler_wl_GCJ='-Qoption ld '
17502
lt_prog_compiler_pic_GCJ='-PIC'
17503
lt_prog_compiler_static_GCJ='-Bstatic'
17506
sysv4 | sysv4.2uw2* | sysv4.3*)
17507
lt_prog_compiler_wl_GCJ='-Wl,'
17508
lt_prog_compiler_pic_GCJ='-KPIC'
17509
lt_prog_compiler_static_GCJ='-Bstatic'
17513
if test -d /usr/nec ;then
17514
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17515
lt_prog_compiler_static_GCJ='-Bstatic'
17519
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17520
lt_prog_compiler_wl_GCJ='-Wl,'
17521
lt_prog_compiler_pic_GCJ='-KPIC'
17522
lt_prog_compiler_static_GCJ='-Bstatic'
17526
lt_prog_compiler_wl_GCJ='-Wl,'
17527
lt_prog_compiler_can_build_shared_GCJ=no
17531
lt_prog_compiler_pic_GCJ='-pic'
17532
lt_prog_compiler_static_GCJ='-Bstatic'
17536
lt_prog_compiler_can_build_shared_GCJ=no
17541
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17542
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17545
# Check to make sure the PIC flag actually works.
17547
if test -n "$lt_prog_compiler_pic_GCJ"; then
17549
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17550
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17551
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17552
$as_echo_n "(cached) " >&6
17554
lt_cv_prog_compiler_pic_works_GCJ=no
17555
ac_outfile=conftest.$ac_objext
17556
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17557
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17558
# Insert the option either (1) after the last *FLAGS variable, or
17559
# (2) before a word containing "conftest.", or (3) at the end.
17560
# Note that $ac_compile itself does not contain backslashes and begins
17561
# with a dollar sign (not a hyphen), so the echo should work correctly.
17562
# The option is referenced via a variable to avoid confusing sed.
17563
lt_compile=`echo "$ac_compile" | $SED \
17564
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17565
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17566
-e 's:$: $lt_compiler_flag:'`
17567
(eval echo "\"\$as_me:17567: $lt_compile\"" >&5)
17568
(eval "$lt_compile" 2>conftest.err)
17570
cat conftest.err >&5
17571
echo "$as_me:17571: \$? = $ac_status" >&5
17572
if (exit $ac_status) && test -s "$ac_outfile"; then
17573
# The compiler can only warn and ignore the option if not recognized
17574
# So say no if there are warnings other than the usual output.
17575
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17576
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17577
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17578
lt_cv_prog_compiler_pic_works_GCJ=yes
17584
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17585
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17587
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17588
case $lt_prog_compiler_pic_GCJ in
17590
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17593
lt_prog_compiler_pic_GCJ=
17594
lt_prog_compiler_can_build_shared_GCJ=no
17599
# For platforms which do not support PIC, -DPIC is meaningless:
17601
lt_prog_compiler_pic_GCJ=
17604
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17609
# Check to make sure the static flag actually works.
17611
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17612
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17613
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17614
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17615
$as_echo_n "(cached) " >&6
17617
lt_cv_prog_compiler_static_works_GCJ=no
17618
save_LDFLAGS="$LDFLAGS"
17619
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17620
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17621
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17622
# The linker can only warn and ignore the option if not recognized
17623
# So say no if there are warnings
17624
if test -s conftest.err; then
17625
# Append any errors to the config.log.
17626
cat conftest.err 1>&5
17627
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17628
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17629
if diff conftest.exp conftest.er2 >/dev/null; then
17630
lt_cv_prog_compiler_static_works_GCJ=yes
17633
lt_cv_prog_compiler_static_works_GCJ=yes
17637
LDFLAGS="$save_LDFLAGS"
17640
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17641
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17643
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17646
lt_prog_compiler_static_GCJ=
17650
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17651
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17652
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17653
$as_echo_n "(cached) " >&6
17655
lt_cv_prog_compiler_c_o_GCJ=no
17656
$rm -r conftest 2>/dev/null
17660
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17662
lt_compiler_flag="-o out/conftest2.$ac_objext"
17663
# Insert the option either (1) after the last *FLAGS variable, or
17664
# (2) before a word containing "conftest.", or (3) at the end.
17665
# Note that $ac_compile itself does not contain backslashes and begins
17666
# with a dollar sign (not a hyphen), so the echo should work correctly.
17667
lt_compile=`echo "$ac_compile" | $SED \
17668
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17669
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17670
-e 's:$: $lt_compiler_flag:'`
17671
(eval echo "\"\$as_me:17671: $lt_compile\"" >&5)
17672
(eval "$lt_compile" 2>out/conftest.err)
17674
cat out/conftest.err >&5
17675
echo "$as_me:17675: \$? = $ac_status" >&5
17676
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17678
# The compiler can only warn and ignore the option if not recognized
17679
# So say no if there are warnings
17680
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17681
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17682
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17683
lt_cv_prog_compiler_c_o_GCJ=yes
17688
# SGI C++ compiler will create directory out/ii_files/ for
17689
# template instantiation
17690
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17691
$rm out/* && rmdir out
17697
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17698
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17701
hard_links="nottested"
17702
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17703
# do not overwrite the value of need_locks provided by the user
17704
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17705
$as_echo_n "checking if we can lock with hard links... " >&6; }
17708
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17710
ln conftest.a conftest.b 2>&5 || hard_links=no
17711
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17712
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17713
$as_echo "$hard_links" >&6; }
17714
if test "$hard_links" = no; then
17715
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17716
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17723
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17724
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17727
allow_undefined_flag_GCJ=
17728
enable_shared_with_static_runtimes_GCJ=no
17730
archive_expsym_cmds_GCJ=
17731
old_archive_From_new_cmds_GCJ=
17732
old_archive_from_expsyms_cmds_GCJ=
17733
export_dynamic_flag_spec_GCJ=
17734
whole_archive_flag_spec_GCJ=
17735
thread_safe_flag_spec_GCJ=
17736
hardcode_libdir_flag_spec_GCJ=
17737
hardcode_libdir_flag_spec_ld_GCJ=
17738
hardcode_libdir_separator_GCJ=
17739
hardcode_direct_GCJ=no
17740
hardcode_minus_L_GCJ=no
17741
hardcode_shlibpath_var_GCJ=unsupported
17742
link_all_deplibs_GCJ=unknown
17743
hardcode_automatic_GCJ=no
17745
module_expsym_cmds_GCJ=
17746
always_export_symbols_GCJ=no
17747
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17748
# include_expsyms should be a list of space-separated symbols to be *always*
17749
# included in the symbol list
17750
include_expsyms_GCJ=
17751
# exclude_expsyms can be an extended regexp of symbols to exclude
17752
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17753
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17754
# as well as any symbol that contains `d'.
17755
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17756
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17757
# platforms (ab)use it in PIC code, but their linkers get confused if
17758
# the symbol is explicitly referenced. Since portable code cannot
17759
# rely on this symbol name, it's probably fine to never include it in
17760
# preloaded symbol tables.
17761
# Exclude shared library initialization/finalization symbols.
17762
extract_expsyms_cmds=
17763
# Just being paranoid about ensuring that cc_basename is set.
17764
for cc_temp in $compiler""; do
17766
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17767
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17772
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17775
cygwin* | mingw* | pw32*)
17776
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17777
# When not using gcc, we currently assume that we are using
17778
# Microsoft Visual C++.
17779
if test "$GCC" != yes; then
17784
# we just hope/assume this is gcc and not c89 (= MSVC++)
17793
if test "$with_gnu_ld" = yes; then
17794
# If archive_cmds runs LD, not CC, wlarc should be empty
17797
# Set some defaults for GNU ld with shared library support. These
17798
# are reset later if shared libraries are not supported. Putting them
17799
# here allows them to be overridden if necessary.
17800
runpath_var=LD_RUN_PATH
17801
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17802
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17803
# ancient GNU ld didn't support --whole-archive et. al.
17804
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17805
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17807
whole_archive_flag_spec_GCJ=
17809
supports_anon_versioning=no
17810
case `$LD -v 2>/dev/null` in
17811
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17812
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17813
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17814
*\ 2.11.*) ;; # other 2.11 versions
17815
*) supports_anon_versioning=yes ;;
17818
# See if GNU ld supports shared libraries.
17821
# On AIX/PPC, the GNU linker is very broken
17822
if test "$host_cpu" != ia64; then
17826
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17827
*** to be unable to reliably create shared libraries on AIX.
17828
*** Therefore, libtool is disabling shared libraries support. If you
17829
*** really care for shared libraries, you may want to modify your PATH
17830
*** so that a non-GNU linker is found, and then restart.
17837
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)'
17838
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17839
hardcode_minus_L_GCJ=yes
17841
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17842
# that the semantics of dynamic libraries on AmigaOS, at least up
17843
# to version 4, is to share data among multiple programs linked
17844
# with the same dynamic library. Since this doesn't match the
17845
# behavior of shared libraries on other platforms, we can't use
17851
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17852
allow_undefined_flag_GCJ=unsupported
17853
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17854
# support --undefined. This deserves some investigation. FIXME
17855
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17861
cygwin* | mingw* | pw32*)
17862
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17863
# as there is no search path for DLLs.
17864
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17865
allow_undefined_flag_GCJ=unsupported
17866
always_export_symbols_GCJ=no
17867
enable_shared_with_static_runtimes_GCJ=yes
17868
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17870
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17871
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17872
# If the export-symbols file already is a .def file (1st line
17873
# is EXPORTS), use it as is; otherwise, prepend...
17874
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17875
cp $export_symbols $output_objdir/$soname.def;
17877
echo EXPORTS > $output_objdir/$soname.def;
17878
cat $export_symbols >> $output_objdir/$soname.def;
17880
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17887
hardcode_direct_GCJ=no
17888
hardcode_shlibpath_var_GCJ=no
17889
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17890
export_dynamic_flag_spec_GCJ='${wl}-E'
17891
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17892
# Instead, shared libraries are loaded at an image base (0x10000000 by
17893
# default) and relocated if they conflict, which is a slow very memory
17894
# consuming and fragmenting process. To avoid this, we pick a random,
17895
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17896
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17897
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'
17898
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'
17901
gnu* | linux* | k*bsd*-gnu)
17902
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17904
case $cc_basename,$host_cpu in
17905
pgcc*) # Portland Group C compiler
17906
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'
17907
tmp_addflag=' $pic_flag'
17909
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17910
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'
17911
tmp_addflag=' $pic_flag -Mnomain' ;;
17912
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17913
tmp_addflag=' -i_dynamic' ;;
17914
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17915
tmp_addflag=' -i_dynamic -nofor_main' ;;
17916
ifc* | ifort*) # Intel Fortran compiler
17917
tmp_addflag=' -nofor_main' ;;
17919
case `$CC -V 2>&1 | sed 5q` in
17920
*Sun\ C*) # Sun C 5.9
17921
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'
17922
tmp_sharedflag='-G' ;;
17923
*Sun\ F*) # Sun Fortran 8.3
17924
tmp_sharedflag='-G' ;;
17926
tmp_sharedflag='-shared' ;;
17928
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17930
if test $supports_anon_versioning = yes; then
17931
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17932
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17933
$echo "local: *; };" >> $output_objdir/$libname.ver~
17934
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17936
link_all_deplibs_GCJ=no
17943
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17944
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17947
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17948
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17953
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17957
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17958
*** create shared libraries on Solaris systems. Therefore, libtool
17959
*** is disabling shared libraries support. We urge you to upgrade GNU
17960
*** binutils to release 2.9.1 or newer. Another option is to modify
17961
*** your PATH or compiler configuration so that the native linker is
17962
*** used, and then restart.
17965
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17966
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17967
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17973
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17974
case `$LD -v 2>&1` in
17975
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17979
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17980
*** reliably create shared libraries on SCO systems. Therefore, libtool
17981
*** is disabling shared libraries support. We urge you to upgrade GNU
17982
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17983
*** your PATH or compiler configuration so that the native linker is
17984
*** used, and then restart.
17989
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17990
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17991
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17992
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18001
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18003
hardcode_direct_GCJ=yes
18004
hardcode_shlibpath_var_GCJ=no
18008
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18009
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18010
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18017
if test "$ld_shlibs_GCJ" = no; then
18019
hardcode_libdir_flag_spec_GCJ=
18020
export_dynamic_flag_spec_GCJ=
18021
whole_archive_flag_spec_GCJ=
18024
# PORTME fill in a description of your system's linker (not GNU ld)
18027
allow_undefined_flag_GCJ=unsupported
18028
always_export_symbols_GCJ=yes
18029
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'
18030
# Note: this linker hardcodes the directories in LIBPATH if there
18031
# are no directories specified by -L.
18032
hardcode_minus_L_GCJ=yes
18033
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18034
# Neither direct hardcoding nor static linking is supported with a
18036
hardcode_direct_GCJ=unsupported
18041
if test "$host_cpu" = ia64; then
18042
# On IA64, the linker does run time linking by default, so we don't
18043
# have to do anything special.
18044
aix_use_runtimelinking=no
18045
exp_sym_flag='-Bexport'
18048
# If we're using GNU nm, then we don't want the "-C" option.
18049
# -C means demangle to AIX nm, but means don't demangle with GNU nm
18050
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18051
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'
18053
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'
18055
aix_use_runtimelinking=no
18057
# Test if we are trying to use run time linking or normal
18058
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18059
# need to do runtime linking.
18060
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18061
for ld_flag in $LDFLAGS; do
18062
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18063
aix_use_runtimelinking=yes
18070
exp_sym_flag='-bexport'
18071
no_entry_flag='-bnoentry'
18074
# When large executables or shared objects are built, AIX ld can
18075
# have problems creating the table of contents. If linking a library
18076
# or program results in "error TOC overflow" add -mminimal-toc to
18077
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18078
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18080
archive_cmds_GCJ=''
18081
hardcode_direct_GCJ=yes
18082
hardcode_libdir_separator_GCJ=':'
18083
link_all_deplibs_GCJ=yes
18085
if test "$GCC" = yes; then
18086
case $host_os in aix4.[012]|aix4.[012].*)
18087
# We only want to do this on AIX 4.2 and lower, the check
18088
# below for broken collect2 doesn't work under 4.3+
18089
collect2name=`${CC} -print-prog-name=collect2`
18090
if test -f "$collect2name" && \
18091
strings "$collect2name" | grep resolve_lib_name >/dev/null
18093
# We have reworked collect2
18096
# We have old collect2
18097
hardcode_direct_GCJ=unsupported
18098
# It fails to find uninstalled libraries when the uninstalled
18099
# path is not listed in the libpath. Setting hardcode_minus_L
18100
# to unsupported forces relinking
18101
hardcode_minus_L_GCJ=yes
18102
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18103
hardcode_libdir_separator_GCJ=
18107
shared_flag='-shared'
18108
if test "$aix_use_runtimelinking" = yes; then
18109
shared_flag="$shared_flag "'${wl}-G'
18113
if test "$host_cpu" = ia64; then
18114
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18115
# chokes on -Wl,-G. The following line is correct:
18118
if test "$aix_use_runtimelinking" = yes; then
18119
shared_flag='${wl}-G'
18121
shared_flag='${wl}-bM:SRE'
18126
# It seems that -bexpall does not export symbols beginning with
18127
# underscore (_), so it is better to generate a list of symbols to export.
18128
always_export_symbols_GCJ=yes
18129
if test "$aix_use_runtimelinking" = yes; then
18130
# Warning - without using the other runtime loading flags (-brtl),
18131
# -berok will link without error, but may produce a broken library.
18132
allow_undefined_flag_GCJ='-berok'
18133
# Determine the default libpath from the value encoded in an empty executable.
18134
cat >conftest.$ac_ext <<_ACEOF
18137
cat confdefs.h >>conftest.$ac_ext
18138
cat >>conftest.$ac_ext <<_ACEOF
18139
/* end confdefs.h. */
18149
rm -f conftest.$ac_objext conftest$ac_exeext
18150
if { (ac_try="$ac_link"
18151
case "(($ac_try" in
18152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153
*) ac_try_echo=$ac_try;;
18155
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18156
$as_echo "$ac_try_echo") >&5
18157
(eval "$ac_link") 2>conftest.er1
18159
grep -v '^ *+' conftest.er1 >conftest.err
18161
cat conftest.err >&5
18162
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163
(exit $ac_status); } && {
18164
test -z "$ac_c_werror_flag" ||
18165
test ! -s conftest.err
18166
} && test -s conftest$ac_exeext && {
18167
test "$cross_compiling" = yes ||
18168
$as_test_x conftest$ac_exeext
18171
lt_aix_libpath_sed='
18172
/Import File Strings/,/^$/ {
18178
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18179
# Check for a 64-bit object if we didn't find anything.
18180
if test -z "$aix_libpath"; then
18181
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18184
$as_echo "$as_me: failed program was:" >&5
18185
sed 's/^/| /' conftest.$ac_ext >&5
18190
rm -rf conftest.dSYM
18191
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18192
conftest$ac_exeext conftest.$ac_ext
18193
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18195
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18196
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"
18198
if test "$host_cpu" = ia64; then
18199
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18200
allow_undefined_flag_GCJ="-z nodefs"
18201
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"
18203
# Determine the default libpath from the value encoded in an empty executable.
18204
cat >conftest.$ac_ext <<_ACEOF
18207
cat confdefs.h >>conftest.$ac_ext
18208
cat >>conftest.$ac_ext <<_ACEOF
18209
/* end confdefs.h. */
18219
rm -f conftest.$ac_objext conftest$ac_exeext
18220
if { (ac_try="$ac_link"
18221
case "(($ac_try" in
18222
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223
*) ac_try_echo=$ac_try;;
18225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18226
$as_echo "$ac_try_echo") >&5
18227
(eval "$ac_link") 2>conftest.er1
18229
grep -v '^ *+' conftest.er1 >conftest.err
18231
cat conftest.err >&5
18232
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233
(exit $ac_status); } && {
18234
test -z "$ac_c_werror_flag" ||
18235
test ! -s conftest.err
18236
} && test -s conftest$ac_exeext && {
18237
test "$cross_compiling" = yes ||
18238
$as_test_x conftest$ac_exeext
18241
lt_aix_libpath_sed='
18242
/Import File Strings/,/^$/ {
18248
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18249
# Check for a 64-bit object if we didn't find anything.
18250
if test -z "$aix_libpath"; then
18251
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18254
$as_echo "$as_me: failed program was:" >&5
18255
sed 's/^/| /' conftest.$ac_ext >&5
18260
rm -rf conftest.dSYM
18261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18262
conftest$ac_exeext conftest.$ac_ext
18263
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18265
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18266
# Warning - without using the other run time loading flags,
18267
# -berok will link without error, but may produce a broken library.
18268
no_undefined_flag_GCJ=' ${wl}-bernotok'
18269
allow_undefined_flag_GCJ=' ${wl}-berok'
18270
# Exported symbols can be pulled into shared objects from archives
18271
whole_archive_flag_spec_GCJ='$convenience'
18272
archive_cmds_need_lc_GCJ=yes
18273
# This is similar to how AIX traditionally builds its shared libraries.
18274
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'
18280
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)'
18281
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18282
hardcode_minus_L_GCJ=yes
18283
# see comment about different semantics on the GNU ld section
18288
export_dynamic_flag_spec_GCJ=-rdynamic
18291
cygwin* | mingw* | pw32*)
18292
# When not using gcc, we currently assume that we are using
18293
# Microsoft Visual C++.
18294
# hardcode_libdir_flag_spec is actually meaningless, as there is
18295
# no search path for DLLs.
18296
hardcode_libdir_flag_spec_GCJ=' '
18297
allow_undefined_flag_GCJ=unsupported
18298
# Tell ltmain to make .lib files, not .a files.
18300
# Tell ltmain to make .dll files, not .so files.
18302
# FIXME: Setting linknames here is a bad hack.
18303
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18304
# The linker will automatically build a .lib file if we build a DLL.
18305
old_archive_From_new_cmds_GCJ='true'
18306
# FIXME: Should let the user specify the lib program.
18307
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18308
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18309
enable_shared_with_static_runtimes_GCJ=yes
18312
darwin* | rhapsody*)
18314
rhapsody* | darwin1.[012])
18315
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18318
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18319
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18321
case ${MACOSX_DEPLOYMENT_TARGET} in
18323
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18326
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18332
archive_cmds_need_lc_GCJ=no
18333
hardcode_direct_GCJ=no
18334
hardcode_automatic_GCJ=yes
18335
hardcode_shlibpath_var_GCJ=unsupported
18336
whole_archive_flag_spec_GCJ=''
18337
link_all_deplibs_GCJ=yes
18338
if test "$GCC" = yes ; then
18339
output_verbose_link_cmd='echo'
18340
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}"
18341
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18342
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}"
18343
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}"
18345
case $cc_basename in
18347
output_verbose_link_cmd='echo'
18348
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18349
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18350
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18351
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}'
18352
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}'
18362
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18363
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18364
hardcode_shlibpath_var_GCJ=no
18371
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18372
# support. Future versions do this automatically, but an explicit c++rt0.o
18373
# does not break anything, and helps significantly (at the cost of a little
18376
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18377
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18378
hardcode_direct_GCJ=yes
18379
hardcode_shlibpath_var_GCJ=no
18382
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
18384
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18385
hardcode_direct_GCJ=yes
18386
hardcode_minus_L_GCJ=yes
18387
hardcode_shlibpath_var_GCJ=no
18390
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18391
freebsd* | dragonfly*)
18392
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18393
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18394
hardcode_direct_GCJ=yes
18395
hardcode_shlibpath_var_GCJ=no
18399
if test "$GCC" = yes; then
18400
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'
18402
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'
18404
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18405
hardcode_libdir_separator_GCJ=:
18406
hardcode_direct_GCJ=yes
18408
# hardcode_minus_L: Not really in the search PATH,
18409
# but as the default location of the library.
18410
hardcode_minus_L_GCJ=yes
18411
export_dynamic_flag_spec_GCJ='${wl}-E'
18415
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18416
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18418
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18420
if test "$with_gnu_ld" = no; then
18421
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18422
hardcode_libdir_separator_GCJ=:
18424
hardcode_direct_GCJ=yes
18425
export_dynamic_flag_spec_GCJ='${wl}-E'
18427
# hardcode_minus_L: Not really in the search PATH,
18428
# but as the default location of the library.
18429
hardcode_minus_L_GCJ=yes
18434
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18437
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18440
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18443
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18449
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18452
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18455
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18459
if test "$with_gnu_ld" = no; then
18460
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18461
hardcode_libdir_separator_GCJ=:
18465
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18466
hardcode_direct_GCJ=no
18467
hardcode_shlibpath_var_GCJ=no
18470
hardcode_direct_GCJ=yes
18471
export_dynamic_flag_spec_GCJ='${wl}-E'
18473
# hardcode_minus_L: Not really in the search PATH,
18474
# but as the default location of the library.
18475
hardcode_minus_L_GCJ=yes
18481
irix5* | irix6* | nonstopux*)
18482
if test "$GCC" = yes; then
18483
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'
18485
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'
18486
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18488
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18489
hardcode_libdir_separator_GCJ=:
18490
link_all_deplibs_GCJ=yes
18494
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18495
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18497
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18499
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18500
hardcode_direct_GCJ=yes
18501
hardcode_shlibpath_var_GCJ=no
18505
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18506
hardcode_direct_GCJ=yes
18507
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18508
hardcode_libdir_separator_GCJ=:
18509
hardcode_shlibpath_var_GCJ=no
18513
if test -f /usr/libexec/ld.so; then
18514
hardcode_direct_GCJ=yes
18515
hardcode_shlibpath_var_GCJ=no
18516
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18517
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18518
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18519
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18520
export_dynamic_flag_spec_GCJ='${wl}-E'
18523
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18524
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18525
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18528
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18529
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18539
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18540
hardcode_minus_L_GCJ=yes
18541
allow_undefined_flag_GCJ=unsupported
18542
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'
18543
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18547
if test "$GCC" = yes; then
18548
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18549
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'
18551
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18552
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'
18554
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18555
hardcode_libdir_separator_GCJ=:
18558
osf4* | osf5*) # as osf3* with the addition of -msym flag
18559
if test "$GCC" = yes; then
18560
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18561
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'
18562
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18564
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18565
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'
18566
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~
18567
$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'
18569
# Both c and cxx compiler support -rpath directly
18570
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18572
hardcode_libdir_separator_GCJ=:
18576
no_undefined_flag_GCJ=' -z text'
18577
if test "$GCC" = yes; then
18579
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18580
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18581
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18584
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18585
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18586
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18588
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18589
hardcode_shlibpath_var_GCJ=no
18591
solaris2.[0-5] | solaris2.[0-5].*) ;;
18593
# The compiler driver will combine and reorder linker options,
18594
# but understands `-z linker_flag'. GCC discards it without `$wl',
18595
# but is careful enough not to reorder.
18596
# Supported since Solaris 2.6 (maybe 2.5.1?)
18597
if test "$GCC" = yes; then
18598
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18600
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18604
link_all_deplibs_GCJ=yes
18608
if test "x$host_vendor" = xsequent; then
18609
# Use $CC to link under sequent, because it throws in some extra .o
18610
# files that make .init and .fini sections work.
18611
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18613
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18615
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18616
hardcode_direct_GCJ=yes
18617
hardcode_minus_L_GCJ=yes
18618
hardcode_shlibpath_var_GCJ=no
18622
case $host_vendor in
18624
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18625
hardcode_direct_GCJ=yes # is this really true???
18628
## LD is ld it makes a PLAMLIB
18629
## CC just makes a GrossModule.
18630
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18631
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18632
hardcode_direct_GCJ=no
18635
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18636
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18639
runpath_var='LD_RUN_PATH'
18640
hardcode_shlibpath_var_GCJ=no
18644
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18645
hardcode_shlibpath_var_GCJ=no
18646
export_dynamic_flag_spec_GCJ='-Bexport'
18650
if test -d /usr/nec; then
18651
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18652
hardcode_shlibpath_var_GCJ=no
18653
runpath_var=LD_RUN_PATH
18654
hardcode_runpath_var=yes
18659
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18660
no_undefined_flag_GCJ='${wl}-z,text'
18661
archive_cmds_need_lc_GCJ=no
18662
hardcode_shlibpath_var_GCJ=no
18663
runpath_var='LD_RUN_PATH'
18665
if test "$GCC" = yes; then
18666
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18667
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18669
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18670
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18674
sysv5* | sco3.2v5* | sco5v6*)
18675
# Note: We can NOT use -z defs as we might desire, because we do not
18676
# link with -lc, and that would cause any symbols used from libc to
18677
# always be unresolved, which means just about no library would
18678
# ever link correctly. If we're not using GNU ld we use -z text
18679
# though, which does catch some bad symbols but isn't as heavy-handed
18681
no_undefined_flag_GCJ='${wl}-z,text'
18682
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18683
archive_cmds_need_lc_GCJ=no
18684
hardcode_shlibpath_var_GCJ=no
18685
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18686
hardcode_libdir_separator_GCJ=':'
18687
link_all_deplibs_GCJ=yes
18688
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18689
runpath_var='LD_RUN_PATH'
18691
if test "$GCC" = yes; then
18692
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18693
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18695
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18696
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18701
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18702
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18703
hardcode_shlibpath_var_GCJ=no
18712
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18713
$as_echo "$ld_shlibs_GCJ" >&6; }
18714
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18717
# Do we need to explicitly link libc?
18719
case "x$archive_cmds_need_lc_GCJ" in
18721
# Assume -lc should be added
18722
archive_cmds_need_lc_GCJ=yes
18724
if test "$enable_shared" = yes && test "$GCC" = yes; then
18725
case $archive_cmds_GCJ in
18727
# FIXME: we may have to deal with multi-command sequences.
18730
# Test whether the compiler implicitly links with -lc since on some
18731
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18732
# to ld, don't add -lc before -lgcc.
18733
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18734
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18736
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18739
(eval $ac_compile) 2>&5
18741
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742
(exit $ac_status); } 2>conftest.err; then
18745
libobjs=conftest.$ac_objext
18747
wl=$lt_prog_compiler_wl_GCJ
18748
pic_flag=$lt_prog_compiler_pic_GCJ
18754
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18755
allow_undefined_flag_GCJ=
18756
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18757
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18759
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760
(exit $ac_status); }
18762
archive_cmds_need_lc_GCJ=no
18764
archive_cmds_need_lc_GCJ=yes
18766
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18768
cat conftest.err 1>&5
18771
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18772
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18779
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18780
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18781
library_names_spec=
18782
libname_spec='lib$name'
18786
postuninstall_cmds=
18790
shlibpath_overrides_runpath=unknown
18792
dynamic_linker="$host_os ld.so"
18793
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18795
need_lib_prefix=unknown
18796
hardcode_into_libs=no
18798
# when you set need_version to no, make sure it does not cause -set_version
18799
# flags to be left without arguments
18800
need_version=unknown
18805
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18806
shlibpath_var=LIBPATH
18808
# AIX 3 has no versioning support, so we append a major version to the name.
18809
soname_spec='${libname}${release}${shared_ext}$major'
18816
hardcode_into_libs=yes
18817
if test "$host_cpu" = ia64; then
18818
# AIX 5 supports IA64
18819
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18820
shlibpath_var=LD_LIBRARY_PATH
18822
# With GCC up to 2.95.x, collect2 would create an import file
18823
# for dependence libraries. The import file would start with
18824
# the line `#! .'. This would cause the generated library to
18825
# depend on `.', always an invalid library. This was fixed in
18826
# development snapshots of GCC prior to 3.0.
18828
aix4 | aix4.[01] | aix4.[01].*)
18829
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18831
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18834
can_build_shared=no
18838
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18839
# soname into executable. Probably we can add versioning support to
18840
# collect2, so additional links can be useful in future.
18841
if test "$aix_use_runtimelinking" = yes; then
18842
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18843
# instead of lib<name>.a to let people know that these are not
18844
# typical AIX shared libraries.
18845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847
# We preserve .a as extension for shared libraries through AIX4.2
18848
# and later when we are not doing run time linking.
18849
library_names_spec='${libname}${release}.a $libname.a'
18850
soname_spec='${libname}${release}${shared_ext}$major'
18852
shlibpath_var=LIBPATH
18857
library_names_spec='$libname.ixlibrary $libname.a'
18858
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18859
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'
18863
library_names_spec='${libname}${shared_ext}'
18864
dynamic_linker="$host_os ld.so"
18865
shlibpath_var=LIBRARY_PATH
18871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872
soname_spec='${libname}${release}${shared_ext}$major'
18873
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18874
shlibpath_var=LD_LIBRARY_PATH
18875
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18876
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18877
# the default ld.so.conf also contains /usr/contrib/lib and
18878
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18879
# libtool to hard-code these into programs
18882
cygwin* | mingw* | pw32*)
18883
version_type=windows
18888
case $GCC,$host_os in
18889
yes,cygwin* | yes,mingw* | yes,pw32*)
18890
library_names_spec='$libname.dll.a'
18891
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18892
postinstall_cmds='base_file=`basename \${file}`~
18893
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18894
dldir=$destdir/`dirname \$dlpath`~
18895
test -d \$dldir || mkdir -p \$dldir~
18896
$install_prog $dir/$dlname \$dldir/$dlname~
18897
chmod a+x \$dldir/$dlname'
18898
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18899
dlpath=$dir/\$dldll~
18901
shlibpath_overrides_runpath=yes
18905
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18906
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18907
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18910
# MinGW DLLs use traditional 'lib' prefix
18911
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18912
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18913
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18914
# It is most probably a Windows format PATH printed by
18915
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18916
# path with ; separators, and with drive letters. We can handle the
18917
# drive letters (cygwin fileutils understands them), so leave them,
18918
# especially as we might pass files found there to a mingw objdump,
18919
# which wouldn't understand a cygwinified path. Ahh.
18920
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18922
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18926
# pw32 DLLs use 'pw' prefix rather than 'lib'
18927
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18933
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18936
dynamic_linker='Win32 ld.exe'
18937
# FIXME: first we should search . and the directory the executable is in
18941
darwin* | rhapsody*)
18942
dynamic_linker="$host_os dyld"
18943
version_type=darwin
18946
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18947
soname_spec='${libname}${release}${major}$shared_ext'
18948
shlibpath_overrides_runpath=yes
18949
shlibpath_var=DYLD_LIBRARY_PATH
18950
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18952
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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
shlibpath_var=LD_LIBRARY_PATH
18968
freebsd* | dragonfly*)
18969
# DragonFly does not have aout. When/if they implement a new
18970
# versioning mechanism, adjust this.
18971
if test -x /usr/bin/objformat; then
18972
objformat=`/usr/bin/objformat`
18975
freebsd[123]*) objformat=aout ;;
18976
*) objformat=elf ;;
18979
version_type=freebsd-$objformat
18980
case $version_type in
18982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18987
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18991
shlibpath_var=LD_LIBRARY_PATH
18994
shlibpath_overrides_runpath=yes
18996
freebsd3.[01]* | freebsdelf3.[01]*)
18997
shlibpath_overrides_runpath=yes
18998
hardcode_into_libs=yes
19000
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19001
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19002
shlibpath_overrides_runpath=no
19003
hardcode_into_libs=yes
19005
*) # from 4.6 on, and DragonFly
19006
shlibpath_overrides_runpath=yes
19007
hardcode_into_libs=yes
19016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19017
soname_spec='${libname}${release}${shared_ext}$major'
19018
shlibpath_var=LD_LIBRARY_PATH
19019
hardcode_into_libs=yes
19022
hpux9* | hpux10* | hpux11*)
19023
# Give a soname corresponding to the major version so that dld.sl refuses to
19024
# link against other versions.
19031
hardcode_into_libs=yes
19032
dynamic_linker="$host_os dld.so"
19033
shlibpath_var=LD_LIBRARY_PATH
19034
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19036
soname_spec='${libname}${release}${shared_ext}$major'
19037
if test "X$HPUX_IA64_MODE" = X32; then
19038
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19040
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19042
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19046
hardcode_into_libs=yes
19047
dynamic_linker="$host_os dld.sl"
19048
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19049
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19051
soname_spec='${libname}${release}${shared_ext}$major'
19052
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19053
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19057
dynamic_linker="$host_os dld.sl"
19058
shlibpath_var=SHLIB_PATH
19059
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19061
soname_spec='${libname}${release}${shared_ext}$major'
19064
# HP-UX runs *really* slowly unless shared libraries are mode 555.
19065
postinstall_cmds='chmod 555 $lib'
19072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19073
soname_spec='${libname}${release}${shared_ext}$major'
19074
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19075
shlibpath_var=LD_LIBRARY_PATH
19076
shlibpath_overrides_runpath=no
19077
hardcode_into_libs=yes
19080
irix5* | irix6* | nonstopux*)
19082
nonstopux*) version_type=nonstopux ;;
19084
if test "$lt_cv_prog_gnu_ld" = yes; then
19092
soname_spec='${libname}${release}${shared_ext}$major'
19093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19095
irix5* | nonstopux*)
19096
libsuff= shlibsuff=
19099
case $LD in # libtool.m4 will add one of these switches to LD
19100
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19101
libsuff= shlibsuff= libmagic=32-bit;;
19102
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19103
libsuff=32 shlibsuff=N32 libmagic=N32;;
19104
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19105
libsuff=64 shlibsuff=64 libmagic=64-bit;;
19106
*) libsuff= shlibsuff= libmagic=never-match;;
19110
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19111
shlibpath_overrides_runpath=no
19112
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19113
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19114
hardcode_into_libs=yes
19117
# No shared lib support for Linux oldld, aout, or coff.
19118
linux*oldld* | linux*aout* | linux*coff*)
19122
# This must be Linux ELF.
19123
linux* | k*bsd*-gnu)
19127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19128
soname_spec='${libname}${release}${shared_ext}$major'
19129
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19130
shlibpath_var=LD_LIBRARY_PATH
19131
shlibpath_overrides_runpath=no
19132
# This implies no fast_install, which is unacceptable.
19133
# Some rework will be needed to allow for fast_install
19134
# before this can be enabled.
19135
hardcode_into_libs=yes
19137
# find out which ABI we are using
19139
case "$host_cpu" in
19140
x86_64*|s390x*|powerpc64*)
19141
echo '#line 19141 "configure"' > conftest.$ac_ext
19142
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143
(eval $ac_compile) 2>&5
19145
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146
(exit $ac_status); }; then
19147
case `/usr/bin/file conftest.$ac_objext` in
19157
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19159
# Append ld.so.conf contents to the search path
19160
if test -f /etc/ld.so.conf; then
19161
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' ' '`
19162
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19165
# We used to test for /lib/ld.so.1 and disable shared libraries on
19166
# powerpc, because MkLinux only supported shared libraries with the
19167
# GNU dynamic linker. Since this was broken with cross compilers,
19168
# most powerpc-linux boxes support dynamic linking these days and
19169
# people can always --disable-shared, the test was removed, and we
19170
# assume the GNU/Linux dynamic linker is in use.
19171
dynamic_linker='GNU/Linux ld.so'
19178
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19180
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19181
dynamic_linker='NetBSD (a.out) ld.so'
19183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19184
soname_spec='${libname}${release}${shared_ext}$major'
19185
dynamic_linker='NetBSD ld.elf_so'
19187
shlibpath_var=LD_LIBRARY_PATH
19188
shlibpath_overrides_runpath=yes
19189
hardcode_into_libs=yes
19194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19195
shlibpath_var=LD_LIBRARY_PATH
19196
shlibpath_overrides_runpath=yes
19203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19204
soname_spec='${libname}${release}${shared_ext}$major'
19205
shlibpath_var=LD_LIBRARY_PATH
19206
shlibpath_overrides_runpath=yes
19211
sys_lib_dlsearch_path_spec="/usr/lib"
19213
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19215
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19216
*) need_version=no ;;
19218
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19219
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19220
shlibpath_var=LD_LIBRARY_PATH
19221
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19223
openbsd2.[89] | openbsd2.[89].*)
19224
shlibpath_overrides_runpath=no
19227
shlibpath_overrides_runpath=yes
19231
shlibpath_overrides_runpath=yes
19236
libname_spec='$name'
19239
library_names_spec='$libname${shared_ext} $libname.a'
19240
dynamic_linker='OS/2 ld.exe'
19241
shlibpath_var=LIBPATH
19244
osf3* | osf4* | osf5*)
19248
soname_spec='${libname}${release}${shared_ext}$major'
19249
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250
shlibpath_var=LD_LIBRARY_PATH
19251
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19252
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19264
soname_spec='${libname}${release}${shared_ext}$major'
19265
shlibpath_var=LD_LIBRARY_PATH
19266
shlibpath_overrides_runpath=yes
19267
hardcode_into_libs=yes
19268
# ldd complains unless libraries are executable
19269
postinstall_cmds='chmod +x $lib'
19274
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19275
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19276
shlibpath_var=LD_LIBRARY_PATH
19277
shlibpath_overrides_runpath=yes
19278
if test "$with_gnu_ld" = yes; then
19286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19287
soname_spec='${libname}${release}${shared_ext}$major'
19288
shlibpath_var=LD_LIBRARY_PATH
19289
case $host_vendor in
19291
shlibpath_overrides_runpath=no
19293
export_dynamic_flag_spec='${wl}-Blargedynsym'
19294
runpath_var=LD_RUN_PATH
19302
shlibpath_overrides_runpath=no
19303
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19309
if test -d /usr/nec ;then
19311
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19312
soname_spec='$libname${shared_ext}.$major'
19313
shlibpath_var=LD_LIBRARY_PATH
19317
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19318
version_type=freebsd-elf
19321
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19322
soname_spec='${libname}${release}${shared_ext}$major'
19323
shlibpath_var=LD_LIBRARY_PATH
19324
hardcode_into_libs=yes
19325
if test "$with_gnu_ld" = yes; then
19326
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19327
shlibpath_overrides_runpath=no
19329
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19330
shlibpath_overrides_runpath=yes
19333
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19337
sys_lib_dlsearch_path_spec='/usr/lib'
19342
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19343
soname_spec='${libname}${release}${shared_ext}$major'
19344
shlibpath_var=LD_LIBRARY_PATH
19351
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19352
$as_echo "$dynamic_linker" >&6; }
19353
test "$dynamic_linker" = no && can_build_shared=no
19355
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19356
$as_echo_n "(cached) " >&6
19358
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19361
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19362
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19363
$as_echo_n "(cached) " >&6
19365
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19368
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19370
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19371
if test "$GCC" = yes; then
19372
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19375
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19376
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19377
hardcode_action_GCJ=
19378
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19379
test -n "$runpath_var_GCJ" || \
19380
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19382
# We can hardcode non-existant directories.
19383
if test "$hardcode_direct_GCJ" != no &&
19384
# If the only mechanism to avoid hardcoding is shlibpath_var, we
19385
# have to relink, otherwise we might link with an installed library
19386
# when we should be linking with a yet-to-be-installed one
19387
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19388
test "$hardcode_minus_L_GCJ" != no; then
19389
# Linking always hardcodes the temporary library directory.
19390
hardcode_action_GCJ=relink
19392
# We can link without hardcoding, and we can hardcode nonexisting dirs.
19393
hardcode_action_GCJ=immediate
19396
# We cannot hardcode anything, or else we can only hardcode existing
19398
hardcode_action_GCJ=unsupported
19400
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19401
$as_echo "$hardcode_action_GCJ" >&6; }
19403
if test "$hardcode_action_GCJ" = relink; then
19404
# Fast installation is not supported
19405
enable_fast_install=no
19406
elif test "$shlibpath_overrides_runpath" = yes ||
19407
test "$enable_shared" = no; then
19408
# Fast installation is not necessary
19409
enable_fast_install=needless
19413
# The else clause should only fire when bootstrapping the
19414
# libtool distribution, otherwise you forgot to ship ltmain.sh
19415
# with your package, and you will get complaints that there are
19416
# no rules to generate ltmain.sh.
19417
if test -f "$ltmain"; then
19418
# See if we are running on zsh, and set the options which allow our commands through
19419
# without removal of \ escapes.
19420
if test -n "${ZSH_VERSION+set}" ; then
19421
setopt NO_GLOB_SUBST
19423
# Now quote all the things that may contain metacharacters while being
19424
# careful not to overquote the AC_SUBSTed values. We take copies of the
19425
# variables and quote the copies for generation of the libtool script.
19426
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19428
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19429
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19430
deplibs_check_method reload_flag reload_cmds need_locks \
19431
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19432
lt_cv_sys_global_symbol_to_c_name_address \
19433
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19434
old_postinstall_cmds old_postuninstall_cmds \
19438
lt_prog_compiler_wl_GCJ \
19439
lt_prog_compiler_pic_GCJ \
19440
lt_prog_compiler_static_GCJ \
19441
lt_prog_compiler_no_builtin_flag_GCJ \
19442
export_dynamic_flag_spec_GCJ \
19443
thread_safe_flag_spec_GCJ \
19444
whole_archive_flag_spec_GCJ \
19445
enable_shared_with_static_runtimes_GCJ \
19446
old_archive_cmds_GCJ \
19447
old_archive_from_new_cmds_GCJ \
19448
predep_objects_GCJ \
19449
postdep_objects_GCJ \
19452
compiler_lib_search_path_GCJ \
19453
compiler_lib_search_dirs_GCJ \
19455
archive_expsym_cmds_GCJ \
19456
postinstall_cmds_GCJ \
19457
postuninstall_cmds_GCJ \
19458
old_archive_from_expsyms_cmds_GCJ \
19459
allow_undefined_flag_GCJ \
19460
no_undefined_flag_GCJ \
19461
export_symbols_cmds_GCJ \
19462
hardcode_libdir_flag_spec_GCJ \
19463
hardcode_libdir_flag_spec_ld_GCJ \
19464
hardcode_libdir_separator_GCJ \
19465
hardcode_automatic_GCJ \
19467
module_expsym_cmds_GCJ \
19468
lt_cv_prog_compiler_c_o_GCJ \
19469
fix_srcfile_path_GCJ \
19470
exclude_expsyms_GCJ \
19471
include_expsyms_GCJ; do
19474
old_archive_cmds_GCJ | \
19475
old_archive_from_new_cmds_GCJ | \
19476
archive_cmds_GCJ | \
19477
archive_expsym_cmds_GCJ | \
19478
module_cmds_GCJ | \
19479
module_expsym_cmds_GCJ | \
19480
old_archive_from_expsyms_cmds_GCJ | \
19481
export_symbols_cmds_GCJ | \
19482
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19483
postinstall_cmds | postuninstall_cmds | \
19484
old_postinstall_cmds | old_postuninstall_cmds | \
19485
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19486
# Double-quote double-evaled strings.
19487
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19490
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19496
*'\$0 --fallback-echo"')
19497
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19503
cat <<__EOF__ >> "$cfgfile"
19504
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19506
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19508
# Shell to use when invoking shell scripts.
19511
# Whether or not to build shared libraries.
19512
build_libtool_libs=$enable_shared
19514
# Whether or not to build static libraries.
19515
build_old_libs=$enable_static
19517
# Whether or not to add -lc for building shared libraries.
19518
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19520
# Whether or not to disallow shared libs when runtime libs are static
19521
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19523
# Whether or not to optimize for fast installation.
19524
fast_install=$enable_fast_install
19527
host_alias=$host_alias
19531
# The build system.
19532
build_alias=$build_alias
19536
# An echo program that does not interpret backslashes.
19541
AR_FLAGS=$lt_AR_FLAGS
19546
# LTCC compiler flags.
19547
LTCFLAGS=$lt_LTCFLAGS
19549
# A language-specific compiler.
19550
CC=$lt_compiler_GCJ
19552
# Is the compiler the GNU C compiler?
19558
# The linker used to build libraries.
19561
# Whether we need hard or soft links.
19564
# A BSD-compatible nm program.
19567
# A symbol stripping program
19570
# Used to examine libraries when file_magic_cmd begins "file"
19571
MAGIC_CMD=$MAGIC_CMD
19573
# Used on cygwin: DLL creation program.
19576
# Used on cygwin: object dumper.
19579
# Used on cygwin: assembler.
19582
# The name of the directory that contains temporary libtool files.
19585
# How to create reloadable object files.
19586
reload_flag=$lt_reload_flag
19587
reload_cmds=$lt_reload_cmds
19589
# How to pass a linker flag through the compiler.
19590
wl=$lt_lt_prog_compiler_wl_GCJ
19592
# Object file suffix (normally "o").
19593
objext="$ac_objext"
19595
# Old archive suffix (normally "a").
19598
# Shared library suffix (normally ".so").
19599
shrext_cmds='$shrext_cmds'
19601
# Executable file suffix (normally "").
19604
# Additional compiler flags for building library objects.
19605
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19608
# What is the maximum length of a command?
19609
max_cmd_len=$lt_cv_sys_max_cmd_len
19611
# Does compiler simultaneously support -c and -o options?
19612
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19614
# Must we lock files when doing compilation?
19615
need_locks=$lt_need_locks
19617
# Do we need the lib prefix for modules?
19618
need_lib_prefix=$need_lib_prefix
19620
# Do we need a version for libraries?
19621
need_version=$need_version
19623
# Whether dlopen is supported.
19624
dlopen_support=$enable_dlopen
19626
# Whether dlopen of programs is supported.
19627
dlopen_self=$enable_dlopen_self
19629
# Whether dlopen of statically linked programs is supported.
19630
dlopen_self_static=$enable_dlopen_self_static
19632
# Compiler flag to prevent dynamic linking.
19633
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19635
# Compiler flag to turn off builtin functions.
19636
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19638
# Compiler flag to allow reflexive dlopens.
19639
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19641
# Compiler flag to generate shared objects directly from archives.
19642
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19644
# Compiler flag to generate thread-safe objects.
19645
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19647
# Library versioning type.
19648
version_type=$version_type
19650
# Format of library name prefix.
19651
libname_spec=$lt_libname_spec
19653
# List of archive names. First name is the real one, the rest are links.
19654
# The last name is the one that the linker finds with -lNAME.
19655
library_names_spec=$lt_library_names_spec
19657
# The coded name of the library, if different from the real name.
19658
soname_spec=$lt_soname_spec
19660
# Commands used to build and install an old-style archive.
19662
old_archive_cmds=$lt_old_archive_cmds_GCJ
19663
old_postinstall_cmds=$lt_old_postinstall_cmds
19664
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19666
# Create an old-style archive from a shared archive.
19667
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19669
# Create a temporary old-style archive to link instead of a shared archive.
19670
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19672
# Commands used to build and install a shared archive.
19673
archive_cmds=$lt_archive_cmds_GCJ
19674
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19675
postinstall_cmds=$lt_postinstall_cmds
19676
postuninstall_cmds=$lt_postuninstall_cmds
19678
# Commands used to build a loadable module (assumed same as above if empty)
19679
module_cmds=$lt_module_cmds_GCJ
19680
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19682
# Commands to strip libraries.
19683
old_striplib=$lt_old_striplib
19684
striplib=$lt_striplib
19686
# Dependencies to place before the objects being linked to create a
19688
predep_objects=$lt_predep_objects_GCJ
19690
# Dependencies to place after the objects being linked to create a
19692
postdep_objects=$lt_postdep_objects_GCJ
19694
# Dependencies to place before the objects being linked to create a
19696
predeps=$lt_predeps_GCJ
19698
# Dependencies to place after the objects being linked to create a
19700
postdeps=$lt_postdeps_GCJ
19702
# The directories searched by this compiler when creating a shared
19704
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19706
# The library search path used internally by the compiler when linking
19707
# a shared library.
19708
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19710
# Method to check whether dependent libraries are shared objects.
19711
deplibs_check_method=$lt_deplibs_check_method
19713
# Command to use when deplibs_check_method == file_magic.
19714
file_magic_cmd=$lt_file_magic_cmd
19716
# Flag that allows shared libraries with undefined symbols to be built.
19717
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19719
# Flag that forces no undefined symbols.
19720
no_undefined_flag=$lt_no_undefined_flag_GCJ
19722
# Commands used to finish a libtool library installation in a directory.
19723
finish_cmds=$lt_finish_cmds
19725
# Same as above, but a single script fragment to be evaled but not shown.
19726
finish_eval=$lt_finish_eval
19728
# Take the output of nm and produce a listing of raw symbols and C names.
19729
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19731
# Transform the output of nm in a proper C declaration
19732
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19734
# Transform the output of nm in a C name address pair
19735
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19737
# This is the shared library runtime path variable.
19738
runpath_var=$runpath_var
19740
# This is the shared library path variable.
19741
shlibpath_var=$shlibpath_var
19743
# Is shlibpath searched before the hard-coded library search path?
19744
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19746
# How to hardcode a shared library path into an executable.
19747
hardcode_action=$hardcode_action_GCJ
19749
# Whether we should hardcode library paths into libraries.
19750
hardcode_into_libs=$hardcode_into_libs
19752
# Flag to hardcode \$libdir into a binary during linking.
19753
# This must work even if \$libdir does not exist.
19754
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19756
# If ld is used when linking, flag to hardcode \$libdir into
19757
# a binary during linking. This must work even if \$libdir does
19759
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19761
# Whether we need a single -rpath flag with a separated argument.
19762
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19764
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19765
# resulting binary.
19766
hardcode_direct=$hardcode_direct_GCJ
19768
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19769
# resulting binary.
19770
hardcode_minus_L=$hardcode_minus_L_GCJ
19772
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19773
# the resulting binary.
19774
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19776
# Set to yes if building a shared library automatically hardcodes DIR into the library
19777
# and all subsequent libraries and executables linked against it.
19778
hardcode_automatic=$hardcode_automatic_GCJ
19780
# Variables whose values should be saved in libtool wrapper scripts and
19781
# restored at relink time.
19782
variables_saved_for_relink="$variables_saved_for_relink"
19784
# Whether libtool must link a program against all its dependency libraries.
19785
link_all_deplibs=$link_all_deplibs_GCJ
19787
# Compile-time system search path for libraries
19788
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19790
# Run-time system search path for libraries
19791
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19793
# Fix the shell variable \$srcfile for the compiler.
19794
fix_srcfile_path=$lt_fix_srcfile_path
19796
# Set to yes if exported symbols are required.
19797
always_export_symbols=$always_export_symbols_GCJ
19799
# The commands to list exported symbols.
19800
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19802
# The commands to extract the exported symbol list from a shared archive.
19803
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19805
# Symbols that should not be listed in the preloaded symbols.
19806
exclude_expsyms=$lt_exclude_expsyms_GCJ
19808
# Symbols that must always be exported.
19809
include_expsyms=$lt_include_expsyms_GCJ
19811
# ### END LIBTOOL TAG CONFIG: $tagname
19817
# If there is no Makefile yet, we rely on a make rule to execute
19818
# `config.status --recheck' to rerun these tests and create the
19819
# libtool script then.
19820
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19821
if test -f "$ltmain_in"; then
19822
test -f Makefile && make "$ltmain"
19828
ac_cpp='$CPP $CPPFLAGS'
19829
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19830
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19831
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843
# Source file extension for RC test sources.
19846
# Object file extension for compiled RC test sources.
19850
# Code to be used in simple compile tests
19851
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19853
# Code to be used in simple link tests
19854
lt_simple_link_test_code="$lt_simple_compile_test_code"
19856
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19858
# If no C compiler was specified, use CC.
19861
# If no C compiler flags were specified, use CFLAGS.
19862
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19864
# Allow CC to be a program name with arguments.
19868
# save warnings/boilerplate of simple test code
19869
ac_outfile=conftest.$ac_objext
19870
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19871
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19872
_lt_compiler_boilerplate=`cat conftest.err`
19875
ac_outfile=conftest.$ac_objext
19876
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19877
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19878
_lt_linker_boilerplate=`cat conftest.err`
19882
# Allow CC to be a program name with arguments.
19887
for cc_temp in $compiler""; do
19889
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19890
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19895
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19897
lt_cv_prog_compiler_c_o_RC=yes
19899
# The else clause should only fire when bootstrapping the
19900
# libtool distribution, otherwise you forgot to ship ltmain.sh
19901
# with your package, and you will get complaints that there are
19902
# no rules to generate ltmain.sh.
19903
if test -f "$ltmain"; then
19904
# See if we are running on zsh, and set the options which allow our commands through
19905
# without removal of \ escapes.
19906
if test -n "${ZSH_VERSION+set}" ; then
19907
setopt NO_GLOB_SUBST
19909
# Now quote all the things that may contain metacharacters while being
19910
# careful not to overquote the AC_SUBSTed values. We take copies of the
19911
# variables and quote the copies for generation of the libtool script.
19912
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19914
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19915
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19916
deplibs_check_method reload_flag reload_cmds need_locks \
19917
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19918
lt_cv_sys_global_symbol_to_c_name_address \
19919
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19920
old_postinstall_cmds old_postuninstall_cmds \
19924
lt_prog_compiler_wl_RC \
19925
lt_prog_compiler_pic_RC \
19926
lt_prog_compiler_static_RC \
19927
lt_prog_compiler_no_builtin_flag_RC \
19928
export_dynamic_flag_spec_RC \
19929
thread_safe_flag_spec_RC \
19930
whole_archive_flag_spec_RC \
19931
enable_shared_with_static_runtimes_RC \
19932
old_archive_cmds_RC \
19933
old_archive_from_new_cmds_RC \
19934
predep_objects_RC \
19935
postdep_objects_RC \
19938
compiler_lib_search_path_RC \
19939
compiler_lib_search_dirs_RC \
19941
archive_expsym_cmds_RC \
19942
postinstall_cmds_RC \
19943
postuninstall_cmds_RC \
19944
old_archive_from_expsyms_cmds_RC \
19945
allow_undefined_flag_RC \
19946
no_undefined_flag_RC \
19947
export_symbols_cmds_RC \
19948
hardcode_libdir_flag_spec_RC \
19949
hardcode_libdir_flag_spec_ld_RC \
19950
hardcode_libdir_separator_RC \
19951
hardcode_automatic_RC \
19953
module_expsym_cmds_RC \
19954
lt_cv_prog_compiler_c_o_RC \
19955
fix_srcfile_path_RC \
19956
exclude_expsyms_RC \
19957
include_expsyms_RC; do
19960
old_archive_cmds_RC | \
19961
old_archive_from_new_cmds_RC | \
19962
archive_cmds_RC | \
19963
archive_expsym_cmds_RC | \
19965
module_expsym_cmds_RC | \
19966
old_archive_from_expsyms_cmds_RC | \
19967
export_symbols_cmds_RC | \
19968
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19969
postinstall_cmds | postuninstall_cmds | \
19970
old_postinstall_cmds | old_postuninstall_cmds | \
19971
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19972
# Double-quote double-evaled strings.
19973
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19976
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19982
*'\$0 --fallback-echo"')
19983
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19989
cat <<__EOF__ >> "$cfgfile"
19990
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19992
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19994
# Shell to use when invoking shell scripts.
19997
# Whether or not to build shared libraries.
19998
build_libtool_libs=$enable_shared
20000
# Whether or not to build static libraries.
20001
build_old_libs=$enable_static
20003
# Whether or not to add -lc for building shared libraries.
20004
build_libtool_need_lc=$archive_cmds_need_lc_RC
20006
# Whether or not to disallow shared libs when runtime libs are static
20007
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20009
# Whether or not to optimize for fast installation.
20010
fast_install=$enable_fast_install
20013
host_alias=$host_alias
20017
# The build system.
20018
build_alias=$build_alias
20022
# An echo program that does not interpret backslashes.
20027
AR_FLAGS=$lt_AR_FLAGS
20032
# LTCC compiler flags.
20033
LTCFLAGS=$lt_LTCFLAGS
20035
# A language-specific compiler.
20038
# Is the compiler the GNU C compiler?
20044
# The linker used to build libraries.
20047
# Whether we need hard or soft links.
20050
# A BSD-compatible nm program.
20053
# A symbol stripping program
20056
# Used to examine libraries when file_magic_cmd begins "file"
20057
MAGIC_CMD=$MAGIC_CMD
20059
# Used on cygwin: DLL creation program.
20062
# Used on cygwin: object dumper.
20065
# Used on cygwin: assembler.
20068
# The name of the directory that contains temporary libtool files.
20071
# How to create reloadable object files.
20072
reload_flag=$lt_reload_flag
20073
reload_cmds=$lt_reload_cmds
20075
# How to pass a linker flag through the compiler.
20076
wl=$lt_lt_prog_compiler_wl_RC
20078
# Object file suffix (normally "o").
20079
objext="$ac_objext"
20081
# Old archive suffix (normally "a").
20084
# Shared library suffix (normally ".so").
20085
shrext_cmds='$shrext_cmds'
20087
# Executable file suffix (normally "").
20090
# Additional compiler flags for building library objects.
20091
pic_flag=$lt_lt_prog_compiler_pic_RC
20094
# What is the maximum length of a command?
20095
max_cmd_len=$lt_cv_sys_max_cmd_len
20097
# Does compiler simultaneously support -c and -o options?
20098
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20100
# Must we lock files when doing compilation?
20101
need_locks=$lt_need_locks
20103
# Do we need the lib prefix for modules?
20104
need_lib_prefix=$need_lib_prefix
20106
# Do we need a version for libraries?
20107
need_version=$need_version
20109
# Whether dlopen is supported.
20110
dlopen_support=$enable_dlopen
20112
# Whether dlopen of programs is supported.
20113
dlopen_self=$enable_dlopen_self
20115
# Whether dlopen of statically linked programs is supported.
20116
dlopen_self_static=$enable_dlopen_self_static
20118
# Compiler flag to prevent dynamic linking.
20119
link_static_flag=$lt_lt_prog_compiler_static_RC
20121
# Compiler flag to turn off builtin functions.
20122
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20124
# Compiler flag to allow reflexive dlopens.
20125
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20127
# Compiler flag to generate shared objects directly from archives.
20128
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20130
# Compiler flag to generate thread-safe objects.
20131
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20133
# Library versioning type.
20134
version_type=$version_type
20136
# Format of library name prefix.
20137
libname_spec=$lt_libname_spec
20139
# List of archive names. First name is the real one, the rest are links.
20140
# The last name is the one that the linker finds with -lNAME.
20141
library_names_spec=$lt_library_names_spec
20143
# The coded name of the library, if different from the real name.
20144
soname_spec=$lt_soname_spec
20146
# Commands used to build and install an old-style archive.
20148
old_archive_cmds=$lt_old_archive_cmds_RC
20149
old_postinstall_cmds=$lt_old_postinstall_cmds
20150
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20152
# Create an old-style archive from a shared archive.
20153
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20155
# Create a temporary old-style archive to link instead of a shared archive.
20156
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20158
# Commands used to build and install a shared archive.
20159
archive_cmds=$lt_archive_cmds_RC
20160
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20161
postinstall_cmds=$lt_postinstall_cmds
20162
postuninstall_cmds=$lt_postuninstall_cmds
20164
# Commands used to build a loadable module (assumed same as above if empty)
20165
module_cmds=$lt_module_cmds_RC
20166
module_expsym_cmds=$lt_module_expsym_cmds_RC
20168
# Commands to strip libraries.
20169
old_striplib=$lt_old_striplib
20170
striplib=$lt_striplib
20172
# Dependencies to place before the objects being linked to create a
20174
predep_objects=$lt_predep_objects_RC
20176
# Dependencies to place after the objects being linked to create a
20178
postdep_objects=$lt_postdep_objects_RC
20180
# Dependencies to place before the objects being linked to create a
20182
predeps=$lt_predeps_RC
20184
# Dependencies to place after the objects being linked to create a
20186
postdeps=$lt_postdeps_RC
20188
# The directories searched by this compiler when creating a shared
20190
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20192
# The library search path used internally by the compiler when linking
20193
# a shared library.
20194
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20196
# Method to check whether dependent libraries are shared objects.
20197
deplibs_check_method=$lt_deplibs_check_method
20199
# Command to use when deplibs_check_method == file_magic.
20200
file_magic_cmd=$lt_file_magic_cmd
20202
# Flag that allows shared libraries with undefined symbols to be built.
20203
allow_undefined_flag=$lt_allow_undefined_flag_RC
20205
# Flag that forces no undefined symbols.
20206
no_undefined_flag=$lt_no_undefined_flag_RC
20208
# Commands used to finish a libtool library installation in a directory.
20209
finish_cmds=$lt_finish_cmds
20211
# Same as above, but a single script fragment to be evaled but not shown.
20212
finish_eval=$lt_finish_eval
20214
# Take the output of nm and produce a listing of raw symbols and C names.
20215
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20217
# Transform the output of nm in a proper C declaration
20218
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20220
# Transform the output of nm in a C name address pair
20221
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20223
# This is the shared library runtime path variable.
20224
runpath_var=$runpath_var
20226
# This is the shared library path variable.
20227
shlibpath_var=$shlibpath_var
20229
# Is shlibpath searched before the hard-coded library search path?
20230
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20232
# How to hardcode a shared library path into an executable.
20233
hardcode_action=$hardcode_action_RC
20235
# Whether we should hardcode library paths into libraries.
20236
hardcode_into_libs=$hardcode_into_libs
20238
# Flag to hardcode \$libdir into a binary during linking.
20239
# This must work even if \$libdir does not exist.
20240
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20242
# If ld is used when linking, flag to hardcode \$libdir into
20243
# a binary during linking. This must work even if \$libdir does
20245
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20247
# Whether we need a single -rpath flag with a separated argument.
20248
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20250
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20251
# resulting binary.
20252
hardcode_direct=$hardcode_direct_RC
20254
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20255
# resulting binary.
20256
hardcode_minus_L=$hardcode_minus_L_RC
20258
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20259
# the resulting binary.
20260
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20262
# Set to yes if building a shared library automatically hardcodes DIR into the library
20263
# and all subsequent libraries and executables linked against it.
20264
hardcode_automatic=$hardcode_automatic_RC
20266
# Variables whose values should be saved in libtool wrapper scripts and
20267
# restored at relink time.
20268
variables_saved_for_relink="$variables_saved_for_relink"
20270
# Whether libtool must link a program against all its dependency libraries.
20271
link_all_deplibs=$link_all_deplibs_RC
20273
# Compile-time system search path for libraries
20274
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20276
# Run-time system search path for libraries
20277
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20279
# Fix the shell variable \$srcfile for the compiler.
20280
fix_srcfile_path=$lt_fix_srcfile_path
20282
# Set to yes if exported symbols are required.
20283
always_export_symbols=$always_export_symbols_RC
20285
# The commands to list exported symbols.
20286
export_symbols_cmds=$lt_export_symbols_cmds_RC
20288
# The commands to extract the exported symbol list from a shared archive.
20289
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20291
# Symbols that should not be listed in the preloaded symbols.
20292
exclude_expsyms=$lt_exclude_expsyms_RC
20294
# Symbols that must always be exported.
20295
include_expsyms=$lt_include_expsyms_RC
20297
# ### END LIBTOOL TAG CONFIG: $tagname
20303
# If there is no Makefile yet, we rely on a make rule to execute
20304
# `config.status --recheck' to rerun these tests and create the
20305
# libtool script then.
20306
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20307
if test -f "$ltmain_in"; then
20308
test -f Makefile && make "$ltmain"
20314
ac_cpp='$CPP $CPPFLAGS'
20315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20324
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20325
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20326
{ (exit 1); exit 1; }; }
20330
# Append the new tag name to the list of available tags.
20331
if test -n "$tagname" ; then
20332
available_tags="$available_tags $tagname"
20338
# Now substitute the updated list of available tags.
20339
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20340
mv "${ofile}T" "$ofile"
20344
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20345
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20346
{ (exit 1); exit 1; }; }
20352
# This can be used to rebuild libtool when needed
20353
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20355
# Always use our own libtool.
20356
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20358
# Prevent multiple expansion
20380
# Extract the first word of "xmllint", so it can be a program name with args.
20381
set dummy xmllint; ac_word=$2
20382
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20383
$as_echo_n "checking for $ac_word... " >&6; }
20384
if test "${ac_cv_path_XMLLINT+set}" = set; then
20385
$as_echo_n "(cached) " >&6
20389
ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
20392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20393
for as_dir in $PATH
20396
test -z "$as_dir" && as_dir=.
20397
for ac_exec_ext in '' $ac_executable_extensions; do
20398
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20399
ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
20400
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20407
test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="true"
20411
XMLLINT=$ac_cv_path_XMLLINT
20412
if test -n "$XMLLINT"; then
20413
{ $as_echo "$as_me:$LINENO: result: $XMLLINT" >&5
20414
$as_echo "$XMLLINT" >&6; }
20416
{ $as_echo "$as_me:$LINENO: result: no" >&5
20417
$as_echo "no" >&6; }
20423
# Check for C libraries:
20425
ac_cpp='$CXXCPP $CPPFLAGS'
20426
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20427
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20428
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20434
ac_cpp='$CPP $CPPFLAGS'
20435
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20436
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20437
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20440
# Checks for header files.
20441
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20442
$as_echo_n "checking for ANSI C header files... " >&6; }
20443
if test "${ac_cv_header_stdc+set}" = set; then
20444
$as_echo_n "(cached) " >&6
20446
cat >conftest.$ac_ext <<_ACEOF
20449
cat confdefs.h >>conftest.$ac_ext
20450
cat >>conftest.$ac_ext <<_ACEOF
20451
/* end confdefs.h. */
20452
#include <stdlib.h>
20453
#include <stdarg.h>
20454
#include <string.h>
20465
rm -f conftest.$ac_objext
20466
if { (ac_try="$ac_compile"
20467
case "(($ac_try" in
20468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469
*) ac_try_echo=$ac_try;;
20471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20472
$as_echo "$ac_try_echo") >&5
20473
(eval "$ac_compile") 2>conftest.er1
20475
grep -v '^ *+' conftest.er1 >conftest.err
20477
cat conftest.err >&5
20478
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479
(exit $ac_status); } && {
20480
test -z "$ac_c_werror_flag" ||
20481
test ! -s conftest.err
20482
} && test -s conftest.$ac_objext; then
20483
ac_cv_header_stdc=yes
20485
$as_echo "$as_me: failed program was:" >&5
20486
sed 's/^/| /' conftest.$ac_ext >&5
20488
ac_cv_header_stdc=no
20491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493
if test $ac_cv_header_stdc = yes; then
20494
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20495
cat >conftest.$ac_ext <<_ACEOF
20498
cat confdefs.h >>conftest.$ac_ext
20499
cat >>conftest.$ac_ext <<_ACEOF
20500
/* end confdefs.h. */
20501
#include <string.h>
20504
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20505
$EGREP "memchr" >/dev/null 2>&1; then
20508
ac_cv_header_stdc=no
20514
if test $ac_cv_header_stdc = yes; then
20515
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20516
cat >conftest.$ac_ext <<_ACEOF
20519
cat confdefs.h >>conftest.$ac_ext
20520
cat >>conftest.$ac_ext <<_ACEOF
20521
/* end confdefs.h. */
20522
#include <stdlib.h>
20525
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20526
$EGREP "free" >/dev/null 2>&1; then
20529
ac_cv_header_stdc=no
20535
if test $ac_cv_header_stdc = yes; then
20536
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20537
if test "$cross_compiling" = yes; then
20540
cat >conftest.$ac_ext <<_ACEOF
20543
cat confdefs.h >>conftest.$ac_ext
20544
cat >>conftest.$ac_ext <<_ACEOF
20545
/* end confdefs.h. */
20547
#include <stdlib.h>
20548
#if ((' ' & 0x0FF) == 0x020)
20549
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20550
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20552
# define ISLOWER(c) \
20553
(('a' <= (c) && (c) <= 'i') \
20554
|| ('j' <= (c) && (c) <= 'r') \
20555
|| ('s' <= (c) && (c) <= 'z'))
20556
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20559
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20564
for (i = 0; i < 256; i++)
20565
if (XOR (islower (i), ISLOWER (i))
20566
|| toupper (i) != TOUPPER (i))
20571
rm -f conftest$ac_exeext
20572
if { (ac_try="$ac_link"
20573
case "(($ac_try" in
20574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575
*) ac_try_echo=$ac_try;;
20577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20578
$as_echo "$ac_try_echo") >&5
20579
(eval "$ac_link") 2>&5
20581
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20583
{ (case "(($ac_try" in
20584
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585
*) ac_try_echo=$ac_try;;
20587
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20588
$as_echo "$ac_try_echo") >&5
20589
(eval "$ac_try") 2>&5
20591
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592
(exit $ac_status); }; }; then
20595
$as_echo "$as_me: program exited with status $ac_status" >&5
20596
$as_echo "$as_me: failed program was:" >&5
20597
sed 's/^/| /' conftest.$ac_ext >&5
20599
( exit $ac_status )
20600
ac_cv_header_stdc=no
20602
rm -rf conftest.dSYM
20603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20609
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20610
$as_echo "$ac_cv_header_stdc" >&6; }
20611
if test $ac_cv_header_stdc = yes; then
20613
cat >>confdefs.h <<\_ACEOF
20614
#define STDC_HEADERS 1
20620
for ac_header in stdlib.h
20622
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20623
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20624
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20625
$as_echo_n "checking for $ac_header... " >&6; }
20626
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20627
$as_echo_n "(cached) " >&6
20629
ac_res=`eval 'as_val=${'$as_ac_Header'}
20630
$as_echo "$as_val"'`
20631
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20632
$as_echo "$ac_res" >&6; }
20634
# Is the header compilable?
20635
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20636
$as_echo_n "checking $ac_header usability... " >&6; }
20637
cat >conftest.$ac_ext <<_ACEOF
20640
cat confdefs.h >>conftest.$ac_ext
20641
cat >>conftest.$ac_ext <<_ACEOF
20642
/* end confdefs.h. */
20643
$ac_includes_default
20644
#include <$ac_header>
20646
rm -f conftest.$ac_objext
20647
if { (ac_try="$ac_compile"
20648
case "(($ac_try" in
20649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650
*) ac_try_echo=$ac_try;;
20652
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20653
$as_echo "$ac_try_echo") >&5
20654
(eval "$ac_compile") 2>conftest.er1
20656
grep -v '^ *+' conftest.er1 >conftest.err
20658
cat conftest.err >&5
20659
$as_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_header_compiler=yes
20666
$as_echo "$as_me: failed program was:" >&5
20667
sed 's/^/| /' conftest.$ac_ext >&5
20669
ac_header_compiler=no
20672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20674
$as_echo "$ac_header_compiler" >&6; }
20676
# Is the header present?
20677
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20678
$as_echo_n "checking $ac_header presence... " >&6; }
20679
cat >conftest.$ac_ext <<_ACEOF
20682
cat confdefs.h >>conftest.$ac_ext
20683
cat >>conftest.$ac_ext <<_ACEOF
20684
/* end confdefs.h. */
20685
#include <$ac_header>
20687
if { (ac_try="$ac_cpp conftest.$ac_ext"
20688
case "(($ac_try" in
20689
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690
*) ac_try_echo=$ac_try;;
20692
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693
$as_echo "$ac_try_echo") >&5
20694
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20696
grep -v '^ *+' conftest.er1 >conftest.err
20698
cat conftest.err >&5
20699
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700
(exit $ac_status); } >/dev/null && {
20701
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20702
test ! -s conftest.err
20704
ac_header_preproc=yes
20706
$as_echo "$as_me: failed program was:" >&5
20707
sed 's/^/| /' conftest.$ac_ext >&5
20709
ac_header_preproc=no
20712
rm -f conftest.err conftest.$ac_ext
20713
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20714
$as_echo "$ac_header_preproc" >&6; }
20716
# So? What about this header?
20717
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20719
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20720
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20721
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20722
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20723
ac_header_preproc=yes
20726
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20727
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20728
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20729
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20730
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20731
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20732
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20733
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20734
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20735
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20736
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20737
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20739
## ------------------------------------- ##
20740
## Report this to clients@worldforge.org ##
20741
## ------------------------------------- ##
20743
) | sed "s/^/$as_me: WARNING: /" >&2
20746
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20747
$as_echo_n "checking for $ac_header... " >&6; }
20748
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20749
$as_echo_n "(cached) " >&6
20751
eval "$as_ac_Header=\$ac_header_preproc"
20753
ac_res=`eval 'as_val=${'$as_ac_Header'}
20754
$as_echo "$as_val"'`
20755
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20756
$as_echo "$ac_res" >&6; }
20759
as_val=`eval 'as_val=${'$as_ac_Header'}
20760
$as_echo "$as_val"'`
20761
if test "x$as_val" = x""yes; then
20762
cat >>confdefs.h <<_ACEOF
20763
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20771
for ac_header in math.h
20773
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20774
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20775
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20776
$as_echo_n "checking for $ac_header... " >&6; }
20777
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20778
$as_echo_n "(cached) " >&6
20780
ac_res=`eval 'as_val=${'$as_ac_Header'}
20781
$as_echo "$as_val"'`
20782
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20783
$as_echo "$ac_res" >&6; }
20785
# Is the header compilable?
20786
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20787
$as_echo_n "checking $ac_header usability... " >&6; }
20788
cat >conftest.$ac_ext <<_ACEOF
20791
cat confdefs.h >>conftest.$ac_ext
20792
cat >>conftest.$ac_ext <<_ACEOF
20793
/* end confdefs.h. */
20794
$ac_includes_default
20795
#include <$ac_header>
20797
rm -f conftest.$ac_objext
20798
if { (ac_try="$ac_compile"
20799
case "(($ac_try" in
20800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801
*) ac_try_echo=$ac_try;;
20803
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20804
$as_echo "$ac_try_echo") >&5
20805
(eval "$ac_compile") 2>conftest.er1
20807
grep -v '^ *+' conftest.er1 >conftest.err
20809
cat conftest.err >&5
20810
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811
(exit $ac_status); } && {
20812
test -z "$ac_c_werror_flag" ||
20813
test ! -s conftest.err
20814
} && test -s conftest.$ac_objext; then
20815
ac_header_compiler=yes
20817
$as_echo "$as_me: failed program was:" >&5
20818
sed 's/^/| /' conftest.$ac_ext >&5
20820
ac_header_compiler=no
20823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20824
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20825
$as_echo "$ac_header_compiler" >&6; }
20827
# Is the header present?
20828
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20829
$as_echo_n "checking $ac_header presence... " >&6; }
20830
cat >conftest.$ac_ext <<_ACEOF
20833
cat confdefs.h >>conftest.$ac_ext
20834
cat >>conftest.$ac_ext <<_ACEOF
20835
/* end confdefs.h. */
20836
#include <$ac_header>
20838
if { (ac_try="$ac_cpp conftest.$ac_ext"
20839
case "(($ac_try" in
20840
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841
*) ac_try_echo=$ac_try;;
20843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20844
$as_echo "$ac_try_echo") >&5
20845
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20847
grep -v '^ *+' conftest.er1 >conftest.err
20849
cat conftest.err >&5
20850
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851
(exit $ac_status); } >/dev/null && {
20852
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20853
test ! -s conftest.err
20855
ac_header_preproc=yes
20857
$as_echo "$as_me: failed program was:" >&5
20858
sed 's/^/| /' conftest.$ac_ext >&5
20860
ac_header_preproc=no
20863
rm -f conftest.err conftest.$ac_ext
20864
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20865
$as_echo "$ac_header_preproc" >&6; }
20867
# So? What about this header?
20868
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20870
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20871
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20872
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20873
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20874
ac_header_preproc=yes
20877
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20878
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20879
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20880
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20881
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20882
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20883
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20884
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20885
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20886
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20887
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20888
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20890
## ------------------------------------- ##
20891
## Report this to clients@worldforge.org ##
20892
## ------------------------------------- ##
20894
) | sed "s/^/$as_me: WARNING: /" >&2
20897
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20898
$as_echo_n "checking for $ac_header... " >&6; }
20899
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20900
$as_echo_n "(cached) " >&6
20902
eval "$as_ac_Header=\$ac_header_preproc"
20904
ac_res=`eval 'as_val=${'$as_ac_Header'}
20905
$as_echo "$as_val"'`
20906
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20907
$as_echo "$ac_res" >&6; }
20910
as_val=`eval 'as_val=${'$as_ac_Header'}
20911
$as_echo "$as_val"'`
20912
if test "x$as_val" = x""yes; then
20913
cat >>confdefs.h <<_ACEOF
20914
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20922
for ac_header in signal.h
20924
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20925
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20926
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20927
$as_echo_n "checking for $ac_header... " >&6; }
20928
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20929
$as_echo_n "(cached) " >&6
20931
ac_res=`eval 'as_val=${'$as_ac_Header'}
20932
$as_echo "$as_val"'`
20933
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20934
$as_echo "$ac_res" >&6; }
20936
# Is the header compilable?
20937
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20938
$as_echo_n "checking $ac_header usability... " >&6; }
20939
cat >conftest.$ac_ext <<_ACEOF
20942
cat confdefs.h >>conftest.$ac_ext
20943
cat >>conftest.$ac_ext <<_ACEOF
20944
/* end confdefs.h. */
20945
$ac_includes_default
20946
#include <$ac_header>
20948
rm -f conftest.$ac_objext
20949
if { (ac_try="$ac_compile"
20950
case "(($ac_try" in
20951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952
*) ac_try_echo=$ac_try;;
20954
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20955
$as_echo "$ac_try_echo") >&5
20956
(eval "$ac_compile") 2>conftest.er1
20958
grep -v '^ *+' conftest.er1 >conftest.err
20960
cat conftest.err >&5
20961
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962
(exit $ac_status); } && {
20963
test -z "$ac_c_werror_flag" ||
20964
test ! -s conftest.err
20965
} && test -s conftest.$ac_objext; then
20966
ac_header_compiler=yes
20968
$as_echo "$as_me: failed program was:" >&5
20969
sed 's/^/| /' conftest.$ac_ext >&5
20971
ac_header_compiler=no
20974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20976
$as_echo "$ac_header_compiler" >&6; }
20978
# Is the header present?
20979
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20980
$as_echo_n "checking $ac_header presence... " >&6; }
20981
cat >conftest.$ac_ext <<_ACEOF
20984
cat confdefs.h >>conftest.$ac_ext
20985
cat >>conftest.$ac_ext <<_ACEOF
20986
/* end confdefs.h. */
20987
#include <$ac_header>
20989
if { (ac_try="$ac_cpp conftest.$ac_ext"
20990
case "(($ac_try" in
20991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992
*) ac_try_echo=$ac_try;;
20994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20995
$as_echo "$ac_try_echo") >&5
20996
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20998
grep -v '^ *+' conftest.er1 >conftest.err
21000
cat conftest.err >&5
21001
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002
(exit $ac_status); } >/dev/null && {
21003
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21004
test ! -s conftest.err
21006
ac_header_preproc=yes
21008
$as_echo "$as_me: failed program was:" >&5
21009
sed 's/^/| /' conftest.$ac_ext >&5
21011
ac_header_preproc=no
21014
rm -f conftest.err conftest.$ac_ext
21015
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21016
$as_echo "$ac_header_preproc" >&6; }
21018
# So? What about this header?
21019
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21021
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21022
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21023
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21024
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21025
ac_header_preproc=yes
21028
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21029
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21030
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21031
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21032
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21033
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21034
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21035
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21036
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21037
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21038
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21039
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21041
## ------------------------------------- ##
21042
## Report this to clients@worldforge.org ##
21043
## ------------------------------------- ##
21045
) | sed "s/^/$as_me: WARNING: /" >&2
21048
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21049
$as_echo_n "checking for $ac_header... " >&6; }
21050
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21051
$as_echo_n "(cached) " >&6
21053
eval "$as_ac_Header=\$ac_header_preproc"
21055
ac_res=`eval 'as_val=${'$as_ac_Header'}
21056
$as_echo "$as_val"'`
21057
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21058
$as_echo "$ac_res" >&6; }
21061
as_val=`eval 'as_val=${'$as_ac_Header'}
21062
$as_echo "$as_val"'`
21063
if test "x$as_val" = x""yes; then
21064
cat >>confdefs.h <<_ACEOF
21065
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21073
# Checks for typedefs, structures, and compiler characteristics.
21074
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21075
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21076
if test "${ac_cv_c_const+set}" = set; then
21077
$as_echo_n "(cached) " >&6
21079
cat >conftest.$ac_ext <<_ACEOF
21082
cat confdefs.h >>conftest.$ac_ext
21083
cat >>conftest.$ac_ext <<_ACEOF
21084
/* end confdefs.h. */
21089
/* FIXME: Include the comments suggested by Paul. */
21090
#ifndef __cplusplus
21091
/* Ultrix mips cc rejects this. */
21092
typedef int charset[2];
21094
/* SunOS 4.1.1 cc rejects this. */
21095
char const *const *pcpcc;
21097
/* NEC SVR4.0.2 mips cc rejects this. */
21098
struct point {int x, y;};
21099
static struct point const zero = {0,0};
21100
/* AIX XL C 1.02.0.0 rejects this.
21101
It does not let you subtract one const X* pointer from another in
21102
an arm of an if-expression whose if-part is not a constant
21104
const char *g = "string";
21105
pcpcc = &g + (g ? g-g : 0);
21106
/* HPUX 7.0 cc rejects these. */
21108
ppc = (char**) pcpcc;
21109
pcpcc = (char const *const *) ppc;
21110
{ /* SCO 3.2v4 cc rejects this. */
21112
char const *s = 0 ? (char *) 0 : (char const *) 0;
21117
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21118
int x[] = {25, 17};
21119
const int *foo = &x[0];
21122
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21123
typedef const int *iptr;
21127
{ /* AIX XL C 1.02.0.0 rejects this saying
21128
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21129
struct s { int j; const int *ap[3]; };
21130
struct s *b; b->j = 5;
21132
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21133
const int foo = 10;
21134
if (!foo) return 0;
21136
return !cs[0] && !zero.x;
21143
rm -f conftest.$ac_objext
21144
if { (ac_try="$ac_compile"
21145
case "(($ac_try" in
21146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147
*) ac_try_echo=$ac_try;;
21149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21150
$as_echo "$ac_try_echo") >&5
21151
(eval "$ac_compile") 2>conftest.er1
21153
grep -v '^ *+' conftest.er1 >conftest.err
21155
cat conftest.err >&5
21156
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157
(exit $ac_status); } && {
21158
test -z "$ac_c_werror_flag" ||
21159
test ! -s conftest.err
21160
} && test -s conftest.$ac_objext; then
21163
$as_echo "$as_me: failed program was:" >&5
21164
sed 's/^/| /' conftest.$ac_ext >&5
21169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21172
$as_echo "$ac_cv_c_const" >&6; }
21173
if test $ac_cv_c_const = no; then
21175
cat >>confdefs.h <<\_ACEOF
21181
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
21182
$as_echo_n "checking for inline... " >&6; }
21183
if test "${ac_cv_c_inline+set}" = set; then
21184
$as_echo_n "(cached) " >&6
21187
for ac_kw in inline __inline__ __inline; do
21188
cat >conftest.$ac_ext <<_ACEOF
21191
cat confdefs.h >>conftest.$ac_ext
21192
cat >>conftest.$ac_ext <<_ACEOF
21193
/* end confdefs.h. */
21194
#ifndef __cplusplus
21196
static $ac_kw foo_t static_foo () {return 0; }
21197
$ac_kw foo_t foo () {return 0; }
21201
rm -f conftest.$ac_objext
21202
if { (ac_try="$ac_compile"
21203
case "(($ac_try" in
21204
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205
*) ac_try_echo=$ac_try;;
21207
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21208
$as_echo "$ac_try_echo") >&5
21209
(eval "$ac_compile") 2>conftest.er1
21211
grep -v '^ *+' conftest.er1 >conftest.err
21213
cat conftest.err >&5
21214
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215
(exit $ac_status); } && {
21216
test -z "$ac_c_werror_flag" ||
21217
test ! -s conftest.err
21218
} && test -s conftest.$ac_objext; then
21219
ac_cv_c_inline=$ac_kw
21221
$as_echo "$as_me: failed program was:" >&5
21222
sed 's/^/| /' conftest.$ac_ext >&5
21227
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228
test "$ac_cv_c_inline" != no && break
21232
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21233
$as_echo "$ac_cv_c_inline" >&6; }
21236
case $ac_cv_c_inline in
21239
case $ac_cv_c_inline in
21241
*) ac_val=$ac_cv_c_inline;;
21243
cat >>confdefs.h <<_ACEOF
21244
#ifndef __cplusplus
21245
#define inline $ac_val
21251
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21252
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21253
if test "${ac_cv_struct_tm+set}" = set; then
21254
$as_echo_n "(cached) " >&6
21256
cat >conftest.$ac_ext <<_ACEOF
21259
cat confdefs.h >>conftest.$ac_ext
21260
cat >>conftest.$ac_ext <<_ACEOF
21261
/* end confdefs.h. */
21262
#include <sys/types.h>
21269
int *p = &tm.tm_sec;
21275
rm -f conftest.$ac_objext
21276
if { (ac_try="$ac_compile"
21277
case "(($ac_try" in
21278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279
*) ac_try_echo=$ac_try;;
21281
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21282
$as_echo "$ac_try_echo") >&5
21283
(eval "$ac_compile") 2>conftest.er1
21285
grep -v '^ *+' conftest.er1 >conftest.err
21287
cat conftest.err >&5
21288
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289
(exit $ac_status); } && {
21290
test -z "$ac_c_werror_flag" ||
21291
test ! -s conftest.err
21292
} && test -s conftest.$ac_objext; then
21293
ac_cv_struct_tm=time.h
21295
$as_echo "$as_me: failed program was:" >&5
21296
sed 's/^/| /' conftest.$ac_ext >&5
21298
ac_cv_struct_tm=sys/time.h
21301
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21304
$as_echo "$ac_cv_struct_tm" >&6; }
21305
if test $ac_cv_struct_tm = sys/time.h; then
21307
cat >>confdefs.h <<\_ACEOF
21308
#define TM_IN_SYS_TIME 1
21314
# check sighandler_t in C++
21316
ac_cpp='$CXXCPP $CPPFLAGS'
21317
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21321
{ $as_echo "$as_me:$LINENO: checking for sighandler_t" >&5
21322
$as_echo_n "checking for sighandler_t... " >&6; }
21323
if test "${ac_cv_type_sighandler_t+set}" = set; then
21324
$as_echo_n "(cached) " >&6
21326
ac_cv_type_sighandler_t=no
21327
cat >conftest.$ac_ext <<_ACEOF
21330
cat confdefs.h >>conftest.$ac_ext
21331
cat >>conftest.$ac_ext <<_ACEOF
21332
/* end confdefs.h. */
21334
#ifdef HAVE_SIGNAL_H
21335
# include <signal.h>
21341
if (sizeof (sighandler_t))
21347
rm -f conftest.$ac_objext
21348
if { (ac_try="$ac_compile"
21349
case "(($ac_try" in
21350
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351
*) ac_try_echo=$ac_try;;
21353
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21354
$as_echo "$ac_try_echo") >&5
21355
(eval "$ac_compile") 2>conftest.er1
21357
grep -v '^ *+' conftest.er1 >conftest.err
21359
cat conftest.err >&5
21360
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361
(exit $ac_status); } && {
21362
test -z "$ac_cxx_werror_flag" ||
21363
test ! -s conftest.err
21364
} && test -s conftest.$ac_objext; then
21365
cat >conftest.$ac_ext <<_ACEOF
21368
cat confdefs.h >>conftest.$ac_ext
21369
cat >>conftest.$ac_ext <<_ACEOF
21370
/* end confdefs.h. */
21372
#ifdef HAVE_SIGNAL_H
21373
# include <signal.h>
21379
if (sizeof ((sighandler_t)))
21385
rm -f conftest.$ac_objext
21386
if { (ac_try="$ac_compile"
21387
case "(($ac_try" in
21388
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389
*) ac_try_echo=$ac_try;;
21391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21392
$as_echo "$ac_try_echo") >&5
21393
(eval "$ac_compile") 2>conftest.er1
21395
grep -v '^ *+' conftest.er1 >conftest.err
21397
cat conftest.err >&5
21398
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399
(exit $ac_status); } && {
21400
test -z "$ac_cxx_werror_flag" ||
21401
test ! -s conftest.err
21402
} && test -s conftest.$ac_objext; then
21405
$as_echo "$as_me: failed program was:" >&5
21406
sed 's/^/| /' conftest.$ac_ext >&5
21408
ac_cv_type_sighandler_t=yes
21411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413
$as_echo "$as_me: failed program was:" >&5
21414
sed 's/^/| /' conftest.$ac_ext >&5
21419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21421
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
21422
$as_echo "$ac_cv_type_sighandler_t" >&6; }
21423
if test "x$ac_cv_type_sighandler_t" = x""yes; then
21425
cat >>confdefs.h <<_ACEOF
21426
#define HAVE_SIGHANDLER_T 1
21433
ac_cpp='$CPP $CPPFLAGS'
21434
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21435
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21436
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21439
# Checks for library functions.
21440
{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
21441
$as_echo_n "checking for error_at_line... " >&6; }
21442
if test "${ac_cv_lib_error_at_line+set}" = set; then
21443
$as_echo_n "(cached) " >&6
21445
cat >conftest.$ac_ext <<_ACEOF
21448
cat confdefs.h >>conftest.$ac_ext
21449
cat >>conftest.$ac_ext <<_ACEOF
21450
/* end confdefs.h. */
21455
error_at_line (0, 0, "", 0, "an error occurred");
21460
rm -f conftest.$ac_objext conftest$ac_exeext
21461
if { (ac_try="$ac_link"
21462
case "(($ac_try" in
21463
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464
*) ac_try_echo=$ac_try;;
21466
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21467
$as_echo "$ac_try_echo") >&5
21468
(eval "$ac_link") 2>conftest.er1
21470
grep -v '^ *+' conftest.er1 >conftest.err
21472
cat conftest.err >&5
21473
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474
(exit $ac_status); } && {
21475
test -z "$ac_c_werror_flag" ||
21476
test ! -s conftest.err
21477
} && test -s conftest$ac_exeext && {
21478
test "$cross_compiling" = yes ||
21479
$as_test_x conftest$ac_exeext
21481
ac_cv_lib_error_at_line=yes
21483
$as_echo "$as_me: failed program was:" >&5
21484
sed 's/^/| /' conftest.$ac_ext >&5
21486
ac_cv_lib_error_at_line=no
21489
rm -rf conftest.dSYM
21490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21491
conftest$ac_exeext conftest.$ac_ext
21493
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
21494
$as_echo "$ac_cv_lib_error_at_line" >&6; }
21495
if test $ac_cv_lib_error_at_line = no; then
21496
case " $LIBOBJS " in
21497
*" error.$ac_objext "* ) ;;
21498
*) LIBOBJS="$LIBOBJS error.$ac_objext"
21505
for ac_header in stdlib.h
21507
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21508
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21509
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21510
$as_echo_n "checking for $ac_header... " >&6; }
21511
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21512
$as_echo_n "(cached) " >&6
21514
ac_res=`eval 'as_val=${'$as_ac_Header'}
21515
$as_echo "$as_val"'`
21516
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21517
$as_echo "$ac_res" >&6; }
21519
# Is the header compilable?
21520
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21521
$as_echo_n "checking $ac_header usability... " >&6; }
21522
cat >conftest.$ac_ext <<_ACEOF
21525
cat confdefs.h >>conftest.$ac_ext
21526
cat >>conftest.$ac_ext <<_ACEOF
21527
/* end confdefs.h. */
21528
$ac_includes_default
21529
#include <$ac_header>
21531
rm -f conftest.$ac_objext
21532
if { (ac_try="$ac_compile"
21533
case "(($ac_try" in
21534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535
*) ac_try_echo=$ac_try;;
21537
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21538
$as_echo "$ac_try_echo") >&5
21539
(eval "$ac_compile") 2>conftest.er1
21541
grep -v '^ *+' conftest.er1 >conftest.err
21543
cat conftest.err >&5
21544
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545
(exit $ac_status); } && {
21546
test -z "$ac_c_werror_flag" ||
21547
test ! -s conftest.err
21548
} && test -s conftest.$ac_objext; then
21549
ac_header_compiler=yes
21551
$as_echo "$as_me: failed program was:" >&5
21552
sed 's/^/| /' conftest.$ac_ext >&5
21554
ac_header_compiler=no
21557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21559
$as_echo "$ac_header_compiler" >&6; }
21561
# Is the header present?
21562
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21563
$as_echo_n "checking $ac_header presence... " >&6; }
21564
cat >conftest.$ac_ext <<_ACEOF
21567
cat confdefs.h >>conftest.$ac_ext
21568
cat >>conftest.$ac_ext <<_ACEOF
21569
/* end confdefs.h. */
21570
#include <$ac_header>
21572
if { (ac_try="$ac_cpp conftest.$ac_ext"
21573
case "(($ac_try" in
21574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575
*) ac_try_echo=$ac_try;;
21577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21578
$as_echo "$ac_try_echo") >&5
21579
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21581
grep -v '^ *+' conftest.er1 >conftest.err
21583
cat conftest.err >&5
21584
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585
(exit $ac_status); } >/dev/null && {
21586
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21587
test ! -s conftest.err
21589
ac_header_preproc=yes
21591
$as_echo "$as_me: failed program was:" >&5
21592
sed 's/^/| /' conftest.$ac_ext >&5
21594
ac_header_preproc=no
21597
rm -f conftest.err conftest.$ac_ext
21598
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21599
$as_echo "$ac_header_preproc" >&6; }
21601
# So? What about this header?
21602
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21604
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21605
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21606
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21607
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21608
ac_header_preproc=yes
21611
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21612
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21613
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21614
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21615
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21616
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21617
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21618
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21619
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21620
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21621
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21622
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21624
## ------------------------------------- ##
21625
## Report this to clients@worldforge.org ##
21626
## ------------------------------------- ##
21628
) | sed "s/^/$as_me: WARNING: /" >&2
21631
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21632
$as_echo_n "checking for $ac_header... " >&6; }
21633
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21634
$as_echo_n "(cached) " >&6
21636
eval "$as_ac_Header=\$ac_header_preproc"
21638
ac_res=`eval 'as_val=${'$as_ac_Header'}
21639
$as_echo "$as_val"'`
21640
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21641
$as_echo "$ac_res" >&6; }
21644
as_val=`eval 'as_val=${'$as_ac_Header'}
21645
$as_echo "$as_val"'`
21646
if test "x$as_val" = x""yes; then
21647
cat >>confdefs.h <<_ACEOF
21648
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21655
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21656
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
21657
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21658
$as_echo_n "(cached) " >&6
21660
if test "$cross_compiling" = yes; then
21661
ac_cv_func_malloc_0_nonnull=no
21663
cat >conftest.$ac_ext <<_ACEOF
21666
cat confdefs.h >>conftest.$ac_ext
21667
cat >>conftest.$ac_ext <<_ACEOF
21668
/* end confdefs.h. */
21669
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
21670
# include <stdlib.h>
21678
return ! malloc (0);
21683
rm -f conftest$ac_exeext
21684
if { (ac_try="$ac_link"
21685
case "(($ac_try" in
21686
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687
*) ac_try_echo=$ac_try;;
21689
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21690
$as_echo "$ac_try_echo") >&5
21691
(eval "$ac_link") 2>&5
21693
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21695
{ (case "(($ac_try" in
21696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697
*) ac_try_echo=$ac_try;;
21699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21700
$as_echo "$ac_try_echo") >&5
21701
(eval "$ac_try") 2>&5
21703
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704
(exit $ac_status); }; }; then
21705
ac_cv_func_malloc_0_nonnull=yes
21707
$as_echo "$as_me: program exited with status $ac_status" >&5
21708
$as_echo "$as_me: failed program was:" >&5
21709
sed 's/^/| /' conftest.$ac_ext >&5
21711
( exit $ac_status )
21712
ac_cv_func_malloc_0_nonnull=no
21714
rm -rf conftest.dSYM
21715
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21720
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21721
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
21722
if test $ac_cv_func_malloc_0_nonnull = yes; then
21724
cat >>confdefs.h <<\_ACEOF
21725
#define HAVE_MALLOC 1
21729
cat >>confdefs.h <<\_ACEOF
21730
#define HAVE_MALLOC 0
21733
case " $LIBOBJS " in
21734
*" malloc.$ac_objext "* ) ;;
21735
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21740
cat >>confdefs.h <<\_ACEOF
21741
#define malloc rpl_malloc
21749
for ac_func in vprintf
21751
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21752
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21753
$as_echo_n "checking for $ac_func... " >&6; }
21754
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21755
$as_echo_n "(cached) " >&6
21757
cat >conftest.$ac_ext <<_ACEOF
21760
cat confdefs.h >>conftest.$ac_ext
21761
cat >>conftest.$ac_ext <<_ACEOF
21762
/* end confdefs.h. */
21763
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21764
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21765
#define $ac_func innocuous_$ac_func
21767
/* System header to define __stub macros and hopefully few prototypes,
21768
which can conflict with char $ac_func (); below.
21769
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21770
<limits.h> exists even on freestanding compilers. */
21773
# include <limits.h>
21775
# include <assert.h>
21780
/* Override any GCC internal prototype to avoid an error.
21781
Use char because int might match the return type of a GCC
21782
builtin and then its argument prototype would still apply. */
21787
/* The GNU C library defines this for functions which it implements
21788
to always fail with ENOSYS. Some functions are actually named
21789
something starting with __ and the normal name is an alias. */
21790
#if defined __stub_$ac_func || defined __stub___$ac_func
21797
return $ac_func ();
21802
rm -f conftest.$ac_objext conftest$ac_exeext
21803
if { (ac_try="$ac_link"
21804
case "(($ac_try" in
21805
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806
*) ac_try_echo=$ac_try;;
21808
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21809
$as_echo "$ac_try_echo") >&5
21810
(eval "$ac_link") 2>conftest.er1
21812
grep -v '^ *+' conftest.er1 >conftest.err
21814
cat conftest.err >&5
21815
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816
(exit $ac_status); } && {
21817
test -z "$ac_c_werror_flag" ||
21818
test ! -s conftest.err
21819
} && test -s conftest$ac_exeext && {
21820
test "$cross_compiling" = yes ||
21821
$as_test_x conftest$ac_exeext
21823
eval "$as_ac_var=yes"
21825
$as_echo "$as_me: failed program was:" >&5
21826
sed 's/^/| /' conftest.$ac_ext >&5
21828
eval "$as_ac_var=no"
21831
rm -rf conftest.dSYM
21832
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833
conftest$ac_exeext conftest.$ac_ext
21835
ac_res=`eval 'as_val=${'$as_ac_var'}
21836
$as_echo "$as_val"'`
21837
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21838
$as_echo "$ac_res" >&6; }
21839
as_val=`eval 'as_val=${'$as_ac_var'}
21840
$as_echo "$as_val"'`
21841
if test "x$as_val" = x""yes; then
21842
cat >>confdefs.h <<_ACEOF
21843
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21846
{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
21847
$as_echo_n "checking for _doprnt... " >&6; }
21848
if test "${ac_cv_func__doprnt+set}" = set; then
21849
$as_echo_n "(cached) " >&6
21851
cat >conftest.$ac_ext <<_ACEOF
21854
cat confdefs.h >>conftest.$ac_ext
21855
cat >>conftest.$ac_ext <<_ACEOF
21856
/* end confdefs.h. */
21857
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21858
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21859
#define _doprnt innocuous__doprnt
21861
/* System header to define __stub macros and hopefully few prototypes,
21862
which can conflict with char _doprnt (); below.
21863
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21864
<limits.h> exists even on freestanding compilers. */
21867
# include <limits.h>
21869
# include <assert.h>
21874
/* Override any GCC internal prototype to avoid an error.
21875
Use char because int might match the return type of a GCC
21876
builtin and then its argument prototype would still apply. */
21881
/* The GNU C library defines this for functions which it implements
21882
to always fail with ENOSYS. Some functions are actually named
21883
something starting with __ and the normal name is an alias. */
21884
#if defined __stub__doprnt || defined __stub____doprnt
21896
rm -f conftest.$ac_objext conftest$ac_exeext
21897
if { (ac_try="$ac_link"
21898
case "(($ac_try" in
21899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900
*) ac_try_echo=$ac_try;;
21902
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21903
$as_echo "$ac_try_echo") >&5
21904
(eval "$ac_link") 2>conftest.er1
21906
grep -v '^ *+' conftest.er1 >conftest.err
21908
cat conftest.err >&5
21909
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910
(exit $ac_status); } && {
21911
test -z "$ac_c_werror_flag" ||
21912
test ! -s conftest.err
21913
} && test -s conftest$ac_exeext && {
21914
test "$cross_compiling" = yes ||
21915
$as_test_x conftest$ac_exeext
21917
ac_cv_func__doprnt=yes
21919
$as_echo "$as_me: failed program was:" >&5
21920
sed 's/^/| /' conftest.$ac_ext >&5
21922
ac_cv_func__doprnt=no
21925
rm -rf conftest.dSYM
21926
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21927
conftest$ac_exeext conftest.$ac_ext
21929
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21930
$as_echo "$ac_cv_func__doprnt" >&6; }
21931
if test "x$ac_cv_func__doprnt" = x""yes; then
21933
cat >>confdefs.h <<\_ACEOF
21934
#define HAVE_DOPRNT 1
21945
for ac_func in memset select
21947
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21948
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21949
$as_echo_n "checking for $ac_func... " >&6; }
21950
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21951
$as_echo_n "(cached) " >&6
21953
cat >conftest.$ac_ext <<_ACEOF
21956
cat confdefs.h >>conftest.$ac_ext
21957
cat >>conftest.$ac_ext <<_ACEOF
21958
/* end confdefs.h. */
21959
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21960
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21961
#define $ac_func innocuous_$ac_func
21963
/* System header to define __stub macros and hopefully few prototypes,
21964
which can conflict with char $ac_func (); below.
21965
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21966
<limits.h> exists even on freestanding compilers. */
21969
# include <limits.h>
21971
# include <assert.h>
21976
/* Override any GCC internal prototype to avoid an error.
21977
Use char because int might match the return type of a GCC
21978
builtin and then its argument prototype would still apply. */
21983
/* The GNU C library defines this for functions which it implements
21984
to always fail with ENOSYS. Some functions are actually named
21985
something starting with __ and the normal name is an alias. */
21986
#if defined __stub_$ac_func || defined __stub___$ac_func
21993
return $ac_func ();
21998
rm -f conftest.$ac_objext conftest$ac_exeext
21999
if { (ac_try="$ac_link"
22000
case "(($ac_try" in
22001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002
*) ac_try_echo=$ac_try;;
22004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22005
$as_echo "$ac_try_echo") >&5
22006
(eval "$ac_link") 2>conftest.er1
22008
grep -v '^ *+' conftest.er1 >conftest.err
22010
cat conftest.err >&5
22011
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012
(exit $ac_status); } && {
22013
test -z "$ac_c_werror_flag" ||
22014
test ! -s conftest.err
22015
} && test -s conftest$ac_exeext && {
22016
test "$cross_compiling" = yes ||
22017
$as_test_x conftest$ac_exeext
22019
eval "$as_ac_var=yes"
22021
$as_echo "$as_me: failed program was:" >&5
22022
sed 's/^/| /' conftest.$ac_ext >&5
22024
eval "$as_ac_var=no"
22027
rm -rf conftest.dSYM
22028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22029
conftest$ac_exeext conftest.$ac_ext
22031
ac_res=`eval 'as_val=${'$as_ac_var'}
22032
$as_echo "$as_val"'`
22033
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22034
$as_echo "$ac_res" >&6; }
22035
as_val=`eval 'as_val=${'$as_ac_var'}
22036
$as_echo "$as_val"'`
22037
if test "x$as_val" = x""yes; then
22038
cat >>confdefs.h <<_ACEOF
22039
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22046
#AC_CHECK_FUNC(lrintf,[
22047
# AC_DEFINE(HAVE_LRINTF, 1, [whether lrintf() is available])
22050
#AC_CHECK_FUNC(lrint,[
22051
# AC_DEFINE(HAVE_LRINT, 1, [whether lrint() is available])
22058
# Check whether --enable-static_build was given.
22059
if test "${enable_static_build+set}" = set; then
22060
enableval=$enable_static_build;
22061
if test "$enableval" = "yes"; then
22063
STATIC_LIBSTDCPP=`$CXX -print-file-name=libstdc++.a`
22064
STATIC_LIBGCC=`$CXX -print-file-name=libgcc.a`
22066
link_static="false"
22071
link_static="false"
22076
if test x"$link_static" = xtrue; then
22078
BUILD_STATIC_FALSE='#'
22080
BUILD_STATIC_TRUE='#'
22081
BUILD_STATIC_FALSE=
22085
# Check whether --enable-freeimage_check was given.
22086
if test "${enable_freeimage_check+set}" = set; then
22087
enableval=$enable_freeimage_check;
22088
if test "$enableval" = "yes"; then
22089
freeimage_check="true"
22091
freeimage_check="false"
22096
freeimage_check="true"
22102
{ $as_echo "$as_me:$LINENO: result:
22104
**************************************
22105
* Checking for SDL Libraries
22106
**************************************
22111
**************************************
22112
* Checking for SDL Libraries
22113
**************************************
22118
# Check whether --with-sdl-prefix was given.
22119
if test "${with_sdl_prefix+set}" = set; then
22120
withval=$with_sdl_prefix; sdl_prefix="$withval"
22126
# Check whether --with-sdl-exec-prefix was given.
22127
if test "${with_sdl_exec_prefix+set}" = set; then
22128
withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
22133
# Check whether --enable-sdltest was given.
22134
if test "${enable_sdltest+set}" = set; then
22135
enableval=$enable_sdltest;
22141
if test x$sdl_exec_prefix != x ; then
22142
sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
22143
if test x${SDL_CONFIG+set} != xset ; then
22144
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
22147
if test x$sdl_prefix != x ; then
22148
sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
22149
if test x${SDL_CONFIG+set} != xset ; then
22150
SDL_CONFIG=$sdl_prefix/bin/sdl-config
22154
if test "x$prefix" != xNONE; then
22155
PATH="$prefix/bin:$prefix/usr/bin:$PATH"
22157
# Extract the first word of "sdl-config", so it can be a program name with args.
22158
set dummy sdl-config; ac_word=$2
22159
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22160
$as_echo_n "checking for $ac_word... " >&6; }
22161
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
22162
$as_echo_n "(cached) " >&6
22164
case $SDL_CONFIG in
22166
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
22169
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22170
for as_dir in $PATH
22173
test -z "$as_dir" && as_dir=.
22174
for ac_exec_ext in '' $ac_executable_extensions; do
22175
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22176
ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22177
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22184
test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
22188
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
22189
if test -n "$SDL_CONFIG"; then
22190
{ $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
22191
$as_echo "$SDL_CONFIG" >&6; }
22193
{ $as_echo "$as_me:$LINENO: result: no" >&5
22194
$as_echo "no" >&6; }
22198
min_sdl_version=1.2.0
22199
{ $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
22200
$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
22202
if test "$SDL_CONFIG" = "no" ; then
22205
SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
22206
SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
22208
sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
22209
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22210
sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
22211
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22212
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
22213
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22214
if test "x$enable_sdltest" = "xyes" ; then
22215
ac_save_CFLAGS="$CFLAGS"
22216
ac_save_CXXFLAGS="$CXXFLAGS"
22217
ac_save_LIBS="$LIBS"
22218
CFLAGS="$CFLAGS $SDL_CFLAGS"
22219
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
22220
LIBS="$LIBS $SDL_LIBS"
22222
if test "$cross_compiling" = yes; then
22223
echo $ac_n "cross compiling; assumed OK... $ac_c"
22225
cat >conftest.$ac_ext <<_ACEOF
22228
cat confdefs.h >>conftest.$ac_ext
22229
cat >>conftest.$ac_ext <<_ACEOF
22230
/* end confdefs.h. */
22233
#include <stdlib.h>
22234
#include <string.h>
22238
my_strdup (char *str)
22244
new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
22245
strcpy (new_str, str);
22253
int main (int argc, char *argv[])
22255
int major, minor, micro;
22258
/* This hangs on some systems (?)
22259
system ("touch conf.sdltest");
22261
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
22263
/* HP/UX 9 (%@#!) writes to sscanf strings */
22264
tmp_version = my_strdup("$min_sdl_version");
22265
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
22266
printf("%s, bad version string\n", "$min_sdl_version");
22270
if (($sdl_major_version > major) ||
22271
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
22272
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
22278
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
22279
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
22280
printf("*** best to upgrade to the required version.\n");
22281
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
22282
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
22283
printf("*** config.cache before re-running configure\n");
22290
rm -f conftest$ac_exeext
22291
if { (ac_try="$ac_link"
22292
case "(($ac_try" in
22293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294
*) ac_try_echo=$ac_try;;
22296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22297
$as_echo "$ac_try_echo") >&5
22298
(eval "$ac_link") 2>&5
22300
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22302
{ (case "(($ac_try" in
22303
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304
*) ac_try_echo=$ac_try;;
22306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22307
$as_echo "$ac_try_echo") >&5
22308
(eval "$ac_try") 2>&5
22310
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311
(exit $ac_status); }; }; then
22314
$as_echo "$as_me: program exited with status $ac_status" >&5
22315
$as_echo "$as_me: failed program was:" >&5
22316
sed 's/^/| /' conftest.$ac_ext >&5
22318
( exit $ac_status )
22321
rm -rf conftest.dSYM
22322
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22326
CFLAGS="$ac_save_CFLAGS"
22327
CXXFLAGS="$ac_save_CXXFLAGS"
22328
LIBS="$ac_save_LIBS"
22331
if test "x$no_sdl" = x ; then
22332
{ $as_echo "$as_me:$LINENO: result: yes" >&5
22333
$as_echo "yes" >&6; }
22336
{ $as_echo "$as_me:$LINENO: result: no" >&5
22337
$as_echo "no" >&6; }
22338
if test "$SDL_CONFIG" = "no" ; then
22339
echo "*** The sdl-config script installed by SDL could not be found"
22340
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
22341
echo "*** your path, or set the SDL_CONFIG environment variable to the"
22342
echo "*** full path to sdl-config."
22344
if test -f conf.sdltest ; then
22347
echo "*** Could not run SDL test program, checking why..."
22348
CFLAGS="$CFLAGS $SDL_CFLAGS"
22349
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
22350
LIBS="$LIBS $SDL_LIBS"
22351
cat >conftest.$ac_ext <<_ACEOF
22354
cat confdefs.h >>conftest.$ac_ext
22355
cat >>conftest.$ac_ext <<_ACEOF
22356
/* end confdefs.h. */
22361
int main(int argc, char *argv[])
22364
#define main K_and_R_C_main
22374
rm -f conftest.$ac_objext conftest$ac_exeext
22375
if { (ac_try="$ac_link"
22376
case "(($ac_try" in
22377
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378
*) ac_try_echo=$ac_try;;
22380
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22381
$as_echo "$ac_try_echo") >&5
22382
(eval "$ac_link") 2>conftest.er1
22384
grep -v '^ *+' conftest.er1 >conftest.err
22386
cat conftest.err >&5
22387
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388
(exit $ac_status); } && {
22389
test -z "$ac_c_werror_flag" ||
22390
test ! -s conftest.err
22391
} && test -s conftest$ac_exeext && {
22392
test "$cross_compiling" = yes ||
22393
$as_test_x conftest$ac_exeext
22395
echo "*** The test program compiled, but did not run. This usually means"
22396
echo "*** that the run-time linker is not finding SDL or finding the wrong"
22397
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
22398
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22399
echo "*** to the installed location Also, make sure you have run ldconfig if that"
22400
echo "*** is required on your system"
22402
echo "*** If you have an old version installed, it is best to remove it, although"
22403
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22405
$as_echo "$as_me: failed program was:" >&5
22406
sed 's/^/| /' conftest.$ac_ext >&5
22408
echo "*** The test program failed to compile or link. See the file config.log for the"
22409
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
22410
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
22411
echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
22414
rm -rf conftest.dSYM
22415
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416
conftest$ac_exeext conftest.$ac_ext
22417
CFLAGS="$ac_save_CFLAGS"
22418
CXXFLAGS="$ac_save_CXXFLAGS"
22419
LIBS="$ac_save_LIBS"
22425
{ { $as_echo "$as_me:$LINENO: error: Couldn't find SDL or insufficent version found. Please goto http://www.libsdl.org/ and get at least version $SDL_VERSION" >&5
22426
$as_echo "$as_me: error: Couldn't find SDL or insufficent version found. Please goto http://www.libsdl.org/ and get at least version $SDL_VERSION" >&2;}
22427
{ (exit 1); exit 1; }; }
22435
#dnl don't add SDL flags yet, SDL_main confuses later checks
22439
ac_cpp='$CPP $CPPFLAGS'
22440
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22441
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22442
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22446
{ $as_echo "$as_me:$LINENO: checking for glViewport in -lGL" >&5
22447
$as_echo_n "checking for glViewport in -lGL... " >&6; }
22448
if test "${ac_cv_lib_GL_glViewport+set}" = set; then
22449
$as_echo_n "(cached) " >&6
22451
ac_check_lib_save_LIBS=$LIBS
22453
cat >conftest.$ac_ext <<_ACEOF
22456
cat confdefs.h >>conftest.$ac_ext
22457
cat >>conftest.$ac_ext <<_ACEOF
22458
/* end confdefs.h. */
22460
/* Override any GCC internal prototype to avoid an error.
22461
Use char because int might match the return type of a GCC
22462
builtin and then its argument prototype would still apply. */
22466
char glViewport ();
22470
return glViewport ();
22475
rm -f conftest.$ac_objext conftest$ac_exeext
22476
if { (ac_try="$ac_link"
22477
case "(($ac_try" in
22478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479
*) ac_try_echo=$ac_try;;
22481
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22482
$as_echo "$ac_try_echo") >&5
22483
(eval "$ac_link") 2>conftest.er1
22485
grep -v '^ *+' conftest.er1 >conftest.err
22487
cat conftest.err >&5
22488
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489
(exit $ac_status); } && {
22490
test -z "$ac_c_werror_flag" ||
22491
test ! -s conftest.err
22492
} && test -s conftest$ac_exeext && {
22493
test "$cross_compiling" = yes ||
22494
$as_test_x conftest$ac_exeext
22496
ac_cv_lib_GL_glViewport=yes
22498
$as_echo "$as_me: failed program was:" >&5
22499
sed 's/^/| /' conftest.$ac_ext >&5
22501
ac_cv_lib_GL_glViewport=no
22504
rm -rf conftest.dSYM
22505
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22506
conftest$ac_exeext conftest.$ac_ext
22507
LIBS=$ac_check_lib_save_LIBS
22509
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glViewport" >&5
22510
$as_echo "$ac_cv_lib_GL_glViewport" >&6; }
22511
if test "x$ac_cv_lib_GL_glViewport" = x""yes; then
22514
CXXFLAGS="$CXXFLAGS -I/usr/X11R6/include -I/usr/include"
22518
{ { $as_echo "$as_me:$LINENO: error: Could not find OpenGL library" >&5
22519
$as_echo "$as_me: error: Could not find OpenGL library" >&2;}
22520
{ (exit 1); exit 1; }; }
22527
ac_cpp='$CPP $CPPFLAGS'
22528
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22529
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22530
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22536
{ $as_echo "$as_me:$LINENO: result:
22538
**************************************
22539
* Checking for C Libraries
22540
**************************************
22545
**************************************
22546
* Checking for C Libraries
22547
**************************************
22552
ac_cpp='$CPP $CPPFLAGS'
22553
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22554
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22555
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22558
#disable this for now
22559
#AC_CHECK_LIB(openal,
22561
# AC_MSG_ERROR([Unable to find OpenAL (Open Audio Layer)])
22569
ac_cpp='$CPP $CPPFLAGS'
22570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22575
# make sure binreloc funtionality is used
22577
# Check whether --enable-binreloc was given.
22578
if test "${enable_binreloc+set}" = set; then
22579
enableval=$enable_binreloc; enable_binreloc=$enableval
22581
enable_binreloc=auto
22585
# Check whether --enable-binreloc-threads was given.
22586
if test "${enable_binreloc_threads+set}" = set; then
22587
enableval=$enable_binreloc_threads; enable_binreloc_threads=$enableval
22589
enable_binreloc_threads=yes
22595
if test "x$enable_binreloc" = "xauto"; then
22596
{ $as_echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
22597
$as_echo_n "checking for /proc/self/maps... " >&6; }
22598
if test "${ac_cv_file__proc_self_maps+set}" = set; then
22599
$as_echo_n "(cached) " >&6
22601
test "$cross_compiling" = yes &&
22602
{ { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22603
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22604
{ (exit 1); exit 1; }; }
22605
if test -r "/proc/self/maps"; then
22606
ac_cv_file__proc_self_maps=yes
22608
ac_cv_file__proc_self_maps=no
22611
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
22612
$as_echo "$ac_cv_file__proc_self_maps" >&6; }
22614
{ $as_echo "$as_me:$LINENO: checking whether everything is installed to the same prefix" >&5
22615
$as_echo_n "checking whether everything is installed to the same prefix... " >&6; }
22616
if test "${br_cv_valid_prefixes+set}" = set; then
22617
$as_echo_n "(cached) " >&6
22620
if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
22621
"$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \
22622
"$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc'
22624
br_cv_valid_prefixes=yes
22626
br_cv_valid_prefixes=no
22630
{ $as_echo "$as_me:$LINENO: result: $br_cv_valid_prefixes" >&5
22631
$as_echo "$br_cv_valid_prefixes" >&6; }
22633
{ $as_echo "$as_me:$LINENO: checking whether binary relocation support should be enabled" >&5
22634
$as_echo_n "checking whether binary relocation support should be enabled... " >&6; }
22635
if test "${br_cv_binreloc+set}" = set; then
22636
$as_echo_n "(cached) " >&6
22638
if test "x$enable_binreloc" = "xyes"; then
22640
elif test "x$enable_binreloc" = "xauto"; then
22641
if test "x$br_cv_valid_prefixes" = "xyes" -a \
22642
"x$ac_cv_file__proc_self_maps" = "xyes"; then
22651
{ $as_echo "$as_me:$LINENO: result: $br_cv_binreloc" >&5
22652
$as_echo "$br_cv_binreloc" >&6; }
22654
if test "x$br_cv_binreloc" = "xyes"; then
22655
BINRELOC_CFLAGS="-DENABLE_BINRELOC"
22657
cat >>confdefs.h <<\_ACEOF
22658
#define ENABLE_BINRELOC /**/
22661
if test "x$enable_binreloc_threads" = "xyes"; then
22663
{ $as_echo "$as_me:$LINENO: checking for pthread_getspecific in -lpthread" >&5
22664
$as_echo_n "checking for pthread_getspecific in -lpthread... " >&6; }
22665
if test "${ac_cv_lib_pthread_pthread_getspecific+set}" = set; then
22666
$as_echo_n "(cached) " >&6
22668
ac_check_lib_save_LIBS=$LIBS
22669
LIBS="-lpthread $LIBS"
22670
cat >conftest.$ac_ext <<_ACEOF
22673
cat confdefs.h >>conftest.$ac_ext
22674
cat >>conftest.$ac_ext <<_ACEOF
22675
/* end confdefs.h. */
22677
/* Override any GCC internal prototype to avoid an error.
22678
Use char because int might match the return type of a GCC
22679
builtin and then its argument prototype would still apply. */
22683
char pthread_getspecific ();
22687
return pthread_getspecific ();
22692
rm -f conftest.$ac_objext conftest$ac_exeext
22693
if { (ac_try="$ac_link"
22694
case "(($ac_try" in
22695
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696
*) ac_try_echo=$ac_try;;
22698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22699
$as_echo "$ac_try_echo") >&5
22700
(eval "$ac_link") 2>conftest.er1
22702
grep -v '^ *+' conftest.er1 >conftest.err
22704
cat conftest.err >&5
22705
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706
(exit $ac_status); } && {
22707
test -z "$ac_c_werror_flag" ||
22708
test ! -s conftest.err
22709
} && test -s conftest$ac_exeext && {
22710
test "$cross_compiling" = yes ||
22711
$as_test_x conftest$ac_exeext
22713
ac_cv_lib_pthread_pthread_getspecific=yes
22715
$as_echo "$as_me: failed program was:" >&5
22716
sed 's/^/| /' conftest.$ac_ext >&5
22718
ac_cv_lib_pthread_pthread_getspecific=no
22721
rm -rf conftest.dSYM
22722
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22723
conftest$ac_exeext conftest.$ac_ext
22724
LIBS=$ac_check_lib_save_LIBS
22726
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_getspecific" >&5
22727
$as_echo "$ac_cv_lib_pthread_pthread_getspecific" >&6; }
22728
if test "x$ac_cv_lib_pthread_pthread_getspecific" = x""yes; then
22729
cat >>confdefs.h <<_ACEOF
22730
#define HAVE_LIBPTHREAD 1
22733
LIBS="-lpthread $LIBS"
22739
{ $as_echo "$as_me:$LINENO: checking whether binary relocation should use threads" >&5
22740
$as_echo_n "checking whether binary relocation should use threads... " >&6; }
22741
if test "${br_cv_binreloc_threads+set}" = set; then
22742
$as_echo_n "(cached) " >&6
22744
if test "x$enable_binreloc_threads" = "xyes"; then
22745
if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then
22746
br_cv_binreloc_threads=yes
22748
br_cv_binreloc_threads=no
22751
br_cv_binreloc_threads=no
22754
{ $as_echo "$as_me:$LINENO: result: $br_cv_binreloc_threads" >&5
22755
$as_echo "$br_cv_binreloc_threads" >&6; }
22757
if test "x$br_cv_binreloc_threads" = "xyes"; then
22758
BINRELOC_LIBS="-lpthread"
22760
cat >>confdefs.h <<\_ACEOF
22761
#define BR_PTHREAD 1
22765
BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0"
22767
cat >>confdefs.h <<\_ACEOF
22768
#define BR_PTHREAD 0
22777
# Try to find system-wide installation of tinyxml
22778
# If found, add define to config.h, set LIBS and add automake conditional
22779
{ $as_echo "$as_me:$LINENO: checking for main in -ltinyxml" >&5
22780
$as_echo_n "checking for main in -ltinyxml... " >&6; }
22781
if test "${ac_cv_lib_tinyxml_main+set}" = set; then
22782
$as_echo_n "(cached) " >&6
22784
ac_check_lib_save_LIBS=$LIBS
22785
LIBS="-ltinyxml $LIBS"
22786
cat >conftest.$ac_ext <<_ACEOF
22789
cat confdefs.h >>conftest.$ac_ext
22790
cat >>conftest.$ac_ext <<_ACEOF
22791
/* end confdefs.h. */
22802
rm -f conftest.$ac_objext conftest$ac_exeext
22803
if { (ac_try="$ac_link"
22804
case "(($ac_try" in
22805
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806
*) ac_try_echo=$ac_try;;
22808
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22809
$as_echo "$ac_try_echo") >&5
22810
(eval "$ac_link") 2>conftest.er1
22812
grep -v '^ *+' conftest.er1 >conftest.err
22814
cat conftest.err >&5
22815
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816
(exit $ac_status); } && {
22817
test -z "$ac_c_werror_flag" ||
22818
test ! -s conftest.err
22819
} && test -s conftest$ac_exeext && {
22820
test "$cross_compiling" = yes ||
22821
$as_test_x conftest$ac_exeext
22823
ac_cv_lib_tinyxml_main=yes
22825
$as_echo "$as_me: failed program was:" >&5
22826
sed 's/^/| /' conftest.$ac_ext >&5
22828
ac_cv_lib_tinyxml_main=no
22831
rm -rf conftest.dSYM
22832
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22833
conftest$ac_exeext conftest.$ac_ext
22834
LIBS=$ac_check_lib_save_LIBS
22836
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinyxml_main" >&5
22837
$as_echo "$ac_cv_lib_tinyxml_main" >&6; }
22838
if test "x$ac_cv_lib_tinyxml_main" = x""yes; then
22841
cat >>confdefs.h <<\_ACEOF
22842
#define HAVE_LIBTINYXML 1
22845
LIBS="-ltinyxml $LIBS"
22855
if test x$have_tinyxml = xtrue; then
22856
HAVE_LIBTINYXML_TRUE=
22857
HAVE_LIBTINYXML_FALSE='#'
22859
HAVE_LIBTINYXML_TRUE='#'
22860
HAVE_LIBTINYXML_FALSE=
22864
# Check for C++ libraries:
22866
ac_cpp='$CXXCPP $CPPFLAGS'
22867
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22868
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22869
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22872
{ $as_echo "$as_me:$LINENO: result:
22874
**************************************
22875
* Checking for C++ Libraries
22876
**************************************
22881
**************************************
22882
* Checking for C++ Libraries
22883
**************************************
22886
#AC_CHECK_LIB(IL, ilInit,
22888
# CXXFLAGS="$CXXFLAGS $IL_CFLAGS"
22889
# LIBS="$LIBS $IL_LIBS -lIL"
22892
#****************************************************************
22893
#* You do not have DevIL installed. This is required to build. *
22894
#* You may find it at http://openil.sourceforge.net/. *
22895
#****************************************************************]))
22896
#AC_CHECK_LIB(ILU, iluFlipImage,
22898
# CXXFLAGS="$CXXFLAGS $ILU_CFLAGS"
22899
# LIBS="$LIBS $ILU_LIBS -lILU"
22902
#****************************************************************
22903
#* You do not have DevIL installed. This is required to build. *
22904
#* You may find it at http://openil.sourceforge.net/. *
22905
#****************************************************************]))
22907
#AC_DEFINE(LIBSIGC_DISABLE_DEPRECATED, 1, [Don't use deprecated sigc methods.])
22910
if test "${ac_cv_header_ext_hash_set+set}" = set; then
22911
{ $as_echo "$as_me:$LINENO: checking for ext/hash_set" >&5
22912
$as_echo_n "checking for ext/hash_set... " >&6; }
22913
if test "${ac_cv_header_ext_hash_set+set}" = set; then
22914
$as_echo_n "(cached) " >&6
22916
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_set" >&5
22917
$as_echo "$ac_cv_header_ext_hash_set" >&6; }
22919
# Is the header compilable?
22920
{ $as_echo "$as_me:$LINENO: checking ext/hash_set usability" >&5
22921
$as_echo_n "checking ext/hash_set usability... " >&6; }
22922
cat >conftest.$ac_ext <<_ACEOF
22925
cat confdefs.h >>conftest.$ac_ext
22926
cat >>conftest.$ac_ext <<_ACEOF
22927
/* end confdefs.h. */
22928
$ac_includes_default
22929
#include <ext/hash_set>
22931
rm -f conftest.$ac_objext
22932
if { (ac_try="$ac_compile"
22933
case "(($ac_try" in
22934
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935
*) ac_try_echo=$ac_try;;
22937
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22938
$as_echo "$ac_try_echo") >&5
22939
(eval "$ac_compile") 2>conftest.er1
22941
grep -v '^ *+' conftest.er1 >conftest.err
22943
cat conftest.err >&5
22944
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945
(exit $ac_status); } && {
22946
test -z "$ac_cxx_werror_flag" ||
22947
test ! -s conftest.err
22948
} && test -s conftest.$ac_objext; then
22949
ac_header_compiler=yes
22951
$as_echo "$as_me: failed program was:" >&5
22952
sed 's/^/| /' conftest.$ac_ext >&5
22954
ac_header_compiler=no
22957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22959
$as_echo "$ac_header_compiler" >&6; }
22961
# Is the header present?
22962
{ $as_echo "$as_me:$LINENO: checking ext/hash_set presence" >&5
22963
$as_echo_n "checking ext/hash_set presence... " >&6; }
22964
cat >conftest.$ac_ext <<_ACEOF
22967
cat confdefs.h >>conftest.$ac_ext
22968
cat >>conftest.$ac_ext <<_ACEOF
22969
/* end confdefs.h. */
22970
#include <ext/hash_set>
22972
if { (ac_try="$ac_cpp conftest.$ac_ext"
22973
case "(($ac_try" in
22974
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975
*) ac_try_echo=$ac_try;;
22977
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22978
$as_echo "$ac_try_echo") >&5
22979
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22981
grep -v '^ *+' conftest.er1 >conftest.err
22983
cat conftest.err >&5
22984
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985
(exit $ac_status); } >/dev/null && {
22986
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22987
test ! -s conftest.err
22989
ac_header_preproc=yes
22991
$as_echo "$as_me: failed program was:" >&5
22992
sed 's/^/| /' conftest.$ac_ext >&5
22994
ac_header_preproc=no
22997
rm -f conftest.err conftest.$ac_ext
22998
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22999
$as_echo "$ac_header_preproc" >&6; }
23001
# So? What about this header?
23002
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23004
{ $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: accepted by the compiler, rejected by the preprocessor!" >&5
23005
$as_echo "$as_me: WARNING: ext/hash_set: accepted by the compiler, rejected by the preprocessor!" >&2;}
23006
{ $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: proceeding with the compiler's result" >&5
23007
$as_echo "$as_me: WARNING: ext/hash_set: proceeding with the compiler's result" >&2;}
23008
ac_header_preproc=yes
23011
{ $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: present but cannot be compiled" >&5
23012
$as_echo "$as_me: WARNING: ext/hash_set: present but cannot be compiled" >&2;}
23013
{ $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: check for missing prerequisite headers?" >&5
23014
$as_echo "$as_me: WARNING: ext/hash_set: check for missing prerequisite headers?" >&2;}
23015
{ $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: see the Autoconf documentation" >&5
23016
$as_echo "$as_me: WARNING: ext/hash_set: see the Autoconf documentation" >&2;}
23017
{ $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: section \"Present But Cannot Be Compiled\"" >&5
23018
$as_echo "$as_me: WARNING: ext/hash_set: section \"Present But Cannot Be Compiled\"" >&2;}
23019
{ $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: proceeding with the preprocessor's result" >&5
23020
$as_echo "$as_me: WARNING: ext/hash_set: proceeding with the preprocessor's result" >&2;}
23021
{ $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: in the future, the compiler will take precedence" >&5
23022
$as_echo "$as_me: WARNING: ext/hash_set: in the future, the compiler will take precedence" >&2;}
23024
## ------------------------------------- ##
23025
## Report this to clients@worldforge.org ##
23026
## ------------------------------------- ##
23028
) | sed "s/^/$as_me: WARNING: /" >&2
23031
{ $as_echo "$as_me:$LINENO: checking for ext/hash_set" >&5
23032
$as_echo_n "checking for ext/hash_set... " >&6; }
23033
if test "${ac_cv_header_ext_hash_set+set}" = set; then
23034
$as_echo_n "(cached) " >&6
23036
ac_cv_header_ext_hash_set=$ac_header_preproc
23038
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_set" >&5
23039
$as_echo "$ac_cv_header_ext_hash_set" >&6; }
23042
if test "x$ac_cv_header_ext_hash_set" = x""yes; then
23044
cat >>confdefs.h <<\_ACEOF
23054
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23055
if test -n "$ac_tool_prefix"; then
23056
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23057
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23059
$as_echo_n "checking for $ac_word... " >&6; }
23060
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23061
$as_echo_n "(cached) " >&6
23063
case $PKG_CONFIG in
23065
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23069
for as_dir in $PATH
23072
test -z "$as_dir" && as_dir=.
23073
for ac_exec_ext in '' $ac_executable_extensions; do
23074
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23075
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23076
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23086
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23087
if test -n "$PKG_CONFIG"; then
23088
{ $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23089
$as_echo "$PKG_CONFIG" >&6; }
23091
{ $as_echo "$as_me:$LINENO: result: no" >&5
23092
$as_echo "no" >&6; }
23097
if test -z "$ac_cv_path_PKG_CONFIG"; then
23098
ac_pt_PKG_CONFIG=$PKG_CONFIG
23099
# Extract the first word of "pkg-config", so it can be a program name with args.
23100
set dummy pkg-config; ac_word=$2
23101
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23102
$as_echo_n "checking for $ac_word... " >&6; }
23103
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
23104
$as_echo_n "(cached) " >&6
23106
case $ac_pt_PKG_CONFIG in
23108
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23111
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23112
for as_dir in $PATH
23115
test -z "$as_dir" && as_dir=.
23116
for ac_exec_ext in '' $ac_executable_extensions; do
23117
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23118
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23119
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23129
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23130
if test -n "$ac_pt_PKG_CONFIG"; then
23131
{ $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
23132
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
23134
{ $as_echo "$as_me:$LINENO: result: no" >&5
23135
$as_echo "no" >&6; }
23138
if test "x$ac_pt_PKG_CONFIG" = x; then
23141
case $cross_compiling:$ac_tool_warned in
23143
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
23144
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23145
ac_tool_warned=yes ;;
23147
PKG_CONFIG=$ac_pt_PKG_CONFIG
23150
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23154
if test -n "$PKG_CONFIG"; then
23155
_pkg_min_version=0.9.0
23156
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
23157
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23158
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23159
{ $as_echo "$as_me:$LINENO: result: yes" >&5
23160
$as_echo "yes" >&6; }
23162
{ $as_echo "$as_me:$LINENO: result: no" >&5
23163
$as_echo "no" >&6; }
23170
{ $as_echo "$as_me:$LINENO: checking for CEGUI" >&5
23171
$as_echo_n "checking for CEGUI... " >&6; }
23173
if test -n "$CEGUI_CFLAGS"; then
23174
pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS"
23175
elif test -n "$PKG_CONFIG"; then
23176
if test -n "$PKG_CONFIG" && \
23177
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.2\"") >&5
23178
($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.2") 2>&5
23180
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181
(exit $ac_status); }; then
23182
pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI >= 0.6.2" 2>/dev/null`
23189
if test -n "$CEGUI_LIBS"; then
23190
pkg_cv_CEGUI_LIBS="$CEGUI_LIBS"
23191
elif test -n "$PKG_CONFIG"; then
23192
if test -n "$PKG_CONFIG" && \
23193
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.2\"") >&5
23194
($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.2") 2>&5
23196
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197
(exit $ac_status); }; then
23198
pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI >= 0.6.2" 2>/dev/null`
23208
if test $pkg_failed = yes; then
23210
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23211
_pkg_short_errors_supported=yes
23213
_pkg_short_errors_supported=no
23215
if test $_pkg_short_errors_supported = yes; then
23216
CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "CEGUI >= 0.6.2" 2>&1`
23218
CEGUI_PKG_ERRORS=`$PKG_CONFIG --print-errors "CEGUI >= 0.6.2" 2>&1`
23220
# Put the nasty error message in config.log where it belongs
23221
echo "$CEGUI_PKG_ERRORS" >&5
23223
{ $as_echo "$as_me:$LINENO: result: no" >&5
23224
$as_echo "no" >&6; }
23226
{ { $as_echo "$as_me:$LINENO: error: Couldn't find CEGUI-OGRE or tests failed:
23228
Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
23229
config.log to see why the tests failed, and fix it." >&5
23230
$as_echo "$as_me: error: Couldn't find CEGUI-OGRE or tests failed:
23232
Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
23233
config.log to see why the tests failed, and fix it." >&2;}
23234
{ (exit 1); exit 1; }; }
23236
elif test $pkg_failed = untried; then
23238
{ { $as_echo "$as_me:$LINENO: error: Couldn't find CEGUI-OGRE or tests failed:
23240
Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
23241
config.log to see why the tests failed, and fix it." >&5
23242
$as_echo "$as_me: error: Couldn't find CEGUI-OGRE or tests failed:
23244
Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
23245
config.log to see why the tests failed, and fix it." >&2;}
23246
{ (exit 1); exit 1; }; }
23249
CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS
23250
CEGUI_LIBS=$pkg_cv_CEGUI_LIBS
23251
{ $as_echo "$as_me:$LINENO: result: yes" >&5
23252
$as_echo "yes" >&6; }
23254
CXXFLAGS="$CXXFLAGS $CEGUI_CFLAGS"
23255
LIBS="$LIBS $CEGUI_LIBS"
23261
OGRE_MAX_VERSION=1.8.0
23264
{ $as_echo "$as_me:$LINENO: checking for OGRE" >&5
23265
$as_echo_n "checking for OGRE... " >&6; }
23267
if test -n "$OGRE_CFLAGS"; then
23268
pkg_cv_OGRE_CFLAGS="$OGRE_CFLAGS"
23269
elif test -n "$PKG_CONFIG"; then
23270
if test -n "$PKG_CONFIG" && \
23271
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OGRE >= \$OGRE_VERSION OGRE < \$OGRE_MAX_VERSION CEGUI-OGRE >= \$OGRE_VERSION\"") >&5
23272
($PKG_CONFIG --exists --print-errors "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION") 2>&5
23274
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275
(exit $ac_status); }; then
23276
pkg_cv_OGRE_CFLAGS=`$PKG_CONFIG --cflags "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION" 2>/dev/null`
23283
if test -n "$OGRE_LIBS"; then
23284
pkg_cv_OGRE_LIBS="$OGRE_LIBS"
23285
elif test -n "$PKG_CONFIG"; then
23286
if test -n "$PKG_CONFIG" && \
23287
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OGRE >= \$OGRE_VERSION OGRE < \$OGRE_MAX_VERSION CEGUI-OGRE >= \$OGRE_VERSION\"") >&5
23288
($PKG_CONFIG --exists --print-errors "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION") 2>&5
23290
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291
(exit $ac_status); }; then
23292
pkg_cv_OGRE_LIBS=`$PKG_CONFIG --libs "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION" 2>/dev/null`
23302
if test $pkg_failed = yes; then
23304
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23305
_pkg_short_errors_supported=yes
23307
_pkg_short_errors_supported=no
23309
if test $_pkg_short_errors_supported = yes; then
23310
OGRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION" 2>&1`
23312
OGRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION" 2>&1`
23314
# Put the nasty error message in config.log where it belongs
23315
echo "$OGRE_PKG_ERRORS" >&5
23317
{ $as_echo "$as_me:$LINENO: result: no" >&5
23318
$as_echo "no" >&6; }
23320
{ { $as_echo "$as_me:$LINENO: error: Couldn't find OGRE or tests failed:
23322
Please goto http://www.ogre3d.org to get the latest, or check config.log to
23323
see why the tests failed, and fix it." >&5
23324
$as_echo "$as_me: error: Couldn't find OGRE or tests failed:
23326
Please goto http://www.ogre3d.org to get the latest, or check config.log to
23327
see why the tests failed, and fix it." >&2;}
23328
{ (exit 1); exit 1; }; }
23330
elif test $pkg_failed = untried; then
23332
{ { $as_echo "$as_me:$LINENO: error: Couldn't find OGRE or tests failed:
23334
Please goto http://www.ogre3d.org to get the latest, or check config.log to
23335
see why the tests failed, and fix it." >&5
23336
$as_echo "$as_me: error: Couldn't find OGRE or tests failed:
23338
Please goto http://www.ogre3d.org to get the latest, or check config.log to
23339
see why the tests failed, and fix it." >&2;}
23340
{ (exit 1); exit 1; }; }
23343
OGRE_CFLAGS=$pkg_cv_OGRE_CFLAGS
23344
OGRE_LIBS=$pkg_cv_OGRE_LIBS
23345
{ $as_echo "$as_me:$LINENO: result: yes" >&5
23346
$as_echo "yes" >&6; }
23348
CXXFLAGS="$CXXFLAGS $OGRE_CFLAGS"
23349
LIBS="$LIBS $OGRE_LIBS"
23351
cat >>confdefs.h <<_ACEOF
23352
#define OGRE_PLUGINDIR "`pkg-config --variable=plugindir OGRE`"
23358
if test "$freeimage_check" = "true"; then
23359
{ $as_echo "$as_me:$LINENO: checking whether OGRE_NO_FREEIMAGE
23361
$as_echo_n "checking whether OGRE_NO_FREEIMAGE
23362
is declared... " >&6; }
23363
if test "${ac_cv_have_decl_OGRE_NO_FREEIMAGE__+set}" = set; then
23364
$as_echo_n "(cached) " >&6
23366
cat >conftest.$ac_ext <<_ACEOF
23369
cat confdefs.h >>conftest.$ac_ext
23370
cat >>conftest.$ac_ext <<_ACEOF
23371
/* end confdefs.h. */
23372
$ac_includes_default
23376
#ifndef OGRE_NO_FREEIMAGE
23378
(void) OGRE_NO_FREEIMAGE
23386
rm -f conftest.$ac_objext
23387
if { (ac_try="$ac_compile"
23388
case "(($ac_try" in
23389
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390
*) ac_try_echo=$ac_try;;
23392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23393
$as_echo "$ac_try_echo") >&5
23394
(eval "$ac_compile") 2>conftest.er1
23396
grep -v '^ *+' conftest.er1 >conftest.err
23398
cat conftest.err >&5
23399
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400
(exit $ac_status); } && {
23401
test -z "$ac_cxx_werror_flag" ||
23402
test ! -s conftest.err
23403
} && test -s conftest.$ac_objext; then
23404
ac_cv_have_decl_OGRE_NO_FREEIMAGE__=yes
23406
$as_echo "$as_me: failed program was:" >&5
23407
sed 's/^/| /' conftest.$ac_ext >&5
23409
ac_cv_have_decl_OGRE_NO_FREEIMAGE__=no
23412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_OGRE_NO_FREEIMAGE__" >&5
23415
$as_echo "$ac_cv_have_decl_OGRE_NO_FREEIMAGE__" >&6; }
23416
if test "x$ac_cv_have_decl_OGRE_NO_FREEIMAGE__" = x""yes; then
23418
cat >>confdefs.h <<_ACEOF
23419
#define HAVE_DECL_OGRE_NO_FREEIMAGE__ 1
23424
cat >>confdefs.h <<_ACEOF
23425
#define HAVE_DECL_OGRE_NO_FREEIMAGE__ 0
23428
{ $as_echo "$as_me:$LINENO: You've compiled Ogre with FreeImage support. Due to the way old versions of FreeImage includes its own versions of common image libraries such as libpng this could clash with other system libs such as DevIL, leading to random crashes. If you have old version of FreeImage, please compile Ogre with FreeImage disabled (by using the --disable-freeimage configure switch). Ogre will then use DevIL instead." >&5
23429
$as_echo "$as_me: You've compiled Ogre with FreeImage support. Due to the way old versions of FreeImage includes its own versions of common image libraries such as libpng this could clash with other system libs such as DevIL, leading to random crashes. If you have old version of FreeImage, please compile Ogre with FreeImage disabled (by using the --disable-freeimage configure switch). Ogre will then use DevIL instead." >&6;}
23435
{ $as_echo "$as_me:$LINENO: result: ********
23436
You've chosen to disable the FreeImage tests. Proceed on your own risk.
23439
You've chosen to disable the FreeImage tests. Proceed on your own risk.
23448
{ $as_echo "$as_me:$LINENO: checking for LUA" >&5
23449
$as_echo_n "checking for LUA... " >&6; }
23451
if test -n "$LUA_CFLAGS"; then
23452
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23453
elif test -n "$PKG_CONFIG"; then
23454
if test -n "$PKG_CONFIG" && \
23455
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23456
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23458
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459
(exit $ac_status); }; then
23460
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
23467
if test -n "$LUA_LIBS"; then
23468
pkg_cv_LUA_LIBS="$LUA_LIBS"
23469
elif test -n "$PKG_CONFIG"; then
23470
if test -n "$PKG_CONFIG" && \
23471
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
23472
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
23474
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475
(exit $ac_status); }; then
23476
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
23486
if test $pkg_failed = yes; then
23488
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23489
_pkg_short_errors_supported=yes
23491
_pkg_short_errors_supported=no
23493
if test $_pkg_short_errors_supported = yes; then
23494
LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
23496
LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
23498
# Put the nasty error message in config.log where it belongs
23499
echo "$LUA_PKG_ERRORS" >&5
23501
{ $as_echo "$as_me:$LINENO: result: no" >&5
23502
$as_echo "no" >&6; }
23506
{ $as_echo "$as_me:$LINENO: checking for LUA" >&5
23507
$as_echo_n "checking for LUA... " >&6; }
23509
if test -n "$LUA_CFLAGS"; then
23510
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23511
elif test -n "$PKG_CONFIG"; then
23512
if test -n "$PKG_CONFIG" && \
23513
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
23514
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23516
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517
(exit $ac_status); }; then
23518
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23525
if test -n "$LUA_LIBS"; then
23526
pkg_cv_LUA_LIBS="$LUA_LIBS"
23527
elif test -n "$PKG_CONFIG"; then
23528
if test -n "$PKG_CONFIG" && \
23529
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
23530
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23532
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533
(exit $ac_status); }; then
23534
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23544
if test $pkg_failed = yes; then
23546
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23547
_pkg_short_errors_supported=yes
23549
_pkg_short_errors_supported=no
23551
if test $_pkg_short_errors_supported = yes; then
23552
LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1" 2>&1`
23554
LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1" 2>&1`
23556
# Put the nasty error message in config.log where it belongs
23557
echo "$LUA_PKG_ERRORS" >&5
23559
{ $as_echo "$as_me:$LINENO: result: no" >&5
23560
$as_echo "no" >&6; }
23562
{ { $as_echo "$as_me:$LINENO: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&5
23563
$as_echo "$as_me: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&2;}
23564
{ (exit 1); exit 1; }; }
23566
elif test $pkg_failed = untried; then
23568
{ { $as_echo "$as_me:$LINENO: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&5
23569
$as_echo "$as_me: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&2;}
23570
{ (exit 1); exit 1; }; }
23573
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23574
LUA_LIBS=$pkg_cv_LUA_LIBS
23575
{ $as_echo "$as_me:$LINENO: result: yes" >&5
23576
$as_echo "yes" >&6; }
23578
CXXFLAGS="$CXXFLAGS $LUA_CFLAGS -DLUA51"
23579
LIBS="$LIBS $LUA_LIBS"
23580
{ $as_echo "$as_me:$LINENO: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&5
23581
$as_echo "$as_me: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&6;}
23585
elif test $pkg_failed = untried; then
23589
{ $as_echo "$as_me:$LINENO: checking for LUA" >&5
23590
$as_echo_n "checking for LUA... " >&6; }
23592
if test -n "$LUA_CFLAGS"; then
23593
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
23594
elif test -n "$PKG_CONFIG"; then
23595
if test -n "$PKG_CONFIG" && \
23596
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
23597
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23599
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600
(exit $ac_status); }; then
23601
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
23608
if test -n "$LUA_LIBS"; then
23609
pkg_cv_LUA_LIBS="$LUA_LIBS"
23610
elif test -n "$PKG_CONFIG"; then
23611
if test -n "$PKG_CONFIG" && \
23612
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
23613
($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
23615
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616
(exit $ac_status); }; then
23617
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
23627
if test $pkg_failed = yes; then
23629
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23630
_pkg_short_errors_supported=yes
23632
_pkg_short_errors_supported=no
23634
if test $_pkg_short_errors_supported = yes; then
23635
LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1" 2>&1`
23637
LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1" 2>&1`
23639
# Put the nasty error message in config.log where it belongs
23640
echo "$LUA_PKG_ERRORS" >&5
23642
{ $as_echo "$as_me:$LINENO: result: no" >&5
23643
$as_echo "no" >&6; }
23645
{ { $as_echo "$as_me:$LINENO: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&5
23646
$as_echo "$as_me: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&2;}
23647
{ (exit 1); exit 1; }; }
23649
elif test $pkg_failed = untried; then
23651
{ { $as_echo "$as_me:$LINENO: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&5
23652
$as_echo "$as_me: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&2;}
23653
{ (exit 1); exit 1; }; }
23656
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23657
LUA_LIBS=$pkg_cv_LUA_LIBS
23658
{ $as_echo "$as_me:$LINENO: result: yes" >&5
23659
$as_echo "yes" >&6; }
23661
CXXFLAGS="$CXXFLAGS $LUA_CFLAGS -DLUA51"
23662
LIBS="$LIBS $LUA_LIBS"
23663
{ $as_echo "$as_me:$LINENO: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&5
23664
$as_echo "$as_me: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&6;}
23669
LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
23670
LUA_LIBS=$pkg_cv_LUA_LIBS
23671
{ $as_echo "$as_me:$LINENO: result: yes" >&5
23672
$as_echo "yes" >&6; }
23674
CXXFLAGS="$CXXFLAGS $LUA_CFLAGS -DLUA51"
23675
LIBS="$LIBS $LUA_LIBS"
23676
{ $as_echo "$as_me:$LINENO: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&5
23677
$as_echo "$as_me: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&6;}
23681
# Check for tolua++
23682
{ $as_echo "$as_me:$LINENO: checking for main in -lCEGUItoluapp" >&5
23683
$as_echo_n "checking for main in -lCEGUItoluapp... " >&6; }
23684
if test "${ac_cv_lib_CEGUItoluapp_main+set}" = set; then
23685
$as_echo_n "(cached) " >&6
23687
ac_check_lib_save_LIBS=$LIBS
23688
LIBS="-lCEGUItoluapp $LIBS"
23689
cat >conftest.$ac_ext <<_ACEOF
23692
cat confdefs.h >>conftest.$ac_ext
23693
cat >>conftest.$ac_ext <<_ACEOF
23694
/* end confdefs.h. */
23705
rm -f conftest.$ac_objext conftest$ac_exeext
23706
if { (ac_try="$ac_link"
23707
case "(($ac_try" in
23708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709
*) ac_try_echo=$ac_try;;
23711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23712
$as_echo "$ac_try_echo") >&5
23713
(eval "$ac_link") 2>conftest.er1
23715
grep -v '^ *+' conftest.er1 >conftest.err
23717
cat conftest.err >&5
23718
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719
(exit $ac_status); } && {
23720
test -z "$ac_cxx_werror_flag" ||
23721
test ! -s conftest.err
23722
} && test -s conftest$ac_exeext && {
23723
test "$cross_compiling" = yes ||
23724
$as_test_x conftest$ac_exeext
23726
ac_cv_lib_CEGUItoluapp_main=yes
23728
$as_echo "$as_me: failed program was:" >&5
23729
sed 's/^/| /' conftest.$ac_ext >&5
23731
ac_cv_lib_CEGUItoluapp_main=no
23734
rm -rf conftest.dSYM
23735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23736
conftest$ac_exeext conftest.$ac_ext
23737
LIBS=$ac_check_lib_save_LIBS
23739
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_CEGUItoluapp_main" >&5
23740
$as_echo "$ac_cv_lib_CEGUItoluapp_main" >&6; }
23741
if test "x$ac_cv_lib_CEGUItoluapp_main" = x""yes; then
23743
LIBS="-lCEGUItoluapp $LIBS"
23747
{ $as_echo "$as_me:$LINENO: checking for main in -ltolua++" >&5
23748
$as_echo_n "checking for main in -ltolua++... " >&6; }
23749
if test "${ac_cv_lib_toluapp_main+set}" = set; then
23750
$as_echo_n "(cached) " >&6
23752
ac_check_lib_save_LIBS=$LIBS
23753
LIBS="-ltolua++ $LIBS"
23754
cat >conftest.$ac_ext <<_ACEOF
23757
cat confdefs.h >>conftest.$ac_ext
23758
cat >>conftest.$ac_ext <<_ACEOF
23759
/* end confdefs.h. */
23770
rm -f conftest.$ac_objext conftest$ac_exeext
23771
if { (ac_try="$ac_link"
23772
case "(($ac_try" in
23773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774
*) ac_try_echo=$ac_try;;
23776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23777
$as_echo "$ac_try_echo") >&5
23778
(eval "$ac_link") 2>conftest.er1
23780
grep -v '^ *+' conftest.er1 >conftest.err
23782
cat conftest.err >&5
23783
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784
(exit $ac_status); } && {
23785
test -z "$ac_cxx_werror_flag" ||
23786
test ! -s conftest.err
23787
} && test -s conftest$ac_exeext && {
23788
test "$cross_compiling" = yes ||
23789
$as_test_x conftest$ac_exeext
23791
ac_cv_lib_toluapp_main=yes
23793
$as_echo "$as_me: failed program was:" >&5
23794
sed 's/^/| /' conftest.$ac_ext >&5
23796
ac_cv_lib_toluapp_main=no
23799
rm -rf conftest.dSYM
23800
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23801
conftest$ac_exeext conftest.$ac_ext
23802
LIBS=$ac_check_lib_save_LIBS
23804
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_toluapp_main" >&5
23805
$as_echo "$ac_cv_lib_toluapp_main" >&6; }
23806
if test "x$ac_cv_lib_toluapp_main" = x""yes; then
23808
LIBS="-ltolua++ $LIBS"
23812
{ { $as_echo "$as_me:$LINENO: error: Couldn't find tolua++. Make sure that CEGUI compiled with Lua scripting support." >&5
23813
$as_echo "$as_me: error: Couldn't find tolua++. Make sure that CEGUI compiled with Lua scripting support." >&2;}
23814
{ (exit 1); exit 1; }; }
23824
# We have lua and tolua++. Now, check for CEGUI lua module
23825
{ $as_echo "$as_me:$LINENO: checking for main in -lCEGUILuaScriptModule" >&5
23826
$as_echo_n "checking for main in -lCEGUILuaScriptModule... " >&6; }
23827
if test "${ac_cv_lib_CEGUILuaScriptModule_main+set}" = set; then
23828
$as_echo_n "(cached) " >&6
23830
ac_check_lib_save_LIBS=$LIBS
23831
LIBS="-lCEGUILuaScriptModule $LIBS"
23832
cat >conftest.$ac_ext <<_ACEOF
23835
cat confdefs.h >>conftest.$ac_ext
23836
cat >>conftest.$ac_ext <<_ACEOF
23837
/* end confdefs.h. */
23848
rm -f conftest.$ac_objext conftest$ac_exeext
23849
if { (ac_try="$ac_link"
23850
case "(($ac_try" in
23851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852
*) ac_try_echo=$ac_try;;
23854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23855
$as_echo "$ac_try_echo") >&5
23856
(eval "$ac_link") 2>conftest.er1
23858
grep -v '^ *+' conftest.er1 >conftest.err
23860
cat conftest.err >&5
23861
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862
(exit $ac_status); } && {
23863
test -z "$ac_cxx_werror_flag" ||
23864
test ! -s conftest.err
23865
} && test -s conftest$ac_exeext && {
23866
test "$cross_compiling" = yes ||
23867
$as_test_x conftest$ac_exeext
23869
ac_cv_lib_CEGUILuaScriptModule_main=yes
23871
$as_echo "$as_me: failed program was:" >&5
23872
sed 's/^/| /' conftest.$ac_ext >&5
23874
ac_cv_lib_CEGUILuaScriptModule_main=no
23877
rm -rf conftest.dSYM
23878
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23879
conftest$ac_exeext conftest.$ac_ext
23880
LIBS=$ac_check_lib_save_LIBS
23882
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_CEGUILuaScriptModule_main" >&5
23883
$as_echo "$ac_cv_lib_CEGUILuaScriptModule_main" >&6; }
23884
if test "x$ac_cv_lib_CEGUILuaScriptModule_main" = x""yes; then
23886
LIBS="-lCEGUILuaScriptModule $LIBS"
23890
{ { $as_echo "$as_me:$LINENO: error: Couldn't find Lua CEGUI module. Make sure that CEGUI compiled with Lua scripting support." >&5
23891
$as_echo "$as_me: error: Couldn't find Lua CEGUI module. Make sure that CEGUI compiled with Lua scripting support." >&2;}
23892
{ (exit 1); exit 1; }; }
23901
OPENAL_VERSION=0.0.8
23904
{ $as_echo "$as_me:$LINENO: checking for OPENAL" >&5
23905
$as_echo_n "checking for OPENAL... " >&6; }
23907
if test -n "$OPENAL_CFLAGS"; then
23908
pkg_cv_OPENAL_CFLAGS="$OPENAL_CFLAGS"
23909
elif test -n "$PKG_CONFIG"; then
23910
if test -n "$PKG_CONFIG" && \
23911
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openal >= \$OPENAL_VERSION\"") >&5
23912
($PKG_CONFIG --exists --print-errors "openal >= $OPENAL_VERSION") 2>&5
23914
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915
(exit $ac_status); }; then
23916
pkg_cv_OPENAL_CFLAGS=`$PKG_CONFIG --cflags "openal >= $OPENAL_VERSION" 2>/dev/null`
23923
if test -n "$OPENAL_LIBS"; then
23924
pkg_cv_OPENAL_LIBS="$OPENAL_LIBS"
23925
elif test -n "$PKG_CONFIG"; then
23926
if test -n "$PKG_CONFIG" && \
23927
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openal >= \$OPENAL_VERSION\"") >&5
23928
($PKG_CONFIG --exists --print-errors "openal >= $OPENAL_VERSION") 2>&5
23930
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931
(exit $ac_status); }; then
23932
pkg_cv_OPENAL_LIBS=`$PKG_CONFIG --libs "openal >= $OPENAL_VERSION" 2>/dev/null`
23942
if test $pkg_failed = yes; then
23944
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23945
_pkg_short_errors_supported=yes
23947
_pkg_short_errors_supported=no
23949
if test $_pkg_short_errors_supported = yes; then
23950
OPENAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openal >= $OPENAL_VERSION" 2>&1`
23952
OPENAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openal >= $OPENAL_VERSION" 2>&1`
23954
# Put the nasty error message in config.log where it belongs
23955
echo "$OPENAL_PKG_ERRORS" >&5
23957
{ $as_echo "$as_me:$LINENO: result: no" >&5
23958
$as_echo "no" >&6; }
23960
{ { $as_echo "$as_me:$LINENO: error: Couldn't find OpenAL or tests failed. Error: $OPENAL_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&5
23961
$as_echo "$as_me: error: Couldn't find OpenAL or tests failed. Error: $OPENAL_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&2;}
23962
{ (exit 1); exit 1; }; }
23964
elif test $pkg_failed = untried; then
23966
{ { $as_echo "$as_me:$LINENO: error: Couldn't find OpenAL or tests failed. Error: $OPENAL_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&5
23967
$as_echo "$as_me: error: Couldn't find OpenAL or tests failed. Error: $OPENAL_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&2;}
23968
{ (exit 1); exit 1; }; }
23971
OPENAL_CFLAGS=$pkg_cv_OPENAL_CFLAGS
23972
OPENAL_LIBS=$pkg_cv_OPENAL_LIBS
23973
{ $as_echo "$as_me:$LINENO: result: yes" >&5
23974
$as_echo "yes" >&6; }
23976
CXXFLAGS="$CXXFLAGS $OPENAL_CFLAGS"
23977
LIBS="$LIBS $OPENAL_LIBS"
23983
#PKG_CHECK_MODULES(OGG, ogg >= $OGG_VERSION,
23985
# CXXFLAGS="$CXXFLAGS $OGG_CFLAGS"
23986
# LIBS="$LIBS $OGG_LIBS"
23989
# AC_MSG_ERROR([Couldn't find libogg or tests failed. Error: $OGG_PKG_ERRORS. Please go to http://www.vorbis.com to get the latest, or check config.log to see why the tests failed, and fix it.])
23993
#VORBIS_VERSION=1.2.0
23994
#PKG_CHECK_MODULES(VORBIS, vorbis >= $VORBIS_VERSION,
23996
# CXXFLAGS="$CXXFLAGS $VORBIS_CFLAGS"
23997
# LIBS="$LIBS $VORBIS_LIBS"
24000
# AC_MSG_ERROR([Couldn't find libvorbis or tests failed. Error: $VORBIS_PKG_ERRORS. Please go to http://www.vorbis.com to get the latest, or check config.log to see why the tests failed, and fix it.])
24003
#check for vorbisfile
24004
#VORBISF_VERSION=1.2.0
24005
#PKG_CHECK_MODULES(VORBISF, vorbisfile >= $VORBISF_VERSION,
24007
# CXXFLAGS="$CXXFLAGS $VORBISF_CFLAGS"
24008
# LIBS="$LIBS $VORBISF_LIBS"
24011
# AC_MSG_ERROR([Couldn't find vorbisfile tests failed. Error: $VORBISF_PKG_ERRORS. Please go to http://www.vorbis.com to get the latest, or check config.log to see why the tests failed, and fix it.])
24014
# Check for FreeALUT
24015
FREEALUT_VERSION=1.0.0
24018
{ $as_echo "$as_me:$LINENO: checking for FREEALUT" >&5
24019
$as_echo_n "checking for FREEALUT... " >&6; }
24021
if test -n "$FREEALUT_CFLAGS"; then
24022
pkg_cv_FREEALUT_CFLAGS="$FREEALUT_CFLAGS"
24023
elif test -n "$PKG_CONFIG"; then
24024
if test -n "$PKG_CONFIG" && \
24025
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freealut >= \$FREEALUT_VERSION\"") >&5
24026
($PKG_CONFIG --exists --print-errors "freealut >= $FREEALUT_VERSION") 2>&5
24028
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029
(exit $ac_status); }; then
24030
pkg_cv_FREEALUT_CFLAGS=`$PKG_CONFIG --cflags "freealut >= $FREEALUT_VERSION" 2>/dev/null`
24037
if test -n "$FREEALUT_LIBS"; then
24038
pkg_cv_FREEALUT_LIBS="$FREEALUT_LIBS"
24039
elif test -n "$PKG_CONFIG"; then
24040
if test -n "$PKG_CONFIG" && \
24041
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freealut >= \$FREEALUT_VERSION\"") >&5
24042
($PKG_CONFIG --exists --print-errors "freealut >= $FREEALUT_VERSION") 2>&5
24044
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045
(exit $ac_status); }; then
24046
pkg_cv_FREEALUT_LIBS=`$PKG_CONFIG --libs "freealut >= $FREEALUT_VERSION" 2>/dev/null`
24056
if test $pkg_failed = yes; then
24058
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24059
_pkg_short_errors_supported=yes
24061
_pkg_short_errors_supported=no
24063
if test $_pkg_short_errors_supported = yes; then
24064
FREEALUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freealut >= $FREEALUT_VERSION" 2>&1`
24066
FREEALUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "freealut >= $FREEALUT_VERSION" 2>&1`
24068
# Put the nasty error message in config.log where it belongs
24069
echo "$FREEALUT_PKG_ERRORS" >&5
24071
{ $as_echo "$as_me:$LINENO: result: no" >&5
24072
$as_echo "no" >&6; }
24074
{ { $as_echo "$as_me:$LINENO: error: Couldn't find FreeALUT or tests failed. Error: $FREEALUT_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&5
24075
$as_echo "$as_me: error: Couldn't find FreeALUT or tests failed. Error: $FREEALUT_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&2;}
24076
{ (exit 1); exit 1; }; }
24078
elif test $pkg_failed = untried; then
24080
{ { $as_echo "$as_me:$LINENO: error: Couldn't find FreeALUT or tests failed. Error: $FREEALUT_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&5
24081
$as_echo "$as_me: error: Couldn't find FreeALUT or tests failed. Error: $FREEALUT_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&2;}
24082
{ (exit 1); exit 1; }; }
24085
FREEALUT_CFLAGS=$pkg_cv_FREEALUT_CFLAGS
24086
FREEALUT_LIBS=$pkg_cv_FREEALUT_LIBS
24087
{ $as_echo "$as_me:$LINENO: result: yes" >&5
24088
$as_echo "yes" >&6; }
24090
CXXFLAGS="$CXXFLAGS $FREEALUT_CFLAGS"
24091
LIBS="$LIBS $FREEALUT_LIBS"
24097
#CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
24100
#AC_SUBST(SDL_VERSION)
24102
# check for sigc++ separately from the WF checks
24105
{ $as_echo "$as_me:$LINENO: checking for SIG" >&5
24106
$as_echo_n "checking for SIG... " >&6; }
24108
if test -n "$SIG_CFLAGS"; then
24109
pkg_cv_SIG_CFLAGS="$SIG_CFLAGS"
24110
elif test -n "$PKG_CONFIG"; then
24111
if test -n "$PKG_CONFIG" && \
24112
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.0\"") >&5
24113
($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.0") 2>&5
24115
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116
(exit $ac_status); }; then
24117
pkg_cv_SIG_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.0" 2>/dev/null`
24124
if test -n "$SIG_LIBS"; then
24125
pkg_cv_SIG_LIBS="$SIG_LIBS"
24126
elif test -n "$PKG_CONFIG"; then
24127
if test -n "$PKG_CONFIG" && \
24128
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.0\"") >&5
24129
($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.0") 2>&5
24131
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132
(exit $ac_status); }; then
24133
pkg_cv_SIG_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.0" 2>/dev/null`
24143
if test $pkg_failed = yes; then
24145
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24146
_pkg_short_errors_supported=yes
24148
_pkg_short_errors_supported=no
24150
if test $_pkg_short_errors_supported = yes; then
24151
SIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sigc++-2.0 >= 2.0" 2>&1`
24153
SIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "sigc++-2.0 >= 2.0" 2>&1`
24155
# Put the nasty error message in config.log where it belongs
24156
echo "$SIG_PKG_ERRORS" >&5
24158
{ $as_echo "$as_me:$LINENO: result: no" >&5
24159
$as_echo "no" >&6; }
24161
{ { $as_echo "$as_me:$LINENO: error: Couldn't find SIGC++2.0" >&5
24162
$as_echo "$as_me: error: Couldn't find SIGC++2.0" >&2;}
24163
{ (exit 1); exit 1; }; }
24165
elif test $pkg_failed = untried; then
24167
{ { $as_echo "$as_me:$LINENO: error: Couldn't find SIGC++2.0" >&5
24168
$as_echo "$as_me: error: Couldn't find SIGC++2.0" >&2;}
24169
{ (exit 1); exit 1; }; }
24172
SIG_CFLAGS=$pkg_cv_SIG_CFLAGS
24173
SIG_LIBS=$pkg_cv_SIG_LIBS
24174
{ $as_echo "$as_me:$LINENO: result: yes" >&5
24175
$as_echo "yes" >&6; }
24177
CXXFLAGS="$CXXFLAGS $SIG_CFLAGS"
24178
LIBS="$LIBS $SIG_LIBS"
24182
# Check for the WorldForge libs
24185
{ $as_echo "$as_me:$LINENO: checking for WF" >&5
24186
$as_echo_n "checking for WF... " >&6; }
24188
if test -n "$WF_CFLAGS"; then
24189
pkg_cv_WF_CFLAGS="$WF_CFLAGS"
24190
elif test -n "$PKG_CONFIG"; then
24191
if test -n "$PKG_CONFIG" && \
24192
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"eris-1.3 >= 1.3.14 \\
24193
varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0\"") >&5
24194
($PKG_CONFIG --exists --print-errors "eris-1.3 >= 1.3.14 \
24195
varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0") 2>&5
24197
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198
(exit $ac_status); }; then
24199
pkg_cv_WF_CFLAGS=`$PKG_CONFIG --cflags "eris-1.3 >= 1.3.14 \
24200
varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0" 2>/dev/null`
24207
if test -n "$WF_LIBS"; then
24208
pkg_cv_WF_LIBS="$WF_LIBS"
24209
elif test -n "$PKG_CONFIG"; then
24210
if test -n "$PKG_CONFIG" && \
24211
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"eris-1.3 >= 1.3.14 \\
24212
varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0\"") >&5
24213
($PKG_CONFIG --exists --print-errors "eris-1.3 >= 1.3.14 \
24214
varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0") 2>&5
24216
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217
(exit $ac_status); }; then
24218
pkg_cv_WF_LIBS=`$PKG_CONFIG --libs "eris-1.3 >= 1.3.14 \
24219
varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0" 2>/dev/null`
24229
if test $pkg_failed = yes; then
24231
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24232
_pkg_short_errors_supported=yes
24234
_pkg_short_errors_supported=no
24236
if test $_pkg_short_errors_supported = yes; then
24237
WF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eris-1.3 >= 1.3.14 \
24238
varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0" 2>&1`
24240
WF_PKG_ERRORS=`$PKG_CONFIG --print-errors "eris-1.3 >= 1.3.14 \
24241
varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0" 2>&1`
24243
# Put the nasty error message in config.log where it belongs
24244
echo "$WF_PKG_ERRORS" >&5
24246
{ $as_echo "$as_me:$LINENO: result: no" >&5
24247
$as_echo "no" >&6; }
24248
{ { $as_echo "$as_me:$LINENO: error: Couldn't find some of the required WorldForge libraries: $WF_PKG_ERRORS
24249
Please visit http://worldforge.org/dev/eng/libraries to get the latest versions." >&5
24250
$as_echo "$as_me: error: Couldn't find some of the required WorldForge libraries: $WF_PKG_ERRORS
24251
Please visit http://worldforge.org/dev/eng/libraries to get the latest versions." >&2;}
24252
{ (exit 1); exit 1; }; }
24254
elif test $pkg_failed = untried; then
24255
{ { $as_echo "$as_me:$LINENO: error: Couldn't find some of the required WorldForge libraries: $WF_PKG_ERRORS
24256
Please visit http://worldforge.org/dev/eng/libraries to get the latest versions." >&5
24257
$as_echo "$as_me: error: Couldn't find some of the required WorldForge libraries: $WF_PKG_ERRORS
24258
Please visit http://worldforge.org/dev/eng/libraries to get the latest versions." >&2;}
24259
{ (exit 1); exit 1; }; }
24262
WF_CFLAGS=$pkg_cv_WF_CFLAGS
24263
WF_LIBS=$pkg_cv_WF_LIBS
24264
{ $as_echo "$as_me:$LINENO: result: yes" >&5
24265
$as_echo "yes" >&6; }
24267
CXXFLAGS="$CXXFLAGS $WF_CFLAGS"
24268
LIBS="$LIBS $WF_LIBS"
24276
#AC_ARG_ENABLE(cppunit,[ --enable-cppunit enables cppunit tests [default=yes]],
24278
# if test x$enableval = xno; then
24279
# ac_use_cppunit="no"
24281
# ac_use_cppunit="yes"
24283
#], [ac_use_cppunit="yes"])
24287
#if test "$ac_use_cppunit" = "yes"; then
24288
#AM_PATH_CPPUNIT(1.8.0, [
24291
#*** Setting up make check to run tests...])
24292
# CXXFLAGS="$CXXFLAGS -DUSE_CPP_UNIT"
24293
# LIBS="$LIBS $CPPUNIT_LIBS"
24297
#*** Unable to find a recent enough CppUnit
24298
#*** Will not run unit testing!!
24300
#*** To get CppUnit see http://cppunit.sourceforge.net
24306
# Check whether --enable-debug was given.
24307
if test "${enable_debug+set}" = set; then
24308
enableval=$enable_debug;
24309
if test x$enableval = xno; then
24310
ac_use_debug_code="no"
24312
ac_use_debug_code="yes"
24316
ac_use_debug_code="no"
24320
if test "$ac_use_debug_code" = "yes"; then
24321
CFLAGS="$CFLAGS -DDEBUG"
24322
CXXFLAGS="$CXXFLAGS -DDEBUG"
24324
CFLAGS="$CFLAGS -DNDEBUG"
24325
CXXFLAGS="$CXXFLAGS -DNDEBUG"
24329
# Check whether --enable-thread_safe was given.
24330
if test "${enable_thread_safe+set}" = set; then
24331
enableval=$enable_thread_safe;
24332
if test x$enableval = xno; then
24333
ac_use_thread_code="no"
24335
ac_use_thread_code="yes"
24339
ac_use_thread_code="no"
24343
if test "$ac_use_thread_code" = "yes"; then
24344
CFLAGS="$CFLAGS -DTHREAD_SAFE"
24345
CXXFLAGS="$CXXFLAGS -DTHREAD_SAFE"
24346
LIBS="$LIBS -lpthread"
24349
# gprof debugging option
24350
# Check whether --enable-gprof was given.
24351
if test "${enable_gprof+set}" = set; then
24352
enableval=$enable_gprof;
24353
if test x$enableval = xno; then
24354
ac_use_gprof_code="no"
24356
ac_use_gprof_code="yes"
24360
ac_use_gprof_code="no"
24364
if test "$ac_use_gprof_code" = "yes"; then
24365
CFLAGS="$CFLAGS -pg -g"
24366
CXXFLAGS="$CXXFLAGS -pg -g"
24374
#dnl add SDL flags here, now that we're done with the other tests
24375
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
24376
LIBS="$LIBS $SDL_LIBS"
24379
{ $as_echo "$as_me:$LINENO: result:
24381
**************************************
24382
* Tests Passed, Creating Makefiles.
24383
**************************************
24388
**************************************
24389
* Tests Passed, Creating Makefiles.
24390
**************************************
24394
ac_config_files="$ac_config_files Makefile src/Makefile src/main/Makefile src/main/bindings/Makefile src/main/bindings/lua/Makefile src/components/Makefile src/framework/Makefile src/framework/bindings/Makefile src/framework/bindings/lua/Makefile src/framework/bindings/lua/eris/Makefile src/framework/bindings/lua/atlas/Makefile src/services/Makefile src/services/config/Makefile src/services/logging/Makefile src/services/metaserver/Makefile src/services/server/Makefile src/services/scripting/Makefile src/services/sound/Makefile src/services/time/Makefile src/services/bindings/Makefile src/services/bindings/lua/Makefile src/services/wfut/Makefile src/services/input/Makefile ember.dox ember ember.spec ember-media.spec autopackage/default.apspec src/extensions/Makefile src/components/ogre/scripting/Makefile src/components/ogre/scripting/bindings/Makefile src/components/ogre/scripting/bindings/lua/Makefile src/components/ogre/scripting/bindings/lua/ogre/Makefile src/components/ogre/scripting/bindings/lua/helpers/Makefile src/components/ogre/sound/Makefile src/components/ogre/ogreopcode/Makefile src/components/ogre/ogreopcode/src/Makefile src/components/ogre/ogreopcode/src/Opcode/Makefile src/components/ogre/ogreopcode/include/Makefile src/components/ogre/ogreopcode/include/Opcode/Makefile src/components/ogre/Makefile src/components/ogre/gui/Makefile src/components/ogre/cegui/Makefile src/components/ogre/widgets/Makefile src/components/ogre/widgets/adapters/Makefile src/components/ogre/widgets/adapters/atlas/Makefile src/components/ogre/widgets/icons/Makefile src/components/ogre/environment/meshtree/Makefile src/components/ogre/environment/caelum/Makefile src/components/ogre/environment/hydrax/Makefile src/components/ogre/environment/pagedgeometry/Makefile src/components/ogre/environment/Makefile src/components/ogre/model/Makefile src/components/ogre/model/mapping/Makefile src/components/ogre/modeldefinitions/Makefile src/components/ogre/sounddefinitions/Makefile src/components/ogre/carpenter/Makefile src/components/ogre/jesus/Makefile src/components/ogre/manipulation/Makefile src/components/ogre/manipulation/entityrecipes/Makefile src/components/ogre/terrain/Makefile src/components/ogre/SceneManagers/Makefile src/components/ogre/SceneManagers/EmberPagingSceneManager/Makefile src/components/ogre/SceneManagers/EmberPagingSceneManager/src/Makefile src/components/ogre/SceneManagers/EmberPagingSceneManager/include/Makefile media/Makefile media/packs/Makefile"
24397
cat >confcache <<\_ACEOF
24398
# This file is a shell script that caches the results of configure
24399
# tests run on this system so they can be shared between configure
24400
# scripts and configure runs, see configure's option --config-cache.
24401
# It is not useful on other systems. If it contains results you don't
24402
# want to keep, you may remove or edit it.
24404
# config.status only pays attention to the cache file if you give it
24405
# the --recheck option to rerun configure.
24407
# `ac_cv_env_foo' variables (set or unset) will be overridden when
24408
# loading this file, other *unset* `ac_cv_foo' will be assigned the
24409
# following values.
24413
# The following way of writing the cache mishandles newlines in values,
24414
# but we know of no workaround that is simple, portable, and efficient.
24415
# So, we kill variables containing newlines.
24416
# Ultrix sh set writes to stderr and can't be redirected directly,
24417
# and sets the high bit in the cache file unless we assign to the vars.
24419
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24420
eval ac_val=\$$ac_var
24424
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
24425
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24428
_ | IFS | as_nl) ;; #(
24429
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24430
*) $as_unset $ac_var ;;
24436
case $as_nl`(ac_space=' '; set) 2>&1` in #(
24437
*${as_nl}ac_space=\ *)
24438
# `set' does not quote correctly, so add quotes (double-quote
24439
# substitution turns \\\\ into \\, and sed turns \\ into \).
24442
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24445
# `set' quotes correctly as required by POSIX, so do not add quotes.
24446
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24455
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24457
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24459
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24460
if test -w "$cache_file"; then
24461
test "x$cache_file" != "x/dev/null" &&
24462
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24463
$as_echo "$as_me: updating cache $cache_file" >&6;}
24464
cat confcache >$cache_file
24466
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24467
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24472
test "x$prefix" = xNONE && prefix=$ac_default_prefix
24473
# Let make expand exec_prefix.
24474
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24476
DEFS=-DHAVE_CONFIG_H
24480
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24481
# 1. Remove the extension, and $U if already installed.
24482
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24483
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24484
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24485
# will be set to the directory where LIBOBJS objects are built.
24486
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24487
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24489
LIBOBJS=$ac_libobjs
24491
LTLIBOBJS=$ac_ltlibobjs
24494
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24495
{ { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24496
Usually this means the macro was only invoked conditionally." >&5
24497
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24498
Usually this means the macro was only invoked conditionally." >&2;}
24499
{ (exit 1); exit 1; }; }
24501
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24502
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24503
Usually this means the macro was only invoked conditionally." >&5
24504
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24505
Usually this means the macro was only invoked conditionally." >&2;}
24506
{ (exit 1); exit 1; }; }
24508
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24509
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24510
Usually this means the macro was only invoked conditionally." >&5
24511
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24512
Usually this means the macro was only invoked conditionally." >&2;}
24513
{ (exit 1); exit 1; }; }
24515
if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
24516
{ { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_STATIC\" was never defined.
24517
Usually this means the macro was only invoked conditionally." >&5
24518
$as_echo "$as_me: error: conditional \"BUILD_STATIC\" was never defined.
24519
Usually this means the macro was only invoked conditionally." >&2;}
24520
{ (exit 1); exit 1; }; }
24522
if test -z "${HAVE_LIBTINYXML_TRUE}" && test -z "${HAVE_LIBTINYXML_FALSE}"; then
24523
{ { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBTINYXML\" was never defined.
24524
Usually this means the macro was only invoked conditionally." >&5
24525
$as_echo "$as_me: error: conditional \"HAVE_LIBTINYXML\" was never defined.
24526
Usually this means the macro was only invoked conditionally." >&2;}
24527
{ (exit 1); exit 1; }; }
24530
: ${CONFIG_STATUS=./config.status}
24532
ac_clean_files_save=$ac_clean_files
24533
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24534
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24535
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24536
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24538
# Generated by $as_me.
24539
# Run this file to recreate the current configuration.
24540
# Compiler output produced by configure, useful for debugging
24541
# configure, is in config.log if it exists.
24544
ac_cs_recheck=false
24546
SHELL=\${CONFIG_SHELL-$SHELL}
24549
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24550
## --------------------- ##
24551
## M4sh Initialization. ##
24552
## --------------------- ##
24554
# Be more Bourne compatible
24555
DUALCASE=1; export DUALCASE # for MKS sh
24556
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24559
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24560
# is contrary to our usage. Disable this feature.
24561
alias -g '${1+"$@"}'='"$@"'
24562
setopt NO_GLOB_SUBST
24564
case `(set -o) 2>/dev/null` in
24565
*posix*) set -o posix ;;
24574
# Avoid depending upon Character Ranges.
24575
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24576
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24577
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24578
as_cr_digits='0123456789'
24579
as_cr_alnum=$as_cr_Letters$as_cr_digits
24584
# Printing a long string crashes Solaris 7 /usr/bin/printf.
24585
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24586
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24587
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24588
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24589
as_echo='printf %s\n'
24590
as_echo_n='printf %s'
24592
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24593
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24594
as_echo_n='/usr/ucb/echo -n'
24596
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24597
as_echo_n_body='eval
24601
expr "X$arg" : "X\\(.*\\)$as_nl";
24602
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24604
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24606
export as_echo_n_body
24607
as_echo_n='sh -c $as_echo_n_body as_echo'
24609
export as_echo_body
24610
as_echo='sh -c $as_echo_body as_echo'
24613
# The user is always right.
24614
if test "${PATH_SEPARATOR+set}" != set; then
24616
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24617
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24622
# Support unset when possible.
24623
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24631
# We need space, tab and new line, in precisely that order. Quoting is
24632
# there to prevent editors from complaining about space-tab.
24633
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24634
# splitting by setting IFS to empty value.)
24637
# Find who we are. Look in the path if we contain no directory separator.
24639
*[\\/]* ) as_myself=$0 ;;
24640
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24641
for as_dir in $PATH
24644
test -z "$as_dir" && as_dir=.
24645
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24651
# We did not find ourselves, most probably we were run as `sh COMMAND'
24652
# in which case we are not to be found in the path.
24653
if test "x$as_myself" = x; then
24656
if test ! -f "$as_myself"; then
24657
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24658
{ (exit 1); exit 1; }
24661
# Work around bugs in pre-3.0 UWIN ksh.
24662
for as_var in ENV MAIL MAILPATH
24663
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24675
# Required to use basename.
24676
if expr a : '\(a\)' >/dev/null 2>&1 &&
24677
test "X`expr 00001 : '.*\(...\)'`" = X001; then
24683
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24684
as_basename=basename
24690
# Name of the executable.
24691
as_me=`$as_basename -- "$0" ||
24692
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24693
X"$0" : 'X\(//\)$' \| \
24694
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24696
sed '/^.*\/\([^/][^/]*\)\/*$/{
24715
as_lineno_1=$LINENO
24716
as_lineno_2=$LINENO
24717
test "x$as_lineno_1" != "x$as_lineno_2" &&
24718
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24720
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24721
# uniformly replaced by the line number. The first 'sed' inserts a
24722
# line-number line after each line using $LINENO; the second 'sed'
24723
# does the real work. The second script uses 'N' to pair each
24724
# line-number line with the line containing $LINENO, and appends
24725
# trailing '-' during substitution so that $LINENO is not a special
24726
# case at line end.
24727
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24728
# scripts with optimization help from Paolo Bonzini. Blame Lee
24729
# E. McMahon (1931-1989) for sed's syntax. :-)
24741
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24744
' >$as_me.lineno &&
24745
chmod +x "$as_me.lineno" ||
24746
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24747
{ (exit 1); exit 1; }; }
24749
# Don't try to exec as it changes $[0], causing all sort of problems
24750
# (the dirname of $[0] is not the place where we might find the
24751
# original and so on. Autoconf is especially sensitive to this).
24752
. "./$as_me.lineno"
24753
# Exit status is that of the last command.
24758
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24764
ECHO_C= ECHO_N= ECHO_T=
24765
case `echo -n x` in
24767
case `echo 'x\c'` in
24768
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
24774
if expr a : '\(a\)' >/dev/null 2>&1 &&
24775
test "X`expr 00001 : '.*\(...\)'`" = X001; then
24781
rm -f conf$$ conf$$.exe conf$$.file
24782
if test -d conf$$.dir; then
24783
rm -f conf$$.dir/conf$$.file
24786
mkdir conf$$.dir 2>/dev/null
24788
if (echo >conf$$.file) 2>/dev/null; then
24789
if ln -s conf$$.file conf$$ 2>/dev/null; then
24791
# ... but there are two gotchas:
24792
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24793
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24794
# In both cases, we have to default to `cp -p'.
24795
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24797
elif ln conf$$.file conf$$ 2>/dev/null; then
24805
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24806
rmdir conf$$.dir 2>/dev/null
24808
if mkdir -p . 2>/dev/null; then
24811
test -d ./-p && rmdir ./-p
24815
if test -x / >/dev/null 2>&1; then
24816
as_test_x='test -x'
24818
if ls -dL / >/dev/null 2>&1; then
24825
if test -d "$1"; then
24831
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24832
???[sx]*):;;*)false;;esac;fi
24836
as_executable_p=$as_test_x
24838
# Sed expression to map a string onto a valid CPP name.
24839
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24841
# Sed expression to map a string onto a valid variable name.
24842
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24847
# Save the log message, to keep $[0] and so on meaningful, and to
24848
# report actual input values of CONFIG_FILES etc. instead of their
24849
# values after options handling.
24851
This file was extended by Ember $as_me 0.5.6, which was
24852
generated by GNU Autoconf 2.63. Invocation command line was
24854
CONFIG_FILES = $CONFIG_FILES
24855
CONFIG_HEADERS = $CONFIG_HEADERS
24856
CONFIG_LINKS = $CONFIG_LINKS
24857
CONFIG_COMMANDS = $CONFIG_COMMANDS
24860
on `(hostname || uname -n) 2>/dev/null | sed 1q`
24865
case $ac_config_files in *"
24866
"*) set x $ac_config_files; shift; ac_config_files=$*;;
24869
case $ac_config_headers in *"
24870
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24874
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24875
# Files that config.status was made for.
24876
config_files="`echo $ac_config_files`"
24877
config_headers="`echo $ac_config_headers`"
24878
config_commands="`echo $ac_config_commands`"
24882
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24884
\`$as_me' instantiates files from templates according to the
24885
current configuration.
24887
Usage: $0 [OPTION]... [FILE]...
24889
-h, --help print this help, then exit
24890
-V, --version print version number and configuration settings, then exit
24891
-q, --quiet, --silent
24892
do not print progress messages
24893
-d, --debug don't remove temporary files
24894
--recheck update $as_me by reconfiguring in the same conditions
24895
--file=FILE[:TEMPLATE]
24896
instantiate the configuration file FILE
24897
--header=FILE[:TEMPLATE]
24898
instantiate the configuration header FILE
24900
Configuration files:
24903
Configuration headers:
24906
Configuration commands:
24909
Report bugs to <bug-autoconf@gnu.org>."
24912
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24914
Ember config.status 0.5.6
24915
configured by $0, generated by GNU Autoconf 2.63,
24916
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24918
Copyright (C) 2008 Free Software Foundation, Inc.
24919
This config.status script is free software; the Free Software Foundation
24920
gives unlimited permission to copy, distribute and modify it."
24927
test -n "\$AWK" || AWK=awk
24930
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24931
# The default lists apply if the user does not specify any file.
24937
ac_option=`expr "X$1" : 'X\([^=]*\)='`
24938
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24949
# Handling of the options.
24950
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24952
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24953
$as_echo "$ac_cs_version"; exit ;;
24954
--debug | --debu | --deb | --de | --d | -d )
24956
--file | --fil | --fi | --f )
24959
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24961
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24962
ac_need_defaults=false;;
24963
--header | --heade | --head | --hea )
24966
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24968
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24969
ac_need_defaults=false;;
24971
# Conflict between --help and --header
24972
{ $as_echo "$as_me: error: ambiguous option: $1
24973
Try \`$0 --help' for more information." >&2
24974
{ (exit 1); exit 1; }; };;
24975
--help | --hel | -h )
24976
$as_echo "$ac_cs_usage"; exit ;;
24977
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
24978
| -silent | --silent | --silen | --sile | --sil | --si | --s)
24981
# This is an error.
24982
-*) { $as_echo "$as_me: error: unrecognized option: $1
24983
Try \`$0 --help' for more information." >&2
24984
{ (exit 1); exit 1; }; } ;;
24986
*) ac_config_targets="$ac_config_targets $1"
24987
ac_need_defaults=false ;;
24993
ac_configure_extra_args=
24995
if $ac_cs_silent; then
24997
ac_configure_extra_args="$ac_configure_extra_args --silent"
25001
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25002
if \$ac_cs_recheck; then
25003
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25005
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25006
CONFIG_SHELL='$SHELL'
25007
export CONFIG_SHELL
25012
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25016
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25017
## Running $as_me. ##
25023
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25027
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25031
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25033
# Handling of arguments.
25034
for ac_config_target in $ac_config_targets
25036
case $ac_config_target in
25037
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25038
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25039
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25040
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25041
"src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
25042
"src/main/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/bindings/Makefile" ;;
25043
"src/main/bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/bindings/lua/Makefile" ;;
25044
"src/components/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/Makefile" ;;
25045
"src/framework/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/Makefile" ;;
25046
"src/framework/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/bindings/Makefile" ;;
25047
"src/framework/bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/bindings/lua/Makefile" ;;
25048
"src/framework/bindings/lua/eris/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/bindings/lua/eris/Makefile" ;;
25049
"src/framework/bindings/lua/atlas/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/bindings/lua/atlas/Makefile" ;;
25050
"src/services/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/Makefile" ;;
25051
"src/services/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/config/Makefile" ;;
25052
"src/services/logging/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/logging/Makefile" ;;
25053
"src/services/metaserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/metaserver/Makefile" ;;
25054
"src/services/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/server/Makefile" ;;
25055
"src/services/scripting/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/scripting/Makefile" ;;
25056
"src/services/sound/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/sound/Makefile" ;;
25057
"src/services/time/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/time/Makefile" ;;
25058
"src/services/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/bindings/Makefile" ;;
25059
"src/services/bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/bindings/lua/Makefile" ;;
25060
"src/services/wfut/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/wfut/Makefile" ;;
25061
"src/services/input/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/input/Makefile" ;;
25062
"ember.dox") CONFIG_FILES="$CONFIG_FILES ember.dox" ;;
25063
"ember") CONFIG_FILES="$CONFIG_FILES ember" ;;
25064
"ember.spec") CONFIG_FILES="$CONFIG_FILES ember.spec" ;;
25065
"ember-media.spec") CONFIG_FILES="$CONFIG_FILES ember-media.spec" ;;
25066
"autopackage/default.apspec") CONFIG_FILES="$CONFIG_FILES autopackage/default.apspec" ;;
25067
"src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
25068
"src/components/ogre/scripting/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/Makefile" ;;
25069
"src/components/ogre/scripting/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/bindings/Makefile" ;;
25070
"src/components/ogre/scripting/bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/bindings/lua/Makefile" ;;
25071
"src/components/ogre/scripting/bindings/lua/ogre/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/bindings/lua/ogre/Makefile" ;;
25072
"src/components/ogre/scripting/bindings/lua/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/bindings/lua/helpers/Makefile" ;;
25073
"src/components/ogre/sound/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/sound/Makefile" ;;
25074
"src/components/ogre/ogreopcode/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/Makefile" ;;
25075
"src/components/ogre/ogreopcode/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/src/Makefile" ;;
25076
"src/components/ogre/ogreopcode/src/Opcode/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/src/Opcode/Makefile" ;;
25077
"src/components/ogre/ogreopcode/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/include/Makefile" ;;
25078
"src/components/ogre/ogreopcode/include/Opcode/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/include/Opcode/Makefile" ;;
25079
"src/components/ogre/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/Makefile" ;;
25080
"src/components/ogre/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/gui/Makefile" ;;
25081
"src/components/ogre/cegui/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/cegui/Makefile" ;;
25082
"src/components/ogre/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/widgets/Makefile" ;;
25083
"src/components/ogre/widgets/adapters/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/widgets/adapters/Makefile" ;;
25084
"src/components/ogre/widgets/adapters/atlas/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/widgets/adapters/atlas/Makefile" ;;
25085
"src/components/ogre/widgets/icons/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/widgets/icons/Makefile" ;;
25086
"src/components/ogre/environment/meshtree/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/meshtree/Makefile" ;;
25087
"src/components/ogre/environment/caelum/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/caelum/Makefile" ;;
25088
"src/components/ogre/environment/hydrax/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/hydrax/Makefile" ;;
25089
"src/components/ogre/environment/pagedgeometry/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/pagedgeometry/Makefile" ;;
25090
"src/components/ogre/environment/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/Makefile" ;;
25091
"src/components/ogre/model/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/model/Makefile" ;;
25092
"src/components/ogre/model/mapping/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/model/mapping/Makefile" ;;
25093
"src/components/ogre/modeldefinitions/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/modeldefinitions/Makefile" ;;
25094
"src/components/ogre/sounddefinitions/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/sounddefinitions/Makefile" ;;
25095
"src/components/ogre/carpenter/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/carpenter/Makefile" ;;
25096
"src/components/ogre/jesus/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/jesus/Makefile" ;;
25097
"src/components/ogre/manipulation/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/manipulation/Makefile" ;;
25098
"src/components/ogre/manipulation/entityrecipes/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/manipulation/entityrecipes/Makefile" ;;
25099
"src/components/ogre/terrain/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/terrain/Makefile" ;;
25100
"src/components/ogre/SceneManagers/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/SceneManagers/Makefile" ;;
25101
"src/components/ogre/SceneManagers/EmberPagingSceneManager/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/SceneManagers/EmberPagingSceneManager/Makefile" ;;
25102
"src/components/ogre/SceneManagers/EmberPagingSceneManager/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/SceneManagers/EmberPagingSceneManager/src/Makefile" ;;
25103
"src/components/ogre/SceneManagers/EmberPagingSceneManager/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/SceneManagers/EmberPagingSceneManager/include/Makefile" ;;
25104
"media/Makefile") CONFIG_FILES="$CONFIG_FILES media/Makefile" ;;
25105
"media/packs/Makefile") CONFIG_FILES="$CONFIG_FILES media/packs/Makefile" ;;
25107
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25108
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25109
{ (exit 1); exit 1; }; };;
25114
# If the user did not use the arguments to specify the items to instantiate,
25115
# then the envvar interface is used. Set only those that are not.
25116
# We use the long form for the default assignment because of an extremely
25117
# bizarre bug on SunOS 4.1.3.
25118
if $ac_need_defaults; then
25119
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25120
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25121
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25124
# Have a temporary directory for convenience. Make it in the build tree
25125
# simply because there is no reason against having it here, and in addition,
25126
# creating and moving files from /tmp can sometimes cause problems.
25127
# Hook for its removal unless debugging.
25128
# Note that there is a small window in which the directory will not be cleaned:
25129
# after its creation but before its name has been assigned to `$tmp'.
25133
trap 'exit_status=$?
25134
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25136
trap '{ (exit 1); exit 1; }' 1 2 13 15
25138
# Create a (secure) tmp directory for tmp files.
25141
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25142
test -n "$tmp" && test -d "$tmp"
25145
tmp=./conf$$-$RANDOM
25146
(umask 077 && mkdir "$tmp")
25149
$as_echo "$as_me: cannot create a temporary directory in ." >&2
25150
{ (exit 1); exit 1; }
25153
# Set up the scripts for CONFIG_FILES section.
25154
# No need to generate them if there are no CONFIG_FILES.
25155
# This happens for instance with `./config.status config.h'.
25156
if test -n "$CONFIG_FILES"; then
25160
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25161
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25164
ac_cs_awk_cr=$ac_cr
25167
echo 'BEGIN {' >"$tmp/subs1.awk" &&
25172
echo "cat >conf$$subs.awk <<_ACEOF" &&
25173
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25175
} >conf$$subs.sh ||
25176
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25177
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25178
{ (exit 1); exit 1; }; }
25179
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25181
for ac_last_try in false false false false false :; do
25182
. ./conf$$subs.sh ||
25183
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25184
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25185
{ (exit 1); exit 1; }; }
25187
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25188
if test $ac_delim_n = $ac_delim_num; then
25190
elif $ac_last_try; then
25191
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25192
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25193
{ (exit 1); exit 1; }; }
25195
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25198
rm -f conf$$subs.sh
25200
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25201
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25205
s/^/S["/; s/!.*/"]=/
25215
s/\(.\{148\}\).*/\1/
25217
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25222
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25229
s/\(.\{148\}\).*/\1/
25231
s/["\\]/\\&/g; s/^/"/; s/$/"/
25235
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25240
' <conf$$subs.awk | sed '
25245
' >>$CONFIG_STATUS || ac_write_fail=1
25246
rm -f conf$$subs.awk
25247
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25249
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25250
for (key in S) S_is_set[key] = 1
25256
nfields = split(line, field, "@")
25258
len = length(field[1])
25259
for (i = 2; i < nfields; i++) {
25261
keylen = length(key)
25262
if (S_is_set[key]) {
25264
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25265
len += length(value) + length(field[++i])
25276
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25277
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25278
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25281
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25282
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25283
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
25284
{ (exit 1); exit 1; }; }
25287
# VPATH may cause trouble with some makes, so we remove $(srcdir),
25288
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25289
# trailing colons and then remove the whole line if VPATH becomes empty
25290
# (actually we leave an empty line to preserve line numbers).
25291
if test "x$srcdir" = x.; then
25292
ac_vpsub='/^[ ]*VPATH[ ]*=/{
25293
s/:*\$(srcdir):*/:/
25294
s/:*\${srcdir}:*/:/
25296
s/^\([^=]*=[ ]*\):*/\1/
25302
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25303
fi # test -n "$CONFIG_FILES"
25305
# Set up the scripts for CONFIG_HEADERS section.
25306
# No need to generate them if there are no CONFIG_HEADERS.
25307
# This happens for instance with `./config.status Makefile'.
25308
if test -n "$CONFIG_HEADERS"; then
25309
cat >"$tmp/defines.awk" <<\_ACAWK ||
25313
# Transform confdefs.h into an awk script `defines.awk', embedded as
25314
# here-document in config.status, that substitutes the proper values into
25315
# config.h.in to produce config.h.
25317
# Create a delimiter string that does not exist in confdefs.h, to ease
25318
# handling of long lines.
25320
for ac_last_try in false false :; do
25321
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25322
if test -z "$ac_t"; then
25324
elif $ac_last_try; then
25325
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25326
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25327
{ (exit 1); exit 1; }; }
25329
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25333
# For the awk script, D is an array of macro values keyed by name,
25334
# likewise P contains macro parameters if any. Preserve backslash
25335
# newline sequences.
25337
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25339
s/.\{148\}/&'"$ac_delim"'/g
25342
s/^[ ]*#[ ]*define[ ][ ]*/ /
25349
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25351
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25355
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25356
D["\1"]=" \3\\\\\\n"\\/p
25358
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25363
s/.\{148\}/&'"$ac_delim"'/g
25368
s/["\\]/\\&/g; s/^/"/; s/$/"/p
25371
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25373
' <confdefs.h | sed '
25374
s/'"$ac_delim"'/"\\\
25375
"/g' >>$CONFIG_STATUS || ac_write_fail=1
25377
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25378
for (key in D) D_is_set[key] = 1
25381
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25383
split(line, arg, " ")
25384
if (arg[1] == "#") {
25388
defundef = substr(arg[1], 2)
25391
split(mac1, mac2, "(") #)
25393
prefix = substr(line, 1, index(line, defundef) - 1)
25394
if (D_is_set[macro]) {
25395
# Preserve the white space surrounding the "#".
25396
print prefix "define", macro P[macro] D[macro]
25399
# Replace #undef with comments. This is necessary, for example,
25400
# in the case of _POSIX_SOURCE, which is predefined and required
25401
# on some systems where configure will not decide to define it.
25402
if (defundef == "undef") {
25403
print "/*", prefix defundef, macro, "*/"
25411
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25412
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25413
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25414
{ (exit 1); exit 1; }; }
25415
fi # test -n "$CONFIG_HEADERS"
25418
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25423
:[FHLC]) ac_mode=$ac_tag; continue;;
25425
case $ac_mode$ac_tag in
25427
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25428
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25429
{ (exit 1); exit 1; }; };;
25430
:[FH]-) ac_tag=-:-;;
25431
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25448
-) ac_f="$tmp/stdin";;
25449
*) # Look for the file first in the build tree, then in the source tree
25450
# (if the path is not absolute). The absolute path cannot be DOS-style,
25451
# because $ac_f cannot contain `:'.
25455
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25457
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25458
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25459
{ (exit 1); exit 1; }; };;
25461
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25462
ac_file_inputs="$ac_file_inputs '$ac_f'"
25465
# Let's still pretend it is `configure' which instantiates (i.e., don't
25466
# use $as_me), people would be surprised to read:
25467
# /* config.h. Generated by config.status. */
25468
configure_input='Generated from '`
25469
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25471
if test x"$ac_file" != x-; then
25472
configure_input="$ac_file. $configure_input"
25473
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25474
$as_echo "$as_me: creating $ac_file" >&6;}
25476
# Neutralize special characters interpreted by sed in replacement strings.
25477
case $configure_input in #(
25478
*\&* | *\|* | *\\* )
25479
ac_sed_conf_input=`$as_echo "$configure_input" |
25480
sed 's/[\\\\&|]/\\\\&/g'`;; #(
25481
*) ac_sed_conf_input=$configure_input;;
25485
*:-:* | *:-) cat >"$tmp/stdin" \
25486
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25487
$as_echo "$as_me: error: could not create $ac_file" >&2;}
25488
{ (exit 1); exit 1; }; } ;;
25493
ac_dir=`$as_dirname -- "$ac_file" ||
25494
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25495
X"$ac_file" : 'X\(//\)[^/]' \| \
25496
X"$ac_file" : 'X\(//\)$' \| \
25497
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25498
$as_echo X"$ac_file" |
25499
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25503
/^X\(\/\/\)[^/].*/{
25518
-*) as_dir=./$as_dir;;
25520
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25524
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25525
*) as_qdir=$as_dir;;
25527
as_dirs="'$as_qdir' $as_dirs"
25528
as_dir=`$as_dirname -- "$as_dir" ||
25529
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25530
X"$as_dir" : 'X\(//\)[^/]' \| \
25531
X"$as_dir" : 'X\(//\)$' \| \
25532
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25533
$as_echo X"$as_dir" |
25534
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25538
/^X\(\/\/\)[^/].*/{
25551
test -d "$as_dir" && break
25553
test -z "$as_dirs" || eval "mkdir $as_dirs"
25554
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25555
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25556
{ (exit 1); exit 1; }; }; }
25560
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25562
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25563
# A ".." for each directory in $ac_dir_suffix.
25564
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25565
case $ac_top_builddir_sub in
25566
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25567
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25570
ac_abs_top_builddir=$ac_pwd
25571
ac_abs_builddir=$ac_pwd$ac_dir_suffix
25572
# for backward compatibility:
25573
ac_top_builddir=$ac_top_build_prefix
25576
.) # We are building in place.
25578
ac_top_srcdir=$ac_top_builddir_sub
25579
ac_abs_top_srcdir=$ac_pwd ;;
25580
[\\/]* | ?:[\\/]* ) # Absolute name.
25581
ac_srcdir=$srcdir$ac_dir_suffix;
25582
ac_top_srcdir=$srcdir
25583
ac_abs_top_srcdir=$srcdir ;;
25584
*) # Relative name.
25585
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25586
ac_top_srcdir=$ac_top_build_prefix$srcdir
25587
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25589
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25599
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25600
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25602
ac_MKDIR_P=$MKDIR_P
25604
[\\/$]* | ?:[\\/]* ) ;;
25605
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25609
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25610
# If the template does not know about datarootdir, expand it.
25611
# FIXME: This hack should be removed a few years after 2.60.
25612
ac_datarootdir_hack=; ac_datarootdir_seen=
25625
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25626
*datarootdir*) ac_datarootdir_seen=yes;;
25627
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25628
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25629
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25631
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25632
ac_datarootdir_hack='
25633
s&@datadir@&$datadir&g
25634
s&@docdir@&$docdir&g
25635
s&@infodir@&$infodir&g
25636
s&@localedir@&$localedir&g
25637
s&@mandir@&$mandir&g
25638
s&\\\${datarootdir}&$datarootdir&g' ;;
25642
# Neutralize VPATH when `$srcdir' = `.'.
25643
# Shell code in configure.ac might set extrasub.
25644
# FIXME: do we really want to maintain this feature?
25645
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25646
ac_sed_extra="$ac_vpsub
25649
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25651
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25652
s|@configure_input@|$ac_sed_conf_input|;t t
25653
s&@top_builddir@&$ac_top_builddir_sub&;t t
25654
s&@top_build_prefix@&$ac_top_build_prefix&;t t
25655
s&@srcdir@&$ac_srcdir&;t t
25656
s&@abs_srcdir@&$ac_abs_srcdir&;t t
25657
s&@top_srcdir@&$ac_top_srcdir&;t t
25658
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25659
s&@builddir@&$ac_builddir&;t t
25660
s&@abs_builddir@&$ac_abs_builddir&;t t
25661
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25662
s&@INSTALL@&$ac_INSTALL&;t t
25663
s&@MKDIR_P@&$ac_MKDIR_P&;t t
25664
$ac_datarootdir_hack
25666
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25667
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25668
$as_echo "$as_me: error: could not create $ac_file" >&2;}
25669
{ (exit 1); exit 1; }; }
25671
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25672
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25673
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25674
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25675
which seems to be undefined. Please make sure it is defined." >&5
25676
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25677
which seems to be undefined. Please make sure it is defined." >&2;}
25681
-) cat "$tmp/out" && rm -f "$tmp/out";;
25682
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25684
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25685
$as_echo "$as_me: error: could not create $ac_file" >&2;}
25686
{ (exit 1); exit 1; }; }
25692
if test x"$ac_file" != x-; then
25694
$as_echo "/* $configure_input */" \
25695
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25696
} >"$tmp/config.h" \
25697
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25698
$as_echo "$as_me: error: could not create $ac_file" >&2;}
25699
{ (exit 1); exit 1; }; }
25700
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25701
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25702
$as_echo "$as_me: $ac_file is unchanged" >&6;}
25705
mv "$tmp/config.h" "$ac_file" \
25706
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25707
$as_echo "$as_me: error: could not create $ac_file" >&2;}
25708
{ (exit 1); exit 1; }; }
25711
$as_echo "/* $configure_input */" \
25712
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25713
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25714
$as_echo "$as_me: error: could not create -" >&2;}
25715
{ (exit 1); exit 1; }; }
25717
# Compute "$ac_file"'s index in $config_headers.
25720
for _am_header in $config_headers :; do
25721
case $_am_header in
25722
$_am_arg | $_am_arg:* )
25725
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
25728
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25729
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25730
X"$_am_arg" : 'X\(//\)[^/]' \| \
25731
X"$_am_arg" : 'X\(//\)$' \| \
25732
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25733
$as_echo X"$_am_arg" |
25734
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25738
/^X\(\/\/\)[^/].*/{
25750
s/.*/./; q'`/stamp-h$_am_stamp_count
25753
:C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25754
$as_echo "$as_me: executing $ac_file commands" >&6;}
25759
case $ac_file$ac_mode in
25760
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25761
# Strip MF so we end up with the name of the file.
25762
mf=`echo "$mf" | sed -e 's/:.*$//'`
25763
# Check whether this is an Automake generated Makefile or not.
25764
# We used to match only the files named `Makefile.in', but
25765
# some people rename them; so instead we look at the file content.
25766
# Grep'ing the first line is not enough: some people post-process
25767
# each Makefile.in and add a new line on top of each file to say so.
25768
# Grep'ing the whole file is not good either: AIX grep has a line
25769
# limit of 2048, but all sed's we know have understand at least 4000.
25770
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25771
dirpart=`$as_dirname -- "$mf" ||
25772
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25773
X"$mf" : 'X\(//\)[^/]' \| \
25774
X"$mf" : 'X\(//\)$' \| \
25775
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25777
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25781
/^X\(\/\/\)[^/].*/{
25797
# Extract the definition of DEPDIR, am__include, and am__quote
25798
# from the Makefile without running `make'.
25799
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25800
test -z "$DEPDIR" && continue
25801
am__include=`sed -n 's/^am__include = //p' < "$mf"`
25802
test -z "am__include" && continue
25803
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25804
# When using ansi2knr, U may be empty or an underscore; expand it
25805
U=`sed -n 's/^U = //p' < "$mf"`
25806
# Find all dependency output files, they are included files with
25807
# $(DEPDIR) in their names. We invoke sed twice because it is the
25808
# simplest approach to changing $(DEPDIR) to its actual value in the
25810
for file in `sed -n "
25811
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25812
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25813
# Make sure the directory exists.
25814
test -f "$dirpart/$file" && continue
25815
fdir=`$as_dirname -- "$file" ||
25816
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25817
X"$file" : 'X\(//\)[^/]' \| \
25818
X"$file" : 'X\(//\)$' \| \
25819
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25820
$as_echo X"$file" |
25821
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25825
/^X\(\/\/\)[^/].*/{
25838
{ as_dir=$dirpart/$fdir
25840
-*) as_dir=./$as_dir;;
25842
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25846
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25847
*) as_qdir=$as_dir;;
25849
as_dirs="'$as_qdir' $as_dirs"
25850
as_dir=`$as_dirname -- "$as_dir" ||
25851
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25852
X"$as_dir" : 'X\(//\)[^/]' \| \
25853
X"$as_dir" : 'X\(//\)$' \| \
25854
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25855
$as_echo X"$as_dir" |
25856
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25860
/^X\(\/\/\)[^/].*/{
25873
test -d "$as_dir" && break
25875
test -z "$as_dirs" || eval "mkdir $as_dirs"
25876
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25877
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25878
{ (exit 1); exit 1; }; }; }
25879
# echo "creating $dirpart/$file"
25880
echo '# dummy' > "$dirpart/$file"
25889
{ (exit 0); exit 0; }
25891
chmod +x $CONFIG_STATUS
25892
ac_clean_files=$ac_clean_files_save
25894
test $ac_write_fail = 0 ||
25895
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25896
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25897
{ (exit 1); exit 1; }; }
25900
# configure is writing to config.log, and then calls config.status.
25901
# config.status does its own redirection, appending to config.log.
25902
# Unfortunately, on DOS this fails, as config.log is still kept open
25903
# by configure, so config.status won't be able to write to it; its
25904
# output is simply discarded. So we exec the FD to /dev/null,
25905
# effectively closing config.log, so it can be properly (re)opened and
25906
# appended to by config.status. When coming back to configure, we
25907
# need to make the FD available again.
25908
if test "$no_create" != yes; then
25910
ac_config_status_args=
25911
test "$silent" = yes &&
25912
ac_config_status_args="$ac_config_status_args --quiet"
25914
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25916
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
25917
# would make configure fail if this is the last instruction.
25918
$ac_cs_success || { (exit 1); exit 1; }
25920
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25921
{ $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25922
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25926
{ $as_echo "$as_me:$LINENO: result:
25928
**************************************
25929
* Finished. Run make to compile Ember.
25930
* Note that you also need to install the media. This can be gotten in a couple of different ways.
25931
* The easiest way is to use the rsync make target (which uses the rsync program to update the media.).
25932
* If you're compiling from git and want to use the development version, do:
25936
* If you're using a release version, you should however instead do:
25938
* make releasemediarsync
25940
* Note that both of these make targets will just fetch and install the files directly, bypassing normal \"make install\" producures. They should therefore not be used if you don't want to pollute your installation directory, and shouldn't be used if you install to a system directory.
25942
* A third way is to get the media tarball directly. This only works for release versions however.
25943
* You can find these media tarballs at http://amber.worldforge.org/WFUT .
25944
* The media should be installed to PREFIX/share/ember/media
25945
* so that you get PREFIX/share/ember/media/user and PREFIX/share/ember/media/shared.
25946
* More information can be found at the Ember page at http://www.worldforge.org
25947
**************************************
25952
**************************************
25953
* Finished. Run make to compile Ember.
25954
* Note that you also need to install the media. This can be gotten in a couple of different ways.
25955
* The easiest way is to use the rsync make target (which uses the rsync program to update the media.).
25956
* If you're compiling from git and want to use the development version, do:
25960
* If you're using a release version, you should however instead do:
25962
* make releasemediarsync
25964
* Note that both of these make targets will just fetch and install the files directly, bypassing normal \"make install\" producures. They should therefore not be used if you don't want to pollute your installation directory, and shouldn't be used if you install to a system directory.
25966
* A third way is to get the media tarball directly. This only works for release versions however.
25967
* You can find these media tarballs at http://amber.worldforge.org/WFUT .
25968
* The media should be installed to PREFIX/share/ember/media
25969
* so that you get PREFIX/share/ember/media/user and PREFIX/share/ember/media/shared.
25970
* More information can be found at the Ember page at http://www.worldforge.org
25971
**************************************